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 16 to 17

Compare

+7 −6 in 5 places
Lines 10–22 at 17 (were 10–21 at 16)
1010import { CLIENT_DIR } from "./client-version.ts";
1111import { type Env, type Output, plural } from "./command-env.ts";
1212import { leftOutText, syncFolder, uploadBlobs } from "./commands.ts";
13−import { AVCS_DIR, findRoot, installKey, readConfig, type Settings, tokenFor, writeConfig } from "./config.ts";
13+import { findRoot, installKey, readConfig, type Settings, tokenFor, writeConfig } from "./config.ts";
1414import { clearKnown, loadIgnore, readFolder, writeKnown } from "./folder.ts";
1515import { modInstalled } from "./install.ts";
1616import { type FullMode, foldModes, writeKnownModes } from "./modes.ts";
1717import { PROJECT_FILE, readProjectFile, startingProjectFileText, writeStartingProjectFile } from "./project-file.ts";
1818import { refusedText } from "./safety.ts";
19+import { stateDir } from "./state-dir.ts";
1920
2021function serverFrom(args: Parsed, env: Env): string {
2122 const server = str(args, "server") ?? env.env.AVCS_SERVER;
Lines 40–46 at 17 (were 39–45 at 16)
3940 if (args.positionals.length > 1) throw new UsageError("init takes one folder");
4041 const root = resolve(env.cwd, args.positionals[0] ?? ".");
4142 if (!existsSync(root) || !statSync(root).isDirectory()) throw new UsageError(`${root} is not a folder`);
42− if (findRoot(root) === root) throw new UsageError(`${root} already has .avcs/config.json`);
43+ if (findRoot(root) === root) throw new UsageError(`${root} already has .abso/config.json`);
4344 const project = str(args, "project");
4445 if (!project) throw new UsageError("give the project a name with --project <name>");
4546 const config = makeSettings(args, env, project);
Lines 76–82 at 17 (were 75–81 at 16)
7576 : []),
7677 ...startingProjectFileText(wroteProject),
7778 ...(answer.skipped && answer.skipped.length > 0 ? [`The server skipped: ${answer.skipped.join(", ")}.`] : []),
78− `This folder is agent ${config.agent}. Settings are in .avcs/config.json.`,
79+ `This folder is agent ${config.agent}. Settings are in .abso/config.json.`,
7980 ...refusedText(synced.refused),
8081 ...(synced.kept.length > 0 ? [`Kept your copy of ${synced.kept.join(", ")}.`] : []),
8182 hookHint(env.env),
Lines 100–111 at 17 (were 99–110 at 16)
99100 const project = args.positionals[0]!;
100101 const root = resolve(env.cwd, str(args, "dir") ?? ".");
101102 mkdirSync(root, { recursive: true });
102− if (findRoot(root) === root) throw new UsageError(`${root} already has .avcs/config.json`);
103+ if (findRoot(root) === root) throw new UsageError(`${root} already has .abso/config.json`);
103104 const reader = bool(args, "reader");
104105 const config = { ...makeSettings(args, env, project), ...(reader ? { reader: true } : {}) };
105106 const box = readBox(config.server);
106107 const minted =
107− box && !existsSync(join(root, AVCS_DIR, "key")) ? await mintKey(box, project, config.agent) : undefined;
108+ box && !existsSync(join(stateDir(root), "key")) ? await mintKey(box, project, config.agent) : undefined;
108109 writeConfig(root, config);
109110 clearKnown(root);
110111 if (minted) installKey(root, JSON.stringify(minted));
Lines 119–125 at 17 (were 118–124 at 16)
118119 synced = await syncFolder(root, api, true);
119120 } catch (error) {
120121 if (!(error instanceof ApiError && error.status === 401 && !box && !settings.token)) throw error;
121− rmSync(join(root, AVCS_DIR), { recursive: true, force: true });
122+ rmSync(stateDir(root), { recursive: true, force: true });
122123 throw new UsageError(`This box isn't signed in to ${config.server}. abso login signs it in.`);
123124 }
124125 return {
MCP
compare on this site's /mcp
CLI
abso diff 16 17 client/src/join-commands.ts --json
JSON
/christopher/abso-core/compare/16..17?file=client%2Fsrc%2Fjoin-commands.ts&format=json