@nextblock-cms/cortex 0.20.1 → 0.21.0

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.
Files changed (71) hide show
  1. package/client.cjs.js +1 -1
  2. package/client.es.js +3 -7
  3. package/index.cjs.js +1 -1
  4. package/index.es.js +24 -277
  5. package/lib/ai-block-generation.cjs.js +3 -4
  6. package/lib/ai-block-generation.es.js +143 -182
  7. package/lib/ai-client.cjs.js +1 -1
  8. package/lib/ai-client.d.ts +1 -1
  9. package/lib/ai-client.es.js +101 -135
  10. package/lib/ai-config.cjs.js +1 -1
  11. package/lib/ai-config.es.js +89 -108
  12. package/lib/ai-cortex-widget-builder.cjs.js +1 -1
  13. package/lib/ai-cortex-widget-builder.es.js +56 -70
  14. package/lib/ai-global-agent-content-ops-tools.cjs.js +1 -1
  15. package/lib/ai-global-agent-content-ops-tools.d.ts +1943 -68
  16. package/lib/ai-global-agent-content-ops-tools.es.js +185 -199
  17. package/lib/ai-global-agent-custom-block-tools.cjs.js +1 -1
  18. package/lib/ai-global-agent-custom-block-tools.d.ts +2160 -95
  19. package/lib/ai-global-agent-custom-block-tools.es.js +226 -223
  20. package/lib/ai-global-agent-db-tools.cjs.js +1 -1
  21. package/lib/ai-global-agent-db-tools.d.ts +2708 -98
  22. package/lib/ai-global-agent-db-tools.es.js +1013 -986
  23. package/lib/ai-global-agent-ecommerce.cjs.js +1 -1
  24. package/lib/ai-global-agent-ecommerce.es.js +3 -7
  25. package/lib/ai-global-agent-site-tools.cjs.js +2 -3
  26. package/lib/ai-global-agent-site-tools.d.ts +10695 -500
  27. package/lib/ai-global-agent-site-tools.es.js +750 -757
  28. package/lib/ai-global-agent-theming-tools.cjs.js +1 -3
  29. package/lib/ai-global-agent-theming-tools.d.ts +2905 -105
  30. package/lib/ai-global-agent-theming-tools.es.js +326 -396
  31. package/lib/ai-global-agent-tools.cjs.js +2 -2
  32. package/lib/ai-global-agent-tools.d.ts +4 -2230
  33. package/lib/ai-global-agent-tools.es.js +3899 -4328
  34. package/lib/ai-key-crypto.cjs.js +1 -1
  35. package/lib/ai-key-crypto.es.js +63 -82
  36. package/lib/ai-key-verification.cjs.js +1 -1
  37. package/lib/ai-key-verification.es.js +74 -63
  38. package/lib/ai-model-catalog.cjs.js +1 -1
  39. package/lib/ai-model-catalog.es.js +18 -22
  40. package/lib/ai-model-registry.cjs.js +2 -2
  41. package/lib/ai-model-registry.es.js +246 -309
  42. package/lib/ai-seo-metadata.cjs.js +2 -3
  43. package/lib/ai-seo-metadata.es.js +143 -185
  44. package/lib/ai-vision.cjs.js +2 -2
  45. package/lib/ai-vision.d.ts +6 -6
  46. package/lib/ai-vision.es.js +161 -215
  47. package/lib/block-content-schemas.cjs.js +1 -1
  48. package/lib/block-content-schemas.es.js +324 -254
  49. package/lib/cortex-widget-registry.cjs.js +1 -1
  50. package/lib/cortex-widget-registry.es.js +35 -43
  51. package/lib/cortex-widget-schema.cjs.js +2 -3
  52. package/lib/cortex-widget-schema.es.js +280 -309
  53. package/lib/editor-document-from-html.cjs.js +1 -1
  54. package/lib/editor-document-from-html.es.js +334 -278
  55. package/lib/fetch-host-guard.cjs.js +1 -0
  56. package/lib/fetch-host-guard.d.ts +2 -0
  57. package/lib/fetch-host-guard.es.js +30 -0
  58. package/lib/mcp-server.cjs.js +1 -1
  59. package/lib/mcp-server.es.js +155 -173
  60. package/lib/mcp-tokens.cjs.js +1 -1
  61. package/lib/mcp-tokens.es.js +95 -107
  62. package/lib/mcp-tool-registry.cjs.js +5 -6
  63. package/lib/mcp-tool-registry.es.js +533 -411
  64. package/lib/site-brief.cjs.js +2 -2
  65. package/lib/site-brief.es.js +102 -108
  66. package/lib/vision-image-download.cjs.js +1 -0
  67. package/lib/vision-image-download.d.ts +43 -0
  68. package/lib/vision-image-download.es.js +120 -0
  69. package/lib/zod-config.cjs.js +1 -1
  70. package/lib/zod-config.es.js +5 -6
  71. package/package.json +8 -8
@@ -173,110 +173,2910 @@ export declare function executeManageSiteScript(input: z.infer<typeof manageSite
173
173
  message?: undefined;
174
174
  }>;
