@vibes.diy/api-types 14.3.79 → 14.3.81

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
@@ -65,6 +65,7 @@ export declare const reqOpenChat: import("arktype/internal/variants/object.ts").
65
65
  subagentModel?: string | undefined;
66
66
  instructionVariant?: string | undefined;
67
67
  focusPath?: string | undefined;
68
+ timeZone?: string | undefined;
68
69
  nonInteractive?: boolean | undefined;
69
70
  clientFiresFirstTurn?: boolean | undefined;
70
71
  awaitFirstTurnFire?: boolean | undefined;
@@ -74,6 +75,7 @@ export declare const reqOpenChat: import("arktype/internal/variants/object.ts").
74
75
  } | undefined;
75
76
  stylePin?: string | undefined;
76
77
  imageSurvey?: boolean | undefined;
78
+ newAgentDiscussion?: boolean | undefined;
77
79
  mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
78
80
  }, {}>;
79
81
  export type ReqOpenChat = typeof reqOpenChat.infer;
@@ -284,6 +286,10 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
284
286
  name: string;
285
287
  };
286
288
  } | undefined;
289
+ cache_control?: {
290
+ type: "ephemeral";
291
+ ttl?: "1h" | "5m" | undefined;
292
+ } | undefined;
287
293
  response_format?: unknown;
288
294
  image_config?: unknown;
289
295
  reasoning?: {
@@ -456,6 +462,10 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
456
462
  name: string;
457
463
  };
458
464
  } | undefined;
465
+ cache_control?: {
466
+ type: "ephemeral";
467
+ ttl?: "1h" | "5m" | undefined;
468
+ } | undefined;
459
469
  response_format?: unknown;
460
470
  image_config?: unknown;
461
471
  reasoning?: {
@@ -630,6 +640,10 @@ export declare const reqPromptApplicationChatSection: import("arktype/internal/v
630
640
  name: string;
631
641
  };
632
642
  } | undefined;
643
+ cache_control?: {
644
+ type: "ephemeral";
645
+ ttl?: "1h" | "5m" | undefined;
646
+ } | undefined;
633
647
  response_format?: unknown;
634
648
  image_config?: unknown;
635
649
  reasoning?: {
@@ -721,6 +735,10 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
721
735
  name: string;
722
736
  };
723
737
  } | undefined;
738
+ cache_control?: {
739
+ type: "ephemeral";
740
+ ttl?: "1h" | "5m" | undefined;
741
+ } | undefined;
724
742
  response_format?: unknown;
725
743
  image_config?: unknown;
726
744
  reasoning?: {
@@ -1001,6 +1019,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1001
1019
  name: string;
1002
1020
  };
1003
1021
  } | undefined;
1022
+ cache_control?: {
1023
+ type: "ephemeral";
1024
+ ttl?: "1h" | "5m" | undefined;
1025
+ } | undefined;
1004
1026
  response_format?: unknown;
1005
1027
  image_config?: unknown;
1006
1028
  reasoning?: {
@@ -1090,6 +1112,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1090
1112
  name: string;
1091
1113
  };
1092
1114
  } | undefined;
1115
+ cache_control?: {
1116
+ type: "ephemeral";
1117
+ ttl?: "1h" | "5m" | undefined;
1118
+ } | undefined;
1093
1119
  response_format?: unknown;
1094
1120
  image_config?: unknown;
1095
1121
  reasoning?: {
@@ -1186,6 +1212,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1186
1212
  name: string;
1187
1213
  };
1188
1214
  } | undefined;
1215
+ cache_control?: {
1216
+ type: "ephemeral";
1217
+ ttl?: "1h" | "5m" | undefined;
1218
+ } | undefined;
1189
1219
  response_format?: unknown;
1190
1220
  image_config?: unknown;
1191
1221
  reasoning?: {
@@ -1358,6 +1388,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
1358
1388
  name: string;
1359
1389
  };
1360
1390
  } | undefined;
1391
+ cache_control?: {
1392
+ type: "ephemeral";
1393
+ ttl?: "1h" | "5m" | undefined;
1394
+ } | undefined;
1361
1395
  response_format?: unknown;
1362
1396
  image_config?: unknown;
1363
1397
  reasoning?: {
@@ -1659,6 +1693,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1659
1693
  name: string;
1660
1694
  };
1661
1695
  } | undefined;
1696
+ cache_control?: {
1697
+ type: "ephemeral";
1698
+ ttl?: "1h" | "5m" | undefined;
1699
+ } | undefined;
1662
1700
  response_format?: unknown;
1663
1701
  image_config?: unknown;
1664
1702
  reasoning?: {
@@ -1748,6 +1786,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1748
1786
  name: string;
1749
1787
  };
1750
1788
  } | undefined;
1789
+ cache_control?: {
1790
+ type: "ephemeral";
1791
+ ttl?: "1h" | "5m" | undefined;
1792
+ } | undefined;
1751
1793
  response_format?: unknown;
1752
1794
  image_config?: unknown;
1753
1795
  reasoning?: {
@@ -1967,6 +2009,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
1967
2009
  name: string;
1968
2010
  };
1969
2011
  } | undefined;
2012
+ cache_control?: {
2013
+ type: "ephemeral";
2014
+ ttl?: "1h" | "5m" | undefined;
2015
+ } | undefined;
1970
2016
  response_format?: unknown;
1971
2017
  image_config?: unknown;
1972
2018
  reasoning?: {
@@ -2139,6 +2185,10 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
2139
2185
  name: string;
2140
2186
  };
2141
2187
  } | undefined;
2188
+ cache_control?: {
2189
+ type: "ephemeral";
2190
+ ttl?: "1h" | "5m" | undefined;
2191
+ } | undefined;
2142
2192
  response_format?: unknown;
2143
2193
  image_config?: unknown;
