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 192 to 318

Compare

+11 −1 in 2 places
Lines 1–13 at 318 (were 1–12 at 192)
11// Ask a model how to settle each marker block in one file (#19), the way abso
22// pull leaves a held push's file. Prints its pick; changes nothing.
33//
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]
4+// node scripts/autosettle/settle-one.ts <file> [--via workers-ai|clef|jev] [--model <id>] [--message "<your held push's message>"] [--issue "..."] [--name <path in the project>] [--json]
55//
66// --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";
10+import { askClef } from "./clef.ts";
1011import { ask, dollars, type Hold, PICKS } from "./jev.ts";
1112import { askWorkersAi } from "./workers-ai.ts";
1213
Lines 61–75 at 318 (were 60–65 at 192)
6061 const results = [];
6162 const model = flag(args, "--model") ? { model: flag(args, "--model")! } : {};
6263 for (const [i, h] of holds.entries()) {
64+ if (flag(args, "--via") === "clef") {
65+ const c = await askClef(h, { model: (flag(args, "--model") as "clef" | "clef-flash" | undefined) ?? "clef" });
66+ results.push({ block: i + 1, ...c });
67+ if (!args.includes("--json"))
68+ console.log(
69+ `Block ${i + 1} of ${holds.length} in ${h.file}: ${c.pick}, confidence ${c.confidence.toFixed(2)} (${c.by}${c.modelPick ? `, Clef said ${c.modelPick}` : ""})\n probabilities: ${PICKS.map((k) => `${k} ${(c.probabilities[k] * 100).toFixed(0)}%`).join(", ")}\n ${c.model}, ${c.ms.toFixed(0)} ms`,
70+ );
71+ continue;
72+ }
6373 if (flag(args, "--via") !== "jev") {
6474 const w = await askWorkersAi(h, model);
6575 results.push({ block: i + 1, ...w });
MCP
compare on this site's /mcp
CLI
abso diff 192 318 scripts/autosettle/settle-one.ts --json
JSON
/christopher/abso-core/compare/192..318?file=scripts%2Fautosettle%2Fsettle-one.ts&format=json