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 159 to 160

Compare

+13 −6 in 2 places
Lines 112–118 at 160 (were 112–117 at 159)
112112 }
113113 host.joinChange(agent, entry, at, space.name === SHARED ? null : space.name);
114114 agent.marked = agent.marked.filter((r) => r.space !== (entry.space ?? SHARED));
115+ delete agent.held;
115116 if (entry.queued !== undefined) host.setQueued(host.queued().filter((q) => q.id !== entry.queued));
116117 break;
117118 }
Lines 244–272 at 160 (were 243–265 at 159)
243244 via: entry.via,
244245 time: entry.time,
245246 collisions: entry.collisions.map((c) => ({ ...c })),
247+ ...(entry.message ? { message: entry.message } : {}),
246248 });
247249 {
248250 // On the change the agent was working on, when there is one (#44).
249251 const agent = host.agentOf(entry.agent);
250252 host.active(agent, entry.time);
251253 const id = host.currentChange(agent, entry.time);
254+ const refusal = {
255+ at,
256+ time: entry.time,
257+ kinds: [...new Set(entry.collisions.map((c) => c.kind))].sort(),
258+ files: [...new Set(entry.collisions.map((c) => c.file))].sort(),
259+ ...(entry.message ? { message: entry.message } : {}),
260+ };
252261 if (id !== undefined) {
253262 const rec = host.changeRecord(id, agent, entry.time);
254− rec.refusals.push({
255− at,
256− time: entry.time,
257− kinds: [...new Set(entry.collisions.map((c) => c.kind))].sort(),
258− files: [...new Set(entry.collisions.map((c) => c.file))].sort(),
259− });
263+ rec.refusals.push({ ...refusal, files: [...refusal.files], kinds: [...refusal.kinds] });
260264 rec.last = at;
261265 host.changes.set(id, rec);
262266 }
267+ // Kept until it pushes: the settle tells the held push's reason, and its change lists the refusal.
268+ if (entry.via === "publish")
269+ agent.held = [...(agent.held ?? []), { ...refusal, ...(id !== undefined ? { change: id } : {}) }];
263270 }
264271 break;
265272 case "switch": {
MCP
compare on this site's /mcp
CLI
abso diff 159 160 worker/project/apply-entry.ts --json
JSON
/christopher/abso-core/compare/159..160?file=worker%2Fproject%2Fapply-entry.ts&format=json