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

Compare

+8 −1 in 2 places
Lines 16–22 at 318 (were 16–21 at 161)
1616 view(set: ReadonlySet<AtomId>): ReadView;
1717 agentSet(agent: AgentState): Set<AtomId>;
1818 agentView(agent: AgentState): ReadView;
19+ agentViewWithout?(agent: AgentState, excluded: ReadonlySet<AtomId>): ReadView;
1920 recordFile(
2021 agent: AgentState,
2122 view: ReadView,
Lines 65–79 at 318 (were 64–72 at 161)
6465 // Whatever is still changed in a target goes back with a new change.
6566 const now = host.draft(agent);
6667 const without = new Set(now);
67− const original = host.view(new Set([...host.agentSet(agent)].filter((id) => !without.has(id))));
68+ const originalAgent = { ...agent, mine: [...agent.mine] };
69+ const originalView = () =>
70+ host.agentViewWithout
71+ ? host.agentViewWithout(originalAgent, without)
72+ : host.view(new Set([...host.agentSet(originalAgent)].filter((id) => !without.has(id))));
6873 for (const path of [...targets].toSorted()) {
6974 if (!touched.has(path)) continue;
75+ // A previous file may have mutated the graph. Reopen the same base view.
76+ const original = originalView();
7077 const was = original.attrs(path);
7178 host.recordFile(
7279 agent,
MCP
compare on this site's /mcp
CLI
abso diff 161 318 worker/project/restore.ts --json
JSON
/christopher/abso-core/compare/161..318?file=worker%2Fproject%2Frestore.ts&format=json