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 190 to 191

Compare

+16 −5 in 2 places
Lines 1–14 at 191 (were 1–13 at 190)
1−// Ask Jev how to settle each marker block in one file (#19), the way abso pull
2−// leaves a held push's file. Prints Jev's pick and its probabilities; changes nothing.
1+// Ask a model how to settle each marker block in one file (#19), the way abso
2+// pull leaves a held push's file. Prints its pick; changes nothing.
33//
4−// node scripts/autosettle/settle-one.ts <file> [--message "<your held push's message>"] [--issue "..."] [--name <path in the project>] [--json]
4+// node scripts/autosettle/settle-one.ts <file> [--via workers-ai|jev] [--model <id>] [--message "<your held push's message>"] [--issue "..."] [--name <path in the project>] [--json]
55//
6−// Needs JEV_API_KEY in the environment.
6+// --via workers-ai (the default) needs workers-ai/ running under wrangler dev; --via jev needs JEV_API_KEY.
77
88import { readFileSync } from "node:fs";
99import { findBlocks } from "../../client/src/settle.ts";
1010import { ask, dollars, type Hold, PICKS } from "./jev.ts";
11+import { askWorkersAi } from "./workers-ai.ts";
1112
1213const CONTEXT = 15;
1314const CLOSE = /^>>>>>>> theirs: (.*?), version (\d+) "(.*)"$/;
Lines 58–75 at 191 (were 57–64 at 190)
5758 process.exit(1);
5859 }
5960 const results = [];
61+ const model = flag(args, "--model") ? { model: flag(args, "--model")! } : {};
6062 for (const [i, h] of holds.entries()) {
61− const v = await ask(h);
63+ if (flag(args, "--via") !== "jev") {
64+ const w = await askWorkersAi(h, model);
65+ results.push({ block: i + 1, ...w });
66+ if (!args.includes("--json"))
67+ console.log(
68+ `Block ${i + 1} of ${holds.length} in ${h.file}: ${w.pick}, confidence ${w.confidence.toFixed(2)}\n ${w.reason}\n ${w.model}, ${w.ms.toFixed(0)} ms (model ${w.modelMs} ms), ${w.inputTokens} input tokens`,
69+ );
70+ continue;
71+ }
72+ const v = await ask(h, model);
6273 results.push({ block: i + 1, ...v });
6374 if (args.includes("--json")) continue;
6475 const pct = (x: number) => `${(x * 100).toFixed(0)}%`;
MCP
compare on this site's /mcp
CLI
abso diff 190 191 scripts/autosettle/settle-one.ts --json
JSON
/christopher/abso-core/compare/190..191?file=scripts%2Fautosettle%2Fsettle-one.ts&format=json