@opencode-ai/ai 0.0.0-next-16210 → 0.0.0-next-16214
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/dist/protocols/open-responses.d.ts +326 -34
- package/dist/protocols/open-responses.js +111 -24
- package/dist/protocols/openai-compatible-responses.d.ts +6 -5
- package/dist/protocols/openai-responses.d.ts +117 -60
- package/dist/protocols/openai-responses.js +17 -3
- package/dist/providers/azure.d.ts +14 -6
- package/dist/providers/github-copilot.d.ts +14 -6
- package/dist/providers/google-vertex-responses.d.ts +6 -5
- package/dist/providers/openai-compatible-responses.d.ts +6 -5
- package/dist/providers/openai.d.ts +28 -12
- package/dist/providers/xai.d.ts +14 -6
- package/package.json +3 -3
|
@@ -102,13 +102,14 @@ export declare const routes: (import("../route").Route<{
|
|
|
102
102
|
readonly file_data: import("effect/Schema").String;
|
|
103
103
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
104
104
|
}>]>]>>;
|
|
105
|
-
}, "Type"> |
|
|
106
|
-
readonly
|
|
107
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
105
|
+
}, "Type"> | {
|
|
106
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
108
107
|
readonly type: import("effect/Schema").tag<"output_text">;
|
|
109
108
|
readonly text: import("effect/Schema").String;
|
|
110
|
-
}
|
|
111
|
-
|
|
109
|
+
}, "Type">[];
|
|
110
|
+
readonly role: "assistant";
|
|
111
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
112
|
+
} | import("effect/Schema").Struct.ReadonlySide<{
|
|
112
113
|
readonly type: import("effect/Schema").tag<"function_call">;
|
|
113
114
|
readonly call_id: import("effect/Schema").String;
|
|
114
115
|
readonly name: import("effect/Schema").String;
|
|
@@ -128,7 +129,14 @@ export declare const routes: (import("../route").Route<{
|
|
|
128
129
|
readonly file_data: import("effect/Schema").String;
|
|
129
130
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
130
131
|
}>]>>]>;
|
|
131
|
-
}, "Type">
|
|
132
|
+
}, "Type"> | {
|
|
133
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
134
|
+
readonly type: import("effect/Schema").tag<"output_text">;
|
|
135
|
+
readonly text: import("effect/Schema").String;
|
|
136
|
+
}, "Type">[];
|
|
137
|
+
readonly role: "assistant";
|
|
138
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
139
|
+
})[];
|
|
132
140
|
readonly model: string;
|
|
133
141
|
readonly stream: true;
|
|
134
142
|
readonly text?: {
|
|
@@ -45,13 +45,14 @@ export declare const routes: import("../route").Route<{
|
|
|
45
45
|
readonly file_data: import("effect/Schema").String;
|
|
46
46
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
47
47
|
}>]>]>>;
|
|
48
|
-
}, "Type"> |
|
|
49
|
-
readonly
|
|
50
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
48
|
+
}, "Type"> | {
|
|
49
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
51
50
|
readonly type: import("effect/Schema").tag<"output_text">;
|
|
52
51
|
readonly text: import("effect/Schema").String;
|
|
53
|
-
}
|
|
54
|
-
|
|
52
|
+
}, "Type">[];
|
|
53
|
+
readonly role: "assistant";
|
|
54
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
55
|
+
} | import("effect/Schema").Struct.ReadonlySide<{
|
|
55
56
|
readonly type: import("effect/Schema").tag<"function_call">;
|
|
56
57
|
readonly call_id: import("effect/Schema").String;
|
|
57
58
|
readonly name: import("effect/Schema").String;
|
|
@@ -45,13 +45,14 @@ export declare const routes: import("../route").Route<{
|
|
|
45
45
|
readonly file_data: import("effect/Schema").String;
|
|
46
46
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
47
47
|
}>]>]>>;
|
|
48
|
-
}, "Type"> |
|
|
49
|
-
readonly
|
|
50
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
48
|
+
}, "Type"> | {
|
|
49
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
51
50
|
readonly type: import("effect/Schema").tag<"output_text">;
|
|
52
51
|
readonly text: import("effect/Schema").String;
|
|
53
|
-
}
|
|
54
|
-
|
|
52
|
+
}, "Type">[];
|
|
53
|
+
readonly role: "assistant";
|
|
54
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
55
|
+
} | import("effect/Schema").Struct.ReadonlySide<{
|
|
55
56
|
readonly type: import("effect/Schema").tag<"function_call">;
|
|
56
57
|
readonly call_id: import("effect/Schema").String;
|
|
57
58
|
readonly name: import("effect/Schema").String;
|
|
@@ -100,13 +100,14 @@ export declare const routes: (Route<{
|
|
|
100
100
|
readonly file_data: import("effect/Schema").String;
|
|
101
101
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
102
102
|
}>]>]>>;
|
|
103
|
-
}, "Type"> |
|
|
104
|
-
readonly
|
|
105
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
103
|
+
}, "Type"> | {
|
|
104
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
106
105
|
readonly type: import("effect/Schema").tag<"output_text">;
|
|
107
106
|
readonly text: import("effect/Schema").String;
|
|
108
|
-
}
|
|
109
|
-
|
|
107
|
+
}, "Type">[];
|
|
108
|
+
readonly role: "assistant";
|
|
109
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
110
|
+
} | import("effect/Schema").Struct.ReadonlySide<{
|
|
110
111
|
readonly type: import("effect/Schema").tag<"function_call">;
|
|
111
112
|
readonly call_id: import("effect/Schema").String;
|
|
112
113
|
readonly name: import("effect/Schema").String;
|
|
@@ -126,7 +127,14 @@ export declare const routes: (Route<{
|
|
|
126
127
|
readonly file_data: import("effect/Schema").String;
|
|
127
128
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
128
129
|
}>]>>]>;
|
|
129
|
-
}, "Type">
|
|
130
|
+
}, "Type"> | {
|
|
131
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
132
|
+
readonly type: import("effect/Schema").tag<"output_text">;
|
|
133
|
+
readonly text: import("effect/Schema").String;
|
|
134
|
+
}, "Type">[];
|
|
135
|
+
readonly role: "assistant";
|
|
136
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
137
|
+
})[];
|
|
130
138
|
readonly model: string;
|
|
131
139
|
readonly stream: true;
|
|
132
140
|
readonly text?: {
|
|
@@ -198,13 +206,14 @@ export declare const routes: (Route<{
|
|
|
198
206
|
readonly file_data: import("effect/Schema").String;
|
|
199
207
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
200
208
|
}>]>]>>;
|
|
201
|
-
}, "Type"> |
|
|
202
|
-
readonly
|
|
203
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
209
|
+
}, "Type"> | {
|
|
210
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
204
211
|
readonly type: import("effect/Schema").tag<"output_text">;
|
|
205
212
|
readonly text: import("effect/Schema").String;
|
|
206
|
-
}
|
|
207
|
-
|
|
213
|
+
}, "Type">[];
|
|
214
|
+
readonly role: "assistant";
|
|
215
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
216
|
+
} | import("effect/Schema").Struct.ReadonlySide<{
|
|
208
217
|
readonly type: import("effect/Schema").tag<"function_call">;
|
|
209
218
|
readonly call_id: import("effect/Schema").String;
|
|
210
219
|
readonly name: import("effect/Schema").String;
|
|
@@ -224,7 +233,14 @@ export declare const routes: (Route<{
|
|
|
224
233
|
readonly file_data: import("effect/Schema").String;
|
|
225
234
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
226
235
|
}>]>>]>;
|
|
227
|
-
}, "Type">
|
|
236
|
+
}, "Type"> | {
|
|
237
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
238
|
+
readonly type: import("effect/Schema").tag<"output_text">;
|
|
239
|
+
readonly text: import("effect/Schema").String;
|
|
240
|
+
}, "Type">[];
|
|
241
|
+
readonly role: "assistant";
|
|
242
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
243
|
+
})[];
|
|
228
244
|
readonly model: string;
|
|
229
245
|
readonly stream: true;
|
|
230
246
|
readonly text?: {
|
package/dist/providers/xai.d.ts
CHANGED
|
@@ -99,13 +99,14 @@ export declare const routes: (import("../route").Route<{
|
|
|
99
99
|
readonly file_data: import("effect/Schema").String;
|
|
100
100
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
101
101
|
}>]>]>>;
|
|
102
|
-
}, "Type"> |
|
|
103
|
-
readonly
|
|
104
|
-
readonly content: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
102
|
+
}, "Type"> | {
|
|
103
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
105
104
|
readonly type: import("effect/Schema").tag<"output_text">;
|
|
106
105
|
readonly text: import("effect/Schema").String;
|
|
107
|
-
}
|
|
108
|
-
|
|
106
|
+
}, "Type">[];
|
|
107
|
+
readonly role: "assistant";
|
|
108
|
+
readonly phase?: "commentary" | "final_answer" | undefined;
|
|
109
|
+
} | import("effect/Schema").Struct.ReadonlySide<{
|
|
109
110
|
readonly type: import("effect/Schema").tag<"function_call">;
|
|
110
111
|
readonly call_id: import("effect/Schema").String;
|
|
111
112
|
readonly name: import("effect/Schema").String;
|
|
@@ -125,7 +126,14 @@ export declare const routes: (import("../route").Route<{
|
|
|
125
126
|
readonly file_data: import("effect/Schema").String;
|
|
126
127
|
readonly mime_type: import("effect/Schema").optional<import("effect/Schema").String>;
|
|
127
128
|
}>]>>]>;
|
|
128
|
-
}, "Type">
|
|
129
|
+
}, "Type"> | {
|
|
130
|
+
readonly content: readonly import("effect/Schema").Struct.ReadonlySide<{
|
|
131
|
+
readonly type: import("effect/Schema").tag<"output_text">;
|
|
132
|
+
readonly text: import("effect/Schema").String;
|
|
133
|
+
}, "Type">[];
|
|
134
|
+
readonly role: "assistant";
|
|
135
|
+
readonly phase?: "commentary" | "final_answer" | null | undefined;
|
|
136
|
+
})[];
|
|
129
137
|
readonly model: string;
|
|
130
138
|
readonly stream: true;
|
|
131
139
|
readonly text?: {
|
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-16214",
|
|
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-16214",
|
|
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-16214",
|
|
39
39
|
"aws4fetch": "1.0.20",
|
|
40
40
|
"effect": "4.0.0-beta.98",
|
|
41
41
|
"google-auth-library": "10.5.0"
|