Skip to content

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed

Versions 85 to 86

Compare

+6 −2 in 4 places
Lines 37–43 at 86 (were 37–43 at 85)
3737 runSync,
3838 takeNews,
3939} from "./commands.ts";
40−import { configPath, findRoot, installKey, readConfig, readToken } from "./config.ts";
40+import { configPath, findRoot, installKey, isVisitor, readConfig, readToken } from "./config.ts";
4141import { newsBlockLines, newsShown, TOKEN_SERVERS } from "./core.ts";
4242import { checkServer, doctor, doctorText, plainError, realProbe, whoami } from "./doctor.ts";
4343import { runDraftSync, runLand, runSwitch } from "./drafts.ts";
Lines 53–59 at 86 (were 53–58 at 85)
5353import { colorsPass, terminalText } from "./terminal-text.ts";
5454import { runAmend, runDrop, runFollow, runLabel, runLabels, runPluck } from "./versions.ts";
5555import { runVisibility } from "./visibility-commands.ts";
56+import { checkVisitor } from "./visitor.ts";
5657
5758interface CommandDef {
5859 readonly flags: FlagSpec;
Lines 292–298 at 86 (were 291–297 at 85)
291292 flags: { server: "string", agent: "string", dir: "string", reader: "boolean" },
292293 usage: "abso join <project> [--agent <name>] [--dir <folder>] [--server <url>] [--reader]",
293294 about:
294− "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.",
295+ "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.",
295296 run: runJoin,
296297 },
297298 record: {
Lines 914–922 at 86 (were 913–918 at 85)
913914 const files = bodyFilesHelp(command, def.flags);
914915 return { stdout: `${def.usage}\n ${def.about}\n${files ? ` ${files}\n` : ""}`, stderr: "", exit: EXIT.ok };
915916 }
917+ // A folder that reads signed out runs its reads and nothing else, refused before any call.
918+ const root = findRoot(env.cwd);
919+ if (root !== undefined && isVisitor(root)) checkVisitor(command, parsed, readConfig(root, env.env).project);
916920 const args = readBodyFiles(command, parsed, env.cwd, env.readStdin);
917921 takeNews(); // what an earlier call in this process left (tests run many)
918922 const out = await def.run(args, env);
MCP
compare on this site's /mcp
CLI
abso diff 85 86 client/src/main.ts --json
JSON
/christopher/abso-core/compare/85..86?file=client%2Fsrc%2Fmain.ts&format=json