@vibes.diy/api-types 14.3.78 → 14.3.80

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/chat.d.ts CHANGED
@@ -74,6 +74,7 @@ export declare const reqOpenChat: import("arktype/internal/variants/object.ts").
74
74
  } | undefined;
75
75
  stylePin?: string | undefined;
76
76
  imageSurvey?: boolean | undefined;
77
+ newAgentDiscussion?: boolean | undefined;
77
78
  mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
78
79
  }, {}>;
79
80
  export type ReqOpenChat = typeof reqOpenChat.infer;
@@ -284,6 +285,10 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
284
285
  name: string;
285
286
  };
286
287
  } | undefined;
288
+ cache_control?: {
289
+ type: "ephemeral";
290
+ ttl?: "1h" | "5m" | undefined;
291
+ } | undefined;
287
292
  response_format?: unknown;
288
293
  image_config?: unknown;
289
294
  reasoning?: {
@@ -456,6 +461,10 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
456
461
  name: string;
457
462
  };
458
463
  } | undefined;
464
+ cache_control?: {
465
+ type: "ephemeral";
466
+ ttl?: "1h" | "5m" | undefined;
467
+ } | undefined;
459
468
  response_format?: unknown;
460
469
  image_config?: unknown;
461
470
  reasoning?: {
@@ -630,6 +639,10 @@ export declare const reqPromptApplicationChatSection: import("arktype/internal/v
630
639
  name: string;
631
640
  };
632
641
  } | undefined;
642
+ cache_control?: {
643
+ type: "ephemeral";
644
+ ttl?: "1h" | "5m" | undefined;
645
+ } | undefined;
633
646
  response_format?: unknown;
634
647
  image_config?: unknown;
635
648
  reasoning?: {
@@ -721,6 +734,10 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
721
734
  name: string;
722
735
  };
723
736
  } | undefined;
737
+ cache_control?: {
738
+ type: "ephemeral";
739
+ ttl?: "1h" | "5m" | undefined;
740
+ } | undefined;
724
741
  response_format?: unknown;
725
742
  image_config?: unknown;
726
743
  reasoning?: {
@@ -1001,6 +1018,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1001
1018
  name: string;
1002
1019
  };
1003
1020
  } | undefined;
1021
+ cache_control?: {
1022
+ type: "ephemeral";
1023
+ ttl?: "1h" | "5m" | undefined;
1024
+ } | undefined;
1004
1025
  response_format?: unknown;
1005
1026
  image_config?: unknown;
1006
1027
  reasoning?: {
@@ -1090,6 +1111,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1090
1111
  name: string;
1091
1112
  };
1092
1113
  } | undefined;
1114
+ cache_control?: {
1115
+ type: "ephemeral";
1116
+ ttl?: "1h" | "5m" | undefined;
1117
+ } | undefined;
1093
1118
  response_format?: unknown;
1094
1119
  image_config?: unknown;
1095
1120
  reasoning?: {
@@ -1186,6 +1211,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1186
1211
  name: string;
1187
1212
  };
1188
1213
  } | undefined;
1214
+ cache_control?: {
1215
+ type: "ephemeral";
1216
+ ttl?: "1h" | "5m" | undefined;
1217
+ } | undefined;
1189
1218
  response_format?: unknown;
1190
1219
  image_config?: unknown;
1191
1220
  reasoning?: {
@@ -1358,6 +1387,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1358
1387
  name: string;
1359
1388
  };
1360
1389
  } | undefined;
1390
+ cache_control?: {
1391
+ type: "ephemeral";
1392
+ ttl?: "1h" | "5m" | undefined;
1393
+ } | undefined;
1361
1394
  response_format?: unknown;
1362
1395
  image_config?: unknown;
1363
1396
  reasoning?: {
@@ -1659,6 +1692,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1659
1692
  name: string;
1660
1693
  };
1661
1694
  } | undefined;
1695
+ cache_control?: {
1696
+ type: "ephemeral";
1697
+ ttl?: "1h" | "5m" | undefined;
1698
+ } | undefined;
1662
1699
  response_format?: unknown;
1663
1700
  image_config?: unknown;
1664
1701
  reasoning?: {
@@ -1748,6 +1785,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1748
1785
  name: string;
1749
1786
  };
1750
1787
  } | undefined;
1788
+ cache_control?: {
1789
+ type: "ephemeral";
1790
+ ttl?: "1h" | "5m" | undefined;
1791
+ } | undefined;
1751
1792
  response_format?: unknown;
1752
1793
  image_config?: unknown;
1753
1794
  reasoning?: {
@@ -1967,6 +2008,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1967
2008
  name: string;
1968
2009
  };
1969
2010
  } | undefined;
2011
+ cache_control?: {
2012
+ type: "ephemeral";
2013
+ ttl?: "1h" | "5m" | undefined;
2014
+ } | undefined;
1970
2015
  response_format?: unknown;
1971
2016
  image_config?: unknown;
1972
2017
  reasoning?: {
@@ -2139,6 +2184,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
2139
2184
  name: string;
2140
2185
  };
2141
2186
  } | undefined;
2187
+ cache_control?: {
2188
+ type: "ephemeral";
2189
+ ttl?: "1h" | "5m" | undefined;
2190
+ } | undefined;
2142
2191
  response_format?: unknown;
2143
2192
  image_config?: unknown;
2144
2193
  reasoning?: {
@@ -2246,221 +2295,6 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
2246
2295
  export type ResPromptChatSection = typeof resPromptChatSection.infer;
2247
2296
  export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
2248
2297
  export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
2249
- blockId: string;
2250
- streamId: string;
2251
- seq: number;
2252
- blockNr: number;
2253
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2254
- type: "block.begin";
2255
- } | {
2256
- blockId: string;
2257
- streamId: string;
2258
- seq: number;
2259
- blockNr: number;
2260
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2261
- type: "block.end";
2262
- stats: {
2263
- toplevel: {
2264
- lines: number;
2265
- bytes: number;
2266
- cnt?: number | undefined;
2267
- };
2268
- code: {
2269
- lines: number;
2270
- bytes: number;
2271
- cnt?: number | undefined;
2272
- };
2273
- image: {
2274
- lines: number;
2275
- bytes: number;
2276
- cnt?: number | undefined;
2277
- };
2278
- total: {
2279
- lines: number;
2280
- bytes: number;
2281
- cnt?: number | undefined;
2282
- };
2283
- };
2284
- usage: {
2285
- given: {
2286
- prompt_tokens: number;
2287
- completion_tokens: number;
2288
- total_tokens: number;
2289
- model?: string | undefined;
2290
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2291
- reasoningEffort?: string | undefined;
2292
- }[];
2293
- calculated: {
2294
- prompt_tokens: number;
2295
- completion_tokens: number;
2296
- total_tokens: number;
2297
- model?: string | undefined;
2298
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2299
- reasoningEffort?: string | undefined;
2300
- };
2301
- };
2302
- fsRef?: ((In: {
2303
- appSlug: string;
2304
- ownerHandle?: string | undefined;
2305
- userSlug?: string | undefined;
2306
- mode: "dev" | "production";
2307
- fsId: string;
2308
- }) => import("arktype").Out<{
2309
- appSlug: string;
2310
- mode: "dev" | "production";
2311
- fsId: string;
2312
- ownerHandle: string;
2313
- }>) | undefined;
2314
- touchedPaths?: string[] | undefined;
2315
- settled?: {
2316
- reach: "companion-only" | "entry" | "none" | "server-only";
2317
- entryTouched: boolean;
2318
- touchedCount: number;
2319
- applied: boolean;
2320
- } | undefined;
2321
- saveRepair?: {
2322
- repaired: string[];
2323
- attempts: number;
2324
- } | undefined;
2325
- } | {
2326
- blockId: string;
2327
- streamId: string;
2328
- seq: number;
2329
- blockNr: number;
2330
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2331
- type: "block.stats";
2332
- stats: {
2333
- toplevel: {
2334
- lines: number;
2335
- bytes: number;
2336
- cnt?: number | undefined;
2337
- };
2338
- code: {
2339
- lines: number;
2340
- bytes: number;
2341
- cnt?: number | undefined;
2342
- };
2343
- image: {
2344
- lines: number;
2345
- bytes: number;
2346
- cnt?: number | undefined;
2347
- };
2348
- total: {
2349
- lines: number;
2350
- bytes: number;
2351
- cnt?: number | undefined;
2352
- };
2353
- };
2354
- usage: {
2355
- prompt_tokens: number;
2356
- completion_tokens: number;
2357
- total_tokens: number;
2358
- model?: string | undefined;
2359
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2360
- reasoningEffort?: string | undefined;
2361
- };
2362
- } | {
2363
- blockId: string;
2364
- streamId: string;
2365
- seq: number;
2366
- blockNr: number;
2367
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2368
- stats: {
2369
- lines: number;
2370
- bytes: number;
2371
- cnt?: number | undefined;
2372
- };
2373
- type: "block.image";
2374
- sectionId: string;
2375
- url?: string | undefined;
2376
- uploadId?: string | undefined;
2377
- cid?: string | undefined;
2378
- mimeType?: string | undefined;
2379
- size?: number | undefined;
2380
- docWritten?: boolean | undefined;
2381
- } | {
2382
- blockId: string;
2383
- streamId: string;
2384
- seq: number;
2385
- blockNr: number;
2386
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2387
- type: "block.code.begin";
2388
- sectionId: string;
2389
- lang: string;
2390
- path?: string | undefined;
2391
- } | {
2392
- blockId: string;
2393
- streamId: string;
2394
- seq: number;
2395
- blockNr: number;
2396
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2397
- lineNr: number;
2398
- line: string;
2399
- type: "block.code.line";
2400
- sectionId: string;
2401
- lang: string;
2402
- path?: string | undefined;
2403
- } | {
2404
- blockId: string;
2405
- streamId: string;
2406
- seq: number;
2407
- blockNr: number;
2408
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2409
- stats: {
2410
- lines: number;
2411
- bytes: number;
2412
- cnt?: number | undefined;
2413
- };
2414
- type: "block.code.end";
2415
- sectionId: string;
2416
- lang: string;
2417
- path?: string | undefined;
2418
- } | {
2419
- blockId: string;
2420
- streamId: string;
2421
- seq: number;
2422
- blockNr: number;
2423
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2424
- type: "block.code.truncated";
2425
- sectionId: string;
2426
- lang: string;
2427
- path?: string | undefined;
2428
- reason: string;
2429
- kind: string;
2430
- truncatedAtLine: number;
2431
- errorCount: number;
2432
- } | {
2433
- blockId: string;
2434
- streamId: string;
2435
- seq: number;
2436
- blockNr: number;
2437
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2438
- type: "block.toplevel.begin";
2439
- sectionId: string;
2440
- } | {
2441
- blockId: string;
2442
- streamId: string;
2443
- seq: number;
2444
- blockNr: number;
2445
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2446
- lineNr: number;
2447
- line: string;
2448
- type: "block.toplevel.line";
2449
- sectionId: string;
2450
- } | {
2451
- blockId: string;
2452
- streamId: string;
2453
- seq: number;
2454
- blockNr: number;
2455
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2456
- stats: {
2457
- lines: number;
2458
- bytes: number;
2459
- cnt?: number | undefined;
2460
- };
2461
- type: "block.toplevel.end";
2462
- sectionId: string;
2463
- } | {
2464
2298
  type: "prompt.research";
2465
2299
  version: 1;
2466
2300
  streamId: string;
@@ -2586,6 +2420,10 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2586
2420
  name: string;
2587
2421
  };
