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 318

Compare

+7 −2 in 2 places
Lines 2–7 at 318 (were 2–8 at 286)
22
33import { createHash } from "node:crypto";
44import { hostname } from "node:os";
5−import { basename } from "node:path";
65import { callerHeader } from "../../src/caller.ts";
76import { Api, type News, newsLines, type RunKind, takeSeatNotices } from "./api.ts";
87import { UsageError } from "./args.ts";
Lines 59–71 at 318 (were 60–66 at 286)
6059 */
6160export function callerFor(session: string | undefined, machine: string, root: string): string | undefined {
6261 const hashed = session ? createHash("sha256").update(session).digest("hex").slice(0, 16) : undefined;
63− return callerHeader({ session: hashed, machine, folder: basename(root) });
62+ // The last part on either separator, so a Windows path names its folder on any machine.
63+ const folder =
64+ root
65+ .split(/[\\/]+/)
66+ .filter((p) => p !== "")
67+ .at(-1) ?? "";
68+ return callerHeader({ session: hashed, machine, folder });
6469}
6570
6671/**
MCP
compare on this site's /mcp
CLI
abso diff 286 318 client/src/command-env.ts --json
JSON
/christopher/abso-core/compare/286..318?file=client%2Fsrc%2Fcommand-env.ts&format=json