@ai-sdk/harness-codex 1.0.167 → 1.0.169
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/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/bridge/index.mjs +2 -0
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/bridge/pnpm-lockfile.yaml +102 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/bridge/index.ts +13 -0
- package/src/codex-bootstrap.ts +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @ai-sdk/harness-codex
|
|
2
2
|
|
|
3
|
+
## 1.0.169
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 726a1cc: fix(harness): copy bridge lockfile as `pnpm-lockfile.yaml` in `dist/` so `pnpm pack` includes it in published tarballs
|
|
8
|
+
- @ai-sdk/harness@1.0.167
|
|
9
|
+
|
|
10
|
+
## 1.0.168
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 68db1af: fix(harness-codex): enable web search for Responses Lite models when using OpenAI API key or subscription auth
|
|
15
|
+
- Updated dependencies [57086ff]
|
|
16
|
+
- Updated dependencies [95348b3]
|
|
17
|
+
- @ai-sdk/provider-utils@5.0.70
|
|
18
|
+
- @ai-sdk/harness@1.0.166
|
|
19
|
+
|
|
3
20
|
## 1.0.167
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# AI SDK - Codex Harness
|
|
2
2
|
|
|
3
|
-
`HarnessV1` adapter backed by the [Codex CLI](https://www.npmjs.com/package/@openai/codex). The adapter runs Codex app-server inside a sandbox and communicates with it over JSON-RPC.
|
|
3
|
+
`HarnessV1` adapter backed by the [Codex CLI](https://www.npmjs.com/package/@openai/codex). The adapter runs Codex app-server inside a sandbox and communicates with it over JSON-RPC.
|
|
4
4
|
|
|
5
5
|
-> **Note**: This package is experimental.
|
|
6
6
|
|
package/dist/bridge/index.mjs
CHANGED
|
@@ -2114,6 +2114,7 @@ const bridgeStateDir = requireArg({
|
|
|
2114
2114
|
name: "--bridge-state-dir"
|
|
2115
2115
|
});
|
|
2116
2116
|
const HARNESS_CLIENT_APP = env.AI_SDK_HARNESS_CLIENT_APP;
|
|
2117
|
+
const STANDALONE_WEB_SEARCH_BASE_URLS = /* @__PURE__ */ new Set(["https://api.openai.com/v1", "https://chatgpt.com/backend-api/codex"]);
|
|
2117
2118
|
const threadState = { id: void 0 };
|
|
2118
2119
|
const appServer = createCodexAppServerRuntime();
|
|
2119
2120
|
await runBridge({
|
|
@@ -2191,6 +2192,7 @@ function resolveCodexRuntime({ start }) {
|
|
|
2191
2192
|
env_key: "CODEX_API_KEY",
|
|
2192
2193
|
wire_api: "responses",
|
|
2193
2194
|
supports_websockets: false,
|
|
2195
|
+
...STANDALONE_WEB_SEARCH_BASE_URLS.has(apiBaseUrl.replace(/\/+$/, "")) ? { supports_standalone_web_search: true } : {},
|
|
2194
2196
|
...start.headers != null || hasGatewayAuth && HARNESS_CLIENT_APP ? { http_headers: {
|
|
2195
2197
|
...start.headers,
|
|
2196
2198
|
...hasGatewayAuth && HARNESS_CLIENT_APP ? {
|