claude-compass 0.1.1 → 0.1.3
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/README.md
CHANGED
|
@@ -66,7 +66,7 @@ This will:
|
|
|
66
66
|
- Copy hooks into `.claude/hooks/`
|
|
67
67
|
- Register hooks in `~/.claude/settings.json`
|
|
68
68
|
- Install the `claude-md-updater` agent into `.claude/agents/`
|
|
69
|
-
- Create a `CLAUDE.md` stub if one doesn't exist (
|
|
69
|
+
- Create a `CLAUDE.md` stub if one doesn't exist (leaves any existing one untouched)
|
|
70
70
|
|
|
71
71
|
## Commands
|
|
72
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-compass",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Automatic CLAUDE.md lifecycle management for Claude Code",
|
|
5
5
|
"bin": {
|
|
6
6
|
"claude-compass": "bin/claude-compass.js"
|
|
@@ -21,5 +21,8 @@
|
|
|
21
21
|
"bin",
|
|
22
22
|
"src",
|
|
23
23
|
"templates"
|
|
24
|
-
]
|
|
24
|
+
],
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"claude-compass": "^0.1.2"
|
|
27
|
+
}
|
|
25
28
|
}
|
package/src/init.js
CHANGED
|
@@ -24,13 +24,6 @@ async function run() {
|
|
|
24
24
|
console.warn(' claude-compass works best inside a git repo, but continuing anyway.\n');
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
// Backup existing CLAUDE.md
|
|
28
|
-
if (fs.existsSync(claudeMdPath)) {
|
|
29
|
-
const backupPath = claudeMdPath + '.backup';
|
|
30
|
-
fs.copyFileSync(claudeMdPath, backupPath);
|
|
31
|
-
console.log(` Backed up existing CLAUDE.md → CLAUDE.md.backup`);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
27
|
// Create .claude directories
|
|
35
28
|
fs.mkdirSync(contextDir, { recursive: true });
|
|
36
29
|
fs.mkdirSync(agentsDir, { recursive: true });
|
|
@@ -43,8 +36,8 @@ async function run() {
|
|
|
43
36
|
|
|
44
37
|
// Install project-level hooks (copies of templates)
|
|
45
38
|
const hookSrc = path.join(PKG_DIR, 'templates', 'hooks');
|
|
46
|
-
installHook(path.join(hookSrc, 'post-tool-use.
|
|
47
|
-
installHook(path.join(hookSrc, 'session-end.
|
|
39
|
+
installHook(path.join(hookSrc, 'post-tool-use.cjs'), path.join(hooksDir, 'post-tool-use.cjs'));
|
|
40
|
+
installHook(path.join(hookSrc, 'session-end.cjs'), path.join(hooksDir, 'session-end.cjs'));
|
|
48
41
|
|
|
49
42
|
// Register hooks in ~/.claude/settings.json
|
|
50
43
|
registerHooksInSettings(settingsPath, cwd);
|
|
@@ -91,8 +84,8 @@ function registerHooksInSettings(settingsPath, projectCwd) {
|
|
|
91
84
|
|
|
92
85
|
if (!settings.hooks) settings.hooks = {};
|
|
93
86
|
|
|
94
|
-
const postToolUsePath = path.join(projectCwd, '.claude', 'hooks', 'post-tool-use.
|
|
95
|
-
const sessionEndPath = path.join(projectCwd, '.claude', 'hooks', 'session-end.
|
|
87
|
+
const postToolUsePath = path.join(projectCwd, '.claude', 'hooks', 'post-tool-use.cjs');
|
|
88
|
+
const sessionEndPath = path.join(projectCwd, '.claude', 'hooks', 'session-end.cjs');
|
|
96
89
|
|
|
97
90
|
// PostToolUse hook — correct Claude Code format: { matcher, hooks: [{ type, command }] }
|
|
98
91
|
if (!settings.hooks.PostToolUse) settings.hooks.PostToolUse = [];
|
package/src/status.js
CHANGED
|
@@ -10,8 +10,8 @@ async function run() {
|
|
|
10
10
|
const claudeDir = path.join(cwd, '.claude');
|
|
11
11
|
const pendingPath = path.join(claudeDir, 'pending-updates.md');
|
|
12
12
|
const agentPath = path.join(claudeDir, 'agents', 'claude-md-updater.md');
|
|
13
|
-
const postHookPath = path.join(claudeDir, 'hooks', 'post-tool-use.
|
|
14
|
-
const sessionHookPath = path.join(claudeDir, 'hooks', 'session-end.
|
|
13
|
+
const postHookPath = path.join(claudeDir, 'hooks', 'post-tool-use.cjs');
|
|
14
|
+
const sessionHookPath = path.join(claudeDir, 'hooks', 'session-end.cjs');
|
|
15
15
|
const claudeMdPath = path.join(cwd, 'CLAUDE.md');
|
|
16
16
|
|
|
17
17
|
console.log(`\n✦ claude-compass status\n`);
|
|
File without changes
|
|
File without changes
|