Versions 16 to 17
Lines 8–18 at 17 (were 8–17 at 16)
99
11−import { chmodSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
13−import { join } from "node:path";
1516
1617/** What the person who approved the code allowed: each project with the highest role its agents get there, and how many agents. */
Lines 36–48 at 17 (were 35–48 at 16)
3738
38−function boxPath(server: string, home: string): string {
39− const name = createHash("sha256").update(originOf(server)).digest("hex").slice(0, 16);
40− return join(home, ".avcs", "boxes", `${name}.json`);
4242
45− const raw = JSON.parse(readFileSync(boxPath(server, home), "utf8")) as Partial<BoxRecord>;
45+ const raw = JSON.parse(readFileSync(homeFile(home, "boxes", boxFile(server)), "utf8")) as Partial<BoxRecord>;
Lines 59–66 at 17 (were 59–66 at 16)
6060
62− const path = boxPath(record.server, home);
63− mkdirSync(join(home, ".avcs", "boxes"), { recursive: true });
Lines 69–80 at 17 (were 69–83 at 16)
7171
72+/** Logout ends the sign-in everywhere on this machine: the credential under ~/.abso and any older copy under ~/.avcs. */
73− const path = boxPath(server, home);
74− try {
75− readFileSync(path);
76− } catch {
77− return false;
78− }
79− rmSync(path, { force: true });
80− return true;
74+ const paths = [homeWritePath(home, "boxes", boxFile(server)), join(home, OLD_STATE_DIR, "boxes", boxFile(server))];
8279
- MCP
- compare on this site's /mcp
- CLI
- abso diff 16 17 client/src/box.ts --json
- JSON
- /christopher/abso-core/compare/16..17?file=client%2Fsrc%2Fbox.ts&format=json