delimit-cli 4.1.3 → 4.1.4

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.
Files changed (2) hide show
  1. package/bin/delimit-cli.js +42 -6
  2. package/package.json +1 -1
@@ -2391,9 +2391,27 @@ program
2391
2391
  console.log(` ${chalk.yellow('→')} ${text}`);
2392
2392
  });
2393
2393
  }
2394
- console.log(chalk.bold('\n Next steps:\n'));
2395
- console.log(` ${chalk.green('npx delimit-cli lint')} ${target} ${chalk.gray('— check for breaking changes')}`);
2396
- console.log(` ${chalk.green('npx delimit-cli init')} ${chalk.gray('— set up governance for this project')}\n`);
2394
+ // Interactive next step picker
2395
+ try {
2396
+ const { next } = await inquirer.prompt([{
2397
+ type: 'list',
2398
+ name: 'next',
2399
+ message: 'What next?',
2400
+ choices: [
2401
+ { name: `Lint this spec for breaking changes`, value: 'lint' },
2402
+ { name: 'Set up governance for this project', value: 'init' },
2403
+ { name: 'Configure AI assistants (Claude, Codex, Gemini)', value: 'setup' },
2404
+ { name: 'Exit', value: 'exit' },
2405
+ ],
2406
+ }]);
2407
+ if (next === 'lint') {
2408
+ execSync(`npx delimit-cli lint ${target}`, { stdio: 'inherit' });
2409
+ } else if (next === 'init') {
2410
+ execSync('npx delimit-cli init', { stdio: 'inherit' });
2411
+ } else if (next === 'setup') {
2412
+ execSync('npx delimit-cli setup', { stdio: 'inherit' });
2413
+ }
2414
+ } catch {}
2397
2415
  } catch (e) {
2398
2416
  console.log(chalk.red(` Error: ${e.message}`));
2399
2417
  }
@@ -2452,9 +2470,27 @@ program
2452
2470
  console.log(` ${chalk.yellow('\u2014')} No OpenAPI specs found in this directory`);
2453
2471
  console.log(chalk.gray(' Tip: point at a spec file directly: npx delimit-cli scan openapi.yaml'));
2454
2472
  }
2455
- console.log(chalk.bold('\n Next:\n'));
2456
- console.log(` ${chalk.green('npx delimit-cli init')} ${chalk.gray('\u2014 set up governance')}`);
2457
- console.log(` ${chalk.green('npx delimit-cli setup')} ${chalk.gray('\u2014 configure AI assistants')}\n`);
2473
+ // Interactive next step picker
2474
+ try {
2475
+ const { next } = await inquirer.prompt([{
2476
+ type: 'list',
2477
+ name: 'next',
2478
+ message: 'What next?',
2479
+ choices: [
2480
+ { name: 'Set up governance for this project', value: 'init' },
2481
+ { name: 'Configure AI assistants (Claude, Codex, Gemini)', value: 'setup' },
2482
+ { name: 'Run a breaking change demo', value: 'try' },
2483
+ { name: 'Exit', value: 'exit' },
2484
+ ],
2485
+ }]);
2486
+ if (next === 'init') {
2487
+ execSync('npx delimit-cli init', { stdio: 'inherit' });
2488
+ } else if (next === 'setup') {
2489
+ execSync('npx delimit-cli setup', { stdio: 'inherit' });
2490
+ } else if (next === 'try') {
2491
+ execSync('npx delimit-cli try', { stdio: 'inherit' });
2492
+ }
2493
+ } catch {}
2458
2494
  } catch (e) {
2459
2495
  console.log(chalk.red(` Error: ${e.message}`));
2460
2496
  }
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": "4.1.3",
4
+ "version": "4.1.4",
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": [