Versions 86 to 318
Lines 49–59 at 318 (were 49–57 at 86)
5050
52− * What a reader may not do. Edits and records (which old edit mods send on
53− * their own) and publishes answer 200 {ok: false, reason}, so a mod only logs
54− * it; the rest are refused outright.
Lines 100–106 at 318 (were 98–104 at 86)
101− `${agent} has unpublished changes; publish or restore them (abso restore --all) before it becomes a reader`,
103+ `${agent} has unpushed changes; push or restore them (abso restore --all) before it becomes a reader`,
Lines 318–324 at 318 (were 316–322 at 86)
316318 return { status: 200, body: history.blame(q.file, num(q.from), num(q.to), num(q.version), draft, who) };
319− return { status: 200, body: history.why(q.file, line, draft, who) };
Lines 352–368 at 318 (were 350–355 at 86)
350352 const limit = q.limit !== undefined && Number.isInteger(Number(q.limit)) ? Number(q.limit) : undefined;
356+ // GET ?version=<n>&versions=<n,n>: version n of shared with those versions left out (without.ts).
360+ const version = q.version !== undefined && /^\d+$/.test(q.version) ? Number(q.version) : undefined;
362+ if (version === undefined || versions.length === 0 || versions.some((s) => !/^\s*\d+\s*$/.test(s)))
354367 // GETs: ?draft=<name> (shared when absent); log ?limit, ?path; show ?version; file ?path, ?version; compare ?from, ?to.
Lines 394–401 at 318 (were 381–387 at 86)
383396 if (from === undefined || to === undefined) return fail(400, "compare needs ?from=<number>&to=<number>");
384− return { status: 200, body: history.compare(from, to, draft, who) };
387401 if (q.version === undefined || !Number.isInteger(version)) return fail(400, "show needs ?version=<number>");
Lines 444–450 at 318 (were 430–436 at 86)
433− if (typeof message !== "string" || !message.trim()) return fail(400, "publish needs {message} saying why");
447+ if (typeof message !== "string" || !message.trim()) return fail(400, "push needs {message} saying why");
Lines 456–462 at 318 (were 442–448 at 86)
445− if (!history.syncFull) return fail(501, "a full sync needs the engine");
446460 if (label !== undefined && typeof label !== "string") return fail(400, "label must be a label name");
- MCP
- compare on this site's /mcp
- CLI
- abso diff 86 318 worker/project/http.ts --json
- JSON
- /christopher/abso-core/compare/86..318?file=worker%2Fproject%2Fhttp.ts&format=json