{"_id":"@beautiful-ccg/adapter-codex","_rev":"3-d2fb800ad950e63ecf29f9397f79be27","name":"@beautiful-ccg/adapter-codex","dist-tags":{"latest":"0.3.0"},"versions":{"0.1.0":{"name":"@beautiful-ccg/adapter-codex","version":"0.1.0","_id":"@beautiful-ccg/adapter-codex@0.1.0","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"dist":{"shasum":"e2b6e6cf8ab9406dcf64110aee74c6f9335e02c4","tarball":"https://registry.npmjs.org/@beautiful-ccg/adapter-codex/-/adapter-codex-0.1.0.tgz","fileCount":7,"integrity":"sha512-WB57G0AMqMG+zUZVOHGiftpcDHWCaYnSYoj6HQY+pYcbNeZVjVe14N9yZUtjeRM4XRD0ymm8nPRcePQyFsQBIA==","signatures":[{"sig":"MEUCICGSt6FxBSMVmJS6OHaJEQfUb1T+UYBNmqj1e3nuaJyAAiEA+0PC8W3+pJwmulIUc6ZCh/e2nxodakZxILWsijGK1jA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11262},"main":"./dist/index.cjs","type":"module","_from":"file:beautiful-ccg-adapter-codex-0.1.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/8840cf3b43a3217d8d30fc3ebb220901/beautiful-ccg-adapter-codex-0.1.0.tgz","_integrity":"sha512-WB57G0AMqMG+zUZVOHGiftpcDHWCaYnSYoj6HQY+pYcbNeZVjVe14N9yZUtjeRM4XRD0ymm8nPRcePQyFsQBIA==","_npmVersion":"11.9.0","description":"bccg adapter for [OpenAI Codex CLI](https://github.com/openai/codex).","directories":{},"_nodeVersion":"24.14.0","dependencies":{"execa":"^9.5.0","@beautiful-ccg/adapter-base":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-codex_0.1.0_1775528145431_0.6721243915785635","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@beautiful-ccg/adapter-codex","version":"0.2.0","_id":"@beautiful-ccg/adapter-codex@0.2.0","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"dist":{"shasum":"73cc0012492a519fd2725db0dadd437f868b6bb6","tarball":"https://registry.npmjs.org/@beautiful-ccg/adapter-codex/-/adapter-codex-0.2.0.tgz","fileCount":7,"integrity":"sha512-tGnJeVpGML6lIT9UaiGnJYJjeN+zgMPD47XdWfvVwEwvOnrpzO50zji2mdLgWIJ9AGPMkEzGOspI90clEepL/Q==","signatures":[{"sig":"MEYCIQC29MumaIKrwdXmDX18NQF9fgG/wnP9dpxB8TZF+vvRMwIhAPQXz3QOnkeaSFDAENUbrG6PwMW1hfb1uPJfSZUNqDqn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11404},"main":"./dist/index.cjs","type":"module","_from":"file:beautiful-ccg-adapter-codex-0.2.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"scripts":{"test":"vitest run","build":"tsup"},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/49f57d3520e8872cbcb38f8a07ddb5a2/beautiful-ccg-adapter-codex-0.2.0.tgz","_integrity":"sha512-tGnJeVpGML6lIT9UaiGnJYJjeN+zgMPD47XdWfvVwEwvOnrpzO50zji2mdLgWIJ9AGPMkEzGOspI90clEepL/Q==","_npmVersion":"11.9.0","description":"bccg adapter for [OpenAI Codex CLI](https://github.com/openai/codex).","directories":{},"_nodeVersion":"24.14.0","dependencies":{"execa":"^9.5.0","@beautiful-ccg/adapter-base":"0.2.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","typescript":"^5.8.0","@types/node":"^22.0.0"},"_npmOperationalInternal":{"tmp":"tmp/adapter-codex_0.2.0_1775535839466_0.6707208673252372","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@beautiful-ccg/adapter-codex","version":"0.3.0","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"publishConfig":{"access":"public"},"dependencies":{"execa":"^9.5.0","@beautiful-ccg/adapter-base":"0.3.0"},"devDependencies":{"@types/node":"^22.0.0","tsup":"^8.4.0","typescript":"^5.8.0"},"scripts":{"build":"tsup","test":"vitest run"},"_id":"@beautiful-ccg/adapter-codex@0.3.0","description":"bccg adapter for [OpenAI Codex CLI](https://github.com/openai/codex).","_integrity":"sha512-VHU6Y+i1A2rTm9N77hENRPI+UINfrXJXQAiYiZIRqyJnr5N/rEtZxR0Zc7S9VC/F/McN6ZSdoYrcukE1KiQpsg==","_resolved":"/private/var/folders/n2/l33b5mwj3zq8bqgzq8m6pjx00000gn/T/f727f0b3a89d22ca25bbe0616dbec459/beautiful-ccg-adapter-codex-0.3.0.tgz","_from":"file:beautiful-ccg-adapter-codex-0.3.0.tgz","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-VHU6Y+i1A2rTm9N77hENRPI+UINfrXJXQAiYiZIRqyJnr5N/rEtZxR0Zc7S9VC/F/McN6ZSdoYrcukE1KiQpsg==","shasum":"948942446e37b9f210ddc89329bff98fa7006675","tarball":"https://registry.npmjs.org/@beautiful-ccg/adapter-codex/-/adapter-codex-0.3.0.tgz","fileCount":7,"unpackedSize":11404,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEGnZ+ZF87Mx+EmrkRS6ByY/cSV4S/9WPmp7h3ws3KSPAiEAq2ZqQShHAJnXDCtXMZd/4bEOJTWXAMsataqw+4cBRRs="}]},"_npmUser":{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"},"directories":{},"maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-codex_0.3.0_1775542745560_0.7631652304609526"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-07T02:15:45.282Z","modified":"2026-04-07T06:19:05.826Z","0.1.0":"2026-04-07T02:15:45.574Z","0.2.0":"2026-04-07T04:23:59.607Z","0.3.0":"2026-04-07T06:19:05.696Z"},"description":"bccg adapter for [OpenAI Codex CLI](https://github.com/openai/codex).","maintainers":[{"name":"justn-hyeok","email":"justn.hyeok@gmail.com"}],"readme":"# @beautiful-ccg/adapter-codex\n\nbccg adapter for [OpenAI Codex CLI](https://github.com/openai/codex).\n\n## Usage\n\n```typescript\nimport { CodexAdapter } from \"@beautiful-ccg/adapter-codex\";\n\nconst adapter = new CodexAdapter();\nconst result = await adapter.run(\"implement a retry function\");\nconsole.log(result.output);\n```\n\n## Properties\n\n| Property | Value |\n|---|---|\n| `name` | `\"codex\"` |\n| `costTier` | `\"medium\"` |\n| `multiModel` | `false` |\n\n## CLI Command\n\n```bash\ncodex exec <prompt> --json --full-auto\n```\n\nOutput is NDJSON. The parser collects text from `item.completed` events where `item.type === \"agent_message\"`, and extracts token counts from `turn.completed` events.\n\n## Exports\n\n- `CodexAdapter` — `ModelAdapter` implementation\n- `parseCodexOutput(stdout: string): CodexParsed` — standalone parser\n- `CodexParsed` — `{ content, model, exitCode, inputTokens?, outputTokens? }`\n","readmeFilename":"README.md"}