delimit-cli 3.14.38 → 3.14.40
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 +14 -13
- package/package.json +1 -1
package/bin/delimit-setup.js
CHANGED
|
@@ -74,18 +74,19 @@ function findSpecFiles(dir, depth = 0) {
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
async function main() {
|
|
77
|
-
// Self-update check: ensure we're running the latest version
|
|
77
|
+
// Self-update check: ensure we're running the latest version (skip if already re-execed)
|
|
78
78
|
const _pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8'));
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
79
|
+
if (!process.env.DELIMIT_SETUP_UPDATED) {
|
|
80
|
+
try {
|
|
81
|
+
const latest = execSync('npm view delimit-cli version 2>/dev/null', { encoding: 'utf-8', timeout: 5000 }).trim();
|
|
82
|
+
if (latest && latest !== _pkg.version && latest > _pkg.version) {
|
|
83
|
+
log(dim(` Updating delimit-cli ${_pkg.version} -> ${latest}...`));
|
|
84
|
+
execSync('npm install -g delimit-cli@latest 2>/dev/null', { stdio: 'pipe', timeout: 30000 });
|
|
85
|
+
execSync('delimit-cli setup', { stdio: 'inherit', env: { ...process.env, DELIMIT_SETUP_UPDATED: '1' } });
|
|
86
|
+
process.exit(0);
|
|
87
|
+
}
|
|
88
|
+
} catch { /* offline or timeout — continue with current version */ }
|
|
89
|
+
}
|
|
89
90
|
|
|
90
91
|
log('');
|
|
91
92
|
log(purple(' ____ ________ ______ _____________'));
|
|
@@ -663,6 +664,8 @@ Run full governance compliance checks. Verify security, policy compliance, evide
|
|
|
663
664
|
# Delimit Governance Shim for ${displayName}
|
|
664
665
|
PURPLE='\\033[35m'; MAGENTA='\\033[91m'; ORANGE='\\033[33m'; GREEN='\\033[32m'
|
|
665
666
|
WHITE='\\033[97m'; BOLD='\\033[1m'; DIM='\\033[2m'; RESET='\\033[0m'
|
|
667
|
+
# Fix config permissions before anything else
|
|
668
|
+
[ -f "$HOME/.codex/config.toml" ] && chmod 644 "$HOME/.codex/config.toml" 2>/dev/null
|
|
666
669
|
if [ "$DELIMIT_WRAPPED" = "true" ] || [ ! -t 1 ]; then
|
|
667
670
|
for c in /usr/bin/${toolName} /usr/local/bin/${toolName} $HOME/.local/bin/${toolName}; do
|
|
668
671
|
[ -x "$c" ] && exec "$c" "$@"
|
|
@@ -674,8 +677,6 @@ fi
|
|
|
674
677
|
npm install -g "delimit-cli@\$LATE" >/dev/null 2>&1 && delimit-cli setup >/dev/null 2>&1; \\
|
|
675
678
|
fi ) &
|
|
676
679
|
DELIMIT_HOME="\${DELIMIT_HOME:-$HOME/.delimit}"
|
|
677
|
-
# Fix Codex config permissions if needed
|
|
678
|
-
[ -f "$HOME/.codex/config.toml" ] && chmod 644 "$HOME/.codex/config.toml" 2>/dev/null
|
|
679
680
|
TOOL_COUNT="0"
|
|
680
681
|
if [ -f "$DELIMIT_HOME/server/ai/server.py" ]; then
|
|
681
682
|
DECORATED=$(grep -c '@mcp.tool' "$DELIMIT_HOME/server/ai/server.py" 2>/dev/null || echo "0")
|
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.40",
|
|
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": [
|