refactor: switch codex runner from app-server to SDK

Replace raw JSON-RPC app-server protocol with @openai/codex-sdk.
The SDK wraps `codex exec` which ensures complete task execution per
turn, fixing the issue where app-server mode ended turns prematurely
(agent saying "하겠습니다" without doing the work).

Also fix AGENTS.md copy in agent-runner (was copying instructions.md
which Codex CLI doesn't read).
This commit is contained in:
Eyejoker
2026-03-14 22:42:47 +09:00
parent 66bc3c6ff1
commit 26783e520e
5 changed files with 252 additions and 439 deletions

View File

@@ -8,7 +8,9 @@
"build": "tsc",
"start": "node dist/index.js"
},
"dependencies": {},
"dependencies": {
"@openai/codex-sdk": "^0.114.0"
},
"devDependencies": {
"@types/node": "^22.10.7",
"typescript": "^5.7.3"