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

Compare

+6 −3 in 3 places
Lines 2–8 at 318 (were 2–8 at 74)
22// the news when a draft first touches one. Reads and news writes go through
33// OverlapHost; today the host is Project. overlapsOf is the pure match.
44
5−import { type AtomId, type Graph, isStartNode, type View } from "../../src/engine/index.ts";
5+import { type AtomId, type Graph, isStartNode, type ReadView } from "../../src/engine/index.ts";
66import { matchesPattern, pathsInText, patternsMeet } from "./globs.ts";
77import { type NewsItem, overlapItems } from "./news.ts";
88import type { AgentState, Entry, Overlap, Starting } from "./project-types.ts";
Lines 22–28 at 318 (were 22–28 at 74)
2222export interface OverlapHost {
2323 readonly graph: Graph;
2424 readonly agents: ReadonlyMap<string, AgentState>;
25− agentView(agent: AgentState): View;
25+ agentView(agent: AgentState): ReadView;
2626 draft(agent: AgentState): readonly AtomId[];
2727 /** draftFiles below, kept per agent by the host. */
2828 draftFiles(agent: AgentState): Set<string>;
Lines 70–82 at 318 (were 70–79 at 74)
7070 // No draft, no view to build: most agents in a big project have nothing unpublished.
7171 if (draft.length === 0) return files;
7272 const view = host.agentView(agent);
73+ // By number where the view can (abso Capacity): a draft deleting a big generated file looked up each line's id.
74+ const byNumber = (view as { fileOfNumber?(n: number): string }).fileOfNumber?.bind(view);
7375 for (const id of draft) {
7476 const atom = host.graph.atom(id);
7577 for (const run of atom.inserts) files.add(isStartNode(run.parent) ? run.file : view.fileOf(run.parent));
76− for (const line of atom.deletes) files.add(view.fileOf(line));
78+ if (byNumber) for (const n of host.graph.deletedNumbers(id)) files.add(byNumber(n));
79+ else for (const line of atom.deletes) files.add(view.fileOf(line));
7780 for (const m of atom.moves ?? []) files.add(view.fileOf(m.line));
7881 }
7982 return files;
MCP
compare on this site's /mcp
CLI
abso diff 74 318 worker/project/overlaps.ts --json
JSON
/christopher/abso-core/compare/74..318?file=worker%2Fproject%2Foverlaps.ts&format=json