delimit-cli 3.14.13 → 3.14.14
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 +11 -0
- package/package.json +1 -1
package/lib/cross-model-hooks.js
CHANGED
|
@@ -728,6 +728,17 @@ async function hookSessionStart() {
|
|
|
728
728
|
lines.push('[Delimit] No policy file found -- run "delimit init" to set up governance');
|
|
729
729
|
}
|
|
730
730
|
|
|
731
|
+
// Check for updates
|
|
732
|
+
try {
|
|
733
|
+
const pkgPath = path.join(__dirname, '..', 'package.json');
|
|
734
|
+
const currentVersion = JSON.parse(fs.readFileSync(pkgPath, 'utf-8')).version;
|
|
735
|
+
const { execSync: execS } = require('child_process');
|
|
736
|
+
const latest = execS('npm view delimit-cli version 2>/dev/null', { encoding: 'utf-8', timeout: 5000 }).trim();
|
|
737
|
+
if (latest && latest !== currentVersion && latest > currentVersion) {
|
|
738
|
+
lines.push(`[Delimit] Update available: ${currentVersion} → ${latest} (run: npx delimit-cli@latest setup)`);
|
|
739
|
+
}
|
|
740
|
+
} catch { /* offline or timeout — skip silently */ }
|
|
741
|
+
|
|
731
742
|
// Check for OpenAPI specs
|
|
732
743
|
const specPatterns = ['openapi.yaml', 'openapi.yml', 'openapi.json', 'swagger.yaml', 'swagger.json'];
|
|
733
744
|
const foundSpecs = [];
|
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.14",
|
|
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": [
|