2144
2194
  reasoning?: {
@@ -2246,221 +2296,6 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
2246
2296
  export type ResPromptChatSection = typeof resPromptChatSection.infer;
2247
2297
  export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
2248
2298
  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
2299
  type: "prompt.research";
2465
2300
  version: 1;
2466
2301
  streamId: string;
@@ -2586,6 +2421,10 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2586
2421
  name: string;
2587
2422
  };
2588
2423
  } | undefined;
2424
+ cache_control?: {
2425
+ type: "ephemeral";
2426
+ ttl?: "1h" | "5m" | undefined;
2427
+ } | undefined;
2589
2428
  response_format?: unknown;
2590
2429
  image_config?: unknown;
2591
2430
  reasoning?: {
@@ -2602,6 +2441,7 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2602
2441
  clientMessageId?: string | undefined;
2603
2442
  origin?: "design-repair" | undefined;
2604
2443
  agentCommit?: true | undefined;
2444
+ agentSkills?: string[] | undefined;
2605
2445
  } | {
2606
2446
  streamId: string;
2607
2447
  chatId: string;
@@ -2740,6 +2580,10 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2740
2580
  name: string;
2741
2581
  };
2742
2582
  } | undefined;
2583
+ cache_control?: {
2584
+ type: "ephemeral";
2585
+ ttl?: "1h" | "5m" | undefined;
2586
+ } | undefined;
2743
2587
  response_format?: unknown;
2744
2588
  image_config?: unknown;
2745
2589
  reasoning?: {
@@ -2899,121 +2743,52 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
2899
2743
  type: "prompt.notice";
2900
2744
  kind: "edits-incomplete";
2901
2745
  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;
2746
+ } | {
2747
+ blockId: string;
2748
+ streamId: string;
2749
+ seq: number;
2750
+ blockNr: number;
2909
2751
  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
- };
2752
+ type: "block.begin";
2753
+ } | {
2754
+ blockId: string;
2755
+ streamId: string;
2756
+ seq: number;
2757
+ blockNr: number;
2758
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2759
+ type: "block.end";
2760
+ stats: {
2761
+ toplevel: {
2762
+ lines: number;
2763
+ bytes: number;
2764
+ cnt?: number | undefined;
2945
2765
  };
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
- };
2766
+ code: {
2767
+ lines: number;
2768
+ bytes: number;
2769
+ cnt?: number | undefined;
2963
2770
  };
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
- };
2771
+ image: {
2772
+ lines: number;
2773
+ bytes: number;
2774
+ cnt?: number | undefined;
3015
2775
  };
