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
MCP
show on this site's /mcp
CLI
abso show 290 --json
JSON
/christopher/abso-core/versions/290?format=json

The caller header's folder is its last part on either separator, so a Windows path is cut to its folder on any machine (the caller test failed on Linux, where basename doesn't split on backslashes). Tests: client/test/caller.test.ts; tsc clean.

of shared·pinch··Not checked

Version 289 · Files at version 290

1 file, 7 lines added, 2 removed.

--- a/client/src/command-env.ts
+++ b/client/src/command-env.ts
@@ -2,7 +2,6 @@
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";
@@ -60,7 +59,13 @@
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/**