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 25 to 318

Compare

+28 −16 in 6 places
Lines 2–10 at 318 (were 2–10 at 25)
22// command, run by the same code as the command line and answering with the
33// same text, so the CLI and the tools can't drift apart and an agent learns
44// one set of words. The folder and the token come from where the server runs,
5−// as for the CLI: .avcs/config.json, and AVCS_TOKEN or ~/.avcs/token.
5+// as for the CLI: .avcs/config.json, and ABSO_TOKEN or ~/.abso/token.
66//
7−// claude mcp add avcs -- node <repo>/client/avcs.ts mcp
7+// claude mcp add abso -- abso mcp
88//
99// The protocol is JSON-RPC 2.0, one message per line, with no library: the
1010// client uses nothing outside Node.
Lines 35–42 at 318 (were 35–42 at 25)
3535 "announce",
3636 "start",
3737 "record",
38− "sync",
39− "publish",
38+ "pull",
39+ "push",
4040 "unqueue",
4141 "restore",
4242 "settle",
Lines 52–65 at 318 (were 52–57 at 25)
5252 "ask",
5353 "waiting",
5454 "answer",
55+ "ack",
56+ "reply",
57+ "groups",
58+ "group",
59+ "orgs",
60+ "org",
61+ "whoami",
62+ "doctor",
5563] as const;
5664
5765const PROTOCOLS = ["2025-06-18", "2025-03-26", "2024-11-05"];
Lines 78–96 at 318 (were 70–84 at 25)
7078 return MCP_COMMANDS.map((command) => {
7179 const def = table[command]!;
7280 const flags = Object.fromEntries(
73− Object.entries(def.flags).map(([flag, kind]) => [
74− flag,
75− kind === "boolean"
76− ? { type: "boolean", description: `--${flag}` }
77− : {
78− type: "string",
79− description: kind === "optional" ? `--${flag} "<value>"; "" gives --${flag} alone` : `--${flag} <value>`,
80− },
81− ]),
81+ // No --token-file: a tool signs in with its folder's key, never this machine's token file.
82+ Object.entries(def.flags)
83+ .filter(([flag]) => flag !== "token-file")
84+ .map(([flag, kind]) => [
85+ flag,
86+ kind === "boolean"
87+ ? { type: "boolean", description: `--${flag}` }
88+ : {
89+ type: "string",
90+ description:
91+ kind === "optional" ? `--${flag} "<value>"; "" gives --${flag} alone` : `--${flag} <value>`,
92+ },
93+ ]),
8294 );
8395 return {
8496 name: toolName(command),
Lines 132–139 at 318 (were 120–127 at 25)
120132 return rel === "" || (rel !== ".." && !rel.startsWith(`..${sep}`) && !isAbsolute(rel));
121133}
122134
123−/** The tool inputs that name files on this machine to read, comma-separated: each is confined like the folder. */
124−export const FILE_INPUTS = ["attach", "clean"] as const;
135+/** The tool inputs that name files or folders on this machine to read or write, comma-separated: each is confined like the folder. */
136+export const FILE_INPUTS = ["attach", "clean", "save-attachments"] as const;
125137
126138/**
127139 * Where a tool call runs, and what it may read: its folder and
Lines 161–167 at 318 (were 149–155 at 25)
149161 .filter((x) => x !== ""))
150162 if (!inside(start, resolve(folder, p)))
151163 return {
152− refused: `--${flag} ${p} is outside ${start}, the folder this server started in; a tool reads files from there or below`,
164+ refused: `--${flag} ${p} is outside ${start}, the folder this server started in; a tool reads and writes files only there or below`,
153165 };
154166 }
155167 return { folder };
MCP
compare on this site's /mcp
CLI
abso diff 25 318 client/src/mcp.ts --json
JSON
/christopher/abso-core/compare/25..318?file=client%2Fsrc%2Fmcp.ts&format=json