@vibes.diy/api-types 14.3.5 → 14.3.7
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/agent-tools.d.ts +3 -1
- package/agent-tools.js +3 -1
- package/agent-tools.js.map +1 -1
- package/app.d.ts +202 -202
- package/chat.d.ts +896 -896
- package/crm-fact-msg.d.ts +1 -1
- package/crm-fact-msg.js +1 -1
- package/crm-fact-msg.js.map +1 -1
- package/package.json +4 -4
- package/report.d.ts +27 -0
- package/report.js +9 -0
- package/report.js.map +1 -1
- package/settings.d.ts +15 -0
- package/settings.js +9 -1
- package/settings.js.map +1 -1
- package/vibes-diy-api.d.ts +1 -0
package/chat.d.ts
CHANGED
|
@@ -2102,208 +2102,6 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
|
|
|
2102
2102
|
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
2103
2103
|
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
2104
2104
|
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2105
|
-
blockId: string;
|
|
2106
|
-
streamId: string;
|
|
2107
|
-
seq: number;
|
|
2108
|
-
blockNr: number;
|
|
2109
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2110
|
-
type: "block.begin";
|
|
2111
|
-
} | {
|
|
2112
|
-
blockId: string;
|
|
2113
|
-
streamId: string;
|
|
2114
|
-
seq: number;
|
|
2115
|
-
blockNr: number;
|
|
2116
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2117
|
-
type: "block.end";
|
|
2118
|
-
stats: {
|
|
2119
|
-
toplevel: {
|
|
2120
|
-
lines: number;
|
|
2121
|
-
bytes: number;
|
|
2122
|
-
cnt?: number | undefined;
|
|
2123
|
-
};
|
|
2124
|
-
code: {
|
|
2125
|
-
lines: number;
|
|
2126
|
-
bytes: number;
|
|
2127
|
-
cnt?: number | undefined;
|
|
2128
|
-
};
|
|
2129
|
-
image: {
|
|
2130
|
-
lines: number;
|
|
2131
|
-
bytes: number;
|
|
2132
|
-
cnt?: number | undefined;
|
|
2133
|
-
};
|
|
2134
|
-
total: {
|
|
2135
|
-
lines: number;
|
|
2136
|
-
bytes: number;
|
|
2137
|
-
cnt?: number | undefined;
|
|
2138
|
-
};
|
|
2139
|
-
};
|
|
2140
|
-
usage: {
|
|
2141
|
-
given: {
|
|
2142
|
-
prompt_tokens: number;
|
|
2143
|
-
completion_tokens: number;
|
|
2144
|
-
total_tokens: number;
|
|
2145
|
-
}[];
|
|
2146
|
-
calculated: {
|
|
2147
|
-
prompt_tokens: number;
|
|
2148
|
-
completion_tokens: number;
|
|
2149
|
-
total_tokens: number;
|
|
2150
|
-
};
|
|
2151
|
-
};
|
|
2152
|
-
fsRef?: ((In: {
|
|
2153
|
-
appSlug: string;
|
|
2154
|
-
ownerHandle?: string | undefined;
|
|
2155
|
-
userSlug?: string | undefined;
|
|
2156
|
-
mode: "dev" | "production";
|
|
2157
|
-
fsId: string;
|
|
2158
|
-
}) => import("arktype").Out<{
|
|
2159
|
-
appSlug: string;
|
|
2160
|
-
mode: "dev" | "production";
|
|
2161
|
-
fsId: string;
|
|
2162
|
-
ownerHandle: string;
|
|
2163
|
-
}>) | undefined;
|
|
2164
|
-
touchedPaths?: string[] | undefined;
|
|
2165
|
-
settled?: {
|
|
2166
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2167
|
-
entryTouched: boolean;
|
|
2168
|
-
touchedCount: number;
|
|
2169
|
-
applied: boolean;
|
|
2170
|
-
} | undefined;
|
|
2171
|
-
} | {
|
|
2172
|
-
blockId: string;
|
|
2173
|
-
streamId: string;
|
|
2174
|
-
seq: number;
|
|
2175
|
-
blockNr: number;
|
|
2176
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2177
|
-
type: "block.stats";
|
|
2178
|
-
stats: {
|
|
2179
|
-
toplevel: {
|
|
2180
|
-
lines: number;
|
|
2181
|
-
bytes: number;
|
|
2182
|
-
cnt?: number | undefined;
|
|
2183
|
-
};
|
|
2184
|
-
code: {
|
|
2185
|
-
lines: number;
|
|
2186
|
-
bytes: number;
|
|
2187
|
-
cnt?: number | undefined;
|
|
2188
|
-
};
|
|
2189
|
-
image: {
|
|
2190
|
-
lines: number;
|
|
2191
|
-
bytes: number;
|
|
2192
|
-
cnt?: number | undefined;
|
|
2193
|
-
};
|
|
2194
|
-
total: {
|
|
2195
|
-
lines: number;
|
|
2196
|
-
bytes: number;
|
|
2197
|
-
cnt?: number | undefined;
|
|
2198
|
-
};
|
|
2199
|
-
};
|
|
2200
|
-
usage: {
|
|
2201
|
-
prompt_tokens: number;
|
|
2202
|
-
completion_tokens: number;
|
|
2203
|
-
total_tokens: number;
|
|
2204
|
-
};
|
|
2205
|
-
} | {
|
|
2206
|
-
blockId: string;
|
|
2207
|
-
streamId: string;
|
|
2208
|
-
seq: number;
|
|
2209
|
-
blockNr: number;
|
|
2210
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2211
|
-
stats: {
|
|
2212
|
-
lines: number;
|
|
2213
|
-
bytes: number;
|
|
2214
|
-
cnt?: number | undefined;
|
|
2215
|
-
};
|
|
2216
|
-
type: "block.image";
|
|
2217
|
-
sectionId: string;
|
|
2218
|
-
url?: string | undefined;
|
|
2219
|
-
uploadId?: string | undefined;
|
|
2220
|
-
cid?: string | undefined;
|
|
2221
|
-
mimeType?: string | undefined;
|
|
2222
|
-
size?: number | undefined;
|
|
2223
|
-
docWritten?: boolean | undefined;
|
|
2224
|
-
} | {
|
|
2225
|
-
blockId: string;
|
|
2226
|
-
streamId: string;
|
|
2227
|
-
seq: number;
|
|
2228
|
-
blockNr: number;
|
|
2229
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2230
|
-
type: "block.code.begin";
|
|
2231
|
-
sectionId: string;
|
|
2232
|
-
lang: string;
|
|
2233
|
-
path?: string | undefined;
|
|
2234
|
-
} | {
|
|
2235
|
-
blockId: string;
|
|
2236
|
-
streamId: string;
|
|
2237
|
-
seq: number;
|
|
2238
|
-
blockNr: number;
|
|
2239
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2240
|
-
lineNr: number;
|
|
2241
|
-
line: string;
|
|
2242
|
-
type: "block.code.line";
|
|
2243
|
-
sectionId: string;
|
|
2244
|
-
lang: string;
|
|
2245
|
-
path?: string | undefined;
|
|
2246
|
-
} | {
|
|
2247
|
-
blockId: string;
|
|
2248
|
-
streamId: string;
|
|
2249
|
-
seq: number;
|
|
2250
|
-
blockNr: number;
|
|
2251
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2252
|
-
stats: {
|
|
2253
|
-
lines: number;
|
|
2254
|
-
bytes: number;
|
|
2255
|
-
cnt?: number | undefined;
|
|
2256
|
-
};
|
|
2257
|
-
type: "block.code.end";
|
|
2258
|
-
sectionId: string;
|
|
2259
|
-
lang: string;
|
|
2260
|
-
path?: string | undefined;
|
|
2261
|
-
} | {
|
|
2262
|
-
blockId: string;
|
|
2263
|
-
streamId: string;
|
|
2264
|
-
seq: number;
|
|
2265
|
-
blockNr: number;
|
|
2266
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2267
|
-
type: "block.code.truncated";
|
|
2268
|
-
sectionId: string;
|
|
2269
|
-
lang: string;
|
|
2270
|
-
path?: string | undefined;
|
|
2271
|
-
reason: string;
|
|
2272
|
-
kind: string;
|
|
2273
|
-
truncatedAtLine: number;
|
|
2274
|
-
errorCount: number;
|
|
2275
|
-
} | {
|
|
2276
|
-
blockId: string;
|
|
2277
|
-
streamId: string;
|
|
2278
|
-
seq: number;
|
|
2279
|
-
blockNr: number;
|
|
2280
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2281
|
-
type: "block.toplevel.begin";
|
|
2282
|
-
sectionId: string;
|
|
2283
|
-
} | {
|
|
2284
|
-
blockId: string;
|
|
2285
|
-
streamId: string;
|
|
2286
|
-
seq: number;
|
|
2287
|
-
blockNr: number;
|
|
2288
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2289
|
-
lineNr: number;
|
|
2290
|
-
line: string;
|
|
2291
|
-
type: "block.toplevel.line";
|
|
2292
|
-
sectionId: string;
|
|
2293
|
-
} | {
|
|
2294
|
-
blockId: string;
|
|
2295
|
-
streamId: string;
|
|
2296
|
-
seq: number;
|
|
2297
|
-
blockNr: number;
|
|
2298
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2299
|
-
stats: {
|
|
2300
|
-
lines: number;
|
|
2301
|
-
bytes: number;
|
|
2302
|
-
cnt?: number | undefined;
|
|
2303
|
-
};
|
|
2304
|
-
type: "block.toplevel.end";
|
|
2305
|
-
sectionId: string;
|
|
2306
|
-
} | {
|
|
2307
2105
|
streamId: string;
|
|
2308
2106
|
chatId: string;
|
|
2309
2107
|
seq: number;
|
|
@@ -2711,264 +2509,264 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2711
2509
|
}[];
|
|
2712
2510
|
completedAt: string;
|
|
2713
2511
|
errorCode?: string | undefined;
|
|
2714
|
-
}
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
promptId: string;
|
|
2720
|
-
blockSeq: number;
|
|
2512
|
+
} | {
|
|
2513
|
+
blockId: string;
|
|
2514
|
+
streamId: string;
|
|
2515
|
+
seq: number;
|
|
2516
|
+
blockNr: number;
|
|
2721
2517
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
type: "block.end";
|
|
2736
|
-
stats: {
|
|
2737
|
-
toplevel: {
|
|
2738
|
-
lines: number;
|
|
2739
|
-
bytes: number;
|
|
2740
|
-
cnt?: number | undefined;
|
|
2741
|
-
};
|
|
2742
|
-
code: {
|
|
2743
|
-
lines: number;
|
|
2744
|
-
bytes: number;
|
|
2745
|
-
cnt?: number | undefined;
|
|
2746
|
-
};
|
|
2747
|
-
image: {
|
|
2748
|
-
lines: number;
|
|
2749
|
-
bytes: number;
|
|
2750
|
-
cnt?: number | undefined;
|
|
2751
|
-
};
|
|
2752
|
-
total: {
|
|
2753
|
-
lines: number;
|
|
2754
|
-
bytes: number;
|
|
2755
|
-
cnt?: number | undefined;
|
|
2756
|
-
};
|
|
2757
|
-
};
|
|
2758
|
-
usage: {
|
|
2759
|
-
given: {
|
|
2760
|
-
prompt_tokens: number;
|
|
2761
|
-
completion_tokens: number;
|
|
2762
|
-
total_tokens: number;
|
|
2763
|
-
}[];
|
|
2764
|
-
calculated: {
|
|
2765
|
-
prompt_tokens: number;
|
|
2766
|
-
completion_tokens: number;
|
|
2767
|
-
total_tokens: number;
|
|
2768
|
-
};
|
|
2518
|
+
type: "block.begin";
|
|
2519
|
+
} | {
|
|
2520
|
+
blockId: string;
|
|
2521
|
+
streamId: string;
|
|
2522
|
+
seq: number;
|
|
2523
|
+
blockNr: number;
|
|
2524
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2525
|
+
type: "block.end";
|
|
2526
|
+
stats: {
|
|
2527
|
+
toplevel: {
|
|
2528
|
+
lines: number;
|
|
2529
|
+
bytes: number;
|
|
2530
|
+
cnt?: number | undefined;
|
|
2769
2531
|
};
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
mode: "dev" | "production";
|
|
2775
|
-
fsId: string;
|
|
2776
|
-
}) => import("arktype").Out<{
|
|
2777
|
-
appSlug: string;
|
|
2778
|
-
mode: "dev" | "production";
|
|
2779
|
-
fsId: string;
|
|
2780
|
-
ownerHandle: string;
|
|
2781
|
-
}>) | undefined;
|
|
2782
|
-
touchedPaths?: string[] | undefined;
|
|
2783
|
-
settled?: {
|
|
2784
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2785
|
-
entryTouched: boolean;
|
|
2786
|
-
touchedCount: number;
|
|
2787
|
-
applied: boolean;
|
|
2788
|
-
} | undefined;
|
|
2789
|
-
} | {
|
|
2790
|
-
blockId: string;
|
|
2791
|
-
streamId: string;
|
|
2792
|
-
seq: number;
|
|
2793
|
-
blockNr: number;
|
|
2794
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2795
|
-
type: "block.stats";
|
|
2796
|
-
stats: {
|
|
2797
|
-
toplevel: {
|
|
2798
|
-
lines: number;
|
|
2799
|
-
bytes: number;
|
|
2800
|
-
cnt?: number | undefined;
|
|
2801
|
-
};
|
|
2802
|
-
code: {
|
|
2803
|
-
lines: number;
|
|
2804
|
-
bytes: number;
|
|
2805
|
-
cnt?: number | undefined;
|
|
2806
|
-
};
|
|
2807
|
-
image: {
|
|
2808
|
-
lines: number;
|
|
2809
|
-
bytes: number;
|
|
2810
|
-
cnt?: number | undefined;
|
|
2811
|
-
};
|
|
2812
|
-
total: {
|
|
2813
|
-
lines: number;
|
|
2814
|
-
bytes: number;
|
|
2815
|
-
cnt?: number | undefined;
|
|
2816
|
-
};
|
|
2532
|
+
code: {
|
|
2533
|
+
lines: number;
|
|
2534
|
+
bytes: number;
|
|
2535
|
+
cnt?: number | undefined;
|
|
2817
2536
|
};
|
|
2818
|
-
|
|
2537
|
+
image: {
|
|
2538
|
+
lines: number;
|
|
2539
|
+
bytes: number;
|
|
2540
|
+
cnt?: number | undefined;
|
|
2541
|
+
};
|
|
2542
|
+
total: {
|
|
2543
|
+
lines: number;
|
|
2544
|
+
bytes: number;
|
|
2545
|
+
cnt?: number | undefined;
|
|
2546
|
+
};
|
|
2547
|
+
};
|
|
2548
|
+
usage: {
|
|
2549
|
+
given: {
|
|
2550
|
+
prompt_tokens: number;
|
|
2551
|
+
completion_tokens: number;
|
|
2552
|
+
total_tokens: number;
|
|
2553
|
+
}[];
|
|
2554
|
+
calculated: {
|
|
2819
2555
|
prompt_tokens: number;
|
|
2820
2556
|
completion_tokens: number;
|
|
2821
2557
|
total_tokens: number;
|
|
2822
2558
|
};
|
|
2823
|
-
}
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2559
|
+
};
|
|
2560
|
+
fsRef?: ((In: {
|
|
2561
|
+
appSlug: string;
|
|
2562
|
+
ownerHandle?: string | undefined;
|
|
2563
|
+
userSlug?: string | undefined;
|
|
2564
|
+
mode: "dev" | "production";
|
|
2565
|
+
fsId: string;
|
|
2566
|
+
}) => import("arktype").Out<{
|
|
2567
|
+
appSlug: string;
|
|
2568
|
+
mode: "dev" | "production";
|
|
2569
|
+
fsId: string;
|
|
2570
|
+
ownerHandle: string;
|
|
2571
|
+
}>) | undefined;
|
|
2572
|
+
touchedPaths?: string[] | undefined;
|
|
2573
|
+
settled?: {
|
|
2574
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2575
|
+
entryTouched: boolean;
|
|
2576
|
+
touchedCount: number;
|
|
2577
|
+
applied: boolean;
|
|
2578
|
+
} | undefined;
|
|
2579
|
+
} | {
|
|
2580
|
+
blockId: string;
|
|
2581
|
+
streamId: string;
|
|
2582
|
+
seq: number;
|
|
2583
|
+
blockNr: number;
|
|
2584
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2585
|
+
type: "block.stats";
|
|
2586
|
+
stats: {
|
|
2587
|
+
toplevel: {
|
|
2830
2588
|
lines: number;
|
|
2831
2589
|
bytes: number;
|
|
2832
2590
|
cnt?: number | undefined;
|
|
2833
2591
|
};
|
|
2834
|
-
|
|
2835
|
-
sectionId: string;
|
|
2836
|
-
url?: string | undefined;
|
|
2837
|
-
uploadId?: string | undefined;
|
|
2838
|
-
cid?: string | undefined;
|
|
2839
|
-
mimeType?: string | undefined;
|
|
2840
|
-
size?: number | undefined;
|
|
2841
|
-
docWritten?: boolean | undefined;
|
|
2842
|
-
} | {
|
|
2843
|
-
blockId: string;
|
|
2844
|
-
streamId: string;
|
|
2845
|
-
seq: number;
|
|
2846
|
-
blockNr: number;
|
|
2847
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2848
|
-
type: "block.code.begin";
|
|
2849
|
-
sectionId: string;
|
|
2850
|
-
lang: string;
|
|
2851
|
-
path?: string | undefined;
|
|
2852
|
-
} | {
|
|
2853
|
-
blockId: string;
|
|
2854
|
-
streamId: string;
|
|
2855
|
-
seq: number;
|
|
2856
|
-
blockNr: number;
|
|
2857
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2858
|
-
lineNr: number;
|
|
2859
|
-
line: string;
|
|
2860
|
-
type: "block.code.line";
|
|
2861
|
-
sectionId: string;
|
|
2862
|
-
lang: string;
|
|
2863
|
-
path?: string | undefined;
|
|
2864
|
-
} | {
|
|
2865
|
-
blockId: string;
|
|
2866
|
-
streamId: string;
|
|
2867
|
-
seq: number;
|
|
2868
|
-
blockNr: number;
|
|
2869
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2870
|
-
stats: {
|
|
2592
|
+
code: {
|
|
2871
2593
|
lines: number;
|
|
2872
2594
|
bytes: number;
|
|
2873
2595
|
cnt?: number | undefined;
|
|
2874
2596
|
};
|
|
2875
|
-
|
|
2876
|
-
sectionId: string;
|
|
2877
|
-
lang: string;
|
|
2878
|
-
path?: string | 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.truncated";
|
|
2886
|
-
sectionId: string;
|
|
2887
|
-
lang: string;
|
|
2888
|
-
path?: string | undefined;
|
|
2889
|
-
reason: string;
|
|
2890
|
-
kind: string;
|
|
2891
|
-
truncatedAtLine: number;
|
|
2892
|
-
errorCount: number;
|
|
2893
|
-
} | {
|
|
2894
|
-
blockId: string;
|
|
2895
|
-
streamId: string;
|
|
2896
|
-
seq: number;
|
|
2897
|
-
blockNr: number;
|
|
2898
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2899
|
-
type: "block.toplevel.begin";
|
|
2900
|
-
sectionId: string;
|
|
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
|
-
lineNr: number;
|
|
2908
|
-
line: string;
|
|
2909
|
-
type: "block.toplevel.line";
|
|
2910
|
-
sectionId: string;
|
|
2911
|
-
} | {
|
|
2912
|
-
blockId: string;
|
|
2913
|
-
streamId: string;
|
|
2914
|
-
seq: number;
|
|
2915
|
-
blockNr: number;
|
|
2916
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2917
|
-
stats: {
|
|
2597
|
+
image: {
|
|
2918
2598
|
lines: number;
|
|
2919
2599
|
bytes: number;
|
|
2920
2600
|
cnt?: number | undefined;
|
|
2921
2601
|
};
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2602
|
+
total: {
|
|
2603
|
+
lines: number;
|
|
2604
|
+
bytes: number;
|
|
2605
|
+
cnt?: number | undefined;
|
|
2606
|
+
};
|
|
2607
|
+
};
|
|
2608
|
+
usage: {
|
|
2609
|
+
prompt_tokens: number;
|
|
2610
|
+
completion_tokens: number;
|
|
2611
|
+
total_tokens: number;
|
|
2612
|
+
};
|
|
2613
|
+
} | {
|
|
2614
|
+
blockId: string;
|
|
2615
|
+
streamId: string;
|
|
2616
|
+
seq: number;
|
|
2617
|
+
blockNr: number;
|
|
2618
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2619
|
+
stats: {
|
|
2620
|
+
lines: number;
|
|
2621
|
+
bytes: number;
|
|
2622
|
+
cnt?: number | undefined;
|
|
2623
|
+
};
|
|
2624
|
+
type: "block.image";
|
|
2625
|
+
sectionId: string;
|
|
2626
|
+
url?: string | undefined;
|
|
2627
|
+
uploadId?: string | undefined;
|
|
2628
|
+
cid?: string | undefined;
|
|
2629
|
+
mimeType?: string | undefined;
|
|
2630
|
+
size?: number | undefined;
|
|
2631
|
+
docWritten?: boolean | undefined;
|
|
2632
|
+
} | {
|
|
2633
|
+
blockId: string;
|
|
2634
|
+
streamId: string;
|
|
2635
|
+
seq: number;
|
|
2636
|
+
blockNr: number;
|
|
2637
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2638
|
+
type: "block.code.begin";
|
|
2639
|
+
sectionId: string;
|
|
2640
|
+
lang: string;
|
|
2641
|
+
path?: string | undefined;
|
|
2642
|
+
} | {
|
|
2643
|
+
blockId: string;
|
|
2644
|
+
streamId: string;
|
|
2645
|
+
seq: number;
|
|
2646
|
+
blockNr: number;
|
|
2647
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2648
|
+
lineNr: number;
|
|
2649
|
+
line: string;
|
|
2650
|
+
type: "block.code.line";
|
|
2651
|
+
sectionId: string;
|
|
2652
|
+
lang: string;
|
|
2653
|
+
path?: string | undefined;
|
|
2654
|
+
} | {
|
|
2655
|
+
blockId: string;
|
|
2656
|
+
streamId: string;
|
|
2657
|
+
seq: number;
|
|
2658
|
+
blockNr: number;
|
|
2659
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2660
|
+
stats: {
|
|
2661
|
+
lines: number;
|
|
2662
|
+
bytes: number;
|
|
2663
|
+
cnt?: number | undefined;
|
|
2664
|
+
};
|
|
2665
|
+
type: "block.code.end";
|
|
2666
|
+
sectionId: string;
|
|
2667
|
+
lang: string;
|
|
2668
|
+
path?: string | undefined;
|
|
2669
|
+
} | {
|
|
2670
|
+
blockId: string;
|
|
2671
|
+
streamId: string;
|
|
2672
|
+
seq: number;
|
|
2673
|
+
blockNr: number;
|
|
2674
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2675
|
+
type: "block.code.truncated";
|
|
2676
|
+
sectionId: string;
|
|
2677
|
+
lang: string;
|
|
2678
|
+
path?: string | undefined;
|
|
2679
|
+
reason: string;
|
|
2680
|
+
kind: string;
|
|
2681
|
+
truncatedAtLine: number;
|
|
2682
|
+
errorCount: number;
|
|
2683
|
+
} | {
|
|
2684
|
+
blockId: string;
|
|
2685
|
+
streamId: string;
|
|
2686
|
+
seq: number;
|
|
2687
|
+
blockNr: number;
|
|
2688
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2689
|
+
type: "block.toplevel.begin";
|
|
2690
|
+
sectionId: string;
|
|
2691
|
+
} | {
|
|
2692
|
+
blockId: string;
|
|
2693
|
+
streamId: string;
|
|
2694
|
+
seq: number;
|
|
2695
|
+
blockNr: number;
|
|
2696
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2697
|
+
lineNr: number;
|
|
2698
|
+
line: string;
|
|
2699
|
+
type: "block.toplevel.line";
|
|
2700
|
+
sectionId: string;
|
|
2701
|
+
} | {
|
|
2702
|
+
blockId: string;
|
|
2703
|
+
streamId: string;
|
|
2704
|
+
seq: number;
|
|
2705
|
+
blockNr: number;
|
|
2706
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2707
|
+
stats: {
|
|
2708
|
+
lines: number;
|
|
2709
|
+
bytes: number;
|
|
2710
|
+
cnt?: number | undefined;
|
|
2711
|
+
};
|
|
2712
|
+
type: "block.toplevel.end";
|
|
2713
|
+
sectionId: string;
|
|
2714
|
+
}, {}>;
|
|
2715
|
+
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2716
|
+
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2717
|
+
type: "vibes.diy.section-event";
|
|
2718
|
+
chatId: string;
|
|
2719
|
+
promptId: string;
|
|
2720
|
+
blockSeq: number;
|
|
2721
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2722
|
+
blocks: ({
|
|
2723
|
+
streamId: string;
|
|
2724
|
+
chatId: string;
|
|
2725
|
+
seq: number;
|
|
2726
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2727
|
+
type: "prompt.block-begin";
|
|
2728
|
+
} | {
|
|
2729
|
+
streamId: string;
|
|
2730
|
+
chatId: string;
|
|
2731
|
+
seq: number;
|
|
2732
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2733
|
+
type: "prompt.block-end";
|
|
2734
|
+
} | {
|
|
2735
|
+
streamId: string;
|
|
2736
|
+
chatId: string;
|
|
2737
|
+
seq: number;
|
|
2738
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2739
|
+
type: "prompt.req";
|
|
2740
|
+
request: {
|
|
2741
|
+
model?: string | undefined;
|
|
2742
|
+
messages: ({
|
|
2743
|
+
role: "assistant" | "system" | "user";
|
|
2744
|
+
content: ({
|
|
2745
|
+
type: "text";
|
|
2746
|
+
text: string;
|
|
2747
|
+
cache_control?: {
|
|
2748
|
+
type: "ephemeral";
|
|
2749
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2750
|
+
} | undefined;
|
|
2751
|
+
} | {
|
|
2752
|
+
type: "image_url";
|
|
2753
|
+
image_url: {
|
|
2754
|
+
url: string;
|
|
2755
|
+
};
|
|
2756
|
+
cache_control?: {
|
|
2757
|
+
type: "ephemeral";
|
|
2758
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2759
|
+
} | undefined;
|
|
2760
|
+
} | {
|
|
2761
|
+
type: "vibes_file";
|
|
2762
|
+
uploadId: string;
|
|
2763
|
+
name: string;
|
|
2764
|
+
mimeType: string;
|
|
2765
|
+
kind: "image" | "text";
|
|
2766
|
+
originalUploadId?: string | undefined;
|
|
2767
|
+
size?: number | undefined;
|
|
2768
|
+
})[];
|
|
2769
|
+
} | {
|
|
2972
2770
|
role: "assistant";
|
|
2973
2771
|
content: string | null;
|
|
2974
2772
|
tool_calls: {
|
|
@@ -3329,40 +3127,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3329
3127
|
}[];
|
|
3330
3128
|
completedAt: string;
|
|
3331
3129
|
errorCode?: string | undefined;
|
|
3332
|
-
}
|
|
3333
|
-
initiator?: "platform" | "seed" | undefined;
|
|
3334
|
-
}, {}>;
|
|
3335
|
-
export type SectionEvent = typeof sectionEvent.infer;
|
|
3336
|
-
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3337
|
-
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3338
|
-
type: "vibes.diy.req-get-chat-response";
|
|
3339
|
-
historyPage?: {
|
|
3340
|
-
limit: number;
|
|
3341
|
-
before: {
|
|
3342
|
-
created: string;
|
|
3343
|
-
promptId: string;
|
|
3344
|
-
};
|
|
3345
|
-
} | undefined;
|
|
3346
|
-
auth?: {
|
|
3347
|
-
type: "clerk" | "device-id" | "ucan";
|
|
3348
|
-
token: string;
|
|
3349
|
-
} | undefined;
|
|
3350
|
-
guest?: {
|
|
3351
|
-
type: "guest-build";
|
|
3352
|
-
token: string;
|
|
3353
|
-
} | undefined;
|
|
3354
|
-
ownerHandle: string;
|
|
3355
|
-
appSlug: string;
|
|
3356
|
-
chatId?: string | undefined;
|
|
3357
|
-
promptId?: string | undefined;
|
|
3358
|
-
usageOnly?: boolean | undefined;
|
|
3359
|
-
}, {}>;
|
|
3360
|
-
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3361
|
-
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3362
|
-
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3363
|
-
blockSeq: number;
|
|
3364
|
-
created?: string | undefined;
|
|
3365
|
-
blocks: ({
|
|
3130
|
+
} | {
|
|
3366
3131
|
blockId: string;
|
|
3367
3132
|
streamId: string;
|
|
3368
3133
|
seq: number;
|
|
@@ -3564,7 +3329,40 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3564
3329
|
};
|
|
3565
3330
|
type: "block.toplevel.end";
|
|
3566
3331
|
sectionId: string;
|
|
3567
|
-
}
|
|
3332
|
+
})[];
|
|
3333
|
+
initiator?: "platform" | "seed" | undefined;
|
|
3334
|
+
}, {}>;
|
|
3335
|
+
export type SectionEvent = typeof sectionEvent.infer;
|
|
3336
|
+
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3337
|
+
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3338
|
+
type: "vibes.diy.req-get-chat-response";
|
|
3339
|
+
historyPage?: {
|
|
3340
|
+
limit: number;
|
|
3341
|
+
before: {
|
|
3342
|
+
created: string;
|
|
3343
|
+
promptId: string;
|
|
3344
|
+
};
|
|
3345
|
+
} | undefined;
|
|
3346
|
+
auth?: {
|
|
3347
|
+
type: "clerk" | "device-id" | "ucan";
|
|
3348
|
+
token: string;
|
|
3349
|
+
} | undefined;
|
|
3350
|
+
guest?: {
|
|
3351
|
+
type: "guest-build";
|
|
3352
|
+
token: string;
|
|
3353
|
+
} | undefined;
|
|
3354
|
+
ownerHandle: string;
|
|
3355
|
+
appSlug: string;
|
|
3356
|
+
chatId?: string | undefined;
|
|
3357
|
+
promptId?: string | undefined;
|
|
3358
|
+
usageOnly?: boolean | undefined;
|
|
3359
|
+
}, {}>;
|
|
3360
|
+
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3361
|
+
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3362
|
+
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3363
|
+
blockSeq: number;
|
|
3364
|
+
created?: string | undefined;
|
|
3365
|
+
blocks: ({
|
|
3568
3366
|
streamId: string;
|
|
3569
3367
|
chatId: string;
|
|
3570
3368
|
seq: number;
|
|
@@ -3972,229 +3770,229 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3972
3770
|
}[];
|
|
3973
3771
|
completedAt: string;
|
|
3974
3772
|
errorCode?: string | undefined;
|
|
3975
|
-
}
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
created?: string | undefined;
|
|
3995
|
-
blocks: ({
|
|
3996
|
-
blockId: string;
|
|
3997
|
-
streamId: string;
|
|
3998
|
-
seq: number;
|
|
3999
|
-
blockNr: number;
|
|
4000
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4001
|
-
type: "block.begin";
|
|
4002
|
-
} | {
|
|
4003
|
-
blockId: string;
|
|
4004
|
-
streamId: string;
|
|
4005
|
-
seq: number;
|
|
4006
|
-
blockNr: number;
|
|
4007
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4008
|
-
type: "block.end";
|
|
4009
|
-
stats: {
|
|
4010
|
-
toplevel: {
|
|
4011
|
-
lines: number;
|
|
4012
|
-
bytes: number;
|
|
4013
|
-
cnt?: number | undefined;
|
|
4014
|
-
};
|
|
4015
|
-
code: {
|
|
4016
|
-
lines: number;
|
|
4017
|
-
bytes: number;
|
|
4018
|
-
cnt?: number | undefined;
|
|
4019
|
-
};
|
|
4020
|
-
image: {
|
|
4021
|
-
lines: number;
|
|
4022
|
-
bytes: number;
|
|
4023
|
-
cnt?: number | undefined;
|
|
4024
|
-
};
|
|
4025
|
-
total: {
|
|
4026
|
-
lines: number;
|
|
4027
|
-
bytes: number;
|
|
4028
|
-
cnt?: number | undefined;
|
|
4029
|
-
};
|
|
3773
|
+
} | {
|
|
3774
|
+
blockId: string;
|
|
3775
|
+
streamId: string;
|
|
3776
|
+
seq: number;
|
|
3777
|
+
blockNr: number;
|
|
3778
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3779
|
+
type: "block.begin";
|
|
3780
|
+
} | {
|
|
3781
|
+
blockId: string;
|
|
3782
|
+
streamId: string;
|
|
3783
|
+
seq: number;
|
|
3784
|
+
blockNr: number;
|
|
3785
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3786
|
+
type: "block.end";
|
|
3787
|
+
stats: {
|
|
3788
|
+
toplevel: {
|
|
3789
|
+
lines: number;
|
|
3790
|
+
bytes: number;
|
|
3791
|
+
cnt?: number | undefined;
|
|
4030
3792
|
};
|
|
4031
|
-
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
total_tokens: number;
|
|
4036
|
-
}[];
|
|
4037
|
-
calculated: {
|
|
4038
|
-
prompt_tokens: number;
|
|
4039
|
-
completion_tokens: number;
|
|
4040
|
-
total_tokens: number;
|
|
4041
|
-
};
|
|
3793
|
+
code: {
|
|
3794
|
+
lines: number;
|
|
3795
|
+
bytes: number;
|
|
3796
|
+
cnt?: number | undefined;
|
|
4042
3797
|
};
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
mode: "dev" | "production";
|
|
4048
|
-
fsId: string;
|
|
4049
|
-
}) => import("arktype").Out<{
|
|
4050
|
-
appSlug: string;
|
|
4051
|
-
mode: "dev" | "production";
|
|
4052
|
-
fsId: string;
|
|
4053
|
-
ownerHandle: string;
|
|
4054
|
-
}>) | undefined;
|
|
4055
|
-
touchedPaths?: string[] | undefined;
|
|
4056
|
-
settled?: {
|
|
4057
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4058
|
-
entryTouched: boolean;
|
|
4059
|
-
touchedCount: number;
|
|
4060
|
-
applied: boolean;
|
|
4061
|
-
} | undefined;
|
|
4062
|
-
} | {
|
|
4063
|
-
blockId: string;
|
|
4064
|
-
streamId: string;
|
|
4065
|
-
seq: number;
|
|
4066
|
-
blockNr: number;
|
|
4067
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4068
|
-
type: "block.stats";
|
|
4069
|
-
stats: {
|
|
4070
|
-
toplevel: {
|
|
4071
|
-
lines: number;
|
|
4072
|
-
bytes: number;
|
|
4073
|
-
cnt?: number | undefined;
|
|
4074
|
-
};
|
|
4075
|
-
code: {
|
|
4076
|
-
lines: number;
|
|
4077
|
-
bytes: number;
|
|
4078
|
-
cnt?: number | undefined;
|
|
4079
|
-
};
|
|
4080
|
-
image: {
|
|
4081
|
-
lines: number;
|
|
4082
|
-
bytes: number;
|
|
4083
|
-
cnt?: number | undefined;
|
|
4084
|
-
};
|
|
4085
|
-
total: {
|
|
4086
|
-
lines: number;
|
|
4087
|
-
bytes: number;
|
|
4088
|
-
cnt?: number | undefined;
|
|
4089
|
-
};
|
|
3798
|
+
image: {
|
|
3799
|
+
lines: number;
|
|
3800
|
+
bytes: number;
|
|
3801
|
+
cnt?: number | undefined;
|
|
4090
3802
|
};
|
|
4091
|
-
|
|
3803
|
+
total: {
|
|
3804
|
+
lines: number;
|
|
3805
|
+
bytes: number;
|
|
3806
|
+
cnt?: number | undefined;
|
|
3807
|
+
};
|
|
3808
|
+
};
|
|
3809
|
+
usage: {
|
|
3810
|
+
given: {
|
|
3811
|
+
prompt_tokens: number;
|
|
3812
|
+
completion_tokens: number;
|
|
3813
|
+
total_tokens: number;
|
|
3814
|
+
}[];
|
|
3815
|
+
calculated: {
|
|
4092
3816
|
prompt_tokens: number;
|
|
4093
3817
|
completion_tokens: number;
|
|
4094
3818
|
total_tokens: number;
|
|
4095
3819
|
};
|
|
4096
|
-
}
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
3820
|
+
};
|
|
3821
|
+
fsRef?: ((In: {
|
|
3822
|
+
appSlug: string;
|
|
3823
|
+
ownerHandle?: string | undefined;
|
|
3824
|
+
userSlug?: string | undefined;
|
|
3825
|
+
mode: "dev" | "production";
|
|
3826
|
+
fsId: string;
|
|
3827
|
+
}) => import("arktype").Out<{
|
|
3828
|
+
appSlug: string;
|
|
3829
|
+
mode: "dev" | "production";
|
|
3830
|
+
fsId: string;
|
|
3831
|
+
ownerHandle: string;
|
|
3832
|
+
}>) | undefined;
|
|
3833
|
+
touchedPaths?: string[] | undefined;
|
|
3834
|
+
settled?: {
|
|
3835
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
3836
|
+
entryTouched: boolean;
|
|
3837
|
+
touchedCount: number;
|
|
3838
|
+
applied: boolean;
|
|
3839
|
+
} | undefined;
|
|
3840
|
+
} | {
|
|
3841
|
+
blockId: string;
|
|
3842
|
+
streamId: string;
|
|
3843
|
+
seq: number;
|
|
3844
|
+
blockNr: number;
|
|
3845
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3846
|
+
type: "block.stats";
|
|
3847
|
+
stats: {
|
|
3848
|
+
toplevel: {
|
|
4103
3849
|
lines: number;
|
|
4104
3850
|
bytes: number;
|
|
4105
3851
|
cnt?: number | undefined;
|
|
4106
3852
|
};
|
|
4107
|
-
|
|
4108
|
-
sectionId: string;
|
|
4109
|
-
url?: string | undefined;
|
|
4110
|
-
uploadId?: string | undefined;
|
|
4111
|
-
cid?: string | undefined;
|
|
4112
|
-
mimeType?: string | undefined;
|
|
4113
|
-
size?: number | undefined;
|
|
4114
|
-
docWritten?: boolean | undefined;
|
|
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.code.begin";
|
|
4122
|
-
sectionId: string;
|
|
4123
|
-
lang: string;
|
|
4124
|
-
path?: string | undefined;
|
|
4125
|
-
} | {
|
|
4126
|
-
blockId: string;
|
|
4127
|
-
streamId: string;
|
|
4128
|
-
seq: number;
|
|
4129
|
-
blockNr: number;
|
|
4130
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4131
|
-
lineNr: number;
|
|
4132
|
-
line: string;
|
|
4133
|
-
type: "block.code.line";
|
|
4134
|
-
sectionId: string;
|
|
4135
|
-
lang: string;
|
|
4136
|
-
path?: string | undefined;
|
|
4137
|
-
} | {
|
|
4138
|
-
blockId: string;
|
|
4139
|
-
streamId: string;
|
|
4140
|
-
seq: number;
|
|
4141
|
-
blockNr: number;
|
|
4142
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4143
|
-
stats: {
|
|
3853
|
+
code: {
|
|
4144
3854
|
lines: number;
|
|
4145
3855
|
bytes: number;
|
|
4146
3856
|
cnt?: number | undefined;
|
|
4147
3857
|
};
|
|
4148
|
-
|
|
4149
|
-
sectionId: string;
|
|
4150
|
-
lang: string;
|
|
4151
|
-
path?: string | undefined;
|
|
4152
|
-
} | {
|
|
4153
|
-
blockId: string;
|
|
4154
|
-
streamId: string;
|
|
4155
|
-
seq: number;
|
|
4156
|
-
blockNr: number;
|
|
4157
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4158
|
-
type: "block.code.truncated";
|
|
4159
|
-
sectionId: string;
|
|
4160
|
-
lang: string;
|
|
4161
|
-
path?: string | undefined;
|
|
4162
|
-
reason: string;
|
|
4163
|
-
kind: string;
|
|
4164
|
-
truncatedAtLine: number;
|
|
4165
|
-
errorCount: number;
|
|
4166
|
-
} | {
|
|
4167
|
-
blockId: string;
|
|
4168
|
-
streamId: string;
|
|
4169
|
-
seq: number;
|
|
4170
|
-
blockNr: number;
|
|
4171
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4172
|
-
type: "block.toplevel.begin";
|
|
4173
|
-
sectionId: string;
|
|
4174
|
-
} | {
|
|
4175
|
-
blockId: string;
|
|
4176
|
-
streamId: string;
|
|
4177
|
-
seq: number;
|
|
4178
|
-
blockNr: number;
|
|
4179
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4180
|
-
lineNr: number;
|
|
4181
|
-
line: string;
|
|
4182
|
-
type: "block.toplevel.line";
|
|
4183
|
-
sectionId: string;
|
|
4184
|
-
} | {
|
|
4185
|
-
blockId: string;
|
|
4186
|
-
streamId: string;
|
|
4187
|
-
seq: number;
|
|
4188
|
-
blockNr: number;
|
|
4189
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4190
|
-
stats: {
|
|
3858
|
+
image: {
|
|
4191
3859
|
lines: number;
|
|
4192
3860
|
bytes: number;
|
|
4193
3861
|
cnt?: number | undefined;
|
|
4194
3862
|
};
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
3863
|
+
total: {
|
|
3864
|
+
lines: number;
|
|
3865
|
+
bytes: number;
|
|
3866
|
+
cnt?: number | undefined;
|
|
3867
|
+
};
|
|
3868
|
+
};
|
|
3869
|
+
usage: {
|
|
3870
|
+
prompt_tokens: number;
|
|
3871
|
+
completion_tokens: number;
|
|
3872
|
+
total_tokens: number;
|
|
3873
|
+
};
|
|
3874
|
+
} | {
|
|
3875
|
+
blockId: string;
|
|
3876
|
+
streamId: string;
|
|
3877
|
+
seq: number;
|
|
3878
|
+
blockNr: number;
|
|
3879
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3880
|
+
stats: {
|
|
3881
|
+
lines: number;
|
|
3882
|
+
bytes: number;
|
|
3883
|
+
cnt?: number | undefined;
|
|
3884
|
+
};
|
|
3885
|
+
type: "block.image";
|
|
3886
|
+
sectionId: string;
|
|
3887
|
+
url?: string | undefined;
|
|
3888
|
+
uploadId?: string | undefined;
|
|
3889
|
+
cid?: string | undefined;
|
|
3890
|
+
mimeType?: string | undefined;
|
|
3891
|
+
size?: number | undefined;
|
|
3892
|
+
docWritten?: boolean | undefined;
|
|
3893
|
+
} | {
|
|
3894
|
+
blockId: string;
|
|
3895
|
+
streamId: string;
|
|
3896
|
+
seq: number;
|
|
3897
|
+
blockNr: number;
|
|
3898
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3899
|
+
type: "block.code.begin";
|
|
3900
|
+
sectionId: string;
|
|
3901
|
+
lang: string;
|
|
3902
|
+
path?: string | undefined;
|
|
3903
|
+
} | {
|
|
3904
|
+
blockId: string;
|
|
3905
|
+
streamId: string;
|
|
3906
|
+
seq: number;
|
|
3907
|
+
blockNr: number;
|
|
3908
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3909
|
+
lineNr: number;
|
|
3910
|
+
line: string;
|
|
3911
|
+
type: "block.code.line";
|
|
3912
|
+
sectionId: string;
|
|
3913
|
+
lang: string;
|
|
3914
|
+
path?: string | undefined;
|
|
3915
|
+
} | {
|
|
3916
|
+
blockId: string;
|
|
3917
|
+
streamId: string;
|
|
3918
|
+
seq: number;
|
|
3919
|
+
blockNr: number;
|
|
3920
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3921
|
+
stats: {
|
|
3922
|
+
lines: number;
|
|
3923
|
+
bytes: number;
|
|
3924
|
+
cnt?: number | undefined;
|
|
3925
|
+
};
|
|
3926
|
+
type: "block.code.end";
|
|
3927
|
+
sectionId: string;
|
|
3928
|
+
lang: string;
|
|
3929
|
+
path?: string | undefined;
|
|
3930
|
+
} | {
|
|
3931
|
+
blockId: string;
|
|
3932
|
+
streamId: string;
|
|
3933
|
+
seq: number;
|
|
3934
|
+
blockNr: number;
|
|
3935
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3936
|
+
type: "block.code.truncated";
|
|
3937
|
+
sectionId: string;
|
|
3938
|
+
lang: string;
|
|
3939
|
+
path?: string | undefined;
|
|
3940
|
+
reason: string;
|
|
3941
|
+
kind: string;
|
|
3942
|
+
truncatedAtLine: number;
|
|
3943
|
+
errorCount: number;
|
|
3944
|
+
} | {
|
|
3945
|
+
blockId: string;
|
|
3946
|
+
streamId: string;
|
|
3947
|
+
seq: number;
|
|
3948
|
+
blockNr: number;
|
|
3949
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3950
|
+
type: "block.toplevel.begin";
|
|
3951
|
+
sectionId: string;
|
|
3952
|
+
} | {
|
|
3953
|
+
blockId: string;
|
|
3954
|
+
streamId: string;
|
|
3955
|
+
seq: number;
|
|
3956
|
+
blockNr: number;
|
|
3957
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3958
|
+
lineNr: number;
|
|
3959
|
+
line: string;
|
|
3960
|
+
type: "block.toplevel.line";
|
|
3961
|
+
sectionId: string;
|
|
3962
|
+
} | {
|
|
3963
|
+
blockId: string;
|
|
3964
|
+
streamId: string;
|
|
3965
|
+
seq: number;
|
|
3966
|
+
blockNr: number;
|
|
3967
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3968
|
+
stats: {
|
|
3969
|
+
lines: number;
|
|
3970
|
+
bytes: number;
|
|
3971
|
+
cnt?: number | undefined;
|
|
3972
|
+
};
|
|
3973
|
+
type: "block.toplevel.end";
|
|
3974
|
+
sectionId: string;
|
|
3975
|
+
})[];
|
|
3976
|
+
}, {}>;
|
|
3977
|
+
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
3978
|
+
export declare const promptUsage: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3979
|
+
inputTokens: number | null;
|
|
3980
|
+
outputTokens: number | null;
|
|
3981
|
+
cachedTokens: number | null;
|
|
3982
|
+
costUsd: number | null;
|
|
3983
|
+
lane: "agent-build" | "agent-conversation" | "codegen" | null;
|
|
3984
|
+
}, {}>;
|
|
3985
|
+
export type PromptUsage = typeof promptUsage.infer;
|
|
3986
|
+
export declare const resChatResponseTurn: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3987
|
+
initiator?: "platform" | "seed" | undefined;
|
|
3988
|
+
chatId: string;
|
|
3989
|
+
promptId: string;
|
|
3990
|
+
created: string;
|
|
3991
|
+
fsId?: string | undefined;
|
|
3992
|
+
sections: {
|
|
3993
|
+
blockSeq: number;
|
|
3994
|
+
created?: string | undefined;
|
|
3995
|
+
blocks: ({
|
|
4198
3996
|
streamId: string;
|
|
4199
3997
|
chatId: string;
|
|
4200
3998
|
seq: number;
|
|
@@ -4602,241 +4400,241 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4602
4400
|
}[];
|
|
4603
4401
|
completedAt: string;
|
|
4604
4402
|
errorCode?: string | undefined;
|
|
4605
|
-
}
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
} | undefined;
|
|
4625
|
-
chatId?: string | undefined;
|
|
4626
|
-
ownerHandle: string;
|
|
4627
|
-
appSlug: string;
|
|
4628
|
-
turns: {
|
|
4629
|
-
initiator?: "platform" | "seed" | undefined;
|
|
4630
|
-
chatId: string;
|
|
4631
|
-
promptId: string;
|
|
4632
|
-
created: string;
|
|
4633
|
-
fsId?: string | undefined;
|
|
4634
|
-
sections: {
|
|
4635
|
-
blockSeq: number;
|
|
4636
|
-
created?: string | undefined;
|
|
4637
|
-
blocks: ({
|
|
4638
|
-
blockId: string;
|
|
4639
|
-
streamId: string;
|
|
4640
|
-
seq: number;
|
|
4641
|
-
blockNr: number;
|
|
4642
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4643
|
-
type: "block.begin";
|
|
4644
|
-
} | {
|
|
4645
|
-
blockId: string;
|
|
4646
|
-
streamId: string;
|
|
4647
|
-
seq: number;
|
|
4648
|
-
blockNr: number;
|
|
4649
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4650
|
-
type: "block.end";
|
|
4651
|
-
stats: {
|
|
4652
|
-
toplevel: {
|
|
4653
|
-
lines: number;
|
|
4654
|
-
bytes: number;
|
|
4655
|
-
cnt?: number | undefined;
|
|
4656
|
-
};
|
|
4657
|
-
code: {
|
|
4658
|
-
lines: number;
|
|
4659
|
-
bytes: number;
|
|
4660
|
-
cnt?: number | undefined;
|
|
4661
|
-
};
|
|
4662
|
-
image: {
|
|
4663
|
-
lines: number;
|
|
4664
|
-
bytes: number;
|
|
4665
|
-
cnt?: number | undefined;
|
|
4666
|
-
};
|
|
4667
|
-
total: {
|
|
4668
|
-
lines: number;
|
|
4669
|
-
bytes: number;
|
|
4670
|
-
cnt?: number | undefined;
|
|
4671
|
-
};
|
|
4403
|
+
} | {
|
|
4404
|
+
blockId: string;
|
|
4405
|
+
streamId: string;
|
|
4406
|
+
seq: number;
|
|
4407
|
+
blockNr: number;
|
|
4408
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4409
|
+
type: "block.begin";
|
|
4410
|
+
} | {
|
|
4411
|
+
blockId: string;
|
|
4412
|
+
streamId: string;
|
|
4413
|
+
seq: number;
|
|
4414
|
+
blockNr: number;
|
|
4415
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4416
|
+
type: "block.end";
|
|
4417
|
+
stats: {
|
|
4418
|
+
toplevel: {
|
|
4419
|
+
lines: number;
|
|
4420
|
+
bytes: number;
|
|
4421
|
+
cnt?: number | undefined;
|
|
4672
4422
|
};
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
total_tokens: number;
|
|
4678
|
-
}[];
|
|
4679
|
-
calculated: {
|
|
4680
|
-
prompt_tokens: number;
|
|
4681
|
-
completion_tokens: number;
|
|
4682
|
-
total_tokens: number;
|
|
4683
|
-
};
|
|
4423
|
+
code: {
|
|
4424
|
+
lines: number;
|
|
4425
|
+
bytes: number;
|
|
4426
|
+
cnt?: number | undefined;
|
|
4684
4427
|
};
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
mode: "dev" | "production";
|
|
4690
|
-
fsId: string;
|
|
4691
|
-
}) => import("arktype").Out<{
|
|
4692
|
-
appSlug: string;
|
|
4693
|
-
mode: "dev" | "production";
|
|
4694
|
-
fsId: string;
|
|
4695
|
-
ownerHandle: string;
|
|
4696
|
-
}>) | undefined;
|
|
4697
|
-
touchedPaths?: string[] | undefined;
|
|
4698
|
-
settled?: {
|
|
4699
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4700
|
-
entryTouched: boolean;
|
|
4701
|
-
touchedCount: number;
|
|
4702
|
-
applied: boolean;
|
|
4703
|
-
} | undefined;
|
|
4704
|
-
} | {
|
|
4705
|
-
blockId: string;
|
|
4706
|
-
streamId: string;
|
|
4707
|
-
seq: number;
|
|
4708
|
-
blockNr: number;
|
|
4709
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4710
|
-
type: "block.stats";
|
|
4711
|
-
stats: {
|
|
4712
|
-
toplevel: {
|
|
4713
|
-
lines: number;
|
|
4714
|
-
bytes: number;
|
|
4715
|
-
cnt?: number | undefined;
|
|
4716
|
-
};
|
|
4717
|
-
code: {
|
|
4718
|
-
lines: number;
|
|
4719
|
-
bytes: number;
|
|
4720
|
-
cnt?: number | undefined;
|
|
4721
|
-
};
|
|
4722
|
-
image: {
|
|
4723
|
-
lines: number;
|
|
4724
|
-
bytes: number;
|
|
4725
|
-
cnt?: number | undefined;
|
|
4726
|
-
};
|
|
4727
|
-
total: {
|
|
4728
|
-
lines: number;
|
|
4729
|
-
bytes: number;
|
|
4730
|
-
cnt?: number | undefined;
|
|
4731
|
-
};
|
|
4428
|
+
image: {
|
|
4429
|
+
lines: number;
|
|
4430
|
+
bytes: number;
|
|
4431
|
+
cnt?: number | undefined;
|
|
4732
4432
|
};
|
|
4733
|
-
|
|
4433
|
+
total: {
|
|
4434
|
+
lines: number;
|
|
4435
|
+
bytes: number;
|
|
4436
|
+
cnt?: number | undefined;
|
|
4437
|
+
};
|
|
4438
|
+
};
|
|
4439
|
+
usage: {
|
|
4440
|
+
given: {
|
|
4441
|
+
prompt_tokens: number;
|
|
4442
|
+
completion_tokens: number;
|
|
4443
|
+
total_tokens: number;
|
|
4444
|
+
}[];
|
|
4445
|
+
calculated: {
|
|
4734
4446
|
prompt_tokens: number;
|
|
4735
4447
|
completion_tokens: number;
|
|
4736
4448
|
total_tokens: number;
|
|
4737
4449
|
};
|
|
4738
|
-
}
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4450
|
+
};
|
|
4451
|
+
fsRef?: ((In: {
|
|
4452
|
+
appSlug: string;
|
|
4453
|
+
ownerHandle?: string | undefined;
|
|
4454
|
+
userSlug?: string | undefined;
|
|
4455
|
+
mode: "dev" | "production";
|
|
4456
|
+
fsId: string;
|
|
4457
|
+
}) => import("arktype").Out<{
|
|
4458
|
+
appSlug: string;
|
|
4459
|
+
mode: "dev" | "production";
|
|
4460
|
+
fsId: string;
|
|
4461
|
+
ownerHandle: string;
|
|
4462
|
+
}>) | undefined;
|
|
4463
|
+
touchedPaths?: string[] | undefined;
|
|
4464
|
+
settled?: {
|
|
4465
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4466
|
+
entryTouched: boolean;
|
|
4467
|
+
touchedCount: number;
|
|
4468
|
+
applied: boolean;
|
|
4469
|
+
} | undefined;
|
|
4470
|
+
} | {
|
|
4471
|
+
blockId: string;
|
|
4472
|
+
streamId: string;
|
|
4473
|
+
seq: number;
|
|
4474
|
+
blockNr: number;
|
|
4475
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4476
|
+
type: "block.stats";
|
|
4477
|
+
stats: {
|
|
4478
|
+
toplevel: {
|
|
4745
4479
|
lines: number;
|
|
4746
4480
|
bytes: number;
|
|
4747
4481
|
cnt?: number | undefined;
|
|
4748
4482
|
};
|
|
4749
|
-
|
|
4750
|
-
sectionId: string;
|
|
4751
|
-
url?: string | undefined;
|
|
4752
|
-
uploadId?: string | undefined;
|
|
4753
|
-
cid?: string | undefined;
|
|
4754
|
-
mimeType?: string | undefined;
|
|
4755
|
-
size?: number | undefined;
|
|
4756
|
-
docWritten?: boolean | undefined;
|
|
4757
|
-
} | {
|
|
4758
|
-
blockId: string;
|
|
4759
|
-
streamId: string;
|
|
4760
|
-
seq: number;
|
|
4761
|
-
blockNr: number;
|
|
4762
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4763
|
-
type: "block.code.begin";
|
|
4764
|
-
sectionId: string;
|
|
4765
|
-
lang: string;
|
|
4766
|
-
path?: string | undefined;
|
|
4767
|
-
} | {
|
|
4768
|
-
blockId: string;
|
|
4769
|
-
streamId: string;
|
|
4770
|
-
seq: number;
|
|
4771
|
-
blockNr: number;
|
|
4772
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4773
|
-
lineNr: number;
|
|
4774
|
-
line: string;
|
|
4775
|
-
type: "block.code.line";
|
|
4776
|
-
sectionId: string;
|
|
4777
|
-
lang: string;
|
|
4778
|
-
path?: string | undefined;
|
|
4779
|
-
} | {
|
|
4780
|
-
blockId: string;
|
|
4781
|
-
streamId: string;
|
|
4782
|
-
seq: number;
|
|
4783
|
-
blockNr: number;
|
|
4784
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4785
|
-
stats: {
|
|
4483
|
+
code: {
|
|
4786
4484
|
lines: number;
|
|
4787
4485
|
bytes: number;
|
|
4788
4486
|
cnt?: number | undefined;
|
|
4789
4487
|
};
|
|
4790
|
-
|
|
4791
|
-
sectionId: string;
|
|
4792
|
-
lang: string;
|
|
4793
|
-
path?: string | undefined;
|
|
4794
|
-
} | {
|
|
4795
|
-
blockId: string;
|
|
4796
|
-
streamId: string;
|
|
4797
|
-
seq: number;
|
|
4798
|
-
blockNr: number;
|
|
4799
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4800
|
-
type: "block.code.truncated";
|
|
4801
|
-
sectionId: string;
|
|
4802
|
-
lang: string;
|
|
4803
|
-
path?: string | undefined;
|
|
4804
|
-
reason: string;
|
|
4805
|
-
kind: string;
|
|
4806
|
-
truncatedAtLine: number;
|
|
4807
|
-
errorCount: number;
|
|
4808
|
-
} | {
|
|
4809
|
-
blockId: string;
|
|
4810
|
-
streamId: string;
|
|
4811
|
-
seq: number;
|
|
4812
|
-
blockNr: number;
|
|
4813
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4814
|
-
type: "block.toplevel.begin";
|
|
4815
|
-
sectionId: string;
|
|
4816
|
-
} | {
|
|
4817
|
-
blockId: string;
|
|
4818
|
-
streamId: string;
|
|
4819
|
-
seq: number;
|
|
4820
|
-
blockNr: number;
|
|
4821
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4822
|
-
lineNr: number;
|
|
4823
|
-
line: string;
|
|
4824
|
-
type: "block.toplevel.line";
|
|
4825
|
-
sectionId: string;
|
|
4826
|
-
} | {
|
|
4827
|
-
blockId: string;
|
|
4828
|
-
streamId: string;
|
|
4829
|
-
seq: number;
|
|
4830
|
-
blockNr: number;
|
|
4831
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4832
|
-
stats: {
|
|
4488
|
+
image: {
|
|
4833
4489
|
lines: number;
|
|
4834
4490
|
bytes: number;
|
|
4835
4491
|
cnt?: number | undefined;
|
|
4836
4492
|
};
|
|
4837
|
-
|
|
4838
|
-
|
|
4839
|
-
|
|
4493
|
+
total: {
|
|
4494
|
+
lines: number;
|
|
4495
|
+
bytes: number;
|
|
4496
|
+
cnt?: number | undefined;
|
|
4497
|
+
};
|
|
4498
|
+
};
|
|
4499
|
+
usage: {
|
|
4500
|
+
prompt_tokens: number;
|
|
4501
|
+
completion_tokens: number;
|
|
4502
|
+
total_tokens: number;
|
|
4503
|
+
};
|
|
4504
|
+
} | {
|
|
4505
|
+
blockId: string;
|
|
4506
|
+
streamId: string;
|
|
4507
|
+
seq: number;
|
|
4508
|
+
blockNr: number;
|
|
4509
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4510
|
+
stats: {
|
|
4511
|
+
lines: number;
|
|
4512
|
+
bytes: number;
|
|
4513
|
+
cnt?: number | undefined;
|
|
4514
|
+
};
|
|
4515
|
+
type: "block.image";
|
|
4516
|
+
sectionId: string;
|
|
4517
|
+
url?: string | undefined;
|
|
4518
|
+
uploadId?: string | undefined;
|
|
4519
|
+
cid?: string | undefined;
|
|
4520
|
+
mimeType?: string | undefined;
|
|
4521
|
+
size?: number | undefined;
|
|
4522
|
+
docWritten?: boolean | undefined;
|
|
4523
|
+
} | {
|
|
4524
|
+
blockId: string;
|
|
4525
|
+
streamId: string;
|
|
4526
|
+
seq: number;
|
|
4527
|
+
blockNr: number;
|
|
4528
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4529
|
+
type: "block.code.begin";
|
|
4530
|
+
sectionId: string;
|
|
4531
|
+
lang: string;
|
|
4532
|
+
path?: string | undefined;
|
|
4533
|
+
} | {
|
|
4534
|
+
blockId: string;
|
|
4535
|
+
streamId: string;
|
|
4536
|
+
seq: number;
|
|
4537
|
+
blockNr: number;
|
|
4538
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4539
|
+
lineNr: number;
|
|
4540
|
+
line: string;
|
|
4541
|
+
type: "block.code.line";
|
|
4542
|
+
sectionId: string;
|
|
4543
|
+
lang: string;
|
|
4544
|
+
path?: string | undefined;
|
|
4545
|
+
} | {
|
|
4546
|
+
blockId: string;
|
|
4547
|
+
streamId: string;
|
|
4548
|
+
seq: number;
|
|
4549
|
+
blockNr: number;
|
|
4550
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4551
|
+
stats: {
|
|
4552
|
+
lines: number;
|
|
4553
|
+
bytes: number;
|
|
4554
|
+
cnt?: number | undefined;
|
|
4555
|
+
};
|
|
4556
|
+
type: "block.code.end";
|
|
4557
|
+
sectionId: string;
|
|
4558
|
+
lang: string;
|
|
4559
|
+
path?: string | undefined;
|
|
4560
|
+
} | {
|
|
4561
|
+
blockId: string;
|
|
4562
|
+
streamId: string;
|
|
4563
|
+
seq: number;
|
|
4564
|
+
blockNr: number;
|
|
4565
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4566
|
+
type: "block.code.truncated";
|
|
4567
|
+
sectionId: string;
|
|
4568
|
+
lang: string;
|
|
4569
|
+
path?: string | undefined;
|
|
4570
|
+
reason: string;
|
|
4571
|
+
kind: string;
|
|
4572
|
+
truncatedAtLine: number;
|
|
4573
|
+
errorCount: number;
|
|
4574
|
+
} | {
|
|
4575
|
+
blockId: string;
|
|
4576
|
+
streamId: string;
|
|
4577
|
+
seq: number;
|
|
4578
|
+
blockNr: number;
|
|
4579
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4580
|
+
type: "block.toplevel.begin";
|
|
4581
|
+
sectionId: string;
|
|
4582
|
+
} | {
|
|
4583
|
+
blockId: string;
|
|
4584
|
+
streamId: string;
|
|
4585
|
+
seq: number;
|
|
4586
|
+
blockNr: number;
|
|
4587
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4588
|
+
lineNr: number;
|
|
4589
|
+
line: string;
|
|
4590
|
+
type: "block.toplevel.line";
|
|
4591
|
+
sectionId: string;
|
|
4592
|
+
} | {
|
|
4593
|
+
blockId: string;
|
|
4594
|
+
streamId: string;
|
|
4595
|
+
seq: number;
|
|
4596
|
+
blockNr: number;
|
|
4597
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4598
|
+
stats: {
|
|
4599
|
+
lines: number;
|
|
4600
|
+
bytes: number;
|
|
4601
|
+
cnt?: number | undefined;
|
|
4602
|
+
};
|
|
4603
|
+
type: "block.toplevel.end";
|
|
4604
|
+
sectionId: string;
|
|
4605
|
+
})[];
|
|
4606
|
+
}[];
|
|
4607
|
+
usage?: {
|
|
4608
|
+
inputTokens: number | null;
|
|
4609
|
+
outputTokens: number | null;
|
|
4610
|
+
cachedTokens: number | null;
|
|
4611
|
+
costUsd: number | null;
|
|
4612
|
+
lane: "agent-build" | "agent-conversation" | "codegen" | null;
|
|
4613
|
+
} | null | undefined;
|
|
4614
|
+
}, {}>;
|
|
4615
|
+
export type ResChatResponseTurn = typeof resChatResponseTurn.infer;
|
|
4616
|
+
export declare const resGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4617
|
+
type: "vibes.diy.res-get-chat-response";
|
|
4618
|
+
history?: {
|
|
4619
|
+
before?: {
|
|
4620
|
+
created: string;
|
|
4621
|
+
promptId: string;
|
|
4622
|
+
} | undefined;
|
|
4623
|
+
hasMore: boolean;
|
|
4624
|
+
} | undefined;
|
|
4625
|
+
chatId?: string | undefined;
|
|
4626
|
+
ownerHandle: string;
|
|
4627
|
+
appSlug: string;
|
|
4628
|
+
turns: {
|
|
4629
|
+
initiator?: "platform" | "seed" | undefined;
|
|
4630
|
+
chatId: string;
|
|
4631
|
+
promptId: string;
|
|
4632
|
+
created: string;
|
|
4633
|
+
fsId?: string | undefined;
|
|
4634
|
+
sections: {
|
|
4635
|
+
blockSeq: number;
|
|
4636
|
+
created?: string | undefined;
|
|
4637
|
+
blocks: ({
|
|
4840
4638
|
streamId: string;
|
|
4841
4639
|
chatId: string;
|
|
4842
4640
|
seq: number;
|
|
@@ -5244,6 +5042,208 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5244
5042
|
}[];
|
|
5245
5043
|
completedAt: string;
|
|
5246
5044
|
errorCode?: string | undefined;
|
|
5045
|
+
} | {
|
|
5046
|
+
blockId: string;
|
|
5047
|
+
streamId: string;
|
|
5048
|
+
seq: number;
|
|
5049
|
+
blockNr: number;
|
|
5050
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5051
|
+
type: "block.begin";
|
|
5052
|
+
} | {
|
|
5053
|
+
blockId: string;
|
|
5054
|
+
streamId: string;
|
|
5055
|
+
seq: number;
|
|
5056
|
+
blockNr: number;
|
|
5057
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5058
|
+
type: "block.end";
|
|
5059
|
+
stats: {
|
|
5060
|
+
toplevel: {
|
|
5061
|
+
lines: number;
|
|
5062
|
+
bytes: number;
|
|
5063
|
+
cnt?: number | undefined;
|
|
5064
|
+
};
|
|
5065
|
+
code: {
|
|
5066
|
+
lines: number;
|
|
5067
|
+
bytes: number;
|
|
5068
|
+
cnt?: number | undefined;
|
|
5069
|
+
};
|
|
5070
|
+
image: {
|
|
5071
|
+
lines: number;
|
|
5072
|
+
bytes: number;
|
|
5073
|
+
cnt?: number | undefined;
|
|
5074
|
+
};
|
|
5075
|
+
total: {
|
|
5076
|
+
lines: number;
|
|
5077
|
+
bytes: number;
|
|
5078
|
+
cnt?: number | undefined;
|
|
5079
|
+
};
|
|
5080
|
+
};
|
|
5081
|
+
usage: {
|
|
5082
|
+
given: {
|
|
5083
|
+
prompt_tokens: number;
|
|
5084
|
+
completion_tokens: number;
|
|
5085
|
+
total_tokens: number;
|
|
5086
|
+
}[];
|
|
5087
|
+
calculated: {
|
|
5088
|
+
prompt_tokens: number;
|
|
5089
|
+
completion_tokens: number;
|
|
5090
|
+
total_tokens: number;
|
|
5091
|
+
};
|
|
5092
|
+
};
|
|
5093
|
+
fsRef?: ((In: {
|
|
5094
|
+
appSlug: string;
|
|
5095
|
+
ownerHandle?: string | undefined;
|
|
5096
|
+
userSlug?: string | undefined;
|
|
5097
|
+
mode: "dev" | "production";
|
|
5098
|
+
fsId: string;
|
|
5099
|
+
}) => import("arktype").Out<{
|
|
5100
|
+
appSlug: string;
|
|
5101
|
+
mode: "dev" | "production";
|
|
5102
|
+
fsId: string;
|
|
5103
|
+
ownerHandle: string;
|
|
5104
|
+
}>) | undefined;
|
|
5105
|
+
touchedPaths?: string[] | undefined;
|
|
5106
|
+
settled?: {
|
|
5107
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
5108
|
+
entryTouched: boolean;
|
|
5109
|
+
touchedCount: number;
|
|
5110
|
+
applied: boolean;
|
|
5111
|
+
} | undefined;
|
|
5112
|
+
} | {
|
|
5113
|
+
blockId: string;
|
|
5114
|
+
streamId: string;
|
|
5115
|
+
seq: number;
|
|
5116
|
+
blockNr: number;
|
|
5117
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5118
|
+
type: "block.stats";
|
|
5119
|
+
stats: {
|
|
5120
|
+
toplevel: {
|
|
5121
|
+
lines: number;
|
|
5122
|
+
bytes: number;
|
|
5123
|
+
cnt?: number | undefined;
|
|
5124
|
+
};
|
|
5125
|
+
code: {
|
|
5126
|
+
lines: number;
|
|
5127
|
+
bytes: number;
|
|
5128
|
+
cnt?: number | undefined;
|
|
5129
|
+
};
|
|
5130
|
+
image: {
|
|
5131
|
+
lines: number;
|
|
5132
|
+
bytes: number;
|
|
5133
|
+
cnt?: number | undefined;
|
|
5134
|
+
};
|
|
5135
|
+
total: {
|
|
5136
|
+
lines: number;
|
|
5137
|
+
bytes: number;
|
|
5138
|
+
cnt?: number | undefined;
|
|
5139
|
+
};
|
|
5140
|
+
};
|
|
5141
|
+
usage: {
|
|
5142
|
+
prompt_tokens: number;
|
|
5143
|
+
completion_tokens: number;
|
|
5144
|
+
total_tokens: number;
|
|
5145
|
+
};
|
|
5146
|
+
} | {
|
|
5147
|
+
blockId: string;
|
|
5148
|
+
streamId: string;
|
|
5149
|
+
seq: number;
|
|
5150
|
+
blockNr: number;
|
|
5151
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5152
|
+
stats: {
|
|
5153
|
+
lines: number;
|
|
5154
|
+
bytes: number;
|
|
5155
|
+
cnt?: number | undefined;
|
|
5156
|
+
};
|
|
5157
|
+
type: "block.image";
|
|
5158
|
+
sectionId: string;
|
|
5159
|
+
url?: string | undefined;
|
|
5160
|
+
uploadId?: string | undefined;
|
|
5161
|
+
cid?: string | undefined;
|
|
5162
|
+
mimeType?: string | undefined;
|
|
5163
|
+
size?: number | undefined;
|
|
5164
|
+
docWritten?: boolean | undefined;
|
|
5165
|
+
} | {
|
|
5166
|
+
blockId: string;
|
|
5167
|
+
streamId: string;
|
|
5168
|
+
seq: number;
|
|
5169
|
+
blockNr: number;
|
|
5170
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5171
|
+
type: "block.code.begin";
|
|
5172
|
+
sectionId: string;
|
|
5173
|
+
lang: string;
|
|
5174
|
+
path?: string | undefined;
|
|
5175
|
+
} | {
|
|
5176
|
+
blockId: string;
|
|
5177
|
+
streamId: string;
|
|
5178
|
+
seq: number;
|
|
5179
|
+
blockNr: number;
|
|
5180
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5181
|
+
lineNr: number;
|
|
5182
|
+
line: string;
|
|
5183
|
+
type: "block.code.line";
|
|
5184
|
+
sectionId: string;
|
|
5185
|
+
lang: string;
|
|
5186
|
+
path?: string | undefined;
|
|
5187
|
+
} | {
|
|
5188
|
+
blockId: string;
|
|
5189
|
+
streamId: string;
|
|
5190
|
+
seq: number;
|
|
5191
|
+
blockNr: number;
|
|
5192
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5193
|
+
stats: {
|
|
5194
|
+
lines: number;
|
|
5195
|
+
bytes: number;
|
|
5196
|
+
cnt?: number | undefined;
|
|
5197
|
+
};
|
|
5198
|
+
type: "block.code.end";
|
|
5199
|
+
sectionId: string;
|
|
5200
|
+
lang: string;
|
|
5201
|
+
path?: string | undefined;
|
|
5202
|
+
} | {
|
|
5203
|
+
blockId: string;
|
|
5204
|
+
streamId: string;
|
|
5205
|
+
seq: number;
|
|
5206
|
+
blockNr: number;
|
|
5207
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5208
|
+
type: "block.code.truncated";
|
|
5209
|
+
sectionId: string;
|
|
5210
|
+
lang: string;
|
|
5211
|
+
path?: string | undefined;
|
|
5212
|
+
reason: string;
|
|
5213
|
+
kind: string;
|
|
5214
|
+
truncatedAtLine: number;
|
|
5215
|
+
errorCount: number;
|
|
5216
|
+
} | {
|
|
5217
|
+
blockId: string;
|
|
5218
|
+
streamId: string;
|
|
5219
|
+
seq: number;
|
|
5220
|
+
blockNr: number;
|
|
5221
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5222
|
+
type: "block.toplevel.begin";
|
|
5223
|
+
sectionId: string;
|
|
5224
|
+
} | {
|
|
5225
|
+
blockId: string;
|
|
5226
|
+
streamId: string;
|
|
5227
|
+
seq: number;
|
|
5228
|
+
blockNr: number;
|
|
5229
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5230
|
+
lineNr: number;
|
|
5231
|
+
line: string;
|
|
5232
|
+
type: "block.toplevel.line";
|
|
5233
|
+
sectionId: string;
|
|
5234
|
+
} | {
|
|
5235
|
+
blockId: string;
|
|
5236
|
+
streamId: string;
|
|
5237
|
+
seq: number;
|
|
5238
|
+
blockNr: number;
|
|
5239
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5240
|
+
stats: {
|
|
5241
|
+
lines: number;
|
|
5242
|
+
bytes: number;
|
|
5243
|
+
cnt?: number | undefined;
|
|
5244
|
+
};
|
|
5245
|
+
type: "block.toplevel.end";
|
|
5246
|
+
sectionId: string;
|
|
5247
5247
|
})[];
|
|
5248
5248
|
}[];
|
|
5249
5249
|
usage?: {
|