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
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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
|
-
//
|
|
132
|
-
if (!process.env.OPENAI_API_KEY) {
|
|
133
|
-
console.error(
|
|
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);
|
package/templates/manifest.json
CHANGED