Versions 270 to 271
Lines 38–48 at 271 (were 38–47 at 270)
41−import { configPath, findRoot, installKey, isVisitor, readConfig, readToken } from "./config.ts";
41+import { configPath, findRoot, installKey, isVisitor, readConfig, tokenFile } from "./config.ts";
Lines 58–64 at 271 (were 57–63 at 270)
60−import { adminToken, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from "./key-admin.ts";
61+import { adminToken, adminTokenWords, issuedPublic, keyList, keyListText, keyNew, keyRevoke } from "./key-admin.ts";
Lines 149–166 at 271 (were 148–164 at 270)
148149 if (!root) throw new UsageError("abso key runs inside an agent's folder, or takes --server <url>");
151− config = readConfig(root, env.env);
157− token: readToken(env.env),
Lines 878–891 at 271 (were 876–889 at 270)
876878
879− "Every command takes --json. Settings live in .abso/config.json (.avcs/config.json in a folder from before the rename). The token comes from ABSO_TOKEN, or else ~/.abso/token (or ~/.avcs/token from before). " +
881+ "Every command takes --json. Settings live in .abso/config.json (.avcs/config.json in a folder from before the rename). A folder with a key signs in with that key and nothing else. Without one, the token comes from ABSO_TOKEN; this machine's ~/.abso/token (or ~/.avcs/token from before) is used only by a command given --token-file. " +
880882 "Every command that talks to a server takes --server <url>; one that works only on this machine (skill, check-ignore, pause, resume, fix-eol) doesn't. In a joined folder --server must be the folder's own server: another is refused, never swapped in. An explicit --server is used as given, and no setting redirects it. The server is " +
883885
884−/** A command's flags: its own, and --server for every command that talks to a server (server-choice.ts). */
886+/** A command's flags: its own, and --server and --token-file for every command that talks to a server (server-choice.ts). */
886− return serverUse(name) === "local" ? def.flags : { ...def.flags, server: "string" };
888+ return serverUse(name) === "local" ? def.flags : { ...def.flags, server: "string", "token-file": "boolean" };
888890
Lines 962–973 at 271 (were 960–969 at 270)
961963
962964/** Whether this folder's calls carry a key or token, for how a refusal is worded. False when that can't be told. */
963−function carriesCredential(env: Env): boolean {
966− return root ? readConfig(root, env.env).token !== undefined : readToken(env.env) !== undefined;
Lines 988–994 at 271 (were 984–989 at 270)
987992 if (command === undefined || command === "help" || command === "--help" || command === "-h") {
Lines 1052–1063 at 271 (were 1047–1053 at 270)
10471052 if (root !== undefined && isVisitor(root)) checkVisitor(command, parsed, readConfig(root, env.env).project);
1050− const out = await def.run(args, named === undefined ? env : { ...env, server: named });
Lines 1079–1085 at 271 (were 1069–1075 at 270)
10701080 const code = err instanceof UsageError ? "usage" : err instanceof ApiError ? "server" : "error";
1072− plainError(err, carriesCredential(env)) ??
- MCP
- compare on this site's /mcp
- CLI
- abso diff 270 271 client/src/main.ts --json
- JSON
- /christopher/abso-core/compare/270..271?file=client%2Fsrc%2Fmain.ts&format=json