Versions 228 to 318
Lines 1–9 at 318 (were 1–6 at 228)
11// What every abso command shares: its output, its environment, the folder it opens, and the news it took.
22
3−import { Api, type News, newsLines, type RunKind } from "./api.ts";
Lines 22–29 at 318 (were 19–24 at 228)
25+ /** --token-file: this machine's ~/.abso/token may sign in, where nothing else does. Never read otherwise. */
2429 /** What a box run is for, when a command runs one for its own ends (shot, bisect, publish --check). */
Lines 47–74 at 318 (were 42–52 at 228)
4348 `You're not in an abso folder: ${env.cwd} has no .abso/config.json, nor does any folder above it. abso join <project> makes one, or abso init a new project.`,
45− const config = readConfig(root, env.env);
46− return { root, config, api: new Api(config) };
4855
57+ * The caller header for this chat, computer and folder. The chat's session id goes as a short SHA-256 of it and the
58+ * folder as its last part, so neither the raw id nor the path (which names the person) leaves the machine.
60+export function callerFor(session: string | undefined, machine: string, root: string): string | undefined {
61+ const hashed = session ? createHash("sha256").update(session).digest("hex").slice(0, 16) : undefined;
70+
Lines 76–82 at 318 (were 54–60 at 228)
57− return takenNews.splice(0);
5981
- MCP
- compare on this site's /mcp
- CLI
- abso diff 228 318 client/src/command-env.ts --json
- JSON
- /christopher/abso-core/compare/228..318?file=client%2Fsrc%2Fcommand-env.ts&format=json