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

+10 −8 in 3 places
Lines 1–9 at 318 (were 1–9 at 2)
11// Take in commits a person pushed with plain git. Writes go through IngestHost; today the host is Project.
22
3−import { type AtomId, canonicalText, type Hunk, type View } from "../../src/engine/index.ts";
3+import { type AtomId, canonicalText, type Hunk, type ReadView } from "../../src/engine/index.ts";
44import { checkPath } from "./path-rules.ts";
55import { ProjectError } from "./project-error.ts";
6−import { configProblem } from "./project-helpers.ts";
6+import { configProblem, PROJECT_FILES } from "./project-helpers.ts";
77import type { AgentState, Entry, IngestAnswer, LandAnswer, Meta, Mode, Modes, PublishAnswer } from "./project-types.ts";
88import type { Space } from "./spaces.ts";
99import { clashInPaths } from "./spelling.ts";
Lines 20–32 at 318 (were 20–32 at 2)
2020 wholeOut(
2121 files: Readonly<Record<string, string | null>>,
2222 blobs: Readonly<Record<string, string>>,
23− view: View | undefined,
23+ view: ReadView | undefined,
2424 config?: string,
2525 ): { files: Record<string, string | null>; blobs: Record<string, string> };
26− agentView(agent: AgentState): View;
26+ agentView(agent: AgentState): ReadView;
2727 recordFile(
2828 agent: AgentState,
29− view: View,
29+ view: ReadView,
3030 path: string,
3131 text: string | null | undefined,
3232 time: number,
Lines 103–113 at 318 (were 103–111 at 2)
103103 "conflict",
104104 `commit ${c.sha.slice(0, 12)}: ${clash} (#49); rename one with git mv and push again`,
105105 );
106− const config = typeof c.files["avcs.json"] === "string" ? configProblem(c.files["avcs.json"]) : undefined;
107− if (config)
108− throw new ProjectError("conflict", `commit ${c.sha.slice(0, 12)}: avcs.json ${config}; fix it and push again`);
106+ for (const name of PROJECT_FILES) {
107+ const config = typeof c.files[name] === "string" ? configProblem(c.files[name]) : undefined;
108+ if (config)
109+ throw new ProjectError("conflict", `commit ${c.sha.slice(0, 12)}: ${name} ${config}; fix it and push again`);
110+ }
109111 }
110112 const name = `git-${input.commits[0]!.sha.slice(0, 12)}`;
111113 if (host.agents.has(name) || host.spaces.has(name)) {
MCP
compare on this site's /mcp
CLI
abso diff 2 318 worker/project/ingest.ts --json
JSON
/christopher/abso-core/compare/2..318?file=worker%2Fproject%2Fingest.ts&format=json