delimit-cli 4.5.3 → 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.
Files changed (2) hide show
  1. package/bin/delimit-cli.js +17 -2
  2. package/package.json +2 -2
@@ -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
- npx delimit-cli check --staged
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
- npx delimit-cli check --base origin/main
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.3",
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": [
@@ -111,7 +111,7 @@
111
111
  "url": "https://github.com/delimit-ai/delimit-mcp-server.git"
112
112
  },
113
113
  "dependencies": {
114
- "axios": "1.15.0",
114
+ "axios": "^1.16.0",
115
115
  "chalk": "^4.1.2",
116
116
  "commander": "^12.1.0",
117
117
  "express": "^4.18.0",