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 195 to 196

Compare

+10 −0 in 2 places
Lines 18–24 at 196 (were 18–23 at 195)
1818// ABSO_TOKEN set, the server refuses every call.
1919
2020import { type Answer, validName } from "../../worker/project/http.ts";
21+import { adviseHeld } from "./autosettle.ts";
2122import { artifactsOf, type Env, secret } from "./env.ts";
2223import type { IssuesAuth, issuesFetch } from "./issues-entry.ts";
2324import { isAgentKey, type KeyRole, keyAllows, keysEnabled, timingSame } from "./keys.ts";
Lines 269–283 at 196 (were 268–273 at 195)
268269 keyForCall,
269270 request.headers.get("Idempotency-Key") ?? undefined,
270271 )) as unknown as Answer;
272+ // A held push gets a first opinion on each collision (#19), when the server is set up for it.
273+ if (op === "publish" && env.AUTOSETTLE === "on" && env.AI && agent) {
274+ const held = a.body as { ok?: boolean; collisions?: Parameters<typeof adviseHeld>[1] };
275+ if (held.ok === false && held.collisions && held.collisions.length > 0) {
276+ const message = String((body as { message?: unknown } | undefined)?.message ?? "");
277+ const advice = await adviseHeld(env.AI, held.collisions, { agent, message });
278+ if (advice.some((x) => x !== null)) return json(a.status, { ...held, advice });
279+ }
280+ }
271281 return json(a.status, a.body);
272282 } catch (e) {
273283 const error = `the project object failed: ${e instanceof Error ? e.message : String(e)}`;
MCP
compare on this site's /mcp
CLI
abso diff 195 196 server/src/router.ts --json
JSON
/christopher/abso-core/compare/195..196?file=server%2Fsrc%2Frouter.ts&format=json