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

Compare

+13 −2 in 4 places
Lines 16–22 at 318 (were 16–22 at 33)
1616import { homedir } from "node:os";
1717import { dirname, isAbsolute, join, resolve } from "node:path";
1818import { Api, type News, newsLines } from "./api.ts";
19−import { findRoot, isReader, readConfig } from "./config.ts";
19+import { findRoot, isReader, isVisitor, readConfig } from "./config.ts";
2020import { editBody, newsContext, normalize, spellingText, uncomposedText } from "./core.ts";
2121import { fromEnv } from "./env-names.ts";
2222import { forgetKnown, isPaused, loadIgnore, logNews, readKnown, readText, relativeTo, writeKnown } from "./folder.ts";
Lines 44–54 at 318 (were 44–49 at 33)
4444
4545/** Where install-mod.ts puts the mod: Claude Code's skills folder, which every session loads. */
4646export function modDir(env: Readonly<Record<string, string | undefined>> = process.env): string {
47+ return join(env.CLAUDE_CONFIG_DIR || join(homedir(), ".claude"), "skills", "abso-hooks");
48+}
50+/** Where the same mod lived before the rename. */
51+export function oldModDir(env: Readonly<Record<string, string | undefined>> = process.env): string {
4752 return join(env.CLAUDE_CONFIG_DIR || join(homedir(), ".claude"), "skills", "avcs");
4853}
4954
Lines 65–75 at 318 (were 60–66 at 33)
6065 }
6166 // With the abso mod installed, every Claude Code session on this machine sends
6267 // its edits in-process, so this hook stands down rather than send them twice.
63− if (fromEnv(env, "HOOK_FORCE") !== "1" && existsSync(join(modDir(env), ".claude-plugin", "plugin.json"))) {
68+ if (
69+ fromEnv(env, "HOOK_FORCE") !== "1" &&
70+ (existsSync(join(modDir(env), ".claude-plugin", "plugin.json")) ||
71+ existsSync(join(oldModDir(env), ".claude-plugin", "plugin.json")))
72+ ) {
6473 return { stdout: "", outcome: "skipped: the abso mod sends edits" };
6574 }
6675 const tool = input.tool_name ?? "";
Lines 91–98 at 318 (were 82–87 at 33)
8291 outcome = "skipped: recording is paused (abso resume)";
8392 } else if (isReader(root)) {
8493 outcome = "skipped: this folder is a reader";
94+ } else if (isVisitor(root)) {
95+ outcome = "skipped: this folder reads signed out";
8596 } else if (rel === undefined || loadIgnore(root)(rel, false)) {
8697 outcome = "skipped: ignored path";
8798 } else if (readKnownModes(root).get(rel)?.link != null) {
MCP
compare on this site's /mcp
CLI
abso diff 33 318 client/src/hook.ts --json
JSON
/christopher/abso-core/compare/33..318?file=client%2Fsrc%2Fhook.ts&format=json