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 20 to 21

Compare

+5 −4 in 3 places
Lines 37–43 at 21 (were 37–42 at 20)
3737 takeNews,
3838} from "./commands.ts";
3939import { configPath, findRoot, installKey, readConfig, readToken } from "./config.ts";
40+import { TOKEN_SERVERS } from "./core.ts";
4041import { runDraftSync, runLand, runSwitch } from "./drafts.ts";
4142import { runExport } from "./export.ts";
4243import { runBlame, runWhere, runWho, runWhy } from "./history.ts";
Lines 57–68 at 21 (were 56–67 at 20)
5657 readonly run: (args: Parsed, env: Env) => Promise<Output>;
5758}
5859
59−/** The server login, box and logout act on: --server, or the folder's. */
60−function boxServer(args: Parsed, env: Env): string {
60+/** The server login, box and logout act on: --server, the folder's, or outside a folder abso.dev's (TOKEN_SERVERS[0]). */
61+export function boxServer(args: Parsed, env: Pick<Env, "cwd">): string {
6162 const flag = str(args, "server");
6263 if (flag) return flag;
6364 const root = findRoot(env.cwd);
64− if (!root) throw new UsageError("give --server <url>, or run this inside an agent's folder");
65+ if (!root) return TOKEN_SERVERS[0]!;
6566 return (JSON.parse(readFileSync(configPath(root), "utf8")) as { server: string }).server;
6667}
6768
Lines 167–173 at 21 (were 166–172 at 20)
166167 flags: { server: "string" },
167168 usage: "abso login [--server <url>]",
168169 about:
169− "Sign this box in once (abso issue 108): it shows a code and a link, and waits while a person approves the code on the website, choosing the projects, the highest role and how many agents. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. Without --server, the folder's server.",
170+ "Sign this box in once (abso issue 108): it shows a code and a link, and waits while a person approves the code on the website, choosing the projects, the highest role and how many agents. Then abso join in any of those projects gives each agent its own key, with no approval. The box's sign-in is kept in your user folder, never in a project folder, and is never printed. Without --server, the folder's server, or https://api.abso.dev outside a folder.",
170171 run: async (args, env) => {
171172 const server = boxServer(args, env);
172173 const record = await login(server, { say: (line) => process.stderr.write(`${line}\n`) });
MCP
compare on this site's /mcp
CLI
abso diff 20 21 client/src/main.ts --json
JSON
/christopher/abso-core/compare/20..21?file=client%2Fsrc%2Fmain.ts&format=json