@opencode-ai/ai 0.0.0-next-17055 → 0.0.0-next-17073

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.
@@ -314,12 +314,12 @@ const lowerMedia = Effect.fn("AnthropicMessages.lowerMedia")(function* (part) {
314
314
  });
315
315
  // Tool results may carry structured text, images, and documents. Keep media as provider-native
316
316
  // content instead of JSON-stringifying base64 into a prompt string.
317
- const lowerToolResultContentItem = Effect.fn("AnthropicMessages.lowerToolResultContentItem")(function* (item) {
317
+ const lowerToolResultContentItem = Effect.fnUntraced(function* (item) {
318
318
  if (item.type === "text")
319
319
  return { type: "text", text: item.text };
320
320
  return yield* lowerMedia({ type: "media", mediaType: item.mime, data: item.uri, filename: item.name });
321
321
  });
322
- const lowerToolResultContent = Effect.fn("AnthropicMessages.lowerToolResultContent")(function* (part) {
322
+ const lowerToolResultContent = Effect.fnUntraced(function* (part) {
323
323
  // Text / json / error results stay as a string for backward compatibility
324
324
  // with existing cassettes and provider expectations.
325
325
  if (part.result.type !== "content")
@@ -232,7 +232,7 @@ const lowerMedia = Effect.fn("OpenResponses.lowerMedia")(function* (part, reques
232
232
  }
233
233
  return { type: "input_image", image_url: media.dataUrl };
234
234
  });
235
- const lowerUserContent = Effect.fn("OpenResponses.lowerUserContent")(function* (part, request, extension) {
235
+ const lowerUserContent = Effect.fnUntraced(function* (part, request, extension) {
236
236
  if (part.type === "text")
237
237
  return { type: "input_text", text: part.text };
238
238
  if (part.type === "media")
@@ -241,12 +241,12 @@ const lowerUserContent = Effect.fn("OpenResponses.lowerUserContent")(function* (
241
241
  });
242
242
  // Tool results may carry structured text, images, and files. Keep media as provider-native
243
243
  // content instead of JSON-stringifying base64 into a prompt string.
244
- const lowerToolResultContentItem = Effect.fn("OpenResponses.lowerToolResultContentItem")(function* (item, request, extension) {
244
+ const lowerToolResultContentItem = Effect.fnUntraced(function* (item, request, extension) {
245
245
  if (item.type === "text")
246
246
  return { type: "input_text", text: item.text };
247
247
  return yield* lowerMedia({ type: "media", mediaType: item.mime, data: item.uri, filename: item.name }, request, extension);
248
248
  });
249
- const lowerToolResultOutput = Effect.fn("OpenResponses.lowerToolResultOutput")(function* (part, request, extension) {
249
+ const lowerToolResultOutput = Effect.fnUntraced(function* (part, request, extension) {
250
250
  // Text/json/error results are encoded as a plain string for backward
251
251
  // compatibility with existing cassettes and provider expectations.
252
252
  if (part.result.type !== "content")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
- "version": "0.0.0-next-17055",
3
+ "version": "0.0.0-next-17073",
4
4
  "name": "@opencode-ai/ai",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -30,7 +30,7 @@
30
30
  "devDependencies": {
31
31
  "@clack/prompts": "1.0.0-alpha.1",
32
32
  "@effect/platform-node": "4.0.0-beta.101",
33
- "@opencode-ai/http-recorder": "0.0.0-next-17055",
33
+ "@opencode-ai/http-recorder": "0.0.0-next-17073",
34
34
  "@tsconfig/bun": "1.0.9",
35
35
  "@types/bun": "1.3.13",
36
36
  "@typescript/native-preview": "7.0.0-dev.20251207.1",
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "@smithy/eventstream-codec": "4.2.14",
41
41
  "@smithy/util-utf8": "4.2.2",
42
- "@opencode-ai/schema": "0.0.0-next-17055",
42
+ "@opencode-ai/schema": "0.0.0-next-17073",
43
43
  "aws4fetch": "1.0.20",
44
44
  "effect": "4.0.0-beta.101",
45
45
  "google-auth-library": "10.5.0"