caveat-cli 0.17.6 → 0.17.8
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/dist/chunk-ZBHCOA6R.js +0 -0
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/server-GBVHOF67.js +0 -0
- package/package.json +13 -12
package/dist/chunk-ZBHCOA6R.js
CHANGED
|
File without changes
|
package/dist/index.js
CHANGED
|
@@ -6998,9 +6998,10 @@ function isCaveatClaudeHookCommand(actual, event) {
|
|
|
6998
6998
|
return lower.includes("caveat") && actual.includes(`hook ${event}`);
|
|
6999
6999
|
}
|
|
7000
7000
|
function isCanonicalCaveatClaudeHookCommand(actual, event, nodePath, cliScriptPath) {
|
|
7001
|
-
if (actual !== hookCommand(nodePath, cliScriptPath, event)) return false;
|
|
7002
7001
|
const tokens = commandTokens(actual);
|
|
7003
|
-
|
|
7002
|
+
if (tokens?.length !== 4 || tokens[2] !== "hook" || tokens[3] !== event) return false;
|
|
7003
|
+
if (actual !== hookCommand(tokens[0], tokens[1], event)) return false;
|
|
7004
|
+
return isCanonicalAsset(tokens[0], nodePath, constants.X_OK) && isCanonicalAsset(tokens[1], cliScriptPath, constants.R_OK);
|
|
7004
7005
|
}
|
|
7005
7006
|
function isCaveatClaudeMcpRegistration(value, nodePath, cliScriptPath) {
|
|
7006
7007
|
if (!value || typeof value !== "object" || Array.isArray(value)) return false;
|