@ai-sdk/harness-codex 1.0.158 → 1.0.160
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 +18 -0
- package/dist/bridge/index.mjs +9 -2
- package/dist/bridge/index.mjs.map +1 -1
- package/dist/index.js +4 -17
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/bridge/codex-app-server-driver.ts +11 -1
- package/src/codex-bridge-protocol.ts +2 -0
- package/src/codex-harness.ts +4 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @ai-sdk/harness-codex
|
|
2
2
|
|
|
3
|
+
## 1.0.160
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @ai-sdk/harness@1.0.158
|
|
8
|
+
|
|
9
|
+
## 1.0.159
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 184b9d3: feat(harness-codex): add support for image input
|
|
14
|
+
- Updated dependencies [0c2a9de]
|
|
15
|
+
- Updated dependencies [200c47f]
|
|
16
|
+
- Updated dependencies [ca2a9f7]
|
|
17
|
+
- @ai-sdk/provider@4.0.31
|
|
18
|
+
- @ai-sdk/provider-utils@5.0.64
|
|
19
|
+
- @ai-sdk/harness@1.0.157
|
|
20
|
+
|
|
3
21
|
## 1.0.158
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
package/dist/bridge/index.mjs
CHANGED
|
@@ -1625,11 +1625,18 @@ function createTurnParams({ threadId, start, codexModel, disableEnvironments = f
|
|
|
1625
1625
|
return {
|
|
1626
1626
|
threadId,
|
|
1627
1627
|
...disableEnvironments ? { environments: [] } : {},
|
|
1628
|
-
input: [{
|
|
1628
|
+
input: typeof start.prompt === "string" ? [{
|
|
1629
1629
|
type: "text",
|
|
1630
1630
|
text: start.prompt,
|
|
1631
1631
|
text_elements: []
|
|
1632
|
-
}]
|
|
1632
|
+
}] : start.prompt.map((part) => part.type === "text" ? {
|
|
1633
|
+
type: "text",
|
|
1634
|
+
text: part.text,
|
|
1635
|
+
text_elements: []
|
|
1636
|
+
} : {
|
|
1637
|
+
type: "image",
|
|
1638
|
+
url: `data:${part.mediaType};base64,${part.data}`
|
|
1639
|
+
}),
|
|
1633
1640
|
approvalPolicy: "never",
|
|
1634
1641
|
sandboxPolicy: {
|
|
1635
1642
|
type: "externalSandbox",
|