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

+7 −6 in 4 places
Lines 1–7 at 318 (were 1–7 at 2)
11// Move a file in the agent's draft. Writes go through MoveHost; today the
22// host is Project.
33
4−import type { EditInput, Hunk, MoveInput, View } from "../../src/engine/index.ts";
4+import type { EditInput, Hunk, MoveInput, ReadView } from "../../src/engine/index.ts";
55import { checkPath } from "./path-rules.ts";
66import { pathKey } from "./pathkey.ts";
77import { ProjectError } from "./project-error.ts";
Lines 11–22 at 318 (were 11–22 at 2)
1111export interface MoveHost {
1212 needInit(): void;
1313 readonly agents: ReadonlyMap<string, AgentState>;
14− agentView(agent: AgentState): View;
15− sharedView(): View;
14+ agentView(agent: AgentState): ReadView;
15+ sharedView(): ReadView;
1616 agent(name: string, entries: Entry[]): AgentState;
1717 addDraft(
1818 agent: AgentState,
19− view: View,
19+ view: ReadView,
2020 input: { edits: readonly EditInput[]; move?: MoveInput },
2121 time: number,
2222 meta: Meta,
Lines 24–30 at 318 (were 24–30 at 2)
2424 ): void;
2525 recordFile(
2626 agent: AgentState,
27− view: View,
27+ view: ReadView,
2828 path: string,
2929 text: string | null | undefined,
3030 time: number,
Lines 73–81 at 318 (were 73–80 at 2)
7373 const lines = view.lines(from).length;
7474 const mode: Mode = { exec: attrs.exec, link: attrs.link };
7575 if (lines > 0 && attrs.blob === null) {
76+ const text = view.text(from);
7677 host.addDraft(agent, view, { edits: [], move: { file: from, start: 0, end: lines, to, at: 0 } }, time, {}, entries);
77− host.recordFile(agent, host.agentView(agent), to, view.text(from), time, {}, entries, mode);
78+ host.recordFile(agent, host.agentView(agent), to, text, time, {}, entries, mode);
7879 } else {
7980 // A binary or empty file has no lines to carry: the new name takes its blob and modes.
8081 host.recordFile(agent, host.agentView(agent), to, "", time, {}, entries, mode, attrs.blob ?? undefined);
MCP
compare on this site's /mcp
CLI
abso diff 2 318 worker/project/move.ts --json
JSON
/christopher/abso-core/compare/2..318?file=worker%2Fproject%2Fmove.ts&format=json