{"draft":null,"from":85,"to":86,"files":[{"path":"client/src/main.ts","added":6,"removed":2,"diff":"--- a/client/src/main.ts\n+++ b/client/src/main.ts\n@@ -37,7 +37,7 @@\n \trunSync,\n \ttakeNews,\n } from \"./commands.ts\";\n-import { configPath, findRoot, installKey, readConfig, readToken } from \"./config.ts\";\n+import { configPath, findRoot, installKey, isVisitor, readConfig, readToken } from \"./config.ts\";\n import { newsBlockLines, newsShown, TOKEN_SERVERS } from \"./core.ts\";\n import { checkServer, doctor, doctorText, plainError, realProbe, whoami } from \"./doctor.ts\";\n import { runDraftSync, runLand, runSwitch } from \"./drafts.ts\";\n@@ -53,6 +53,7 @@\n import { colorsPass, terminalText } from \"./terminal-text.ts\";\n import { runAmend, runDrop, runFollow, runLabel, runLabels, runPluck } from \"./versions.ts\";\n import { runVisibility } from \"./visibility-commands.ts\";\n+import { checkVisitor } from \"./visitor.ts\";\n \n interface CommandDef {\n \treadonly flags: FlagSpec;\n@@ -291,7 +292,7 @@\n \t\tflags: { server: \"string\", agent: \"string\", dir: \"string\", reader: \"boolean\" },\n \t\tusage: \"abso join <project> [--agent <name>] [--dir <folder>] [--server <url>] [--reader]\",\n \t\tabout:\n-\t\t\t\"Join a project as a new agent and write its shared files into a folder: --dir, else here when this folder is empty, else ./<project> (which has to be new or empty). Without --agent the agent is named after this box (the name abso login gave it, lower-cased), or the next free <name>-2, <name>-3; that needs the box signed in with abso login. The server is --server, else ABSO_SERVER, else the one this box signed in to with abso login, else https://api.abso.dev. --reader joins as a reader: it reads everything and records nothing, and the server refuses its edits, records and publishes.\",\n+\t\t\t\"Join a project as a new agent and write its shared files into a folder: --dir, else here when this folder is empty, else ./<project> (which has to be new or empty). Without --agent the agent is named after this box (the name abso login gave it, lower-cased), or the next free <name>-2, <name>-3; that needs the box signed in with abso login. The server is --server, else ABSO_SERVER, else the one this box signed in to with abso login, else https://api.abso.dev. --reader joins as a reader: it reads everything and records nothing, and the server refuses its edits, records and publishes. With --reader and no sign-in, a public project is joined to read signed out: the folder holds only its settings, sends no sign-in, and runs status, log, show, files, blame, why, where, issues, issue and search; every other command is refused.\",\n \t\trun: runJoin,\n \t},\n \trecord: {\n@@ -913,6 +914,9 @@\n \t\t\tconst files = bodyFilesHelp(command, def.flags);\n \t\t\treturn { stdout: `${def.usage}\\n  ${def.about}\\n${files ? `  ${files}\\n` : \"\"}`, stderr: \"\", exit: EXIT.ok };\n \t\t}\n+\t\t// A folder that reads signed out runs its reads and nothing else, refused before any call.\n+\t\tconst root = findRoot(env.cwd);\n+\t\tif (root !== undefined && isVisitor(root)) checkVisitor(command, parsed, readConfig(root, env.env).project);\n \t\tconst args = readBodyFiles(command, parsed, env.cwd, env.readStdin);\n \t\ttakeNews(); // what an earlier call in this process left (tests run many)\n \t\tconst out = await def.run(args, env);"}],"unmatched":[]}