delimit-cli 3.14.17 → 3.14.18
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/lib/cross-model-hooks.js +9 -2
- package/package.json +1 -1
package/lib/cross-model-hooks.js
CHANGED
|
@@ -696,14 +696,21 @@ async function hookSessionStart() {
|
|
|
696
696
|
lines.push('[Delimit] No policy file found -- run "delimit init" to set up governance');
|
|
697
697
|
}
|
|
698
698
|
|
|
699
|
-
//
|
|
699
|
+
// Auto-update check + install
|
|
700
700
|
try {
|
|
701
701
|
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
702
702
|
const currentVersion = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')).version;
|
|
703
703
|
const { execSync: execS } = require('child_process');
|
|
704
704
|
const latest = execS('npm view delimit-cli version 2>/dev/null', { encoding: 'utf-8', timeout: 5000 }).trim();
|
|
705
705
|
if (latest && latest !== currentVersion && latest > currentVersion) {
|
|
706
|
-
lines.push(`[Delimit]
|
|
706
|
+
lines.push(`[Delimit] Updating ${currentVersion} -> ${latest}...`);
|
|
707
|
+
try {
|
|
708
|
+
execS('npm install -g delimit-cli@latest 2>/dev/null', { timeout: 30000, stdio: 'pipe' });
|
|
709
|
+
execS('delimit-cli setup --yes 2>/dev/null', { timeout: 30000, stdio: 'pipe' });
|
|
710
|
+
lines.push(`[Delimit] Updated to ${latest}`);
|
|
711
|
+
} catch {
|
|
712
|
+
lines.push(`[Delimit] Auto-update failed. Run: npm install -g delimit-cli@latest`);
|
|
713
|
+
}
|
|
707
714
|
}
|
|
708
715
|
} catch { /* offline or timeout — skip silently */ }
|
|
709
716
|
|
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.18",
|
|
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": [
|