claude-compass 0.1.2 → 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/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
|
@@ -36,8 +36,8 @@ async function run() {
|
|
|
36
36
|
|
|
37
37
|
// Install project-level hooks (copies of templates)
|
|
38
38
|
const hookSrc = path.join(PKG_DIR, 'templates', 'hooks');
|
|
39
|
-
installHook(path.join(hookSrc, 'post-tool-use.
|
|
40
|
-
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'));
|
|
41
41
|
|
|
42
42
|
// Register hooks in ~/.claude/settings.json
|
|
43
43
|
registerHooksInSettings(settingsPath, cwd);
|
|
@@ -84,8 +84,8 @@ function registerHooksInSettings(settingsPath, projectCwd) {
|
|
|
84
84
|
|
|
85
85
|
if (!settings.hooks) settings.hooks = {};
|
|
86
86
|
|
|
87
|
-
const postToolUsePath = path.join(projectCwd, '.claude', 'hooks', 'post-tool-use.
|
|
88
|
-
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');
|
|
89
89
|
|
|
90
90
|
// PostToolUse hook — correct Claude Code format: { matcher, hooks: [{ type, command }] }
|
|
91
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
|