delimit-cli 3.6.8 → 3.6.10

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.
@@ -166,7 +166,8 @@ async function main() {
166
166
  if (toml.includes('[mcp_servers.delimit]')) {
167
167
  log(` ${green('✓')} Delimit already in Codex config`);
168
168
  } else {
169
- const codexEntry = `\n[mcp_servers.delimit]\ncommand = "${python}"\nargs = ["${actualServer}"]\ncwd = "${path.join(DELIMIT_HOME, 'server')}"\n`;
169
+ const serverDir = path.join(DELIMIT_HOME, 'server');
170
+ const codexEntry = `\n[mcp_servers.delimit]\ncommand = "${python}"\nargs = ["${actualServer}"]\ncwd = "${serverDir}"\n\n[mcp_servers.delimit.env]\nPYTHONPATH = "${serverDir}:${path.join(serverDir, 'ai')}"\n`;
170
171
  toml += codexEntry;
171
172
  fs.writeFileSync(CODEX_CONFIG, toml);
172
173
  log(` ${green('✓')} Added delimit to Codex (${CODEX_CONFIG})`);
@@ -326,7 +327,29 @@ Run full governance compliance checks. Verify security, policy compliance, evide
326
327
  }
327
328
  }
328
329
 
329
- // Step 6: Try it now
330
+ // Silent: auto-detect API keys and configure models.json (no output)
331
+ const modelsPath = path.join(DELIMIT_HOME, 'models.json');
332
+ if (!fs.existsSync(modelsPath)) {
333
+ const models = {};
334
+ if (process.env.XAI_API_KEY) {
335
+ models.grok = { name: 'Grok', api_url: 'https://api.x.ai/v1/chat/completions', model: 'grok-4-0709', env_key: 'XAI_API_KEY', enabled: true };
336
+ }
337
+ if (process.env.GOOGLE_APPLICATION_CREDENTIALS) {
338
+ const project = process.env.GOOGLE_CLOUD_PROJECT || process.env.GCLOUD_PROJECT || '';
339
+ models.gemini = { name: 'Gemini', api_url: `https://us-central1-aiplatform.googleapis.com/v1/projects/{project}/locations/us-central1/publishers/google/models/gemini-2.5-flash:generateContent`, model: 'gemini-2.5-flash', format: 'vertex_ai', enabled: true };
340
+ }
341
+ if (process.env.OPENAI_API_KEY) {
342
+ models.openai = { name: 'GPT', api_url: 'https://api.openai.com/v1/chat/completions', model: 'gpt-4o', env_key: 'OPENAI_API_KEY', enabled: true };
343
+ }
344
+ if (process.env.ANTHROPIC_API_KEY) {
345
+ models.anthropic = { name: 'Claude', api_url: 'https://api.anthropic.com/v1/messages', model: 'claude-sonnet-4-5-20250514', env_key: 'ANTHROPIC_API_KEY', format: 'anthropic', enabled: true };
346
+ }
347
+ if (Object.keys(models).length > 0) {
348
+ fs.writeFileSync(modelsPath, JSON.stringify(models, null, 2));
349
+ }
350
+ }
351
+
352
+ // Step 6: Done
330
353
  step(6, 'Done!');
331
354
  log('');
332
355
  log(` ${green('Delimit is installed.')} Your AI now has persistent memory and governance.`);
@@ -337,6 +360,7 @@ Run full governance compliance checks. Verify security, policy compliance, evide
337
360
  if (fs.existsSync(path.join(os.homedir(), '.cursor'))) tools.push('Cursor');
338
361
  if (fs.existsSync(GEMINI_DIR)) tools.push('Gemini CLI');
339
362
  log(` ${green('✓')} ${tools.join(', ')}`);
363
+
340
364
  log('');
341
365
  log(' Try it now:');
342
366
  log(` ${bold('$ claude')}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "delimit-cli",
3
- "version": "3.6.8",
3
+ "version": "3.6.10",
4
4
  "description": "Catch breaking API changes before they ship. GitHub Action + CLI for OpenAPI specs.",
5
5
  "main": "index.js",
6
6
  "files": [