delimit-cli 3.14.33 → 3.14.35

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.
@@ -298,6 +298,18 @@ async function main() {
298
298
 
299
299
  // Step 3b: Configure Codex MCP (if installed)
300
300
  const CODEX_CONFIG = path.join(os.homedir(), '.codex', 'config.toml');
301
+ // Create config.toml if .codex dir exists or codex is in PATH
302
+ if (!fs.existsSync(CODEX_CONFIG)) {
303
+ const codexDir = path.join(os.homedir(), '.codex');
304
+ let hasCodex = fs.existsSync(codexDir);
305
+ if (!hasCodex) {
306
+ try { execSync('which codex 2>/dev/null', { stdio: 'pipe' }); hasCodex = true; } catch {}
307
+ }
308
+ if (hasCodex) {
309
+ fs.mkdirSync(codexDir, { recursive: true, mode: 0o755 });
310
+ fs.writeFileSync(CODEX_CONFIG, '', { mode: 0o644 });
311
+ }
312
+ }
301
313
  if (fs.existsSync(CODEX_CONFIG)) {
302
314
  try {
303
315
  let toml = fs.readFileSync(CODEX_CONFIG, 'utf-8');
@@ -308,7 +320,7 @@ async function main() {
308
320
  const serverDir = path.join(DELIMIT_HOME, 'server');
309
321
  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`;
310
322
  toml += codexEntry;
311
- fs.writeFileSync(CODEX_CONFIG, toml);
323
+ fs.writeFileSync(CODEX_CONFIG, toml, { mode: 0o644 });
312
324
  await logp(` ${green('✓')} Added delimit to Codex (${CODEX_CONFIG})`);
313
325
  configuredTools.push('Codex');
314
326
  }
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.33",
4
+ "version": "3.14.35",
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": [