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 94 to 95

Compare

+9 −3 in 2 places
Lines 36–43 at 95 (were 36–43 at 94)
3636
3737const NAME = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
3838
39−function agentFrom(args: Parsed): string {
40− const agent = str(args, "agent");
39+function agentFrom(args: Parsed, named?: string): string {
40+ const agent = named ?? str(args, "agent");
4141 if (!agent) throw new UsageError("give this folder's agent name with --agent <name>");
4242 if (!NAME.test(agent))
4343 throw new UsageError(`agent names are letters, digits, dot, dash and underscore (got ${JSON.stringify(agent)})`);
Lines 193–205 at 95 (were 193–199 at 94)
193193 let minted: { key: string; id: string } | undefined;
194194 if (str(args, "agent") !== undefined) {
195195 agent = agentFrom(args);
196− minted = box && !hasKey ? await mintKey(box, project, agent) : undefined;
196+ minted = box && !hasKey && !fromEnv(env.env, "KEY_FILE") ? await mintKey(box, project, agent) : undefined;
197+ } else if (fromEnv(env.env, "KEY_FILE")) {
198+ // A pipeline run's key (ABSO_KEY_FILE) belongs to one agent, which the runner names in ABSO_AGENT.
199+ const named = fromEnv(env.env, "AGENT");
200+ if (!named)
201+ throw new UsageError("a pipeline run's key joins as its own agent: give it with --agent <name> or ABSO_AGENT");
202+ agent = agentFrom(args, named);
197203 } else {
198204 // No --agent: the box's name, or the next free -2, -3. Not signed in, --reader reads a public project signed out.
199205 if (!box && reader && !hasKey && (await isPublic(server, project)))
MCP
compare on this site's /mcp
CLI
abso diff 94 95 client/src/join-commands.ts --json
JSON
/christopher/abso-core/compare/94..95?file=client%2Fsrc%2Fjoin-commands.ts&format=json