Versions 16 to 17
Lines 173–181 at 17 (were 173–181 at 16)
176− if ((await readOr($, `${job.root}/.avcs/paused`)) !== undefined) {
178− } else if (/"reader"\s*:\s*true/.test((await readOr($, `${job.root}/.avcs/config.json`)) ?? "")) {
178+ } else if (/"reader"\s*:\s*true/.test((await readOr($, `${await stateOf($, job.root)}/config.json`)) ?? "")) {
Lines 189–195 at 17 (were 189–195 at 16)
192− await $.fs.write(`${job.root}/.avcs/known/${job.rel}`, FORGOTTEN).catch(() => {});
Lines 217–223 at 17 (were 217–223 at 16)
217217/** Ask for the news waiting for this agent (announcements, collisions) and hand it to the model. */
220− const config = JSON.parse(await $.fs.read(`${root}/.avcs/config.json`)) as {
Lines 263–281 at 17 (were 263–271 at 16)
265265
266+/** A folder's state folder: .abso, or .avcs in a folder from before the rename. (A mod can't import the client's state-dir.ts.) */
270+
273+ return (await readOr($, `${slash(home)}/.abso/${name}`)) ?? (await readOr($, `${slash(home)}/.avcs/${name}`));
275+
266276/** Whether the server has this path as a symbolic link (.avcs/modes.json, written by the client). */
268− const raw = await readOr($, `${root}/.avcs/modes.json`);
Lines 303–309 at 17 (were 293–299 at 16)
295305
296−/** The nearest folder above the file that has .avcs/config.json, cached per folder. */
306+/** The nearest folder above the file that has .abso/config.json (or .avcs/config.json from before the rename), cached per folder. */
Lines 312–318 at 17 (were 302–308 at 16)
305− if (await $.fs.exists(`${dir}/.avcs/config.json`)) {
315+ if ((await $.fs.exists(`${dir}/.abso/config.json`)) || (await $.fs.exists(`${dir}/.avcs/config.json`))) {
Lines 324–346 at 17 (were 314–336 at 16)
316326
317−/** AVCS_TOKEN if set, else ~/.avcs/token; none for a server the token may not go to (core.ts tokenGoesTo, with this machine's servers.json). */
327+/** AVCS_TOKEN if set, else ~/.abso/token, else ~/.avcs/token; none for a server the token may not go to (core.ts tokenGoesTo, with this machine's servers.json). */
320− const machine = machineServers(home ? await readOr($, `${slash(home)}/.avcs/servers.json`) : undefined);
321331 if (!tokenGoesTo(server, trustedList(await $.env.get("AVCS_TRUSTED_SERVERS"), machine))) return undefined;
324− return home ? (await readOr($, `${slash(home)}/.avcs/token`))?.trim() || undefined : undefined;
326336
327337async function send($: Engine, job: Job, who: Who): Promise<{ outcome: string; news: readonly string[] }> {
329339 // While an abso command changes the folder's records, leave the known copy alone: the next record sends the file (#51).
330− if (lockHeld(await readOr($, `${root}/.avcs/${LOCK_FILE}`), Date.now()))
331341 return { outcome: "skipped: another abso command is changing this folder; abso record sends it", news: [] };
333− const knownPath = `${root}/.avcs/known/${rel}`;
Lines 352–358 at 17 (were 342–348 at 16)
344354
345− const config = JSON.parse(await $.fs.read(`${root}/.avcs/config.json`)) as {
Lines 396–402 at 17 (were 386–392 at 16)
386396/** One line per edit in .avcs/hook.log (or another log there), as the command hook writes, kept under LOG_LIMIT. */
389− const path = `${root}/.avcs/${file}`;
391401 if (text.length > LOG_LIMIT) text = text.slice(text.indexOf("\n", text.length - LOG_LIMIT / 2) + 1);
- MCP
- compare on this site's /mcp
- CLI
- abso diff 16 17 client/hooks/register.ts --json
- JSON
- /christopher/abso-core/compare/16..17?file=client%2Fhooks%2Fregister.ts&format=json