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 5 to 6

Compare

+15 −0 in 1 place
Lines 64–84 at 6 (were 64–69 at 5)
6464]);
6565
6666/** Files of prose, whose words are not code: Markdown, plain text, READMEs and the like. */
67+/** Data files: no code defines or uses a name in them, however big they are (abso issue 158). */
68+const DATA_EXTENSIONS = new Set(["json", "jsonc", "json5", "jsonl", "ndjson", "geojson", "csv", "tsv", "lock", "svg"]);
70+/**
71+ * Whether the definition rule passes over a file: prose, or data. Scanning a
72+ * 23,000-line JSON fixture for definitions it can't hold cost a big publish
73+ * hundreds of milliseconds, and its keys could pass for uses of code names.
74+ */
75+export function holdsNoCode(path: string): boolean {
76+ if (isProse(path)) return true;
77+ const base = path.slice(path.lastIndexOf("/") + 1).toLowerCase();
78+ const dot = base.lastIndexOf(".");
79+ return dot > 0 && DATA_EXTENSIONS.has(base.slice(dot + 1));
80+}
6782export function isProse(path: string): boolean {
6883 const base = path.slice(path.lastIndexOf("/") + 1).toLowerCase();
6984 const dot = base.lastIndexOf(".");
MCP
compare on this site's /mcp
CLI
abso diff 5 6 worker/project/names.ts --json
JSON
/christopher/abso-core/compare/5..6?file=worker%2Fproject%2Fnames.ts&format=json