@nyte-ai/ai 0.0.23 → 0.0.25-beta.1
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/THIRD-PARTY-NOTICES.md +2 -38
- package/dist/chunks/{account-limits-cache-8qzk56vj.js → account-limits-cache-4qpef10z.js} +14 -1
- package/dist/chunks/{account-limits-cache-xds88kxd.js → account-limits-cache-525841fw.js} +12 -2
- package/dist/chunks/{account-limits-cache-me1x57bs.js → account-limits-cache-5ya94ve1.js} +42 -12
- package/dist/chunks/{account-limits-cache-ezvbhjym.js → account-limits-cache-5zw0zvpy.js} +4 -4
- package/dist/chunks/{account-limits-cache-pfa86y8e.js → account-limits-cache-9twrnvar.js} +1 -1
- package/dist/chunks/{account-limits-cache-vwgfz727.js → account-limits-cache-b25batbp.js} +2 -2
- package/dist/chunks/{account-limits-cache-vbw7n959.js → account-limits-cache-c8r9ga7d.js} +8 -8
- package/dist/chunks/{account-limits-cache-tq0ddhww.js → account-limits-cache-eq2sae8w.js} +3 -3
- package/dist/chunks/{account-limits-cache-zn01kscn.js → account-limits-cache-gtv32njs.js} +1 -1
- package/dist/chunks/{account-limits-cache-nxkprk3g.js → account-limits-cache-gvscpb51.js} +1 -1
- package/dist/chunks/{account-limits-cache-925zgz25.js → account-limits-cache-jt8g1rn2.js} +4 -4
- package/dist/chunks/{account-limits-cache-hndeb95d.js → account-limits-cache-k4zewdqs.js} +1 -1
- package/dist/chunks/{account-limits-cache-8yq9e32s.js → account-limits-cache-kn9pwsba.js} +3 -3
- package/dist/chunks/{account-limits-cache-0jdep92d.js → account-limits-cache-n916ac1t.js} +1 -1
- package/dist/chunks/{account-limits-cache-fdwad56n.js → account-limits-cache-qnrhx8gg.js} +1 -1
- package/dist/chunks/{account-limits-cache-w8ya0xct.js → account-limits-cache-rp9ht95p.js} +1 -1
- package/dist/chunks/{account-limits-cache-n3yk6g5c.js → account-limits-cache-s77e2bgc.js} +1 -1
- package/dist/chunks/{account-limits-cache-bsknrh6t.js → account-limits-cache-sk1m9fsp.js} +1 -1
- package/dist/chunks/{account-limits-cache-aazmkcnq.js → account-limits-cache-w0abqhna.js} +2 -2
- package/dist/chunks/{account-limits-cache-j8c5ra3q.js → account-limits-cache-wawwj02k.js} +16 -5
- package/dist/chunks/{account-limits-cache-6r6bqm7g.js → account-limits-cache-ygydb22m.js} +1 -1
- package/dist/chunks/{account-limits-cache-fbkaq46e.js → account-limits-cache-z9mfzg68.js} +1 -1
- package/dist/src/api/anthropic-convert.d.ts +9 -3
- package/dist/src/api/anthropic-convert.js +5 -2
- package/dist/src/api/anthropic-messages.js +48 -17
- package/dist/src/api/anthropic-messages.lazy.js +1 -1
- package/dist/src/api/deferred.js +1 -1
- package/dist/src/api/google-generative-ai.js +1 -1
- package/dist/src/api/google-generative-ai.lazy.js +1 -1
- package/dist/src/api/openai-codex-compact.js +7 -7
- package/dist/src/api/openai-codex-protocol.js +4 -4
- package/dist/src/api/openai-codex-responses.js +8 -8
- package/dist/src/api/openai-codex-responses.lazy.js +1 -1
- package/dist/src/api/openai-codex-websocket.js +7 -7
- package/dist/src/api/openai-completions-convert.js +2 -2
- package/dist/src/api/openai-completions-params.js +3 -3
- package/dist/src/api/openai-completions-reasoning.d.ts +5 -5
- package/dist/src/api/openai-completions.js +4 -4
- package/dist/src/api/openai-completions.lazy.js +1 -1
- package/dist/src/api/openai-responses-convert.js +2 -2
- package/dist/src/api/openai-responses-events.d.ts +98 -98
- package/dist/src/api/openai-responses-stream.js +4 -4
- package/dist/src/api/openai-responses.js +4 -4
- package/dist/src/api/openai-responses.lazy.js +1 -1
- package/dist/src/api/transform-messages.d.ts +11 -1
- package/dist/src/api/transform-messages.js +3 -1
- package/dist/src/auth/oauth/authorization-input.d.ts +2 -2
- package/dist/src/index.js +19 -19
- package/dist/src/providers/anthropic.js +2 -2
- package/dist/src/providers/github-copilot.d.ts +1 -1
- package/dist/src/providers/github-copilot.js +4 -4
- package/dist/src/providers/nyte-catalog.js +14 -14
- package/dist/src/providers/openai-codex.js +2 -2
- package/dist/src/providers/openai.js +2 -2
- package/dist/src/providers/opencode-go.js +6 -6
- package/dist/src/providers/opencode.js +5 -5
- package/dist/src/providers/openrouter.js +2 -2
- package/dist/src/providers/vercel-ai-gateway.js +2 -2
- package/dist/src/utils/failure.js +1 -1
- package/dist/src/utils/json-parse.js +1 -1
- package/dist/src/utils/overflow.js +2 -2
- package/dist/src/utils/retry.js +2 -2
- package/dist/src/utils/sse.js +1 -1
- package/package.json +3 -4
- /package/dist/chunks/{account-limits-cache-eyx1jcxc.js → account-limits-cache-20ttssmw.js} +0 -0
- /package/dist/chunks/{account-limits-cache-3dpd8f8k.js → account-limits-cache-3as87r3h.js} +0 -0
- /package/dist/chunks/{account-limits-cache-hxy4942k.js → account-limits-cache-khyz4r1r.js} +0 -0
- /package/dist/chunks/{account-limits-cache-k8z39pe7.js → account-limits-cache-s4xgnvwg.js} +0 -0
- /package/dist/chunks/{account-limits-cache-cknzwbq2.js → account-limits-cache-yck8f1w5.js} +0 -0
- /package/dist/chunks/{account-limits-cache-s9b5ecy4.js → account-limits-cache-z4y0mmpy.js} +0 -0
|
@@ -178,202 +178,202 @@ export declare const ResponsesStreamEventCheck: import("typebox/compile").Valida
|
|
|
178
178
|
code: Type.TOptional<Type.TUnion<[Type.TString, Type.TNull]>>;
|
|
179
179
|
message: Type.TOptional<Type.TString>;
|
|
180
180
|
}>]>, {
|
|
181
|
+
type: "response.custom_tool_call_input.delta";
|
|
182
|
+
output_index?: number | undefined;
|
|
183
|
+
delta: string;
|
|
184
|
+
} | {
|
|
185
|
+
type: "response.function_call_arguments.delta";
|
|
186
|
+
output_index?: number | undefined;
|
|
187
|
+
delta: string;
|
|
188
|
+
} | {
|
|
189
|
+
type: "response.output_text.delta";
|
|
190
|
+
output_index?: number | undefined;
|
|
191
|
+
delta: string;
|
|
192
|
+
} | {
|
|
193
|
+
type: "response.reasoning_summary_text.delta";
|
|
194
|
+
output_index?: number | undefined;
|
|
195
|
+
delta: string;
|
|
196
|
+
} | {
|
|
197
|
+
type: "response.reasoning_text.delta";
|
|
198
|
+
output_index?: number | undefined;
|
|
199
|
+
delta: string;
|
|
200
|
+
} | {
|
|
201
|
+
type: "response.refusal.delta";
|
|
202
|
+
output_index?: number | undefined;
|
|
203
|
+
delta: string;
|
|
204
|
+
} | {
|
|
181
205
|
type: "response.created";
|
|
182
206
|
response: {
|
|
183
207
|
id?: string | undefined;
|
|
184
208
|
};
|
|
185
209
|
} | {
|
|
186
|
-
output_index?: number | undefined;
|
|
187
210
|
type: "response.output_item.added" | "response.output_item.done";
|
|
211
|
+
output_index?: number | undefined;
|
|
188
212
|
item: {
|
|
189
|
-
|
|
213
|
+
type: "reasoning";
|
|
214
|
+
id: string;
|
|
215
|
+
summary?: {
|
|
190
216
|
text: string;
|
|
191
217
|
}[] | undefined;
|
|
192
|
-
|
|
218
|
+
content?: {
|
|
193
219
|
text: string;
|
|
194
220
|
}[] | undefined;
|
|
195
221
|
encrypted_content?: string | null | undefined;
|
|
196
|
-
id: string;
|
|
197
|
-
type: "reasoning";
|
|
198
222
|
} | {
|
|
223
|
+
type: "message";
|
|
199
224
|
id?: string | undefined;
|
|
225
|
+
phase?: "commentary" | "final_answer" | null | undefined;
|
|
200
226
|
content?: ({
|
|
201
|
-
text: string;
|
|
202
227
|
type: "output_text";
|
|
228
|
+
text: string;
|
|
203
229
|
} | {
|
|
204
230
|
type: "refusal";
|
|
205
231
|
refusal: string;
|
|
206
232
|
})[] | undefined;
|
|
207
|
-
phase?: "commentary" | "final_answer" | null | undefined;
|
|
208
|
-
type: "message";
|
|
209
233
|
} | {
|
|
234
|
+
type: "function_call";
|
|
210
235
|
id?: string | undefined;
|
|
236
|
+
call_id: string;
|
|
237
|
+
name: string;
|
|
211
238
|
arguments?: string | undefined;
|
|
212
239
|
namespace?: string | undefined;
|
|
213
|
-
name: string;
|
|
214
|
-
type: "function_call";
|
|
215
|
-
call_id: string;
|
|
216
240
|
} | {
|
|
241
|
+
type: "custom_tool_call";
|
|
217
242
|
id?: string | undefined;
|
|
243
|
+
call_id: string;
|
|
244
|
+
name: string;
|
|
218
245
|
input?: string | undefined;
|
|
219
246
|
namespace?: string | undefined;
|
|
220
|
-
name: string;
|
|
221
|
-
type: "custom_tool_call";
|
|
222
|
-
call_id: string;
|
|
223
247
|
};
|
|
224
248
|
} | {
|
|
249
|
+
type: "response.reasoning_summary_part.done";
|
|
225
250
|
output_index?: number | undefined;
|
|
226
|
-
type: "response.reasoning_summary_text.delta";
|
|
227
|
-
delta: string;
|
|
228
251
|
} | {
|
|
252
|
+
type: "response.function_call_arguments.done";
|
|
229
253
|
output_index?: number | undefined;
|
|
230
|
-
|
|
254
|
+
arguments: string;
|
|
231
255
|
} | {
|
|
256
|
+
type: "response.custom_tool_call_input.done";
|
|
232
257
|
output_index?: number | undefined;
|
|
233
|
-
|
|
234
|
-
delta: string;
|
|
258
|
+
input: string;
|
|
235
259
|
} | {
|
|
260
|
+
type: "response.completed" | "response.failed" | "response.incomplete";
|
|
261
|
+
response: {
|
|
262
|
+
id?: string | undefined;
|
|
263
|
+
status?: "cancelled" | "completed" | "failed" | "in_progress" | "incomplete" | "queued" | undefined;
|
|
264
|
+
incomplete_details?: {
|
|
265
|
+
reason?: string | undefined;
|
|
266
|
+
} | null | undefined;
|
|
267
|
+
error?: {
|
|
268
|
+
code?: string | null | undefined;
|
|
269
|
+
message?: string | undefined;
|
|
270
|
+
} | null | undefined;
|
|
271
|
+
output?: unknown[] | undefined;
|
|
272
|
+
usage?: unknown;
|
|
273
|
+
service_tier?: unknown;
|
|
274
|
+
};
|
|
275
|
+
} | {
|
|
276
|
+
type: "error";
|
|
277
|
+
code?: string | null | undefined;
|
|
278
|
+
message?: string | undefined;
|
|
279
|
+
}, {
|
|
280
|
+
type: "response.custom_tool_call_input.delta";
|
|
236
281
|
output_index?: number | undefined;
|
|
237
|
-
type: "response.output_text.delta";
|
|
238
282
|
delta: string;
|
|
239
283
|
} | {
|
|
284
|
+
type: "response.function_call_arguments.delta";
|
|
240
285
|
output_index?: number | undefined;
|
|
241
|
-
type: "response.refusal.delta";
|
|
242
286
|
delta: string;
|
|
243
287
|
} | {
|
|
288
|
+
type: "response.output_text.delta";
|
|
244
289
|
output_index?: number | undefined;
|
|
245
|
-
type: "response.function_call_arguments.delta";
|
|
246
290
|
delta: string;
|
|
247
291
|
} | {
|
|
292
|
+
type: "response.reasoning_summary_text.delta";
|
|
248
293
|
output_index?: number | undefined;
|
|
249
|
-
|
|
250
|
-
type: "response.function_call_arguments.done";
|
|
294
|
+
delta: string;
|
|
251
295
|
} | {
|
|
296
|
+
type: "response.reasoning_text.delta";
|
|
252
297
|
output_index?: number | undefined;
|
|
253
|
-
type: "response.custom_tool_call_input.delta";
|
|
254
298
|
delta: string;
|
|
255
299
|
} | {
|
|
300
|
+
type: "response.refusal.delta";
|
|
256
301
|
output_index?: number | undefined;
|
|
257
|
-
|
|
258
|
-
type: "response.custom_tool_call_input.done";
|
|
259
|
-
} | {
|
|
260
|
-
type: "response.completed" | "response.incomplete" | "response.failed";
|
|
261
|
-
response: {
|
|
262
|
-
error?: {
|
|
263
|
-
message?: string | undefined;
|
|
264
|
-
code?: string | null | undefined;
|
|
265
|
-
} | null | undefined;
|
|
266
|
-
id?: string | undefined;
|
|
267
|
-
service_tier?: unknown;
|
|
268
|
-
status?: "failed" | "completed" | "in_progress" | "incomplete" | "cancelled" | "queued" | undefined;
|
|
269
|
-
usage?: unknown;
|
|
270
|
-
output?: unknown[] | undefined;
|
|
271
|
-
incomplete_details?: {
|
|
272
|
-
reason?: string | undefined;
|
|
273
|
-
} | null | undefined;
|
|
274
|
-
};
|
|
302
|
+
delta: string;
|
|
275
303
|
} | {
|
|
276
|
-
message?: string | undefined;
|
|
277
|
-
code?: string | null | undefined;
|
|
278
|
-
type: "error";
|
|
279
|
-
}, {
|
|
280
304
|
type: "response.created";
|
|
281
305
|
response: {
|
|
282
306
|
id?: string | undefined;
|
|
283
307
|
};
|
|
284
308
|
} | {
|
|
285
|
-
output_index?: number | undefined;
|
|
286
309
|
type: "response.output_item.added" | "response.output_item.done";
|
|
310
|
+
output_index?: number | undefined;
|
|
287
311
|
item: {
|
|
288
|
-
|
|
312
|
+
type: "reasoning";
|
|
313
|
+
id: string;
|
|
314
|
+
summary?: {
|
|
289
315
|
text: string;
|
|
290
316
|
}[] | undefined;
|
|
291
|
-
|
|
317
|
+
content?: {
|
|
292
318
|
text: string;
|
|
293
319
|
}[] | undefined;
|
|
294
320
|
encrypted_content?: string | null | undefined;
|
|
295
|
-
id: string;
|
|
296
|
-
type: "reasoning";
|
|
297
321
|
} | {
|
|
322
|
+
type: "message";
|
|
298
323
|
id?: string | undefined;
|
|
324
|
+
phase?: "commentary" | "final_answer" | null | undefined;
|
|
299
325
|
content?: ({
|
|
300
|
-
text: string;
|
|
301
326
|
type: "output_text";
|
|
327
|
+
text: string;
|
|
302
328
|
} | {
|
|
303
329
|
type: "refusal";
|
|
304
330
|
refusal: string;
|
|
305
331
|
})[] | undefined;
|
|
306
|
-
phase?: "commentary" | "final_answer" | null | undefined;
|
|
307
|
-
type: "message";
|
|
308
332
|
} | {
|
|
333
|
+
type: "function_call";
|
|
309
334
|
id?: string | undefined;
|
|
335
|
+
call_id: string;
|
|
336
|
+
name: string;
|
|
310
337
|
arguments?: string | undefined;
|
|
311
338
|
namespace?: string | undefined;
|
|
312
|
-
name: string;
|
|
313
|
-
type: "function_call";
|
|
314
|
-
call_id: string;
|
|
315
339
|
} | {
|
|
340
|
+
type: "custom_tool_call";
|
|
316
341
|
id?: string | undefined;
|
|
342
|
+
call_id: string;
|
|
343
|
+
name: string;
|
|
317
344
|
input?: string | undefined;
|
|
318
345
|
namespace?: string | undefined;
|
|
319
|
-
name: string;
|
|
320
|
-
type: "custom_tool_call";
|
|
321
|
-
call_id: string;
|
|
322
346
|
};
|
|
323
347
|
} | {
|
|
324
|
-
output_index?: number | undefined;
|
|
325
|
-
type: "response.reasoning_summary_text.delta";
|
|
326
|
-
delta: string;
|
|
327
|
-
} | {
|
|
328
|
-
output_index?: number | undefined;
|
|
329
348
|
type: "response.reasoning_summary_part.done";
|
|
330
|
-
} | {
|
|
331
|
-
output_index?: number | undefined;
|
|
332
|
-
type: "response.reasoning_text.delta";
|
|
333
|
-
delta: string;
|
|
334
|
-
} | {
|
|
335
|
-
output_index?: number | undefined;
|
|
336
|
-
type: "response.output_text.delta";
|
|
337
|
-
delta: string;
|
|
338
|
-
} | {
|
|
339
|
-
output_index?: number | undefined;
|
|
340
|
-
type: "response.refusal.delta";
|
|
341
|
-
delta: string;
|
|
342
|
-
} | {
|
|
343
349
|
output_index?: number | undefined;
|
|
344
|
-
type: "response.function_call_arguments.delta";
|
|
345
|
-
delta: string;
|
|
346
350
|
} | {
|
|
347
|
-
output_index?: number | undefined;
|
|
348
|
-
arguments: string;
|
|
349
351
|
type: "response.function_call_arguments.done";
|
|
350
|
-
} | {
|
|
351
352
|
output_index?: number | undefined;
|
|
352
|
-
|
|
353
|
-
delta: string;
|
|
353
|
+
arguments: string;
|
|
354
354
|
} | {
|
|
355
|
+
type: "response.custom_tool_call_input.done";
|
|
355
356
|
output_index?: number | undefined;
|
|
356
357
|
input: string;
|
|
357
|
-
type: "response.custom_tool_call_input.done";
|
|
358
358
|
} | {
|
|
359
|
-
type: "response.completed" | "response.
|
|
359
|
+
type: "response.completed" | "response.failed" | "response.incomplete";
|
|
360
360
|
response: {
|
|
361
|
-
error?: {
|
|
362
|
-
message?: string | undefined;
|
|
363
|
-
code?: string | null | undefined;
|
|
364
|
-
} | null | undefined;
|
|
365
361
|
id?: string | undefined;
|
|
366
|
-
|
|
367
|
-
status?: "failed" | "completed" | "in_progress" | "incomplete" | "cancelled" | "queued" | undefined;
|
|
368
|
-
usage?: unknown;
|
|
369
|
-
output?: unknown[] | undefined;
|
|
362
|
+
status?: "cancelled" | "completed" | "failed" | "in_progress" | "incomplete" | "queued" | undefined;
|
|
370
363
|
incomplete_details?: {
|
|
371
364
|
reason?: string | undefined;
|
|
372
365
|
} | null | undefined;
|
|
366
|
+
error?: {
|
|
367
|
+
code?: string | null | undefined;
|
|
368
|
+
message?: string | undefined;
|
|
369
|
+
} | null | undefined;
|
|
370
|
+
output?: unknown[] | undefined;
|
|
371
|
+
usage?: unknown;
|
|
372
|
+
service_tier?: unknown;
|
|
373
373
|
};
|
|
374
374
|
} | {
|
|
375
|
-
message?: string | undefined;
|
|
376
|
-
code?: string | null | undefined;
|
|
377
375
|
type: "error";
|
|
376
|
+
code?: string | null | undefined;
|
|
377
|
+
message?: string | undefined;
|
|
378
378
|
}>;
|
|
379
379
|
export {};
|
|
@@ -2,17 +2,17 @@ import {
|
|
|
2
2
|
withPriorityTier2,
|
|
3
3
|
ResponsesUsageError2,
|
|
4
4
|
processResponsesStream2
|
|
5
|
-
} from "../../chunks/account-limits-cache-
|
|
5
|
+
} from "../../chunks/account-limits-cache-w0abqhna.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-nem079h8.js";
|
|
7
|
-
import"../../chunks/account-limits-cache-
|
|
8
|
-
import"../../chunks/account-limits-cache-
|
|
7
|
+
import"../../chunks/account-limits-cache-s77e2bgc.js";
|
|
8
|
+
import"../../chunks/account-limits-cache-4qpef10z.js";
|
|
9
9
|
import"../../chunks/account-limits-cache-736tdyme.js";
|
|
10
10
|
import"../../chunks/account-limits-cache-h92bzz1j.js";
|
|
11
11
|
import"../../chunks/account-limits-cache-eqwweapz.js";
|
|
12
12
|
import"../../chunks/account-limits-cache-0af5gqeg.js";
|
|
13
13
|
import"../../chunks/account-limits-cache-b4edaybk.js";
|
|
14
14
|
import"../../chunks/account-limits-cache-6250ykn6.js";
|
|
15
|
-
import"../../chunks/account-limits-cache-
|
|
15
|
+
import"../../chunks/account-limits-cache-z9mfzg68.js";
|
|
16
16
|
import"../../chunks/account-limits-cache-fsktnetm.js";
|
|
17
17
|
import"../../chunks/account-limits-cache-zcbkmrvy.js";
|
|
18
18
|
import"../../chunks/account-limits-cache-a6cgeagz.js";
|
|
@@ -50,19 +50,19 @@ import {
|
|
|
50
50
|
} from "../../chunks/account-limits-cache-csbxvam7.js";
|
|
51
51
|
import"../../chunks/account-limits-cache-0af5gqeg.js";
|
|
52
52
|
import"../../chunks/account-limits-cache-eqwweapz.js";
|
|
53
|
-
import"../../chunks/account-limits-cache-
|
|
53
|
+
import"../../chunks/account-limits-cache-4qpef10z.js";
|
|
54
54
|
import {
|
|
55
55
|
convertResponsesMessages2,
|
|
56
56
|
convertResponsesTools2
|
|
57
|
-
} from "../../chunks/account-limits-cache-
|
|
57
|
+
} from "../../chunks/account-limits-cache-s77e2bgc.js";
|
|
58
58
|
import"../../chunks/account-limits-cache-zgzptd0z.js";
|
|
59
|
-
import"../../chunks/account-limits-cache-
|
|
59
|
+
import"../../chunks/account-limits-cache-z9mfzg68.js";
|
|
60
60
|
import"../../chunks/account-limits-cache-736tdyme.js";
|
|
61
61
|
import"../../chunks/account-limits-cache-nem079h8.js";
|
|
62
62
|
import {
|
|
63
63
|
withPriorityTier2,
|
|
64
64
|
processResponsesStream2
|
|
65
|
-
} from "../../chunks/account-limits-cache-
|
|
65
|
+
} from "../../chunks/account-limits-cache-w0abqhna.js";
|
|
66
66
|
import {
|
|
67
67
|
readOpenAICompactResponse2
|
|
68
68
|
} from "../../chunks/account-limits-cache-pfr14mcn.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openAIResponsesApi2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
3
|
+
} from "../../chunks/account-limits-cache-s4xgnvwg.js";
|
|
4
4
|
import"../../chunks/account-limits-cache-90c9c2eb.js";
|
|
5
5
|
import"../../chunks/account-limits-cache-fsktnetm.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-zcbkmrvy.js";
|
|
@@ -1,4 +1,14 @@
|
|
|
1
|
-
import type { Api, AssistantMessage, Message, Model } from "../types.ts";
|
|
1
|
+
import type { Api, AssistantMessage, ImageContent, Message, Model, TextContent, ToolResultMessage } from "../types.ts";
|
|
2
|
+
/**
|
|
3
|
+
* Splits the images out of an error tool result, for APIs that reject anything but text in one
|
|
4
|
+
* (Anthropic). Send `content` as the tool result, then `caption` and `images` after all tool
|
|
5
|
+
* results of the turn, in the same user message. Undefined when the result needs no split.
|
|
6
|
+
*/
|
|
7
|
+
export declare function splitErrorToolResultImages(msg: ToolResultMessage): {
|
|
8
|
+
content: TextContent[];
|
|
9
|
+
caption: string;
|
|
10
|
+
images: ImageContent[];
|
|
11
|
+
} | undefined;
|
|
2
12
|
/**
|
|
3
13
|
* Normalize tool call ID for cross-provider compatibility.
|
|
4
14
|
* OpenAI Responses API generates IDs that are 450+ chars with special characters like `|`.
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
splitErrorToolResultImages2,
|
|
2
3
|
transformMessages2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
4
|
+
} from "../../chunks/account-limits-cache-4qpef10z.js";
|
|
4
5
|
export {
|
|
6
|
+
splitErrorToolResultImages2 as splitErrorToolResultImages,
|
|
5
7
|
transformMessages2 as transformMessages
|
|
6
8
|
};
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
* `code=...&state=...` query string, or a bare code. Browser-safe.
|
|
4
4
|
*/
|
|
5
5
|
export declare function parseAuthorizationInput(input: string): {
|
|
6
|
-
code?: undefined;
|
|
7
6
|
state?: undefined;
|
|
7
|
+
code?: undefined;
|
|
8
8
|
} | {
|
|
9
9
|
code: string | undefined;
|
|
10
10
|
state: string | undefined;
|
|
11
11
|
} | {
|
|
12
|
-
code: string;
|
|
13
12
|
state?: undefined;
|
|
13
|
+
code: string;
|
|
14
14
|
};
|
package/dist/src/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import {
|
|
13
13
|
compactOpenAICodexContext2,
|
|
14
14
|
compactOpenAIResponsesContext2
|
|
15
|
-
} from "../chunks/account-limits-cache-
|
|
15
|
+
} from "../chunks/account-limits-cache-yck8f1w5.js";
|
|
16
16
|
import"../chunks/account-limits-cache-nn9jebsj.js";
|
|
17
17
|
import {
|
|
18
18
|
EventStream2,
|
|
@@ -149,23 +149,23 @@ import {
|
|
|
149
149
|
parseStreamingJson2,
|
|
150
150
|
parseToolCallArguments2,
|
|
151
151
|
unfinishedToolCallArguments2
|
|
152
|
-
} from "../chunks/account-limits-cache-
|
|
152
|
+
} from "../chunks/account-limits-cache-z9mfzg68.js";
|
|
153
153
|
import {
|
|
154
154
|
reportsQuotaExhaustion2,
|
|
155
155
|
classifyAssistantFailure2,
|
|
156
156
|
retryCanHelp2
|
|
157
|
-
} from "../chunks/account-limits-cache-
|
|
157
|
+
} from "../chunks/account-limits-cache-525841fw.js";
|
|
158
158
|
import {
|
|
159
159
|
overflowsContext2,
|
|
160
160
|
stoppedShort2
|
|
161
|
-
} from "../chunks/account-limits-cache-
|
|
161
|
+
} from "../chunks/account-limits-cache-gvscpb51.js";
|
|
162
162
|
import {
|
|
163
163
|
DEFAULT_MAX_AGENT_RETRY_DELAY_MS2,
|
|
164
164
|
retryDelayMs2,
|
|
165
165
|
assistantRetryDelayMs2,
|
|
166
166
|
retryAssistantCall2,
|
|
167
167
|
failedTransiently2
|
|
168
|
-
} from "../chunks/account-limits-cache-
|
|
168
|
+
} from "../chunks/account-limits-cache-sk1m9fsp.js";
|
|
169
169
|
import {
|
|
170
170
|
contentText2,
|
|
171
171
|
getSystemMessageText2,
|
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
validateToolArguments2,
|
|
197
197
|
createToolArgumentParser2
|
|
198
198
|
} from "../chunks/account-limits-cache-kjx405q0.js";
|
|
199
|
-
import"../chunks/account-limits-cache-
|
|
199
|
+
import"../chunks/account-limits-cache-3as87r3h.js";
|
|
200
200
|
import"../chunks/account-limits-cache-ks1sjym9.js";
|
|
201
201
|
import"../chunks/account-limits-cache-ehy0ze2b.js";
|
|
202
202
|
import {
|
|
@@ -205,13 +205,13 @@ import {
|
|
|
205
205
|
import"../chunks/account-limits-cache-ydq8p8qp.js";
|
|
206
206
|
import {
|
|
207
207
|
anthropicProvider2
|
|
208
|
-
} from "../chunks/account-limits-cache-
|
|
209
|
-
import"../chunks/account-limits-cache-
|
|
210
|
-
import"../chunks/account-limits-cache-
|
|
208
|
+
} from "../chunks/account-limits-cache-k4zewdqs.js";
|
|
209
|
+
import"../chunks/account-limits-cache-20ttssmw.js";
|
|
210
|
+
import"../chunks/account-limits-cache-s4xgnvwg.js";
|
|
211
211
|
import {
|
|
212
212
|
githubCopilotProvider2
|
|
213
|
-
} from "../chunks/account-limits-cache-
|
|
214
|
-
import"../chunks/account-limits-cache-
|
|
213
|
+
} from "../chunks/account-limits-cache-kn9pwsba.js";
|
|
214
|
+
import"../chunks/account-limits-cache-z4y0mmpy.js";
|
|
215
215
|
import"../chunks/account-limits-cache-gknnm1kv.js";
|
|
216
216
|
import"../chunks/account-limits-cache-fvadc36m.js";
|
|
217
217
|
import {
|
|
@@ -219,29 +219,29 @@ import {
|
|
|
219
219
|
} from "../chunks/account-limits-cache-hj3ek3ty.js";
|
|
220
220
|
import {
|
|
221
221
|
openaiCodexProvider2
|
|
222
|
-
} from "../chunks/account-limits-cache-
|
|
222
|
+
} from "../chunks/account-limits-cache-n916ac1t.js";
|
|
223
223
|
import {
|
|
224
224
|
openaiProvider2
|
|
225
|
-
} from "../chunks/account-limits-cache-
|
|
225
|
+
} from "../chunks/account-limits-cache-ygydb22m.js";
|
|
226
226
|
import"../chunks/account-limits-cache-fht68jp2.js";
|
|
227
|
-
import"../chunks/account-limits-cache-
|
|
227
|
+
import"../chunks/account-limits-cache-khyz4r1r.js";
|
|
228
228
|
import {
|
|
229
229
|
opencodeProvider2
|
|
230
|
-
} from "../chunks/account-limits-cache-
|
|
230
|
+
} from "../chunks/account-limits-cache-jt8g1rn2.js";
|
|
231
231
|
import {
|
|
232
232
|
opencodeGoProvider2
|
|
233
|
-
} from "../chunks/account-limits-cache-
|
|
233
|
+
} from "../chunks/account-limits-cache-5zw0zvpy.js";
|
|
234
234
|
import {
|
|
235
235
|
openrouterProvider2
|
|
236
|
-
} from "../chunks/account-limits-cache-
|
|
236
|
+
} from "../chunks/account-limits-cache-9twrnvar.js";
|
|
237
237
|
import {
|
|
238
238
|
vercelAiGatewayProvider2
|
|
239
|
-
} from "../chunks/account-limits-cache-
|
|
239
|
+
} from "../chunks/account-limits-cache-rp9ht95p.js";
|
|
240
240
|
import {
|
|
241
241
|
defaultModelPerProvider2,
|
|
242
242
|
createNyteModels2,
|
|
243
243
|
nyteProviders2
|
|
244
|
-
} from "../chunks/account-limits-cache-
|
|
244
|
+
} from "../chunks/account-limits-cache-c8r9ga7d.js";
|
|
245
245
|
|
|
246
246
|
// src/index.ts
|
|
247
247
|
import { Type } from "typebox";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
anthropicProvider2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
3
|
+
} from "../../chunks/account-limits-cache-k4zewdqs.js";
|
|
4
4
|
import"../../chunks/account-limits-cache-ydq8p8qp.js";
|
|
5
5
|
import"../../chunks/account-limits-cache-re8hpzwn.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-ks1sjym9.js";
|
|
7
7
|
import"../../chunks/account-limits-cache-ehy0ze2b.js";
|
|
8
|
-
import"../../chunks/account-limits-cache-
|
|
8
|
+
import"../../chunks/account-limits-cache-3as87r3h.js";
|
|
9
9
|
import"../../chunks/account-limits-cache-6x05n06z.js";
|
|
10
10
|
import"../../chunks/account-limits-cache-ag5b8dja.js";
|
|
11
11
|
import"../../chunks/account-limits-cache-ykbqsvv6.js";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type GitHubCopilotOAuthOptions } from "../auth/oauth/github-copilot.ts";
|
|
2
|
-
export declare function githubCopilotProvider(options?: GitHubCopilotOAuthOptions): import("../models-types.ts").Provider<"
|
|
2
|
+
export declare function githubCopilotProvider(options?: GitHubCopilotOAuthOptions): import("../models-types.ts").Provider<"anthropic-messages" | "openai-completions" | "openai-responses">;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
githubCopilotProvider2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
3
|
+
} from "../../chunks/account-limits-cache-kn9pwsba.js";
|
|
4
4
|
import"../../chunks/account-limits-cache-cw7q7vfy.js";
|
|
5
|
-
import"../../chunks/account-limits-cache-
|
|
6
|
-
import"../../chunks/account-limits-cache-
|
|
7
|
-
import"../../chunks/account-limits-cache-
|
|
5
|
+
import"../../chunks/account-limits-cache-s4xgnvwg.js";
|
|
6
|
+
import"../../chunks/account-limits-cache-20ttssmw.js";
|
|
7
|
+
import"../../chunks/account-limits-cache-3as87r3h.js";
|
|
8
8
|
import"../../chunks/account-limits-cache-6x05n06z.js";
|
|
9
9
|
import"../../chunks/account-limits-cache-gs8a3fhw.js";
|
|
10
10
|
import"../../chunks/account-limits-cache-za42x8a3.js";
|
|
@@ -2,29 +2,29 @@ import {
|
|
|
2
2
|
defaultModelPerProvider2,
|
|
3
3
|
createNyteModels2,
|
|
4
4
|
nyteProviders2
|
|
5
|
-
} from "../../chunks/account-limits-cache-
|
|
5
|
+
} from "../../chunks/account-limits-cache-c8r9ga7d.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-yzyp0c2h.js";
|
|
7
|
-
import"../../chunks/account-limits-cache-
|
|
8
|
-
import"../../chunks/account-limits-cache-
|
|
7
|
+
import"../../chunks/account-limits-cache-n916ac1t.js";
|
|
8
|
+
import"../../chunks/account-limits-cache-z4y0mmpy.js";
|
|
9
9
|
import"../../chunks/account-limits-cache-hj3ek3ty.js";
|
|
10
10
|
import"../../chunks/account-limits-cache-fvadc36m.js";
|
|
11
|
-
import"../../chunks/account-limits-cache-
|
|
12
|
-
import"../../chunks/account-limits-cache-
|
|
13
|
-
import"../../chunks/account-limits-cache-
|
|
14
|
-
import"../../chunks/account-limits-cache-
|
|
11
|
+
import"../../chunks/account-limits-cache-ygydb22m.js";
|
|
12
|
+
import"../../chunks/account-limits-cache-5zw0zvpy.js";
|
|
13
|
+
import"../../chunks/account-limits-cache-jt8g1rn2.js";
|
|
14
|
+
import"../../chunks/account-limits-cache-khyz4r1r.js";
|
|
15
15
|
import"../../chunks/account-limits-cache-fht68jp2.js";
|
|
16
|
-
import"../../chunks/account-limits-cache-
|
|
17
|
-
import"../../chunks/account-limits-cache-
|
|
18
|
-
import"../../chunks/account-limits-cache-
|
|
16
|
+
import"../../chunks/account-limits-cache-9twrnvar.js";
|
|
17
|
+
import"../../chunks/account-limits-cache-rp9ht95p.js";
|
|
18
|
+
import"../../chunks/account-limits-cache-k4zewdqs.js";
|
|
19
19
|
import"../../chunks/account-limits-cache-ydq8p8qp.js";
|
|
20
20
|
import"../../chunks/account-limits-cache-re8hpzwn.js";
|
|
21
21
|
import"../../chunks/account-limits-cache-ks1sjym9.js";
|
|
22
22
|
import"../../chunks/account-limits-cache-ehy0ze2b.js";
|
|
23
|
-
import"../../chunks/account-limits-cache-
|
|
23
|
+
import"../../chunks/account-limits-cache-kn9pwsba.js";
|
|
24
24
|
import"../../chunks/account-limits-cache-cw7q7vfy.js";
|
|
25
|
-
import"../../chunks/account-limits-cache-
|
|
26
|
-
import"../../chunks/account-limits-cache-
|
|
27
|
-
import"../../chunks/account-limits-cache-
|
|
25
|
+
import"../../chunks/account-limits-cache-s4xgnvwg.js";
|
|
26
|
+
import"../../chunks/account-limits-cache-20ttssmw.js";
|
|
27
|
+
import"../../chunks/account-limits-cache-3as87r3h.js";
|
|
28
28
|
import"../../chunks/account-limits-cache-6x05n06z.js";
|
|
29
29
|
import"../../chunks/account-limits-cache-gs8a3fhw.js";
|
|
30
30
|
import"../../chunks/account-limits-cache-za42x8a3.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiCodexProvider2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
4
|
-
import"../../chunks/account-limits-cache-
|
|
3
|
+
} from "../../chunks/account-limits-cache-n916ac1t.js";
|
|
4
|
+
import"../../chunks/account-limits-cache-z4y0mmpy.js";
|
|
5
5
|
import"../../chunks/account-limits-cache-hj3ek3ty.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-fvadc36m.js";
|
|
7
7
|
import"../../chunks/account-limits-cache-ehy0ze2b.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiProvider2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
3
|
+
} from "../../chunks/account-limits-cache-ygydb22m.js";
|
|
4
4
|
import"../../chunks/account-limits-cache-ydq8p8qp.js";
|
|
5
|
-
import"../../chunks/account-limits-cache-
|
|
5
|
+
import"../../chunks/account-limits-cache-s4xgnvwg.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-6x05n06z.js";
|
|
7
7
|
import"../../chunks/account-limits-cache-ag5b8dja.js";
|
|
8
8
|
import"../../chunks/account-limits-cache-ykbqsvv6.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
opencodeGoProvider2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
4
|
-
import"../../chunks/account-limits-cache-
|
|
5
|
-
import"../../chunks/account-limits-cache-
|
|
3
|
+
} from "../../chunks/account-limits-cache-5zw0zvpy.js";
|
|
4
|
+
import"../../chunks/account-limits-cache-jt8g1rn2.js";
|
|
5
|
+
import"../../chunks/account-limits-cache-khyz4r1r.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-fht68jp2.js";
|
|
7
|
-
import"../../chunks/account-limits-cache-
|
|
8
|
-
import"../../chunks/account-limits-cache-
|
|
9
|
-
import"../../chunks/account-limits-cache-
|
|
7
|
+
import"../../chunks/account-limits-cache-s4xgnvwg.js";
|
|
8
|
+
import"../../chunks/account-limits-cache-20ttssmw.js";
|
|
9
|
+
import"../../chunks/account-limits-cache-3as87r3h.js";
|
|
10
10
|
import"../../chunks/account-limits-cache-6x05n06z.js";
|
|
11
11
|
import"../../chunks/account-limits-cache-ykbqsvv6.js";
|
|
12
12
|
import"../../chunks/account-limits-cache-90c9c2eb.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OPENCODE_PROMPT_CACHE2,
|
|
3
3
|
opencodeProvider2
|
|
4
|
-
} from "../../chunks/account-limits-cache-
|
|
5
|
-
import"../../chunks/account-limits-cache-
|
|
4
|
+
} from "../../chunks/account-limits-cache-jt8g1rn2.js";
|
|
5
|
+
import"../../chunks/account-limits-cache-khyz4r1r.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-fht68jp2.js";
|
|
7
|
-
import"../../chunks/account-limits-cache-
|
|
8
|
-
import"../../chunks/account-limits-cache-
|
|
9
|
-
import"../../chunks/account-limits-cache-
|
|
7
|
+
import"../../chunks/account-limits-cache-s4xgnvwg.js";
|
|
8
|
+
import"../../chunks/account-limits-cache-20ttssmw.js";
|
|
9
|
+
import"../../chunks/account-limits-cache-3as87r3h.js";
|
|
10
10
|
import"../../chunks/account-limits-cache-6x05n06z.js";
|
|
11
11
|
import"../../chunks/account-limits-cache-ykbqsvv6.js";
|
|
12
12
|
import"../../chunks/account-limits-cache-90c9c2eb.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openrouterProvider2
|
|
3
|
-
} from "../../chunks/account-limits-cache-
|
|
3
|
+
} from "../../chunks/account-limits-cache-9twrnvar.js";
|
|
4
4
|
import"../../chunks/account-limits-cache-ydq8p8qp.js";
|
|
5
|
-
import"../../chunks/account-limits-cache-
|
|
5
|
+
import"../../chunks/account-limits-cache-20ttssmw.js";
|
|
6
6
|
import"../../chunks/account-limits-cache-6x05n06z.js";
|
|
7
7
|
import"../../chunks/account-limits-cache-ag5b8dja.js";
|
|
8
8
|
import"../../chunks/account-limits-cache-ykbqsvv6.js";
|