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 265 to 266

Compare

+13 −3 in 4 places
Lines 281–291 at 266 (were 281–286 at 265)
281281 return "json" in frame ? (JSON.parse(frame.json) as Entry) : frame.entry;
282282}
283283
284+/** Where a view and its base place moved lines differently (View.placedDifferently), when both are Views. */
285+function placedBetween(view: ReadView, base: ReadView): ReadonlySet<string> | undefined {
286+ return view instanceof View && base instanceof View ? view.placedDifferently(base) : undefined;
287+}
284289export class Project {
285290 readonly #store: ProjectStore;
286291 readonly #writerStorage?: GraphStateStorage;
Lines 1846–1853 at 266 (were 1841–1847 at 265)
18411846 #agentTouched(agent: AgentState): ReadonlySet<string> | undefined {
18421847 if (agent.mine.length === 0) return new Set();
18431848 const base = this.#viewAt(this.#spaceOf(agent), agent.base);
1844− return touchedBeyond(this.#graph, base.set, agent.mine, [base, this.#agentView(agent)]);
1849+ const view = this.#agentView(agent);
1850+ return touchedBeyond(this.#graph, base.set, agent.mine, [base, view], () => placedBetween(view, base));
18451851 }
18461852
18471853 /**
Lines 1998–2006 at 266 (were 1992–1998 at 265)
19921998 );
19931999 if (this.#writerStorage && mine.length > 0 && view instanceof View && base instanceof View) {
19942000 view.shareMoves(base);
1995− view.shareFiles(base, () => touchedBeyond(this.#graph, base.set, mine, [base, view]));
2001+ view.shareFiles(base, () =>
2002+ touchedBeyond(this.#graph, base.set, mine, [base, view], () => placedBetween(view, base)),
2003+ );
19962004 }
19972005 return view;
19982006 }
Lines 2860–2868 at 266 (were 2852–2858 at 265)
28522860 // view holds beyond its base is the draft and whatever the draft depends on that the base lacks (the view's
28532861 // set is closed): each of those can change a file, so all of them count.
28542862 const mine = agent.mine;
2855− view.shareFiles(base, () => touchedBeyond(this.#graph, base.set, mine, [base, view]));
2863+ view.shareFiles(base, () =>
2864+ touchedBeyond(this.#graph, base.set, mine, [base, view], () => placedBetween(view, base)),
2865+ );
28562866 }
28572867 }
28582868 return view;
MCP
compare on this site's /mcp
CLI
abso diff 265 266 worker/project/project.ts --json
JSON
/christopher/abso-core/compare/265..266?file=worker%2Fproject%2Fproject.ts&format=json