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

Compare

+6 −1 in 3 places
Lines 14–20 at 318 (were 14–19 at 157)
1414 agent(name: string, entries: Entry[]): AgentState;
1515 spaceOf(agent: AgentState): Space;
1616 agentView(agent: AgentState): ReadView;
17+ captureAgentView?(agent: AgentState): () => ReadView;
1718 at(space: Space, version: number): ReadonlySet<AtomId>;
1819 draft(agent: AgentState): AtomId[];
1920 strandedFiles(draft: readonly AtomId[], set: ReadonlySet<AtomId>): string[];
Lines 51–57 at 318 (were 50–55 at 157)
5051 throw new ProjectError("bad-request", `no version of shared has the label ${JSON.stringify(options.label)}`);
5152 target = versions[versions.length - 1]!;
5253 }
54+ const reopenBefore = agent.synced ? host.captureAgentView?.(agent) : undefined;
5355 const before = agent.synced ? host.agentView(agent) : new View(host.graph, []);
5456 const set = host.at(space, target);
5557 const stranded = host.strandedFiles(host.draft(agent), set);
Lines 88–97 at 318 (were 86–92 at 157)
8688 }
8789 const merged = host.mergeIdentical(agent, before, oldBase, oldVersion, Date.now(), entries);
8890 // full (#37, a partial join): every file in the view, as for a first sync, whatever the folder had.
89− const answer = host.changesSince(agent, options.full ? new View(host.graph, []) : before);
91+ const answer = host.changesSince(
92+ agent,
93+ options.full ? new View(host.graph, []) : reopenBefore ? reopenBefore() : before,
94+ );
9095 host.flush(entries);
9196 return merged.length > 0 ? { ...answer, merged } : answer;
9297}
MCP
compare on this site's /mcp
CLI
abso diff 157 318 worker/project/sync.ts --json
JSON
/christopher/abso-core/compare/157..318?file=worker%2Fproject%2Fsync.ts&format=json