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 162 to 163

Compare

+24 −0 in 4 places
Lines 1837–1846 at 163 (were 1837–1842 at 162)
18371837 needInit: () => this.#needInit(),
18381838 draft: (agent) => this.#draft(agent as AgentState),
18391839 agentView: (agent) => this.#agentView(agent as AgentState),
1840+ agentViewWithout: (agent, excluded) => {
1841+ const state = agent as AgentState;
1842+ return this.#agentView({ ...state, mine: state.mine.filter((id) => !excluded.has(id)) });
1843+ },
18401844 view: (set) => this.#view(set),
18411845 touchedFiles: (ids, views) => this.#touchedFiles(ids, views),
18421846 };
Lines 2097–2114 at 163 (were 2093–2098 at 162)
20932097 graph: this.#graph,
20942098 checkerReady: () => this.checkerReady,
20952099 sharedView: () => this.#sharedView(),
2100+ sharedOverlay: (atoms) =>
2101+ this.#viewKeyed(`a @${last(this.#shared)}+${atoms.join(",")}`, () =>
2102+ unionOverlay(this.#setOf(this.#shared), atoms),
2103+ ),
2104+ sharedAgentOverlay: (agent, atoms) => {
2105+ const current = this.#setOf(this.#shared);
2106+ const added = new Set([...atoms, ...agent.mine]);
2107+ // Retain old-base atoms absent from current shared, without copying shared history.
2108+ if (agent.base !== last(this.#shared))
2109+ for (const id of this.#at(this.#spaceOf(agent), agent.base)) if (!current.has(id)) added.add(id);
2110+ return this.#viewKeyed(`a @${last(this.#shared)}+${[...added].join(",")}`, () => unionOverlay(current, added));
2111+ },
20962112 queued: () => this.#queue,
20972113 queuedId: () => this.#queuedId,
20982114 checkingHas: (id) => this.#checking.has(id),
Lines 2264–2271 at 163 (were 2248–2253 at 162)
22482264 view: (set) => this.#view(set),
22492265 agentSet: (agent) => this.#agentSet(agent),
22502266 agentView: (agent) => this.#agentView(agent),
2267+ agentViewWithout: (agent, excluded) =>
2268+ this.#agentView({ ...agent, mine: agent.mine.filter((id) => !excluded.has(id)) }),
22512269 recordFile: (agent, view, path, text, time, meta, entries, mode, blob, hunks) =>
22522270 this.#recordFile(agent, view, path, text, time, meta, entries, mode, blob, hunks),
22532271 flush: (entries) => this.#flush(entries),
Lines 2296–2307 at 163 (were 2278–2283 at 162)
22782296 agent: (name, entries) => this.#agent(name, entries),
22792297 spaceOf: (agent) => this.#spaceOf(agent),
22802298 agentView: (agent) => this.#agentView(agent),
2299+ captureAgentView: (agent) => {
2300+ const key = this.#agentViewKey(agent);
2301+ const original = this.#agentView(agent);
2302+ // Projected readers reopen the immutable key; only the in-memory fallback uses the original set.
2303+ return () => this.#viewKeyed(key, () => original.set);
2304+ },
22812305 at: (space, version) => this.#at(space, version),
22822306 draft: (agent) => this.#draft(agent),
22832307 strandedFiles: (draft, set) => this.#strandedFiles(draft, set),
MCP
compare on this site's /mcp
CLI
abso diff 162 163 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/162..163?file=worker%2Fproject%2Fproject.ts&format=json