2588
2422
  } | undefined;
2423
+ cache_control?: {
2424
+ type: "ephemeral";
2425
+ ttl?: "1h" | "5m" | undefined;
2426
+ } | undefined;
2589
2427
  response_format?: unknown;
2590
2428
  image_config?: unknown;
2591
2429
  reasoning?: {
@@ -2602,6 +2440,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2602
2440
  clientMessageId?: string | undefined;
2603
2441
  origin?: "design-repair" | undefined;
2604
2442
  agentCommit?: true | undefined;
2443
+ agentSkills?: string[] | undefined;
2605
2444
  } | {
2606
2445
  streamId: string;
2607
2446
  chatId: string;
@@ -2740,6 +2579,10 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2740
2579
  name: string;
2741
2580
  };
2742
2581
  } | undefined;
2582
+ cache_control?: {
2583
+ type: "ephemeral";
2584
+ ttl?: "1h" | "5m" | undefined;
2585
+ } | undefined;
2743
2586
  response_format?: unknown;
2744
2587
  image_config?: unknown;
2745
2588
  reasoning?: {
@@ -2899,121 +2742,52 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2899
2742
  type: "prompt.notice";
2900
2743
  kind: "edits-incomplete";
2901
2744
  path?: string | undefined;
2902
- }, {}>;
2903
- export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
2904
- export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
2905
- type: "vibes.diy.section-event";
2906
- chatId: string;
2907
- promptId: string;
2908
- blockSeq: number;
2745
+ } | {
2746
+ blockId: string;
2747
+ streamId: string;
2748
+ seq: number;
2749
+ blockNr: number;
2909
2750
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2910
- blocks: ({
2911
- blockId: string;
2912
- streamId: string;
2913
- seq: number;
2914
- blockNr: number;
2915
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2916
- type: "block.begin";
2917
- } | {
2918
- blockId: string;
2919
- streamId: string;
2920
- seq: number;
2921
- blockNr: number;
2922
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2923
- type: "block.end";
2924
- stats: {
2925
- toplevel: {
2926
- lines: number;
2927
- bytes: number;
2928
- cnt?: number | undefined;
2929
- };
2930
- code: {
2931
- lines: number;
2932
- bytes: number;
2933
- cnt?: number | undefined;
2934
- };
2935
- image: {
2936
- lines: number;
2937
- bytes: number;
2938
- cnt?: number | undefined;
2939
- };
2940
- total: {
2941
- lines: number;
2942
- bytes: number;
2943
- cnt?: number | undefined;
2944
- };
2751
+ type: "block.begin";
2752
+ } | {
2753
+ blockId: string;
2754
+ streamId: string;
2755
+ seq: number;
2756
+ blockNr: number;
2757
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2758
+ type: "block.end";
2759
+ stats: {
2760
+ toplevel: {
2761
+ lines: number;
2762
+ bytes: number;
2763
+ cnt?: number | undefined;
2945
2764
  };
2946
- usage: {
2947
- given: {
2948
- prompt_tokens: number;
2949
- completion_tokens: number;
2950
- total_tokens: number;
2951
- model?: string | undefined;
2952
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2953
- reasoningEffort?: string | undefined;
2954
- }[];
2955
- calculated: {
2956
- prompt_tokens: number;
2957
- completion_tokens: number;
2958
- total_tokens: number;
2959
- model?: string | undefined;
2960
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2961
- reasoningEffort?: string | undefined;
2962
- };
2765
+ code: {
2766
+ lines: number;
2767
+ bytes: number;
2768
+ cnt?: number | undefined;
2963
2769
  };
2964
- fsRef?: ((In: {
2965
- appSlug: string;
2966
- ownerHandle?: string | undefined;
2967
- userSlug?: string | undefined;
2968
- mode: "dev" | "production";
2969
- fsId: string;
2970
- }) => import("arktype").Out<{
2971
- appSlug: string;
2972
- mode: "dev" | "production";
2973
- fsId: string;
2974
- ownerHandle: string;
2975
- }>) | undefined;
2976
- touchedPaths?: string[] | undefined;
2977
- settled?: {
2978
- reach: "companion-only" | "entry" | "none" | "server-only";
2979
- entryTouched: boolean;
2980
- touchedCount: number;
2981
- applied: boolean;
2982
- } | undefined;
2983
- saveRepair?: {
2984
- repaired: string[];
2985
- attempts: number;
2986
- } | undefined;
2987
- } | {
2988
- blockId: string;
2989
- streamId: string;
2990
- seq: number;
2991
- blockNr: number;
2992
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2993
- type: "block.stats";
2994
- stats: {
2995
- toplevel: {
2996
- lines: number;
2997
- bytes: number;
2998
- cnt?: number | undefined;
2999
- };
3000
- code: {
3001
- lines: number;
3002
- bytes: number;
3003
- cnt?: number | undefined;
3004
- };
3005
- image: {
3006
- lines: number;
3007
- bytes: number;
3008
- cnt?: number | undefined;
3009
- };
3010
- total: {
3011
- lines: number;
3012
- bytes: number;
3013
- cnt?: number | undefined;
3014
- };
2770
+ image: {
2771
+ lines: number;
2772
+ bytes: number;
2773
+ cnt?: number | undefined;
3015
2774
  };
3016
- usage: {
2775
+ total: {
2776
+ lines: number;
2777
+ bytes: number;
2778
+ cnt?: number | undefined;
2779
+ };
2780
+ };
2781
+ usage: {
2782
+ given: {
2783
+ prompt_tokens: number;
2784
+ completion_tokens: number;
2785
+ total_tokens: number;
2786
+ model?: string | undefined;
2787
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2788
+ reasoningEffort?: string | undefined;
2789
+ }[];
2790
+ calculated: {
3017
2791
  prompt_tokens: number;
3018
2792
  completion_tokens: number;
3019
2793
  total_tokens: number;
@@ -3021,112 +2795,181 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3021
2795
  role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
3022
2796
  reasoningEffort?: string | undefined;
3023
2797
  };
3024
- } | {
3025
- blockId: string;
3026
- streamId: string;
3027
- seq: number;
3028
- blockNr: number;
3029
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3030
- stats: {
2798
+ };
2799
+ fsRef?: ((In: {
2800
+ appSlug: string;
2801
+ ownerHandle?: string | undefined;
2802
+ userSlug?: string | undefined;
2803
+ mode: "dev" | "production";
2804
+ fsId: string;
2805
+ }) => import("arktype").Out<{
2806
+ appSlug: string;
2807
+ mode: "dev" | "production";
2808
+ fsId: string;
2809
+ ownerHandle: string;
2810
+ }>) | undefined;
2811
+ touchedPaths?: string[] | undefined;
2812
+ settled?: {
2813
+ reach: "companion-only" | "entry" | "none" | "server-only";
2814
+ entryTouched: boolean;
2815
+ touchedCount: number;
2816
+ applied: boolean;
2817
+ } | undefined;
2818
+ saveRepair?: {
2819
+ repaired: string[];
2820
+ attempts: number;
2821
+ } | undefined;
2822
+ } | {
2823
+ blockId: string;
2824
+ streamId: string;
2825
+ seq: number;
2826
+ blockNr: number;
2827
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2828
+ type: "block.stats";
2829
+ stats: {
2830
+ toplevel: {
3031
2831
  lines: number;
3032
2832
  bytes: number;
3033
2833
  cnt?: number | undefined;
3034
2834
  };
3035
- type: "block.image";
3036
- sectionId: string;
3037
- url?: string | undefined;
3038
- uploadId?: string | undefined;
3039
- cid?: string | undefined;
3040
- mimeType?: string | undefined;
3041
- size?: number | undefined;
3042
- docWritten?: boolean | undefined;
3043
- } | {
3044
- blockId: string;
3045
- streamId: string;
3046
- seq: number;
3047
- blockNr: number;
3048
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3049
- type: "block.code.begin";
3050
- sectionId: string;
3051
- lang: string;
3052
- path?: string | undefined;
3053
- } | {
3054
- blockId: string;
3055
- streamId: string;
3056
- seq: number;
3057
- blockNr: number;
3058
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3059
- lineNr: number;
3060
- line: string;
3061
- type: "block.code.line";
3062
- sectionId: string;
3063
- lang: string;
3064
- path?: string | undefined;
3065
- } | {
3066
- blockId: string;
3067
- streamId: string;
3068
- seq: number;
3069
- blockNr: number;
3070
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3071
- stats: {
2835
+ code: {
3072
2836
  lines: number;
3073
2837
  bytes: number;
3074
2838
  cnt?: number | undefined;
3075
2839
  };
3076
- type: "block.code.end";
3077
- sectionId: string;
3078
- lang: string;
3079
- path?: string | undefined;
3080
- } | {
3081
- blockId: string;
3082
- streamId: string;
3083
- seq: number;
3084
- blockNr: number;
3085
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3086
- type: "block.code.truncated";
3087
- sectionId: string;
3088
- lang: string;
3089
- path?: string | undefined;
3090
- reason: string;
3091
- kind: string;
3092
- truncatedAtLine: number;
3093
- errorCount: number;
3094
- } | {
3095
- blockId: string;
3096
- streamId: string;
3097
- seq: number;
3098
- blockNr: number;
3099
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3100
- type: "block.toplevel.begin";
3101
- sectionId: string;
3102
- } | {
3103
- blockId: string;
3104
- streamId: string;
3105
- seq: number;
3106
- blockNr: number;
3107
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3108
- lineNr: number;
3109
- line: string;
3110
- type: "block.toplevel.line";
3111
- sectionId: string;
3112
- } | {
3113
- blockId: string;
3114
- streamId: string;
3115
- seq: number;
3116
- blockNr: number;
3117
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3118
- stats: {
2840
+ image: {
3119
2841
  lines: number;
3120
2842
  bytes: number;
3121
2843
  cnt?: number | undefined;
3122
2844
  };
3123
- type: "block.toplevel.end";
3124
- sectionId: string;
3125
- } | {
3126
- type: "prompt.research";
3127
- version: 1;
3128
- streamId: string;
3129
- chatId: string;
2845
+ total: {
2846
+ lines: number;
2847
+ bytes: number;
2848
+ cnt?: number | undefined;
2849
+ };
2850
+ };
2851
+ usage: {
2852
+ prompt_tokens: number;
2853
+ completion_tokens: number;
2854
+ total_tokens: number;
2855
+ model?: string | undefined;
2856
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2857
+ reasoningEffort?: string | undefined;
2858
+ };
2859
+ } | {
2860
+ blockId: string;
2861
+ streamId: string;
2862
+ seq: number;
2863
+ blockNr: number;
2864
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2865
+ stats: {
2866
+ lines: number;
2867
+ bytes: number;
2868
+ cnt?: number | undefined;
2869
+ };
2870
+ type: "block.image";
2871
+ sectionId: string;
2872
+ url?: string | undefined;
2873
+ uploadId?: string | undefined;
2874
+ cid?: string | undefined;
2875
+ mimeType?: string | undefined;
2876
+ size?: number | undefined;
2877
+ docWritten?: boolean | undefined;
2878
+ } | {
2879
+ blockId: string;
2880
+ streamId: string;
2881
+ seq: number;
2882
+ blockNr: number;
2883
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2884
+ type: "block.code.begin";
2885
+ sectionId: string;
2886
+ lang: string;
2887
+ path?: string | undefined;
2888
+ } | {
2889
+ blockId: string;
2890
+ streamId: string;
2891
+ seq: number;
2892
+ blockNr: number;
2893
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2894
+ lineNr: number;
2895
+ line: string;
2896
+ type: "block.code.line";
2897
+ sectionId: string;
2898
+ lang: string;
2899
+ path?: string | undefined;
2900
+ } | {
2901
+ blockId: string;
2902
+ streamId: string;
2903
+ seq: number;
2904
+ blockNr: number;
2905
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2906
+ stats: {
2907
+ lines: number;
2908
+ bytes: number;
2909
+ cnt?: number | undefined;
2910
+ };
2911
+ type: "block.code.end";
2912
+ sectionId: string;
2913
+ lang: string;
2914
+ path?: string | undefined;
2915
+ } | {
2916
+ blockId: string;
2917
+ streamId: string;
2918
+ seq: number;
2919
+ blockNr: number;
2920
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2921
+ type: "block.code.truncated";
2922
+ sectionId: string;
2923
+ lang: string;
2924
+ path?: string | undefined;
2925
+ reason: string;
2926
+ kind: string;
2927
+ truncatedAtLine: number;
2928
+ errorCount: number;
2929
+ } | {
2930
+ blockId: string;
2931
+ streamId: string;
2932
+ seq: number;
2933
+ blockNr: number;
2934
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2935
+ type: "block.toplevel.begin";
2936
+ sectionId: string;
2937
+ } | {
2938
+ blockId: string;
2939
+ streamId: string;
2940
+ seq: number;
2941
+ blockNr: number;
2942
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2943
+ lineNr: number;
2944
+ line: string;
2945
+ type: "block.toplevel.line";
2946
+ sectionId: string;
2947
+ } | {
2948
+ blockId: string;
2949
+ streamId: string;
2950
+ seq: number;
2951
+ blockNr: number;
2952
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2953
+ stats: {
2954
+ lines: number;
2955
+ bytes: number;
2956
+ cnt?: number | undefined;
2957
+ };
2958
+ type: "block.toplevel.end";
2959
+ sectionId: string;
2960
+ }, {}>;
2961
+ export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
2962
+ export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
2963
+ type: "vibes.diy.section-event";
2964
+ chatId: string;
2965
+ promptId: string;
2966
+ blockSeq: number;
2967
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2968
+ blocks: ({
2969
+ type: "prompt.research";
2970
+ version: 1;
2971
+ streamId: string;
2972
+ chatId: string;
3130
2973
  seq: number;
3131
2974
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3132
2975
  researchId: string;
@@ -3248,6 +3091,10 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3248
3091
  name: string;
3249
3092
  };
3250
3093
  } | undefined;
3094
+ cache_control?: {
3095
+ type: "ephemeral";
3096
+ ttl?: "1h" | "5m" | undefined;
3097
+ } | undefined;
3251
3098
  response_format?: unknown;
3252
3099
  image_config?: unknown;
3253
3100
  reasoning?: {
@@ -3264,6 +3111,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3264
3111
  clientMessageId?: string | undefined;
3265
3112
  origin?: "design-repair" | undefined;
3266
3113
  agentCommit?: true | undefined;
3114
+ agentSkills?: string[] | undefined;
3267
3115
  } | {
3268
3116
  streamId: string;
3269
3117
  chatId: string;
@@ -3402,6 +3250,10 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3402
3250
  name: string;
3403
3251
  };
3404
3252
  } | undefined;
3253
+ cache_control?: {
3254
+ type: "ephemeral";
3255
+ ttl?: "1h" | "5m" | undefined;
3256
+ } | undefined;
3405
3257
  response_format?: unknown;
3406
3258
  image_config?: unknown;
3407
3259
  reasoning?: {
@@ -3561,36 +3413,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3561
3413
  type: "prompt.notice";
3562
3414
  kind: "edits-incomplete";
3563
3415
  path?: string | undefined;
3564
- })[];
3565
- initiator?: "platform" | "seed" | undefined;
3566
- }, {}>;
3567
- export type SectionEvent = typeof sectionEvent.infer;
3568
- export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
3569
- export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
3570
- type: "vibes.diy.req-get-chat-response";
3571
- historyPage?: {
3572
- limit: number;
3573
- before: {
3574
- created: string;
3575
- promptId: string;
3576
- };
3577
- } | undefined;
3578
- auth?: {
3579
- type: "clerk" | "device-id" | "guest" | "ucan";
3580
- token: string;
3581
- } | undefined;
3582
- ownerHandle: string;
3583
- appSlug: string;
3584
- chatId?: string | undefined;
3585
- promptId?: string | undefined;
3586
- usageOnly?: boolean | undefined;
3587
- }, {}>;
3588
- export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
3589
- export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
3590
- export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
3591
- blockSeq: number;
3592
- created?: string | undefined;
3593
- blocks: ({
3416
+ } | {
3594
3417
  blockId: string;
3595
3418
  streamId: string;
3596
3419
  seq: number;
@@ -3805,7 +3628,36 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3805
3628
  };
3806
3629
  type: "block.toplevel.end";
3807
3630
  sectionId: string;
3808
- } | {
3631
+ })[];
3632
+ initiator?: "platform" | "seed" | undefined;
3633
+ }, {}>;
3634
+ export type SectionEvent = typeof sectionEvent.infer;
3635
+ export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
3636
+ export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
3637
+ type: "vibes.diy.req-get-chat-response";
3638
+ historyPage?: {
3639
+ limit: number;
3640
+ before: {
3641
+ created: string;
3642
+ promptId: string;
3643
+ };
3644
+ } | undefined;
3645
+ auth?: {
3646
+ type: "clerk" | "device-id" | "guest" | "ucan";
3647
+ token: string;
3648
+ } | undefined;
3649
+ ownerHandle: string;
3650
+ appSlug: string;
3651
+ chatId?: string | undefined;
3652
+ promptId?: string | undefined;
3653
+ usageOnly?: boolean | undefined;
3654
+ }, {}>;
3655
+ export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
3656
+ export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
3657
+ export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
3658
+ blockSeq: number;
3659
+ created?: string | undefined;
3660
+ blocks: ({
3809
3661
  type: "prompt.research";
3810
3662
  version: 1;
3811
3663
  streamId: string;
@@ -3931,6 +3783,10 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3931
3783
  name: string;
3932
3784
  };
3933
3785
  } | undefined;
3786
+ cache_control?: {
3787
+ type: "ephemeral";
3788
+ ttl?: "1h" | "5m" | undefined;
3789
+ } | undefined;
3934
3790
  response_format?: unknown;
3935
3791
  image_config?: unknown;
3936
3792
  reasoning?: {
@@ -3947,6 +3803,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3947
3803
  clientMessageId?: string | undefined;
3948
3804
  origin?: "design-repair" | undefined;
3949
3805
  agentCommit?: true | undefined;
3806
+ agentSkills?: string[] | undefined;
3950
3807
  } | {
3951
3808
  streamId: string;
3952
3809
  chatId: string;
@@ -4085,6 +3942,10 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
4085
3942
  name: string;
4086
3943
  };
4087
3944
  } | undefined;
3945
+ cache_control?: {
3946
+ type: "ephemeral";
3947
+ ttl?: "1h" | "5m" | undefined;
3948
+ } | undefined;
4088
3949
  response_format?: unknown;
4089
3950
  image_config?: unknown;
4090
3951
  reasoning?: {
@@ -4244,145 +4105,52 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
4244
4105
  type: "prompt.notice";
4245
4106
  kind: "edits-incomplete";
4246
4107
  path?: string | undefined;
4247
- })[];
4248
- }, {}>;
4249
- export type ResChatResponseSection = typeof resChatResponseSection.infer;
4250
- export declare const promptUsage: import("arktype/internal/variants/object.ts").ObjectType<{
4251
- inputTokens: number | null;
4252
- outputTokens: number | null;
4253
- cachedTokens: number | null;
4254
- costUsd: number | null;
4255
- lane: "agent-build" | "agent-conversation" | "codegen" | null;
4256
- model?: string | undefined;
4257
- agentDispatched?: boolean | undefined;
4258
- research?: boolean | undefined;
4259
- frontendDraft?: boolean | undefined;
4260
- directCommit?: boolean | undefined;
4261
- gatewayRounds?: number | undefined;
4262
- rounds?: {
4263
- model?: string | undefined;
4264
- role?: string | undefined;
4265
- costUsd: number | null;
4266
- }[] | undefined;
4267
- fsId?: string | undefined;
4268
- }, {}>;
4269
- export type PromptUsage = typeof promptUsage.infer;
4270
- export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{
4271
- initiator?: "platform" | "seed" | undefined;
4272
- chatId: string;
4273
- promptId: string;
4274
- created: string;
4275
- fsId?: string | undefined;
4276
- sections: {
4277
- blockSeq: number;
4278
- created?: string | undefined;
4279
- blocks: ({
4280
- blockId: string;
4281
- streamId: string;
4282
- seq: number;
4283
- blockNr: number;
4284
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4285
- type: "block.begin";
4286
- } | {
4287
- blockId: string;
4288
- streamId: string;
4289
- seq: number;
4290
- blockNr: number;
4291
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4292
- type: "block.end";
4293
- stats: {
4294
- toplevel: {
4295
- lines: number;
4296
- bytes: number;
4297
- cnt?: number | undefined;
4298
- };
4299
- code: {
4300
- lines: number;
4301
- bytes: number;
4302
- cnt?: number | undefined;
4303
- };
4304
- image: {
4305
- lines: number;
4306
- bytes: number;
4307
- cnt?: number | undefined;
4308
- };
4309
- total: {
4310
- lines: number;
4311
- bytes: number;
4312
- cnt?: number | undefined;
4313
- };
4108
+ } | {
4109
+ blockId: string;
4110
+ streamId: string;
4111
+ seq: number;
4112
+ blockNr: number;
4113
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4114
+ type: "block.begin";
4115
+ } | {
4116
+ blockId: string;
4117
+ streamId: string;
4118
+ seq: number;
4119
+ blockNr: number;
4120
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4121
+ type: "block.end";
4122
+ stats: {
4123
+ toplevel: {
4124
+ lines: number;
4125
+ bytes: number;
4126
+ cnt?: number | undefined;
4314
4127
  };
4315
- usage: {
4316
- given: {
4317
- prompt_tokens: number;
4318
- completion_tokens: number;
4319
- total_tokens: number;
4320
- model?: string | undefined;
4321
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4322
- reasoningEffort?: string | undefined;
4323
- }[];
4324
- calculated: {
4325
- prompt_tokens: number;
4326
- completion_tokens: number;
4327
- total_tokens: number;
4328
- model?: string | undefined;
4329
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4330
- reasoningEffort?: string | undefined;
4331
- };
4128
+ code: {
4129
+ lines: number;
4130
+ bytes: number;
4131
+ cnt?: number | undefined;
4332
4132
  };
4333
- fsRef?: ((In: {
4334
- appSlug: string;
4335
- ownerHandle?: string | undefined;
4336
- userSlug?: string | undefined;
4337
- mode: "dev" | "production";
4338
- fsId: string;
4339
- }) => import("arktype").Out<{
4340
- appSlug: string;
4341
- mode: "dev" | "production";
4342
- fsId: string;
4343
- ownerHandle: string;
4344
- }>) | undefined;
4345
- touchedPaths?: string[] | undefined;
4346
- settled?: {
4347
- reach: "companion-only" | "entry" | "none" | "server-only";
4348
- entryTouched: boolean;
4349
- touchedCount: number;
4350
- applied: boolean;
4351
- } | undefined;
4352
- saveRepair?: {
4353
- repaired: string[];
4354
- attempts: number;
4355
- } | undefined;
4356
- } | {
4357
- blockId: string;
4358
- streamId: string;
4359
- seq: number;
4360
- blockNr: number;
4361
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4362
- type: "block.stats";
4363
- stats: {
4364
- toplevel: {
4365
- lines: number;
4366
- bytes: number;
4367
- cnt?: number | undefined;
4368
- };
4369
- code: {
4370
- lines: number;
4371
- bytes: number;
4372
- cnt?: number | undefined;
4373
- };
4374
- image: {
4375
- lines: number;
4376
- bytes: number;
4377
- cnt?: number | undefined;
4378
- };
4379
- total: {
4380
- lines: number;
4381
- bytes: number;
4382
- cnt?: number | undefined;
4383
- };
4133
+ image: {
4134
+ lines: number;
4135
+ bytes: number;
4136
+ cnt?: number | undefined;
4384
4137
  };
4385
- usage: {
4138
+ total: {
4139
+ lines: number;
4140
+ bytes: number;
4141
+ cnt?: number | undefined;
4142
+ };
4143
+ };
4144
+ usage: {
4145
+ given: {
4146
+ prompt_tokens: number;
4147
+ completion_tokens: number;
4148
+ total_tokens: number;
4149
+ model?: string | undefined;
4150
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4151
+ reasoningEffort?: string | undefined;
4152
+ }[];
4153
+ calculated: {
4386
4154
  prompt_tokens: number;
4387
4155
  completion_tokens: number;
4388
4156
  total_tokens: number;
@@ -4390,108 +4158,201 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4390
4158
  role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4391
4159
  reasoningEffort?: string | undefined;
4392
4160
  };
4393
- } | {
4394
- blockId: string;
4395
- streamId: string;
4396
- seq: number;
4397
- blockNr: number;
4398
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4399
- stats: {
4161
+ };
4162
+ fsRef?: ((In: {
4163
+ appSlug: string;
4164
+ ownerHandle?: string | undefined;
4165
+ userSlug?: string | undefined;
4166
+ mode: "dev" | "production";
4167
+ fsId: string;
4168
+ }) => import("arktype").Out<{
4169
+ appSlug: string;
4170
+ mode: "dev" | "production";
4171
+ fsId: string;
4172
+ ownerHandle: string;
4173
+ }>) | undefined;
4174
+ touchedPaths?: string[] | undefined;
4175
+ settled?: {
4176
+ reach: "companion-only" | "entry" | "none" | "server-only";
4177
+ entryTouched: boolean;
4178
+ touchedCount: number;
4179
+ applied: boolean;
4180
+ } | undefined;
4181
+ saveRepair?: {
4182
+ repaired: string[];
4183
+ attempts: number;
4184
+ } | undefined;
4185
+ } | {
4186
+ blockId: string;
4187
+ streamId: string;
4188
+ seq: number;
4189
+ blockNr: number;
4190
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4191
+ type: "block.stats";
4192
+ stats: {
4193
+ toplevel: {
4400
4194
  lines: number;
4401
4195
  bytes: number;
4402
4196
  cnt?: number | undefined;
4403
4197
  };
4404
- type: "block.image";
4405
- sectionId: string;
4406
- url?: string | undefined;
4407
- uploadId?: string | undefined;
4408
- cid?: string | undefined;
4409
- mimeType?: string | undefined;
4410
- size?: number | undefined;
4411
- docWritten?: boolean | undefined;
4412
- } | {
4413
- blockId: string;
4414
- streamId: string;
4415
- seq: number;
4416
- blockNr: number;
4417
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4418
- type: "block.code.begin";
4419
- sectionId: string;
4420
- lang: string;
4421
- path?: string | undefined;
4422
- } | {
4423
- blockId: string;
4424
- streamId: string;
4425
- seq: number;
4426
- blockNr: number;
4427
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4428
- lineNr: number;
4429
- line: string;
4430
- type: "block.code.line";
4431
- sectionId: string;
4432
- lang: string;
4433
- path?: string | undefined;
4434
- } | {
4435
- blockId: string;
4436
- streamId: string;
4437
- seq: number;
4438
- blockNr: number;
4439
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4440
- stats: {
4198
+ code: {
4441
4199
  lines: number;
4442
4200
  bytes: number;
4443
4201
  cnt?: number | undefined;
4444
4202
  };
4445
- type: "block.code.end";
4446
- sectionId: string;
4447
- lang: string;
4448
- path?: string | undefined;
4449
- } | {
4450
- blockId: string;
4451
- streamId: string;
4452
- seq: number;
4453
- blockNr: number;
4454
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4455
- type: "block.code.truncated";
4456
- sectionId: string;
4457
- lang: string;
4458
- path?: string | undefined;
4459
- reason: string;
4460
- kind: string;
4461
- truncatedAtLine: number;
4462
- errorCount: number;
4463
- } | {
4464
- blockId: string;
4465
- streamId: string;
4466
- seq: number;
4467
- blockNr: number;
4468
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4469
- type: "block.toplevel.begin";
4470
- sectionId: string;
4471
- } | {
4472
- blockId: string;
4473
- streamId: string;
4474
- seq: number;
4475
- blockNr: number;
4476
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4477
- lineNr: number;
4478
- line: string;
4479
- type: "block.toplevel.line";
4480
- sectionId: string;
4481
- } | {
4482
- blockId: string;
4483
- streamId: string;
4484
- seq: number;
4485
- blockNr: number;
4486
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4487
- stats: {
4203
+ image: {
4488
4204
  lines: number;
4489
4205
  bytes: number;
4490
4206
  cnt?: number | undefined;
4491
4207
  };
4492
- type: "block.toplevel.end";
4493
- sectionId: string;
4494
- } | {
4208
+ total: {
4209
+ lines: number;
4210
+ bytes: number;
4211
+ cnt?: number | undefined;
4212
+ };
4213
+ };
4214
+ usage: {
4215
+ prompt_tokens: number;
4216
+ completion_tokens: number;
4217
+ total_tokens: number;
4218
+ model?: string | undefined;
4219
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4220
+ reasoningEffort?: string | undefined;
4221
+ };
4222
+ } | {
4223
+ blockId: string;
4224
+ streamId: string;
4225
+ seq: number;
4226
+ blockNr: number;
4227
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4228
+ stats: {
4229
+ lines: number;
4230
+ bytes: number;
4231
+ cnt?: number | undefined;
4232
+ };
4233
+ type: "block.image";
4234
+ sectionId: string;
4235
+ url?: string | undefined;
4236
+ uploadId?: string | undefined;
4237
+ cid?: string | undefined;
4238
+ mimeType?: string | undefined;
4239
+ size?: number | undefined;
4240
+ docWritten?: boolean | undefined;
4241
+ } | {
4242
+ blockId: string;
4243
+ streamId: string;
4244
+ seq: number;
4245
+ blockNr: number;
4246
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4247
+ type: "block.code.begin";
4248
+ sectionId: string;
4249
+ lang: string;
4250
+ path?: string | undefined;
4251
+ } | {
4252
+ blockId: string;
4253
+ streamId: string;
4254
+ seq: number;
4255
+ blockNr: number;
4256
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4257
+ lineNr: number;
4258
+ line: string;
4259
+ type: "block.code.line";
4260
+ sectionId: string;
4261
+ lang: string;
4262
+ path?: string | undefined;
4263
+ } | {
4264
+ blockId: string;
4265
+ streamId: string;
4266
+ seq: number;
4267
+ blockNr: number;
4268
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4269
+ stats: {
4270
+ lines: number;
4271
+ bytes: number;
4272
+ cnt?: number | undefined;
4273
+ };
4274
+ type: "block.code.end";
4275
+ sectionId: string;
4276
+ lang: string;
4277
+ path?: string | undefined;
4278
+ } | {
4279
+ blockId: string;
4280
+ streamId: string;
4281
+ seq: number;
4282
+ blockNr: number;
4283
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4284
+ type: "block.code.truncated";
4285
+ sectionId: string;
4286
+ lang: string;
4287
+ path?: string | undefined;
4288
+ reason: string;
4289
+ kind: string;
4290
+ truncatedAtLine: number;
4291
+ errorCount: number;
4292
+ } | {
4293
+ blockId: string;
4294
+ streamId: string;
4295
+ seq: number;
4296
+ blockNr: number;
4297
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4298
+ type: "block.toplevel.begin";
4299
+ sectionId: string;
4300
+ } | {
4301
+ blockId: string;
4302
+ streamId: string;
4303
+ seq: number;
4304
+ blockNr: number;
4305
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4306
+ lineNr: number;
4307
+ line: string;
4308
+ type: "block.toplevel.line";
4309
+ sectionId: string;
4310
+ } | {
4311
+ blockId: string;
4312
+ streamId: string;
4313
+ seq: number;
4314
+ blockNr: number;
4315
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4316
+ stats: {
4317
+ lines: number;
4318
+ bytes: number;
4319
+ cnt?: number | undefined;
4320
+ };
4321
+ type: "block.toplevel.end";
4322
+ sectionId: string;
4323
+ })[];
4324
+ }, {}>;
4325
+ export type ResChatResponseSection = typeof resChatResponseSection.infer;
4326
+ export declare const promptUsage: import("arktype/internal/variants/object.ts").ObjectType<{
4327
+ inputTokens: number | null;
4328
+ outputTokens: number | null;
4329
+ cachedTokens: number | null;
4330
+ costUsd: number | null;
4331
+ lane: "agent-build" | "agent-conversation" | "codegen" | null;
4332
+ model?: string | undefined;
4333
+ agentDispatched?: boolean | undefined;
4334
+ research?: boolean | undefined;
4335
+ frontendDraft?: boolean | undefined;
4336
+ directCommit?: boolean | undefined;
4337
+ gatewayRounds?: number | undefined;
4338
+ rounds?: {
4339
+ model?: string | undefined;
4340
+ role?: string | undefined;
4341
+ costUsd: number | null;
4342
+ }[] | undefined;
4343
+ fsId?: string | undefined;
4344
+ }, {}>;
4345
+ export type PromptUsage = typeof promptUsage.infer;
4346
+ export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{
4347
+ initiator?: "platform" | "seed" | undefined;
4348
+ chatId: string;
4349
+ promptId: string;
4350
+ created: string;
4351
+ fsId?: string | undefined;
4352
+ sections: {
4353
+ blockSeq: number;
4354
+ created?: string | undefined;
4355
+ blocks: ({
4495
4356
  type: "prompt.research";
4496
4357
  version: 1;
4497
4358
  streamId: string;
@@ -4617,6 +4478,10 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4617
4478
  name: string;
4618
4479
  };
4619
4480
  } | undefined;
4481
+ cache_control?: {
4482
+ type: "ephemeral";
4483
+ ttl?: "1h" | "5m" | undefined;
4484
+ } | undefined;
4620
4485
  response_format?: unknown;
4621
4486
  image_config?: unknown;
4622
4487
  reasoning?: {
@@ -4633,6 +4498,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4633
4498
  clientMessageId?: string | undefined;
4634
4499
  origin?: "design-repair" | undefined;
4635
4500
  agentCommit?: true | undefined;
4501
+ agentSkills?: string[] | undefined;
4636
4502
  } | {
4637
4503
  streamId: string;
4638
4504
  chatId: string;
@@ -4771,6 +4637,10 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4771
4637
  name: string;
4772
4638
  };
4773
4639
  } | undefined;
4640
+ cache_control?: {
4641
+ type: "ephemeral";
4642
+ ttl?: "1h" | "5m" | undefined;
4643
+ } | undefined;
4774
4644
  response_format?: unknown;
4775
4645
  image_config?: unknown;
4776
4646
  reasoning?: {
@@ -4913,23 +4783,238 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4913
4783
  } | {
4914
4784
  type: "prompt.status";
4915
4785
  streamId: string;
4916
- chatId: string;
4786
+ chatId: string;
4787
+ seq: number;
4788
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4789
+ round: number;
4790
+ maxRounds: number;
4791
+ tools: {
4792
+ name: string;
4793
+ path?: string | undefined;
4794
+ }[];
4795
+ } | {
4796
+ streamId: string;
4797
+ chatId: string;
4798
+ seq: number;
4799
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4800
+ type: "prompt.notice";
4801
+ kind: "edits-incomplete";
4802
+ path?: string | undefined;
4803
+ } | {
4804
+ blockId: string;
4805
+ streamId: string;
4806
+ seq: number;
4807
+ blockNr: number;
4808
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4809
+ type: "block.begin";
4810
+ } | {
4811
+ blockId: string;
4812
+ streamId: string;
4813
+ seq: number;
4814
+ blockNr: number;
4815
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4816
+ type: "block.end";
4817
+ stats: {
4818
+ toplevel: {
4819
+ lines: number;
4820
+ bytes: number;
4821
+ cnt?: number | undefined;
4822
+ };
4823
+ code: {
4824
+ lines: number;
4825
+ bytes: number;
4826
+ cnt?: number | undefined;
4827
+ };
4828
+ image: {
4829
+ lines: number;
4830
+ bytes: number;
4831
+ cnt?: number | undefined;
4832
+ };
4833
+ total: {
4834
+ lines: number;
4835
+ bytes: number;
4836
+ cnt?: number | undefined;
4837
+ };
4838
+ };
4839
+ usage: {
4840
+ given: {
4841
+ prompt_tokens: number;
4842
+ completion_tokens: number;
4843
+ total_tokens: number;
4844
+ model?: string | undefined;
4845
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4846
+ reasoningEffort?: string | undefined;
4847
+ }[];
4848
+ calculated: {
4849
+ prompt_tokens: number;
4850
+ completion_tokens: number;
4851
+ total_tokens: number;
4852
+ model?: string | undefined;
4853
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4854
+ reasoningEffort?: string | undefined;
4855
+ };
4856
+ };
4857
+ fsRef?: ((In: {
4858
+ appSlug: string;
4859
+ ownerHandle?: string | undefined;
4860
+ userSlug?: string | undefined;
4861
+ mode: "dev" | "production";
4862
+ fsId: string;
4863
+ }) => import("arktype").Out<{
4864
+ appSlug: string;
4865
+ mode: "dev" | "production";
4866
+ fsId: string;
4867
+ ownerHandle: string;
4868
+ }>) | undefined;
4869
+ touchedPaths?: string[] | undefined;
4870
+ settled?: {
4871
+ reach: "companion-only" | "entry" | "none" | "server-only";
4872
+ entryTouched: boolean;
4873
+ touchedCount: number;
4874
+ applied: boolean;
4875
+ } | undefined;
4876
+ saveRepair?: {
4877
+ repaired: string[];
4878
+ attempts: number;
4879
+ } | undefined;
4880
+ } | {
4881
+ blockId: string;
4882
+ streamId: string;
4883
+ seq: number;
4884
+ blockNr: number;
4885
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4886
+ type: "block.stats";
4887
+ stats: {
4888
+ toplevel: {
4889
+ lines: number;
4890
+ bytes: number;
4891
+ cnt?: number | undefined;
4892
+ };
4893
+ code: {
4894
+ lines: number;
4895
+ bytes: number;
4896
+ cnt?: number | undefined;
4897
+ };
4898
+ image: {
4899
+ lines: number;
4900
+ bytes: number;
4901
+ cnt?: number | undefined;
4902
+ };
4903
+ total: {
4904
+ lines: number;
4905
+ bytes: number;
4906
+ cnt?: number | undefined;
4907
+ };
4908
+ };
4909
+ usage: {
4910
+ prompt_tokens: number;
4911
+ completion_tokens: number;
4912
+ total_tokens: number;
4913
+ model?: string | undefined;
4914
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4915
+ reasoningEffort?: string | undefined;
4916
+ };
4917
+ } | {
4918
+ blockId: string;
4919
+ streamId: string;
4920
+ seq: number;
4921
+ blockNr: number;
4922
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4923
+ stats: {
4924
+ lines: number;
4925
+ bytes: number;
4926
+ cnt?: number | undefined;
4927
+ };
4928
+ type: "block.image";
4929
+ sectionId: string;
4930
+ url?: string | undefined;
4931
+ uploadId?: string | undefined;
4932
+ cid?: string | undefined;
4933
+ mimeType?: string | undefined;
4934
+ size?: number | undefined;
4935
+ docWritten?: boolean | undefined;
4936
+ } | {
4937
+ blockId: string;
4938
+ streamId: string;
4939
+ seq: number;
4940
+ blockNr: number;
4941
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4942
+ type: "block.code.begin";
4943
+ sectionId: string;
4944
+ lang: string;
4945
+ path?: string | undefined;
4946
+ } | {
4947
+ blockId: string;
4948
+ streamId: string;
4949
+ seq: number;
4950
+ blockNr: number;
4951
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4952
+ lineNr: number;
4953
+ line: string;
4954
+ type: "block.code.line";
4955
+ sectionId: string;
4956
+ lang: string;
4957
+ path?: string | undefined;
4958
+ } | {
4959
+ blockId: string;
4960
+ streamId: string;
4961
+ seq: number;
4962
+ blockNr: number;
4963
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4964
+ stats: {
4965
+ lines: number;
4966
+ bytes: number;
4967
+ cnt?: number | undefined;
4968
+ };
4969
+ type: "block.code.end";
4970
+ sectionId: string;
4971
+ lang: string;
4972
+ path?: string | undefined;
4973
+ } | {
4974
+ blockId: string;
4975
+ streamId: string;
4976
+ seq: number;
4977
+ blockNr: number;
4978
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4979
+ type: "block.code.truncated";
4980
+ sectionId: string;
4981
+ lang: string;
4982
+ path?: string | undefined;
4983
+ reason: string;
4984
+ kind: string;
4985
+ truncatedAtLine: number;
4986
+ errorCount: number;
4987
+ } | {
4988
+ blockId: string;
4989
+ streamId: string;
4990
+ seq: number;
4991
+ blockNr: number;
4992
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4993
+ type: "block.toplevel.begin";
4994
+ sectionId: string;
4995
+ } | {
4996
+ blockId: string;
4997
+ streamId: string;
4917
4998
  seq: number;
4999
+ blockNr: number;
4918
5000
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4919
- round: number;
4920
- maxRounds: number;
4921
- tools: {
4922
- name: string;
4923
- path?: string | undefined;
4924
- }[];
5001
+ lineNr: number;
5002
+ line: string;
5003
+ type: "block.toplevel.line";
5004
+ sectionId: string;
4925
5005
  } | {
5006
+ blockId: string;
4926
5007
  streamId: string;
4927
- chatId: string;
4928
5008
  seq: number;
5009
+ blockNr: number;
4929
5010
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4930
- type: "prompt.notice";
4931
- kind: "edits-incomplete";
4932
- path?: string | undefined;
5011
+ stats: {
5012
+ lines: number;
5013
+ bytes: number;
5014
+ cnt?: number | undefined;
5015
+ };
5016
+ type: "block.toplevel.end";
5017
+ sectionId: string;
4933
5018
  })[];
4934
5019
  }[];
4935
5020
  usage?: {
@@ -4959,237 +5044,22 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
4959
5044
  before?: {
4960
5045
  created: string;
4961
5046
  promptId: string;
4962
- } | undefined;
4963
- hasMore: boolean;
4964
- } | undefined;
4965
- chatId?: string | undefined;
4966
- ownerHandle: string;
4967
- appSlug: string;
4968
- turns: {
4969
- initiator?: "platform" | "seed" | undefined;
4970
- chatId: string;
4971
- promptId: string;
4972
- created: string;
4973
- fsId?: string | undefined;
4974
- sections: {
4975
- blockSeq: number;
4976
- created?: string | undefined;
4977
- blocks: ({
4978
- blockId: string;
4979
- streamId: string;
4980
- seq: number;
4981
- blockNr: number;
4982
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4983
- type: "block.begin";
4984
- } | {
4985
- blockId: string;
4986
- streamId: string;
4987
- seq: number;
4988
- blockNr: number;
4989
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4990
- type: "block.end";
4991
- stats: {
4992
- toplevel: {
4993
- lines: number;
4994
- bytes: number;
4995
- cnt?: number | undefined;
4996
- };
4997
- code: {
4998
- lines: number;
4999
- bytes: number;
5000
- cnt?: number | undefined;
5001
- };
5002
- image: {
5003
- lines: number;
5004
- bytes: number;
5005
- cnt?: number | undefined;
5006
- };
5007
- total: {
5008
- lines: number;
5009
- bytes: number;
5010
- cnt?: number | undefined;
5011
- };
5012
- };
5013
- usage: {
5014
- given: {
5015
- prompt_tokens: number;
5016
- completion_tokens: number;
5017
- total_tokens: number;
5018
- model?: string | undefined;
5019
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5020
- reasoningEffort?: string | undefined;
5021
- }[];
5022
- calculated: {
5023
- prompt_tokens: number;
5024
- completion_tokens: number;
5025
- total_tokens: number;
5026
- model?: string | undefined;
5027
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5028
- reasoningEffort?: string | undefined;
5029
- };
5030
- };
5031
- fsRef?: ((In: {
5032
- appSlug: string;
5033
- ownerHandle?: string | undefined;
5034
- userSlug?: string | undefined;
5035
- mode: "dev" | "production";
5036
- fsId: string;
5037
- }) => import("arktype").Out<{
5038
- appSlug: string;
5039
- mode: "dev" | "production";
5040
- fsId: string;
5041
- ownerHandle: string;
5042
- }>) | undefined;
5043
- touchedPaths?: string[] | undefined;
5044
- settled?: {
5045
- reach: "companion-only" | "entry" | "none" | "server-only";
5046
- entryTouched: boolean;
5047
- touchedCount: number;
5048
- applied: boolean;
5049
- } | undefined;
5050
- saveRepair?: {
5051
- repaired: string[];
5052
- attempts: number;
5053
- } | undefined;
5054
- } | {
5055
- blockId: string;
5056
- streamId: string;
5057
- seq: number;
5058
- blockNr: number;
5059
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5060
- type: "block.stats";
5061
- stats: {
5062
- toplevel: {
5063
- lines: number;
5064
- bytes: number;
5065
- cnt?: number | undefined;
5066
- };
5067
- code: {
5068
- lines: number;
5069
- bytes: number;
5070
- cnt?: number | undefined;
5071
- };
5072
- image: {
5073
- lines: number;
5074
- bytes: number;
5075
- cnt?: number | undefined;
5076
- };
5077
- total: {
5078
- lines: number;
5079
- bytes: number;
5080
- cnt?: number | undefined;
5081
- };
5082
- };
5083
- usage: {
5084
- prompt_tokens: number;
5085
- completion_tokens: number;
5086
- total_tokens: number;
5087
- model?: string | undefined;
5088
- role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5089
- reasoningEffort?: string | undefined;
5090
- };
5091
- } | {
5092
- blockId: string;
5093
- streamId: string;
5094
- seq: number;
5095
- blockNr: number;
5096
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5097
- stats: {
5098
- lines: number;
5099
- bytes: number;
5100
- cnt?: number | undefined;
5101
- };
5102
- type: "block.image";
5103
- sectionId: string;
5104
- url?: string | undefined;
5105
- uploadId?: string | undefined;
5106
- cid?: string | undefined;
5107
- mimeType?: string | undefined;
5108
- size?: number | undefined;
5109
- docWritten?: boolean | undefined;
5110
- } | {
5111
- blockId: string;
5112
- streamId: string;
5113
- seq: number;
5114
- blockNr: number;
5115
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5116
- type: "block.code.begin";
5117
- sectionId: string;
5118
- lang: string;
5119
- path?: string | undefined;
5120
- } | {
5121
- blockId: string;
5122
- streamId: string;
5123
- seq: number;
5124
- blockNr: number;
5125
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5126
- lineNr: number;
5127
- line: string;
5128
- type: "block.code.line";
5129
- sectionId: string;
5130
- lang: string;
5131
- path?: string | undefined;
5132
- } | {
5133
- blockId: string;
5134
- streamId: string;
5135
- seq: number;
5136
- blockNr: number;
5137
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5138
- stats: {
5139
- lines: number;
5140
- bytes: number;
5141
- cnt?: number | undefined;
5142
- };
5143
- type: "block.code.end";
5144
- sectionId: string;
5145
- lang: string;
5146
- path?: string | undefined;
5147
- } | {
5148
- blockId: string;
5149
- streamId: string;
5150
- seq: number;
5151
- blockNr: number;
5152
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5153
- type: "block.code.truncated";
5154
- sectionId: string;
5155
- lang: string;
5156
- path?: string | undefined;
5157
- reason: string;
5158
- kind: string;
5159
- truncatedAtLine: number;
5160
- errorCount: number;
5161
- } | {
5162
- blockId: string;
5163
- streamId: string;
5164
- seq: number;
5165
- blockNr: number;
5166
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5167
- type: "block.toplevel.begin";
5168
- sectionId: string;
5169
- } | {
5170
- blockId: string;
5171
- streamId: string;
5172
- seq: number;
5173
- blockNr: number;
5174
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5175
- lineNr: number;
5176
- line: string;
5177
- type: "block.toplevel.line";
5178
- sectionId: string;
5179
- } | {
5180
- blockId: string;
5181
- streamId: string;
5182
- seq: number;
5183
- blockNr: number;
5184
- timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5185
- stats: {
5186
- lines: number;
5187
- bytes: number;
5188
- cnt?: number | undefined;
5189
- };
5190
- type: "block.toplevel.end";
5191
- sectionId: string;
5192
- } | {
5047
+ } | undefined;
5048
+ hasMore: boolean;
5049
+ } | undefined;
5050
+ chatId?: string | undefined;
5051
+ ownerHandle: string;
5052
+ appSlug: string;
5053
+ turns: {
5054
+ initiator?: "platform" | "seed" | undefined;
5055
+ chatId: string;
5056
+ promptId: string;
5057
+ created: string;
5058
+ fsId?: string | undefined;
5059
+ sections: {
5060
+ blockSeq: number;
5061
+ created?: string | undefined;
5062
+ blocks: ({
5193
5063
  type: "prompt.research";
5194
5064
  version: 1;
5195
5065
  streamId: string;
@@ -5315,6 +5185,10 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5315
5185
  name: string;
5316
5186
  };
5317
5187
  } | undefined;
5188
+ cache_control?: {
5189
+ type: "ephemeral";
5190
+ ttl?: "1h" | "5m" | undefined;
5191
+ } | undefined;
5318
5192
  response_format?: unknown;
5319
5193
  image_config?: unknown;
5320
5194
  reasoning?: {
@@ -5331,6 +5205,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5331
5205
  clientMessageId?: string | undefined;
5332
5206
  origin?: "design-repair" | undefined;
5333
5207
  agentCommit?: true | undefined;
5208
+ agentSkills?: string[] | undefined;
5334
5209
  } | {
5335
5210
  streamId: string;
5336
5211
  chatId: string;
@@ -5469,6 +5344,10 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5469
5344
  name: string;
5470
5345
  };
5471
5346
  } | undefined;
5347
+ cache_control?: {
5348
+ type: "ephemeral";
5349
+ ttl?: "1h" | "5m" | undefined;
5350
+ } | undefined;
5472
5351
  response_format?: unknown;
5473
5352
  image_config?: unknown;
5474
5353
  reasoning?: {
@@ -5628,6 +5507,221 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5628
5507
  type: "prompt.notice";
5629
5508
  kind: "edits-incomplete";
5630
5509
  path?: string | undefined;
5510
+ } | {
5511
+ blockId: string;
5512
+ streamId: string;
5513
+ seq: number;
5514
+ blockNr: number;
5515
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5516
+ type: "block.begin";
5517
+ } | {
5518
+ blockId: string;
5519
+ streamId: string;
5520
+ seq: number;
5521
+ blockNr: number;
5522
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5523
+ type: "block.end";
5524
+ stats: {
5525
+ toplevel: {
5526
+ lines: number;
5527
+ bytes: number;
5528
+ cnt?: number | undefined;
5529
+ };
5530
+ code: {
5531
+ lines: number;
5532
+ bytes: number;
5533
+ cnt?: number | undefined;
5534
+ };
5535
+ image: {
5536
+ lines: number;
5537
+ bytes: number;
5538
+ cnt?: number | undefined;
5539
+ };
5540
+ total: {
5541
+ lines: number;
5542
+ bytes: number;
5543
+ cnt?: number | undefined;
5544
+ };
5545
+ };
5546
+ usage: {
5547
+ given: {
5548
+ prompt_tokens: number;
5549
+ completion_tokens: number;
5550
+ total_tokens: number;
5551
+ model?: string | undefined;
5552
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5553
+ reasoningEffort?: string | undefined;
5554
+ }[];
5555
+ calculated: {
5556
+ prompt_tokens: number;
5557
+ completion_tokens: number;
5558
+ total_tokens: number;
5559
+ model?: string | undefined;
5560
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5561
+ reasoningEffort?: string | undefined;
5562
+ };
5563
+ };
5564
+ fsRef?: ((In: {
5565
+ appSlug: string;
5566
+ ownerHandle?: string | undefined;
5567
+ userSlug?: string | undefined;
5568
+ mode: "dev" | "production";
5569
+ fsId: string;
5570
+ }) => import("arktype").Out<{
5571
+ appSlug: string;
5572
+ mode: "dev" | "production";
5573
+ fsId: string;
5574
+ ownerHandle: string;
5575
+ }>) | undefined;
5576
+ touchedPaths?: string[] | undefined;
5577
+ settled?: {
5578
+ reach: "companion-only" | "entry" | "none" | "server-only";
5579
+ entryTouched: boolean;
5580
+ touchedCount: number;
5581
+ applied: boolean;
5582
+ } | undefined;
5583
+ saveRepair?: {
5584
+ repaired: string[];
5585
+ attempts: number;
5586
+ } | undefined;
5587
+ } | {
5588
+ blockId: string;
5589
+ streamId: string;
5590
+ seq: number;
5591
+ blockNr: number;
5592
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5593
+ type: "block.stats";
5594
+ stats: {
5595
+ toplevel: {
5596
+ lines: number;
5597
+ bytes: number;
5598
+ cnt?: number | undefined;
5599
+ };
5600
+ code: {
5601
+ lines: number;
5602
+ bytes: number;
5603
+ cnt?: number | undefined;
5604
+ };
5605
+ image: {
5606
+ lines: number;
5607
+ bytes: number;
5608
+ cnt?: number | undefined;
5609
+ };
5610
+ total: {
5611
+ lines: number;
5612
+ bytes: number;
5613
+ cnt?: number | undefined;
5614
+ };
5615
+ };
5616
+ usage: {
5617
+ prompt_tokens: number;
5618
+ completion_tokens: number;
5619
+ total_tokens: number;
5620
+ model?: string | undefined;
5621
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5622
+ reasoningEffort?: string | undefined;
5623
+ };
5624
+ } | {
5625
+ blockId: string;
5626
+ streamId: string;
5627
+ seq: number;
5628
+ blockNr: number;
5629
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5630
+ stats: {
5631
+ lines: number;
5632
+ bytes: number;
5633
+ cnt?: number | undefined;
5634
+ };
5635
+ type: "block.image";
5636
+ sectionId: string;
5637
+ url?: string | undefined;
5638
+ uploadId?: string | undefined;
5639
+ cid?: string | undefined;
5640
+ mimeType?: string | undefined;
5641
+ size?: number | undefined;
5642
+ docWritten?: boolean | undefined;
5643
+ } | {
5644
+ blockId: string;
5645
+ streamId: string;
5646
+ seq: number;
5647
+ blockNr: number;
5648
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5649
+ type: "block.code.begin";
5650
+ sectionId: string;
5651
+ lang: string;
5652
+ path?: string | undefined;
5653
+ } | {
5654
+ blockId: string;
5655
+ streamId: string;
5656
+ seq: number;
5657
+ blockNr: number;
5658
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5659
+ lineNr: number;
5660
+ line: string;
5661
+ type: "block.code.line";
5662
+ sectionId: string;
5663
+ lang: string;
5664
+ path?: string | undefined;
5665
+ } | {
5666
+ blockId: string;
5667
+ streamId: string;
5668
+ seq: number;
5669
+ blockNr: number;
5670
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5671
+ stats: {
5672
+ lines: number;
5673
+ bytes: number;
5674
+ cnt?: number | undefined;
5675
+ };
5676
+ type: "block.code.end";
5677
+ sectionId: string;
5678
+ lang: string;
5679
+ path?: string | undefined;
5680
+ } | {
5681
+ blockId: string;
5682
+ streamId: string;
5683
+ seq: number;
5684
+ blockNr: number;
5685
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5686
+ type: "block.code.truncated";
5687
+ sectionId: string;
5688
+ lang: string;
5689
+ path?: string | undefined;
5690
+ reason: string;
5691
+ kind: string;
5692
+ truncatedAtLine: number;
5693
+ errorCount: number;
5694
+ } | {
5695
+ blockId: string;
5696
+ streamId: string;
5697
+ seq: number;
5698
+ blockNr: number;
5699
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5700
+ type: "block.toplevel.begin";
5701
+ sectionId: string;
5702
+ } | {
5703
+ blockId: string;
5704
+ streamId: string;
5705
+ seq: number;
5706
+ blockNr: number;
5707
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5708
+ lineNr: number;
5709
+ line: string;
5710
+ type: "block.toplevel.line";
5711
+ sectionId: string;
5712
+ } | {
5713
+ blockId: string;
5714
+ streamId: string;
5715
+ seq: number;
5716
+ blockNr: number;
5717
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5718
+ stats: {
5719
+ lines: number;
5720
+ bytes: number;
5721
+ cnt?: number | undefined;
5722
+ };
5723
+ type: "block.toplevel.end";
5724
+ sectionId: string;
5631
5725
  })[];
5632
5726
  }[];
5633
5727
  usage?: {
@@ -5787,3 +5881,40 @@ export declare const resListModels: import("arktype/internal/variants/object.ts"
5787
5881
  }, {}>;
5788
5882
  export type ResListModels = typeof resListModels.infer;
5789
5883
  export declare function isResListModels(obj: unknown): obj is ResListModels;
5884
+ export declare const AppModelKind: import("arktype/internal/variants/string.ts").StringType<"image" | "text", {}>;
5885
+ export type AppModelKind = typeof AppModelKind.infer;
5886
+ export declare const AppModelSource: import("arktype/internal/variants/string.ts").StringType<"account-setting" | "app-setting" | "catalog" | "owner-account-setting" | "platform-default", {}>;
5887
+ export type AppModelSource = typeof AppModelSource.infer;
5888
+ export declare const AppModelOption: import("arktype/internal/variants/object.ts").ObjectType<{
5889
+ id: string;
5890
+ name: string;
5891
+ description: string;
5892
+ kind: "image" | "text";
5893
+ source: "account-setting" | "app-setting" | "catalog" | "owner-account-setting" | "platform-default";
5894
+ isDefault: boolean;
5895
+ }, {}>;
5896
+ export type AppModelOption = typeof AppModelOption.infer;
5897
+ export declare const reqListAppModels: import("arktype/internal/variants/object.ts").ObjectType<{
5898
+ type: "vibes.diy.req-list-app-models";
5899
+ auth?: {
5900
+ type: "clerk" | "device-id" | "guest" | "ucan";
5901
+ token: string;
5902
+ } | undefined;
5903
+ ownerHandle: string;
5904
+ appSlug: string;
5905
+ }, {}>;
5906
+ export type ReqListAppModels = typeof reqListAppModels.infer;
5907
+ export declare function isReqListAppModels(obj: unknown): obj is ReqListAppModels;
5908
+ export declare const resListAppModels: import("arktype/internal/variants/object.ts").ObjectType<{
5909
+ type: "vibes.diy.res-list-app-models";
5910
+ models: {
5911
+ id: string;
5912
+ name: string;
5913
+ description: string;
5914
+ kind: "image" | "text";
5915
+ source: "account-setting" | "app-setting" | "catalog" | "owner-account-setting" | "platform-default";
5916
+ isDefault: boolean;
5917
+ }[];
5918
+ }, {}>;
5919
+ export type ResListAppModels = typeof resListAppModels.infer;
5920
+ export declare function isResListAppModels(obj: unknown): obj is ResListAppModels;