delimit-cli 3.14.17 → 3.14.19

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.
@@ -2156,6 +2156,7 @@ program
2156
2156
  .command('setup')
2157
2157
  .description('Install Delimit MCP governance tools into all AI assistants')
2158
2158
  .option('--dry-run', 'Preview config changes without writing anything')
2159
+ .option('--yes', 'Skip all prompts and accept defaults')
2159
2160
  .action((options) => {
2160
2161
  if (options.dryRun) {
2161
2162
  const os = require('os');
@@ -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
- // Check for updates
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] Update available: ${currentVersion} ${latest} (run: npx delimit-cli@latest setup)`);
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 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.17",
4
+ "version": "3.14.19",
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": [