@vibes.diy/api-types 14.3.52 → 14.3.54
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 +1 -0
- package/agent-tools.js +2 -0
- package/agent-tools.js.map +1 -1
- package/app.d.ts +4 -0
- package/audience-arms-msg.d.ts +23 -0
- package/audience-arms-msg.js +14 -0
- package/audience-arms-msg.js.map +1 -1
- package/chat.d.ts +1142 -1122
- package/db-acls.d.ts +3 -2
- package/db-acls.js +4 -4
- package/db-acls.js.map +1 -1
- package/invite.d.ts +122 -95
- package/invite.js +30 -0
- package/invite.js.map +1 -1
- package/package.json +6 -6
- package/report.d.ts +1 -0
- package/report.js +1 -0
- package/report.js.map +1 -1
- package/settings.d.ts +247 -203
- package/settings.js +18 -1
- package/settings.js.map +1 -1
package/chat.d.ts
CHANGED
|
@@ -2243,6 +2243,259 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
|
|
|
2243
2243
|
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
2244
2244
|
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
2245
2245
|
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2246
|
+
blockId: string;
|
|
2247
|
+
streamId: string;
|
|
2248
|
+
seq: number;
|
|
2249
|
+
blockNr: number;
|
|
2250
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2251
|
+
type: "block.begin";
|
|
2252
|
+
} | {
|
|
2253
|
+
blockId: string;
|
|
2254
|
+
streamId: string;
|
|
2255
|
+
seq: number;
|
|
2256
|
+
blockNr: number;
|
|
2257
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2258
|
+
type: "block.end";
|
|
2259
|
+
stats: {
|
|
2260
|
+
toplevel: {
|
|
2261
|
+
lines: number;
|
|
2262
|
+
bytes: number;
|
|
2263
|
+
cnt?: number | undefined;
|
|
2264
|
+
};
|
|
2265
|
+
code: {
|
|
2266
|
+
lines: number;
|
|
2267
|
+
bytes: number;
|
|
2268
|
+
cnt?: number | undefined;
|
|
2269
|
+
};
|
|
2270
|
+
image: {
|
|
2271
|
+
lines: number;
|
|
2272
|
+
bytes: number;
|
|
2273
|
+
cnt?: number | undefined;
|
|
2274
|
+
};
|
|
2275
|
+
total: {
|
|
2276
|
+
lines: number;
|
|
2277
|
+
bytes: number;
|
|
2278
|
+
cnt?: number | undefined;
|
|
2279
|
+
};
|
|
2280
|
+
};
|
|
2281
|
+
usage: {
|
|
2282
|
+
given: {
|
|
2283
|
+
prompt_tokens: number;
|
|
2284
|
+
completion_tokens: number;
|
|
2285
|
+
total_tokens: number;
|
|
2286
|
+
model?: string | undefined;
|
|
2287
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
2288
|
+
reasoningEffort?: string | undefined;
|
|
2289
|
+
}[];
|
|
2290
|
+
calculated: {
|
|
2291
|
+
prompt_tokens: number;
|
|
2292
|
+
completion_tokens: number;
|
|
2293
|
+
total_tokens: number;
|
|
2294
|
+
model?: string | undefined;
|
|
2295
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
2296
|
+
reasoningEffort?: string | undefined;
|
|
2297
|
+
};
|
|
2298
|
+
};
|
|
2299
|
+
fsRef?: ((In: {
|
|
2300
|
+
appSlug: string;
|
|
2301
|
+
ownerHandle?: string | undefined;
|
|
2302
|
+
userSlug?: string | undefined;
|
|
2303
|
+
mode: "dev" | "production";
|
|
2304
|
+
fsId: string;
|
|
2305
|
+
}) => import("arktype").Out<{
|
|
2306
|
+
appSlug: string;
|
|
2307
|
+
mode: "dev" | "production";
|
|
2308
|
+
fsId: string;
|
|
2309
|
+
ownerHandle: string;
|
|
2310
|
+
}>) | undefined;
|
|
2311
|
+
touchedPaths?: string[] | undefined;
|
|
2312
|
+
settled?: {
|
|
2313
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2314
|
+
entryTouched: boolean;
|
|
2315
|
+
touchedCount: number;
|
|
2316
|
+
applied: boolean;
|
|
2317
|
+
} | undefined;
|
|
2318
|
+
saveRepair?: {
|
|
2319
|
+
repaired: string[];
|
|
2320
|
+
attempts: number;
|
|
2321
|
+
} | undefined;
|
|
2322
|
+
} | {
|
|
2323
|
+
blockId: string;
|
|
2324
|
+
streamId: string;
|
|
2325
|
+
seq: number;
|
|
2326
|
+
blockNr: number;
|
|
2327
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2328
|
+
type: "block.toplevel.begin";
|
|
2329
|
+
sectionId: string;
|
|
2330
|
+
} | {
|
|
2331
|
+
blockId: string;
|
|
2332
|
+
streamId: string;
|
|
2333
|
+
seq: number;
|
|
2334
|
+
blockNr: number;
|
|
2335
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2336
|
+
lineNr: number;
|
|
2337
|
+
line: string;
|
|
2338
|
+
type: "block.toplevel.line";
|
|
2339
|
+
sectionId: string;
|
|
2340
|
+
} | {
|
|
2341
|
+
blockId: string;
|
|
2342
|
+
streamId: string;
|
|
2343
|
+
seq: number;
|
|
2344
|
+
blockNr: number;
|
|
2345
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2346
|
+
stats: {
|
|
2347
|
+
lines: number;
|
|
2348
|
+
bytes: number;
|
|
2349
|
+
cnt?: number | undefined;
|
|
2350
|
+
};
|
|
2351
|
+
type: "block.toplevel.end";
|
|
2352
|
+
sectionId: string;
|
|
2353
|
+
} | {
|
|
2354
|
+
blockId: string;
|
|
2355
|
+
streamId: string;
|
|
2356
|
+
seq: number;
|
|
2357
|
+
blockNr: number;
|
|
2358
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2359
|
+
type: "block.code.begin";
|
|
2360
|
+
sectionId: string;
|
|
2361
|
+
lang: string;
|
|
2362
|
+
path?: string | undefined;
|
|
2363
|
+
} | {
|
|
2364
|
+
blockId: string;
|
|
2365
|
+
streamId: string;
|
|
2366
|
+
seq: number;
|
|
2367
|
+
blockNr: number;
|
|
2368
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2369
|
+
lineNr: number;
|
|
2370
|
+
line: string;
|
|
2371
|
+
type: "block.code.line";
|
|
2372
|
+
sectionId: string;
|
|
2373
|
+
lang: string;
|
|
2374
|
+
path?: string | undefined;
|
|
2375
|
+
} | {
|
|
2376
|
+
blockId: string;
|
|
2377
|
+
streamId: string;
|
|
2378
|
+
seq: number;
|
|
2379
|
+
blockNr: number;
|
|
2380
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2381
|
+
stats: {
|
|
2382
|
+
lines: number;
|
|
2383
|
+
bytes: number;
|
|
2384
|
+
cnt?: number | undefined;
|
|
2385
|
+
};
|
|
2386
|
+
type: "block.code.end";
|
|
2387
|
+
sectionId: string;
|
|
2388
|
+
lang: string;
|
|
2389
|
+
path?: string | undefined;
|
|
2390
|
+
} | {
|
|
2391
|
+
blockId: string;
|
|
2392
|
+
streamId: string;
|
|
2393
|
+
seq: number;
|
|
2394
|
+
blockNr: number;
|
|
2395
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2396
|
+
type: "block.code.truncated";
|
|
2397
|
+
sectionId: string;
|
|
2398
|
+
lang: string;
|
|
2399
|
+
path?: string | undefined;
|
|
2400
|
+
reason: string;
|
|
2401
|
+
kind: string;
|
|
2402
|
+
truncatedAtLine: number;
|
|
2403
|
+
errorCount: number;
|
|
2404
|
+
} | {
|
|
2405
|
+
blockId: string;
|
|
2406
|
+
streamId: string;
|
|
2407
|
+
seq: number;
|
|
2408
|
+
blockNr: number;
|
|
2409
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2410
|
+
stats: {
|
|
2411
|
+
lines: number;
|
|
2412
|
+
bytes: number;
|
|
2413
|
+
cnt?: number | undefined;
|
|
2414
|
+
};
|
|
2415
|
+
type: "block.image";
|
|
2416
|
+
sectionId: string;
|
|
2417
|
+
url?: string | undefined;
|
|
2418
|
+
uploadId?: string | undefined;
|
|
2419
|
+
cid?: string | undefined;
|
|
2420
|
+
mimeType?: string | undefined;
|
|
2421
|
+
size?: number | undefined;
|
|
2422
|
+
docWritten?: boolean | undefined;
|
|
2423
|
+
} | {
|
|
2424
|
+
blockId: string;
|
|
2425
|
+
streamId: string;
|
|
2426
|
+
seq: number;
|
|
2427
|
+
blockNr: number;
|
|
2428
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2429
|
+
type: "block.stats";
|
|
2430
|
+
stats: {
|
|
2431
|
+
toplevel: {
|
|
2432
|
+
lines: number;
|
|
2433
|
+
bytes: number;
|
|
2434
|
+
cnt?: number | undefined;
|
|
2435
|
+
};
|
|
2436
|
+
code: {
|
|
2437
|
+
lines: number;
|
|
2438
|
+
bytes: number;
|
|
2439
|
+
cnt?: number | undefined;
|
|
2440
|
+
};
|
|
2441
|
+
image: {
|
|
2442
|
+
lines: number;
|
|
2443
|
+
bytes: number;
|
|
2444
|
+
cnt?: number | undefined;
|
|
2445
|
+
};
|
|
2446
|
+
total: {
|
|
2447
|
+
lines: number;
|
|
2448
|
+
bytes: number;
|
|
2449
|
+
cnt?: number | undefined;
|
|
2450
|
+
};
|
|
2451
|
+
};
|
|
2452
|
+
usage: {
|
|
2453
|
+
prompt_tokens: number;
|
|
2454
|
+
completion_tokens: number;
|
|
2455
|
+
total_tokens: number;
|
|
2456
|
+
model?: string | undefined;
|
|
2457
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
2458
|
+
reasoningEffort?: string | undefined;
|
|
2459
|
+
};
|
|
2460
|
+
} | {
|
|
2461
|
+
type: "prompt.research";
|
|
2462
|
+
version: 1;
|
|
2463
|
+
streamId: string;
|
|
2464
|
+
chatId: string;
|
|
2465
|
+
seq: number;
|
|
2466
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2467
|
+
researchId: string;
|
|
2468
|
+
status: "complete" | "failed" | "partial";
|
|
2469
|
+
brief: string;
|
|
2470
|
+
sources: {
|
|
2471
|
+
url: string;
|
|
2472
|
+
finalUrl: string | null;
|
|
2473
|
+
contentType: string | null;
|
|
2474
|
+
httpStatus: number | null;
|
|
2475
|
+
backendFetchable: boolean;
|
|
2476
|
+
fetched: boolean;
|
|
2477
|
+
errorCode?: string | undefined;
|
|
2478
|
+
}[];
|
|
2479
|
+
api: {
|
|
2480
|
+
method: string;
|
|
2481
|
+
path: string;
|
|
2482
|
+
description: string;
|
|
2483
|
+
fields: string[];
|
|
2484
|
+
}[];
|
|
2485
|
+
excerpts: {
|
|
2486
|
+
sourceUrl: string;
|
|
2487
|
+
text: string;
|
|
2488
|
+
locator?: string | undefined;
|
|
2489
|
+
}[];
|
|
2490
|
+
seedRows: {
|
|
2491
|
+
sourceUrl: string;
|
|
2492
|
+
dbName: string;
|
|
2493
|
+
key: string;
|
|
2494
|
+
item: unknown;
|
|
2495
|
+
}[];
|
|
2496
|
+
completedAt: string;
|
|
2497
|
+
errorCode?: string | undefined;
|
|
2498
|
+
} | {
|
|
2246
2499
|
streamId: string;
|
|
2247
2500
|
chatId: string;
|
|
2248
2501
|
seq: number;
|
|
@@ -2626,90 +2879,222 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2626
2879
|
type: "prompt.notice";
|
|
2627
2880
|
kind: "edits-incomplete";
|
|
2628
2881
|
path?: string | undefined;
|
|
2629
|
-
}
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
chatId: string;
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
researchId: string;
|
|
2637
|
-
status: "complete" | "failed" | "partial";
|
|
2638
|
-
brief: string;
|
|
2639
|
-
sources: {
|
|
2640
|
-
url: string;
|
|
2641
|
-
finalUrl: string | null;
|
|
2642
|
-
contentType: string | null;
|
|
2643
|
-
httpStatus: number | null;
|
|
2644
|
-
backendFetchable: boolean;
|
|
2645
|
-
fetched: boolean;
|
|
2646
|
-
errorCode?: string | undefined;
|
|
2647
|
-
}[];
|
|
2648
|
-
api: {
|
|
2649
|
-
method: string;
|
|
2650
|
-
path: string;
|
|
2651
|
-
description: string;
|
|
2652
|
-
fields: string[];
|
|
2653
|
-
}[];
|
|
2654
|
-
excerpts: {
|
|
2655
|
-
sourceUrl: string;
|
|
2656
|
-
text: string;
|
|
2657
|
-
locator?: string | undefined;
|
|
2658
|
-
}[];
|
|
2659
|
-
seedRows: {
|
|
2660
|
-
sourceUrl: string;
|
|
2661
|
-
dbName: string;
|
|
2662
|
-
key: string;
|
|
2663
|
-
item: unknown;
|
|
2664
|
-
}[];
|
|
2665
|
-
completedAt: string;
|
|
2666
|
-
errorCode?: string | undefined;
|
|
2667
|
-
} | {
|
|
2668
|
-
blockId: string;
|
|
2669
|
-
streamId: string;
|
|
2670
|
-
seq: number;
|
|
2671
|
-
blockNr: number;
|
|
2672
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2673
|
-
type: "block.begin";
|
|
2674
|
-
} | {
|
|
2675
|
-
blockId: string;
|
|
2676
|
-
streamId: string;
|
|
2677
|
-
seq: number;
|
|
2678
|
-
blockNr: number;
|
|
2882
|
+
}, {}>;
|
|
2883
|
+
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2884
|
+
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2885
|
+
type: "vibes.diy.section-event";
|
|
2886
|
+
chatId: string;
|
|
2887
|
+
promptId: string;
|
|
2888
|
+
blockSeq: number;
|
|
2679
2889
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2890
|
+
blocks: ({
|
|
2891
|
+
blockId: string;
|
|
2892
|
+
streamId: string;
|
|
2893
|
+
seq: number;
|
|
2894
|
+
blockNr: number;
|
|
2895
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2896
|
+
type: "block.begin";
|
|
2897
|
+
} | {
|
|
2898
|
+
blockId: string;
|
|
2899
|
+
streamId: string;
|
|
2900
|
+
seq: number;
|
|
2901
|
+
blockNr: number;
|
|
2902
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2903
|
+
type: "block.end";
|
|
2904
|
+
stats: {
|
|
2905
|
+
toplevel: {
|
|
2906
|
+
lines: number;
|
|
2907
|
+
bytes: number;
|
|
2908
|
+
cnt?: number | undefined;
|
|
2909
|
+
};
|
|
2910
|
+
code: {
|
|
2911
|
+
lines: number;
|
|
2912
|
+
bytes: number;
|
|
2913
|
+
cnt?: number | undefined;
|
|
2914
|
+
};
|
|
2915
|
+
image: {
|
|
2916
|
+
lines: number;
|
|
2917
|
+
bytes: number;
|
|
2918
|
+
cnt?: number | undefined;
|
|
2919
|
+
};
|
|
2920
|
+
total: {
|
|
2921
|
+
lines: number;
|
|
2922
|
+
bytes: number;
|
|
2923
|
+
cnt?: number | undefined;
|
|
2924
|
+
};
|
|
2686
2925
|
};
|
|
2687
|
-
|
|
2926
|
+
usage: {
|
|
2927
|
+
given: {
|
|
2928
|
+
prompt_tokens: number;
|
|
2929
|
+
completion_tokens: number;
|
|
2930
|
+
total_tokens: number;
|
|
2931
|
+
model?: string | undefined;
|
|
2932
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
2933
|
+
reasoningEffort?: string | undefined;
|
|
2934
|
+
}[];
|
|
2935
|
+
calculated: {
|
|
2936
|
+
prompt_tokens: number;
|
|
2937
|
+
completion_tokens: number;
|
|
2938
|
+
total_tokens: number;
|
|
2939
|
+
model?: string | undefined;
|
|
2940
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
2941
|
+
reasoningEffort?: string | undefined;
|
|
2942
|
+
};
|
|
2943
|
+
};
|
|
2944
|
+
fsRef?: ((In: {
|
|
2945
|
+
appSlug: string;
|
|
2946
|
+
ownerHandle?: string | undefined;
|
|
2947
|
+
userSlug?: string | undefined;
|
|
2948
|
+
mode: "dev" | "production";
|
|
2949
|
+
fsId: string;
|
|
2950
|
+
}) => import("arktype").Out<{
|
|
2951
|
+
appSlug: string;
|
|
2952
|
+
mode: "dev" | "production";
|
|
2953
|
+
fsId: string;
|
|
2954
|
+
ownerHandle: string;
|
|
2955
|
+
}>) | undefined;
|
|
2956
|
+
touchedPaths?: string[] | undefined;
|
|
2957
|
+
settled?: {
|
|
2958
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2959
|
+
entryTouched: boolean;
|
|
2960
|
+
touchedCount: number;
|
|
2961
|
+
applied: boolean;
|
|
2962
|
+
} | undefined;
|
|
2963
|
+
saveRepair?: {
|
|
2964
|
+
repaired: string[];
|
|
2965
|
+
attempts: number;
|
|
2966
|
+
} | undefined;
|
|
2967
|
+
} | {
|
|
2968
|
+
blockId: string;
|
|
2969
|
+
streamId: string;
|
|
2970
|
+
seq: number;
|
|
2971
|
+
blockNr: number;
|
|
2972
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2973
|
+
type: "block.toplevel.begin";
|
|
2974
|
+
sectionId: string;
|
|
2975
|
+
} | {
|
|
2976
|
+
blockId: string;
|
|
2977
|
+
streamId: string;
|
|
2978
|
+
seq: number;
|
|
2979
|
+
blockNr: number;
|
|
2980
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2981
|
+
lineNr: number;
|
|
2982
|
+
line: string;
|
|
2983
|
+
type: "block.toplevel.line";
|
|
2984
|
+
sectionId: string;
|
|
2985
|
+
} | {
|
|
2986
|
+
blockId: string;
|
|
2987
|
+
streamId: string;
|
|
2988
|
+
seq: number;
|
|
2989
|
+
blockNr: number;
|
|
2990
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2991
|
+
stats: {
|
|
2688
2992
|
lines: number;
|
|
2689
2993
|
bytes: number;
|
|
2690
2994
|
cnt?: number | undefined;
|
|
2691
2995
|
};
|
|
2692
|
-
|
|
2996
|
+
type: "block.toplevel.end";
|
|
2997
|
+
sectionId: string;
|
|
2998
|
+
} | {
|
|
2999
|
+
blockId: string;
|
|
3000
|
+
streamId: string;
|
|
3001
|
+
seq: number;
|
|
3002
|
+
blockNr: number;
|
|
3003
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3004
|
+
type: "block.code.begin";
|
|
3005
|
+
sectionId: string;
|
|
3006
|
+
lang: string;
|
|
3007
|
+
path?: string | undefined;
|
|
3008
|
+
} | {
|
|
3009
|
+
blockId: string;
|
|
3010
|
+
streamId: string;
|
|
3011
|
+
seq: number;
|
|
3012
|
+
blockNr: number;
|
|
3013
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3014
|
+
lineNr: number;
|
|
3015
|
+
line: string;
|
|
3016
|
+
type: "block.code.line";
|
|
3017
|
+
sectionId: string;
|
|
3018
|
+
lang: string;
|
|
3019
|
+
path?: string | undefined;
|
|
3020
|
+
} | {
|
|
3021
|
+
blockId: string;
|
|
3022
|
+
streamId: string;
|
|
3023
|
+
seq: number;
|
|
3024
|
+
blockNr: number;
|
|
3025
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3026
|
+
stats: {
|
|
2693
3027
|
lines: number;
|
|
2694
3028
|
bytes: number;
|
|
2695
3029
|
cnt?: number | undefined;
|
|
2696
3030
|
};
|
|
2697
|
-
|
|
3031
|
+
type: "block.code.end";
|
|
3032
|
+
sectionId: string;
|
|
3033
|
+
lang: string;
|
|
3034
|
+
path?: string | undefined;
|
|
3035
|
+
} | {
|
|
3036
|
+
blockId: string;
|
|
3037
|
+
streamId: string;
|
|
3038
|
+
seq: number;
|
|
3039
|
+
blockNr: number;
|
|
3040
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3041
|
+
type: "block.code.truncated";
|
|
3042
|
+
sectionId: string;
|
|
3043
|
+
lang: string;
|
|
3044
|
+
path?: string | undefined;
|
|
3045
|
+
reason: string;
|
|
3046
|
+
kind: string;
|
|
3047
|
+
truncatedAtLine: number;
|
|
3048
|
+
errorCount: number;
|
|
3049
|
+
} | {
|
|
3050
|
+
blockId: string;
|
|
3051
|
+
streamId: string;
|
|
3052
|
+
seq: number;
|
|
3053
|
+
blockNr: number;
|
|
3054
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3055
|
+
stats: {
|
|
2698
3056
|
lines: number;
|
|
2699
3057
|
bytes: number;
|
|
2700
3058
|
cnt?: number | undefined;
|
|
2701
3059
|
};
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
3060
|
+
type: "block.image";
|
|
3061
|
+
sectionId: string;
|
|
3062
|
+
url?: string | undefined;
|
|
3063
|
+
uploadId?: string | undefined;
|
|
3064
|
+
cid?: string | undefined;
|
|
3065
|
+
mimeType?: string | undefined;
|
|
3066
|
+
size?: number | undefined;
|
|
3067
|
+
docWritten?: boolean | undefined;
|
|
3068
|
+
} | {
|
|
3069
|
+
blockId: string;
|
|
3070
|
+
streamId: string;
|
|
3071
|
+
seq: number;
|
|
3072
|
+
blockNr: number;
|
|
3073
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3074
|
+
type: "block.stats";
|
|
3075
|
+
stats: {
|
|
3076
|
+
toplevel: {
|
|
3077
|
+
lines: number;
|
|
3078
|
+
bytes: number;
|
|
3079
|
+
cnt?: number | undefined;
|
|
3080
|
+
};
|
|
3081
|
+
code: {
|
|
3082
|
+
lines: number;
|
|
3083
|
+
bytes: number;
|
|
3084
|
+
cnt?: number | undefined;
|
|
3085
|
+
};
|
|
3086
|
+
image: {
|
|
3087
|
+
lines: number;
|
|
3088
|
+
bytes: number;
|
|
3089
|
+
cnt?: number | undefined;
|
|
3090
|
+
};
|
|
3091
|
+
total: {
|
|
3092
|
+
lines: number;
|
|
3093
|
+
bytes: number;
|
|
3094
|
+
cnt?: number | undefined;
|
|
3095
|
+
};
|
|
3096
|
+
};
|
|
3097
|
+
usage: {
|
|
2713
3098
|
prompt_tokens: number;
|
|
2714
3099
|
completion_tokens: number;
|
|
2715
3100
|
total_tokens: number;
|
|
@@ -2717,173 +3102,45 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2717
3102
|
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
2718
3103
|
reasoningEffort?: string | undefined;
|
|
2719
3104
|
};
|
|
2720
|
-
}
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2742
|
-
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
2751
|
-
|
|
2752
|
-
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
lines: number;
|
|
2760
|
-
bytes: number;
|
|
2761
|
-
cnt?: number | undefined;
|
|
2762
|
-
};
|
|
2763
|
-
total: {
|
|
2764
|
-
lines: number;
|
|
2765
|
-
bytes: number;
|
|
2766
|
-
cnt?: number | undefined;
|
|
2767
|
-
};
|
|
2768
|
-
};
|
|
2769
|
-
usage: {
|
|
2770
|
-
prompt_tokens: number;
|
|
2771
|
-
completion_tokens: number;
|
|
2772
|
-
total_tokens: number;
|
|
2773
|
-
model?: string | undefined;
|
|
2774
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
2775
|
-
reasoningEffort?: string | undefined;
|
|
2776
|
-
};
|
|
2777
|
-
} | {
|
|
2778
|
-
blockId: string;
|
|
2779
|
-
streamId: string;
|
|
2780
|
-
seq: number;
|
|
2781
|
-
blockNr: number;
|
|
2782
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2783
|
-
stats: {
|
|
2784
|
-
lines: number;
|
|
2785
|
-
bytes: number;
|
|
2786
|
-
cnt?: number | undefined;
|
|
2787
|
-
};
|
|
2788
|
-
type: "block.image";
|
|
2789
|
-
sectionId: string;
|
|
2790
|
-
url?: string | undefined;
|
|
2791
|
-
uploadId?: string | undefined;
|
|
2792
|
-
cid?: string | undefined;
|
|
2793
|
-
mimeType?: string | undefined;
|
|
2794
|
-
size?: number | undefined;
|
|
2795
|
-
docWritten?: boolean | undefined;
|
|
2796
|
-
} | {
|
|
2797
|
-
blockId: string;
|
|
2798
|
-
streamId: string;
|
|
2799
|
-
seq: number;
|
|
2800
|
-
blockNr: number;
|
|
2801
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2802
|
-
type: "block.code.begin";
|
|
2803
|
-
sectionId: string;
|
|
2804
|
-
lang: string;
|
|
2805
|
-
path?: string | undefined;
|
|
2806
|
-
} | {
|
|
2807
|
-
blockId: string;
|
|
2808
|
-
streamId: string;
|
|
2809
|
-
seq: number;
|
|
2810
|
-
blockNr: number;
|
|
2811
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2812
|
-
lineNr: number;
|
|
2813
|
-
line: string;
|
|
2814
|
-
type: "block.code.line";
|
|
2815
|
-
sectionId: string;
|
|
2816
|
-
lang: string;
|
|
2817
|
-
path?: string | undefined;
|
|
2818
|
-
} | {
|
|
2819
|
-
blockId: string;
|
|
2820
|
-
streamId: string;
|
|
2821
|
-
seq: number;
|
|
2822
|
-
blockNr: number;
|
|
2823
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2824
|
-
stats: {
|
|
2825
|
-
lines: number;
|
|
2826
|
-
bytes: number;
|
|
2827
|
-
cnt?: number | undefined;
|
|
2828
|
-
};
|
|
2829
|
-
type: "block.code.end";
|
|
2830
|
-
sectionId: string;
|
|
2831
|
-
lang: string;
|
|
2832
|
-
path?: string | undefined;
|
|
2833
|
-
} | {
|
|
2834
|
-
blockId: string;
|
|
2835
|
-
streamId: string;
|
|
2836
|
-
seq: number;
|
|
2837
|
-
blockNr: number;
|
|
2838
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2839
|
-
type: "block.code.truncated";
|
|
2840
|
-
sectionId: string;
|
|
2841
|
-
lang: string;
|
|
2842
|
-
path?: string | undefined;
|
|
2843
|
-
reason: string;
|
|
2844
|
-
kind: string;
|
|
2845
|
-
truncatedAtLine: number;
|
|
2846
|
-
errorCount: number;
|
|
2847
|
-
} | {
|
|
2848
|
-
blockId: string;
|
|
2849
|
-
streamId: string;
|
|
2850
|
-
seq: number;
|
|
2851
|
-
blockNr: number;
|
|
2852
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2853
|
-
type: "block.toplevel.begin";
|
|
2854
|
-
sectionId: string;
|
|
2855
|
-
} | {
|
|
2856
|
-
blockId: string;
|
|
2857
|
-
streamId: string;
|
|
2858
|
-
seq: number;
|
|
2859
|
-
blockNr: number;
|
|
2860
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2861
|
-
lineNr: number;
|
|
2862
|
-
line: string;
|
|
2863
|
-
type: "block.toplevel.line";
|
|
2864
|
-
sectionId: string;
|
|
2865
|
-
} | {
|
|
2866
|
-
blockId: string;
|
|
2867
|
-
streamId: string;
|
|
2868
|
-
seq: number;
|
|
2869
|
-
blockNr: number;
|
|
2870
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2871
|
-
stats: {
|
|
2872
|
-
lines: number;
|
|
2873
|
-
bytes: number;
|
|
2874
|
-
cnt?: number | undefined;
|
|
2875
|
-
};
|
|
2876
|
-
type: "block.toplevel.end";
|
|
2877
|
-
sectionId: string;
|
|
2878
|
-
}, {}>;
|
|
2879
|
-
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2880
|
-
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2881
|
-
type: "vibes.diy.section-event";
|
|
2882
|
-
chatId: string;
|
|
2883
|
-
promptId: string;
|
|
2884
|
-
blockSeq: number;
|
|
2885
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2886
|
-
blocks: ({
|
|
3105
|
+
} | {
|
|
3106
|
+
type: "prompt.research";
|
|
3107
|
+
version: 1;
|
|
3108
|
+
streamId: string;
|
|
3109
|
+
chatId: string;
|
|
3110
|
+
seq: number;
|
|
3111
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3112
|
+
researchId: string;
|
|
3113
|
+
status: "complete" | "failed" | "partial";
|
|
3114
|
+
brief: string;
|
|
3115
|
+
sources: {
|
|
3116
|
+
url: string;
|
|
3117
|
+
finalUrl: string | null;
|
|
3118
|
+
contentType: string | null;
|
|
3119
|
+
httpStatus: number | null;
|
|
3120
|
+
backendFetchable: boolean;
|
|
3121
|
+
fetched: boolean;
|
|
3122
|
+
errorCode?: string | undefined;
|
|
3123
|
+
}[];
|
|
3124
|
+
api: {
|
|
3125
|
+
method: string;
|
|
3126
|
+
path: string;
|
|
3127
|
+
description: string;
|
|
3128
|
+
fields: string[];
|
|
3129
|
+
}[];
|
|
3130
|
+
excerpts: {
|
|
3131
|
+
sourceUrl: string;
|
|
3132
|
+
text: string;
|
|
3133
|
+
locator?: string | undefined;
|
|
3134
|
+
}[];
|
|
3135
|
+
seedRows: {
|
|
3136
|
+
sourceUrl: string;
|
|
3137
|
+
dbName: string;
|
|
3138
|
+
key: string;
|
|
3139
|
+
item: unknown;
|
|
3140
|
+
}[];
|
|
3141
|
+
completedAt: string;
|
|
3142
|
+
errorCode?: string | undefined;
|
|
3143
|
+
} | {
|
|
2887
3144
|
streamId: string;
|
|
2888
3145
|
chatId: string;
|
|
2889
3146
|
seq: number;
|
|
@@ -3267,45 +3524,40 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3267
3524
|
type: "prompt.notice";
|
|
3268
3525
|
kind: "edits-incomplete";
|
|
3269
3526
|
path?: string | undefined;
|
|
3270
|
-
}
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
item: unknown;
|
|
3305
|
-
}[];
|
|
3306
|
-
completedAt: string;
|
|
3307
|
-
errorCode?: string | undefined;
|
|
3308
|
-
} | {
|
|
3527
|
+
})[];
|
|
3528
|
+
initiator?: "platform" | "seed" | undefined;
|
|
3529
|
+
}, {}>;
|
|
3530
|
+
export type SectionEvent = typeof sectionEvent.infer;
|
|
3531
|
+
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3532
|
+
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3533
|
+
type: "vibes.diy.req-get-chat-response";
|
|
3534
|
+
historyPage?: {
|
|
3535
|
+
limit: number;
|
|
3536
|
+
before: {
|
|
3537
|
+
created: string;
|
|
3538
|
+
promptId: string;
|
|
3539
|
+
};
|
|
3540
|
+
} | undefined;
|
|
3541
|
+
auth?: {
|
|
3542
|
+
type: "clerk" | "device-id" | "ucan";
|
|
3543
|
+
token: string;
|
|
3544
|
+
} | undefined;
|
|
3545
|
+
guest?: {
|
|
3546
|
+
type: "guest-build";
|
|
3547
|
+
token: string;
|
|
3548
|
+
} | undefined;
|
|
3549
|
+
ownerHandle: string;
|
|
3550
|
+
appSlug: string;
|
|
3551
|
+
chatId?: string | undefined;
|
|
3552
|
+
promptId?: string | undefined;
|
|
3553
|
+
usageOnly?: boolean | undefined;
|
|
3554
|
+
}, {}>;
|
|
3555
|
+
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3556
|
+
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3557
|
+
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3558
|
+
blockSeq: number;
|
|
3559
|
+
created?: string | undefined;
|
|
3560
|
+
blocks: ({
|
|
3309
3561
|
blockId: string;
|
|
3310
3562
|
streamId: string;
|
|
3311
3563
|
seq: number;
|
|
@@ -3378,43 +3630,28 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3378
3630
|
touchedCount: number;
|
|
3379
3631
|
applied: boolean;
|
|
3380
3632
|
} | undefined;
|
|
3633
|
+
saveRepair?: {
|
|
3634
|
+
repaired: string[];
|
|
3635
|
+
attempts: number;
|
|
3636
|
+
} | undefined;
|
|
3381
3637
|
} | {
|
|
3382
3638
|
blockId: string;
|
|
3383
3639
|
streamId: string;
|
|
3384
3640
|
seq: number;
|
|
3385
3641
|
blockNr: number;
|
|
3386
3642
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3387
|
-
type: "block.
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
image: {
|
|
3400
|
-
lines: number;
|
|
3401
|
-
bytes: number;
|
|
3402
|
-
cnt?: number | undefined;
|
|
3403
|
-
};
|
|
3404
|
-
total: {
|
|
3405
|
-
lines: number;
|
|
3406
|
-
bytes: number;
|
|
3407
|
-
cnt?: number | undefined;
|
|
3408
|
-
};
|
|
3409
|
-
};
|
|
3410
|
-
usage: {
|
|
3411
|
-
prompt_tokens: number;
|
|
3412
|
-
completion_tokens: number;
|
|
3413
|
-
total_tokens: number;
|
|
3414
|
-
model?: string | undefined;
|
|
3415
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
3416
|
-
reasoningEffort?: string | undefined;
|
|
3417
|
-
};
|
|
3643
|
+
type: "block.toplevel.begin";
|
|
3644
|
+
sectionId: string;
|
|
3645
|
+
} | {
|
|
3646
|
+
blockId: string;
|
|
3647
|
+
streamId: string;
|
|
3648
|
+
seq: number;
|
|
3649
|
+
blockNr: number;
|
|
3650
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3651
|
+
lineNr: number;
|
|
3652
|
+
line: string;
|
|
3653
|
+
type: "block.toplevel.line";
|
|
3654
|
+
sectionId: string;
|
|
3418
3655
|
} | {
|
|
3419
3656
|
blockId: string;
|
|
3420
3657
|
streamId: string;
|
|
@@ -3426,14 +3663,8 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3426
3663
|
bytes: number;
|
|
3427
3664
|
cnt?: number | undefined;
|
|
3428
3665
|
};
|
|
3429
|
-
type: "block.
|
|
3666
|
+
type: "block.toplevel.end";
|
|
3430
3667
|
sectionId: string;
|
|
3431
|
-
url?: string | undefined;
|
|
3432
|
-
uploadId?: string | undefined;
|
|
3433
|
-
cid?: string | undefined;
|
|
3434
|
-
mimeType?: string | undefined;
|
|
3435
|
-
size?: number | undefined;
|
|
3436
|
-
docWritten?: boolean | undefined;
|
|
3437
3668
|
} | {
|
|
3438
3669
|
blockId: string;
|
|
3439
3670
|
streamId: string;
|
|
@@ -3491,65 +3722,95 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3491
3722
|
seq: number;
|
|
3492
3723
|
blockNr: number;
|
|
3493
3724
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3494
|
-
|
|
3725
|
+
stats: {
|
|
3726
|
+
lines: number;
|
|
3727
|
+
bytes: number;
|
|
3728
|
+
cnt?: number | undefined;
|
|
3729
|
+
};
|
|
3730
|
+
type: "block.image";
|
|
3495
3731
|
sectionId: string;
|
|
3732
|
+
url?: string | undefined;
|
|
3733
|
+
uploadId?: string | undefined;
|
|
3734
|
+
cid?: string | undefined;
|
|
3735
|
+
mimeType?: string | undefined;
|
|
3736
|
+
size?: number | undefined;
|
|
3737
|
+
docWritten?: boolean | undefined;
|
|
3496
3738
|
} | {
|
|
3497
3739
|
blockId: string;
|
|
3498
3740
|
streamId: string;
|
|
3499
3741
|
seq: number;
|
|
3500
3742
|
blockNr: number;
|
|
3501
3743
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3744
|
+
type: "block.stats";
|
|
3745
|
+
stats: {
|
|
3746
|
+
toplevel: {
|
|
3747
|
+
lines: number;
|
|
3748
|
+
bytes: number;
|
|
3749
|
+
cnt?: number | undefined;
|
|
3750
|
+
};
|
|
3751
|
+
code: {
|
|
3752
|
+
lines: number;
|
|
3753
|
+
bytes: number;
|
|
3754
|
+
cnt?: number | undefined;
|
|
3755
|
+
};
|
|
3756
|
+
image: {
|
|
3757
|
+
lines: number;
|
|
3758
|
+
bytes: number;
|
|
3759
|
+
cnt?: number | undefined;
|
|
3760
|
+
};
|
|
3761
|
+
total: {
|
|
3762
|
+
lines: number;
|
|
3763
|
+
bytes: number;
|
|
3764
|
+
cnt?: number | undefined;
|
|
3765
|
+
};
|
|
3766
|
+
};
|
|
3767
|
+
usage: {
|
|
3768
|
+
prompt_tokens: number;
|
|
3769
|
+
completion_tokens: number;
|
|
3770
|
+
total_tokens: number;
|
|
3771
|
+
model?: string | undefined;
|
|
3772
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
3773
|
+
reasoningEffort?: string | undefined;
|
|
3774
|
+
};
|
|
3506
3775
|
} | {
|
|
3507
|
-
|
|
3776
|
+
type: "prompt.research";
|
|
3777
|
+
version: 1;
|
|
3508
3778
|
streamId: string;
|
|
3779
|
+
chatId: string;
|
|
3509
3780
|
seq: number;
|
|
3510
|
-
blockNr: number;
|
|
3511
3781
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
promptId?: string | undefined;
|
|
3545
|
-
usageOnly?: boolean | undefined;
|
|
3546
|
-
}, {}>;
|
|
3547
|
-
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3548
|
-
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3549
|
-
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3550
|
-
blockSeq: number;
|
|
3551
|
-
created?: string | undefined;
|
|
3552
|
-
blocks: ({
|
|
3782
|
+
researchId: string;
|
|
3783
|
+
status: "complete" | "failed" | "partial";
|
|
3784
|
+
brief: string;
|
|
3785
|
+
sources: {
|
|
3786
|
+
url: string;
|
|
3787
|
+
finalUrl: string | null;
|
|
3788
|
+
contentType: string | null;
|
|
3789
|
+
httpStatus: number | null;
|
|
3790
|
+
backendFetchable: boolean;
|
|
3791
|
+
fetched: boolean;
|
|
3792
|
+
errorCode?: string | undefined;
|
|
3793
|
+
}[];
|
|
3794
|
+
api: {
|
|
3795
|
+
method: string;
|
|
3796
|
+
path: string;
|
|
3797
|
+
description: string;
|
|
3798
|
+
fields: string[];
|
|
3799
|
+
}[];
|
|
3800
|
+
excerpts: {
|
|
3801
|
+
sourceUrl: string;
|
|
3802
|
+
text: string;
|
|
3803
|
+
locator?: string | undefined;
|
|
3804
|
+
}[];
|
|
3805
|
+
seedRows: {
|
|
3806
|
+
sourceUrl: string;
|
|
3807
|
+
dbName: string;
|
|
3808
|
+
key: string;
|
|
3809
|
+
item: unknown;
|
|
3810
|
+
}[];
|
|
3811
|
+
completedAt: string;
|
|
3812
|
+
errorCode?: string | undefined;
|
|
3813
|
+
} | {
|
|
3553
3814
|
streamId: string;
|
|
3554
3815
|
chatId: string;
|
|
3555
3816
|
seq: number;
|
|
@@ -3920,268 +4181,19 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3920
4181
|
seq: number;
|
|
3921
4182
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3922
4183
|
round: number;
|
|
3923
|
-
maxRounds: number;
|
|
3924
|
-
tools: {
|
|
3925
|
-
name: string;
|
|
3926
|
-
path?: string | undefined;
|
|
3927
|
-
}[];
|
|
3928
|
-
} | {
|
|
3929
|
-
streamId: string;
|
|
3930
|
-
chatId: string;
|
|
3931
|
-
seq: number;
|
|
3932
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3933
|
-
type: "prompt.notice";
|
|
3934
|
-
kind: "edits-incomplete";
|
|
3935
|
-
path?: string | undefined;
|
|
3936
|
-
} | {
|
|
3937
|
-
type: "prompt.research";
|
|
3938
|
-
version: 1;
|
|
3939
|
-
streamId: string;
|
|
3940
|
-
chatId: string;
|
|
3941
|
-
seq: number;
|
|
3942
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3943
|
-
researchId: string;
|
|
3944
|
-
status: "complete" | "failed" | "partial";
|
|
3945
|
-
brief: string;
|
|
3946
|
-
sources: {
|
|
3947
|
-
url: string;
|
|
3948
|
-
finalUrl: string | null;
|
|
3949
|
-
contentType: string | null;
|
|
3950
|
-
httpStatus: number | null;
|
|
3951
|
-
backendFetchable: boolean;
|
|
3952
|
-
fetched: boolean;
|
|
3953
|
-
errorCode?: string | undefined;
|
|
3954
|
-
}[];
|
|
3955
|
-
api: {
|
|
3956
|
-
method: string;
|
|
3957
|
-
path: string;
|
|
3958
|
-
description: string;
|
|
3959
|
-
fields: string[];
|
|
3960
|
-
}[];
|
|
3961
|
-
excerpts: {
|
|
3962
|
-
sourceUrl: string;
|
|
3963
|
-
text: string;
|
|
3964
|
-
locator?: string | undefined;
|
|
3965
|
-
}[];
|
|
3966
|
-
seedRows: {
|
|
3967
|
-
sourceUrl: string;
|
|
3968
|
-
dbName: string;
|
|
3969
|
-
key: string;
|
|
3970
|
-
item: unknown;
|
|
3971
|
-
}[];
|
|
3972
|
-
completedAt: string;
|
|
3973
|
-
errorCode?: string | undefined;
|
|
3974
|
-
} | {
|
|
3975
|
-
blockId: string;
|
|
3976
|
-
streamId: string;
|
|
3977
|
-
seq: number;
|
|
3978
|
-
blockNr: number;
|
|
3979
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3980
|
-
type: "block.begin";
|
|
3981
|
-
} | {
|
|
3982
|
-
blockId: string;
|
|
3983
|
-
streamId: string;
|
|
3984
|
-
seq: number;
|
|
3985
|
-
blockNr: number;
|
|
3986
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3987
|
-
type: "block.end";
|
|
3988
|
-
stats: {
|
|
3989
|
-
toplevel: {
|
|
3990
|
-
lines: number;
|
|
3991
|
-
bytes: number;
|
|
3992
|
-
cnt?: number | undefined;
|
|
3993
|
-
};
|
|
3994
|
-
code: {
|
|
3995
|
-
lines: number;
|
|
3996
|
-
bytes: number;
|
|
3997
|
-
cnt?: number | undefined;
|
|
3998
|
-
};
|
|
3999
|
-
image: {
|
|
4000
|
-
lines: number;
|
|
4001
|
-
bytes: number;
|
|
4002
|
-
cnt?: number | undefined;
|
|
4003
|
-
};
|
|
4004
|
-
total: {
|
|
4005
|
-
lines: number;
|
|
4006
|
-
bytes: number;
|
|
4007
|
-
cnt?: number | undefined;
|
|
4008
|
-
};
|
|
4009
|
-
};
|
|
4010
|
-
usage: {
|
|
4011
|
-
given: {
|
|
4012
|
-
prompt_tokens: number;
|
|
4013
|
-
completion_tokens: number;
|
|
4014
|
-
total_tokens: number;
|
|
4015
|
-
model?: string | undefined;
|
|
4016
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4017
|
-
reasoningEffort?: string | undefined;
|
|
4018
|
-
}[];
|
|
4019
|
-
calculated: {
|
|
4020
|
-
prompt_tokens: number;
|
|
4021
|
-
completion_tokens: number;
|
|
4022
|
-
total_tokens: number;
|
|
4023
|
-
model?: string | undefined;
|
|
4024
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4025
|
-
reasoningEffort?: string | undefined;
|
|
4026
|
-
};
|
|
4027
|
-
};
|
|
4028
|
-
fsRef?: ((In: {
|
|
4029
|
-
appSlug: string;
|
|
4030
|
-
ownerHandle?: string | undefined;
|
|
4031
|
-
userSlug?: string | undefined;
|
|
4032
|
-
mode: "dev" | "production";
|
|
4033
|
-
fsId: string;
|
|
4034
|
-
}) => import("arktype").Out<{
|
|
4035
|
-
appSlug: string;
|
|
4036
|
-
mode: "dev" | "production";
|
|
4037
|
-
fsId: string;
|
|
4038
|
-
ownerHandle: string;
|
|
4039
|
-
}>) | undefined;
|
|
4040
|
-
touchedPaths?: string[] | undefined;
|
|
4041
|
-
settled?: {
|
|
4042
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4043
|
-
entryTouched: boolean;
|
|
4044
|
-
touchedCount: number;
|
|
4045
|
-
applied: boolean;
|
|
4046
|
-
} | undefined;
|
|
4047
|
-
} | {
|
|
4048
|
-
blockId: string;
|
|
4049
|
-
streamId: string;
|
|
4050
|
-
seq: number;
|
|
4051
|
-
blockNr: number;
|
|
4052
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4053
|
-
type: "block.stats";
|
|
4054
|
-
stats: {
|
|
4055
|
-
toplevel: {
|
|
4056
|
-
lines: number;
|
|
4057
|
-
bytes: number;
|
|
4058
|
-
cnt?: number | undefined;
|
|
4059
|
-
};
|
|
4060
|
-
code: {
|
|
4061
|
-
lines: number;
|
|
4062
|
-
bytes: number;
|
|
4063
|
-
cnt?: number | undefined;
|
|
4064
|
-
};
|
|
4065
|
-
image: {
|
|
4066
|
-
lines: number;
|
|
4067
|
-
bytes: number;
|
|
4068
|
-
cnt?: number | undefined;
|
|
4069
|
-
};
|
|
4070
|
-
total: {
|
|
4071
|
-
lines: number;
|
|
4072
|
-
bytes: number;
|
|
4073
|
-
cnt?: number | undefined;
|
|
4074
|
-
};
|
|
4075
|
-
};
|
|
4076
|
-
usage: {
|
|
4077
|
-
prompt_tokens: number;
|
|
4078
|
-
completion_tokens: number;
|
|
4079
|
-
total_tokens: number;
|
|
4080
|
-
model?: string | undefined;
|
|
4081
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4082
|
-
reasoningEffort?: string | undefined;
|
|
4083
|
-
};
|
|
4084
|
-
} | {
|
|
4085
|
-
blockId: string;
|
|
4086
|
-
streamId: string;
|
|
4087
|
-
seq: number;
|
|
4088
|
-
blockNr: number;
|
|
4089
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4090
|
-
stats: {
|
|
4091
|
-
lines: number;
|
|
4092
|
-
bytes: number;
|
|
4093
|
-
cnt?: number | undefined;
|
|
4094
|
-
};
|
|
4095
|
-
type: "block.image";
|
|
4096
|
-
sectionId: string;
|
|
4097
|
-
url?: string | undefined;
|
|
4098
|
-
uploadId?: string | undefined;
|
|
4099
|
-
cid?: string | undefined;
|
|
4100
|
-
mimeType?: string | undefined;
|
|
4101
|
-
size?: number | undefined;
|
|
4102
|
-
docWritten?: boolean | undefined;
|
|
4103
|
-
} | {
|
|
4104
|
-
blockId: string;
|
|
4105
|
-
streamId: string;
|
|
4106
|
-
seq: number;
|
|
4107
|
-
blockNr: number;
|
|
4108
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4109
|
-
type: "block.code.begin";
|
|
4110
|
-
sectionId: string;
|
|
4111
|
-
lang: string;
|
|
4112
|
-
path?: string | undefined;
|
|
4113
|
-
} | {
|
|
4114
|
-
blockId: string;
|
|
4115
|
-
streamId: string;
|
|
4116
|
-
seq: number;
|
|
4117
|
-
blockNr: number;
|
|
4118
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4119
|
-
lineNr: number;
|
|
4120
|
-
line: string;
|
|
4121
|
-
type: "block.code.line";
|
|
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
|
-
stats: {
|
|
4132
|
-
lines: number;
|
|
4133
|
-
bytes: number;
|
|
4134
|
-
cnt?: number | undefined;
|
|
4135
|
-
};
|
|
4136
|
-
type: "block.code.end";
|
|
4137
|
-
sectionId: string;
|
|
4138
|
-
lang: string;
|
|
4139
|
-
path?: string | undefined;
|
|
4140
|
-
} | {
|
|
4141
|
-
blockId: string;
|
|
4142
|
-
streamId: string;
|
|
4143
|
-
seq: number;
|
|
4144
|
-
blockNr: number;
|
|
4145
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4146
|
-
type: "block.code.truncated";
|
|
4147
|
-
sectionId: string;
|
|
4148
|
-
lang: string;
|
|
4149
|
-
path?: string | undefined;
|
|
4150
|
-
reason: string;
|
|
4151
|
-
kind: string;
|
|
4152
|
-
truncatedAtLine: number;
|
|
4153
|
-
errorCount: number;
|
|
4154
|
-
} | {
|
|
4155
|
-
blockId: string;
|
|
4156
|
-
streamId: string;
|
|
4157
|
-
seq: number;
|
|
4158
|
-
blockNr: number;
|
|
4159
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4160
|
-
type: "block.toplevel.begin";
|
|
4161
|
-
sectionId: string;
|
|
4162
|
-
} | {
|
|
4163
|
-
blockId: string;
|
|
4164
|
-
streamId: string;
|
|
4165
|
-
seq: number;
|
|
4166
|
-
blockNr: number;
|
|
4167
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4168
|
-
lineNr: number;
|
|
4169
|
-
line: string;
|
|
4170
|
-
type: "block.toplevel.line";
|
|
4171
|
-
sectionId: string;
|
|
4184
|
+
maxRounds: number;
|
|
4185
|
+
tools: {
|
|
4186
|
+
name: string;
|
|
4187
|
+
path?: string | undefined;
|
|
4188
|
+
}[];
|
|
4172
4189
|
} | {
|
|
4173
|
-
blockId: string;
|
|
4174
4190
|
streamId: string;
|
|
4191
|
+
chatId: string;
|
|
4175
4192
|
seq: number;
|
|
4176
|
-
blockNr: number;
|
|
4177
4193
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4178
|
-
|
|
4179
|
-
|
|
4180
|
-
|
|
4181
|
-
cnt?: number | undefined;
|
|
4182
|
-
};
|
|
4183
|
-
type: "block.toplevel.end";
|
|
4184
|
-
sectionId: string;
|
|
4194
|
+
type: "prompt.notice";
|
|
4195
|
+
kind: "edits-incomplete";
|
|
4196
|
+
path?: string | undefined;
|
|
4185
4197
|
})[];
|
|
4186
4198
|
}, {}>;
|
|
4187
4199
|
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
@@ -4215,6 +4227,259 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4215
4227
|
blockSeq: number;
|
|
4216
4228
|
created?: string | undefined;
|
|
4217
4229
|
blocks: ({
|
|
4230
|
+
blockId: string;
|
|
4231
|
+
streamId: string;
|
|
4232
|
+
seq: number;
|
|
4233
|
+
blockNr: number;
|
|
4234
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4235
|
+
type: "block.begin";
|
|
4236
|
+
} | {
|
|
4237
|
+
blockId: string;
|
|
4238
|
+
streamId: string;
|
|
4239
|
+
seq: number;
|
|
4240
|
+
blockNr: number;
|
|
4241
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4242
|
+
type: "block.end";
|
|
4243
|
+
stats: {
|
|
4244
|
+
toplevel: {
|
|
4245
|
+
lines: number;
|
|
4246
|
+
bytes: number;
|
|
4247
|
+
cnt?: number | undefined;
|
|
4248
|
+
};
|
|
4249
|
+
code: {
|
|
4250
|
+
lines: number;
|
|
4251
|
+
bytes: number;
|
|
4252
|
+
cnt?: number | undefined;
|
|
4253
|
+
};
|
|
4254
|
+
image: {
|
|
4255
|
+
lines: number;
|
|
4256
|
+
bytes: number;
|
|
4257
|
+
cnt?: number | undefined;
|
|
4258
|
+
};
|
|
4259
|
+
total: {
|
|
4260
|
+
lines: number;
|
|
4261
|
+
bytes: number;
|
|
4262
|
+
cnt?: number | undefined;
|
|
4263
|
+
};
|
|
4264
|
+
};
|
|
4265
|
+
usage: {
|
|
4266
|
+
given: {
|
|
4267
|
+
prompt_tokens: number;
|
|
4268
|
+
completion_tokens: number;
|
|
4269
|
+
total_tokens: number;
|
|
4270
|
+
model?: string | undefined;
|
|
4271
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4272
|
+
reasoningEffort?: string | undefined;
|
|
4273
|
+
}[];
|
|
4274
|
+
calculated: {
|
|
4275
|
+
prompt_tokens: number;
|
|
4276
|
+
completion_tokens: number;
|
|
4277
|
+
total_tokens: number;
|
|
4278
|
+
model?: string | undefined;
|
|
4279
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4280
|
+
reasoningEffort?: string | undefined;
|
|
4281
|
+
};
|
|
4282
|
+
};
|
|
4283
|
+
fsRef?: ((In: {
|
|
4284
|
+
appSlug: string;
|
|
4285
|
+
ownerHandle?: string | undefined;
|
|
4286
|
+
userSlug?: string | undefined;
|
|
4287
|
+
mode: "dev" | "production";
|
|
4288
|
+
fsId: string;
|
|
4289
|
+
}) => import("arktype").Out<{
|
|
4290
|
+
appSlug: string;
|
|
4291
|
+
mode: "dev" | "production";
|
|
4292
|
+
fsId: string;
|
|
4293
|
+
ownerHandle: string;
|
|
4294
|
+
}>) | undefined;
|
|
4295
|
+
touchedPaths?: string[] | undefined;
|
|
4296
|
+
settled?: {
|
|
4297
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4298
|
+
entryTouched: boolean;
|
|
4299
|
+
touchedCount: number;
|
|
4300
|
+
applied: boolean;
|
|
4301
|
+
} | undefined;
|
|
4302
|
+
saveRepair?: {
|
|
4303
|
+
repaired: string[];
|
|
4304
|
+
attempts: number;
|
|
4305
|
+
} | undefined;
|
|
4306
|
+
} | {
|
|
4307
|
+
blockId: string;
|
|
4308
|
+
streamId: string;
|
|
4309
|
+
seq: number;
|
|
4310
|
+
blockNr: number;
|
|
4311
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4312
|
+
type: "block.toplevel.begin";
|
|
4313
|
+
sectionId: string;
|
|
4314
|
+
} | {
|
|
4315
|
+
blockId: string;
|
|
4316
|
+
streamId: string;
|
|
4317
|
+
seq: number;
|
|
4318
|
+
blockNr: number;
|
|
4319
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4320
|
+
lineNr: number;
|
|
4321
|
+
line: string;
|
|
4322
|
+
type: "block.toplevel.line";
|
|
4323
|
+
sectionId: string;
|
|
4324
|
+
} | {
|
|
4325
|
+
blockId: string;
|
|
4326
|
+
streamId: string;
|
|
4327
|
+
seq: number;
|
|
4328
|
+
blockNr: number;
|
|
4329
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4330
|
+
stats: {
|
|
4331
|
+
lines: number;
|
|
4332
|
+
bytes: number;
|
|
4333
|
+
cnt?: number | undefined;
|
|
4334
|
+
};
|
|
4335
|
+
type: "block.toplevel.end";
|
|
4336
|
+
sectionId: string;
|
|
4337
|
+
} | {
|
|
4338
|
+
blockId: string;
|
|
4339
|
+
streamId: string;
|
|
4340
|
+
seq: number;
|
|
4341
|
+
blockNr: number;
|
|
4342
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4343
|
+
type: "block.code.begin";
|
|
4344
|
+
sectionId: string;
|
|
4345
|
+
lang: string;
|
|
4346
|
+
path?: string | undefined;
|
|
4347
|
+
} | {
|
|
4348
|
+
blockId: string;
|
|
4349
|
+
streamId: string;
|
|
4350
|
+
seq: number;
|
|
4351
|
+
blockNr: number;
|
|
4352
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4353
|
+
lineNr: number;
|
|
4354
|
+
line: string;
|
|
4355
|
+
type: "block.code.line";
|
|
4356
|
+
sectionId: string;
|
|
4357
|
+
lang: string;
|
|
4358
|
+
path?: string | undefined;
|
|
4359
|
+
} | {
|
|
4360
|
+
blockId: string;
|
|
4361
|
+
streamId: string;
|
|
4362
|
+
seq: number;
|
|
4363
|
+
blockNr: number;
|
|
4364
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4365
|
+
stats: {
|
|
4366
|
+
lines: number;
|
|
4367
|
+
bytes: number;
|
|
4368
|
+
cnt?: number | undefined;
|
|
4369
|
+
};
|
|
4370
|
+
type: "block.code.end";
|
|
4371
|
+
sectionId: string;
|
|
4372
|
+
lang: string;
|
|
4373
|
+
path?: string | undefined;
|
|
4374
|
+
} | {
|
|
4375
|
+
blockId: string;
|
|
4376
|
+
streamId: string;
|
|
4377
|
+
seq: number;
|
|
4378
|
+
blockNr: number;
|
|
4379
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4380
|
+
type: "block.code.truncated";
|
|
4381
|
+
sectionId: string;
|
|
4382
|
+
lang: string;
|
|
4383
|
+
path?: string | undefined;
|
|
4384
|
+
reason: string;
|
|
4385
|
+
kind: string;
|
|
4386
|
+
truncatedAtLine: number;
|
|
4387
|
+
errorCount: number;
|
|
4388
|
+
} | {
|
|
4389
|
+
blockId: string;
|
|
4390
|
+
streamId: string;
|
|
4391
|
+
seq: number;
|
|
4392
|
+
blockNr: number;
|
|
4393
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4394
|
+
stats: {
|
|
4395
|
+
lines: number;
|
|
4396
|
+
bytes: number;
|
|
4397
|
+
cnt?: number | undefined;
|
|
4398
|
+
};
|
|
4399
|
+
type: "block.image";
|
|
4400
|
+
sectionId: string;
|
|
4401
|
+
url?: string | undefined;
|
|
4402
|
+
uploadId?: string | undefined;
|
|
4403
|
+
cid?: string | undefined;
|
|
4404
|
+
mimeType?: string | undefined;
|
|
4405
|
+
size?: number | undefined;
|
|
4406
|
+
docWritten?: boolean | undefined;
|
|
4407
|
+
} | {
|
|
4408
|
+
blockId: string;
|
|
4409
|
+
streamId: string;
|
|
4410
|
+
seq: number;
|
|
4411
|
+
blockNr: number;
|
|
4412
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4413
|
+
type: "block.stats";
|
|
4414
|
+
stats: {
|
|
4415
|
+
toplevel: {
|
|
4416
|
+
lines: number;
|
|
4417
|
+
bytes: number;
|
|
4418
|
+
cnt?: number | undefined;
|
|
4419
|
+
};
|
|
4420
|
+
code: {
|
|
4421
|
+
lines: number;
|
|
4422
|
+
bytes: number;
|
|
4423
|
+
cnt?: number | undefined;
|
|
4424
|
+
};
|
|
4425
|
+
image: {
|
|
4426
|
+
lines: number;
|
|
4427
|
+
bytes: number;
|
|
4428
|
+
cnt?: number | undefined;
|
|
4429
|
+
};
|
|
4430
|
+
total: {
|
|
4431
|
+
lines: number;
|
|
4432
|
+
bytes: number;
|
|
4433
|
+
cnt?: number | undefined;
|
|
4434
|
+
};
|
|
4435
|
+
};
|
|
4436
|
+
usage: {
|
|
4437
|
+
prompt_tokens: number;
|
|
4438
|
+
completion_tokens: number;
|
|
4439
|
+
total_tokens: number;
|
|
4440
|
+
model?: string | undefined;
|
|
4441
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4442
|
+
reasoningEffort?: string | undefined;
|
|
4443
|
+
};
|
|
4444
|
+
} | {
|
|
4445
|
+
type: "prompt.research";
|
|
4446
|
+
version: 1;
|
|
4447
|
+
streamId: string;
|
|
4448
|
+
chatId: string;
|
|
4449
|
+
seq: number;
|
|
4450
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4451
|
+
researchId: string;
|
|
4452
|
+
status: "complete" | "failed" | "partial";
|
|
4453
|
+
brief: string;
|
|
4454
|
+
sources: {
|
|
4455
|
+
url: string;
|
|
4456
|
+
finalUrl: string | null;
|
|
4457
|
+
contentType: string | null;
|
|
4458
|
+
httpStatus: number | null;
|
|
4459
|
+
backendFetchable: boolean;
|
|
4460
|
+
fetched: boolean;
|
|
4461
|
+
errorCode?: string | undefined;
|
|
4462
|
+
}[];
|
|
4463
|
+
api: {
|
|
4464
|
+
method: string;
|
|
4465
|
+
path: string;
|
|
4466
|
+
description: string;
|
|
4467
|
+
fields: string[];
|
|
4468
|
+
}[];
|
|
4469
|
+
excerpts: {
|
|
4470
|
+
sourceUrl: string;
|
|
4471
|
+
text: string;
|
|
4472
|
+
locator?: string | undefined;
|
|
4473
|
+
}[];
|
|
4474
|
+
seedRows: {
|
|
4475
|
+
sourceUrl: string;
|
|
4476
|
+
dbName: string;
|
|
4477
|
+
key: string;
|
|
4478
|
+
item: unknown;
|
|
4479
|
+
}[];
|
|
4480
|
+
completedAt: string;
|
|
4481
|
+
errorCode?: string | undefined;
|
|
4482
|
+
} | {
|
|
4218
4483
|
streamId: string;
|
|
4219
4484
|
chatId: string;
|
|
4220
4485
|
seq: number;
|
|
@@ -4592,261 +4857,12 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4592
4857
|
}[];
|
|
4593
4858
|
} | {
|
|
4594
4859
|
streamId: string;
|
|
4595
|
-
chatId: string;
|
|
4596
|
-
seq: number;
|
|
4597
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4598
|
-
type: "prompt.notice";
|
|
4599
|
-
kind: "edits-incomplete";
|
|
4600
|
-
path?: string | undefined;
|
|
4601
|
-
} | {
|
|
4602
|
-
type: "prompt.research";
|
|
4603
|
-
version: 1;
|
|
4604
|
-
streamId: string;
|
|
4605
|
-
chatId: string;
|
|
4606
|
-
seq: number;
|
|
4607
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4608
|
-
researchId: string;
|
|
4609
|
-
status: "complete" | "failed" | "partial";
|
|
4610
|
-
brief: string;
|
|
4611
|
-
sources: {
|
|
4612
|
-
url: string;
|
|
4613
|
-
finalUrl: string | null;
|
|
4614
|
-
contentType: string | null;
|
|
4615
|
-
httpStatus: number | null;
|
|
4616
|
-
backendFetchable: boolean;
|
|
4617
|
-
fetched: boolean;
|
|
4618
|
-
errorCode?: string | undefined;
|
|
4619
|
-
}[];
|
|
4620
|
-
api: {
|
|
4621
|
-
method: string;
|
|
4622
|
-
path: string;
|
|
4623
|
-
description: string;
|
|
4624
|
-
fields: string[];
|
|
4625
|
-
}[];
|
|
4626
|
-
excerpts: {
|
|
4627
|
-
sourceUrl: string;
|
|
4628
|
-
text: string;
|
|
4629
|
-
locator?: string | undefined;
|
|
4630
|
-
}[];
|
|
4631
|
-
seedRows: {
|
|
4632
|
-
sourceUrl: string;
|
|
4633
|
-
dbName: string;
|
|
4634
|
-
key: string;
|
|
4635
|
-
item: unknown;
|
|
4636
|
-
}[];
|
|
4637
|
-
completedAt: string;
|
|
4638
|
-
errorCode?: string | undefined;
|
|
4639
|
-
} | {
|
|
4640
|
-
blockId: string;
|
|
4641
|
-
streamId: string;
|
|
4642
|
-
seq: number;
|
|
4643
|
-
blockNr: number;
|
|
4644
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4645
|
-
type: "block.begin";
|
|
4646
|
-
} | {
|
|
4647
|
-
blockId: string;
|
|
4648
|
-
streamId: string;
|
|
4649
|
-
seq: number;
|
|
4650
|
-
blockNr: number;
|
|
4651
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4652
|
-
type: "block.end";
|
|
4653
|
-
stats: {
|
|
4654
|
-
toplevel: {
|
|
4655
|
-
lines: number;
|
|
4656
|
-
bytes: number;
|
|
4657
|
-
cnt?: number | undefined;
|
|
4658
|
-
};
|
|
4659
|
-
code: {
|
|
4660
|
-
lines: number;
|
|
4661
|
-
bytes: number;
|
|
4662
|
-
cnt?: number | undefined;
|
|
4663
|
-
};
|
|
4664
|
-
image: {
|
|
4665
|
-
lines: number;
|
|
4666
|
-
bytes: number;
|
|
4667
|
-
cnt?: number | undefined;
|
|
4668
|
-
};
|
|
4669
|
-
total: {
|
|
4670
|
-
lines: number;
|
|
4671
|
-
bytes: number;
|
|
4672
|
-
cnt?: number | undefined;
|
|
4673
|
-
};
|
|
4674
|
-
};
|
|
4675
|
-
usage: {
|
|
4676
|
-
given: {
|
|
4677
|
-
prompt_tokens: number;
|
|
4678
|
-
completion_tokens: number;
|
|
4679
|
-
total_tokens: number;
|
|
4680
|
-
model?: string | undefined;
|
|
4681
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4682
|
-
reasoningEffort?: string | undefined;
|
|
4683
|
-
}[];
|
|
4684
|
-
calculated: {
|
|
4685
|
-
prompt_tokens: number;
|
|
4686
|
-
completion_tokens: number;
|
|
4687
|
-
total_tokens: number;
|
|
4688
|
-
model?: string | undefined;
|
|
4689
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4690
|
-
reasoningEffort?: string | undefined;
|
|
4691
|
-
};
|
|
4692
|
-
};
|
|
4693
|
-
fsRef?: ((In: {
|
|
4694
|
-
appSlug: string;
|
|
4695
|
-
ownerHandle?: string | undefined;
|
|
4696
|
-
userSlug?: string | undefined;
|
|
4697
|
-
mode: "dev" | "production";
|
|
4698
|
-
fsId: string;
|
|
4699
|
-
}) => import("arktype").Out<{
|
|
4700
|
-
appSlug: string;
|
|
4701
|
-
mode: "dev" | "production";
|
|
4702
|
-
fsId: string;
|
|
4703
|
-
ownerHandle: string;
|
|
4704
|
-
}>) | undefined;
|
|
4705
|
-
touchedPaths?: string[] | undefined;
|
|
4706
|
-
settled?: {
|
|
4707
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4708
|
-
entryTouched: boolean;
|
|
4709
|
-
touchedCount: number;
|
|
4710
|
-
applied: boolean;
|
|
4711
|
-
} | undefined;
|
|
4712
|
-
} | {
|
|
4713
|
-
blockId: string;
|
|
4714
|
-
streamId: string;
|
|
4715
|
-
seq: number;
|
|
4716
|
-
blockNr: number;
|
|
4717
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4718
|
-
type: "block.stats";
|
|
4719
|
-
stats: {
|
|
4720
|
-
toplevel: {
|
|
4721
|
-
lines: number;
|
|
4722
|
-
bytes: number;
|
|
4723
|
-
cnt?: number | undefined;
|
|
4724
|
-
};
|
|
4725
|
-
code: {
|
|
4726
|
-
lines: number;
|
|
4727
|
-
bytes: number;
|
|
4728
|
-
cnt?: number | undefined;
|
|
4729
|
-
};
|
|
4730
|
-
image: {
|
|
4731
|
-
lines: number;
|
|
4732
|
-
bytes: number;
|
|
4733
|
-
cnt?: number | undefined;
|
|
4734
|
-
};
|
|
4735
|
-
total: {
|
|
4736
|
-
lines: number;
|
|
4737
|
-
bytes: number;
|
|
4738
|
-
cnt?: number | undefined;
|
|
4739
|
-
};
|
|
4740
|
-
};
|
|
4741
|
-
usage: {
|
|
4742
|
-
prompt_tokens: number;
|
|
4743
|
-
completion_tokens: number;
|
|
4744
|
-
total_tokens: number;
|
|
4745
|
-
model?: string | undefined;
|
|
4746
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4747
|
-
reasoningEffort?: string | undefined;
|
|
4748
|
-
};
|
|
4749
|
-
} | {
|
|
4750
|
-
blockId: string;
|
|
4751
|
-
streamId: string;
|
|
4752
|
-
seq: number;
|
|
4753
|
-
blockNr: number;
|
|
4754
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4755
|
-
stats: {
|
|
4756
|
-
lines: number;
|
|
4757
|
-
bytes: number;
|
|
4758
|
-
cnt?: number | undefined;
|
|
4759
|
-
};
|
|
4760
|
-
type: "block.image";
|
|
4761
|
-
sectionId: string;
|
|
4762
|
-
url?: string | undefined;
|
|
4763
|
-
uploadId?: string | undefined;
|
|
4764
|
-
cid?: string | undefined;
|
|
4765
|
-
mimeType?: string | undefined;
|
|
4766
|
-
size?: number | undefined;
|
|
4767
|
-
docWritten?: boolean | undefined;
|
|
4768
|
-
} | {
|
|
4769
|
-
blockId: string;
|
|
4770
|
-
streamId: string;
|
|
4771
|
-
seq: number;
|
|
4772
|
-
blockNr: number;
|
|
4773
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4774
|
-
type: "block.code.begin";
|
|
4775
|
-
sectionId: string;
|
|
4776
|
-
lang: string;
|
|
4777
|
-
path?: string | undefined;
|
|
4778
|
-
} | {
|
|
4779
|
-
blockId: string;
|
|
4780
|
-
streamId: string;
|
|
4781
|
-
seq: number;
|
|
4782
|
-
blockNr: number;
|
|
4783
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4784
|
-
lineNr: number;
|
|
4785
|
-
line: string;
|
|
4786
|
-
type: "block.code.line";
|
|
4787
|
-
sectionId: string;
|
|
4788
|
-
lang: string;
|
|
4789
|
-
path?: string | undefined;
|
|
4790
|
-
} | {
|
|
4791
|
-
blockId: string;
|
|
4792
|
-
streamId: string;
|
|
4793
|
-
seq: number;
|
|
4794
|
-
blockNr: number;
|
|
4795
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4796
|
-
stats: {
|
|
4797
|
-
lines: number;
|
|
4798
|
-
bytes: number;
|
|
4799
|
-
cnt?: number | undefined;
|
|
4800
|
-
};
|
|
4801
|
-
type: "block.code.end";
|
|
4802
|
-
sectionId: string;
|
|
4803
|
-
lang: string;
|
|
4804
|
-
path?: string | undefined;
|
|
4805
|
-
} | {
|
|
4806
|
-
blockId: string;
|
|
4807
|
-
streamId: string;
|
|
4808
|
-
seq: number;
|
|
4809
|
-
blockNr: number;
|
|
4810
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4811
|
-
type: "block.code.truncated";
|
|
4812
|
-
sectionId: string;
|
|
4813
|
-
lang: string;
|
|
4814
|
-
path?: string | undefined;
|
|
4815
|
-
reason: string;
|
|
4816
|
-
kind: string;
|
|
4817
|
-
truncatedAtLine: number;
|
|
4818
|
-
errorCount: number;
|
|
4819
|
-
} | {
|
|
4820
|
-
blockId: string;
|
|
4821
|
-
streamId: string;
|
|
4822
|
-
seq: number;
|
|
4823
|
-
blockNr: number;
|
|
4824
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4825
|
-
type: "block.toplevel.begin";
|
|
4826
|
-
sectionId: string;
|
|
4827
|
-
} | {
|
|
4828
|
-
blockId: string;
|
|
4829
|
-
streamId: string;
|
|
4830
|
-
seq: number;
|
|
4831
|
-
blockNr: number;
|
|
4832
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4833
|
-
lineNr: number;
|
|
4834
|
-
line: string;
|
|
4835
|
-
type: "block.toplevel.line";
|
|
4836
|
-
sectionId: string;
|
|
4837
|
-
} | {
|
|
4838
|
-
blockId: string;
|
|
4839
|
-
streamId: string;
|
|
4860
|
+
chatId: string;
|
|
4840
4861
|
seq: number;
|
|
4841
|
-
blockNr: number;
|
|
4842
4862
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
cnt?: number | undefined;
|
|
4847
|
-
};
|
|
4848
|
-
type: "block.toplevel.end";
|
|
4849
|
-
sectionId: string;
|
|
4863
|
+
type: "prompt.notice";
|
|
4864
|
+
kind: "edits-incomplete";
|
|
4865
|
+
path?: string | undefined;
|
|
4850
4866
|
})[];
|
|
4851
4867
|
}[];
|
|
4852
4868
|
usage?: {
|
|
@@ -4892,6 +4908,259 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
4892
4908
|
blockSeq: number;
|
|
4893
4909
|
created?: string | undefined;
|
|
4894
4910
|
blocks: ({
|
|
4911
|
+
blockId: string;
|
|
4912
|
+
streamId: string;
|
|
4913
|
+
seq: number;
|
|
4914
|
+
blockNr: number;
|
|
4915
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4916
|
+
type: "block.begin";
|
|
4917
|
+
} | {
|
|
4918
|
+
blockId: string;
|
|
4919
|
+
streamId: string;
|
|
4920
|
+
seq: number;
|
|
4921
|
+
blockNr: number;
|
|
4922
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4923
|
+
type: "block.end";
|
|
4924
|
+
stats: {
|
|
4925
|
+
toplevel: {
|
|
4926
|
+
lines: number;
|
|
4927
|
+
bytes: number;
|
|
4928
|
+
cnt?: number | undefined;
|
|
4929
|
+
};
|
|
4930
|
+
code: {
|
|
4931
|
+
lines: number;
|
|
4932
|
+
bytes: number;
|
|
4933
|
+
cnt?: number | undefined;
|
|
4934
|
+
};
|
|
4935
|
+
image: {
|
|
4936
|
+
lines: number;
|
|
4937
|
+
bytes: number;
|
|
4938
|
+
cnt?: number | undefined;
|
|
4939
|
+
};
|
|
4940
|
+
total: {
|
|
4941
|
+
lines: number;
|
|
4942
|
+
bytes: number;
|
|
4943
|
+
cnt?: number | undefined;
|
|
4944
|
+
};
|
|
4945
|
+
};
|
|
4946
|
+
usage: {
|
|
4947
|
+
given: {
|
|
4948
|
+
prompt_tokens: number;
|
|
4949
|
+
completion_tokens: number;
|
|
4950
|
+
total_tokens: number;
|
|
4951
|
+
model?: string | undefined;
|
|
4952
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4953
|
+
reasoningEffort?: string | undefined;
|
|
4954
|
+
}[];
|
|
4955
|
+
calculated: {
|
|
4956
|
+
prompt_tokens: number;
|
|
4957
|
+
completion_tokens: number;
|
|
4958
|
+
total_tokens: number;
|
|
4959
|
+
model?: string | undefined;
|
|
4960
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
4961
|
+
reasoningEffort?: string | undefined;
|
|
4962
|
+
};
|
|
4963
|
+
};
|
|
4964
|
+
fsRef?: ((In: {
|
|
4965
|
+
appSlug: string;
|
|
4966
|
+
ownerHandle?: string | undefined;
|
|
4967
|
+
userSlug?: string | undefined;
|
|
4968
|
+
mode: "dev" | "production";
|
|
4969
|
+
fsId: string;
|
|
4970
|
+
}) => import("arktype").Out<{
|
|
4971
|
+
appSlug: string;
|
|
4972
|
+
mode: "dev" | "production";
|
|
4973
|
+
fsId: string;
|
|
4974
|
+
ownerHandle: string;
|
|
4975
|
+
}>) | undefined;
|
|
4976
|
+
touchedPaths?: string[] | undefined;
|
|
4977
|
+
settled?: {
|
|
4978
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4979
|
+
entryTouched: boolean;
|
|
4980
|
+
touchedCount: number;
|
|
4981
|
+
applied: boolean;
|
|
4982
|
+
} | undefined;
|
|
4983
|
+
saveRepair?: {
|
|
4984
|
+
repaired: string[];
|
|
4985
|
+
attempts: number;
|
|
4986
|
+
} | undefined;
|
|
4987
|
+
} | {
|
|
4988
|
+
blockId: string;
|
|
4989
|
+
streamId: string;
|
|
4990
|
+
seq: number;
|
|
4991
|
+
blockNr: number;
|
|
4992
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4993
|
+
type: "block.toplevel.begin";
|
|
4994
|
+
sectionId: string;
|
|
4995
|
+
} | {
|
|
4996
|
+
blockId: string;
|
|
4997
|
+
streamId: string;
|
|
4998
|
+
seq: number;
|
|
4999
|
+
blockNr: number;
|
|
5000
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5001
|
+
lineNr: number;
|
|
5002
|
+
line: string;
|
|
5003
|
+
type: "block.toplevel.line";
|
|
5004
|
+
sectionId: string;
|
|
5005
|
+
} | {
|
|
5006
|
+
blockId: string;
|
|
5007
|
+
streamId: string;
|
|
5008
|
+
seq: number;
|
|
5009
|
+
blockNr: number;
|
|
5010
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5011
|
+
stats: {
|
|
5012
|
+
lines: number;
|
|
5013
|
+
bytes: number;
|
|
5014
|
+
cnt?: number | undefined;
|
|
5015
|
+
};
|
|
5016
|
+
type: "block.toplevel.end";
|
|
5017
|
+
sectionId: string;
|
|
5018
|
+
} | {
|
|
5019
|
+
blockId: string;
|
|
5020
|
+
streamId: string;
|
|
5021
|
+
seq: number;
|
|
5022
|
+
blockNr: number;
|
|
5023
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5024
|
+
type: "block.code.begin";
|
|
5025
|
+
sectionId: string;
|
|
5026
|
+
lang: string;
|
|
5027
|
+
path?: string | undefined;
|
|
5028
|
+
} | {
|
|
5029
|
+
blockId: string;
|
|
5030
|
+
streamId: string;
|
|
5031
|
+
seq: number;
|
|
5032
|
+
blockNr: number;
|
|
5033
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5034
|
+
lineNr: number;
|
|
5035
|
+
line: string;
|
|
5036
|
+
type: "block.code.line";
|
|
5037
|
+
sectionId: string;
|
|
5038
|
+
lang: string;
|
|
5039
|
+
path?: string | undefined;
|
|
5040
|
+
} | {
|
|
5041
|
+
blockId: string;
|
|
5042
|
+
streamId: string;
|
|
5043
|
+
seq: number;
|
|
5044
|
+
blockNr: number;
|
|
5045
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5046
|
+
stats: {
|
|
5047
|
+
lines: number;
|
|
5048
|
+
bytes: number;
|
|
5049
|
+
cnt?: number | undefined;
|
|
5050
|
+
};
|
|
5051
|
+
type: "block.code.end";
|
|
5052
|
+
sectionId: string;
|
|
5053
|
+
lang: string;
|
|
5054
|
+
path?: string | undefined;
|
|
5055
|
+
} | {
|
|
5056
|
+
blockId: string;
|
|
5057
|
+
streamId: string;
|
|
5058
|
+
seq: number;
|
|
5059
|
+
blockNr: number;
|
|
5060
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5061
|
+
type: "block.code.truncated";
|
|
5062
|
+
sectionId: string;
|
|
5063
|
+
lang: string;
|
|
5064
|
+
path?: string | undefined;
|
|
5065
|
+
reason: string;
|
|
5066
|
+
kind: string;
|
|
5067
|
+
truncatedAtLine: number;
|
|
5068
|
+
errorCount: number;
|
|
5069
|
+
} | {
|
|
5070
|
+
blockId: string;
|
|
5071
|
+
streamId: string;
|
|
5072
|
+
seq: number;
|
|
5073
|
+
blockNr: number;
|
|
5074
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5075
|
+
stats: {
|
|
5076
|
+
lines: number;
|
|
5077
|
+
bytes: number;
|
|
5078
|
+
cnt?: number | undefined;
|
|
5079
|
+
};
|
|
5080
|
+
type: "block.image";
|
|
5081
|
+
sectionId: string;
|
|
5082
|
+
url?: string | undefined;
|
|
5083
|
+
uploadId?: string | undefined;
|
|
5084
|
+
cid?: string | undefined;
|
|
5085
|
+
mimeType?: string | undefined;
|
|
5086
|
+
size?: number | undefined;
|
|
5087
|
+
docWritten?: boolean | undefined;
|
|
5088
|
+
} | {
|
|
5089
|
+
blockId: string;
|
|
5090
|
+
streamId: string;
|
|
5091
|
+
seq: number;
|
|
5092
|
+
blockNr: number;
|
|
5093
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5094
|
+
type: "block.stats";
|
|
5095
|
+
stats: {
|
|
5096
|
+
toplevel: {
|
|
5097
|
+
lines: number;
|
|
5098
|
+
bytes: number;
|
|
5099
|
+
cnt?: number | undefined;
|
|
5100
|
+
};
|
|
5101
|
+
code: {
|
|
5102
|
+
lines: number;
|
|
5103
|
+
bytes: number;
|
|
5104
|
+
cnt?: number | undefined;
|
|
5105
|
+
};
|
|
5106
|
+
image: {
|
|
5107
|
+
lines: number;
|
|
5108
|
+
bytes: number;
|
|
5109
|
+
cnt?: number | undefined;
|
|
5110
|
+
};
|
|
5111
|
+
total: {
|
|
5112
|
+
lines: number;
|
|
5113
|
+
bytes: number;
|
|
5114
|
+
cnt?: number | undefined;
|
|
5115
|
+
};
|
|
5116
|
+
};
|
|
5117
|
+
usage: {
|
|
5118
|
+
prompt_tokens: number;
|
|
5119
|
+
completion_tokens: number;
|
|
5120
|
+
total_tokens: number;
|
|
5121
|
+
model?: string | undefined;
|
|
5122
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
5123
|
+
reasoningEffort?: string | undefined;
|
|
5124
|
+
};
|
|
5125
|
+
} | {
|
|
5126
|
+
type: "prompt.research";
|
|
5127
|
+
version: 1;
|
|
5128
|
+
streamId: string;
|
|
5129
|
+
chatId: string;
|
|
5130
|
+
seq: number;
|
|
5131
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5132
|
+
researchId: string;
|
|
5133
|
+
status: "complete" | "failed" | "partial";
|
|
5134
|
+
brief: string;
|
|
5135
|
+
sources: {
|
|
5136
|
+
url: string;
|
|
5137
|
+
finalUrl: string | null;
|
|
5138
|
+
contentType: string | null;
|
|
5139
|
+
httpStatus: number | null;
|
|
5140
|
+
backendFetchable: boolean;
|
|
5141
|
+
fetched: boolean;
|
|
5142
|
+
errorCode?: string | undefined;
|
|
5143
|
+
}[];
|
|
5144
|
+
api: {
|
|
5145
|
+
method: string;
|
|
5146
|
+
path: string;
|
|
5147
|
+
description: string;
|
|
5148
|
+
fields: string[];
|
|
5149
|
+
}[];
|
|
5150
|
+
excerpts: {
|
|
5151
|
+
sourceUrl: string;
|
|
5152
|
+
text: string;
|
|
5153
|
+
locator?: string | undefined;
|
|
5154
|
+
}[];
|
|
5155
|
+
seedRows: {
|
|
5156
|
+
sourceUrl: string;
|
|
5157
|
+
dbName: string;
|
|
5158
|
+
key: string;
|
|
5159
|
+
item: unknown;
|
|
5160
|
+
}[];
|
|
5161
|
+
completedAt: string;
|
|
5162
|
+
errorCode?: string | undefined;
|
|
5163
|
+
} | {
|
|
4895
5164
|
streamId: string;
|
|
4896
5165
|
chatId: string;
|
|
4897
5166
|
seq: number;
|
|
@@ -5275,255 +5544,6 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5275
5544
|
type: "prompt.notice";
|
|
5276
5545
|
kind: "edits-incomplete";
|
|
5277
5546
|
path?: string | undefined;
|
|
5278
|
-
} | {
|
|
5279
|
-
type: "prompt.research";
|
|
5280
|
-
version: 1;
|
|
5281
|
-
streamId: string;
|
|
5282
|
-
chatId: string;
|
|
5283
|
-
seq: number;
|
|
5284
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5285
|
-
researchId: string;
|
|
5286
|
-
status: "complete" | "failed" | "partial";
|
|
5287
|
-
brief: string;
|
|
5288
|
-
sources: {
|
|
5289
|
-
url: string;
|
|
5290
|
-
finalUrl: string | null;
|
|
5291
|
-
contentType: string | null;
|
|
5292
|
-
httpStatus: number | null;
|
|
5293
|
-
backendFetchable: boolean;
|
|
5294
|
-
fetched: boolean;
|
|
5295
|
-
errorCode?: string | undefined;
|
|
5296
|
-
}[];
|
|
5297
|
-
api: {
|
|
5298
|
-
method: string;
|
|
5299
|
-
path: string;
|
|
5300
|
-
description: string;
|
|
5301
|
-
fields: string[];
|
|
5302
|
-
}[];
|
|
5303
|
-
excerpts: {
|
|
5304
|
-
sourceUrl: string;
|
|
5305
|
-
text: string;
|
|
5306
|
-
locator?: string | undefined;
|
|
5307
|
-
}[];
|
|
5308
|
-
seedRows: {
|
|
5309
|
-
sourceUrl: string;
|
|
5310
|
-
dbName: string;
|
|
5311
|
-
key: string;
|
|
5312
|
-
item: unknown;
|
|
5313
|
-
}[];
|
|
5314
|
-
completedAt: string;
|
|
5315
|
-
errorCode?: string | undefined;
|
|
5316
|
-
} | {
|
|
5317
|
-
blockId: string;
|
|
5318
|
-
streamId: string;
|
|
5319
|
-
seq: number;
|
|
5320
|
-
blockNr: number;
|
|
5321
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5322
|
-
type: "block.begin";
|
|
5323
|
-
} | {
|
|
5324
|
-
blockId: string;
|
|
5325
|
-
streamId: string;
|
|
5326
|
-
seq: number;
|
|
5327
|
-
blockNr: number;
|
|
5328
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5329
|
-
type: "block.end";
|
|
5330
|
-
stats: {
|
|
5331
|
-
toplevel: {
|
|
5332
|
-
lines: number;
|
|
5333
|
-
bytes: number;
|
|
5334
|
-
cnt?: number | undefined;
|
|
5335
|
-
};
|
|
5336
|
-
code: {
|
|
5337
|
-
lines: number;
|
|
5338
|
-
bytes: number;
|
|
5339
|
-
cnt?: number | undefined;
|
|
5340
|
-
};
|
|
5341
|
-
image: {
|
|
5342
|
-
lines: number;
|
|
5343
|
-
bytes: number;
|
|
5344
|
-
cnt?: number | undefined;
|
|
5345
|
-
};
|
|
5346
|
-
total: {
|
|
5347
|
-
lines: number;
|
|
5348
|
-
bytes: number;
|
|
5349
|
-
cnt?: number | undefined;
|
|
5350
|
-
};
|
|
5351
|
-
};
|
|
5352
|
-
usage: {
|
|
5353
|
-
given: {
|
|
5354
|
-
prompt_tokens: number;
|
|
5355
|
-
completion_tokens: number;
|
|
5356
|
-
total_tokens: number;
|
|
5357
|
-
model?: string | undefined;
|
|
5358
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
5359
|
-
reasoningEffort?: string | undefined;
|
|
5360
|
-
}[];
|
|
5361
|
-
calculated: {
|
|
5362
|
-
prompt_tokens: number;
|
|
5363
|
-
completion_tokens: number;
|
|
5364
|
-
total_tokens: number;
|
|
5365
|
-
model?: string | undefined;
|
|
5366
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
5367
|
-
reasoningEffort?: string | undefined;
|
|
5368
|
-
};
|
|
5369
|
-
};
|
|
5370
|
-
fsRef?: ((In: {
|
|
5371
|
-
appSlug: string;
|
|
5372
|
-
ownerHandle?: string | undefined;
|
|
5373
|
-
userSlug?: string | undefined;
|
|
5374
|
-
mode: "dev" | "production";
|
|
5375
|
-
fsId: string;
|
|
5376
|
-
}) => import("arktype").Out<{
|
|
5377
|
-
appSlug: string;
|
|
5378
|
-
mode: "dev" | "production";
|
|
5379
|
-
fsId: string;
|
|
5380
|
-
ownerHandle: string;
|
|
5381
|
-
}>) | undefined;
|
|
5382
|
-
touchedPaths?: string[] | undefined;
|
|
5383
|
-
settled?: {
|
|
5384
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
5385
|
-
entryTouched: boolean;
|
|
5386
|
-
touchedCount: number;
|
|
5387
|
-
applied: boolean;
|
|
5388
|
-
} | undefined;
|
|
5389
|
-
} | {
|
|
5390
|
-
blockId: string;
|
|
5391
|
-
streamId: string;
|
|
5392
|
-
seq: number;
|
|
5393
|
-
blockNr: number;
|
|
5394
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5395
|
-
type: "block.stats";
|
|
5396
|
-
stats: {
|
|
5397
|
-
toplevel: {
|
|
5398
|
-
lines: number;
|
|
5399
|
-
bytes: number;
|
|
5400
|
-
cnt?: number | undefined;
|
|
5401
|
-
};
|
|
5402
|
-
code: {
|
|
5403
|
-
lines: number;
|
|
5404
|
-
bytes: number;
|
|
5405
|
-
cnt?: number | undefined;
|
|
5406
|
-
};
|
|
5407
|
-
image: {
|
|
5408
|
-
lines: number;
|
|
5409
|
-
bytes: number;
|
|
5410
|
-
cnt?: number | undefined;
|
|
5411
|
-
};
|
|
5412
|
-
total: {
|
|
5413
|
-
lines: number;
|
|
5414
|
-
bytes: number;
|
|
5415
|
-
cnt?: number | undefined;
|
|
5416
|
-
};
|
|
5417
|
-
};
|
|
5418
|
-
usage: {
|
|
5419
|
-
prompt_tokens: number;
|
|
5420
|
-
completion_tokens: number;
|
|
5421
|
-
total_tokens: number;
|
|
5422
|
-
model?: string | undefined;
|
|
5423
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "research" | "runtime" | undefined;
|
|
5424
|
-
reasoningEffort?: string | undefined;
|
|
5425
|
-
};
|
|
5426
|
-
} | {
|
|
5427
|
-
blockId: string;
|
|
5428
|
-
streamId: string;
|
|
5429
|
-
seq: number;
|
|
5430
|
-
blockNr: number;
|
|
5431
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5432
|
-
stats: {
|
|
5433
|
-
lines: number;
|
|
5434
|
-
bytes: number;
|
|
5435
|
-
cnt?: number | undefined;
|
|
5436
|
-
};
|
|
5437
|
-
type: "block.image";
|
|
5438
|
-
sectionId: string;
|
|
5439
|
-
url?: string | undefined;
|
|
5440
|
-
uploadId?: string | undefined;
|
|
5441
|
-
cid?: string | undefined;
|
|
5442
|
-
mimeType?: string | undefined;
|
|
5443
|
-
size?: number | undefined;
|
|
5444
|
-
docWritten?: boolean | undefined;
|
|
5445
|
-
} | {
|
|
5446
|
-
blockId: string;
|
|
5447
|
-
streamId: string;
|
|
5448
|
-
seq: number;
|
|
5449
|
-
blockNr: number;
|
|
5450
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5451
|
-
type: "block.code.begin";
|
|
5452
|
-
sectionId: string;
|
|
5453
|
-
lang: string;
|
|
5454
|
-
path?: string | undefined;
|
|
5455
|
-
} | {
|
|
5456
|
-
blockId: string;
|
|
5457
|
-
streamId: string;
|
|
5458
|
-
seq: number;
|
|
5459
|
-
blockNr: number;
|
|
5460
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5461
|
-
lineNr: number;
|
|
5462
|
-
line: string;
|
|
5463
|
-
type: "block.code.line";
|
|
5464
|
-
sectionId: string;
|
|
5465
|
-
lang: string;
|
|
5466
|
-
path?: string | undefined;
|
|
5467
|
-
} | {
|
|
5468
|
-
blockId: string;
|
|
5469
|
-
streamId: string;
|
|
5470
|
-
seq: number;
|
|
5471
|
-
blockNr: number;
|
|
5472
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5473
|
-
stats: {
|
|
5474
|
-
lines: number;
|
|
5475
|
-
bytes: number;
|
|
5476
|
-
cnt?: number | undefined;
|
|
5477
|
-
};
|
|
5478
|
-
type: "block.code.end";
|
|
5479
|
-
sectionId: string;
|
|
5480
|
-
lang: string;
|
|
5481
|
-
path?: string | undefined;
|
|
5482
|
-
} | {
|
|
5483
|
-
blockId: string;
|
|
5484
|
-
streamId: string;
|
|
5485
|
-
seq: number;
|
|
5486
|
-
blockNr: number;
|
|
5487
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5488
|
-
type: "block.code.truncated";
|
|
5489
|
-
sectionId: string;
|
|
5490
|
-
lang: string;
|
|
5491
|
-
path?: string | undefined;
|
|
5492
|
-
reason: string;
|
|
5493
|
-
kind: string;
|
|
5494
|
-
truncatedAtLine: number;
|
|
5495
|
-
errorCount: number;
|
|
5496
|
-
} | {
|
|
5497
|
-
blockId: string;
|
|
5498
|
-
streamId: string;
|
|
5499
|
-
seq: number;
|
|
5500
|
-
blockNr: number;
|
|
5501
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5502
|
-
type: "block.toplevel.begin";
|
|
5503
|
-
sectionId: string;
|
|
5504
|
-
} | {
|
|
5505
|
-
blockId: string;
|
|
5506
|
-
streamId: string;
|
|
5507
|
-
seq: number;
|
|
5508
|
-
blockNr: number;
|
|
5509
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5510
|
-
lineNr: number;
|
|
5511
|
-
line: string;
|
|
5512
|
-
type: "block.toplevel.line";
|
|
5513
|
-
sectionId: string;
|
|
5514
|
-
} | {
|
|
5515
|
-
blockId: string;
|
|
5516
|
-
streamId: string;
|
|
5517
|
-
seq: number;
|
|
5518
|
-
blockNr: number;
|
|
5519
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5520
|
-
stats: {
|
|
5521
|
-
lines: number;
|
|
5522
|
-
bytes: number;
|
|
5523
|
-
cnt?: number | undefined;
|
|
5524
|
-
};
|
|
5525
|
-
type: "block.toplevel.end";
|
|
5526
|
-
sectionId: string;
|
|
5527
5547
|
})[];
|
|
5528
5548
|
}[];
|
|
5529
5549
|
usage?: {
|