@exero1/claudecontext 0.1.9 → 0.1.10
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/hooks/post-write.mjs
CHANGED
|
@@ -19,7 +19,7 @@ function findCli() {
|
|
|
19
19
|
const colocated = join(__dirname, '..', 'dist', 'src', 'cli.js');
|
|
20
20
|
if (existsSync(colocated)) return { bin: process.execPath, prependArgs: [colocated] };
|
|
21
21
|
const local = join(projectRoot, 'node_modules', '.bin', 'claudecontext-cli');
|
|
22
|
-
if (existsSync(local)) return { bin:
|
|
22
|
+
if (existsSync(local)) return { bin: process.execPath, prependArgs: [local] };
|
|
23
23
|
return { bin: 'claudecontext-cli', prependArgs: [] };
|
|
24
24
|
}
|
|
25
25
|
|
package/hooks/pre-compact.mjs
CHANGED
|
@@ -22,7 +22,7 @@ function findCli() {
|
|
|
22
22
|
const colocated = join(__dirname, '..', 'dist', 'src', 'cli.js');
|
|
23
23
|
if (existsSync(colocated)) return { bin: process.execPath, prependArgs: [colocated] };
|
|
24
24
|
const local = join(projectRoot, 'node_modules', '.bin', 'claudecontext-cli');
|
|
25
|
-
if (existsSync(local)) return { bin:
|
|
25
|
+
if (existsSync(local)) return { bin: process.execPath, prependArgs: [local] };
|
|
26
26
|
return { bin: 'claudecontext-cli', prependArgs: [] };
|
|
27
27
|
}
|
|
28
28
|
|
package/hooks/pre-tool-use.mjs
CHANGED
|
@@ -18,7 +18,7 @@ function findCli() {
|
|
|
18
18
|
const colocated = join(__dirname, '..', 'dist', 'src', 'cli.js');
|
|
19
19
|
if (existsSync(colocated)) return { bin: process.execPath, prependArgs: [colocated] };
|
|
20
20
|
const local = join(projectRoot, 'node_modules', '.bin', 'claudecontext-cli');
|
|
21
|
-
if (existsSync(local)) return { bin:
|
|
21
|
+
if (existsSync(local)) return { bin: process.execPath, prependArgs: [local] };
|
|
22
22
|
return { bin: 'claudecontext-cli', prependArgs: [] };
|
|
23
23
|
}
|
|
24
24
|
|
package/hooks/session-start.mjs
CHANGED
|
@@ -37,7 +37,7 @@ function findCli() {
|
|
|
37
37
|
if (existsSync(colocated)) return { bin: process.execPath, prependArgs: [colocated] };
|
|
38
38
|
// 2. Local project install
|
|
39
39
|
const local = join(projectRoot, 'node_modules', '.bin', 'claudecontext-cli');
|
|
40
|
-
if (existsSync(local)) return { bin:
|
|
40
|
+
if (existsSync(local)) return { bin: process.execPath, prependArgs: [local] };
|
|
41
41
|
// 3. Last resort: hope it's in PATH
|
|
42
42
|
return { bin: 'claudecontext-cli', prependArgs: [] };
|
|
43
43
|
}
|