3016
- usage: {
2776
+ total: {
2777
+ lines: number;
2778
+ bytes: number;
2779
+ cnt?: number | undefined;
2780
+ };
2781
+ };
2782
+ usage: {
2783
+ given: {
2784
+ prompt_tokens: number;
2785
+ completion_tokens: number;
2786
+ total_tokens: number;
2787
+ model?: string | undefined;
2788
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2789
+ reasoningEffort?: string | undefined;
2790
+ }[];
2791
+ calculated: {
3017
2792
  prompt_tokens: number;
3018
2793
  completion_tokens: number;
3019
2794
  total_tokens: number;
@@ -3021,112 +2796,181 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3021
2796
  role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
3022
2797
  reasoningEffort?: string | undefined;
3023
2798
  };
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: {
2799
+ };
2800
+ fsRef?: ((In: {
2801
+ appSlug: string;
2802
+ ownerHandle?: string | undefined;
2803
+ userSlug?: string | undefined;
2804
+ mode: "dev" | "production";
2805
+ fsId: string;
2806
+ }) => import("arktype").Out<{
2807
+ appSlug: string;
2808
+ mode: "dev" | "production";
2809
+ fsId: string;
2810
+ ownerHandle: string;
2811
+ }>) | undefined;
2812
+ touchedPaths?: string[] | undefined;
2813
+ settled?: {
2814
+ reach: "companion-only" | "entry" | "none" | "server-only";
2815
+ entryTouched: boolean;
2816
+ touchedCount: number;
2817
+ applied: boolean;
2818
+ } | undefined;
2819
+ saveRepair?: {
2820
+ repaired: string[];
2821
+ attempts: number;
2822
+ } | undefined;
2823
+ } | {
2824
+ blockId: string;
2825
+ streamId: string;
2826
+ seq: number;
2827
+ blockNr: number;
2828
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2829
+ type: "block.stats";
2830
+ stats: {
2831
+ toplevel: {
3031
2832
  lines: number;
3032
2833
  bytes: number;
3033
2834
  cnt?: number | undefined;
3034
2835
  };
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: {
2836
+ code: {
3072
2837
  lines: number;
3073
2838
  bytes: number;
3074
2839
  cnt?: number | undefined;
3075
2840
  };
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: {
2841
+ image: {
3119
2842
  lines: number;
3120
2843
  bytes: number;
3121
2844
  cnt?: number | undefined;
3122
2845
  };
3123
- type: "block.toplevel.end";
3124
- sectionId: string;
3125
- } | {
3126
- type: "prompt.research";
3127
- version: 1;
3128
- streamId: string;
3129
- chatId: string;
2846
+ total: {
2847
+ lines: number;
2848
+ bytes: number;
2849
+ cnt?: number | undefined;
2850
+ };
2851
+ };
2852
+ usage: {
2853
+ prompt_tokens: number;
2854
+ completion_tokens: number;
2855
+ total_tokens: number;
2856
+ model?: string | undefined;
2857
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
2858
+ reasoningEffort?: string | undefined;
2859
+ };
2860
+ } | {
2861
+ blockId: string;
2862
+ streamId: string;
2863
+ seq: number;
2864
+ blockNr: number;
2865
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2866
+ stats: {
2867
+ lines: number;
2868
+ bytes: number;
2869
+ cnt?: number | undefined;
2870
+ };
2871
+ type: "block.image";
2872
+ sectionId: string;
2873
+ url?: string | undefined;
2874
+ uploadId?: string | undefined;
2875
+ cid?: string | undefined;
2876
+ mimeType?: string | undefined;
2877
+ size?: number | undefined;
2878
+ docWritten?: boolean | undefined;
2879
+ } | {
2880
+ blockId: string;
2881
+ streamId: string;
2882
+ seq: number;
2883
+ blockNr: number;
2884
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2885
+ type: "block.code.begin";
2886
+ sectionId: string;
2887
+ lang: string;
2888
+ path?: string | undefined;
2889
+ } | {
2890
+ blockId: string;
2891
+ streamId: string;
2892
+ seq: number;
2893
+ blockNr: number;
2894
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2895
+ lineNr: number;
2896
+ line: string;
2897
+ type: "block.code.line";
2898
+ sectionId: string;
2899
+ lang: string;
2900
+ path?: string | undefined;
2901
+ } | {
2902
+ blockId: string;
2903
+ streamId: string;
2904
+ seq: number;
2905
+ blockNr: number;
2906
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2907
+ stats: {
2908
+ lines: number;
2909
+ bytes: number;
2910
+ cnt?: number | undefined;
2911
+ };
2912
+ type: "block.code.end";
2913
+ sectionId: string;
2914
+ lang: string;
2915
+ path?: string | undefined;
2916
+ } | {
2917
+ blockId: string;
2918
+ streamId: string;
2919
+ seq: number;
2920
+ blockNr: number;
2921
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2922
+ type: "block.code.truncated";
2923
+ sectionId: string;
2924
+ lang: string;
2925
+ path?: string | undefined;
2926
+ reason: string;
2927
+ kind: string;
2928
+ truncatedAtLine: number;
2929
+ errorCount: number;
2930
+ } | {
2931
+ blockId: string;
2932
+ streamId: string;
2933
+ seq: number;
2934
+ blockNr: number;
2935
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2936
+ type: "block.toplevel.begin";
2937
+ sectionId: string;
2938
+ } | {
2939
+ blockId: string;
2940
+ streamId: string;
2941
+ seq: number;
2942
+ blockNr: number;
2943
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2944
+ lineNr: number;
2945
+ line: string;
2946
+ type: "block.toplevel.line";
2947
+ sectionId: string;
2948
+ } | {
2949
+ blockId: string;
2950
+ streamId: string;
2951
+ seq: number;
2952
+ blockNr: number;
2953
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2954
+ stats: {
2955
+ lines: number;
2956
+ bytes: number;
2957
+ cnt?: number | undefined;
2958
+ };
2959
+ type: "block.toplevel.end";
2960
+ sectionId: string;
2961
+ }, {}>;
2962
+ export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
2963
+ export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
2964
+ type: "vibes.diy.section-event";
2965
+ chatId: string;
2966
+ promptId: string;
2967
+ blockSeq: number;
2968
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
2969
+ blocks: ({
2970
+ type: "prompt.research";
2971
+ version: 1;
2972
+ streamId: string;
2973
+ chatId: string;
3130
2974
  seq: number;
3131
2975
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
3132
2976
  researchId: string;
@@ -3248,6 +3092,10 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3248
3092
  name: string;
3249
3093
  };
3250
3094
  } | undefined;
3095
+ cache_control?: {
3096
+ type: "ephemeral";
3097
+ ttl?: "1h" | "5m" | undefined;
3098
+ } | undefined;
3251
3099
  response_format?: unknown;
3252
3100
  image_config?: unknown;
3253
3101
  reasoning?: {
@@ -3264,6 +3112,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3264
3112
  clientMessageId?: string | undefined;
3265
3113
  origin?: "design-repair" | undefined;
3266
3114
  agentCommit?: true | undefined;
3115
+ agentSkills?: string[] | undefined;
3267
3116
  } | {
3268
3117
  streamId: string;
3269
3118
  chatId: string;
@@ -3402,6 +3251,10 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3402
3251
  name: string;
3403
3252
  };
3404
3253
  } | undefined;
3254
+ cache_control?: {
3255
+ type: "ephemeral";
3256
+ ttl?: "1h" | "5m" | undefined;
3257
+ } | undefined;
3405
3258
  response_format?: unknown;
3406
3259
  image_config?: unknown;
3407
3260
  reasoning?: {
@@ -3561,36 +3414,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
3561
3414
  type: "prompt.notice";
3562
3415
  kind: "edits-incomplete";
3563
3416
  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: ({
3417
+ } | {
3594
3418
  blockId: string;
3595
3419
  streamId: string;
3596
3420
  seq: number;
@@ -3805,7 +3629,36 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3805
3629
  };
3806
3630
  type: "block.toplevel.end";
3807
3631
  sectionId: string;
3808
- } | {
3632
+ })[];
3633
+ initiator?: "platform" | "seed" | undefined;
3634
+ }, {}>;
3635
+ export type SectionEvent = typeof sectionEvent.infer;
3636
+ export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
3637
+ export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
3638
+ type: "vibes.diy.req-get-chat-response";
3639
+ historyPage?: {
3640
+ limit: number;
3641
+ before: {
3642
+ created: string;
3643
+ promptId: string;
3644
+ };
3645
+ } | undefined;
3646
+ auth?: {
3647
+ type: "clerk" | "device-id" | "guest" | "ucan";
3648
+ token: string;
3649
+ } | undefined;
3650
+ ownerHandle: string;
3651
+ appSlug: string;
3652
+ chatId?: string | undefined;
3653
+ promptId?: string | undefined;
3654
+ usageOnly?: boolean | undefined;
3655
+ }, {}>;
3656
+ export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
3657
+ export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
3658
+ export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
3659
+ blockSeq: number;
3660
+ created?: string | undefined;
3661
+ blocks: ({
3809
3662
  type: "prompt.research";
3810
3663
  version: 1;
3811
3664
  streamId: string;
@@ -3931,6 +3784,10 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3931
3784
  name: string;
3932
3785
  };
3933
3786
  } | undefined;
