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 203 to 204

Compare

+2 −18 in 2 places
Lines 18–24 at 204 (were 18–24 at 203)
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";
21+import { withAdvice } from "./autosettle.ts";
2222import { artifactsOf, type Env, secret } from "./env.ts";
2323import type { IssuesAuth, issuesFetch } from "./issues-entry.ts";
2424import { isAgentKey, type KeyRole, keyAllows, keysEnabled, timingSame } from "./keys.ts";
Lines 270–276 at 204 (were 270–292 at 203)
270270 request.headers.get("Idempotency-Key") ?? undefined,
271271 )) as unknown as Answer;
272272 // 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(
278− env.AI,
279− held.collisions,
280− { agent, message },
281− {
282− ...(env.AUTOSETTLE_MODEL ? { model: env.AUTOSETTLE_MODEL } : {}),
283− ...(Number(env.AUTOSETTLE_AT) > 0 ? { at: Number(env.AUTOSETTLE_AT) } : {}),
284− },
285− );
286− if (advice.some((x) => x !== null)) return json(a.status, { ...held, advice });
287− }
288− }
289− return json(a.status, a.body);
273+ return json(a.status, await withAdvice(env, op, agent, body, a.body));
290274 } catch (e) {
291275 const error = `the project object failed: ${e instanceof Error ? e.message : String(e)}`;
292276 console.error(`${project} ${op ?? top}: ${error}`);
MCP
compare on this site's /mcp
CLI
abso diff 203 204 server/src/router.ts --json
JSON
/christopher/abso-core/compare/203..204?file=server%2Fsrc%2Frouter.ts&format=json