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 286 to 287

Compare

+26 −5 in 4 places
Lines 59–65 at 287 (were 59–64 at 286)
5959 runWaiting,
6060} from "./issues.ts";
6161import { adminToken, adminTokenWords, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from "./key-admin.ts";
62+import { closeLocalStores } from "./local-store.ts";
6263import { browserSkip, openInBrowser } from "./open-browser.ts";
6364import { runOrg, runOrgs } from "./orgs.ts";
6465import { runUnqueue } from "./queue.ts";
Lines 122–134 at 287 (were 121–131 at 286)
121122 public: "boolean",
122123 private: "boolean",
123124 "token-file": "boolean",
125+ local: "boolean",
126+ store: "string",
124127 },
125128 usage:
126− "abso init [folder] --project <name> [--agent <name>] [--as-is] [--org <org>] [--public|--private] [--token-file]",
129+ "abso init [folder] --project <name> [--agent <name>] [--as-is] [--org <org>] [--public|--private] [--token-file] | abso init [folder] --local --project <name> [--agent <name>] [--store <folder>] [--as-is]",
127130 about:
128− "Create a project on the server from a folder's text files. The folder becomes that agent's folder. It writes a starting .absoignore, and, when the folder has no abso.json and package.json gives a check or a build to guess, an abso.json (setup, check, build and out): what the server's CI runs on each new version of shared. Without one, CI runs what it can guess itself, or nothing. --as-is writes neither: the folder goes up exactly as it is (an import). On a server this box is signed in to (abso login, approving all your projects), the project is made as you, the way the website's New project makes it: you own it, it's private unless you say --public, and the folder joins it at once with its own key (--agent names it; else the box's name). --org <org> makes it that organization's project. Elsewhere it needs --agent and a token: ABSO_TOKEN, or with --token-file this machine's ~/.abso/token, which is never used unasked. Before it makes anything, it says what it signs in with.",
131+ "Create a project on the server from a folder's text files. The folder becomes that agent's folder. It writes a starting .absoignore, and, when the folder has no abso.json and package.json gives a check or a build to guess, an abso.json (setup, check, build and out): what the server's CI runs on each new version of shared. Without one, CI runs what it can guess itself, or nothing. --as-is writes neither: the folder goes up exactly as it is (an import). On a server this box is signed in to (abso login, approving all your projects), the project is made as you, the way the website's New project makes it: you own it, it's private unless you say --public, and the folder joins it at once with its own key (--agent names it; else the box's name). --org <org> makes it that organization's project. Elsewhere it needs --agent and a token: ABSO_TOKEN, or with --token-file this machine's ~/.abso/token, which is never used unasked. Before it makes anything, it says what it signs in with. --local makes a local project instead: its history is kept on this machine, in a store folder, and no server, sign-in or network is needed (Node 22.13 or later). The store is --store <folder> (kept in the folder's settings; inside the folder, .absoignore leaves it out), else ABSO_STORE, else this user's data folder (%LOCALAPPDATA%\\abso\\store, ~/Library/Application Support/abso/store, or $XDG_DATA_HOME/abso/store). The agent is --agent, else this computer's name.",
129132 run: (args, env) => runInit(args, env),
130133 },
131134 key: {
Lines 330–348 at 287 (were 327–336 at 286)
327330 },
328331 },
329332 join: {
330− flags: { server: "string", agent: "string", dir: "string", reader: "boolean", "token-file": "boolean" },
331− usage: "abso join <project> [--agent <name>] [--dir <folder>] [--reader] [--token-file]",
333+ flags: {
334+ server: "string",
335+ agent: "string",
336+ dir: "string",
337+ reader: "boolean",
338+ "token-file": "boolean",
339+ local: "boolean",
340+ store: "string",
341+ },
342+ usage:
343+ "abso join <project> [--agent <name>] [--dir <folder>] [--reader] [--token-file] | abso join <project> --local [--agent <name>] [--store <folder>] [--dir <folder>]",
332344 about:
333− "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. --reader joins as a reader: it reads everything and records nothing, and the server refuses its edits, records and pushes. 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. It says what it signs in with: a new key from this box's sign-in, the folder's key, or ABSO_TOKEN; this machine's ~/.abso/token only with --token-file, never unasked.",
345+ "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. --reader joins as a reader: it reads everything and records nothing, and the server refuses its edits, records and pushes. 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. It says what it signs in with: a new key from this box's sign-in, the folder's key, or ABSO_TOKEN; this machine's ~/.abso/token only with --token-file, never unasked. --local joins a local project (abso init --local) from the same store: --store, else ABSO_STORE, else this user's data folder; the agent is --agent, else this computer's name.",
334346 run: runJoin,
335347 },
336348 record: {
Lines 1001–1015 at 287 (were 989–994 at 286)
9891001}
9901002
9911003export async function main(argv: readonly string[], env: Env): Promise<MainResult> {
1004+ try {
1005+ return await runMain(argv, env);
1006+ } finally {
1007+ // A local project's store stays open only while its command runs.
1008+ closeLocalStores();
1009+ }
1012+async function runMain(argv: readonly string[], env: Env): Promise<MainResult> {
9921013 const command = argv[0];
9931014 const json = argv.includes("--json") && command !== "run" && command !== "logs";
9941015 const asked = argv.includes("--token-file");
MCP
compare on this site's /mcp
CLI
abso diff 286 287 client/src/main.ts --json
JSON
/christopher/abso-core/compare/286..287?file=client%2Fsrc%2Fmain.ts&format=json