3787
+ cache_control?: {
3788
+ type: "ephemeral";
3789
+ ttl?: "1h" | "5m" | undefined;
3790
+ } | undefined;
3934
3791
  response_format?: unknown;
3935
3792
  image_config?: unknown;
3936
3793
  reasoning?: {
@@ -3947,6 +3804,7 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
3947
3804
  clientMessageId?: string | undefined;
3948
3805
  origin?: "design-repair" | undefined;
3949
3806
  agentCommit?: true | undefined;
3807
+ agentSkills?: string[] | undefined;
3950
3808
  } | {
3951
3809
  streamId: string;
3952
3810
  chatId: string;
@@ -4085,6 +3943,10 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
4085
3943
  name: string;
4086
3944
  };
4087
3945
  } | undefined;
3946
+ cache_control?: {
3947
+ type: "ephemeral";
3948
+ ttl?: "1h" | "5m" | undefined;
3949
+ } | undefined;
4088
3950
  response_format?: unknown;
4089
3951
  image_config?: unknown;
4090
3952
  reasoning?: {
@@ -4244,145 +4106,52 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
4244
4106
  type: "prompt.notice";
4245
4107
  kind: "edits-incomplete";
4246
4108
  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
- };
4109
+ } | {
4110
+ blockId: string;
4111
+ streamId: string;
4112
+ seq: number;
4113
+ blockNr: number;
4114
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4115
+ type: "block.begin";
4116
+ } | {
4117
+ blockId: string;
4118
+ streamId: string;
4119
+ seq: number;
4120
+ blockNr: number;
4121
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4122
+ type: "block.end";
4123
+ stats: {
4124
+ toplevel: {
4125
+ lines: number;
4126
+ bytes: number;
4127
+ cnt?: number | undefined;
4314
4128
  };
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
- };
4129
+ code: {
4130
+ lines: number;
4131
+ bytes: number;
4132
+ cnt?: number | undefined;
4332
4133
  };
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
- };
4134
+ image: {
4135
+ lines: number;
4136
+ bytes: number;
4137
+ cnt?: number | undefined;
4384
4138
  };
