Versions 292 to 293
Lines 33–39 at 293 (were 33–39 at 292)
36−import { STAMP } from "./stamp.ts";
3737
Lines 184–205 at 293 (were 184–202 at 292)
184184
187+/** How long abso hook may take on a local project's edit: it waits up to two minutes for the store's lock. */
187189
194+ /** What abso hook handed back for the agent, on a local project's edit (it keeps the news log itself). */
195199 } else if (/"reader"\s*:\s*true/.test((await readOr($, `${await stateOf($, job.root)}/config.json`)) ?? "")) {
197201 } else if (LOCAL_FOLDER.test((await readOr($, `${await stateOf($, job.root)}/config.json`)) ?? "")) {
198− // A local project's history is in a store on this machine, which only the abso command opens.
199− outcome = "skipped: a local project; abso record sends its edits";
Lines 220–230 at 293 (were 217–227 at 292)
218221 `${new Date(job.queuedAt).toISOString()}\t${job.tool}\t${job.rel}\t${outcome}\t${done - started}ms sending, ${started - job.queuedAt}ms queued (in process, async)\t${CLIENT}`,
220− const context = newsContext(news);
224− await log($, job.root, news.map((n) => `${at}\t${n}`).join("\n"), "news.log");
227+ if (news.length > 0) await log($, job.root, news.map((n) => `${at}\t${n}`).join("\n"), "news.log");
Lines 237–279 at 293 (were 234–239 at 292)
236239
241+ * A local project's history is in a store on this machine that only the abso command opens, so its edits go to
242+ * `abso hook` from the checkout this mod was installed from, as Claude Code's command hook would run it.
244+async function handToClient($: Engine, job: Job): Promise<{ outcome: string; context?: string }> {
248+ "skipped: a local project, and this mod has no abso to hand it to (install-mod.ts adds one); abso record sends it",
263+ if (ran.exitCode !== 0) throw new Error(`abso hook exited ${ran.exitCode}: ${ran.stderr.trim().split("\n").at(-1)}`);
269+ : (JSON.parse(out) as { hookSpecificOutput?: { additionalContext?: unknown } }).hookSpecificOutput
276+
237277/** Ask for the news waiting for this agent (announcements, collisions) and hand it to the model. */
- MCP
- compare on this site's /mcp
- CLI
- abso diff 292 293 client/hooks/register.ts --json
- JSON
- /christopher/abso-core/compare/292..293?file=client%2Fhooks%2Fregister.ts&format=json