delimit-cli 4.5.4 → 4.5.5
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/bin/delimit-cli.js +17 -2
- package/package.json +1 -1
package/bin/delimit-cli.js
CHANGED
|
@@ -4629,18 +4629,33 @@ program
|
|
|
4629
4629
|
const prePushPath = path.join(hooksDir, 'pre-push');
|
|
4630
4630
|
const marker = '# delimit-governance-hook';
|
|
4631
4631
|
|
|
4632
|
+
// Resolution order: local node_modules → global PATH → npx fallback.
|
|
4633
|
+
// npx is last because it can fail with Arborist 'extraneous' errors
|
|
4634
|
+
// when a project's node_modules / lockfile drift (LED-1248).
|
|
4632
4635
|
const preCommitHook = `#!/bin/sh
|
|
4633
4636
|
${marker}
|
|
4634
4637
|
# Delimit API governance gate
|
|
4635
4638
|
# Blocks commits with breaking API changes
|
|
4636
|
-
|
|
4639
|
+
if [ -x ./node_modules/.bin/delimit-cli ]; then
|
|
4640
|
+
./node_modules/.bin/delimit-cli check --staged
|
|
4641
|
+
elif command -v delimit-cli >/dev/null 2>&1; then
|
|
4642
|
+
delimit-cli check --staged
|
|
4643
|
+
else
|
|
4644
|
+
npx delimit-cli check --staged
|
|
4645
|
+
fi
|
|
4637
4646
|
`;
|
|
4638
4647
|
|
|
4639
4648
|
const prePushHook = `#!/bin/sh
|
|
4640
4649
|
${marker}
|
|
4641
4650
|
# Delimit API governance gate
|
|
4642
4651
|
# Blocks pushes with breaking API changes
|
|
4643
|
-
|
|
4652
|
+
if [ -x ./node_modules/.bin/delimit-cli ]; then
|
|
4653
|
+
./node_modules/.bin/delimit-cli check --base origin/main
|
|
4654
|
+
elif command -v delimit-cli >/dev/null 2>&1; then
|
|
4655
|
+
delimit-cli check --base origin/main
|
|
4656
|
+
else
|
|
4657
|
+
npx delimit-cli check --base origin/main
|
|
4658
|
+
fi
|
|
4644
4659
|
`;
|
|
4645
4660
|
|
|
4646
4661
|
if (action === 'install') {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "delimit-cli",
|
|
3
3
|
"mcpName": "io.github.delimit-ai/delimit-mcp-server",
|
|
4
|
-
"version": "4.5.
|
|
4
|
+
"version": "4.5.5",
|
|
5
5
|
"description": "Unify Claude Code, Codex, Cursor, and Gemini CLI with persistent context, governance, and multi-model debate.",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"files": [
|