175
175
  export declare function createCortexThemingTools(context?: ThemingToolContext): {
176
- list_site_script_revisions: import('ai').Tool<{
177
- limit: number;
178
- scriptName?: string | undefined;
179
- }, {
180
- count: any;
181
- revisions: any;
182
- success: boolean;
183
- }>;
184
- revert_site_script: import('ai').Tool<{
185
- revisionId: string;
186
- }, {
187
- message: string;
188
- mutationExecuted: boolean;
189
- success: boolean;
190
- name?: undefined;
191
- recreated?: undefined;
192
- } | {
193
- mutationExecuted: boolean;
194
- name: string;
195
- recreated: boolean;
196
- success: boolean;
197
- message?: undefined;
198
- }>;
199
- list_site_scripts: import('ai').Tool<Record<string, never>, {
200
- count: any;
201
- scripts: any;
202
- success: boolean;
203
- }>;
204
- manage_site_script: import('ai').Tool<{
205
- action: "delete" | "upsert";
206
- is_active: boolean;
207
- load_strategy: "default" | "defer" | "async";
208
- name: string;
209
- purpose: string;
210
- placement: "body_end" | "head" | "body_start";
211
- sort_order: number;
212
- code?: string | undefined;
213
- description?: string | null | undefined;
214
- src?: string | null | undefined;
215
- }, {
216
- message: string;
217
- mutationExecuted: boolean;
218
- success: boolean;
219
- action?: undefined;
220
- name?: undefined;
221
- created?: undefined;
222
- isActive?: undefined;
223
- placement?: undefined;
224
- safetyReview?: undefined;
225
- statedPurpose?: undefined;
226
- } | {
227
- action: string;
228
- mutationExecuted: boolean;
229
- name: string;
230
- success: boolean;
231
- message?: undefined;
232
- created?: undefined;
233
- isActive?: undefined;
234
- placement?: undefined;
235
- safetyReview?: undefined;
236
- statedPurpose?: undefined;
237
- } | {
238
- action: string;
239
- created: boolean;
240
- isActive: boolean;
241
- mutationExecuted: boolean;
242
- name: string;
243
- placement: "body_end" | "head" | "body_start";
244
- safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
245
- statedPurpose: string;
246
- success: boolean;
247
- message?: undefined;
248
- }>;
249
- list_site_themes: import('ai').Tool<Record<string, never>, {
250
- globalCss: string;
251
- success: boolean;
252
- themes: any;
253
- }>;
254
- manage_site_theme: import('ai').Tool<{
255
- slug: string;
256
- color_scheme?: "light" | "dark" | undefined;
257
- description?: string | null | undefined;
258
- extra_css?: string | null | undefined;
259
- icon?: string | undefined;
260
- is_default?: boolean | undefined;
261
- name?: string | undefined;
262
- tokens?: Record<string, string> | undefined;
263
- }, {
264
- created: boolean;
265
- isDefault: boolean;
266
- mutationExecuted: boolean;
267
- slug: string;
268
- success: boolean;
269
- themeId: string;
270
- tokenCount: number;
271
- }>;
272
- update_global_css: import('ai').Tool<{
273
- css: string;
274
- mode: "replace" | "append";
275
- }, {
276
- characters: number;
277
- mode: "replace" | "append";
278
- mutationExecuted: boolean;
279
- success: boolean;
280
- }>;
176
+ list_site_script_revisions: ({
177
+ deferLoading?: boolean;
178
+ title?: string;
179
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
180
+ metadata?: import('@ai-sdk/provider').JSONObject;
181
+ inputSchema: import('ai').FlexibleSchema<{
182
+ limit: number;
183
+ scriptName?: string | undefined;
184
+ }>;
185
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
186
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
187
+ limit: number;
188
+ scriptName?: string | undefined;
189
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
190
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
191
+ onInputDelta?: ((options: {
192
+ inputTextDelta: string;
193
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
194
+ onInputAvailable?: ((options: {
195
+ input: {
196
+ limit: number;
197
+ scriptName?: string | undefined;
198
+ };
199
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
200
+ toModelOutput?: ((options: {
201
+ toolCallId: string;
202
+ input: {
203
+ limit: number;
204
+ scriptName?: string | undefined;
205
+ };
206
+ output: NoInfer<{
207
+ count: any;
208
+ revisions: any;
209
+ success: boolean;
210
+ }>;
211
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
212
+ } & {
213
+ outputSchema?: import('ai').FlexibleSchema<{
214
+ count: any;
215
+ revisions: any;
216
+ success: boolean;
217
+ }> | undefined;
218
+ execute: import('ai').ToolExecuteFunction<{
219
+ limit: number;
220
+ scriptName?: string | undefined;
221
+ }, {
222
+ count: any;
223
+ revisions: any;
224
+ success: boolean;
225
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
226
+ } & {
227
+ description?: string | ((options: {
228
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
229
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
230
+ }) => string) | undefined;
231
+ strict?: boolean;
232
+ inputExamples?: {
233
+ input: NoInfer<{
234
+ limit: number;
235
+ scriptName?: string | undefined;
236
+ }>;
237
+ }[] | undefined;
238
+ id?: never;
239
+ isProviderExecuted?: never;
240
+ args?: never;
241
+ supportsDeferredResults?: never;
242
+ } & {
243
+ type?: undefined | "function";
244
+ } & {
245
+ execute: import('ai').ToolExecuteFunction<{
246
+ limit: number;
247
+ scriptName?: string | undefined;
248
+ }, {
249
+ count: any;
250
+ revisions: any;
251
+ success: boolean;
252
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
253
+ }) | ({
254
+ deferLoading?: boolean;
255
+ title?: string;
256
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
257
+ metadata?: import('@ai-sdk/provider').JSONObject;
258
+ inputSchema: import('ai').FlexibleSchema<{
259
+ limit: number;
260
+ scriptName?: string | undefined;
261
+ }>;
262
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
263
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
264
+ limit: number;
265
+ scriptName?: string | undefined;
266
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
267
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
268
+ onInputDelta?: ((options: {
269
+ inputTextDelta: string;
270
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
271
+ onInputAvailable?: ((options: {
272
+ input: {
273
+ limit: number;
274
+ scriptName?: string | undefined;
275
+ };
276
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
277
+ toModelOutput?: ((options: {
278
+ toolCallId: string;
279
+ input: {
280
+ limit: number;
281
+ scriptName?: string | undefined;
282
+ };
283
+ output: NoInfer<{
284
+ count: any;
285
+ revisions: any;
286
+ success: boolean;
287
+ }>;
288
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
289
+ } & {
290
+ outputSchema?: import('ai').FlexibleSchema<{
291
+ count: any;
292
+ revisions: any;
293
+ success: boolean;
294
+ }> | undefined;
295
+ execute: import('ai').ToolExecuteFunction<{
296
+ limit: number;
297
+ scriptName?: string | undefined;
298
+ }, {
299
+ count: any;
300
+ revisions: any;
301
+ success: boolean;
302
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
303
+ } & {
304
+ description?: string | ((options: {
305
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
306
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
307
+ }) => string) | undefined;
308
+ strict?: boolean;
309
+ inputExamples?: {
310
+ input: NoInfer<{
311
+ limit: number;
312
+ scriptName?: string | undefined;
313
+ }>;
314
+ }[] | undefined;
315
+ id?: never;
316
+ isProviderExecuted?: never;
317
+ args?: never;
318
+ supportsDeferredResults?: never;
319
+ } & {
320
+ type: "dynamic";
321
+ } & {
322
+ execute: import('ai').ToolExecuteFunction<{
323
+ limit: number;
324
+ scriptName?: string | undefined;
325
+ }, {
326
+ count: any;
327
+ revisions: any;
328
+ success: boolean;
329
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
330
+ }) | ({
331
+ deferLoading?: boolean;
332
+ title?: string;
333
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
334
+ metadata?: import('@ai-sdk/provider').JSONObject;
335
+ inputSchema: import('ai').FlexibleSchema<{
336
+ limit: number;
337
+ scriptName?: string | undefined;
338
+ }>;
339
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
340
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
341
+ limit: number;
342
+ scriptName?: string | undefined;
343
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
344
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
345
+ onInputDelta?: ((options: {
346
+ inputTextDelta: string;
347
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
348
+ onInputAvailable?: ((options: {
349
+ input: {
350
+ limit: number;
351
+ scriptName?: string | undefined;
352
+ };
353
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
354
+ toModelOutput?: ((options: {
355
+ toolCallId: string;
356
+ input: {
357
+ limit: number;
358
+ scriptName?: string | undefined;
359
+ };
360
+ output: NoInfer<{
361
+ count: any;
362
+ revisions: any;
363
+ success: boolean;
364
+ }>;
365
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
366
+ } & {
367
+ outputSchema?: import('ai').FlexibleSchema<{
368
+ count: any;
369
+ revisions: any;
370
+ success: boolean;
371
+ }> | undefined;
372
+ execute: import('ai').ToolExecuteFunction<{
373
+ limit: number;
374
+ scriptName?: string | undefined;
375
+ }, {
376
+ count: any;
377
+ revisions: any;
378
+ success: boolean;
379
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
380
+ } & {
381
+ type: "provider";
382
+ id: `${string}.${string}`;
383
+ args: Record<string, unknown>;
384
+ description?: never;
385
+ strict?: never;
386
+ inputExamples?: never;
387
+ } & {
388
+ isProviderExecuted: false;
389
+ supportsDeferredResults?: never;
390
+ } & {
391
+ execute: import('ai').ToolExecuteFunction<{
392
+ limit: number;
393
+ scriptName?: string | undefined;
394
+ }, {
395
+ count: any;
396
+ revisions: any;
397
+ success: boolean;
398
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
399
+ }) | ({
400
+ deferLoading?: boolean;
401
+ title?: string;
402
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
403
+ metadata?: import('@ai-sdk/provider').JSONObject;
404
+ inputSchema: import('ai').FlexibleSchema<{
405
+ limit: number;
406
+ scriptName?: string | undefined;
407
+ }>;
408
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
409
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
410
+ limit: number;
411
+ scriptName?: string | undefined;
412
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
413
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
414
+ onInputDelta?: ((options: {
415
+ inputTextDelta: string;
416
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
417
+ onInputAvailable?: ((options: {
418
+ input: {
419
+ limit: number;
420
+ scriptName?: string | undefined;
421
+ };
422
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
423
+ toModelOutput?: ((options: {
424
+ toolCallId: string;
425
+ input: {
426
+ limit: number;
427
+ scriptName?: string | undefined;
428
+ };
429
+ output: NoInfer<{
430
+ count: any;
431
+ revisions: any;
432
+ success: boolean;
433
+ }>;
434
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
435
+ } & {
436
+ outputSchema?: import('ai').FlexibleSchema<{
437
+ count: any;
438
+ revisions: any;
439
+ success: boolean;
440
+ }> | undefined;
441
+ execute: import('ai').ToolExecuteFunction<{
442
+ limit: number;
443
+ scriptName?: string | undefined;
444
+ }, {
445
+ count: any;
446
+ revisions: any;
447
+ success: boolean;
448
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
449
+ } & {
450
+ type: "provider";
451
+ id: `${string}.${string}`;
452
+ args: Record<string, unknown>;
453
+ description?: never;
454
+ strict?: never;
455
+ inputExamples?: never;
456
+ } & {
457
+ isProviderExecuted: true;
458
+ supportsDeferredResults?: boolean;
459
+ } & {
460
+ execute: import('ai').ToolExecuteFunction<{
461
+ limit: number;
462
+ scriptName?: string | undefined;
463
+ }, {
464
+ count: any;
465
+ revisions: any;
466
+ success: boolean;
467
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
468
+ });
469
+ revert_site_script: ({
470
+ deferLoading?: boolean;
471
+ title?: string;
472
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
473
+ metadata?: import('@ai-sdk/provider').JSONObject;
474
+ inputSchema: import('ai').FlexibleSchema<{
475
+ revisionId: string;
476
+ }>;
477
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
478
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
479
+ revisionId: string;
480
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
481
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
482
+ onInputDelta?: ((options: {
483
+ inputTextDelta: string;
484
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
485
+ onInputAvailable?: ((options: {
486
+ input: {
487
+ revisionId: string;
488
+ };
489
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
490
+ toModelOutput?: ((options: {
491
+ toolCallId: string;
492
+ input: {
493
+ revisionId: string;
494
+ };
495
+ output: NoInfer<{
496
+ message: string;
497
+ mutationExecuted: boolean;
498
+ success: boolean;
499
+ name?: undefined;
500
+ recreated?: undefined;
501
+ } | {
502
+ mutationExecuted: boolean;
503
+ name: string;
504
+ recreated: boolean;
505
+ success: boolean;
506
+ message?: undefined;
507
+ }>;
508
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
509
+ } & {
510
+ outputSchema?: import('ai').FlexibleSchema<{
511
+ message: string;
512
+ mutationExecuted: boolean;
513
+ success: boolean;
514
+ name?: undefined;
515
+ recreated?: undefined;
516
+ } | {
517
+ mutationExecuted: boolean;
518
+ name: string;
519
+ recreated: boolean;
520
+ success: boolean;
521
+ message?: undefined;
522
+ }> | undefined;
523
+ execute: import('ai').ToolExecuteFunction<{
524
+ revisionId: string;
525
+ }, {
526
+ message: string;
527
+ mutationExecuted: boolean;
528
+ success: boolean;
529
+ name?: undefined;
530
+ recreated?: undefined;
531
+ } | {
532
+ mutationExecuted: boolean;
533
+ name: string;
534
+ recreated: boolean;
535
+ success: boolean;
536
+ message?: undefined;
537
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
538
+ } & {
539
+ description?: string | ((options: {
540
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
541
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
542
+ }) => string) | undefined;
543
+ strict?: boolean;
544
+ inputExamples?: {
545
+ input: NoInfer<{
546
+ revisionId: string;
547
+ }>;
548
+ }[] | undefined;
549
+ id?: never;
550
+ isProviderExecuted?: never;
551
+ args?: never;
552
+ supportsDeferredResults?: never;
553
+ } & {
554
+ type?: undefined | "function";
555
+ } & {
556
+ execute: import('ai').ToolExecuteFunction<{
557
+ revisionId: string;
558
+ }, {
559
+ message: string;
560
+ mutationExecuted: boolean;
561
+ success: boolean;
562
+ name?: undefined;
563
+ recreated?: undefined;
564
+ } | {
565
+ mutationExecuted: boolean;
566
+ name: string;
567
+ recreated: boolean;
568
+ success: boolean;
569
+ message?: undefined;
570
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
571
+ }) | ({
572
+ deferLoading?: boolean;
573
+ title?: string;
574
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
575
+ metadata?: import('@ai-sdk/provider').JSONObject;
576
+ inputSchema: import('ai').FlexibleSchema<{
577
+ revisionId: string;
578
+ }>;
579
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
580
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
581
+ revisionId: string;
582
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
583
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
584
+ onInputDelta?: ((options: {
585
+ inputTextDelta: string;
586
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
587
+ onInputAvailable?: ((options: {
588
+ input: {
589
+ revisionId: string;
590
+ };
591
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
592
+ toModelOutput?: ((options: {
593
+ toolCallId: string;
594
+ input: {
595
+ revisionId: string;
596
+ };
597
+ output: NoInfer<{
598
+ message: string;
599
+ mutationExecuted: boolean;
600
+ success: boolean;
601
+ name?: undefined;
602
+ recreated?: undefined;
603
+ } | {
604
+ mutationExecuted: boolean;
605
+ name: string;
606
+ recreated: boolean;
607
+ success: boolean;
608
+ message?: undefined;
609
+ }>;
610
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
611
+ } & {
612
+ outputSchema?: import('ai').FlexibleSchema<{
613
+ message: string;
614
+ mutationExecuted: boolean;
615
+ success: boolean;
616
+ name?: undefined;
617
+ recreated?: undefined;
618
+ } | {
619
+ mutationExecuted: boolean;
620
+ name: string;
621
+ recreated: boolean;
622
+ success: boolean;
623
+ message?: undefined;
624
+ }> | undefined;
625
+ execute: import('ai').ToolExecuteFunction<{
626
+ revisionId: string;
627
+ }, {
628
+ message: string;
629
+ mutationExecuted: boolean;
630
+ success: boolean;
631
+ name?: undefined;
632
+ recreated?: undefined;
633
+ } | {
634
+ mutationExecuted: boolean;
635
+ name: string;
636
+ recreated: boolean;
637
+ success: boolean;
638
+ message?: undefined;
639
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
640
+ } & {
641
+ description?: string | ((options: {
642
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
643
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
644
+ }) => string) | undefined;
645
+ strict?: boolean;
646
+ inputExamples?: {
647
+ input: NoInfer<{
648
+ revisionId: string;
649
+ }>;
650
+ }[] | undefined;
651
+ id?: never;
652
+ isProviderExecuted?: never;
653
+ args?: never;
654
+ supportsDeferredResults?: never;
655
+ } & {
656
+ type: "dynamic";
657
+ } & {
658
+ execute: import('ai').ToolExecuteFunction<{
659
+ revisionId: string;
660
+ }, {
661
+ message: string;
662
+ mutationExecuted: boolean;
663
+ success: boolean;
664
+ name?: undefined;
665
+ recreated?: undefined;
666
+ } | {
667
+ mutationExecuted: boolean;
668
+ name: string;
669
+ recreated: boolean;
670
+ success: boolean;
671
+ message?: undefined;
672
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
673
+ }) | ({
674
+ deferLoading?: boolean;
675
+ title?: string;
676
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
677
+ metadata?: import('@ai-sdk/provider').JSONObject;
678
+ inputSchema: import('ai').FlexibleSchema<{
679
+ revisionId: string;
680
+ }>;
681
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
682
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
683
+ revisionId: string;
684
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
685
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
686
+ onInputDelta?: ((options: {
687
+ inputTextDelta: string;
688
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
689
+ onInputAvailable?: ((options: {
690
+ input: {
691
+ revisionId: string;
692
+ };
693
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
694
+ toModelOutput?: ((options: {
695
+ toolCallId: string;
696
+ input: {
697
+ revisionId: string;
698
+ };
699
+ output: NoInfer<{
700
+ message: string;
701
+ mutationExecuted: boolean;
702
+ success: boolean;
703
+ name?: undefined;
704
+ recreated?: undefined;
705
+ } | {
706
+ mutationExecuted: boolean;
707
+ name: string;
708
+ recreated: boolean;
709
+ success: boolean;
710
+ message?: undefined;
711
+ }>;
712
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
713
+ } & {
714
+ outputSchema?: import('ai').FlexibleSchema<{
715
+ message: string;
716
+ mutationExecuted: boolean;
717
+ success: boolean;
718
+ name?: undefined;
719
+ recreated?: undefined;
720
+ } | {
721
+ mutationExecuted: boolean;
722
+ name: string;
723
+ recreated: boolean;
724
+ success: boolean;
725
+ message?: undefined;
726
+ }> | undefined;
727
+ execute: import('ai').ToolExecuteFunction<{
728
+ revisionId: string;
729
+ }, {
730
+ message: string;
731
+ mutationExecuted: boolean;
732
+ success: boolean;
733
+ name?: undefined;
734
+ recreated?: undefined;
735
+ } | {
736
+ mutationExecuted: boolean;
737
+ name: string;
738
+ recreated: boolean;
739
+ success: boolean;
740
+ message?: undefined;
741
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
742
+ } & {
743
+ type: "provider";
744
+ id: `${string}.${string}`;
745
+ args: Record<string, unknown>;
746
+ description?: never;
747
+ strict?: never;
748
+ inputExamples?: never;
749
+ } & {
750
+ isProviderExecuted: false;
751
+ supportsDeferredResults?: never;
752
+ } & {
753
+ execute: import('ai').ToolExecuteFunction<{
754
+ revisionId: string;
755
+ }, {
756
+ message: string;
757
+ mutationExecuted: boolean;
758
+ success: boolean;
759
+ name?: undefined;
760
+ recreated?: undefined;
761
+ } | {
762
+ mutationExecuted: boolean;
763
+ name: string;
764
+ recreated: boolean;
765
+ success: boolean;
766
+ message?: undefined;
767
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
768
+ }) | ({
769
+ deferLoading?: boolean;
770
+ title?: string;
771
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
772
+ metadata?: import('@ai-sdk/provider').JSONObject;
773
+ inputSchema: import('ai').FlexibleSchema<{
774
+ revisionId: string;
775
+ }>;
776
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
777
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
778
+ revisionId: string;
779
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
780
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
781
+ onInputDelta?: ((options: {
782
+ inputTextDelta: string;
783
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
784
+ onInputAvailable?: ((options: {
785
+ input: {
786
+ revisionId: string;
787
+ };
788
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
789
+ toModelOutput?: ((options: {
790
+ toolCallId: string;
791
+ input: {
792
+ revisionId: string;
793
+ };
794
+ output: NoInfer<{
795
+ message: string;
796
+ mutationExecuted: boolean;
797
+ success: boolean;
798
+ name?: undefined;
799
+ recreated?: undefined;
800
+ } | {
801
+ mutationExecuted: boolean;
802
+ name: string;
803
+ recreated: boolean;
804
+ success: boolean;
805
+ message?: undefined;
806
+ }>;
807
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
808
+ } & {
809
+ outputSchema?: import('ai').FlexibleSchema<{
810
+ message: string;
811
+ mutationExecuted: boolean;
812
+ success: boolean;
813
+ name?: undefined;
814
+ recreated?: undefined;
815
+ } | {
816
+ mutationExecuted: boolean;
817
+ name: string;
818
+ recreated: boolean;
819
+ success: boolean;
820
+ message?: undefined;
821
+ }> | undefined;
822
+ execute: import('ai').ToolExecuteFunction<{
823
+ revisionId: string;
824
+ }, {
825
+ message: string;
826
+ mutationExecuted: boolean;
827
+ success: boolean;
828
+ name?: undefined;
829
+ recreated?: undefined;
830
+ } | {
831
+ mutationExecuted: boolean;
832
+ name: string;
833
+ recreated: boolean;
834
+ success: boolean;
835
+ message?: undefined;
836
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
837
+ } & {
838
+ type: "provider";
839
+ id: `${string}.${string}`;
840
+ args: Record<string, unknown>;
841
+ description?: never;
842
+ strict?: never;
843
+ inputExamples?: never;
844
+ } & {
845
+ isProviderExecuted: true;
846
+ supportsDeferredResults?: boolean;
847
+ } & {
848
+ execute: import('ai').ToolExecuteFunction<{
849
+ revisionId: string;
850
+ }, {
851
+ message: string;
852
+ mutationExecuted: boolean;
853
+ success: boolean;
854
+ name?: undefined;
855
+ recreated?: undefined;
856
+ } | {
857
+ mutationExecuted: boolean;
858
+ name: string;
859
+ recreated: boolean;
860
+ success: boolean;
861
+ message?: undefined;
862
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
863
+ });
864
+ list_site_scripts: ({
865
+ deferLoading?: boolean;
866
+ title?: string;
867
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
868
+ metadata?: import('@ai-sdk/provider').JSONObject;
869
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
870
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
871
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
872
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
873
+ onInputDelta?: ((options: {
874
+ inputTextDelta: string;
875
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
876
+ onInputAvailable?: ((options: {
877
+ input: Record<string, never>;
878
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
879
+ toModelOutput?: ((options: {
880
+ toolCallId: string;
881
+ input: Record<string, never>;
882
+ output: NoInfer<{
883
+ count: any;
884
+ scripts: any;
885
+ success: boolean;
886
+ }>;
887
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
888
+ } & {
889
+ outputSchema?: import('ai').FlexibleSchema<{
890
+ count: any;
891
+ scripts: any;
892
+ success: boolean;
893
+ }> | undefined;
894
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
895
+ count: any;
896
+ scripts: any;
897
+ success: boolean;
898
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
899
+ } & {
900
+ description?: string | ((options: {
901
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
902
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
903
+ }) => string) | undefined;
904
+ strict?: boolean;
905
+ inputExamples?: {
906
+ input: NoInfer<Record<string, never>>;
907
+ }[] | undefined;
908
+ id?: never;
909
+ isProviderExecuted?: never;
910
+ args?: never;
911
+ supportsDeferredResults?: never;
912
+ } & {
913
+ type?: undefined | "function";
914
+ } & {
915
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
916
+ count: any;
917
+ scripts: any;
918
+ success: boolean;
919
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
920
+ }) | ({
921
+ deferLoading?: boolean;
922
+ title?: string;
923
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
924
+ metadata?: import('@ai-sdk/provider').JSONObject;
925
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
926
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
927
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
928
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
929
+ onInputDelta?: ((options: {
930
+ inputTextDelta: string;
931
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
932
+ onInputAvailable?: ((options: {
933
+ input: Record<string, never>;
934
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
935
+ toModelOutput?: ((options: {
936
+ toolCallId: string;
937
+ input: Record<string, never>;
938
+ output: NoInfer<{
939
+ count: any;
940
+ scripts: any;
941
+ success: boolean;
942
+ }>;
943
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
944
+ } & {
945
+ outputSchema?: import('ai').FlexibleSchema<{
946
+ count: any;
947
+ scripts: any;
948
+ success: boolean;
949
+ }> | undefined;
950
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
951
+ count: any;
952
+ scripts: any;
953
+ success: boolean;
954
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
955
+ } & {
956
+ description?: string | ((options: {
957
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
958
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
959
+ }) => string) | undefined;
960
+ strict?: boolean;
961
+ inputExamples?: {
962
+ input: NoInfer<Record<string, never>>;
963
+ }[] | undefined;
964
+ id?: never;
965
+ isProviderExecuted?: never;
966
+ args?: never;
967
+ supportsDeferredResults?: never;
968
+ } & {
969
+ type: "dynamic";
970
+ } & {
971
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
972
+ count: any;
973
+ scripts: any;
974
+ success: boolean;
975
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
976
+ }) | ({
977
+ deferLoading?: boolean;
978
+ title?: string;
979
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
980
+ metadata?: import('@ai-sdk/provider').JSONObject;
981
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
982
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
983
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
984
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
985
+ onInputDelta?: ((options: {
986
+ inputTextDelta: string;
987
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
988
+ onInputAvailable?: ((options: {
989
+ input: Record<string, never>;
990
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
991
+ toModelOutput?: ((options: {
992
+ toolCallId: string;
993
+ input: Record<string, never>;
994
+ output: NoInfer<{
995
+ count: any;
996
+ scripts: any;
997
+ success: boolean;
998
+ }>;
999
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1000
+ } & {
1001
+ outputSchema?: import('ai').FlexibleSchema<{
1002
+ count: any;
1003
+ scripts: any;
1004
+ success: boolean;
1005
+ }> | undefined;
1006
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
1007
+ count: any;
1008
+ scripts: any;
1009
+ success: boolean;
1010
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1011
+ } & {
1012
+ type: "provider";
1013
+ id: `${string}.${string}`;
1014
+ args: Record<string, unknown>;
1015
+ description?: never;
1016
+ strict?: never;
1017
+ inputExamples?: never;
1018
+ } & {
1019
+ isProviderExecuted: false;
1020
+ supportsDeferredResults?: never;
1021
+ } & {
1022
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
1023
+ count: any;
1024
+ scripts: any;
1025
+ success: boolean;
1026
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1027
+ }) | ({
1028
+ deferLoading?: boolean;
1029
+ title?: string;
1030
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1031
+ metadata?: import('@ai-sdk/provider').JSONObject;
1032
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
1033
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1034
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1035
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1036
+ onInputDelta?: ((options: {
1037
+ inputTextDelta: string;
1038
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1039
+ onInputAvailable?: ((options: {
1040
+ input: Record<string, never>;
1041
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1042
+ toModelOutput?: ((options: {
1043
+ toolCallId: string;
1044
+ input: Record<string, never>;
1045
+ output: NoInfer<{
1046
+ count: any;
1047
+ scripts: any;
1048
+ success: boolean;
1049
+ }>;
1050
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1051
+ } & {
1052
+ outputSchema?: import('ai').FlexibleSchema<{
1053
+ count: any;
1054
+ scripts: any;
1055
+ success: boolean;
1056
+ }> | undefined;
1057
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
1058
+ count: any;
1059
+ scripts: any;
1060
+ success: boolean;
1061
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1062
+ } & {
1063
+ type: "provider";
1064
+ id: `${string}.${string}`;
1065
+ args: Record<string, unknown>;
1066
+ description?: never;
1067
+ strict?: never;
1068
+ inputExamples?: never;
1069
+ } & {
1070
+ isProviderExecuted: true;
1071
+ supportsDeferredResults?: boolean;
1072
+ } & {
1073
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
1074
+ count: any;
1075
+ scripts: any;
1076
+ success: boolean;
1077
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1078
+ });
1079
+ manage_site_script: ({
1080
+ deferLoading?: boolean;
1081
+ title?: string;
1082
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1083
+ metadata?: import('@ai-sdk/provider').JSONObject;
1084
+ inputSchema: import('ai').FlexibleSchema<{
1085
+ action: "delete" | "upsert";
1086
+ is_active: boolean;
1087
+ load_strategy: "default" | "defer" | "async";
1088
+ name: string;
1089
+ purpose: string;
1090
+ placement: "body_end" | "head" | "body_start";
1091
+ sort_order: number;
1092
+ code?: string | undefined;
1093
+ description?: string | null | undefined;
1094
+ src?: string | null | undefined;
1095
+ }>;
1096
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1097
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1098
+ action: "delete" | "upsert";
1099
+ is_active: boolean;
1100
+ load_strategy: "default" | "defer" | "async";
1101
+ name: string;
1102
+ purpose: string;
1103
+ placement: "body_end" | "head" | "body_start";
1104
+ sort_order: number;
1105
+ code?: string | undefined;
1106
+ description?: string | null | undefined;
1107
+ src?: string | null | undefined;
1108
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1109
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1110
+ onInputDelta?: ((options: {
1111
+ inputTextDelta: string;
1112
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1113
+ onInputAvailable?: ((options: {
1114
+ input: {
1115
+ action: "delete" | "upsert";
1116
+ is_active: boolean;
1117
+ load_strategy: "default" | "defer" | "async";
1118
+ name: string;
1119
+ purpose: string;
1120
+ placement: "body_end" | "head" | "body_start";
1121
+ sort_order: number;
1122
+ code?: string | undefined;
1123
+ description?: string | null | undefined;
1124
+ src?: string | null | undefined;
1125
+ };
1126
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1127
+ toModelOutput?: ((options: {
1128
+ toolCallId: string;
1129
+ input: {
1130
+ action: "delete" | "upsert";
1131
+ is_active: boolean;
1132
+ load_strategy: "default" | "defer" | "async";
1133
+ name: string;
1134
+ purpose: string;
1135
+ placement: "body_end" | "head" | "body_start";
1136
+ sort_order: number;
1137
+ code?: string | undefined;
1138
+ description?: string | null | undefined;
1139
+ src?: string | null | undefined;
1140
+ };
1141
+ output: NoInfer<{
1142
+ message: string;
1143
+ mutationExecuted: boolean;
1144
+ success: boolean;
1145
+ action?: undefined;
1146
+ name?: undefined;
1147
+ created?: undefined;
1148
+ isActive?: undefined;
1149
+ placement?: undefined;
1150
+ safetyReview?: undefined;
1151
+ statedPurpose?: undefined;
1152
+ } | {
1153
+ action: string;
1154
+ mutationExecuted: boolean;
1155
+ name: string;
1156
+ success: boolean;
1157
+ message?: undefined;
1158
+ created?: undefined;
1159
+ isActive?: undefined;
1160
+ placement?: undefined;
1161
+ safetyReview?: undefined;
1162
+ statedPurpose?: undefined;
1163
+ } | {
1164
+ action: string;
1165
+ created: boolean;
1166
+ isActive: boolean;
1167
+ mutationExecuted: boolean;
1168
+ name: string;
1169
+ placement: "body_end" | "head" | "body_start";
1170
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1171
+ statedPurpose: string;
1172
+ success: boolean;
1173
+ message?: undefined;
1174
+ }>;
1175
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1176
+ } & {
1177
+ outputSchema?: import('ai').FlexibleSchema<{
1178
+ message: string;
1179
+ mutationExecuted: boolean;
1180
+ success: boolean;
1181
+ action?: undefined;
1182
+ name?: undefined;
1183
+ created?: undefined;
1184
+ isActive?: undefined;
1185
+ placement?: undefined;
1186
+ safetyReview?: undefined;
1187
+ statedPurpose?: undefined;
1188
+ } | {
1189
+ action: string;
1190
+ mutationExecuted: boolean;
1191
+ name: string;
1192
+ success: boolean;
1193
+ message?: undefined;
1194
+ created?: undefined;
1195
+ isActive?: undefined;
1196
+ placement?: undefined;
1197
+ safetyReview?: undefined;
1198
+ statedPurpose?: undefined;
1199
+ } | {
1200
+ action: string;
1201
+ created: boolean;
1202
+ isActive: boolean;
1203
+ mutationExecuted: boolean;
1204
+ name: string;
1205
+ placement: "body_end" | "head" | "body_start";
1206
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1207
+ statedPurpose: string;
1208
+ success: boolean;
1209
+ message?: undefined;
1210
+ }> | undefined;
1211
+ execute: import('ai').ToolExecuteFunction<{
1212
+ action: "delete" | "upsert";
1213
+ is_active: boolean;
1214
+ load_strategy: "default" | "defer" | "async";
1215
+ name: string;
1216
+ purpose: string;
1217
+ placement: "body_end" | "head" | "body_start";
1218
+ sort_order: number;
1219
+ code?: string | undefined;
1220
+ description?: string | null | undefined;
1221
+ src?: string | null | undefined;
1222
+ }, {
1223
+ message: string;
1224
+ mutationExecuted: boolean;
1225
+ success: boolean;
1226
+ action?: undefined;
1227
+ name?: undefined;
1228
+ created?: undefined;
1229
+ isActive?: undefined;
1230
+ placement?: undefined;
1231
+ safetyReview?: undefined;
1232
+ statedPurpose?: undefined;
1233
+ } | {
1234
+ action: string;
1235
+ mutationExecuted: boolean;
1236
+ name: string;
1237
+ success: boolean;
1238
+ message?: undefined;
1239
+ created?: undefined;
1240
+ isActive?: undefined;
1241
+ placement?: undefined;
1242
+ safetyReview?: undefined;
1243
+ statedPurpose?: undefined;
1244
+ } | {
1245
+ action: string;
1246
+ created: boolean;
1247
+ isActive: boolean;
1248
+ mutationExecuted: boolean;
1249
+ name: string;
1250
+ placement: "body_end" | "head" | "body_start";
1251
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1252
+ statedPurpose: string;
1253
+ success: boolean;
1254
+ message?: undefined;
1255
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1256
+ } & {
1257
+ description?: string | ((options: {
1258
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1259
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1260
+ }) => string) | undefined;
1261
+ strict?: boolean;
1262
+ inputExamples?: {
1263
+ input: NoInfer<{
1264
+ action: "delete" | "upsert";
1265
+ is_active: boolean;
1266
+ load_strategy: "default" | "defer" | "async";
1267
+ name: string;
1268
+ purpose: string;
1269
+ placement: "body_end" | "head" | "body_start";
1270
+ sort_order: number;
1271
+ code?: string | undefined;
1272
+ description?: string | null | undefined;
1273
+ src?: string | null | undefined;
1274
+ }>;
1275
+ }[] | undefined;
1276
+ id?: never;
1277
+ isProviderExecuted?: never;
1278
+ args?: never;
1279
+ supportsDeferredResults?: never;
1280
+ } & {
1281
+ type?: undefined | "function";
1282
+ } & {
1283
+ execute: import('ai').ToolExecuteFunction<{
1284
+ action: "delete" | "upsert";
1285
+ is_active: boolean;
1286
+ load_strategy: "default" | "defer" | "async";
1287
+ name: string;
1288
+ purpose: string;
1289
+ placement: "body_end" | "head" | "body_start";
1290
+ sort_order: number;
1291
+ code?: string | undefined;
1292
+ description?: string | null | undefined;
1293
+ src?: string | null | undefined;
1294
+ }, {
1295
+ message: string;
1296
+ mutationExecuted: boolean;
1297
+ success: boolean;
1298
+ action?: undefined;
1299
+ name?: undefined;
1300
+ created?: undefined;
1301
+ isActive?: undefined;
1302
+ placement?: undefined;
1303
+ safetyReview?: undefined;
1304
+ statedPurpose?: undefined;
1305
+ } | {
1306
+ action: string;
1307
+ mutationExecuted: boolean;
1308
+ name: string;
1309
+ success: boolean;
1310
+ message?: undefined;
1311
+ created?: undefined;
1312
+ isActive?: undefined;
1313
+ placement?: undefined;
1314
+ safetyReview?: undefined;
1315
+ statedPurpose?: undefined;
1316
+ } | {
1317
+ action: string;
1318
+ created: boolean;
1319
+ isActive: boolean;
1320
+ mutationExecuted: boolean;
1321
+ name: string;
1322
+ placement: "body_end" | "head" | "body_start";
1323
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1324
+ statedPurpose: string;
1325
+ success: boolean;
1326
+ message?: undefined;
1327
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1328
+ }) | ({
1329
+ deferLoading?: boolean;
1330
+ title?: string;
1331
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1332
+ metadata?: import('@ai-sdk/provider').JSONObject;
1333
+ inputSchema: import('ai').FlexibleSchema<{
1334
+ action: "delete" | "upsert";
1335
+ is_active: boolean;
1336
+ load_strategy: "default" | "defer" | "async";
1337
+ name: string;
1338
+ purpose: string;
1339
+ placement: "body_end" | "head" | "body_start";
1340
+ sort_order: number;
1341
+ code?: string | undefined;
1342
+ description?: string | null | undefined;
1343
+ src?: string | null | undefined;
1344
+ }>;
1345
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1346
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1347
+ action: "delete" | "upsert";
1348
+ is_active: boolean;
1349
+ load_strategy: "default" | "defer" | "async";
1350
+ name: string;
1351
+ purpose: string;
1352
+ placement: "body_end" | "head" | "body_start";
1353
+ sort_order: number;
1354
+ code?: string | undefined;
1355
+ description?: string | null | undefined;
1356
+ src?: string | null | undefined;
1357
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1358
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1359
+ onInputDelta?: ((options: {
1360
+ inputTextDelta: string;
1361
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1362
+ onInputAvailable?: ((options: {
1363
+ input: {
1364
+ action: "delete" | "upsert";
1365
+ is_active: boolean;
1366
+ load_strategy: "default" | "defer" | "async";
1367
+ name: string;
1368
+ purpose: string;
1369
+ placement: "body_end" | "head" | "body_start";
1370
+ sort_order: number;
1371
+ code?: string | undefined;
1372
+ description?: string | null | undefined;
1373
+ src?: string | null | undefined;
1374
+ };
1375
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1376
+ toModelOutput?: ((options: {
1377
+ toolCallId: string;
1378
+ input: {
1379
+ action: "delete" | "upsert";
1380
+ is_active: boolean;
1381
+ load_strategy: "default" | "defer" | "async";
1382
+ name: string;
1383
+ purpose: string;
1384
+ placement: "body_end" | "head" | "body_start";
1385
+ sort_order: number;
1386
+ code?: string | undefined;
1387
+ description?: string | null | undefined;
1388
+ src?: string | null | undefined;
1389
+ };
1390
+ output: NoInfer<{
1391
+ message: string;
1392
+ mutationExecuted: boolean;
1393
+ success: boolean;
1394
+ action?: undefined;
1395
+ name?: undefined;
1396
+ created?: undefined;
1397
+ isActive?: undefined;
1398
+ placement?: undefined;
1399
+ safetyReview?: undefined;
1400
+ statedPurpose?: undefined;
1401
+ } | {
1402
+ action: string;
1403
+ mutationExecuted: boolean;
1404
+ name: string;
1405
+ success: boolean;
1406
+ message?: undefined;
1407
+ created?: undefined;
1408
+ isActive?: undefined;
1409
+ placement?: undefined;
1410
+ safetyReview?: undefined;
1411
+ statedPurpose?: undefined;
1412
+ } | {
1413
+ action: string;
1414
+ created: boolean;
1415
+ isActive: boolean;
1416
+ mutationExecuted: boolean;
1417
+ name: string;
1418
+ placement: "body_end" | "head" | "body_start";
1419
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1420
+ statedPurpose: string;
1421
+ success: boolean;
1422
+ message?: undefined;
1423
+ }>;
1424
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1425
+ } & {
1426
+ outputSchema?: import('ai').FlexibleSchema<{
1427
+ message: string;
1428
+ mutationExecuted: boolean;
1429
+ success: boolean;
1430
+ action?: undefined;
1431
+ name?: undefined;
1432
+ created?: undefined;
1433
+ isActive?: undefined;
1434
+ placement?: undefined;
1435
+ safetyReview?: undefined;
1436
+ statedPurpose?: undefined;
1437
+ } | {
1438
+ action: string;
1439
+ mutationExecuted: boolean;
1440
+ name: string;
1441
+ success: boolean;
1442
+ message?: undefined;
1443
+ created?: undefined;
1444
+ isActive?: undefined;
1445
+ placement?: undefined;
1446
+ safetyReview?: undefined;
1447
+ statedPurpose?: undefined;
1448
+ } | {
1449
+ action: string;
1450
+ created: boolean;
1451
+ isActive: boolean;
1452
+ mutationExecuted: boolean;
1453
+ name: string;
1454
+ placement: "body_end" | "head" | "body_start";
1455
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1456
+ statedPurpose: string;
1457
+ success: boolean;
1458
+ message?: undefined;
1459
+ }> | undefined;
1460
+ execute: import('ai').ToolExecuteFunction<{
1461
+ action: "delete" | "upsert";
1462
+ is_active: boolean;
1463
+ load_strategy: "default" | "defer" | "async";
1464
+ name: string;
1465
+ purpose: string;
1466
+ placement: "body_end" | "head" | "body_start";
1467
+ sort_order: number;
1468
+ code?: string | undefined;
1469
+ description?: string | null | undefined;
1470
+ src?: string | null | undefined;
1471
+ }, {
1472
+ message: string;
1473
+ mutationExecuted: boolean;
1474
+ success: boolean;
1475
+ action?: undefined;
1476
+ name?: undefined;
1477
+ created?: undefined;
1478
+ isActive?: undefined;
1479
+ placement?: undefined;
1480
+ safetyReview?: undefined;
1481
+ statedPurpose?: undefined;
1482
+ } | {
1483
+ action: string;
1484
+ mutationExecuted: boolean;
1485
+ name: string;
1486
+ success: boolean;
1487
+ message?: undefined;
1488
+ created?: undefined;
1489
+ isActive?: undefined;
1490
+ placement?: undefined;
1491
+ safetyReview?: undefined;
1492
+ statedPurpose?: undefined;
1493
+ } | {
1494
+ action: string;
1495
+ created: boolean;
1496
+ isActive: boolean;
1497
+ mutationExecuted: boolean;
1498
+ name: string;
1499
+ placement: "body_end" | "head" | "body_start";
1500
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1501
+ statedPurpose: string;
1502
+ success: boolean;
1503
+ message?: undefined;
1504
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1505
+ } & {
1506
+ description?: string | ((options: {
1507
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
1508
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
1509
+ }) => string) | undefined;
1510
+ strict?: boolean;
1511
+ inputExamples?: {
1512
+ input: NoInfer<{
1513
+ action: "delete" | "upsert";
1514
+ is_active: boolean;
1515
+ load_strategy: "default" | "defer" | "async";
1516
+ name: string;
1517
+ purpose: string;
1518
+ placement: "body_end" | "head" | "body_start";
1519
+ sort_order: number;
1520
+ code?: string | undefined;
1521
+ description?: string | null | undefined;
1522
+ src?: string | null | undefined;
1523
+ }>;
1524
+ }[] | undefined;
1525
+ id?: never;
1526
+ isProviderExecuted?: never;
1527
+ args?: never;
1528
+ supportsDeferredResults?: never;
1529
+ } & {
1530
+ type: "dynamic";
1531
+ } & {
1532
+ execute: import('ai').ToolExecuteFunction<{
1533
+ action: "delete" | "upsert";
1534
+ is_active: boolean;
1535
+ load_strategy: "default" | "defer" | "async";
1536
+ name: string;
1537
+ purpose: string;
1538
+ placement: "body_end" | "head" | "body_start";
1539
+ sort_order: number;
1540
+ code?: string | undefined;
1541
+ description?: string | null | undefined;
1542
+ src?: string | null | undefined;
1543
+ }, {
1544
+ message: string;
1545
+ mutationExecuted: boolean;
1546
+ success: boolean;
1547
+ action?: undefined;
1548
+ name?: undefined;
1549
+ created?: undefined;
1550
+ isActive?: undefined;
1551
+ placement?: undefined;
1552
+ safetyReview?: undefined;
1553
+ statedPurpose?: undefined;
1554
+ } | {
1555
+ action: string;
1556
+ mutationExecuted: boolean;
1557
+ name: string;
1558
+ success: boolean;
1559
+ message?: undefined;
1560
+ created?: undefined;
1561
+ isActive?: undefined;
1562
+ placement?: undefined;
1563
+ safetyReview?: undefined;
1564
+ statedPurpose?: undefined;
1565
+ } | {
1566
+ action: string;
1567
+ created: boolean;
1568
+ isActive: boolean;
1569
+ mutationExecuted: boolean;
1570
+ name: string;
1571
+ placement: "body_end" | "head" | "body_start";
1572
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1573
+ statedPurpose: string;
1574
+ success: boolean;
1575
+ message?: undefined;
1576
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1577
+ }) | ({
1578
+ deferLoading?: boolean;
1579
+ title?: string;
1580
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1581
+ metadata?: import('@ai-sdk/provider').JSONObject;
1582
+ inputSchema: import('ai').FlexibleSchema<{
1583
+ action: "delete" | "upsert";
1584
+ is_active: boolean;
1585
+ load_strategy: "default" | "defer" | "async";
1586
+ name: string;
1587
+ purpose: string;
1588
+ placement: "body_end" | "head" | "body_start";
1589
+ sort_order: number;
1590
+ code?: string | undefined;
1591
+ description?: string | null | undefined;
1592
+ src?: string | null | undefined;
1593
+ }>;
1594
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1595
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1596
+ action: "delete" | "upsert";
1597
+ is_active: boolean;
1598
+ load_strategy: "default" | "defer" | "async";
1599
+ name: string;
1600
+ purpose: string;
1601
+ placement: "body_end" | "head" | "body_start";
1602
+ sort_order: number;
1603
+ code?: string | undefined;
1604
+ description?: string | null | undefined;
1605
+ src?: string | null | undefined;
1606
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1607
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1608
+ onInputDelta?: ((options: {
1609
+ inputTextDelta: string;
1610
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1611
+ onInputAvailable?: ((options: {
1612
+ input: {
1613
+ action: "delete" | "upsert";
1614
+ is_active: boolean;
1615
+ load_strategy: "default" | "defer" | "async";
1616
+ name: string;
1617
+ purpose: string;
1618
+ placement: "body_end" | "head" | "body_start";
1619
+ sort_order: number;
1620
+ code?: string | undefined;
1621
+ description?: string | null | undefined;
1622
+ src?: string | null | undefined;
1623
+ };
1624
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1625
+ toModelOutput?: ((options: {
1626
+ toolCallId: string;
1627
+ input: {
1628
+ action: "delete" | "upsert";
1629
+ is_active: boolean;
1630
+ load_strategy: "default" | "defer" | "async";
1631
+ name: string;
1632
+ purpose: string;
1633
+ placement: "body_end" | "head" | "body_start";
1634
+ sort_order: number;
1635
+ code?: string | undefined;
1636
+ description?: string | null | undefined;
1637
+ src?: string | null | undefined;
1638
+ };
1639
+ output: NoInfer<{
1640
+ message: string;
1641
+ mutationExecuted: boolean;
1642
+ success: boolean;
1643
+ action?: undefined;
1644
+ name?: undefined;
1645
+ created?: undefined;
1646
+ isActive?: undefined;
1647
+ placement?: undefined;
1648
+ safetyReview?: undefined;
1649
+ statedPurpose?: undefined;
1650
+ } | {
1651
+ action: string;
1652
+ mutationExecuted: boolean;
1653
+ name: string;
1654
+ success: boolean;
1655
+ message?: undefined;
1656
+ created?: undefined;
1657
+ isActive?: undefined;
1658
+ placement?: undefined;
1659
+ safetyReview?: undefined;
1660
+ statedPurpose?: undefined;
1661
+ } | {
1662
+ action: string;
1663
+ created: boolean;
1664
+ isActive: boolean;
1665
+ mutationExecuted: boolean;
1666
+ name: string;
1667
+ placement: "body_end" | "head" | "body_start";
1668
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1669
+ statedPurpose: string;
1670
+ success: boolean;
1671
+ message?: undefined;
1672
+ }>;
1673
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1674
+ } & {
1675
+ outputSchema?: import('ai').FlexibleSchema<{
1676
+ message: string;
1677
+ mutationExecuted: boolean;
1678
+ success: boolean;
1679
+ action?: undefined;
1680
+ name?: undefined;
1681
+ created?: undefined;
1682
+ isActive?: undefined;
1683
+ placement?: undefined;
1684
+ safetyReview?: undefined;
1685
+ statedPurpose?: undefined;
1686
+ } | {
1687
+ action: string;
1688
+ mutationExecuted: boolean;
1689
+ name: string;
1690
+ success: boolean;
1691
+ message?: undefined;
1692
+ created?: undefined;
1693
+ isActive?: undefined;
1694
+ placement?: undefined;
1695
+ safetyReview?: undefined;
1696
+ statedPurpose?: undefined;
1697
+ } | {
1698
+ action: string;
1699
+ created: boolean;
1700
+ isActive: boolean;
1701
+ mutationExecuted: boolean;
1702
+ name: string;
1703
+ placement: "body_end" | "head" | "body_start";
1704
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1705
+ statedPurpose: string;
1706
+ success: boolean;
1707
+ message?: undefined;
1708
+ }> | undefined;
1709
+ execute: import('ai').ToolExecuteFunction<{
1710
+ action: "delete" | "upsert";
1711
+ is_active: boolean;
1712
+ load_strategy: "default" | "defer" | "async";
1713
+ name: string;
1714
+ purpose: string;
1715
+ placement: "body_end" | "head" | "body_start";
1716
+ sort_order: number;
1717
+ code?: string | undefined;
1718
+ description?: string | null | undefined;
1719
+ src?: string | null | undefined;
1720
+ }, {
1721
+ message: string;
1722
+ mutationExecuted: boolean;
1723
+ success: boolean;
1724
+ action?: undefined;
1725
+ name?: undefined;
1726
+ created?: undefined;
1727
+ isActive?: undefined;
1728
+ placement?: undefined;
1729
+ safetyReview?: undefined;
1730
+ statedPurpose?: undefined;
1731
+ } | {
1732
+ action: string;
1733
+ mutationExecuted: boolean;
1734
+ name: string;
1735
+ success: boolean;
1736
+ message?: undefined;
1737
+ created?: undefined;
1738
+ isActive?: undefined;
1739
+ placement?: undefined;
1740
+ safetyReview?: undefined;
1741
+ statedPurpose?: undefined;
1742
+ } | {
1743
+ action: string;
1744
+ created: boolean;
1745
+ isActive: boolean;
1746
+ mutationExecuted: boolean;
1747
+ name: string;
1748
+ placement: "body_end" | "head" | "body_start";
1749
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1750
+ statedPurpose: string;
1751
+ success: boolean;
1752
+ message?: undefined;
1753
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1754
+ } & {
1755
+ type: "provider";
1756
+ id: `${string}.${string}`;
1757
+ args: Record<string, unknown>;
1758
+ description?: never;
1759
+ strict?: never;
1760
+ inputExamples?: never;
1761
+ } & {
1762
+ isProviderExecuted: false;
1763
+ supportsDeferredResults?: never;
1764
+ } & {
1765
+ execute: import('ai').ToolExecuteFunction<{
1766
+ action: "delete" | "upsert";
1767
+ is_active: boolean;
1768
+ load_strategy: "default" | "defer" | "async";
1769
+ name: string;
1770
+ purpose: string;
1771
+ placement: "body_end" | "head" | "body_start";
1772
+ sort_order: number;
1773
+ code?: string | undefined;
1774
+ description?: string | null | undefined;
1775
+ src?: string | null | undefined;
1776
+ }, {
1777
+ message: string;
1778
+ mutationExecuted: boolean;
1779
+ success: boolean;
1780
+ action?: undefined;
1781
+ name?: undefined;
1782
+ created?: undefined;
1783
+ isActive?: undefined;
1784
+ placement?: undefined;
1785
+ safetyReview?: undefined;
1786
+ statedPurpose?: undefined;
1787
+ } | {
1788
+ action: string;
1789
+ mutationExecuted: boolean;
1790
+ name: string;
1791
+ success: boolean;
1792
+ message?: undefined;
1793
+ created?: undefined;
1794
+ isActive?: undefined;
1795
+ placement?: undefined;
1796
+ safetyReview?: undefined;
1797
+ statedPurpose?: undefined;
1798
+ } | {
1799
+ action: string;
1800
+ created: boolean;
1801
+ isActive: boolean;
1802
+ mutationExecuted: boolean;
1803
+ name: string;
1804
+ placement: "body_end" | "head" | "body_start";
1805
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1806
+ statedPurpose: string;
1807
+ success: boolean;
1808
+ message?: undefined;
1809
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1810
+ }) | ({
1811
+ deferLoading?: boolean;
1812
+ title?: string;
1813
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
1814
+ metadata?: import('@ai-sdk/provider').JSONObject;
1815
+ inputSchema: import('ai').FlexibleSchema<{
1816
+ action: "delete" | "upsert";
1817
+ is_active: boolean;
1818
+ load_strategy: "default" | "defer" | "async";
1819
+ name: string;
1820
+ purpose: string;
1821
+ placement: "body_end" | "head" | "body_start";
1822
+ sort_order: number;
1823
+ code?: string | undefined;
1824
+ description?: string | null | undefined;
1825
+ src?: string | null | undefined;
1826
+ }>;
1827
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
1828
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
1829
+ action: "delete" | "upsert";
1830
+ is_active: boolean;
1831
+ load_strategy: "default" | "defer" | "async";
1832
+ name: string;
1833
+ purpose: string;
1834
+ placement: "body_end" | "head" | "body_start";
1835
+ sort_order: number;
1836
+ code?: string | undefined;
1837
+ description?: string | null | undefined;
1838
+ src?: string | null | undefined;
1839
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
1840
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1841
+ onInputDelta?: ((options: {
1842
+ inputTextDelta: string;
1843
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1844
+ onInputAvailable?: ((options: {
1845
+ input: {
1846
+ action: "delete" | "upsert";
1847
+ is_active: boolean;
1848
+ load_strategy: "default" | "defer" | "async";
1849
+ name: string;
1850
+ purpose: string;
1851
+ placement: "body_end" | "head" | "body_start";
1852
+ sort_order: number;
1853
+ code?: string | undefined;
1854
+ description?: string | null | undefined;
1855
+ src?: string | null | undefined;
1856
+ };
1857
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
1858
+ toModelOutput?: ((options: {
1859
+ toolCallId: string;
1860
+ input: {
1861
+ action: "delete" | "upsert";
1862
+ is_active: boolean;
1863
+ load_strategy: "default" | "defer" | "async";
1864
+ name: string;
1865
+ purpose: string;
1866
+ placement: "body_end" | "head" | "body_start";
1867
+ sort_order: number;
1868
+ code?: string | undefined;
1869
+ description?: string | null | undefined;
1870
+ src?: string | null | undefined;
1871
+ };
1872
+ output: NoInfer<{
1873
+ message: string;
1874
+ mutationExecuted: boolean;
1875
+ success: boolean;
1876
+ action?: undefined;
1877
+ name?: undefined;
1878
+ created?: undefined;
1879
+ isActive?: undefined;
1880
+ placement?: undefined;
1881
+ safetyReview?: undefined;
1882
+ statedPurpose?: undefined;
1883
+ } | {
1884
+ action: string;
1885
+ mutationExecuted: boolean;
1886
+ name: string;
1887
+ success: boolean;
1888
+ message?: undefined;
1889
+ created?: undefined;
1890
+ isActive?: undefined;
1891
+ placement?: undefined;
1892
+ safetyReview?: undefined;
1893
+ statedPurpose?: undefined;
1894
+ } | {
1895
+ action: string;
1896
+ created: boolean;
1897
+ isActive: boolean;
1898
+ mutationExecuted: boolean;
1899
+ name: string;
1900
+ placement: "body_end" | "head" | "body_start";
1901
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1902
+ statedPurpose: string;
1903
+ success: boolean;
1904
+ message?: undefined;
1905
+ }>;
1906
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
1907
+ } & {
1908
+ outputSchema?: import('ai').FlexibleSchema<{
1909
+ message: string;
1910
+ mutationExecuted: boolean;
1911
+ success: boolean;
1912
+ action?: undefined;
1913
+ name?: undefined;
1914
+ created?: undefined;
1915
+ isActive?: undefined;
1916
+ placement?: undefined;
1917
+ safetyReview?: undefined;
1918
+ statedPurpose?: undefined;
1919
+ } | {
1920
+ action: string;
1921
+ mutationExecuted: boolean;
1922
+ name: string;
1923
+ success: boolean;
1924
+ message?: undefined;
1925
+ created?: undefined;
1926
+ isActive?: undefined;
1927
+ placement?: undefined;
1928
+ safetyReview?: undefined;
1929
+ statedPurpose?: undefined;
1930
+ } | {
1931
+ action: string;
1932
+ created: boolean;
1933
+ isActive: boolean;
1934
+ mutationExecuted: boolean;
1935
+ name: string;
1936
+ placement: "body_end" | "head" | "body_start";
1937
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1938
+ statedPurpose: string;
1939
+ success: boolean;
1940
+ message?: undefined;
1941
+ }> | undefined;
1942
+ execute: import('ai').ToolExecuteFunction<{
1943
+ action: "delete" | "upsert";
1944
+ is_active: boolean;
1945
+ load_strategy: "default" | "defer" | "async";
1946
+ name: string;
1947
+ purpose: string;
1948
+ placement: "body_end" | "head" | "body_start";
1949
+ sort_order: number;
1950
+ code?: string | undefined;
1951
+ description?: string | null | undefined;
1952
+ src?: string | null | undefined;
1953
+ }, {
1954
+ message: string;
1955
+ mutationExecuted: boolean;
1956
+ success: boolean;
1957
+ action?: undefined;
1958
+ name?: undefined;
1959
+ created?: undefined;
1960
+ isActive?: undefined;
1961
+ placement?: undefined;
1962
+ safetyReview?: undefined;
1963
+ statedPurpose?: undefined;
1964
+ } | {
1965
+ action: string;
1966
+ mutationExecuted: boolean;
1967
+ name: string;
1968
+ success: boolean;
1969
+ message?: undefined;
1970
+ created?: undefined;
1971
+ isActive?: undefined;
1972
+ placement?: undefined;
1973
+ safetyReview?: undefined;
1974
+ statedPurpose?: undefined;
1975
+ } | {
1976
+ action: string;
1977
+ created: boolean;
1978
+ isActive: boolean;
1979
+ mutationExecuted: boolean;
1980
+ name: string;
1981
+ placement: "body_end" | "head" | "body_start";
1982
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
1983
+ statedPurpose: string;
1984
+ success: boolean;
1985
+ message?: undefined;
1986
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
1987
+ } & {
1988
+ type: "provider";
1989
+ id: `${string}.${string}`;
1990
+ args: Record<string, unknown>;
1991
+ description?: never;
1992
+ strict?: never;
1993
+ inputExamples?: never;
1994
+ } & {
1995
+ isProviderExecuted: true;
1996
+ supportsDeferredResults?: boolean;
1997
+ } & {
1998
+ execute: import('ai').ToolExecuteFunction<{
1999
+ action: "delete" | "upsert";
2000
+ is_active: boolean;
2001
+ load_strategy: "default" | "defer" | "async";
2002
+ name: string;
2003
+ purpose: string;
2004
+ placement: "body_end" | "head" | "body_start";
2005
+ sort_order: number;
2006
+ code?: string | undefined;
2007
+ description?: string | null | undefined;
2008
+ src?: string | null | undefined;
2009
+ }, {
2010
+ message: string;
2011
+ mutationExecuted: boolean;
2012
+ success: boolean;
2013
+ action?: undefined;
2014
+ name?: undefined;
2015
+ created?: undefined;
2016
+ isActive?: undefined;
2017
+ placement?: undefined;
2018
+ safetyReview?: undefined;
2019
+ statedPurpose?: undefined;
2020
+ } | {
2021
+ action: string;
2022
+ mutationExecuted: boolean;
2023
+ name: string;
2024
+ success: boolean;
2025
+ message?: undefined;
2026
+ created?: undefined;
2027
+ isActive?: undefined;
2028
+ placement?: undefined;
2029
+ safetyReview?: undefined;
2030
+ statedPurpose?: undefined;
2031
+ } | {
2032
+ action: string;
2033
+ created: boolean;
2034
+ isActive: boolean;
2035
+ mutationExecuted: boolean;
2036
+ name: string;
2037
+ placement: "body_end" | "head" | "body_start";
2038
+ safetyReview: import('@nextblock-cms/utils/script-safety').ScriptReview;
2039
+ statedPurpose: string;
2040
+ success: boolean;
2041
+ message?: undefined;
2042
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2043
+ });
2044
+ list_site_themes: ({
2045
+ deferLoading?: boolean;
2046
+ title?: string;
2047
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2048
+ metadata?: import('@ai-sdk/provider').JSONObject;
2049
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
2050
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2051
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2052
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2053
+ onInputDelta?: ((options: {
2054
+ inputTextDelta: string;
2055
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2056
+ onInputAvailable?: ((options: {
2057
+ input: Record<string, never>;
2058
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2059
+ toModelOutput?: ((options: {
2060
+ toolCallId: string;
2061
+ input: Record<string, never>;
2062
+ output: NoInfer<{
2063
+ globalCss: string;
2064
+ success: boolean;
2065
+ themes: any;
2066
+ }>;
2067
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2068
+ } & {
2069
+ outputSchema?: import('ai').FlexibleSchema<{
2070
+ globalCss: string;
2071
+ success: boolean;
2072
+ themes: any;
2073
+ }> | undefined;
2074
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2075
+ globalCss: string;
2076
+ success: boolean;
2077
+ themes: any;
2078
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2079
+ } & {
2080
+ description?: string | ((options: {
2081
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2082
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2083
+ }) => string) | undefined;
2084
+ strict?: boolean;
2085
+ inputExamples?: {
2086
+ input: NoInfer<Record<string, never>>;
2087
+ }[] | undefined;
2088
+ id?: never;
2089
+ isProviderExecuted?: never;
2090
+ args?: never;
2091
+ supportsDeferredResults?: never;
2092
+ } & {
2093
+ type?: undefined | "function";
2094
+ } & {
2095
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2096
+ globalCss: string;
2097
+ success: boolean;
2098
+ themes: any;
2099
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2100
+ }) | ({
2101
+ deferLoading?: boolean;
2102
+ title?: string;
2103
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2104
+ metadata?: import('@ai-sdk/provider').JSONObject;
2105
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
2106
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2107
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2108
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2109
+ onInputDelta?: ((options: {
2110
+ inputTextDelta: string;
2111
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2112
+ onInputAvailable?: ((options: {
2113
+ input: Record<string, never>;
2114
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2115
+ toModelOutput?: ((options: {
2116
+ toolCallId: string;
2117
+ input: Record<string, never>;
2118
+ output: NoInfer<{
2119
+ globalCss: string;
2120
+ success: boolean;
2121
+ themes: any;
2122
+ }>;
2123
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2124
+ } & {
2125
+ outputSchema?: import('ai').FlexibleSchema<{
2126
+ globalCss: string;
2127
+ success: boolean;
2128
+ themes: any;
2129
+ }> | undefined;
2130
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2131
+ globalCss: string;
2132
+ success: boolean;
2133
+ themes: any;
2134
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2135
+ } & {
2136
+ description?: string | ((options: {
2137
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2138
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2139
+ }) => string) | undefined;
2140
+ strict?: boolean;
2141
+ inputExamples?: {
2142
+ input: NoInfer<Record<string, never>>;
2143
+ }[] | undefined;
2144
+ id?: never;
2145
+ isProviderExecuted?: never;
2146
+ args?: never;
2147
+ supportsDeferredResults?: never;
2148
+ } & {
2149
+ type: "dynamic";
2150
+ } & {
2151
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2152
+ globalCss: string;
2153
+ success: boolean;
2154
+ themes: any;
2155
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2156
+ }) | ({
2157
+ deferLoading?: boolean;
2158
+ title?: string;
2159
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2160
+ metadata?: import('@ai-sdk/provider').JSONObject;
2161
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
2162
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2163
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2164
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2165
+ onInputDelta?: ((options: {
2166
+ inputTextDelta: string;
2167
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2168
+ onInputAvailable?: ((options: {
2169
+ input: Record<string, never>;
2170
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2171
+ toModelOutput?: ((options: {
2172
+ toolCallId: string;
2173
+ input: Record<string, never>;
2174
+ output: NoInfer<{
2175
+ globalCss: string;
2176
+ success: boolean;
2177
+ themes: any;
2178
+ }>;
2179
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2180
+ } & {
2181
+ outputSchema?: import('ai').FlexibleSchema<{
2182
+ globalCss: string;
2183
+ success: boolean;
2184
+ themes: any;
2185
+ }> | undefined;
2186
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2187
+ globalCss: string;
2188
+ success: boolean;
2189
+ themes: any;
2190
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2191
+ } & {
2192
+ type: "provider";
2193
+ id: `${string}.${string}`;
2194
+ args: Record<string, unknown>;
2195
+ description?: never;
2196
+ strict?: never;
2197
+ inputExamples?: never;
2198
+ } & {
2199
+ isProviderExecuted: false;
2200
+ supportsDeferredResults?: never;
2201
+ } & {
2202
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2203
+ globalCss: string;
2204
+ success: boolean;
2205
+ themes: any;
2206
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2207
+ }) | ({
2208
+ deferLoading?: boolean;
2209
+ title?: string;
2210
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2211
+ metadata?: import('@ai-sdk/provider').JSONObject;
2212
+ inputSchema: import('ai').FlexibleSchema<Record<string, never>>;
2213
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2214
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<Record<string, never>, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2215
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2216
+ onInputDelta?: ((options: {
2217
+ inputTextDelta: string;
2218
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2219
+ onInputAvailable?: ((options: {
2220
+ input: Record<string, never>;
2221
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2222
+ toModelOutput?: ((options: {
2223
+ toolCallId: string;
2224
+ input: Record<string, never>;
2225
+ output: NoInfer<{
2226
+ globalCss: string;
2227
+ success: boolean;
2228
+ themes: any;
2229
+ }>;
2230
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2231
+ } & {
2232
+ outputSchema?: import('ai').FlexibleSchema<{
2233
+ globalCss: string;
2234
+ success: boolean;
2235
+ themes: any;
2236
+ }> | undefined;
2237
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2238
+ globalCss: string;
2239
+ success: boolean;
2240
+ themes: any;
2241
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2242
+ } & {
2243
+ type: "provider";
2244
+ id: `${string}.${string}`;
2245
+ args: Record<string, unknown>;
2246
+ description?: never;
2247
+ strict?: never;
2248
+ inputExamples?: never;
2249
+ } & {
2250
+ isProviderExecuted: true;
2251
+ supportsDeferredResults?: boolean;
2252
+ } & {
2253
+ execute: import('ai').ToolExecuteFunction<Record<string, never>, {
2254
+ globalCss: string;
2255
+ success: boolean;
2256
+ themes: any;
2257
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2258
+ });
2259
+ manage_site_theme: ({
2260
+ deferLoading?: boolean;
2261
+ title?: string;
2262
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2263
+ metadata?: import('@ai-sdk/provider').JSONObject;
2264
+ inputSchema: import('ai').FlexibleSchema<{
2265
+ slug: string;
2266
+ color_scheme?: "light" | "dark" | undefined;
2267
+ description?: string | null | undefined;
2268
+ extra_css?: string | null | undefined;
2269
+ icon?: string | undefined;
2270
+ is_default?: boolean | undefined;
2271
+ name?: string | undefined;
2272
+ tokens?: Record<string, string> | undefined;
2273
+ }>;
2274
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2275
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2276
+ slug: string;
2277
+ color_scheme?: "light" | "dark" | undefined;
2278
+ description?: string | null | undefined;
2279
+ extra_css?: string | null | undefined;
2280
+ icon?: string | undefined;
2281
+ is_default?: boolean | undefined;
2282
+ name?: string | undefined;
2283
+ tokens?: Record<string, string> | undefined;
2284
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2285
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2286
+ onInputDelta?: ((options: {
2287
+ inputTextDelta: string;
2288
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2289
+ onInputAvailable?: ((options: {
2290
+ input: {
2291
+ slug: string;
2292
+ color_scheme?: "light" | "dark" | undefined;
2293
+ description?: string | null | undefined;
2294
+ extra_css?: string | null | undefined;
2295
+ icon?: string | undefined;
2296
+ is_default?: boolean | undefined;
2297
+ name?: string | undefined;
2298
+ tokens?: Record<string, string> | undefined;
2299
+ };
2300
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2301
+ toModelOutput?: ((options: {
2302
+ toolCallId: string;
2303
+ input: {
2304
+ slug: string;
2305
+ color_scheme?: "light" | "dark" | undefined;
2306
+ description?: string | null | undefined;
2307
+ extra_css?: string | null | undefined;
2308
+ icon?: string | undefined;
2309
+ is_default?: boolean | undefined;
2310
+ name?: string | undefined;
2311
+ tokens?: Record<string, string> | undefined;
2312
+ };
2313
+ output: NoInfer<{
2314
+ created: boolean;
2315
+ isDefault: boolean;
2316
+ mutationExecuted: boolean;
2317
+ slug: string;
2318
+ success: boolean;
2319
+ themeId: string;
2320
+ tokenCount: number;
2321
+ }>;
2322
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2323
+ } & {
2324
+ outputSchema?: import('ai').FlexibleSchema<{
2325
+ created: boolean;
2326
+ isDefault: boolean;
2327
+ mutationExecuted: boolean;
2328
+ slug: string;
2329
+ success: boolean;
2330
+ themeId: string;
2331
+ tokenCount: number;
2332
+ }> | undefined;
2333
+ execute: import('ai').ToolExecuteFunction<{
2334
+ slug: string;
2335
+ color_scheme?: "light" | "dark" | undefined;
2336
+ description?: string | null | undefined;
2337
+ extra_css?: string | null | undefined;
2338
+ icon?: string | undefined;
2339
+ is_default?: boolean | undefined;
2340
+ name?: string | undefined;
2341
+ tokens?: Record<string, string> | undefined;
2342
+ }, {
2343
+ created: boolean;
2344
+ isDefault: boolean;
2345
+ mutationExecuted: boolean;
2346
+ slug: string;
2347
+ success: boolean;
2348
+ themeId: string;
2349
+ tokenCount: number;
2350
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2351
+ } & {
2352
+ description?: string | ((options: {
2353
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2354
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2355
+ }) => string) | undefined;
2356
+ strict?: boolean;
2357
+ inputExamples?: {
2358
+ input: NoInfer<{
2359
+ slug: string;
2360
+ color_scheme?: "light" | "dark" | undefined;
2361
+ description?: string | null | undefined;
2362
+ extra_css?: string | null | undefined;
2363
+ icon?: string | undefined;
2364
+ is_default?: boolean | undefined;
2365
+ name?: string | undefined;
2366
+ tokens?: Record<string, string> | undefined;
2367
+ }>;
2368
+ }[] | undefined;
2369
+ id?: never;
2370
+ isProviderExecuted?: never;
2371
+ args?: never;
2372
+ supportsDeferredResults?: never;
2373
+ } & {
2374
+ type?: undefined | "function";
2375
+ } & {
2376
+ execute: import('ai').ToolExecuteFunction<{
2377
+ slug: string;
2378
+ color_scheme?: "light" | "dark" | undefined;
2379
+ description?: string | null | undefined;
2380
+ extra_css?: string | null | undefined;
2381
+ icon?: string | undefined;
2382
+ is_default?: boolean | undefined;
2383
+ name?: string | undefined;
2384
+ tokens?: Record<string, string> | undefined;
2385
+ }, {
2386
+ created: boolean;
2387
+ isDefault: boolean;
2388
+ mutationExecuted: boolean;
2389
+ slug: string;
2390
+ success: boolean;
2391
+ themeId: string;
2392
+ tokenCount: number;
2393
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2394
+ }) | ({
2395
+ deferLoading?: boolean;
2396
+ title?: string;
2397
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2398
+ metadata?: import('@ai-sdk/provider').JSONObject;
2399
+ inputSchema: import('ai').FlexibleSchema<{
2400
+ slug: string;
2401
+ color_scheme?: "light" | "dark" | undefined;
2402
+ description?: string | null | undefined;
2403
+ extra_css?: string | null | undefined;
2404
+ icon?: string | undefined;
2405
+ is_default?: boolean | undefined;
2406
+ name?: string | undefined;
2407
+ tokens?: Record<string, string> | undefined;
2408
+ }>;
2409
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2410
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2411
+ slug: string;
2412
+ color_scheme?: "light" | "dark" | undefined;
2413
+ description?: string | null | undefined;
2414
+ extra_css?: string | null | undefined;
2415
+ icon?: string | undefined;
2416
+ is_default?: boolean | undefined;
2417
+ name?: string | undefined;
2418
+ tokens?: Record<string, string> | undefined;
2419
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2420
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2421
+ onInputDelta?: ((options: {
2422
+ inputTextDelta: string;
2423
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2424
+ onInputAvailable?: ((options: {
2425
+ input: {
2426
+ slug: string;
2427
+ color_scheme?: "light" | "dark" | undefined;
2428
+ description?: string | null | undefined;
2429
+ extra_css?: string | null | undefined;
2430
+ icon?: string | undefined;
2431
+ is_default?: boolean | undefined;
2432
+ name?: string | undefined;
2433
+ tokens?: Record<string, string> | undefined;
2434
+ };
2435
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2436
+ toModelOutput?: ((options: {
2437
+ toolCallId: string;
2438
+ input: {
2439
+ slug: string;
2440
+ color_scheme?: "light" | "dark" | undefined;
2441
+ description?: string | null | undefined;
2442
+ extra_css?: string | null | undefined;
2443
+ icon?: string | undefined;
2444
+ is_default?: boolean | undefined;
2445
+ name?: string | undefined;
2446
+ tokens?: Record<string, string> | undefined;
2447
+ };
2448
+ output: NoInfer<{
2449
+ created: boolean;
2450
+ isDefault: boolean;
2451
+ mutationExecuted: boolean;
2452
+ slug: string;
2453
+ success: boolean;
2454
+ themeId: string;
2455
+ tokenCount: number;
2456
+ }>;
2457
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2458
+ } & {
2459
+ outputSchema?: import('ai').FlexibleSchema<{
2460
+ created: boolean;
2461
+ isDefault: boolean;
2462
+ mutationExecuted: boolean;
2463
+ slug: string;
2464
+ success: boolean;
2465
+ themeId: string;
2466
+ tokenCount: number;
2467
+ }> | undefined;
2468
+ execute: import('ai').ToolExecuteFunction<{
2469
+ slug: string;
2470
+ color_scheme?: "light" | "dark" | undefined;
2471
+ description?: string | null | undefined;
2472
+ extra_css?: string | null | undefined;
2473
+ icon?: string | undefined;
2474
+ is_default?: boolean | undefined;
2475
+ name?: string | undefined;
2476
+ tokens?: Record<string, string> | undefined;
2477
+ }, {
2478
+ created: boolean;
2479
+ isDefault: boolean;
2480
+ mutationExecuted: boolean;
2481
+ slug: string;
2482
+ success: boolean;
2483
+ themeId: string;
2484
+ tokenCount: number;
2485
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2486
+ } & {
2487
+ description?: string | ((options: {
2488
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2489
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2490
+ }) => string) | undefined;
2491
+ strict?: boolean;
2492
+ inputExamples?: {
2493
+ input: NoInfer<{
2494
+ slug: string;
2495
+ color_scheme?: "light" | "dark" | undefined;
2496
+ description?: string | null | undefined;
2497
+ extra_css?: string | null | undefined;
2498
+ icon?: string | undefined;
2499
+ is_default?: boolean | undefined;
2500
+ name?: string | undefined;
2501
+ tokens?: Record<string, string> | undefined;
2502
+ }>;
2503
+ }[] | undefined;
2504
+ id?: never;
2505
+ isProviderExecuted?: never;
2506
+ args?: never;
2507
+ supportsDeferredResults?: never;
2508
+ } & {
2509
+ type: "dynamic";
2510
+ } & {
2511
+ execute: import('ai').ToolExecuteFunction<{
2512
+ slug: string;
2513
+ color_scheme?: "light" | "dark" | undefined;
2514
+ description?: string | null | undefined;
2515
+ extra_css?: string | null | undefined;
2516
+ icon?: string | undefined;
2517
+ is_default?: boolean | undefined;
2518
+ name?: string | undefined;
2519
+ tokens?: Record<string, string> | undefined;
2520
+ }, {
2521
+ created: boolean;
2522
+ isDefault: boolean;
2523
+ mutationExecuted: boolean;
2524
+ slug: string;
2525
+ success: boolean;
2526
+ themeId: string;
2527
+ tokenCount: number;
2528
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2529
+ }) | ({
2530
+ deferLoading?: boolean;
2531
+ title?: string;
2532
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2533
+ metadata?: import('@ai-sdk/provider').JSONObject;
2534
+ inputSchema: import('ai').FlexibleSchema<{
2535
+ slug: string;
2536
+ color_scheme?: "light" | "dark" | undefined;
2537
+ description?: string | null | undefined;
2538
+ extra_css?: string | null | undefined;
2539
+ icon?: string | undefined;
2540
+ is_default?: boolean | undefined;
2541
+ name?: string | undefined;
2542
+ tokens?: Record<string, string> | undefined;
2543
+ }>;
2544
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2545
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2546
+ slug: string;
2547
+ color_scheme?: "light" | "dark" | undefined;
2548
+ description?: string | null | undefined;
2549
+ extra_css?: string | null | undefined;
2550
+ icon?: string | undefined;
2551
+ is_default?: boolean | undefined;
2552
+ name?: string | undefined;
2553
+ tokens?: Record<string, string> | undefined;
2554
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2555
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2556
+ onInputDelta?: ((options: {
2557
+ inputTextDelta: string;
2558
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2559
+ onInputAvailable?: ((options: {
2560
+ input: {
2561
+ slug: string;
2562
+ color_scheme?: "light" | "dark" | undefined;
2563
+ description?: string | null | undefined;
2564
+ extra_css?: string | null | undefined;
2565
+ icon?: string | undefined;
2566
+ is_default?: boolean | undefined;
2567
+ name?: string | undefined;
2568
+ tokens?: Record<string, string> | undefined;
2569
+ };
2570
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2571
+ toModelOutput?: ((options: {
2572
+ toolCallId: string;
2573
+ input: {
2574
+ slug: string;
2575
+ color_scheme?: "light" | "dark" | undefined;
2576
+ description?: string | null | undefined;
2577
+ extra_css?: string | null | undefined;
2578
+ icon?: string | undefined;
2579
+ is_default?: boolean | undefined;
2580
+ name?: string | undefined;
2581
+ tokens?: Record<string, string> | undefined;
2582
+ };
2583
+ output: NoInfer<{
2584
+ created: boolean;
2585
+ isDefault: boolean;
2586
+ mutationExecuted: boolean;
2587
+ slug: string;
2588
+ success: boolean;
2589
+ themeId: string;
2590
+ tokenCount: number;
2591
+ }>;
2592
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2593
+ } & {
2594
+ outputSchema?: import('ai').FlexibleSchema<{
2595
+ created: boolean;
2596
+ isDefault: boolean;
2597
+ mutationExecuted: boolean;
2598
+ slug: string;
2599
+ success: boolean;
2600
+ themeId: string;
2601
+ tokenCount: number;
2602
+ }> | undefined;
2603
+ execute: import('ai').ToolExecuteFunction<{
2604
+ slug: string;
2605
+ color_scheme?: "light" | "dark" | undefined;
2606
+ description?: string | null | undefined;
2607
+ extra_css?: string | null | undefined;
2608
+ icon?: string | undefined;
2609
+ is_default?: boolean | undefined;
2610
+ name?: string | undefined;
2611
+ tokens?: Record<string, string> | undefined;
2612
+ }, {
2613
+ created: boolean;
2614
+ isDefault: boolean;
2615
+ mutationExecuted: boolean;
2616
+ slug: string;
2617
+ success: boolean;
2618
+ themeId: string;
2619
+ tokenCount: number;
2620
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2621
+ } & {
2622
+ type: "provider";
2623
+ id: `${string}.${string}`;
2624
+ args: Record<string, unknown>;
2625
+ description?: never;
2626
+ strict?: never;
2627
+ inputExamples?: never;
2628
+ } & {
2629
+ isProviderExecuted: false;
2630
+ supportsDeferredResults?: never;
2631
+ } & {
2632
+ execute: import('ai').ToolExecuteFunction<{
2633
+ slug: string;
2634
+ color_scheme?: "light" | "dark" | undefined;
2635
+ description?: string | null | undefined;
2636
+ extra_css?: string | null | undefined;
2637
+ icon?: string | undefined;
2638
+ is_default?: boolean | undefined;
2639
+ name?: string | undefined;
2640
+ tokens?: Record<string, string> | undefined;
2641
+ }, {
2642
+ created: boolean;
2643
+ isDefault: boolean;
2644
+ mutationExecuted: boolean;
2645
+ slug: string;
2646
+ success: boolean;
2647
+ themeId: string;
2648
+ tokenCount: number;
2649
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2650
+ }) | ({
2651
+ deferLoading?: boolean;
2652
+ title?: string;
2653
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2654
+ metadata?: import('@ai-sdk/provider').JSONObject;
2655
+ inputSchema: import('ai').FlexibleSchema<{
2656
+ slug: string;
2657
+ color_scheme?: "light" | "dark" | undefined;
2658
+ description?: string | null | undefined;
2659
+ extra_css?: string | null | undefined;
2660
+ icon?: string | undefined;
2661
+ is_default?: boolean | undefined;
2662
+ name?: string | undefined;
2663
+ tokens?: Record<string, string> | undefined;
2664
+ }>;
2665
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2666
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2667
+ slug: string;
2668
+ color_scheme?: "light" | "dark" | undefined;
2669
+ description?: string | null | undefined;
2670
+ extra_css?: string | null | undefined;
2671
+ icon?: string | undefined;
2672
+ is_default?: boolean | undefined;
2673
+ name?: string | undefined;
2674
+ tokens?: Record<string, string> | undefined;
2675
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2676
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2677
+ onInputDelta?: ((options: {
2678
+ inputTextDelta: string;
2679
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2680
+ onInputAvailable?: ((options: {
2681
+ input: {
2682
+ slug: string;
2683
+ color_scheme?: "light" | "dark" | undefined;
2684
+ description?: string | null | undefined;
2685
+ extra_css?: string | null | undefined;
2686
+ icon?: string | undefined;
2687
+ is_default?: boolean | undefined;
2688
+ name?: string | undefined;
2689
+ tokens?: Record<string, string> | undefined;
2690
+ };
2691
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2692
+ toModelOutput?: ((options: {
2693
+ toolCallId: string;
2694
+ input: {
2695
+ slug: string;
2696
+ color_scheme?: "light" | "dark" | undefined;
2697
+ description?: string | null | undefined;
2698
+ extra_css?: string | null | undefined;
2699
+ icon?: string | undefined;
2700
+ is_default?: boolean | undefined;
2701
+ name?: string | undefined;
2702
+ tokens?: Record<string, string> | undefined;
2703
+ };
2704
+ output: NoInfer<{
2705
+ created: boolean;
2706
+ isDefault: boolean;
2707
+ mutationExecuted: boolean;
2708
+ slug: string;
2709
+ success: boolean;
2710
+ themeId: string;
2711
+ tokenCount: number;
2712
+ }>;
2713
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2714
+ } & {
2715
+ outputSchema?: import('ai').FlexibleSchema<{
2716
+ created: boolean;
2717
+ isDefault: boolean;
2718
+ mutationExecuted: boolean;
2719
+ slug: string;
2720
+ success: boolean;
2721
+ themeId: string;
2722
+ tokenCount: number;
2723
+ }> | undefined;
2724
+ execute: import('ai').ToolExecuteFunction<{
2725
+ slug: string;
2726
+ color_scheme?: "light" | "dark" | undefined;
2727
+ description?: string | null | undefined;
2728
+ extra_css?: string | null | undefined;
2729
+ icon?: string | undefined;
2730
+ is_default?: boolean | undefined;
2731
+ name?: string | undefined;
2732
+ tokens?: Record<string, string> | undefined;
2733
+ }, {
2734
+ created: boolean;
2735
+ isDefault: boolean;
2736
+ mutationExecuted: boolean;
2737
+ slug: string;
2738
+ success: boolean;
2739
+ themeId: string;
2740
+ tokenCount: number;
2741
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2742
+ } & {
2743
+ type: "provider";
2744
+ id: `${string}.${string}`;
2745
+ args: Record<string, unknown>;
2746
+ description?: never;
2747
+ strict?: never;
2748
+ inputExamples?: never;
2749
+ } & {
2750
+ isProviderExecuted: true;
2751
+ supportsDeferredResults?: boolean;
2752
+ } & {
2753
+ execute: import('ai').ToolExecuteFunction<{
2754
+ slug: string;
2755
+ color_scheme?: "light" | "dark" | undefined;
2756
+ description?: string | null | undefined;
2757
+ extra_css?: string | null | undefined;
2758
+ icon?: string | undefined;
2759
+ is_default?: boolean | undefined;
2760
+ name?: string | undefined;
2761
+ tokens?: Record<string, string> | undefined;
2762
+ }, {
2763
+ created: boolean;
2764
+ isDefault: boolean;
2765
+ mutationExecuted: boolean;
2766
+ slug: string;
2767
+ success: boolean;
2768
+ themeId: string;
2769
+ tokenCount: number;
2770
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2771
+ });
2772
+ update_global_css: ({
2773
+ deferLoading?: boolean;
2774
+ title?: string;
2775
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2776
+ metadata?: import('@ai-sdk/provider').JSONObject;
2777
+ inputSchema: import('ai').FlexibleSchema<{
2778
+ css: string;
2779
+ mode: "replace" | "append";
2780
+ }>;
2781
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2782
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2783
+ css: string;
2784
+ mode: "replace" | "append";
2785
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2786
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2787
+ onInputDelta?: ((options: {
2788
+ inputTextDelta: string;
2789
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2790
+ onInputAvailable?: ((options: {
2791
+ input: {
2792
+ css: string;
2793
+ mode: "replace" | "append";
2794
+ };
2795
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2796
+ toModelOutput?: ((options: {
2797
+ toolCallId: string;
2798
+ input: {
2799
+ css: string;
2800
+ mode: "replace" | "append";
2801
+ };
2802
+ output: NoInfer<{
2803
+ characters: number;
2804
+ mode: "replace" | "append";
2805
+ mutationExecuted: boolean;
2806
+ success: boolean;
2807
+ }>;
2808
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2809
+ } & {
2810
+ outputSchema?: import('ai').FlexibleSchema<{
2811
+ characters: number;
2812
+ mode: "replace" | "append";
2813
+ mutationExecuted: boolean;
2814
+ success: boolean;
2815
+ }> | undefined;
2816
+ execute: import('ai').ToolExecuteFunction<{
2817
+ css: string;
2818
+ mode: "replace" | "append";
2819
+ }, {
2820
+ characters: number;
2821
+ mode: "replace" | "append";
2822
+ mutationExecuted: boolean;
2823
+ success: boolean;
2824
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2825
+ } & {
2826
+ description?: string | ((options: {
2827
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2828
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2829
+ }) => string) | undefined;
2830
+ strict?: boolean;
2831
+ inputExamples?: {
2832
+ input: NoInfer<{
2833
+ css: string;
2834
+ mode: "replace" | "append";
2835
+ }>;
2836
+ }[] | undefined;
2837
+ id?: never;
2838
+ isProviderExecuted?: never;
2839
+ args?: never;
2840
+ supportsDeferredResults?: never;
2841
+ } & {
2842
+ type?: undefined | "function";
2843
+ } & {
2844
+ execute: import('ai').ToolExecuteFunction<{
2845
+ css: string;
2846
+ mode: "replace" | "append";
2847
+ }, {
2848
+ characters: number;
2849
+ mode: "replace" | "append";
2850
+ mutationExecuted: boolean;
2851
+ success: boolean;
2852
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2853
+ }) | ({
2854
+ deferLoading?: boolean;
2855
+ title?: string;
2856
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2857
+ metadata?: import('@ai-sdk/provider').JSONObject;
2858
+ inputSchema: import('ai').FlexibleSchema<{
2859
+ css: string;
2860
+ mode: "replace" | "append";
2861
+ }>;
2862
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2863
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2864
+ css: string;
2865
+ mode: "replace" | "append";
2866
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2867
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2868
+ onInputDelta?: ((options: {
2869
+ inputTextDelta: string;
2870
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2871
+ onInputAvailable?: ((options: {
2872
+ input: {
2873
+ css: string;
2874
+ mode: "replace" | "append";
2875
+ };
2876
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2877
+ toModelOutput?: ((options: {
2878
+ toolCallId: string;
2879
+ input: {
2880
+ css: string;
2881
+ mode: "replace" | "append";
2882
+ };
2883
+ output: NoInfer<{
2884
+ characters: number;
2885
+ mode: "replace" | "append";
2886
+ mutationExecuted: boolean;
2887
+ success: boolean;
2888
+ }>;
2889
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2890
+ } & {
2891
+ outputSchema?: import('ai').FlexibleSchema<{
2892
+ characters: number;
2893
+ mode: "replace" | "append";
2894
+ mutationExecuted: boolean;
2895
+ success: boolean;
2896
+ }> | undefined;
2897
+ execute: import('ai').ToolExecuteFunction<{
2898
+ css: string;
2899
+ mode: "replace" | "append";
2900
+ }, {
2901
+ characters: number;
2902
+ mode: "replace" | "append";
2903
+ mutationExecuted: boolean;
2904
+ success: boolean;
2905
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2906
+ } & {
2907
+ description?: string | ((options: {
2908
+ context: NoInfer<import('@ai-sdk/provider-utils').Context>;
2909
+ experimental_sandbox?: import('ai').Experimental_SandboxSession;
2910
+ }) => string) | undefined;
2911
+ strict?: boolean;
2912
+ inputExamples?: {
2913
+ input: NoInfer<{
2914
+ css: string;
2915
+ mode: "replace" | "append";
2916
+ }>;
2917
+ }[] | undefined;
2918
+ id?: never;
2919
+ isProviderExecuted?: never;
2920
+ args?: never;
2921
+ supportsDeferredResults?: never;
2922
+ } & {
2923
+ type: "dynamic";
2924
+ } & {
2925
+ execute: import('ai').ToolExecuteFunction<{
2926
+ css: string;
2927
+ mode: "replace" | "append";
2928
+ }, {
2929
+ characters: number;
2930
+ mode: "replace" | "append";
2931
+ mutationExecuted: boolean;
2932
+ success: boolean;
2933
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2934
+ }) | ({
2935
+ deferLoading?: boolean;
2936
+ title?: string;
2937
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
2938
+ metadata?: import('@ai-sdk/provider').JSONObject;
2939
+ inputSchema: import('ai').FlexibleSchema<{
2940
+ css: string;
2941
+ mode: "replace" | "append";
2942
+ }>;
2943
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
2944
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
2945
+ css: string;
2946
+ mode: "replace" | "append";
2947
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
2948
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2949
+ onInputDelta?: ((options: {
2950
+ inputTextDelta: string;
2951
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2952
+ onInputAvailable?: ((options: {
2953
+ input: {
2954
+ css: string;
2955
+ mode: "replace" | "append";
2956
+ };
2957
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
2958
+ toModelOutput?: ((options: {
2959
+ toolCallId: string;
2960
+ input: {
2961
+ css: string;
2962
+ mode: "replace" | "append";
2963
+ };
2964
+ output: NoInfer<{
2965
+ characters: number;
2966
+ mode: "replace" | "append";
2967
+ mutationExecuted: boolean;
2968
+ success: boolean;
2969
+ }>;
2970
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
2971
+ } & {
2972
+ outputSchema?: import('ai').FlexibleSchema<{
2973
+ characters: number;
2974
+ mode: "replace" | "append";
2975
+ mutationExecuted: boolean;
2976
+ success: boolean;
2977
+ }> | undefined;
2978
+ execute: import('ai').ToolExecuteFunction<{
2979
+ css: string;
2980
+ mode: "replace" | "append";
2981
+ }, {
2982
+ characters: number;
2983
+ mode: "replace" | "append";
2984
+ mutationExecuted: boolean;
2985
+ success: boolean;
2986
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
2987
+ } & {
2988
+ type: "provider";
2989
+ id: `${string}.${string}`;
2990
+ args: Record<string, unknown>;
2991
+ description?: never;
2992
+ strict?: never;
2993
+ inputExamples?: never;
2994
+ } & {
2995
+ isProviderExecuted: false;
2996
+ supportsDeferredResults?: never;
2997
+ } & {
2998
+ execute: import('ai').ToolExecuteFunction<{
2999
+ css: string;
3000
+ mode: "replace" | "append";
3001
+ }, {
3002
+ characters: number;
3003
+ mode: "replace" | "append";
3004
+ mutationExecuted: boolean;
3005
+ success: boolean;
3006
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
3007
+ }) | ({
3008
+ deferLoading?: boolean;
3009
+ title?: string;
3010
+ providerOptions?: import('@ai-sdk/provider-utils').ProviderOptions;
3011
+ metadata?: import('@ai-sdk/provider').JSONObject;
3012
+ inputSchema: import('ai').FlexibleSchema<{
3013
+ css: string;
3014
+ mode: "replace" | "append";
3015
+ }>;
3016
+ contextSchema?: import('ai').FlexibleSchema<import('@ai-sdk/provider-utils').Context> | undefined;
3017
+ needsApproval?: boolean | import('@ai-sdk/provider-utils').ToolNeedsApprovalFunction<{
3018
+ css: string;
3019
+ mode: "replace" | "append";
3020
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>> | undefined;
3021
+ onInputStart?: ((options: import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
3022
+ onInputDelta?: ((options: {
3023
+ inputTextDelta: string;
3024
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
3025
+ onInputAvailable?: ((options: {
3026
+ input: {
3027
+ css: string;
3028
+ mode: "replace" | "append";
3029
+ };
3030
+ } & import('ai').ToolExecutionOptions<NoInfer<import('@ai-sdk/provider-utils').Context>>) => void | PromiseLike<void>) | undefined;
3031
+ toModelOutput?: ((options: {
3032
+ toolCallId: string;
3033
+ input: {
3034
+ css: string;
3035
+ mode: "replace" | "append";
3036
+ };
3037
+ output: NoInfer<{
3038
+ characters: number;
3039
+ mode: "replace" | "append";
3040
+ mutationExecuted: boolean;
3041
+ success: boolean;
3042
+ }>;
3043
+ }) => import('@ai-sdk/provider-utils').ToolResultOutput | PromiseLike<import('@ai-sdk/provider-utils').ToolResultOutput>) | undefined;
3044
+ } & {
3045
+ outputSchema?: import('ai').FlexibleSchema<{
3046
+ characters: number;
3047
+ mode: "replace" | "append";
3048
+ mutationExecuted: boolean;
3049
+ success: boolean;
3050
+ }> | undefined;
3051
+ execute: import('ai').ToolExecuteFunction<{
3052
+ css: string;
3053
+ mode: "replace" | "append";
3054
+ }, {
3055
+ characters: number;
3056
+ mode: "replace" | "append";
3057
+ mutationExecuted: boolean;
3058
+ success: boolean;
3059
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
3060
+ } & {
3061
+ type: "provider";
3062
+ id: `${string}.${string}`;
3063
+ args: Record<string, unknown>;
3064
+ description?: never;
3065
+ strict?: never;
3066
+ inputExamples?: never;
3067
+ } & {
3068
+ isProviderExecuted: true;
3069
+ supportsDeferredResults?: boolean;
3070
+ } & {
3071
+ execute: import('ai').ToolExecuteFunction<{
3072
+ css: string;
3073
+ mode: "replace" | "append";
3074
+ }, {
3075
+ characters: number;
3076
+ mode: "replace" | "append";
3077
+ mutationExecuted: boolean;
3078
+ success: boolean;
3079
+ }, NoInfer<import('@ai-sdk/provider-utils').Context>>;
3080
+ });
281
3081
  };
282
3082
  export {};