@eventmodelers/cli 0.0.2 → 0.0.3

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/cli.js +7 -33
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -417,41 +417,15 @@ async function installStack(stackKey, stackCfg, options = {}) {
417
417
  console.log('\n ✓ Config already present — skipping credential prompt');
418
418
  }
419
419
 
420
- // --- 6. Claude execution (optional) ---
421
- console.log('\n🧠 Configuring Claude execution (optional)...');
422
- console.log(' Point the agent at a local vLLM/Ollama endpoint and/or pin a specific model, instead of the default Claude Code setup.');
423
-
424
- if (process.env.EVENTMODELERS_ANTHROPIC_BASE_URL || process.env.EVENTMODELERS_MODEL) {
425
- console.log(' ✓ Using EVENTMODELERS_ANTHROPIC_BASE_URL / EVENTMODELERS_MODEL from environment — skipping prompt');
426
- } else if (options.print) {
427
- console.log(' ✓ --print — skipping prompt, keeping existing Claude execution settings');
428
- } else {
429
- const presetUrls = ['', 'http://localhost:8000', 'http://localhost:11434'];
430
- let defaultUrlIndex = presetUrls.indexOf(config.anthropicBaseUrl || '');
431
- if (defaultUrlIndex === -1) defaultUrlIndex = 0;
432
-
433
- let anthropicBaseUrl = await selectPrompt('Anthropic Base URL:', [
434
- { label: 'None — use the default Claude Code endpoint', value: '' },
435
- { label: 'Local vLLM (http://localhost:8000)', value: 'http://localhost:8000' },
436
- { label: 'Local Ollama (http://localhost:11434)', value: 'http://localhost:11434' },
437
- { label: 'Custom…', value: '__custom__' },
438
- ], defaultUrlIndex);
439
-
440
- if (anthropicBaseUrl === '__custom__') {
441
- anthropicBaseUrl = await prompt(' Custom Anthropic Base URL: ');
442
- }
443
-
444
- const claudeModel = await prompt(` Model ${config.model ? `[${config.model}]` : '(optional, press Enter to skip)'}: `);
445
-
446
- if (anthropicBaseUrl) config.anthropicBaseUrl = anthropicBaseUrl;
447
- else delete config.anthropicBaseUrl;
448
- if (claudeModel) config.model = claudeModel;
449
- }
450
-
420
+ // Claude vs. Ollama, and any custom Anthropic-compatible base URL, is a `run`-time
421
+ // choice (`eventmodelers run` vs `--ollama`) — not an install-time one. Power users
422
+ // can still pin config.anthropicBaseUrl/model via EVENTMODELERS_ANTHROPIC_BASE_URL /
423
+ // EVENTMODELERS_MODEL env vars or by editing config.json directly; loadEffectiveConfig
424
+ // already picks those up above, so nothing further to do here.
451
425
  writeFileSync(configPath, JSON.stringify(config, null, 2));
452
426
  console.log(`\n ✓ Saved to ${relative(targetDir, configPath)}`);
453
427
 
454
- // --- 7. MCP server in .claude/settings.json ---
428
+ // --- 6. MCP server in .claude/settings.json ---
455
429
  console.log('\n🔌 Configuring MCP server...');
456
430
  console.log(' Registers the Eventmodelers MCP server in .claude/settings.json so Claude Code can call modeling tools directly.\n');
457
431
  const claudeSettingsDir = join(targetDir, '.claude');
@@ -510,7 +484,7 @@ async function installStack(stackKey, stackCfg, options = {}) {
510
484
  }
511
485
  }
512
486
 
513
- // --- 8. Install manifest (drives precise `uninstall` later) ---
487
+ // --- 7. Install manifest (drives precise `uninstall` later) ---
514
488
  // Only the footprint listed here is ever removed by `uninstall` — the root
515
489
  // scaffold (step 2) is real project source the user builds on, so it's
516
490
  // deliberately left out and never touched by uninstall.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventmodelers/cli",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Eventmodelers CLI — real-time Claude agent + skills for Claude Code, for any stack (Node, Supabase, Axon, Cratis, or modeling-only)",
5
5
  "type": "module",
6
6
  "bin": {