4385
- usage: {
4139
+ total: {
4140
+ lines: number;
4141
+ bytes: number;
4142
+ cnt?: number | undefined;
4143
+ };
4144
+ };
4145
+ usage: {
4146
+ given: {
4147
+ prompt_tokens: number;
4148
+ completion_tokens: number;
4149
+ total_tokens: number;
4150
+ model?: string | undefined;
4151
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4152
+ reasoningEffort?: string | undefined;
4153
+ }[];
4154
+ calculated: {
4386
4155
  prompt_tokens: number;
4387
4156
  completion_tokens: number;
4388
4157
  total_tokens: number;
@@ -4390,108 +4159,201 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4390
4159
  role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4391
4160
  reasoningEffort?: string | undefined;
4392
4161
  };
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: {
4162
+ };
4163
+ fsRef?: ((In: {
4164
+ appSlug: string;
4165
+ ownerHandle?: string | undefined;
4166
+ userSlug?: string | undefined;
4167
+ mode: "dev" | "production";
4168
+ fsId: string;
4169
+ }) => import("arktype").Out<{
4170
+ appSlug: string;
4171
+ mode: "dev" | "production";
4172
+ fsId: string;
4173
+ ownerHandle: string;
4174
+ }>) | undefined;
4175
+ touchedPaths?: string[] | undefined;
4176
+ settled?: {
4177
+ reach: "companion-only" | "entry" | "none" | "server-only";
4178
+ entryTouched: boolean;
4179
+ touchedCount: number;
4180
+ applied: boolean;
4181
+ } | undefined;
4182
+ saveRepair?: {
4183
+ repaired: string[];
4184
+ attempts: number;
4185
+ } | undefined;
4186
+ } | {
4187
+ blockId: string;
4188
+ streamId: string;
4189
+ seq: number;
4190
+ blockNr: number;
4191
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4192
+ type: "block.stats";
4193
+ stats: {
4194
+ toplevel: {
4400
4195
  lines: number;
4401
4196
  bytes: number;
4402
4197
  cnt?: number | undefined;
4403
4198
  };
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: {
4199
+ code: {
4441
4200
  lines: number;
4442
4201
  bytes: number;
4443
4202
  cnt?: number | undefined;
4444
4203
  };
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: {
4204
+ image: {
4488
4205
  lines: number;
4489
4206
  bytes: number;
4490
4207
  cnt?: number | undefined;
4491
4208
  };
4492
- type: "block.toplevel.end";
4493
- sectionId: string;
4494
- } | {
4209
+ total: {
4210
+ lines: number;
4211
+ bytes: number;
4212
+ cnt?: number | undefined;
4213
+ };
4214
+ };
4215
+ usage: {
4216
+ prompt_tokens: number;
4217
+ completion_tokens: number;
4218
+ total_tokens: number;
4219
+ model?: string | undefined;
4220
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4221
+ reasoningEffort?: string | undefined;
4222
+ };
4223
+ } | {
4224
+ blockId: string;
4225
+ streamId: string;
4226
+ seq: number;
4227
+ blockNr: number;
4228
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4229
+ stats: {
4230
+ lines: number;
4231
+ bytes: number;
4232
+ cnt?: number | undefined;
4233
+ };
4234
+ type: "block.image";
4235
+ sectionId: string;
4236
+ url?: string | undefined;
4237
+ uploadId?: string | undefined;
4238
+ cid?: string | undefined;
4239
+ mimeType?: string | undefined;
4240
+ size?: number | undefined;
4241
+ docWritten?: boolean | undefined;
4242
+ } | {
4243
+ blockId: string;
4244
+ streamId: string;
4245
+ seq: number;
4246
+ blockNr: number;
4247
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4248
+ type: "block.code.begin";
4249
+ sectionId: string;
4250
+ lang: string;
4251
+ path?: string | undefined;
4252
+ } | {
4253
+ blockId: string;
4254
+ streamId: string;
4255
+ seq: number;
4256
+ blockNr: number;
4257
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4258
+ lineNr: number;
4259
+ line: string;
4260
+ type: "block.code.line";
4261
+ sectionId: string;
4262
+ lang: string;
4263
+ path?: string | undefined;
4264
+ } | {
4265
+ blockId: string;
4266
+ streamId: string;
4267
+ seq: number;
4268
+ blockNr: number;
4269
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4270
+ stats: {
4271
+ lines: number;
4272
+ bytes: number;
4273
+ cnt?: number | undefined;
4274
+ };
4275
+ type: "block.code.end";
4276
+ sectionId: string;
4277
+ lang: string;
4278
+ path?: string | undefined;
4279
+ } | {
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.code.truncated";
4286
+ sectionId: string;
4287
+ lang: string;
4288
+ path?: string | undefined;
4289
+ reason: string;
4290
+ kind: string;
4291
+ truncatedAtLine: number;
4292
+ errorCount: number;
4293
+ } | {
4294
+ blockId: string;
4295
+ streamId: string;
4296
+ seq: number;
4297
+ blockNr: number;
4298
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4299
+ type: "block.toplevel.begin";
4300
+ sectionId: string;
4301
+ } | {
4302
+ blockId: string;
4303
+ streamId: string;
4304
+ seq: number;
4305
+ blockNr: number;
4306
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4307
+ lineNr: number;
4308
+ line: string;
4309
+ type: "block.toplevel.line";
4310
+ sectionId: string;
4311
+ } | {
4312
+ blockId: string;
4313
+ streamId: string;
4314
+ seq: number;
4315
+ blockNr: number;
4316
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4317
+ stats: {
4318
+ lines: number;
4319
+ bytes: number;
4320
+ cnt?: number | undefined;
4321
+ };
4322
+ type: "block.toplevel.end";
4323
+ sectionId: string;
4324
+ })[];
4325
+ }, {}>;
4326
+ export type ResChatResponseSection = typeof resChatResponseSection.infer;
4327
+ export declare const promptUsage: import("arktype/internal/variants/object.ts").ObjectType<{
4328
+ inputTokens: number | null;
4329
+ outputTokens: number | null;
4330
+ cachedTokens: number | null;
4331
+ costUsd: number | null;
4332
+ lane: "agent-build" | "agent-conversation" | "codegen" | null;
4333
+ model?: string | undefined;
4334
+ agentDispatched?: boolean | undefined;
4335
+ research?: boolean | undefined;
4336
+ frontendDraft?: boolean | undefined;
4337
+ directCommit?: boolean | undefined;
4338
+ gatewayRounds?: number | undefined;
4339
+ rounds?: {
4340
+ model?: string | undefined;
4341
+ role?: string | undefined;
4342
+ costUsd: number | null;
4343
+ }[] | undefined;
4344
+ fsId?: string | undefined;
4345
+ }, {}>;
4346
+ export type PromptUsage = typeof promptUsage.infer;
4347
+ export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{
4348
+ initiator?: "platform" | "seed" | undefined;
4349
+ chatId: string;
4350
+ promptId: string;
4351
+ created: string;
4352
+ fsId?: string | undefined;
4353
+ sections: {
4354
+ blockSeq: number;
4355
+ created?: string | undefined;
4356
+ blocks: ({
4495
4357
  type: "prompt.research";
4496
4358
  version: 1;
4497
4359
  streamId: string;
@@ -4617,6 +4479,10 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4617
4479
  name: string;
4618
4480
  };
4619
4481
  } | undefined;
4482
+ cache_control?: {
4483
+ type: "ephemeral";
4484
+ ttl?: "1h" | "5m" | undefined;
4485
+ } | undefined;
4620
4486
  response_format?: unknown;
4621
4487
  image_config?: unknown;
4622
4488
  reasoning?: {
@@ -4633,6 +4499,7 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4633
4499
  clientMessageId?: string | undefined;
4634
4500
  origin?: "design-repair" | undefined;
4635
4501
  agentCommit?: true | undefined;
4502
+ agentSkills?: string[] | undefined;
4636
4503
  } | {
4637
4504
  streamId: string;
4638
4505
  chatId: string;
@@ -4771,6 +4638,10 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4771
4638
  name: string;
4772
4639
  };
4773
4640
  } | undefined;
4641
+ cache_control?: {
4642
+ type: "ephemeral";
4643
+ ttl?: "1h" | "5m" | undefined;
4644
+ } | undefined;
4774
4645
  response_format?: unknown;
4775
4646
  image_config?: unknown;
4776
4647
  reasoning?: {
@@ -4913,23 +4784,238 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
4913
4784
  } | {
4914
4785
  type: "prompt.status";
4915
4786
  streamId: string;
4916
- chatId: string;
4787
+ chatId: string;
4788
+ seq: number;
4789
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4790
+ round: number;
4791
+ maxRounds: number;
4792
+ tools: {
4793
+ name: string;
4794
+ path?: string | undefined;
4795
+ }[];
4796
+ } | {
4797
+ streamId: string;
4798
+ chatId: string;
4799
+ seq: number;
4800
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4801
+ type: "prompt.notice";
4802
+ kind: "edits-incomplete";
4803
+ path?: string | undefined;
4804
+ } | {
4805
+ blockId: string;
4806
+ streamId: string;
4807
+ seq: number;
4808
+ blockNr: number;
4809
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4810
+ type: "block.begin";
4811
+ } | {
4812
+ blockId: string;
4813
+ streamId: string;
4814
+ seq: number;
4815
+ blockNr: number;
4816
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4817
+ type: "block.end";
4818
+ stats: {
4819
+ toplevel: {
4820
+ lines: number;
4821
+ bytes: number;
4822
+ cnt?: number | undefined;
4823
+ };
4824
+ code: {
4825
+ lines: number;
4826
+ bytes: number;
4827
+ cnt?: number | undefined;
4828
+ };
4829
+ image: {
4830
+ lines: number;
4831
+ bytes: number;
4832
+ cnt?: number | undefined;
4833
+ };
4834
+ total: {
4835
+ lines: number;
4836
+ bytes: number;
4837
+ cnt?: number | undefined;
4838
+ };
4839
+ };
4840
+ usage: {
4841
+ given: {
4842
+ prompt_tokens: number;
4843
+ completion_tokens: number;
4844
+ total_tokens: number;
4845
+ model?: string | undefined;
4846
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4847
+ reasoningEffort?: string | undefined;
4848
+ }[];
4849
+ calculated: {
4850
+ prompt_tokens: number;
4851
+ completion_tokens: number;
4852
+ total_tokens: number;
4853
+ model?: string | undefined;
4854
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4855
+ reasoningEffort?: string | undefined;
4856
+ };
4857
+ };
4858
+ fsRef?: ((In: {
4859
+ appSlug: string;
4860
+ ownerHandle?: string | undefined;
4861
+ userSlug?: string | undefined;
4862
+ mode: "dev" | "production";
4863
+ fsId: string;
4864
+ }) => import("arktype").Out<{
4865
+ appSlug: string;
4866
+ mode: "dev" | "production";
4867
+ fsId: string;
4868
+ ownerHandle: string;
4869
+ }>) | undefined;
4870
+ touchedPaths?: string[] | undefined;
4871
+ settled?: {
4872
+ reach: "companion-only" | "entry" | "none" | "server-only";
4873
+ entryTouched: boolean;
4874
+ touchedCount: number;
4875
+ applied: boolean;
4876
+ } | undefined;
4877
+ saveRepair?: {
4878
+ repaired: string[];
4879
+ attempts: number;
4880
+ } | undefined;
4881
+ } | {
4882
+ blockId: string;
4883
+ streamId: string;
4884
+ seq: number;
4885
+ blockNr: number;
4886
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4887
+ type: "block.stats";
4888
+ stats: {
4889
+ toplevel: {
4890
+ lines: number;
4891
+ bytes: number;
4892
+ cnt?: number | undefined;
4893
+ };
4894
+ code: {
4895
+ lines: number;
4896
+ bytes: number;
4897
+ cnt?: number | undefined;
4898
+ };
4899
+ image: {
4900
+ lines: number;
4901
+ bytes: number;
4902
+ cnt?: number | undefined;
4903
+ };
4904
+ total: {
4905
+ lines: number;
4906
+ bytes: number;
4907
+ cnt?: number | undefined;
4908
+ };
4909
+ };
4910
+ usage: {
4911
+ prompt_tokens: number;
4912
+ completion_tokens: number;
4913
+ total_tokens: number;
4914
+ model?: string | undefined;
4915
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
4916
+ reasoningEffort?: string | undefined;
4917
+ };
4918
+ } | {
4919
+ blockId: string;
4920
+ streamId: string;
4921
+ seq: number;
4922
+ blockNr: number;
4923
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4924
+ stats: {
4925
+ lines: number;
4926
+ bytes: number;
4927
+ cnt?: number | undefined;
4928
+ };
4929
+ type: "block.image";
4930
+ sectionId: string;
4931
+ url?: string | undefined;
4932
+ uploadId?: string | undefined;
4933
+ cid?: string | undefined;
4934
+ mimeType?: string | undefined;
4935
+ size?: number | undefined;
4936
+ docWritten?: boolean | undefined;
4937
+ } | {
4938
+ blockId: string;
4939
+ streamId: string;
4940
+ seq: number;
4941
+ blockNr: number;
4942
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4943
+ type: "block.code.begin";
4944
+ sectionId: string;
4945
+ lang: string;
4946
+ path?: string | undefined;
4947
+ } | {
4948
+ blockId: string;
4949
+ streamId: string;
4950
+ seq: number;
4951
+ blockNr: number;
4952
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4953
+ lineNr: number;
4954
+ line: string;
4955
+ type: "block.code.line";
4956
+ sectionId: string;
4957
+ lang: string;
4958
+ path?: string | undefined;
4959
+ } | {
4960
+ blockId: string;
4961
+ streamId: string;
4962
+ seq: number;
4963
+ blockNr: number;
4964
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4965
+ stats: {
4966
+ lines: number;
4967
+ bytes: number;
4968
+ cnt?: number | undefined;
4969
+ };
4970
+ type: "block.code.end";
4971
+ sectionId: string;
4972
+ lang: string;
4973
+ path?: string | undefined;
4974
+ } | {
4975
+ blockId: string;
4976
+ streamId: string;
4977
+ seq: number;
4978
+ blockNr: number;
4979
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4980
+ type: "block.code.truncated";
4981
+ sectionId: string;
4982
+ lang: string;
4983
+ path?: string | undefined;
4984
+ reason: string;
4985
+ kind: string;
4986
+ truncatedAtLine: number;
4987
+ errorCount: number;
4988
+ } | {
4989
+ blockId: string;
4990
+ streamId: string;
4991
+ seq: number;
4992
+ blockNr: number;
4993
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4994
+ type: "block.toplevel.begin";
4995
+ sectionId: string;
4996
+ } | {
4997
+ blockId: string;
4998
+ streamId: string;
4917
4999
  seq: number;
5000
+ blockNr: number;
4918
5001
  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
- }[];
5002
+ lineNr: number;
5003
+ line: string;
5004
+ type: "block.toplevel.line";
5005
+ sectionId: string;
4925
5006
  } | {
5007
+ blockId: string;
4926
5008
  streamId: string;
4927
- chatId: string;
4928
5009
  seq: number;
5010
+ blockNr: number;
4929
5011
  timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
4930
- type: "prompt.notice";
4931
- kind: "edits-incomplete";
4932
- path?: string | undefined;
5012
+ stats: {
5013
+ lines: number;
5014
+ bytes: number;
5015
+ cnt?: number | undefined;
5016
+ };
5017
+ type: "block.toplevel.end";
5018
+ sectionId: string;
4933
5019
  })[];
