delimit-cli 3.14.22 → 3.14.24
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-setup.js +17 -14
- package/package.json +1 -1
package/bin/delimit-setup.js
CHANGED
|
@@ -571,12 +571,12 @@ Run full governance compliance checks. Verify security, policy compliance, evide
|
|
|
571
571
|
const shimsDir = path.join(DELIMIT_HOME, 'shims');
|
|
572
572
|
const shimsInstalled = fs.existsSync(shimsDir) && fs.readdirSync(shimsDir).length > 0;
|
|
573
573
|
|
|
574
|
-
if (
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
//
|
|
574
|
+
let enableShims = shimsInstalled; // Auto-yes if already installed (just update)
|
|
575
|
+
|
|
576
|
+
if (!shimsInstalled) {
|
|
577
|
+
// First install — prompt
|
|
578
578
|
const inquirer = (() => { try { return require('inquirer'); } catch { return null; } })();
|
|
579
|
-
|
|
579
|
+
enableShims = true;
|
|
580
580
|
|
|
581
581
|
if (inquirer && process.stdin.isTTY) {
|
|
582
582
|
try {
|
|
@@ -588,12 +588,13 @@ Run full governance compliance checks. Verify security, policy compliance, evide
|
|
|
588
588
|
}]);
|
|
589
589
|
enableShims = answer.enable;
|
|
590
590
|
} catch {
|
|
591
|
-
enableShims = true;
|
|
591
|
+
enableShims = true;
|
|
592
592
|
}
|
|
593
593
|
}
|
|
594
|
+
}
|
|
594
595
|
|
|
595
596
|
if (enableShims) {
|
|
596
|
-
// Create shims
|
|
597
|
+
// Create/update shims with latest template
|
|
597
598
|
fs.mkdirSync(shimsDir, { recursive: true });
|
|
598
599
|
|
|
599
600
|
const shimTemplate = (toolName, displayName) => `#!/bin/sh
|
|
@@ -608,10 +609,9 @@ fi
|
|
|
608
609
|
DELIMIT_HOME="\${DELIMIT_HOME:-$HOME/.delimit}"
|
|
609
610
|
TOOL_COUNT="0"
|
|
610
611
|
if [ -f "$DELIMIT_HOME/server/ai/server.py" ]; then
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
TOOL_COUNT=$((TOTAL - OPS - INTERNAL))
|
|
612
|
+
DECORATED=$(grep -c '@mcp.tool' "$DELIMIT_HOME/server/ai/server.py" 2>/dev/null || echo "0")
|
|
613
|
+
IMPL=$(grep -c 'mcp.tool()(' "$DELIMIT_HOME/server/ai/server.py" 2>/dev/null || echo "0")
|
|
614
|
+
TOOL_COUNT=$((DECORATED + IMPL))
|
|
615
615
|
fi
|
|
616
616
|
echo ""
|
|
617
617
|
printf " \${PURPLE}\${BOLD} ____ ________ ______ _____________\${RESET}\\n"
|
|
@@ -663,12 +663,15 @@ exit 127
|
|
|
663
663
|
}
|
|
664
664
|
}
|
|
665
665
|
|
|
666
|
-
|
|
667
|
-
|
|
666
|
+
if (shimsInstalled) {
|
|
667
|
+
await logp(` ${green('✓')} Governance shims updated`);
|
|
668
|
+
} else {
|
|
669
|
+
log(` ${green('✓')} Governance wrapping enabled`);
|
|
670
|
+
log(` ${dim(' Restart your terminal or run: source ~/.bashrc')}`);
|
|
671
|
+
}
|
|
668
672
|
} else {
|
|
669
673
|
log(` ${dim(' Skipped. Enable later: delimit shims enable')}`);
|
|
670
674
|
}
|
|
671
|
-
}
|
|
672
675
|
log('');
|
|
673
676
|
|
|
674
677
|
// Step 7: Install cross-model governance hooks (LED-202)
|
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": "3.14.
|
|
4
|
+
"version": "3.14.24",
|
|
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": [
|