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

Compare

+8 −5 in 3 places
Lines 1–7 at 318 (were 1–7 at 30)
11// An agent's unpublished changes, file by file. They read through DraftDiffHost; today the host is the project
22// in memory.
33
4−import type { AtomId, View } from "../../src/engine/index.ts";
4+import type { AtomId, ReadView } from "../../src/engine/index.ts";
55import { ProjectError } from "./project-error.ts";
66import type { DiffAnswer } from "./project-types.ts";
77import { SHARED } from "./spaces.ts";
Lines 17–26 at 318 (were 17–25 at 30)
1717 readonly agents: ReadonlyMap<string, Agent>;
1818 needInit(): void;
1919 draft(agent: Agent): AtomId[];
20− agentView(agent: Agent): View;
21− view(set: ReadonlySet<AtomId>): View;
22− touchedFiles(ids: Iterable<AtomId>, views: readonly View[]): Set<string>;
20+ agentView(agent: Agent): ReadView;
21+ agentViewWithout?(agent: Agent, excluded: ReadonlySet<AtomId>): ReadView;
22+ view(set: ReadonlySet<AtomId>): ReadView;
23+ touchedFiles(ids: Iterable<AtomId>, views: readonly ReadView[]): Set<string>;
2324}
2425
2526/** An agent's draft diff for a reader (#41, the website): never creates the agent, never writes. */
Lines 36–44 at 318 (were 35–41 at 30)
3536 const draft = host.draft(agent);
3637 const after = host.agentView(agent);
3738 const without = new Set(draft);
38− const before = host.view(new Set([...after.set].filter((id) => !without.has(id))));
39+ const before = host.agentViewWithout
40+ ? host.agentViewWithout(agent, without)
41+ : host.view(new Set([...after.set].filter((id) => !without.has(id))));
3942 const files = host.touchedFiles(draft, [before, after]);
4043 return {
4144 draft: agent.space === SHARED ? null : agent.space,
MCP
compare on this site's /mcp
CLI
abso diff 30 318 worker/project/draft-diff.ts --json
JSON
/christopher/abso-core/compare/30..318?file=worker%2Fproject%2Fdraft-diff.ts&format=json