Versions 191 to 192
Lines 1–7 at 192 (were 1–6 at 191)
11// Ask the local auto-settle Worker (workers-ai/, run with wrangler dev) how a hold should be settled (#19).
22
45
67
Lines 15–48 at 192 (were 14–27 at 191)
18+ /** rule: code decided without the model. turned down: the model's pick would break the file, so an agent settles. */
1823
19−export async function askWorkersAi(h: Hold, opts: { model?: string; url?: string } = {}): Promise<ModelVerdict> {
30+ if (rule) return { ...rule, confidence: 1, model: "rule", ms: 0, modelMs: 0, inputTokens: 0, by: "rule" };
35+
36+async function askModel(h: Hold, opts: { model?: string; url?: string; samples?: number }): Promise<ModelVerdict> {
24− body: JSON.stringify({ hold: h, ...(opts.model ? { model: opts.model } : {}) }),
Lines 62–67 at 192 (were 41–45 at 191)
- MCP
- compare on this site's /mcp
- CLI
- abso diff 191 192 scripts/autosettle/workers-ai.ts --json
- JSON
- /christopher/abso-core/compare/191..192?file=scripts%2Fautosettle%2Fworkers-ai.ts&format=json