oh-my-customcodex 0.4.9 → 0.4.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.
package/dist/cli/index.js CHANGED
@@ -3091,7 +3091,7 @@ var init_package = __esm(() => {
3091
3091
  workspaces: [
3092
3092
  "packages/*"
3093
3093
  ],
3094
- version: "0.4.9",
3094
+ version: "0.4.10",
3095
3095
  description: "Batteries-included agent harness on top of GPT Codex + OMX",
3096
3096
  type: "module",
3097
3097
  bin: {
package/dist/index.js CHANGED
@@ -2180,7 +2180,7 @@ var package_default = {
2180
2180
  workspaces: [
2181
2181
  "packages/*"
2182
2182
  ],
2183
- version: "0.4.9",
2183
+ version: "0.4.10",
2184
2184
  description: "Batteries-included agent harness on top of GPT Codex + OMX",
2185
2185
  type: "module",
2186
2186
  bin: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "workspaces": [
4
4
  "packages/*"
5
5
  ],
6
- "version": "0.4.9",
6
+ "version": "0.4.10",
7
7
  "description": "Batteries-included agent harness on top of GPT Codex + OMX",
8
8
  "type": "module",
9
9
  "bin": {
@@ -31,7 +31,7 @@ Execute OpenAI Codex CLI prompts in non-interactive mode and return structured r
31
31
  ```
32
32
  1. Pre-checks
33
33
  - Verify `codex` binary is installed (which codex || npx codex --version)
34
- - Verify authentication (OPENAI_API_KEY or logged in)
34
+ - Verify authentication (`OPENAI_API_KEY`, `CODEX_API_KEY`, or stored `codex login` / ChatGPT login)
35
35
  2. Build command
36
36
  - Base: codex exec --ephemeral "<prompt>"
37
37
  - Apply options: --json, --model, --full-auto, -C <dir>
@@ -132,7 +132,7 @@ Works with the orchestrator pattern:
132
132
  codex-exec requires the Codex CLI binary to be installed and authenticated. The skill is only usable when:
133
133
 
134
134
  1. `codex` binary is found in PATH (`which codex` succeeds)
135
- 2. Authentication is valid (OPENAI_API_KEY set or `codex` logged in)
135
+ 2. Authentication is valid (`OPENAI_API_KEY`, `CODEX_API_KEY`, or stored auth from `codex login --api-key` / ChatGPT login)
136
136
 
137
137
  If either check fails, this skill cannot be used. Fall back to Claude agents for the task.
138
138
 
@@ -158,7 +158,7 @@ Orchestrator delegates generation task
158
158
 
159
159
  When the orchestrator or intent-detection detects a research/information gathering request (routing_rule in agent-triggers.yaml):
160
160
 
161
- 1. **Check Codex availability**: Verify `codex` binary and `OPENAI_API_KEY`
161
+ 1. **Check Codex availability**: Verify `codex` binary plus `OPENAI_API_KEY`, `CODEX_API_KEY`, or stored `codex login` auth
162
162
  2. **If available**: Execute with xhigh reasoning effort for thorough research
163
163
  3. **If unavailable**: Fall back to Claude's WebFetch/WebSearch
164
164
 
@@ -128,9 +128,11 @@ function validateEnvironment() {
128
128
  }
129
129
  }
130
130
 
131
- // Note: OPENAI_API_KEY is optional if codex has its own stored auth (via `codex auth`)
132
- if (!process.env.OPENAI_API_KEY) {
133
- console.error('[codex-wrapper] Note: OPENAI_API_KEY not set, relying on codex built-in auth');
131
+ // OPENAI_API_KEY/CODEX_API_KEY are optional when codex has stored auth from `codex login`.
132
+ if (!process.env.OPENAI_API_KEY && !process.env.CODEX_API_KEY) {
133
+ console.error(
134
+ '[codex-wrapper] Note: no OPENAI_API_KEY/CODEX_API_KEY set, relying on stored codex login or ChatGPT auth'
135
+ );
134
136
  }
135
137
 
136
138
  return {
@@ -204,6 +206,7 @@ function executeCodex(binary, args, timeout, workingDir = null) {
204
206
  const spawnOptions = {
205
207
  cwd: workingDir || process.cwd(),
206
208
  env: process.env,
209
+ stdio: ['ignore', 'pipe', 'pipe'],
207
210
  };
208
211
 
209
212
  const child = spawn(binary, args, spawnOptions);
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.4.9",
3
- "lastUpdated": "2026-04-27T05:25:00.000Z",
2
+ "version": "0.4.10",
3
+ "lastUpdated": "2026-04-28T00:01:33.302Z",
4
4
  "components": [
5
5
  {
6
6
  "name": "rules",