@opencode-ai/ai 0.0.0-next-16048 → 0.0.0-next-16050
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.
|
@@ -234,9 +234,9 @@ export declare const protocol: Protocol<{
|
|
|
234
234
|
} | null | undefined;
|
|
235
235
|
} | null | undefined;
|
|
236
236
|
readonly service_tier?: string | null | undefined;
|
|
237
|
-
readonly incomplete_details?:
|
|
238
|
-
readonly reason
|
|
239
|
-
}
|
|
237
|
+
readonly incomplete_details?: {
|
|
238
|
+
readonly reason?: string | undefined;
|
|
239
|
+
} | null | undefined;
|
|
240
240
|
} | undefined;
|
|
241
241
|
readonly message?: string | undefined;
|
|
242
242
|
readonly code?: string | null | undefined;
|
|
@@ -194,7 +194,7 @@ const OpenAIResponsesEvent = Schema.Struct({
|
|
|
194
194
|
response: Schema.optional(Schema.StructWithRest(Schema.Struct({
|
|
195
195
|
id: Schema.optional(Schema.String),
|
|
196
196
|
service_tier: optionalNull(Schema.String),
|
|
197
|
-
incomplete_details: optionalNull(Schema.Struct({ reason: Schema.String })),
|
|
197
|
+
incomplete_details: optionalNull(Schema.Struct({ reason: Schema.optional(Schema.String) })),
|
|
198
198
|
usage: optionalNull(OpenAIResponsesUsage),
|
|
199
199
|
error: optionalNull(OpenAIResponsesErrorPayload),
|
|
200
200
|
}), [Schema.Record(Schema.String, Schema.Unknown)])),
|
|
@@ -489,7 +489,7 @@ const mapUsage = (usage) => {
|
|
|
489
489
|
const mapFinishReason = (event, hasFunctionCall) => {
|
|
490
490
|
const reason = event.response?.incomplete_details?.reason;
|
|
491
491
|
if (reason === undefined || reason === null)
|
|
492
|
-
return hasFunctionCall ? "tool-calls" : "stop";
|
|
492
|
+
return hasFunctionCall ? "tool-calls" : event.type === "response.incomplete" ? "unknown" : "stop";
|
|
493
493
|
if (reason === "max_output_tokens")
|
|
494
494
|
return "length";
|
|
495
495
|
if (reason === "content_filter")
|
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-
|
|
3
|
+
"version": "0.0.0-next-16050",
|
|
4
4
|
"name": "@opencode-ai/ai",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@clack/prompts": "1.0.0-alpha.1",
|
|
28
28
|
"@effect/platform-node": "4.0.0-beta.98",
|
|
29
|
-
"@opencode-ai/http-recorder": "0.0.0-next-
|
|
29
|
+
"@opencode-ai/http-recorder": "0.0.0-next-16050",
|
|
30
30
|
"@tsconfig/bun": "1.0.9",
|
|
31
31
|
"@types/bun": "1.3.13",
|
|
32
32
|
"@typescript/native-preview": "7.0.0-dev.20251207.1",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@smithy/eventstream-codec": "4.2.14",
|
|
37
37
|
"@smithy/util-utf8": "4.2.2",
|
|
38
|
-
"@opencode-ai/schema": "0.0.0-next-
|
|
38
|
+
"@opencode-ai/schema": "0.0.0-next-16050",
|
|
39
39
|
"aws4fetch": "1.0.20",
|
|
40
40
|
"effect": "4.0.0-beta.98",
|
|
41
41
|
"google-auth-library": "10.5.0"
|