openuispec 0.1.43 → 0.1.44

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/init.ts +1 -1
  2. package/package.json +1 -1
package/cli/init.ts CHANGED
@@ -507,7 +507,6 @@ const CODEX_MCP_BLOCK = `\n[mcp_servers.openuispec]\ncommand = "openuispec"\narg
507
507
 
508
508
  function configureCodexMcp(cwd: string, quiet: boolean): void {
509
509
  const codexDir = join(cwd, ".codex");
510
- if (!existsSync(codexDir)) return;
511
510
 
512
511
  const configPath = join(codexDir, "config.toml");
513
512
  try {
@@ -523,6 +522,7 @@ function configureCodexMcp(cwd: string, quiet: boolean): void {
523
522
  return;
524
523
  }
525
524
 
525
+ if (!existsSync(codexDir)) mkdirSync(codexDir);
526
526
  writeFileSync(configPath, content + CODEX_MCP_BLOCK);
527
527
  if (!quiet) console.log(` ${content ? "update" : "create"} ${CODEX_CONFIG_PATH} (MCP server configured)`);
528
528
  } catch {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openuispec",
3
- "version": "0.1.43",
3
+ "version": "0.1.44",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "A semantic UI specification format for AI-native, platform-native app development",