4934
5020
  }[];
4935
5021
  usage?: {
@@ -4959,237 +5045,22 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
4959
5045
  before?: {
4960
5046
  created: string;
4961
5047
  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
- } | {
5048
+ } | undefined;
5049
+ hasMore: boolean;
5050
+ } | undefined;
5051
+ chatId?: string | undefined;
5052
+ ownerHandle: string;
5053
+ appSlug: string;
5054
+ turns: {
5055
+ initiator?: "platform" | "seed" | undefined;
5056
+ chatId: string;
5057
+ promptId: string;
5058
+ created: string;
5059
+ fsId?: string | undefined;
5060
+ sections: {
5061
+ blockSeq: number;
5062
+ created?: string | undefined;
5063
+ blocks: ({
5193
5064
  type: "prompt.research";
5194
5065
  version: 1;
5195
5066
  streamId: string;
@@ -5315,6 +5186,10 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5315
5186
  name: string;
5316
5187
  };
5317
5188
  } | undefined;
5189
+ cache_control?: {
5190
+ type: "ephemeral";
5191
+ ttl?: "1h" | "5m" | undefined;
5192
+ } | undefined;
5318
5193
  response_format?: unknown;
5319
5194
  image_config?: unknown;
5320
5195
  reasoning?: {
@@ -5331,6 +5206,7 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5331
5206
  clientMessageId?: string | undefined;
5332
5207
  origin?: "design-repair" | undefined;
5333
5208
  agentCommit?: true | undefined;
5209
+ agentSkills?: string[] | undefined;
5334
5210
  } | {
5335
5211
  streamId: string;
5336
5212
  chatId: string;
@@ -5469,6 +5345,10 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5469
5345
  name: string;
5470
5346
  };
5471
5347
  } | undefined;
5348
+ cache_control?: {
5349
+ type: "ephemeral";
5350
+ ttl?: "1h" | "5m" | undefined;
5351
+ } | undefined;
5472
5352
  response_format?: unknown;
5473
5353
  image_config?: unknown;
5474
5354
  reasoning?: {
@@ -5628,6 +5508,221 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
5628
5508
  type: "prompt.notice";
5629
5509
  kind: "edits-incomplete";
5630
5510
  path?: string | undefined;
5511
+ } | {
5512
+ blockId: string;
5513
+ streamId: string;
5514
+ seq: number;
5515
+ blockNr: number;
5516
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5517
+ type: "block.begin";
5518
+ } | {
5519
+ blockId: string;
5520
+ streamId: string;
5521
+ seq: number;
5522
+ blockNr: number;
5523
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5524
+ type: "block.end";
5525
+ stats: {
5526
+ toplevel: {
5527
+ lines: number;
5528
+ bytes: number;
5529
+ cnt?: number | undefined;
5530
+ };
5531
+ code: {
5532
+ lines: number;
5533
+ bytes: number;
5534
+ cnt?: number | undefined;
5535
+ };
5536
+ image: {
5537
+ lines: number;
5538
+ bytes: number;
5539
+ cnt?: number | undefined;
5540
+ };
5541
+ total: {
5542
+ lines: number;
5543
+ bytes: number;
5544
+ cnt?: number | undefined;
5545
+ };
5546
+ };
5547
+ usage: {
5548
+ given: {
5549
+ prompt_tokens: number;
5550
+ completion_tokens: number;
5551
+ total_tokens: number;
5552
+ model?: string | undefined;
5553
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5554
+ reasoningEffort?: string | undefined;
5555
+ }[];
5556
+ calculated: {
5557
+ prompt_tokens: number;
5558
+ completion_tokens: number;
5559
+ total_tokens: number;
5560
+ model?: string | undefined;
5561
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5562
+ reasoningEffort?: string | undefined;
5563
+ };
5564
+ };
5565
+ fsRef?: ((In: {
5566
+ appSlug: string;
5567
+ ownerHandle?: string | undefined;
5568
+ userSlug?: string | undefined;
5569
+ mode: "dev" | "production";
5570
+ fsId: string;
5571
+ }) => import("arktype").Out<{
5572
+ appSlug: string;
5573
+ mode: "dev" | "production";
5574
+ fsId: string;
5575
+ ownerHandle: string;
5576
+ }>) | undefined;
5577
+ touchedPaths?: string[] | undefined;
5578
+ settled?: {
5579
+ reach: "companion-only" | "entry" | "none" | "server-only";
5580
+ entryTouched: boolean;
5581
+ touchedCount: number;
5582
+ applied: boolean;
5583
+ } | undefined;
5584
+ saveRepair?: {
5585
+ repaired: string[];
5586
+ attempts: number;
5587
+ } | undefined;
5588
+ } | {
5589
+ blockId: string;
5590
+ streamId: string;
5591
+ seq: number;
5592
+ blockNr: number;
5593
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5594
+ type: "block.stats";
5595
+ stats: {
5596
+ toplevel: {
5597
+ lines: number;
5598
+ bytes: number;
5599
+ cnt?: number | undefined;
5600
+ };
5601
+ code: {
5602
+ lines: number;
5603
+ bytes: number;
5604
+ cnt?: number | undefined;
5605
+ };
5606
+ image: {
5607
+ lines: number;
5608
+ bytes: number;
5609
+ cnt?: number | undefined;
5610
+ };
5611
+ total: {
5612
+ lines: number;
5613
+ bytes: number;
5614
+ cnt?: number | undefined;
5615
+ };
5616
+ };
5617
+ usage: {
5618
+ prompt_tokens: number;
5619
+ completion_tokens: number;
5620
+ total_tokens: number;
5621
+ model?: string | undefined;
5622
+ role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
5623
+ reasoningEffort?: string | undefined;
5624
+ };
5625
+ } | {
5626
+ blockId: string;
5627
+ streamId: string;
5628
+ seq: number;
5629
+ blockNr: number;
5630
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5631
+ stats: {
5632
+ lines: number;
5633
+ bytes: number;
5634
+ cnt?: number | undefined;
5635
+ };
5636
+ type: "block.image";
5637
+ sectionId: string;
5638
+ url?: string | undefined;
5639
+ uploadId?: string | undefined;
5640
+ cid?: string | undefined;
5641
+ mimeType?: string | undefined;
5642
+ size?: number | undefined;
5643
+ docWritten?: boolean | undefined;
5644
+ } | {
5645
+ blockId: string;
5646
+ streamId: string;
5647
+ seq: number;
5648
+ blockNr: number;
5649
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5650
+ type: "block.code.begin";
5651
+ sectionId: string;
5652
+ lang: string;
5653
+ path?: string | undefined;
5654
+ } | {
5655
+ blockId: string;
5656
+ streamId: string;
5657
+ seq: number;
5658
+ blockNr: number;
5659
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5660
+ lineNr: number;
5661
+ line: string;
5662
+ type: "block.code.line";
5663
+ sectionId: string;
5664
+ lang: string;
5665
+ path?: string | undefined;
5666
+ } | {
5667
+ blockId: string;
5668
+ streamId: string;
5669
+ seq: number;
5670
+ blockNr: number;
5671
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5672
+ stats: {
5673
+ lines: number;
5674
+ bytes: number;
5675
+ cnt?: number | undefined;
5676
+ };
5677
+ type: "block.code.end";
5678
+ sectionId: string;
5679
+ lang: string;
5680
+ path?: string | undefined;
5681
+ } | {
5682
+ blockId: string;
5683
+ streamId: string;
5684
+ seq: number;
5685
+ blockNr: number;
5686
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5687
+ type: "block.code.truncated";
5688
+ sectionId: string;
5689
+ lang: string;
5690
+ path?: string | undefined;
5691
+ reason: string;
5692
+ kind: string;
5693
+ truncatedAtLine: number;
5694
+ errorCount: number;
5695
+ } | {
5696
+ blockId: string;
5697
+ streamId: string;
5698
+ seq: number;
5699
+ blockNr: number;
5700
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5701
+ type: "block.toplevel.begin";
5702
+ sectionId: string;
5703
+ } | {
5704
+ blockId: string;
5705
+ streamId: string;
5706
+ seq: number;
5707
+ blockNr: number;
5708
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5709
+ lineNr: number;
5710
+ line: string;
5711
+ type: "block.toplevel.line";
5712
+ sectionId: string;
5713
+ } | {
5714
+ blockId: string;
5715
+ streamId: string;
5716
+ seq: number;
5717
+ blockNr: number;
5718
+ timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
5719
+ stats: {
5720
+ lines: number;
5721
+ bytes: number;
5722
+ cnt?: number | undefined;
5723
+ };
5724
+ type: "block.toplevel.end";
5725
+ sectionId: string;
5631
5726
  })[];
