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

Compare

+5 −4 in 3 places
Lines 1–8 at 318 (were 1–7 at 2)
1+import { View } from "../../src/engine/index.ts";
12// Move an agent to a named draft, or back to shared. Writes go through
23// SwitchHost; today the host is Project.
34
4−import { type AtomId, type Graph, View } from "../../src/engine/index.ts";
5+import type { AtomId, Graph, ReadView } from "../../src/engine/index.ts";
56import { ProjectError } from "./project-error.ts";
67import { checkDraftName } from "./project-helpers.ts";
78import type { AgentState, Entry, SwitchAnswer, SyncAnswer } from "./project-types.ts";
Lines 13–25 at 318 (were 12–24 at 2)
1213 agent(name: string, entries: Entry[]): AgentState;
1314 flush(entries: Entry[]): void;
1415 readonly spaces: ReadonlyMap<string, Space>;
15− agentView(agent: AgentState): View;
16+ agentView(agent: AgentState): ReadView;
1617 readonly graph: Graph;
1718 version(): number;
1819 apply(entry: Entry): void;
1920 draft(agent: AgentState): readonly AtomId[];
2021 setOf(space: Space): ReadonlySet<AtomId>;
21− changesSince(agent: AgentState, before: View): SyncAnswer;
22+ changesSince(agent: AgentState, before: ReadView): SyncAnswer;
2223}
2324
2425/**
Lines 66–72 at 318 (were 65–71 at 2)
6566 if (host.graph.atom(id).deps.some((d) => !into.has(d))) {
6667 throw new ProjectError(
6768 "bad-request",
68− `your unpublished changes build on changes that shared doesn't have yet (they're in draft ${agent.space}); publish them there first, or switch without carrying`,
69+ `your unpushed changes build on changes that shared doesn't have yet (they're in draft ${agent.space}); push them there first, or switch without carrying`,
6970 );
7071 }
7172 }
MCP
compare on this site's /mcp
CLI
abso diff 2 318 worker/project/switch-to.ts --json
JSON
/christopher/abso-core/compare/2..318?file=worker%2Fproject%2Fswitch-to.ts&format=json