delimit-cli 3.14.26 → 3.14.28
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 +20 -3
- package/package.json +1 -1
package/bin/delimit-setup.js
CHANGED
|
@@ -74,14 +74,31 @@ 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
|
|
78
|
+
const _pkg = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8'));
|
|
79
|
+
try {
|
|
80
|
+
const latest = execSync('npm view delimit-cli version 2>/dev/null', { encoding: 'utf-8', timeout: 5000 }).trim();
|
|
81
|
+
if (latest && latest !== _pkg.version && latest > _pkg.version) {
|
|
82
|
+
log(dim(` Updating delimit-cli ${_pkg.version} -> ${latest}...`));
|
|
83
|
+
execSync('npm install -g delimit-cli@latest 2>/dev/null', { stdio: 'pipe', timeout: 30000 });
|
|
84
|
+
// Re-exec with the updated version
|
|
85
|
+
const setupPath = path.join(__dirname, 'delimit-setup.js');
|
|
86
|
+
if (fs.existsSync(setupPath)) {
|
|
87
|
+
execSync(`node "${setupPath}"`, { stdio: 'inherit' });
|
|
88
|
+
process.exit(0);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
} catch { /* offline or timeout — continue with current version */ }
|
|
92
|
+
|
|
77
93
|
log('');
|
|
78
94
|
log(purple(' ____ ________ ______ _____________'));
|
|
79
95
|
log(purple(' / __ \\/ ____/ / / _/ |/ / _/_ __/'));
|
|
80
96
|
log(magenta(' / / / / __/ / / / // /|_/ // / / / '));
|
|
81
97
|
log(magenta(' / /_/ / /___/ /____/ // / / // / / / '));
|
|
82
98
|
log(orange('/_____/_____/_____/___/_/ /_/___/ /_/ '));
|
|
83
|
-
|
|
84
|
-
|
|
99
|
+
// Re-read in case we self-updated
|
|
100
|
+
const _pkgNow = JSON.parse(fs.readFileSync(path.join(__dirname, '..', 'package.json'), 'utf-8'));
|
|
101
|
+
log(dim(` v${_pkgNow.version}`));
|
|
85
102
|
log('');
|
|
86
103
|
|
|
87
104
|
// Step 1: Check prerequisites
|
|
@@ -644,7 +661,7 @@ echo "[Delimit] ${toolName} not found in PATH" >&2
|
|
|
644
661
|
case "${toolName}" in
|
|
645
662
|
claude) echo " Install: npm install -g @anthropic-ai/claude-code" >&2 ;;
|
|
646
663
|
codex) echo " Install: npm install -g @openai/codex" >&2 ;;
|
|
647
|
-
gemini) echo " Install:
|
|
664
|
+
gemini) echo " Install: npm install -g @google/gemini-cli" >&2 ;;
|
|
648
665
|
*) echo " Install ${toolName} first" >&2 ;;
|
|
649
666
|
esac
|
|
650
667
|
exit 127
|
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.28",
|
|
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": [
|