@claudexor/harness-codex

中文文档
5.1.0发布于 2026/11/08MITTypeScriptES Module构建来源已验证近 30 天下载 4662

Codex CLI adapter (app-server lifecycle protocol).

原始使用文档

@claudexor/harness-codex

Internal package of Claudexor — Codex CLI adapter over the native app-server JSON-RPC lifecycle.

One app-server child owns one Claudexor run. Native goal continuations and run-owned background terminals keep that run active; Stop pauses the goal, interrupts the exact active turn, and terminates only terminals observed in that run.

The release-tested native evidence baseline is codex-cli 0.162.1, not a ceiling on installed versions: ordinary managed CLI installation resolves a new exact npm latest once, retaining the baseline as an explicit --release-tested choice that skips only the latest lookup (a runnable managed copy at or above it is kept; installing it still needs the npm registry). Its selected-account model/list capture is fixtures/models-0.162.1.json; the fallback keeps historical model ladders but takes the captured default (gpt-6.1-sol) from that version. The native turn-text bound was re-probed against an unauthenticated loopback provider: 1,048,576 Unicode scalars accepted; 1,048,577 refused before a provider request. This is a character bound, not a model token-window guarantee.

Live messages (POST /v2/runs/:id/messages, capability live_input: mid_turn): message(sessionId) steers the ACTIVE turn through turn/steer. Outcomes come from adapter state, never from error prose: accepted when the server answers {turnId}; delivered when the userMessage echo carrying our client id arrives (also yielded as a live_input_delivered status event); rejected when a refusal lands while the turn is still active; not_active when no turn is active (goal-continuation gap, background-terminal wait, after Stop); delivery_unknown on transport loss, a malformed reply or a missed 30 s deadline. A steer never fails or cancels the run. Recorded on codex-cli 0.156.1 in fixtures/app-server/recorded-steer-0.156.1.jsonl.

Published as part of the Claudexor toolchain; it follows the monorepo's lockstep version and has no separate semver contract. Use the claudexor CLI (or @claudexor/cli) as the supported entry point.

版本与发布记录

@claudexor/harness-codex 共发布 92 个版本,首次发布于 2026/07/09;过去 12 个月发布了 92 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
5.1.0latest2026/11/082 天前
5.0.22026/11/027 天前
5.0.12026/11/018 天前
4.8.22026/10/2912 天前
4.8.12026/10/2812 天前
4.7.02026/10/2318 天前

其他发布通道:next → 3.22.0。

关于 @claudexor/harness-codex 的常见问题

@claudexor/harness-codex 是什么?

Codex CLI adapter (app-server lifecycle protocol).

如何安装 @claudexor/harness-codex?

在项目目录运行 npm install @claudexor/harness-codex,或使用 pnpm add / yarn add / bun add。

@claudexor/harness-codex 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@claudexor/harness-codex 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@claudexor/harness-codex 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=24.15.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@claudexor/harness-codex 可以商用吗?

@claudexor/harness-codex 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@claudexor/harness-codex 的下载量有多少?

根据 npm 官方下载统计,@claudexor/harness-codex 在 2026/10/10 – 2026/11/08 这 30 天内被下载 4,662 次,日均约 155 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@claudexor/harness-codex 还在维护吗?

最新版本 5.1.0 发布于 2026/11/08(2 天前);至今共发布 92 个版本,其中过去 12 个月发布了 92 个;首次发布于 2026/07/09。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。