@ramarivera/coding-buddy 0.7.3 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/marketplace.json +2 -2
- package/.claude-plugin/plugin.json +1 -1
- package/hooks/file-type-react.sh +1 -1
- package/hooks/mood-react.sh +1 -1
- package/hooks/name-react.sh +1 -1
- package/hooks/react.sh +1 -1
- package/package.json +1 -1
- package/scripts/ci/check-statusline.sh +24 -0
- package/scripts/ci/statusline-fixture/buddy-state/config.json +1 -0
- package/scripts/ci/statusline-fixture/buddy-state/status.json +39 -0
- package/scripts/ci/statusline.tape +9 -0
- package/server/hooks/common.ts +33 -0
- package/server/hooks/file-type-react.ts +147 -0
- package/server/hooks/mood-react.ts +107 -0
- package/server/hooks/name-react.ts +98 -0
- package/server/hooks/react.ts +413 -0
- package/server/hooks/reaction-data.ts +2715 -0
- package/server/state.ts +5 -0
- package/statusline/substatus.sh +27 -6
- package/hooks/legacy/file-type-react.sh +0 -403
- package/hooks/legacy/mood-react.sh +0 -210
- package/hooks/legacy/name-react.sh +0 -178
- package/hooks/legacy/react.sh +0 -1364
- package/server/hooks/legacy-bash.ts +0 -34
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bun
|
|
2
|
-
|
|
3
|
-
import { spawnSync } from "child_process";
|
|
4
|
-
import { existsSync } from "fs";
|
|
5
|
-
import { join } from "path";
|
|
6
|
-
import { packageRootFromHooks, readStdin } from "./common.ts";
|
|
7
|
-
|
|
8
|
-
const ALLOWED = new Set([
|
|
9
|
-
"react.sh",
|
|
10
|
-
"file-type-react.sh",
|
|
11
|
-
"name-react.sh",
|
|
12
|
-
"mood-react.sh",
|
|
13
|
-
]);
|
|
14
|
-
|
|
15
|
-
if (import.meta.main) {
|
|
16
|
-
try {
|
|
17
|
-
const script = process.argv[2] ?? "";
|
|
18
|
-
if (ALLOWED.has(script)) {
|
|
19
|
-
const root = packageRootFromHooks();
|
|
20
|
-
const hook = join(root, "hooks", "legacy", script);
|
|
21
|
-
if (existsSync(hook)) {
|
|
22
|
-
spawnSync("bash", [hook], {
|
|
23
|
-
cwd: root,
|
|
24
|
-
input: await readStdin(),
|
|
25
|
-
stdio: ["pipe", "ignore", "ignore"],
|
|
26
|
-
timeout: 14_000,
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
} catch {
|
|
31
|
-
// Claude Code hooks must never fail the turn.
|
|
32
|
-
}
|
|
33
|
-
process.exit(0);
|
|
34
|
-
}
|