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

Compare

+12 −3 in 4 places
Lines 181–191 at 318 (were 181–187 at 147)
181181 );
182182}
183183
184−/** Whether `b` reads as `a` reworded: at least half their words in common. */
184+/**
185+ * Whether `b` reads as `a` reworded: at least half of `a`'s words are still
186+ * in it. Counted against `a` alone, so a rewording that keeps the line and
187+ * adds to it (a reason, the other side's number) still reads as the line.
188+ */
185189function alike(a: string, b: string): boolean {
186190 if (a === b) return true;
187191 const x = words(a);
Lines 193–199 at 318 (were 189–195 at 147)
189193 if (x.size === 0 || y.size === 0) return false;
190194 let both = 0;
191195 for (const w of x) if (y.has(w)) both++;
192− return both / (x.size + y.size - both) >= 0.5;
196+ return both / x.size >= 0.5;
193197}
194198
195199/**
Lines 264–274 at 318 (were 260–265 at 147)
260264 return y === "nothing" && t === "nothing" ? "both" : "rewrote";
261265}
262266
267+/** The message of the agent's newest held push that named `file`: its side's reason, for the settle to tell. */
268+export function heldMessage(agent: AgentState, file: string): string | undefined {
269+ return agent.held?.findLast((h) => h.message && h.files.includes(file))?.message;
270+}
263272/** What the marker reads need from a project. */
264273export interface MarkerHost {
265274 readonly graph: Graph;
Lines 352–358 at 318 (were 343–349 at 147)
343352 const out: Collision[] = [];
344353 for (const file of [...host.draftFiles(agent)].toSorted()) {
345354 if (!view.hasFile(file)) continue;
346− const lines = view.lines(file);
355+ const lines = view.buildLines(file);
347356 const added = lines.map((l, i) => (mine.has(l.atom) && isMarkerLine(l.text) ? i : -1)).filter((i) => i >= 0);
348357 if (added.length === 0) continue;
349358 const blocks = blocksIn(lines.map((l) => l.text));
MCP
compare on this site's /mcp
CLI
abso diff 147 318 worker/project/markers.ts --json
JSON
/christopher/abso-core/compare/147..318?file=worker%2Fproject%2Fmarkers.ts&format=json