claude-codex-bridge 0.2.0 → 0.2.1

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.
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as logger, n as buildPlanPerfPrompt, r as execCommand, t as buildExplainCodePrompt } from "./prompt-builder-CQ2IGDTq.mjs";
2
+ import { a as execCommand, i as buildPlanPerfPrompt, o as logger, r as buildExplainCodePrompt, t as CLAUDE_MODELS } from "./types-zG6mPG0o.mjs";
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
  import { z } from "zod";
@@ -115,7 +115,7 @@ server.registerTool("claude_query", {
115
115
  inputSchema: {
116
116
  prompt: z.string().describe("The question or task for Claude"),
117
117
  workingDirectory: z.string().optional().describe("Working directory (defaults to server cwd)"),
118
- model: z.string().optional().describe("Model alias: sonnet, opus, or haiku"),
118
+ model: z.enum(CLAUDE_MODELS).optional().describe("Claude model alias"),
119
119
  maxTurns: z.number().optional().default(10).describe("Maximum agentic turns (limits runtime)"),
120
120
  allowedTools: z.array(z.string()).optional().describe("Restrict tools (e.g., [\"Read\", \"Grep\", \"Glob\"])")
121
121
  }
@@ -226,7 +226,7 @@ server.registerTool("claude_implement", {
226
226
  inputSchema: {
227
227
  task: z.string().describe("What to implement or fix"),
228
228
  workingDirectory: z.string().optional(),
229
- model: z.string().optional(),
229
+ model: z.enum(CLAUDE_MODELS).optional().describe("Claude model alias"),
230
230
  maxTurns: z.number().optional().default(15)
231
231
  }
232
232
  }, async ({ task, workingDirectory, model, maxTurns }) => {
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { i as logger, n as buildPlanPerfPrompt, r as execCommand, t as buildExplainCodePrompt } from "./prompt-builder-CQ2IGDTq.mjs";
2
+ import { a as execCommand, i as buildPlanPerfPrompt, n as CODEX_MODELS, o as logger, r as buildExplainCodePrompt } from "./types-zG6mPG0o.mjs";
3
3
  import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
4
4
  import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
5
5
  import { z } from "zod";
@@ -134,7 +134,7 @@ server.registerTool("codex_query", {
134
134
  inputSchema: {
135
135
  prompt: z.string().describe("The question or task for Codex"),
136
136
  workingDirectory: z.string().optional().describe("Working directory (defaults to server cwd)"),
137
- model: z.string().optional().describe("Override the Codex model (e.g., o4-mini, o3)"),
137
+ model: z.enum(CODEX_MODELS).optional().describe("Override the Codex model"),
138
138
  sandbox: z.enum([
139
139
  "read-only",
140
140
  "workspace-write",
@@ -239,7 +239,7 @@ server.registerTool("codex_implement", {
239
239
  inputSchema: {
240
240
  task: z.string().describe("What to implement or fix"),
241
241
  workingDirectory: z.string().optional(),
242
- model: z.string().optional(),
242
+ model: z.enum(CODEX_MODELS).optional().describe("Override the Codex model"),
243
243
  sandbox: z.enum(["workspace-write", "danger-full-access"]).optional().default("workspace-write").describe("Sandbox level (must allow writes)")
244
244
  }
245
245
  }, async ({ task, workingDirectory, model, sandbox }) => {
@@ -156,4 +156,17 @@ Perform the following analysis:
156
156
  }
157
157
 
158
158
  //#endregion
159
- export { logger as i, buildPlanPerfPrompt as n, execCommand as r, buildExplainCodePrompt as t };
159
+ //#region src/lib/types.ts
160
+ const CODEX_MODELS = [
161
+ "gpt-5.3-codex",
162
+ "gpt-5.2-codex",
163
+ "gpt-5.1-codex-max"
164
+ ];
165
+ const CLAUDE_MODELS = [
166
+ "sonnet",
167
+ "opus",
168
+ "haiku"
169
+ ];
170
+
171
+ //#endregion
172
+ export { execCommand as a, buildPlanPerfPrompt as i, CODEX_MODELS as n, logger as o, buildExplainCodePrompt as r, CLAUDE_MODELS as t };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-codex-bridge",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Bidirectional MCP server bridge between Claude Code and Codex CLI",
5
5
  "type": "module",
6
6
  "bin": {