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 0 to 1 of names-only-client

Compare

+21 −11 in 10 places
Lines 20–26 at 1 (were 20–26 at 0)
2020 return `${path} isn't in composed Unicode form (NFC), so other agents' tools may spell it differently; abso mv can rename it to the composed form.`;
2121}
2222
23−/** .avcs/lock: one writer at a time for the folder's own records (#51). */
23+/** .abso/lock: one writer at a time for the folder's own records (#51). */
2424export const LOCK_FILE = "lock";
2525/**
2626 * A lock not renewed for this long was left behind, even if its process id
Lines 36–42 at 1 (were 36–42 at 0)
3636 readonly what: string;
3737}
3838
39−/** Whether .avcs/lock's text says a command is changing the folder now. For the mod, which can't ask whether a process runs. */
39+/** Whether .abso/lock's text says a command is changing the folder now. For the mod, which can't ask whether a process runs. */
4040export function lockHeld(text: string | undefined, now: number): boolean {
4141 if (text === undefined) return false;
4242 try {
Lines 89–95 at 1 (were 89–95 at 0)
8989
9090/**
9191 * The servers abso sends the token to on its own (#30): abso's hosted server and its Issues Worker.
92− * A folder's .avcs/config.json can name any server, and a planted or cloned
92+ * A folder's .abso/config.json can name any server, and a planted or cloned
9393 * one would otherwise receive every edit with the token. Others are trusted by
9494 * this machine's ~/.abso/servers.json (machineServers) or ABSO_TRUSTED_SERVERS
9595 * (comma-separated): a server you run yourself, or a test one.
Lines 146–152 at 1 (were 146–152 at 0)
146146}
147147
148148/**
149− * The Issues Worker beside an avcs server (#54): this machine's servers.json
149+ * The Issues Worker beside an abso server (#54): this machine's servers.json
150150 * first, then abso's own. ABSO_ISSUES_SERVER overrides both (issues.ts).
151151 */
152152export function issuesServerFor(server: string, machine?: MachineServers): string | undefined {
Lines 197–208 at 1 (were 197–207 at 0)
197197
198198// --- ignore rules ---
199199//
200−// git's rules (gitignore(5)), for .gitignore, .avcsignore and .absoignore alike:
200+// git's rules (gitignore(5)), for .gitignore and .absoignore alike:
201201//
202202// - Every folder may have both files. Their patterns are relative to their
203203// folder and apply only below it. A deeper file beats a shallower one, and
204−// in one folder .absoignore beats .avcsignore, which beats .gitignore.
204+// in one folder .absoignore beats .gitignore. A folder with an .avcsignore
205+// (the name from before the rename) is refused: its rules would be skipped.
205206// - Below those come .git/info/exclude, then git's global excludes file
206207// (core.excludesFile, or ~/.config/git/ignore), both relative to the root.
207208// - Within a file the last matching line wins, and `!` brings a path back.
Lines 215–222 at 1 (were 214–220 at 0)
214215// any number of folders.
215216
216217/** The per-folder ignore files, weakest first. */
217−export const IGNORE_FILES: readonly string[] = [".gitignore", ".avcsignore", ".absoignore"];
218+export const IGNORE_FILES: readonly string[] = [".gitignore", ".absoignore"];
219+const OLD_IGNORE_FILE = ".avcsignore";
218220
219221export interface IgnoreRule {
220222 /** Where the line came from: a folder-relative path such as `src/.gitignore`, or the global file's path. */
Lines 240–246 at 1 (were 238–244 at 0)
238240 readonly rule?: IgnoreRule;
239241 /** Set when the path is ignored because this folder above it is (by `rule`, or always skipped). */
240242 readonly folder?: string;
241− /** Set when the path is, or is under, a folder abso always skips (.git, .avcs, .claude, node_modules). */
243+ /** Set when the path is, or is under, a folder abso always skips (.git, .abso, .claude, node_modules). */
242244 readonly alwaysSkipped?: string;
243245}
244246
Lines 410–423 at 1 (were 408–413 at 0)
408410 let rules = filesIn.get(dir);
409411 if (!rules) {
410412 rules = [];
413+ const old = dir === "" ? OLD_IGNORE_FILE : `${dir}/${OLD_IGNORE_FILE}`;
414+ if (read(old) !== undefined) {
415+ const refused = new Error(
416+ `${old} has the name from before the rename: rename it to .absoignore, then run abso again`,
417+ );
418+ refused.name = "UsageError";
419+ throw refused;
420+ }
411421 for (const name of IGNORE_FILES) {
412422 const source = dir === "" ? name : `${dir}/${name}`;
413423 const text = read(source);
Lines 573–585 at 1 (were 563–575 at 0)
563573 return next.value;
564574}
565575
566−/** The ignore files a question about `rel` can reach, as folder-relative paths. */
576+/** The ignore files a question about `rel` can reach, as folder-relative paths (with .avcsignore, which makeIgnore refuses). */
567577export function ignoreFilesFor(rel: string): string[] {
568578 const parts = rel.split("/");
569579 const out: string[] = [];
570580 for (let depth = 0; depth < parts.length; depth++) {
571581 const dir = parts.slice(0, depth).join("/");
572− for (const name of IGNORE_FILES) out.push(dir === "" ? name : `${dir}/${name}`);
582+ for (const name of [OLD_IGNORE_FILE, ...IGNORE_FILES]) out.push(dir === "" ? name : `${dir}/${name}`);
573583 }
574584 return out;
575585}
Lines 672–678 at 1 (were 662–668 at 0)
662672}
663673
664674/** The extra context handed to the agent for news, or undefined when there is none. */
665−/** How much of one news item goes into an agent's context; .avcs/news.log keeps it whole. */
675+/** How much of one news item goes into an agent's context; .abso/news.log keeps it whole. */
666676export const NEWS_ITEM_MAX = 1500;
667677
668678/**
MCP
compare on this site's /mcp
CLI
abso diff 0 1 client/src/core.ts --draft names-only-client --json
JSON
/christopher/abso-core/compare/0..1?draft=names-only-client&file=client%2Fsrc%2Fcore.ts&format=json