Versions 196 to 318
Lines 18–24 at 318 (were 18–24 at 196)
1919
21−import { adviseHeld } from "./autosettle.ts";
Lines 270–276 at 318 (were 270–284 at 196)
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(env.AI, held.collisions, { agent, message });
278− if (advice.some((x) => x !== null)) return json(a.status, { ...held, advice });
279− }
280− }
281− return json(a.status, a.body);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 196 318 server/src/router.ts --json
- JSON
- /christopher/abso-core/compare/196..318?file=server%2Fsrc%2Frouter.ts&format=json