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 54 to 55

Compare

+8 −3 in 4 places
Lines 24–31 at 55 (were 24–29 at 54)
2424 readonly agents: ReadonlyMap<string, AgentState>;
2525 agentView(agent: AgentState): View;
2626 draft(agent: AgentState): readonly AtomId[];
27+ /** draftFiles below, kept per agent by the host. */
28+ draftFiles(agent: AgentState): Set<string>;
2729 liveNote(agent: AgentState): Starting | undefined;
2830 queueNews(agent: AgentState, items: readonly NewsItem[], entries: Entry[]): void;
2931}
Lines 66–76 at 55 (were 64–71 at 54)
6466/** The files the agent's unpublished changes touch, in its own view. */
6567export function draftFiles(host: OverlapHost, agent: AgentState): Set<string> {
6668 const files = new Set<string>();
69+ const draft = host.draft(agent);
70+ // No draft, no view to build: most agents in a big project have nothing unpublished.
71+ if (draft.length === 0) return files;
6772 const view = host.agentView(agent);
68− for (const id of host.draft(agent)) {
73+ for (const id of draft) {
6974 const atom = host.graph.atom(id);
7075 for (const run of atom.inserts) files.add(isStartNode(run.parent) ? run.file : view.fileOf(run.parent));
7176 for (const line of atom.deletes) files.add(view.fileOf(line));
Lines 86–92 at 55 (were 81–87 at 54)
8186 .filter((other) => other !== agent && other.space === agent.space)
8287 .map((other) => ({
8388 name: other.name,
84− files: draftFiles(host, other),
89+ files: host.draftFiles(other),
8590 changesIn: (file: string) => host.draft(other).filter((id) => host.graph.filesOf(id).includes(file)).length,
8691 note: host.liveNote(other),
8792 }));
Lines 99–105 at 55 (were 94–100 at 54)
9499 * the edit.
95100 */
96101export function overlapNews(host: OverlapHost, agent: AgentState, before: ReadonlySet<string>, entries: Entry[]): void {
97− const now = draftFiles(host, agent);
102+ const now = host.draftFiles(agent);
98103 const fresh = [...now].filter((f) => !before.has(f)).toSorted();
99104 if (fresh.length === 0) return;
100105 host.queueNews(agent, overlapItems(host.draft(agent)[0] ?? "", overlaps(host, agent, fresh)), entries);
MCP
compare on this site's /mcp
CLI
abso diff 54 55 worker/project/overlaps.ts --json
JSON
/christopher/abso-core/compare/54..55?file=worker%2Fproject%2Foverlaps.ts&format=json