delimit-cli 3.14.4 → 3.14.6

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.
@@ -1119,7 +1119,7 @@ program
1119
1119
  const ans = await inquirer.prompt([{
1120
1120
  type: 'confirm',
1121
1121
  name: 'addWorkflow',
1122
- message: 'Add GitHub Action for PR governance?',
1122
+ message: 'Add GitHub Action for PR governance? (Enter = Yes)',
1123
1123
  default: true,
1124
1124
  }]);
1125
1125
  writeWorkflow = ans.addWorkflow;
@@ -1175,7 +1175,7 @@ jobs:
1175
1175
  const driftAns = await inquirer.prompt([{
1176
1176
  type: 'confirm',
1177
1177
  name: 'addDrift',
1178
- message: 'Add weekly drift monitoring workflow?',
1178
+ message: 'Add weekly drift monitoring workflow? (Enter = Yes)',
1179
1179
  default: true,
1180
1180
  }]);
1181
1181
  writeDrift = driftAns.addDrift;
@@ -109,6 +109,34 @@ async function main() {
109
109
  log(` ${yellow('!')} Claude Code not detected — MCP config will still be created`);
110
110
  }
111
111
 
112
+ // Show what we're about to do and ask for confirmation
113
+ log('');
114
+ log(` ${blue('What Delimit will do:')}`);
115
+ log(` • Install MCP server to ${dim('~/.delimit/')}`);
116
+ log(` • Configure ${hasClaude ? 'Claude Code' : 'your AI assistant'} to use Delimit`);
117
+ log(` • Install governance agents + hooks`);
118
+ log(` • Set up CLAUDE.md instruction file`);
119
+ log('');
120
+ log(` ${dim('Undo anytime:')} rm -rf ~/.delimit && delimit uninstall`);
121
+ log('');
122
+
123
+ const inquirerTop = (() => { try { return require('inquirer'); } catch { return null; } })();
124
+ if (inquirerTop && process.stdin.isTTY) {
125
+ try {
126
+ const { proceed } = await inquirerTop.prompt([{
127
+ type: 'confirm',
128
+ name: 'proceed',
129
+ message: 'Continue with setup? (Enter = Yes)',
130
+ default: true,
131
+ }]);
132
+ if (!proceed) {
133
+ log(`\n ${dim('Setup cancelled. Nothing was changed.')}\n`);
134
+ process.exit(0);
135
+ }
136
+ } catch {}
137
+ }
138
+ log('');
139
+
112
140
  // Step 2: Install Delimit MCP server
113
141
  step(2, 'Installing Delimit MCP server...');
114
142
 
@@ -298,6 +326,33 @@ async function main() {
298
326
  }
299
327
  }
300
328
 
329
+ // Checkpoint: MCP is configured, now ask before modifying project files
330
+ log('');
331
+ log(` ${green('✓')} MCP server installed and configured`);
332
+ log('');
333
+ log(` ${blue('Next: project-level setup')}`);
334
+ log(` • Install governance agents (lint, engineering, governance)`);
335
+ log(` • Update CLAUDE.md with Delimit instructions`);
336
+ log(` • Optional: governance wrapping + hooks`);
337
+ log('');
338
+
339
+ const inquirerMid = (() => { try { return require('inquirer'); } catch { return null; } })();
340
+ if (inquirerMid && process.stdin.isTTY) {
341
+ try {
342
+ const { proceed } = await inquirerMid.prompt([{
343
+ type: 'confirm',
344
+ name: 'proceed',
345
+ message: 'Continue with project setup? (Enter = Yes)',
346
+ default: true,
347
+ }]);
348
+ if (!proceed) {
349
+ log(`\n ${green('MCP is ready.')} Skipped project-level setup.`);
350
+ log(` ${dim('Run')} delimit setup ${dim('again to complete project setup.')}\n`);
351
+ process.exit(0);
352
+ }
353
+ } catch {}
354
+ }
355
+
301
356
  // Step 4: Install default agents
302
357
  step(4, 'Installing governance agents...');
303
358
 
@@ -513,7 +568,7 @@ Run full governance compliance checks. Verify security, policy compliance, evide
513
568
  const answer = await inquirer.prompt([{
514
569
  type: 'confirm',
515
570
  name: 'enable',
516
- message: 'Enable governance wrapping?',
571
+ message: 'Enable governance wrapping? (press Enter for Yes)',
517
572
  default: true,
518
573
  }]);
519
574
  enableShims = answer.enable;
@@ -621,7 +676,7 @@ exit 127
621
676
  const answer = await inq.prompt([{
622
677
  type: 'confirm',
623
678
  name: 'install',
624
- message: `Install governance hooks for ${detected.map(t => t.name).join(', ')}?`,
679
+ message: `Install governance hooks for ${detected.map(t => t.name).join(', ')}? (press Enter for Yes)`,
625
680
  default: true,
626
681
  }]);
627
682
  installHooks = answer.install;
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",
4
+ "version": "3.14.6",
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": [