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 142 to 143

Compare

+4 −4 in 3 places
Lines 1–7 at 143 (were 1–7 at 142)
11// The files whose text in the agent's view differs from before, and its open
22// collisions. Reads go through ChangesSinceHost; today the host is Project.
33
4−import type { AtomId, View } from "../../src/engine/index.ts";
4+import type { AtomId, ReadView } from "../../src/engine/index.ts";
55import type { Pair } from "./collisions.ts";
66import { sortKeys } from "./project-helpers.ts";
77import type { AgentState, Blobs, Collision, Files, Modes, SyncAnswer } from "./project-types.ts";
Lines 9–16 at 143 (were 9–16 at 142)
99
1010/** What a changes-since read needs from a project. */
1111export interface ChangesSinceHost {
12− agentView(agent: AgentState): View;
13− touchedFiles(ids: Iterable<AtomId>, views: readonly View[]): Set<string>;
12+ agentView(agent: AgentState): ReadView;
13+ touchedFiles(ids: Iterable<AtomId>, views: readonly ReadView[]): Set<string>;
1414 openPairs(agent: AgentState): Pair[];
1515 collision(agent: AgentState, pair: Pair): Collision;
1616 duplicates(agent: AgentState): Collision[];
Lines 18–24 at 143 (were 18–24 at 142)
1818}
1919
2020/** The files whose text in the agent's view differs from `before`, and its open collisions. */
21−export function changesSince(host: ChangesSinceHost, agent: AgentState, before: View): SyncAnswer {
21+export function changesSince(host: ChangesSinceHost, agent: AgentState, before: ReadView): SyncAnswer {
2222 const after = host.agentView(agent);
2323 // Only files that an atom in one view but not the other touches can differ.
2424 const touched = new Set<string>();
MCP
compare on this site's /mcp
CLI
abso diff 142 143 worker/project/changes-since.ts --json
JSON
/christopher/abso-core/compare/142..143?file=worker%2Fproject%2Fchanges-since.ts&format=json