5632
5727
  }[];
5633
5728
  usage?: {
@@ -5787,3 +5882,40 @@ export declare const resListModels: import("arktype/internal/variants/object.ts"
5787
5882
  }, {}>;
5788
5883
  export type ResListModels = typeof resListModels.infer;
5789
5884
  export declare function isResListModels(obj: unknown): obj is ResListModels;
5885
+ export declare const AppModelKind: import("arktype/internal/variants/string.ts").StringType<"image" | "text", {}>;
5886
+ export type AppModelKind = typeof AppModelKind.infer;
5887
+ export declare const AppModelSource: import("arktype/internal/variants/string.ts").StringType<"account-setting" | "app-setting" | "catalog" | "owner-account-setting" | "platform-default", {}>;
5888
+ export type AppModelSource = typeof AppModelSource.infer;
5889
+ export declare const AppModelOption: import("arktype/internal/variants/object.ts").ObjectType<{
5890
+ id: string;
5891
+ name: string;
5892
+ description: string;
5893
+ kind: "image" | "text";
5894
+ source: "account-setting" | "app-setting" | "catalog" | "owner-account-setting" | "platform-default";
5895
+ isDefault: boolean;
5896
+ }, {}>;
5897
+ export type AppModelOption = typeof AppModelOption.infer;
5898
+ export declare const reqListAppModels: import("arktype/internal/variants/object.ts").ObjectType<{
5899
+ type: "vibes.diy.req-list-app-models";
5900
+ auth?: {
5901
+ type: "clerk" | "device-id" | "guest" | "ucan";
5902
+ token: string;
5903
+ } | undefined;
5904
+ ownerHandle: string;
5905
+ appSlug: string;
5906
+ }, {}>;
5907
+ export type ReqListAppModels = typeof reqListAppModels.infer;
5908
+ export declare function isReqListAppModels(obj: unknown): obj is ReqListAppModels;
5909
+ export declare const resListAppModels: import("arktype/internal/variants/object.ts").ObjectType<{
5910
+ type: "vibes.diy.res-list-app-models";
5911
+ models: {
5912
+ id: string;
5913
+ name: string;
5914
+ description: string;
5915
+ kind: "image" | "text";
5916
+ source: "account-setting" | "app-setting" | "catalog" | "owner-account-setting" | "platform-default";
5917
+ isDefault: boolean;
5918
+ }[];
5919
+ }, {}>;
5920
+ export type ResListAppModels = typeof resListAppModels.infer;
5921
+ export declare function isResListAppModels(obj: unknown): obj is ResListAppModels;