@vibes.diy/api-types 14.3.138 → 14.3.139
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/app.d.ts +54 -54
- package/chat-section-pack.d.ts +21 -0
- package/chat-section-pack.js +177 -0
- package/chat-section-pack.js.map +1 -0
- package/chat.d.ts +971 -971
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/invite-flow.d.ts +152 -152
- package/invite-note.d.ts +16 -0
- package/invite-note.js +35 -0
- package/invite-note.js.map +1 -0
- package/invite.d.ts +109 -109
- package/package.json +5 -4
- package/prefilled-prompts.d.ts +57 -0
- package/prefilled-prompts.js +19 -0
- package/prefilled-prompts.js.map +1 -1
- package/prompt.d.ts +124 -124
- package/prompt.js +18 -17
- package/prompt.js.map +1 -1
- package/research.js +3 -2
- package/research.js.map +1 -1
- package/settings.d.ts +218 -218
- package/social-msg.d.ts +4 -0
- package/social-msg.js +4 -0
- package/social-msg.js.map +1 -1
- package/type-is.d.ts +1 -0
- package/type-is.js +4 -0
- package/type-is.js.map +1 -0
package/chat.d.ts
CHANGED
|
@@ -2301,6 +2301,226 @@ export declare const resPromptChatSection: import("arktype/internal/variants/obj
|
|
|
2301
2301
|
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
2302
2302
|
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
2303
2303
|
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2304
|
+
blockId: string;
|
|
2305
|
+
streamId: string;
|
|
2306
|
+
seq: number;
|
|
2307
|
+
blockNr: number;
|
|
2308
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2309
|
+
type: "block.begin";
|
|
2310
|
+
} | {
|
|
2311
|
+
blockId: string;
|
|
2312
|
+
streamId: string;
|
|
2313
|
+
seq: number;
|
|
2314
|
+
blockNr: number;
|
|
2315
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2316
|
+
type: "block.end";
|
|
2317
|
+
stats: {
|
|
2318
|
+
toplevel: {
|
|
2319
|
+
lines: number;
|
|
2320
|
+
bytes: number;
|
|
2321
|
+
cnt?: number | undefined;
|
|
2322
|
+
};
|
|
2323
|
+
code: {
|
|
2324
|
+
lines: number;
|
|
2325
|
+
bytes: number;
|
|
2326
|
+
cnt?: number | undefined;
|
|
2327
|
+
};
|
|
2328
|
+
image: {
|
|
2329
|
+
lines: number;
|
|
2330
|
+
bytes: number;
|
|
2331
|
+
cnt?: number | undefined;
|
|
2332
|
+
};
|
|
2333
|
+
total: {
|
|
2334
|
+
lines: number;
|
|
2335
|
+
bytes: number;
|
|
2336
|
+
cnt?: number | undefined;
|
|
2337
|
+
};
|
|
2338
|
+
};
|
|
2339
|
+
usage: {
|
|
2340
|
+
given: {
|
|
2341
|
+
prompt_tokens: number;
|
|
2342
|
+
completion_tokens: number;
|
|
2343
|
+
total_tokens: number;
|
|
2344
|
+
model?: string | undefined;
|
|
2345
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
2346
|
+
reasoningEffort?: string | undefined;
|
|
2347
|
+
}[];
|
|
2348
|
+
calculated: {
|
|
2349
|
+
prompt_tokens: number;
|
|
2350
|
+
completion_tokens: number;
|
|
2351
|
+
total_tokens: number;
|
|
2352
|
+
model?: string | undefined;
|
|
2353
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
2354
|
+
reasoningEffort?: string | undefined;
|
|
2355
|
+
};
|
|
2356
|
+
};
|
|
2357
|
+
fsRef?: ((In: {
|
|
2358
|
+
appSlug: string;
|
|
2359
|
+
ownerHandle?: string | undefined;
|
|
2360
|
+
userSlug?: string | undefined;
|
|
2361
|
+
mode: "dev" | "production";
|
|
2362
|
+
fsId: string;
|
|
2363
|
+
}) => import("arktype").Out<{
|
|
2364
|
+
appSlug: string;
|
|
2365
|
+
mode: "dev" | "production";
|
|
2366
|
+
fsId: string;
|
|
2367
|
+
ownerHandle: string;
|
|
2368
|
+
}>) | undefined;
|
|
2369
|
+
touchedPaths?: string[] | undefined;
|
|
2370
|
+
settled?: {
|
|
2371
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2372
|
+
entryTouched: boolean;
|
|
2373
|
+
touchedCount: number;
|
|
2374
|
+
applied: boolean;
|
|
2375
|
+
} | undefined;
|
|
2376
|
+
saveRepair?: {
|
|
2377
|
+
repaired: string[];
|
|
2378
|
+
attempts: number;
|
|
2379
|
+
} | undefined;
|
|
2380
|
+
seedRepair?: {
|
|
2381
|
+
repaired: string[];
|
|
2382
|
+
attempts: number;
|
|
2383
|
+
} | undefined;
|
|
2384
|
+
savedBy?: "agent" | "person" | undefined;
|
|
2385
|
+
} | {
|
|
2386
|
+
blockId: string;
|
|
2387
|
+
streamId: string;
|
|
2388
|
+
seq: number;
|
|
2389
|
+
blockNr: number;
|
|
2390
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2391
|
+
type: "block.stats";
|
|
2392
|
+
stats: {
|
|
2393
|
+
toplevel: {
|
|
2394
|
+
lines: number;
|
|
2395
|
+
bytes: number;
|
|
2396
|
+
cnt?: number | undefined;
|
|
2397
|
+
};
|
|
2398
|
+
code: {
|
|
2399
|
+
lines: number;
|
|
2400
|
+
bytes: number;
|
|
2401
|
+
cnt?: number | undefined;
|
|
2402
|
+
};
|
|
2403
|
+
image: {
|
|
2404
|
+
lines: number;
|
|
2405
|
+
bytes: number;
|
|
2406
|
+
cnt?: number | undefined;
|
|
2407
|
+
};
|
|
2408
|
+
total: {
|
|
2409
|
+
lines: number;
|
|
2410
|
+
bytes: number;
|
|
2411
|
+
cnt?: number | undefined;
|
|
2412
|
+
};
|
|
2413
|
+
};
|
|
2414
|
+
usage: {
|
|
2415
|
+
prompt_tokens: number;
|
|
2416
|
+
completion_tokens: number;
|
|
2417
|
+
total_tokens: number;
|
|
2418
|
+
model?: string | undefined;
|
|
2419
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
2420
|
+
reasoningEffort?: string | undefined;
|
|
2421
|
+
};
|
|
2422
|
+
} | {
|
|
2423
|
+
blockId: string;
|
|
2424
|
+
streamId: string;
|
|
2425
|
+
seq: number;
|
|
2426
|
+
blockNr: number;
|
|
2427
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2428
|
+
stats: {
|
|
2429
|
+
lines: number;
|
|
2430
|
+
bytes: number;
|
|
2431
|
+
cnt?: number | undefined;
|
|
2432
|
+
};
|
|
2433
|
+
type: "block.image";
|
|
2434
|
+
sectionId: string;
|
|
2435
|
+
url?: string | undefined;
|
|
2436
|
+
uploadId?: string | undefined;
|
|
2437
|
+
cid?: string | undefined;
|
|
2438
|
+
mimeType?: string | undefined;
|
|
2439
|
+
size?: number | undefined;
|
|
2440
|
+
docWritten?: boolean | undefined;
|
|
2441
|
+
} | {
|
|
2442
|
+
blockId: string;
|
|
2443
|
+
streamId: string;
|
|
2444
|
+
seq: number;
|
|
2445
|
+
blockNr: number;
|
|
2446
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2447
|
+
type: "block.code.begin";
|
|
2448
|
+
sectionId: string;
|
|
2449
|
+
lang: string;
|
|
2450
|
+
path?: string | undefined;
|
|
2451
|
+
} | {
|
|
2452
|
+
blockId: string;
|
|
2453
|
+
streamId: string;
|
|
2454
|
+
seq: number;
|
|
2455
|
+
blockNr: number;
|
|
2456
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2457
|
+
lineNr: number;
|
|
2458
|
+
line: string;
|
|
2459
|
+
type: "block.code.line";
|
|
2460
|
+
sectionId: string;
|
|
2461
|
+
lang: string;
|
|
2462
|
+
path?: string | undefined;
|
|
2463
|
+
} | {
|
|
2464
|
+
blockId: string;
|
|
2465
|
+
streamId: string;
|
|
2466
|
+
seq: number;
|
|
2467
|
+
blockNr: number;
|
|
2468
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2469
|
+
stats: {
|
|
2470
|
+
lines: number;
|
|
2471
|
+
bytes: number;
|
|
2472
|
+
cnt?: number | undefined;
|
|
2473
|
+
};
|
|
2474
|
+
type: "block.code.end";
|
|
2475
|
+
sectionId: string;
|
|
2476
|
+
lang: string;
|
|
2477
|
+
path?: string | undefined;
|
|
2478
|
+
} | {
|
|
2479
|
+
blockId: string;
|
|
2480
|
+
streamId: string;
|
|
2481
|
+
seq: number;
|
|
2482
|
+
blockNr: number;
|
|
2483
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2484
|
+
type: "block.code.truncated";
|
|
2485
|
+
sectionId: string;
|
|
2486
|
+
lang: string;
|
|
2487
|
+
path?: string | undefined;
|
|
2488
|
+
reason: string;
|
|
2489
|
+
kind: string;
|
|
2490
|
+
truncatedAtLine: number;
|
|
2491
|
+
errorCount: number;
|
|
2492
|
+
} | {
|
|
2493
|
+
blockId: string;
|
|
2494
|
+
streamId: string;
|
|
2495
|
+
seq: number;
|
|
2496
|
+
blockNr: number;
|
|
2497
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2498
|
+
type: "block.toplevel.begin";
|
|
2499
|
+
sectionId: string;
|
|
2500
|
+
} | {
|
|
2501
|
+
blockId: string;
|
|
2502
|
+
streamId: string;
|
|
2503
|
+
seq: number;
|
|
2504
|
+
blockNr: number;
|
|
2505
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2506
|
+
lineNr: number;
|
|
2507
|
+
line: string;
|
|
2508
|
+
type: "block.toplevel.line";
|
|
2509
|
+
sectionId: string;
|
|
2510
|
+
} | {
|
|
2511
|
+
blockId: string;
|
|
2512
|
+
streamId: string;
|
|
2513
|
+
seq: number;
|
|
2514
|
+
blockNr: number;
|
|
2515
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2516
|
+
stats: {
|
|
2517
|
+
lines: number;
|
|
2518
|
+
bytes: number;
|
|
2519
|
+
cnt?: number | undefined;
|
|
2520
|
+
};
|
|
2521
|
+
type: "block.toplevel.end";
|
|
2522
|
+
sectionId: string;
|
|
2523
|
+
} | {
|
|
2304
2524
|
type: "prompt.research";
|
|
2305
2525
|
version: 1;
|
|
2306
2526
|
streamId: string;
|
|
@@ -2773,52 +2993,126 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2773
2993
|
nature: "collaborative" | "open" | "sensitive";
|
|
2774
2994
|
outcome: "not-applied" | "persisted" | "refused";
|
|
2775
2995
|
error?: string | undefined;
|
|
2776
|
-
}
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
} | {
|
|
2784
|
-
blockId: string;
|
|
2785
|
-
streamId: string;
|
|
2786
|
-
seq: number;
|
|
2787
|
-
blockNr: number;
|
|
2996
|
+
}, {}>;
|
|
2997
|
+
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2998
|
+
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2999
|
+
type: "vibes.diy.section-event";
|
|
3000
|
+
chatId: string;
|
|
3001
|
+
promptId: string;
|
|
3002
|
+
blockSeq: number;
|
|
2788
3003
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
3004
|
+
blocks: ({
|
|
3005
|
+
blockId: string;
|
|
3006
|
+
streamId: string;
|
|
3007
|
+
seq: number;
|
|
3008
|
+
blockNr: number;
|
|
3009
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3010
|
+
type: "block.begin";
|
|
3011
|
+
} | {
|
|
3012
|
+
blockId: string;
|
|
3013
|
+
streamId: string;
|
|
3014
|
+
seq: number;
|
|
3015
|
+
blockNr: number;
|
|
3016
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3017
|
+
type: "block.end";
|
|
3018
|
+
stats: {
|
|
3019
|
+
toplevel: {
|
|
3020
|
+
lines: number;
|
|
3021
|
+
bytes: number;
|
|
3022
|
+
cnt?: number | undefined;
|
|
3023
|
+
};
|
|
3024
|
+
code: {
|
|
3025
|
+
lines: number;
|
|
3026
|
+
bytes: number;
|
|
3027
|
+
cnt?: number | undefined;
|
|
3028
|
+
};
|
|
3029
|
+
image: {
|
|
3030
|
+
lines: number;
|
|
3031
|
+
bytes: number;
|
|
3032
|
+
cnt?: number | undefined;
|
|
3033
|
+
};
|
|
3034
|
+
total: {
|
|
3035
|
+
lines: number;
|
|
3036
|
+
bytes: number;
|
|
3037
|
+
cnt?: number | undefined;
|
|
3038
|
+
};
|
|
2810
3039
|
};
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
3040
|
+
usage: {
|
|
3041
|
+
given: {
|
|
3042
|
+
prompt_tokens: number;
|
|
3043
|
+
completion_tokens: number;
|
|
3044
|
+
total_tokens: number;
|
|
3045
|
+
model?: string | undefined;
|
|
3046
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
3047
|
+
reasoningEffort?: string | undefined;
|
|
3048
|
+
}[];
|
|
3049
|
+
calculated: {
|
|
3050
|
+
prompt_tokens: number;
|
|
3051
|
+
completion_tokens: number;
|
|
3052
|
+
total_tokens: number;
|
|
3053
|
+
model?: string | undefined;
|
|
3054
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
3055
|
+
reasoningEffort?: string | undefined;
|
|
3056
|
+
};
|
|
3057
|
+
};
|
|
3058
|
+
fsRef?: ((In: {
|
|
3059
|
+
appSlug: string;
|
|
3060
|
+
ownerHandle?: string | undefined;
|
|
3061
|
+
userSlug?: string | undefined;
|
|
3062
|
+
mode: "dev" | "production";
|
|
3063
|
+
fsId: string;
|
|
3064
|
+
}) => import("arktype").Out<{
|
|
3065
|
+
appSlug: string;
|
|
3066
|
+
mode: "dev" | "production";
|
|
3067
|
+
fsId: string;
|
|
3068
|
+
ownerHandle: string;
|
|
3069
|
+
}>) | undefined;
|
|
3070
|
+
touchedPaths?: string[] | undefined;
|
|
3071
|
+
settled?: {
|
|
3072
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
3073
|
+
entryTouched: boolean;
|
|
3074
|
+
touchedCount: number;
|
|
3075
|
+
applied: boolean;
|
|
3076
|
+
} | undefined;
|
|
3077
|
+
saveRepair?: {
|
|
3078
|
+
repaired: string[];
|
|
3079
|
+
attempts: number;
|
|
3080
|
+
} | undefined;
|
|
3081
|
+
seedRepair?: {
|
|
3082
|
+
repaired: string[];
|
|
3083
|
+
attempts: number;
|
|
3084
|
+
} | undefined;
|
|
3085
|
+
savedBy?: "agent" | "person" | undefined;
|
|
3086
|
+
} | {
|
|
3087
|
+
blockId: string;
|
|
3088
|
+
streamId: string;
|
|
3089
|
+
seq: number;
|
|
3090
|
+
blockNr: number;
|
|
3091
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3092
|
+
type: "block.stats";
|
|
3093
|
+
stats: {
|
|
3094
|
+
toplevel: {
|
|
3095
|
+
lines: number;
|
|
3096
|
+
bytes: number;
|
|
3097
|
+
cnt?: number | undefined;
|
|
3098
|
+
};
|
|
3099
|
+
code: {
|
|
3100
|
+
lines: number;
|
|
3101
|
+
bytes: number;
|
|
3102
|
+
cnt?: number | undefined;
|
|
3103
|
+
};
|
|
3104
|
+
image: {
|
|
3105
|
+
lines: number;
|
|
3106
|
+
bytes: number;
|
|
3107
|
+
cnt?: number | undefined;
|
|
3108
|
+
};
|
|
3109
|
+
total: {
|
|
3110
|
+
lines: number;
|
|
3111
|
+
bytes: number;
|
|
3112
|
+
cnt?: number | undefined;
|
|
3113
|
+
};
|
|
3114
|
+
};
|
|
3115
|
+
usage: {
|
|
2822
3116
|
prompt_tokens: number;
|
|
2823
3117
|
completion_tokens: number;
|
|
2824
3118
|
total_tokens: number;
|
|
@@ -2826,182 +3120,108 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2826
3120
|
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
2827
3121
|
reasoningEffort?: string | undefined;
|
|
2828
3122
|
};
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
}) => import("arktype").Out<{
|
|
2837
|
-
appSlug: string;
|
|
2838
|
-
mode: "dev" | "production";
|
|
2839
|
-
fsId: string;
|
|
2840
|
-
ownerHandle: string;
|
|
2841
|
-
}>) | undefined;
|
|
2842
|
-
touchedPaths?: string[] | undefined;
|
|
2843
|
-
settled?: {
|
|
2844
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2845
|
-
entryTouched: boolean;
|
|
2846
|
-
touchedCount: number;
|
|
2847
|
-
applied: boolean;
|
|
2848
|
-
} | undefined;
|
|
2849
|
-
saveRepair?: {
|
|
2850
|
-
repaired: string[];
|
|
2851
|
-
attempts: number;
|
|
2852
|
-
} | undefined;
|
|
2853
|
-
seedRepair?: {
|
|
2854
|
-
repaired: string[];
|
|
2855
|
-
attempts: number;
|
|
2856
|
-
} | undefined;
|
|
2857
|
-
savedBy?: "agent" | "person" | undefined;
|
|
2858
|
-
} | {
|
|
2859
|
-
blockId: string;
|
|
2860
|
-
streamId: string;
|
|
2861
|
-
seq: number;
|
|
2862
|
-
blockNr: number;
|
|
2863
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2864
|
-
type: "block.stats";
|
|
2865
|
-
stats: {
|
|
2866
|
-
toplevel: {
|
|
2867
|
-
lines: number;
|
|
2868
|
-
bytes: number;
|
|
2869
|
-
cnt?: number | undefined;
|
|
2870
|
-
};
|
|
2871
|
-
code: {
|
|
3123
|
+
} | {
|
|
3124
|
+
blockId: string;
|
|
3125
|
+
streamId: string;
|
|
3126
|
+
seq: number;
|
|
3127
|
+
blockNr: number;
|
|
3128
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3129
|
+
stats: {
|
|
2872
3130
|
lines: number;
|
|
2873
3131
|
bytes: number;
|
|
2874
3132
|
cnt?: number | undefined;
|
|
2875
3133
|
};
|
|
2876
|
-
|
|
3134
|
+
type: "block.image";
|
|
3135
|
+
sectionId: string;
|
|
3136
|
+
url?: string | undefined;
|
|
3137
|
+
uploadId?: string | undefined;
|
|
3138
|
+
cid?: string | undefined;
|
|
3139
|
+
mimeType?: string | undefined;
|
|
3140
|
+
size?: number | undefined;
|
|
3141
|
+
docWritten?: boolean | undefined;
|
|
3142
|
+
} | {
|
|
3143
|
+
blockId: string;
|
|
3144
|
+
streamId: string;
|
|
3145
|
+
seq: number;
|
|
3146
|
+
blockNr: number;
|
|
3147
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3148
|
+
type: "block.code.begin";
|
|
3149
|
+
sectionId: string;
|
|
3150
|
+
lang: string;
|
|
3151
|
+
path?: string | undefined;
|
|
3152
|
+
} | {
|
|
3153
|
+
blockId: string;
|
|
3154
|
+
streamId: string;
|
|
3155
|
+
seq: number;
|
|
3156
|
+
blockNr: number;
|
|
3157
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3158
|
+
lineNr: number;
|
|
3159
|
+
line: string;
|
|
3160
|
+
type: "block.code.line";
|
|
3161
|
+
sectionId: string;
|
|
3162
|
+
lang: string;
|
|
3163
|
+
path?: string | undefined;
|
|
3164
|
+
} | {
|
|
3165
|
+
blockId: string;
|
|
3166
|
+
streamId: string;
|
|
3167
|
+
seq: number;
|
|
3168
|
+
blockNr: number;
|
|
3169
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3170
|
+
stats: {
|
|
2877
3171
|
lines: number;
|
|
2878
3172
|
bytes: number;
|
|
2879
3173
|
cnt?: number | undefined;
|
|
2880
3174
|
};
|
|
2881
|
-
|
|
3175
|
+
type: "block.code.end";
|
|
3176
|
+
sectionId: string;
|
|
3177
|
+
lang: string;
|
|
3178
|
+
path?: string | undefined;
|
|
3179
|
+
} | {
|
|
3180
|
+
blockId: string;
|
|
3181
|
+
streamId: string;
|
|
3182
|
+
seq: number;
|
|
3183
|
+
blockNr: number;
|
|
3184
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3185
|
+
type: "block.code.truncated";
|
|
3186
|
+
sectionId: string;
|
|
3187
|
+
lang: string;
|
|
3188
|
+
path?: string | undefined;
|
|
3189
|
+
reason: string;
|
|
3190
|
+
kind: string;
|
|
3191
|
+
truncatedAtLine: number;
|
|
3192
|
+
errorCount: number;
|
|
3193
|
+
} | {
|
|
3194
|
+
blockId: string;
|
|
3195
|
+
streamId: string;
|
|
3196
|
+
seq: number;
|
|
3197
|
+
blockNr: number;
|
|
3198
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3199
|
+
type: "block.toplevel.begin";
|
|
3200
|
+
sectionId: string;
|
|
3201
|
+
} | {
|
|
3202
|
+
blockId: string;
|
|
3203
|
+
streamId: string;
|
|
3204
|
+
seq: number;
|
|
3205
|
+
blockNr: number;
|
|
3206
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3207
|
+
lineNr: number;
|
|
3208
|
+
line: string;
|
|
3209
|
+
type: "block.toplevel.line";
|
|
3210
|
+
sectionId: string;
|
|
3211
|
+
} | {
|
|
3212
|
+
blockId: string;
|
|
3213
|
+
streamId: string;
|
|
3214
|
+
seq: number;
|
|
3215
|
+
blockNr: number;
|
|
3216
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3217
|
+
stats: {
|
|
2882
3218
|
lines: number;
|
|
2883
3219
|
bytes: number;
|
|
2884
3220
|
cnt?: number | undefined;
|
|
2885
3221
|
};
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
completion_tokens: number;
|
|
2890
|
-
total_tokens: number;
|
|
2891
|
-
model?: string | undefined;
|
|
2892
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
2893
|
-
reasoningEffort?: string | undefined;
|
|
2894
|
-
};
|
|
2895
|
-
} | {
|
|
2896
|
-
blockId: string;
|
|
2897
|
-
streamId: string;
|
|
2898
|
-
seq: number;
|
|
2899
|
-
blockNr: number;
|
|
2900
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2901
|
-
stats: {
|
|
2902
|
-
lines: number;
|
|
2903
|
-
bytes: number;
|
|
2904
|
-
cnt?: number | undefined;
|
|
2905
|
-
};
|
|
2906
|
-
type: "block.image";
|
|
2907
|
-
sectionId: string;
|
|
2908
|
-
url?: string | undefined;
|
|
2909
|
-
uploadId?: string | undefined;
|
|
2910
|
-
cid?: string | undefined;
|
|
2911
|
-
mimeType?: string | undefined;
|
|
2912
|
-
size?: number | undefined;
|
|
2913
|
-
docWritten?: boolean | undefined;
|
|
2914
|
-
} | {
|
|
2915
|
-
blockId: string;
|
|
2916
|
-
streamId: string;
|
|
2917
|
-
seq: number;
|
|
2918
|
-
blockNr: number;
|
|
2919
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2920
|
-
type: "block.code.begin";
|
|
2921
|
-
sectionId: string;
|
|
2922
|
-
lang: string;
|
|
2923
|
-
path?: string | undefined;
|
|
2924
|
-
} | {
|
|
2925
|
-
blockId: string;
|
|
2926
|
-
streamId: string;
|
|
2927
|
-
seq: number;
|
|
2928
|
-
blockNr: number;
|
|
2929
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2930
|
-
lineNr: number;
|
|
2931
|
-
line: string;
|
|
2932
|
-
type: "block.code.line";
|
|
2933
|
-
sectionId: string;
|
|
2934
|
-
lang: string;
|
|
2935
|
-
path?: string | undefined;
|
|
2936
|
-
} | {
|
|
2937
|
-
blockId: string;
|
|
2938
|
-
streamId: string;
|
|
2939
|
-
seq: number;
|
|
2940
|
-
blockNr: number;
|
|
2941
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2942
|
-
stats: {
|
|
2943
|
-
lines: number;
|
|
2944
|
-
bytes: number;
|
|
2945
|
-
cnt?: number | undefined;
|
|
2946
|
-
};
|
|
2947
|
-
type: "block.code.end";
|
|
2948
|
-
sectionId: string;
|
|
2949
|
-
lang: string;
|
|
2950
|
-
path?: string | undefined;
|
|
2951
|
-
} | {
|
|
2952
|
-
blockId: string;
|
|
2953
|
-
streamId: string;
|
|
2954
|
-
seq: number;
|
|
2955
|
-
blockNr: number;
|
|
2956
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2957
|
-
type: "block.code.truncated";
|
|
2958
|
-
sectionId: string;
|
|
2959
|
-
lang: string;
|
|
2960
|
-
path?: string | undefined;
|
|
2961
|
-
reason: string;
|
|
2962
|
-
kind: string;
|
|
2963
|
-
truncatedAtLine: number;
|
|
2964
|
-
errorCount: number;
|
|
2965
|
-
} | {
|
|
2966
|
-
blockId: string;
|
|
2967
|
-
streamId: string;
|
|
2968
|
-
seq: number;
|
|
2969
|
-
blockNr: number;
|
|
2970
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2971
|
-
type: "block.toplevel.begin";
|
|
2972
|
-
sectionId: string;
|
|
2973
|
-
} | {
|
|
2974
|
-
blockId: string;
|
|
2975
|
-
streamId: string;
|
|
2976
|
-
seq: number;
|
|
2977
|
-
blockNr: number;
|
|
2978
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2979
|
-
lineNr: number;
|
|
2980
|
-
line: string;
|
|
2981
|
-
type: "block.toplevel.line";
|
|
2982
|
-
sectionId: string;
|
|
2983
|
-
} | {
|
|
2984
|
-
blockId: string;
|
|
2985
|
-
streamId: string;
|
|
2986
|
-
seq: number;
|
|
2987
|
-
blockNr: number;
|
|
2988
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2989
|
-
stats: {
|
|
2990
|
-
lines: number;
|
|
2991
|
-
bytes: number;
|
|
2992
|
-
cnt?: number | undefined;
|
|
2993
|
-
};
|
|
2994
|
-
type: "block.toplevel.end";
|
|
2995
|
-
sectionId: string;
|
|
2996
|
-
}, {}>;
|
|
2997
|
-
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2998
|
-
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2999
|
-
type: "vibes.diy.section-event";
|
|
3000
|
-
chatId: string;
|
|
3001
|
-
promptId: string;
|
|
3002
|
-
blockSeq: number;
|
|
3003
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3004
|
-
blocks: ({
|
|
3222
|
+
type: "block.toplevel.end";
|
|
3223
|
+
sectionId: string;
|
|
3224
|
+
} | {
|
|
3005
3225
|
type: "prompt.research";
|
|
3006
3226
|
version: 1;
|
|
3007
3227
|
streamId: string;
|
|
@@ -3474,7 +3694,36 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3474
3694
|
nature: "collaborative" | "open" | "sensitive";
|
|
3475
3695
|
outcome: "not-applied" | "persisted" | "refused";
|
|
3476
3696
|
error?: string | undefined;
|
|
3477
|
-
}
|
|
3697
|
+
})[];
|
|
3698
|
+
initiator?: "platform" | "seed" | undefined;
|
|
3699
|
+
}, {}>;
|
|
3700
|
+
export type SectionEvent = typeof sectionEvent.infer;
|
|
3701
|
+
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3702
|
+
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3703
|
+
type: "vibes.diy.req-get-chat-response";
|
|
3704
|
+
historyPage?: {
|
|
3705
|
+
limit: number;
|
|
3706
|
+
before: {
|
|
3707
|
+
created: string;
|
|
3708
|
+
promptId: string;
|
|
3709
|
+
};
|
|
3710
|
+
} | undefined;
|
|
3711
|
+
auth?: {
|
|
3712
|
+
type: "clerk" | "device-id" | "guest" | "ucan";
|
|
3713
|
+
token: string;
|
|
3714
|
+
} | undefined;
|
|
3715
|
+
ownerHandle: string;
|
|
3716
|
+
appSlug: string;
|
|
3717
|
+
chatId?: string | undefined;
|
|
3718
|
+
promptId?: string | undefined;
|
|
3719
|
+
usageOnly?: boolean | undefined;
|
|
3720
|
+
}, {}>;
|
|
3721
|
+
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3722
|
+
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3723
|
+
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3724
|
+
blockSeq: number;
|
|
3725
|
+
created?: string | undefined;
|
|
3726
|
+
blocks: ({
|
|
3478
3727
|
blockId: string;
|
|
3479
3728
|
streamId: string;
|
|
3480
3729
|
seq: number;
|
|
@@ -3694,36 +3943,7 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
3694
3943
|
};
|
|
3695
3944
|
type: "block.toplevel.end";
|
|
3696
3945
|
sectionId: string;
|
|
3697
|
-
}
|
|
3698
|
-
initiator?: "platform" | "seed" | undefined;
|
|
3699
|
-
}, {}>;
|
|
3700
|
-
export type SectionEvent = typeof sectionEvent.infer;
|
|
3701
|
-
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3702
|
-
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3703
|
-
type: "vibes.diy.req-get-chat-response";
|
|
3704
|
-
historyPage?: {
|
|
3705
|
-
limit: number;
|
|
3706
|
-
before: {
|
|
3707
|
-
created: string;
|
|
3708
|
-
promptId: string;
|
|
3709
|
-
};
|
|
3710
|
-
} | undefined;
|
|
3711
|
-
auth?: {
|
|
3712
|
-
type: "clerk" | "device-id" | "guest" | "ucan";
|
|
3713
|
-
token: string;
|
|
3714
|
-
} | undefined;
|
|
3715
|
-
ownerHandle: string;
|
|
3716
|
-
appSlug: string;
|
|
3717
|
-
chatId?: string | undefined;
|
|
3718
|
-
promptId?: string | undefined;
|
|
3719
|
-
usageOnly?: boolean | undefined;
|
|
3720
|
-
}, {}>;
|
|
3721
|
-
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3722
|
-
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3723
|
-
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3724
|
-
blockSeq: number;
|
|
3725
|
-
created?: string | undefined;
|
|
3726
|
-
blocks: ({
|
|
3946
|
+
} | {
|
|
3727
3947
|
type: "prompt.research";
|
|
3728
3948
|
version: 1;
|
|
3729
3949
|
streamId: string;
|
|
@@ -4136,286 +4356,66 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
4136
4356
|
gold?: boolean | undefined;
|
|
4137
4357
|
kind?: "access" | "connect" | "edit" | "publish" | "seed" | undefined;
|
|
4138
4358
|
}[] | undefined;
|
|
4139
|
-
sessionId?: string | undefined;
|
|
4140
|
-
callId?: string | undefined;
|
|
4141
|
-
handleId?: string | undefined;
|
|
4142
|
-
buildHandleId?: string | undefined;
|
|
4143
|
-
supersedes?: string | undefined;
|
|
4144
|
-
queued?: boolean | undefined;
|
|
4145
|
-
state?: "building" | "committing" | "queued" | undefined;
|
|
4146
|
-
saved?: boolean | undefined;
|
|
4147
|
-
ok?: boolean | undefined;
|
|
4148
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "stale-base" | "unchanged" | undefined;
|
|
4149
|
-
fsId?: string | undefined;
|
|
4150
|
-
name?: string | undefined;
|
|
4151
|
-
round?: number | undefined;
|
|
4152
|
-
epoch?: number | undefined;
|
|
4153
|
-
text?: string | undefined;
|
|
4154
|
-
truncated?: boolean | undefined;
|
|
4155
|
-
};
|
|
4156
|
-
} | {
|
|
4157
|
-
type: "prompt.status";
|
|
4158
|
-
streamId: string;
|
|
4159
|
-
chatId: string;
|
|
4160
|
-
seq: number;
|
|
4161
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4162
|
-
round: number;
|
|
4163
|
-
maxRounds: number;
|
|
4164
|
-
tools: {
|
|
4165
|
-
name: string;
|
|
4166
|
-
path?: string | undefined;
|
|
4167
|
-
}[];
|
|
4168
|
-
} | {
|
|
4169
|
-
streamId: string;
|
|
4170
|
-
chatId: string;
|
|
4171
|
-
seq: number;
|
|
4172
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4173
|
-
type: "prompt.notice";
|
|
4174
|
-
kind: "edits-incomplete";
|
|
4175
|
-
path?: string | undefined;
|
|
4176
|
-
} | {
|
|
4177
|
-
streamId: string;
|
|
4178
|
-
chatId: string;
|
|
4179
|
-
seq: number;
|
|
4180
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4181
|
-
type: "prompt.summary";
|
|
4182
|
-
text: string;
|
|
4183
|
-
} | {
|
|
4184
|
-
streamId: string;
|
|
4185
|
-
chatId: string;
|
|
4186
|
-
seq: number;
|
|
4187
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4188
|
-
type: "prompt.progress-label";
|
|
4189
|
-
text: string;
|
|
4190
|
-
} | {
|
|
4191
|
-
streamId: string;
|
|
4192
|
-
chatId: string;
|
|
4193
|
-
seq: number;
|
|
4194
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4195
|
-
type: "prompt.nature-rewrite";
|
|
4196
|
-
nature: "collaborative" | "open" | "sensitive";
|
|
4197
|
-
outcome: "not-applied" | "persisted" | "refused";
|
|
4198
|
-
error?: string | undefined;
|
|
4199
|
-
} | {
|
|
4200
|
-
blockId: string;
|
|
4201
|
-
streamId: string;
|
|
4202
|
-
seq: number;
|
|
4203
|
-
blockNr: number;
|
|
4204
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4205
|
-
type: "block.begin";
|
|
4206
|
-
} | {
|
|
4207
|
-
blockId: string;
|
|
4208
|
-
streamId: string;
|
|
4209
|
-
seq: number;
|
|
4210
|
-
blockNr: number;
|
|
4211
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4212
|
-
type: "block.end";
|
|
4213
|
-
stats: {
|
|
4214
|
-
toplevel: {
|
|
4215
|
-
lines: number;
|
|
4216
|
-
bytes: number;
|
|
4217
|
-
cnt?: number | undefined;
|
|
4218
|
-
};
|
|
4219
|
-
code: {
|
|
4220
|
-
lines: number;
|
|
4221
|
-
bytes: number;
|
|
4222
|
-
cnt?: number | undefined;
|
|
4223
|
-
};
|
|
4224
|
-
image: {
|
|
4225
|
-
lines: number;
|
|
4226
|
-
bytes: number;
|
|
4227
|
-
cnt?: number | undefined;
|
|
4228
|
-
};
|
|
4229
|
-
total: {
|
|
4230
|
-
lines: number;
|
|
4231
|
-
bytes: number;
|
|
4232
|
-
cnt?: number | undefined;
|
|
4233
|
-
};
|
|
4234
|
-
};
|
|
4235
|
-
usage: {
|
|
4236
|
-
given: {
|
|
4237
|
-
prompt_tokens: number;
|
|
4238
|
-
completion_tokens: number;
|
|
4239
|
-
total_tokens: number;
|
|
4240
|
-
model?: string | undefined;
|
|
4241
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4242
|
-
reasoningEffort?: string | undefined;
|
|
4243
|
-
}[];
|
|
4244
|
-
calculated: {
|
|
4245
|
-
prompt_tokens: number;
|
|
4246
|
-
completion_tokens: number;
|
|
4247
|
-
total_tokens: number;
|
|
4248
|
-
model?: string | undefined;
|
|
4249
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4250
|
-
reasoningEffort?: string | undefined;
|
|
4251
|
-
};
|
|
4252
|
-
};
|
|
4253
|
-
fsRef?: ((In: {
|
|
4254
|
-
appSlug: string;
|
|
4255
|
-
ownerHandle?: string | undefined;
|
|
4256
|
-
userSlug?: string | undefined;
|
|
4257
|
-
mode: "dev" | "production";
|
|
4258
|
-
fsId: string;
|
|
4259
|
-
}) => import("arktype").Out<{
|
|
4260
|
-
appSlug: string;
|
|
4261
|
-
mode: "dev" | "production";
|
|
4262
|
-
fsId: string;
|
|
4263
|
-
ownerHandle: string;
|
|
4264
|
-
}>) | undefined;
|
|
4265
|
-
touchedPaths?: string[] | undefined;
|
|
4266
|
-
settled?: {
|
|
4267
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4268
|
-
entryTouched: boolean;
|
|
4269
|
-
touchedCount: number;
|
|
4270
|
-
applied: boolean;
|
|
4271
|
-
} | undefined;
|
|
4272
|
-
saveRepair?: {
|
|
4273
|
-
repaired: string[];
|
|
4274
|
-
attempts: number;
|
|
4275
|
-
} | undefined;
|
|
4276
|
-
seedRepair?: {
|
|
4277
|
-
repaired: string[];
|
|
4278
|
-
attempts: number;
|
|
4279
|
-
} | undefined;
|
|
4280
|
-
savedBy?: "agent" | "person" | undefined;
|
|
4281
|
-
} | {
|
|
4282
|
-
blockId: string;
|
|
4283
|
-
streamId: string;
|
|
4284
|
-
seq: number;
|
|
4285
|
-
blockNr: number;
|
|
4286
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4287
|
-
type: "block.stats";
|
|
4288
|
-
stats: {
|
|
4289
|
-
toplevel: {
|
|
4290
|
-
lines: number;
|
|
4291
|
-
bytes: number;
|
|
4292
|
-
cnt?: number | undefined;
|
|
4293
|
-
};
|
|
4294
|
-
code: {
|
|
4295
|
-
lines: number;
|
|
4296
|
-
bytes: number;
|
|
4297
|
-
cnt?: number | undefined;
|
|
4298
|
-
};
|
|
4299
|
-
image: {
|
|
4300
|
-
lines: number;
|
|
4301
|
-
bytes: number;
|
|
4302
|
-
cnt?: number | undefined;
|
|
4303
|
-
};
|
|
4304
|
-
total: {
|
|
4305
|
-
lines: number;
|
|
4306
|
-
bytes: number;
|
|
4307
|
-
cnt?: number | undefined;
|
|
4308
|
-
};
|
|
4309
|
-
};
|
|
4310
|
-
usage: {
|
|
4311
|
-
prompt_tokens: number;
|
|
4312
|
-
completion_tokens: number;
|
|
4313
|
-
total_tokens: number;
|
|
4314
|
-
model?: string | undefined;
|
|
4315
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4316
|
-
reasoningEffort?: string | undefined;
|
|
4317
|
-
};
|
|
4318
|
-
} | {
|
|
4319
|
-
blockId: string;
|
|
4320
|
-
streamId: string;
|
|
4321
|
-
seq: number;
|
|
4322
|
-
blockNr: number;
|
|
4323
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4324
|
-
stats: {
|
|
4325
|
-
lines: number;
|
|
4326
|
-
bytes: number;
|
|
4327
|
-
cnt?: number | undefined;
|
|
4328
|
-
};
|
|
4329
|
-
type: "block.image";
|
|
4330
|
-
sectionId: string;
|
|
4331
|
-
url?: string | undefined;
|
|
4332
|
-
uploadId?: string | undefined;
|
|
4333
|
-
cid?: string | undefined;
|
|
4334
|
-
mimeType?: string | undefined;
|
|
4335
|
-
size?: number | undefined;
|
|
4336
|
-
docWritten?: boolean | undefined;
|
|
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
|
+
sessionId?: string | undefined;
|
|
4360
|
+
callId?: string | undefined;
|
|
4361
|
+
handleId?: string | undefined;
|
|
4362
|
+
buildHandleId?: string | undefined;
|
|
4363
|
+
supersedes?: string | undefined;
|
|
4364
|
+
queued?: boolean | undefined;
|
|
4365
|
+
state?: "building" | "committing" | "queued" | undefined;
|
|
4366
|
+
saved?: boolean | undefined;
|
|
4367
|
+
ok?: boolean | undefined;
|
|
4368
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "stale-base" | "unchanged" | undefined;
|
|
4369
|
+
fsId?: string | undefined;
|
|
4370
|
+
name?: string | undefined;
|
|
4371
|
+
round?: number | undefined;
|
|
4372
|
+
epoch?: number | undefined;
|
|
4373
|
+
text?: string | undefined;
|
|
4374
|
+
truncated?: boolean | undefined;
|
|
4375
|
+
};
|
|
4359
4376
|
} | {
|
|
4360
|
-
|
|
4377
|
+
type: "prompt.status";
|
|
4361
4378
|
streamId: string;
|
|
4379
|
+
chatId: string;
|
|
4362
4380
|
seq: number;
|
|
4363
|
-
blockNr: number;
|
|
4364
4381
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4365
|
-
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4370
|
-
|
|
4371
|
-
sectionId: string;
|
|
4372
|
-
lang: string;
|
|
4373
|
-
path?: string | undefined;
|
|
4382
|
+
round: number;
|
|
4383
|
+
maxRounds: number;
|
|
4384
|
+
tools: {
|
|
4385
|
+
name: string;
|
|
4386
|
+
path?: string | undefined;
|
|
4387
|
+
}[];
|
|
4374
4388
|
} | {
|
|
4375
|
-
blockId: string;
|
|
4376
4389
|
streamId: string;
|
|
4390
|
+
chatId: string;
|
|
4377
4391
|
seq: number;
|
|
4378
|
-
blockNr: number;
|
|
4379
4392
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4380
|
-
type: "
|
|
4381
|
-
|
|
4382
|
-
lang: string;
|
|
4393
|
+
type: "prompt.notice";
|
|
4394
|
+
kind: "edits-incomplete";
|
|
4383
4395
|
path?: string | undefined;
|
|
4384
|
-
reason: string;
|
|
4385
|
-
kind: string;
|
|
4386
|
-
truncatedAtLine: number;
|
|
4387
|
-
errorCount: number;
|
|
4388
4396
|
} | {
|
|
4389
|
-
blockId: string;
|
|
4390
4397
|
streamId: string;
|
|
4398
|
+
chatId: string;
|
|
4391
4399
|
seq: number;
|
|
4392
|
-
blockNr: number;
|
|
4393
4400
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4394
|
-
type: "
|
|
4395
|
-
|
|
4401
|
+
type: "prompt.summary";
|
|
4402
|
+
text: string;
|
|
4396
4403
|
} | {
|
|
4397
|
-
blockId: string;
|
|
4398
4404
|
streamId: string;
|
|
4405
|
+
chatId: string;
|
|
4399
4406
|
seq: number;
|
|
4400
|
-
blockNr: number;
|
|
4401
4407
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4402
|
-
|
|
4403
|
-
|
|
4404
|
-
type: "block.toplevel.line";
|
|
4405
|
-
sectionId: string;
|
|
4408
|
+
type: "prompt.progress-label";
|
|
4409
|
+
text: string;
|
|
4406
4410
|
} | {
|
|
4407
|
-
blockId: string;
|
|
4408
4411
|
streamId: string;
|
|
4412
|
+
chatId: string;
|
|
4409
4413
|
seq: number;
|
|
4410
|
-
blockNr: number;
|
|
4411
4414
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4412
|
-
|
|
4413
|
-
|
|
4414
|
-
|
|
4415
|
-
|
|
4416
|
-
};
|
|
4417
|
-
type: "block.toplevel.end";
|
|
4418
|
-
sectionId: string;
|
|
4415
|
+
type: "prompt.nature-rewrite";
|
|
4416
|
+
nature: "collaborative" | "open" | "sensitive";
|
|
4417
|
+
outcome: "not-applied" | "persisted" | "refused";
|
|
4418
|
+
error?: string | undefined;
|
|
4419
4419
|
})[];
|
|
4420
4420
|
}, {}>;
|
|
4421
4421
|
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
@@ -4449,6 +4449,226 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4449
4449
|
blockSeq: number;
|
|
4450
4450
|
created?: string | undefined;
|
|
4451
4451
|
blocks: ({
|
|
4452
|
+
blockId: string;
|
|
4453
|
+
streamId: string;
|
|
4454
|
+
seq: number;
|
|
4455
|
+
blockNr: number;
|
|
4456
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4457
|
+
type: "block.begin";
|
|
4458
|
+
} | {
|
|
4459
|
+
blockId: string;
|
|
4460
|
+
streamId: string;
|
|
4461
|
+
seq: number;
|
|
4462
|
+
blockNr: number;
|
|
4463
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4464
|
+
type: "block.end";
|
|
4465
|
+
stats: {
|
|
4466
|
+
toplevel: {
|
|
4467
|
+
lines: number;
|
|
4468
|
+
bytes: number;
|
|
4469
|
+
cnt?: number | undefined;
|
|
4470
|
+
};
|
|
4471
|
+
code: {
|
|
4472
|
+
lines: number;
|
|
4473
|
+
bytes: number;
|
|
4474
|
+
cnt?: number | undefined;
|
|
4475
|
+
};
|
|
4476
|
+
image: {
|
|
4477
|
+
lines: number;
|
|
4478
|
+
bytes: number;
|
|
4479
|
+
cnt?: number | undefined;
|
|
4480
|
+
};
|
|
4481
|
+
total: {
|
|
4482
|
+
lines: number;
|
|
4483
|
+
bytes: number;
|
|
4484
|
+
cnt?: number | undefined;
|
|
4485
|
+
};
|
|
4486
|
+
};
|
|
4487
|
+
usage: {
|
|
4488
|
+
given: {
|
|
4489
|
+
prompt_tokens: number;
|
|
4490
|
+
completion_tokens: number;
|
|
4491
|
+
total_tokens: number;
|
|
4492
|
+
model?: string | undefined;
|
|
4493
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4494
|
+
reasoningEffort?: string | undefined;
|
|
4495
|
+
}[];
|
|
4496
|
+
calculated: {
|
|
4497
|
+
prompt_tokens: number;
|
|
4498
|
+
completion_tokens: number;
|
|
4499
|
+
total_tokens: number;
|
|
4500
|
+
model?: string | undefined;
|
|
4501
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4502
|
+
reasoningEffort?: string | undefined;
|
|
4503
|
+
};
|
|
4504
|
+
};
|
|
4505
|
+
fsRef?: ((In: {
|
|
4506
|
+
appSlug: string;
|
|
4507
|
+
ownerHandle?: string | undefined;
|
|
4508
|
+
userSlug?: string | undefined;
|
|
4509
|
+
mode: "dev" | "production";
|
|
4510
|
+
fsId: string;
|
|
4511
|
+
}) => import("arktype").Out<{
|
|
4512
|
+
appSlug: string;
|
|
4513
|
+
mode: "dev" | "production";
|
|
4514
|
+
fsId: string;
|
|
4515
|
+
ownerHandle: string;
|
|
4516
|
+
}>) | undefined;
|
|
4517
|
+
touchedPaths?: string[] | undefined;
|
|
4518
|
+
settled?: {
|
|
4519
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4520
|
+
entryTouched: boolean;
|
|
4521
|
+
touchedCount: number;
|
|
4522
|
+
applied: boolean;
|
|
4523
|
+
} | undefined;
|
|
4524
|
+
saveRepair?: {
|
|
4525
|
+
repaired: string[];
|
|
4526
|
+
attempts: number;
|
|
4527
|
+
} | undefined;
|
|
4528
|
+
seedRepair?: {
|
|
4529
|
+
repaired: string[];
|
|
4530
|
+
attempts: number;
|
|
4531
|
+
} | undefined;
|
|
4532
|
+
savedBy?: "agent" | "person" | 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
|
+
type: "block.stats";
|
|
4540
|
+
stats: {
|
|
4541
|
+
toplevel: {
|
|
4542
|
+
lines: number;
|
|
4543
|
+
bytes: number;
|
|
4544
|
+
cnt?: number | undefined;
|
|
4545
|
+
};
|
|
4546
|
+
code: {
|
|
4547
|
+
lines: number;
|
|
4548
|
+
bytes: number;
|
|
4549
|
+
cnt?: number | undefined;
|
|
4550
|
+
};
|
|
4551
|
+
image: {
|
|
4552
|
+
lines: number;
|
|
4553
|
+
bytes: number;
|
|
4554
|
+
cnt?: number | undefined;
|
|
4555
|
+
};
|
|
4556
|
+
total: {
|
|
4557
|
+
lines: number;
|
|
4558
|
+
bytes: number;
|
|
4559
|
+
cnt?: number | undefined;
|
|
4560
|
+
};
|
|
4561
|
+
};
|
|
4562
|
+
usage: {
|
|
4563
|
+
prompt_tokens: number;
|
|
4564
|
+
completion_tokens: number;
|
|
4565
|
+
total_tokens: number;
|
|
4566
|
+
model?: string | undefined;
|
|
4567
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4568
|
+
reasoningEffort?: string | undefined;
|
|
4569
|
+
};
|
|
4570
|
+
} | {
|
|
4571
|
+
blockId: string;
|
|
4572
|
+
streamId: string;
|
|
4573
|
+
seq: number;
|
|
4574
|
+
blockNr: number;
|
|
4575
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4576
|
+
stats: {
|
|
4577
|
+
lines: number;
|
|
4578
|
+
bytes: number;
|
|
4579
|
+
cnt?: number | undefined;
|
|
4580
|
+
};
|
|
4581
|
+
type: "block.image";
|
|
4582
|
+
sectionId: string;
|
|
4583
|
+
url?: string | undefined;
|
|
4584
|
+
uploadId?: string | undefined;
|
|
4585
|
+
cid?: string | undefined;
|
|
4586
|
+
mimeType?: string | undefined;
|
|
4587
|
+
size?: number | undefined;
|
|
4588
|
+
docWritten?: boolean | undefined;
|
|
4589
|
+
} | {
|
|
4590
|
+
blockId: string;
|
|
4591
|
+
streamId: string;
|
|
4592
|
+
seq: number;
|
|
4593
|
+
blockNr: number;
|
|
4594
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4595
|
+
type: "block.code.begin";
|
|
4596
|
+
sectionId: string;
|
|
4597
|
+
lang: string;
|
|
4598
|
+
path?: string | undefined;
|
|
4599
|
+
} | {
|
|
4600
|
+
blockId: string;
|
|
4601
|
+
streamId: string;
|
|
4602
|
+
seq: number;
|
|
4603
|
+
blockNr: number;
|
|
4604
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4605
|
+
lineNr: number;
|
|
4606
|
+
line: string;
|
|
4607
|
+
type: "block.code.line";
|
|
4608
|
+
sectionId: string;
|
|
4609
|
+
lang: string;
|
|
4610
|
+
path?: string | undefined;
|
|
4611
|
+
} | {
|
|
4612
|
+
blockId: string;
|
|
4613
|
+
streamId: string;
|
|
4614
|
+
seq: number;
|
|
4615
|
+
blockNr: number;
|
|
4616
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4617
|
+
stats: {
|
|
4618
|
+
lines: number;
|
|
4619
|
+
bytes: number;
|
|
4620
|
+
cnt?: number | undefined;
|
|
4621
|
+
};
|
|
4622
|
+
type: "block.code.end";
|
|
4623
|
+
sectionId: string;
|
|
4624
|
+
lang: string;
|
|
4625
|
+
path?: string | undefined;
|
|
4626
|
+
} | {
|
|
4627
|
+
blockId: string;
|
|
4628
|
+
streamId: string;
|
|
4629
|
+
seq: number;
|
|
4630
|
+
blockNr: number;
|
|
4631
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4632
|
+
type: "block.code.truncated";
|
|
4633
|
+
sectionId: string;
|
|
4634
|
+
lang: string;
|
|
4635
|
+
path?: string | undefined;
|
|
4636
|
+
reason: string;
|
|
4637
|
+
kind: string;
|
|
4638
|
+
truncatedAtLine: number;
|
|
4639
|
+
errorCount: number;
|
|
4640
|
+
} | {
|
|
4641
|
+
blockId: string;
|
|
4642
|
+
streamId: string;
|
|
4643
|
+
seq: number;
|
|
4644
|
+
blockNr: number;
|
|
4645
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4646
|
+
type: "block.toplevel.begin";
|
|
4647
|
+
sectionId: string;
|
|
4648
|
+
} | {
|
|
4649
|
+
blockId: string;
|
|
4650
|
+
streamId: string;
|
|
4651
|
+
seq: number;
|
|
4652
|
+
blockNr: number;
|
|
4653
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4654
|
+
lineNr: number;
|
|
4655
|
+
line: string;
|
|
4656
|
+
type: "block.toplevel.line";
|
|
4657
|
+
sectionId: string;
|
|
4658
|
+
} | {
|
|
4659
|
+
blockId: string;
|
|
4660
|
+
streamId: string;
|
|
4661
|
+
seq: number;
|
|
4662
|
+
blockNr: number;
|
|
4663
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4664
|
+
stats: {
|
|
4665
|
+
lines: number;
|
|
4666
|
+
bytes: number;
|
|
4667
|
+
cnt?: number | undefined;
|
|
4668
|
+
};
|
|
4669
|
+
type: "block.toplevel.end";
|
|
4670
|
+
sectionId: string;
|
|
4671
|
+
} | {
|
|
4452
4672
|
type: "prompt.research";
|
|
4453
4673
|
version: 1;
|
|
4454
4674
|
streamId: string;
|
|
@@ -4867,280 +5087,60 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
4867
5087
|
buildHandleId?: string | undefined;
|
|
4868
5088
|
supersedes?: string | undefined;
|
|
4869
5089
|
queued?: boolean | undefined;
|
|
4870
|
-
state?: "building" | "committing" | "queued" | undefined;
|
|
4871
|
-
saved?: boolean | undefined;
|
|
4872
|
-
ok?: boolean | undefined;
|
|
4873
|
-
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "stale-base" | "unchanged" | undefined;
|
|
4874
|
-
fsId?: string | undefined;
|
|
4875
|
-
name?: string | undefined;
|
|
4876
|
-
round?: number | undefined;
|
|
4877
|
-
epoch?: number | undefined;
|
|
4878
|
-
text?: string | undefined;
|
|
4879
|
-
truncated?: boolean | undefined;
|
|
4880
|
-
};
|
|
4881
|
-
} | {
|
|
4882
|
-
type: "prompt.status";
|
|
4883
|
-
streamId: string;
|
|
4884
|
-
chatId: string;
|
|
4885
|
-
seq: number;
|
|
4886
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4887
|
-
round: number;
|
|
4888
|
-
maxRounds: number;
|
|
4889
|
-
tools: {
|
|
4890
|
-
name: string;
|
|
4891
|
-
path?: string | undefined;
|
|
4892
|
-
}[];
|
|
4893
|
-
} | {
|
|
4894
|
-
streamId: string;
|
|
4895
|
-
chatId: string;
|
|
4896
|
-
seq: number;
|
|
4897
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4898
|
-
type: "prompt.notice";
|
|
4899
|
-
kind: "edits-incomplete";
|
|
4900
|
-
path?: string | undefined;
|
|
4901
|
-
} | {
|
|
4902
|
-
streamId: string;
|
|
4903
|
-
chatId: string;
|
|
4904
|
-
seq: number;
|
|
4905
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4906
|
-
type: "prompt.summary";
|
|
4907
|
-
text: string;
|
|
4908
|
-
} | {
|
|
4909
|
-
streamId: string;
|
|
4910
|
-
chatId: string;
|
|
4911
|
-
seq: number;
|
|
4912
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4913
|
-
type: "prompt.progress-label";
|
|
4914
|
-
text: string;
|
|
4915
|
-
} | {
|
|
4916
|
-
streamId: string;
|
|
4917
|
-
chatId: string;
|
|
4918
|
-
seq: number;
|
|
4919
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4920
|
-
type: "prompt.nature-rewrite";
|
|
4921
|
-
nature: "collaborative" | "open" | "sensitive";
|
|
4922
|
-
outcome: "not-applied" | "persisted" | "refused";
|
|
4923
|
-
error?: string | undefined;
|
|
4924
|
-
} | {
|
|
4925
|
-
blockId: string;
|
|
4926
|
-
streamId: string;
|
|
4927
|
-
seq: number;
|
|
4928
|
-
blockNr: number;
|
|
4929
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4930
|
-
type: "block.begin";
|
|
4931
|
-
} | {
|
|
4932
|
-
blockId: string;
|
|
4933
|
-
streamId: string;
|
|
4934
|
-
seq: number;
|
|
4935
|
-
blockNr: number;
|
|
4936
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4937
|
-
type: "block.end";
|
|
4938
|
-
stats: {
|
|
4939
|
-
toplevel: {
|
|
4940
|
-
lines: number;
|
|
4941
|
-
bytes: number;
|
|
4942
|
-
cnt?: number | undefined;
|
|
4943
|
-
};
|
|
4944
|
-
code: {
|
|
4945
|
-
lines: number;
|
|
4946
|
-
bytes: number;
|
|
4947
|
-
cnt?: number | undefined;
|
|
4948
|
-
};
|
|
4949
|
-
image: {
|
|
4950
|
-
lines: number;
|
|
4951
|
-
bytes: number;
|
|
4952
|
-
cnt?: number | undefined;
|
|
4953
|
-
};
|
|
4954
|
-
total: {
|
|
4955
|
-
lines: number;
|
|
4956
|
-
bytes: number;
|
|
4957
|
-
cnt?: number | undefined;
|
|
4958
|
-
};
|
|
4959
|
-
};
|
|
4960
|
-
usage: {
|
|
4961
|
-
given: {
|
|
4962
|
-
prompt_tokens: number;
|
|
4963
|
-
completion_tokens: number;
|
|
4964
|
-
total_tokens: number;
|
|
4965
|
-
model?: string | undefined;
|
|
4966
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4967
|
-
reasoningEffort?: string | undefined;
|
|
4968
|
-
}[];
|
|
4969
|
-
calculated: {
|
|
4970
|
-
prompt_tokens: number;
|
|
4971
|
-
completion_tokens: number;
|
|
4972
|
-
total_tokens: number;
|
|
4973
|
-
model?: string | undefined;
|
|
4974
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
4975
|
-
reasoningEffort?: string | undefined;
|
|
4976
|
-
};
|
|
4977
|
-
};
|
|
4978
|
-
fsRef?: ((In: {
|
|
4979
|
-
appSlug: string;
|
|
4980
|
-
ownerHandle?: string | undefined;
|
|
4981
|
-
userSlug?: string | undefined;
|
|
4982
|
-
mode: "dev" | "production";
|
|
4983
|
-
fsId: string;
|
|
4984
|
-
}) => import("arktype").Out<{
|
|
4985
|
-
appSlug: string;
|
|
4986
|
-
mode: "dev" | "production";
|
|
4987
|
-
fsId: string;
|
|
4988
|
-
ownerHandle: string;
|
|
4989
|
-
}>) | undefined;
|
|
4990
|
-
touchedPaths?: string[] | undefined;
|
|
4991
|
-
settled?: {
|
|
4992
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4993
|
-
entryTouched: boolean;
|
|
4994
|
-
touchedCount: number;
|
|
4995
|
-
applied: boolean;
|
|
4996
|
-
} | undefined;
|
|
4997
|
-
saveRepair?: {
|
|
4998
|
-
repaired: string[];
|
|
4999
|
-
attempts: number;
|
|
5000
|
-
} | undefined;
|
|
5001
|
-
seedRepair?: {
|
|
5002
|
-
repaired: string[];
|
|
5003
|
-
attempts: number;
|
|
5004
|
-
} | undefined;
|
|
5005
|
-
savedBy?: "agent" | "person" | undefined;
|
|
5006
|
-
} | {
|
|
5007
|
-
blockId: string;
|
|
5008
|
-
streamId: string;
|
|
5009
|
-
seq: number;
|
|
5010
|
-
blockNr: number;
|
|
5011
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5012
|
-
type: "block.stats";
|
|
5013
|
-
stats: {
|
|
5014
|
-
toplevel: {
|
|
5015
|
-
lines: number;
|
|
5016
|
-
bytes: number;
|
|
5017
|
-
cnt?: number | undefined;
|
|
5018
|
-
};
|
|
5019
|
-
code: {
|
|
5020
|
-
lines: number;
|
|
5021
|
-
bytes: number;
|
|
5022
|
-
cnt?: number | undefined;
|
|
5023
|
-
};
|
|
5024
|
-
image: {
|
|
5025
|
-
lines: number;
|
|
5026
|
-
bytes: number;
|
|
5027
|
-
cnt?: number | undefined;
|
|
5028
|
-
};
|
|
5029
|
-
total: {
|
|
5030
|
-
lines: number;
|
|
5031
|
-
bytes: number;
|
|
5032
|
-
cnt?: number | undefined;
|
|
5033
|
-
};
|
|
5034
|
-
};
|
|
5035
|
-
usage: {
|
|
5036
|
-
prompt_tokens: number;
|
|
5037
|
-
completion_tokens: number;
|
|
5038
|
-
total_tokens: number;
|
|
5039
|
-
model?: string | undefined;
|
|
5040
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
5041
|
-
reasoningEffort?: string | undefined;
|
|
5042
|
-
};
|
|
5043
|
-
} | {
|
|
5044
|
-
blockId: string;
|
|
5045
|
-
streamId: string;
|
|
5046
|
-
seq: number;
|
|
5047
|
-
blockNr: number;
|
|
5048
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5049
|
-
stats: {
|
|
5050
|
-
lines: number;
|
|
5051
|
-
bytes: number;
|
|
5052
|
-
cnt?: number | undefined;
|
|
5053
|
-
};
|
|
5054
|
-
type: "block.image";
|
|
5055
|
-
sectionId: string;
|
|
5056
|
-
url?: string | undefined;
|
|
5057
|
-
uploadId?: string | undefined;
|
|
5058
|
-
cid?: string | undefined;
|
|
5059
|
-
mimeType?: string | undefined;
|
|
5060
|
-
size?: number | undefined;
|
|
5061
|
-
docWritten?: boolean | undefined;
|
|
5062
|
-
} | {
|
|
5063
|
-
blockId: string;
|
|
5064
|
-
streamId: string;
|
|
5065
|
-
seq: number;
|
|
5066
|
-
blockNr: number;
|
|
5067
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5068
|
-
type: "block.code.begin";
|
|
5069
|
-
sectionId: string;
|
|
5070
|
-
lang: string;
|
|
5071
|
-
path?: string | undefined;
|
|
5072
|
-
} | {
|
|
5073
|
-
blockId: string;
|
|
5074
|
-
streamId: string;
|
|
5075
|
-
seq: number;
|
|
5076
|
-
blockNr: number;
|
|
5077
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5078
|
-
lineNr: number;
|
|
5079
|
-
line: string;
|
|
5080
|
-
type: "block.code.line";
|
|
5081
|
-
sectionId: string;
|
|
5082
|
-
lang: string;
|
|
5083
|
-
path?: string | undefined;
|
|
5090
|
+
state?: "building" | "committing" | "queued" | undefined;
|
|
5091
|
+
saved?: boolean | undefined;
|
|
5092
|
+
ok?: boolean | undefined;
|
|
5093
|
+
refusalReason?: "address-taken" | "already-created" | "ambiguous-handle" | "busy" | "claim-unavailable" | "failed" | "invalid-input" | "no-app-in-scope" | "not-owner" | "out-of-scope" | "stale-base" | "unchanged" | undefined;
|
|
5094
|
+
fsId?: string | undefined;
|
|
5095
|
+
name?: string | undefined;
|
|
5096
|
+
round?: number | undefined;
|
|
5097
|
+
epoch?: number | undefined;
|
|
5098
|
+
text?: string | undefined;
|
|
5099
|
+
truncated?: boolean | undefined;
|
|
5100
|
+
};
|
|
5084
5101
|
} | {
|
|
5085
|
-
|
|
5102
|
+
type: "prompt.status";
|
|
5086
5103
|
streamId: string;
|
|
5104
|
+
chatId: string;
|
|
5087
5105
|
seq: number;
|
|
5088
|
-
blockNr: number;
|
|
5089
5106
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
sectionId: string;
|
|
5097
|
-
lang: string;
|
|
5098
|
-
path?: string | undefined;
|
|
5107
|
+
round: number;
|
|
5108
|
+
maxRounds: number;
|
|
5109
|
+
tools: {
|
|
5110
|
+
name: string;
|
|
5111
|
+
path?: string | undefined;
|
|
5112
|
+
}[];
|
|
5099
5113
|
} | {
|
|
5100
|
-
blockId: string;
|
|
5101
5114
|
streamId: string;
|
|
5115
|
+
chatId: string;
|
|
5102
5116
|
seq: number;
|
|
5103
|
-
blockNr: number;
|
|
5104
5117
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5105
|
-
type: "
|
|
5106
|
-
|
|
5107
|
-
lang: string;
|
|
5118
|
+
type: "prompt.notice";
|
|
5119
|
+
kind: "edits-incomplete";
|
|
5108
5120
|
path?: string | undefined;
|
|
5109
|
-
reason: string;
|
|
5110
|
-
kind: string;
|
|
5111
|
-
truncatedAtLine: number;
|
|
5112
|
-
errorCount: number;
|
|
5113
5121
|
} | {
|
|
5114
|
-
blockId: string;
|
|
5115
5122
|
streamId: string;
|
|
5123
|
+
chatId: string;
|
|
5116
5124
|
seq: number;
|
|
5117
|
-
blockNr: number;
|
|
5118
5125
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5119
|
-
type: "
|
|
5120
|
-
|
|
5126
|
+
type: "prompt.summary";
|
|
5127
|
+
text: string;
|
|
5121
5128
|
} | {
|
|
5122
|
-
blockId: string;
|
|
5123
5129
|
streamId: string;
|
|
5130
|
+
chatId: string;
|
|
5124
5131
|
seq: number;
|
|
5125
|
-
blockNr: number;
|
|
5126
5132
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
type: "block.toplevel.line";
|
|
5130
|
-
sectionId: string;
|
|
5133
|
+
type: "prompt.progress-label";
|
|
5134
|
+
text: string;
|
|
5131
5135
|
} | {
|
|
5132
|
-
blockId: string;
|
|
5133
5136
|
streamId: string;
|
|
5137
|
+
chatId: string;
|
|
5134
5138
|
seq: number;
|
|
5135
|
-
blockNr: number;
|
|
5136
5139
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
};
|
|
5142
|
-
type: "block.toplevel.end";
|
|
5143
|
-
sectionId: string;
|
|
5140
|
+
type: "prompt.nature-rewrite";
|
|
5141
|
+
nature: "collaborative" | "open" | "sensitive";
|
|
5142
|
+
outcome: "not-applied" | "persisted" | "refused";
|
|
5143
|
+
error?: string | undefined;
|
|
5144
5144
|
})[];
|
|
5145
5145
|
}[];
|
|
5146
5146
|
usage?: {
|
|
@@ -5186,6 +5186,226 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5186
5186
|
blockSeq: number;
|
|
5187
5187
|
created?: string | undefined;
|
|
5188
5188
|
blocks: ({
|
|
5189
|
+
blockId: string;
|
|
5190
|
+
streamId: string;
|
|
5191
|
+
seq: number;
|
|
5192
|
+
blockNr: number;
|
|
5193
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5194
|
+
type: "block.begin";
|
|
5195
|
+
} | {
|
|
5196
|
+
blockId: string;
|
|
5197
|
+
streamId: string;
|
|
5198
|
+
seq: number;
|
|
5199
|
+
blockNr: number;
|
|
5200
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5201
|
+
type: "block.end";
|
|
5202
|
+
stats: {
|
|
5203
|
+
toplevel: {
|
|
5204
|
+
lines: number;
|
|
5205
|
+
bytes: number;
|
|
5206
|
+
cnt?: number | undefined;
|
|
5207
|
+
};
|
|
5208
|
+
code: {
|
|
5209
|
+
lines: number;
|
|
5210
|
+
bytes: number;
|
|
5211
|
+
cnt?: number | undefined;
|
|
5212
|
+
};
|
|
5213
|
+
image: {
|
|
5214
|
+
lines: number;
|
|
5215
|
+
bytes: number;
|
|
5216
|
+
cnt?: number | undefined;
|
|
5217
|
+
};
|
|
5218
|
+
total: {
|
|
5219
|
+
lines: number;
|
|
5220
|
+
bytes: number;
|
|
5221
|
+
cnt?: number | undefined;
|
|
5222
|
+
};
|
|
5223
|
+
};
|
|
5224
|
+
usage: {
|
|
5225
|
+
given: {
|
|
5226
|
+
prompt_tokens: number;
|
|
5227
|
+
completion_tokens: number;
|
|
5228
|
+
total_tokens: number;
|
|
5229
|
+
model?: string | undefined;
|
|
5230
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
5231
|
+
reasoningEffort?: string | undefined;
|
|
5232
|
+
}[];
|
|
5233
|
+
calculated: {
|
|
5234
|
+
prompt_tokens: number;
|
|
5235
|
+
completion_tokens: number;
|
|
5236
|
+
total_tokens: number;
|
|
5237
|
+
model?: string | undefined;
|
|
5238
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
5239
|
+
reasoningEffort?: string | undefined;
|
|
5240
|
+
};
|
|
5241
|
+
};
|
|
5242
|
+
fsRef?: ((In: {
|
|
5243
|
+
appSlug: string;
|
|
5244
|
+
ownerHandle?: string | undefined;
|
|
5245
|
+
userSlug?: string | undefined;
|
|
5246
|
+
mode: "dev" | "production";
|
|
5247
|
+
fsId: string;
|
|
5248
|
+
}) => import("arktype").Out<{
|
|
5249
|
+
appSlug: string;
|
|
5250
|
+
mode: "dev" | "production";
|
|
5251
|
+
fsId: string;
|
|
5252
|
+
ownerHandle: string;
|
|
5253
|
+
}>) | undefined;
|
|
5254
|
+
touchedPaths?: string[] | undefined;
|
|
5255
|
+
settled?: {
|
|
5256
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
5257
|
+
entryTouched: boolean;
|
|
5258
|
+
touchedCount: number;
|
|
5259
|
+
applied: boolean;
|
|
5260
|
+
} | undefined;
|
|
5261
|
+
saveRepair?: {
|
|
5262
|
+
repaired: string[];
|
|
5263
|
+
attempts: number;
|
|
5264
|
+
} | undefined;
|
|
5265
|
+
seedRepair?: {
|
|
5266
|
+
repaired: string[];
|
|
5267
|
+
attempts: number;
|
|
5268
|
+
} | undefined;
|
|
5269
|
+
savedBy?: "agent" | "person" | undefined;
|
|
5270
|
+
} | {
|
|
5271
|
+
blockId: string;
|
|
5272
|
+
streamId: string;
|
|
5273
|
+
seq: number;
|
|
5274
|
+
blockNr: number;
|
|
5275
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5276
|
+
type: "block.stats";
|
|
5277
|
+
stats: {
|
|
5278
|
+
toplevel: {
|
|
5279
|
+
lines: number;
|
|
5280
|
+
bytes: number;
|
|
5281
|
+
cnt?: number | undefined;
|
|
5282
|
+
};
|
|
5283
|
+
code: {
|
|
5284
|
+
lines: number;
|
|
5285
|
+
bytes: number;
|
|
5286
|
+
cnt?: number | undefined;
|
|
5287
|
+
};
|
|
5288
|
+
image: {
|
|
5289
|
+
lines: number;
|
|
5290
|
+
bytes: number;
|
|
5291
|
+
cnt?: number | undefined;
|
|
5292
|
+
};
|
|
5293
|
+
total: {
|
|
5294
|
+
lines: number;
|
|
5295
|
+
bytes: number;
|
|
5296
|
+
cnt?: number | undefined;
|
|
5297
|
+
};
|
|
5298
|
+
};
|
|
5299
|
+
usage: {
|
|
5300
|
+
prompt_tokens: number;
|
|
5301
|
+
completion_tokens: number;
|
|
5302
|
+
total_tokens: number;
|
|
5303
|
+
model?: string | undefined;
|
|
5304
|
+
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
5305
|
+
reasoningEffort?: string | undefined;
|
|
5306
|
+
};
|
|
5307
|
+
} | {
|
|
5308
|
+
blockId: string;
|
|
5309
|
+
streamId: string;
|
|
5310
|
+
seq: number;
|
|
5311
|
+
blockNr: number;
|
|
5312
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5313
|
+
stats: {
|
|
5314
|
+
lines: number;
|
|
5315
|
+
bytes: number;
|
|
5316
|
+
cnt?: number | undefined;
|
|
5317
|
+
};
|
|
5318
|
+
type: "block.image";
|
|
5319
|
+
sectionId: string;
|
|
5320
|
+
url?: string | undefined;
|
|
5321
|
+
uploadId?: string | undefined;
|
|
5322
|
+
cid?: string | undefined;
|
|
5323
|
+
mimeType?: string | undefined;
|
|
5324
|
+
size?: number | undefined;
|
|
5325
|
+
docWritten?: boolean | undefined;
|
|
5326
|
+
} | {
|
|
5327
|
+
blockId: string;
|
|
5328
|
+
streamId: string;
|
|
5329
|
+
seq: number;
|
|
5330
|
+
blockNr: number;
|
|
5331
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5332
|
+
type: "block.code.begin";
|
|
5333
|
+
sectionId: string;
|
|
5334
|
+
lang: string;
|
|
5335
|
+
path?: string | undefined;
|
|
5336
|
+
} | {
|
|
5337
|
+
blockId: string;
|
|
5338
|
+
streamId: string;
|
|
5339
|
+
seq: number;
|
|
5340
|
+
blockNr: number;
|
|
5341
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5342
|
+
lineNr: number;
|
|
5343
|
+
line: string;
|
|
5344
|
+
type: "block.code.line";
|
|
5345
|
+
sectionId: string;
|
|
5346
|
+
lang: string;
|
|
5347
|
+
path?: string | undefined;
|
|
5348
|
+
} | {
|
|
5349
|
+
blockId: string;
|
|
5350
|
+
streamId: string;
|
|
5351
|
+
seq: number;
|
|
5352
|
+
blockNr: number;
|
|
5353
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5354
|
+
stats: {
|
|
5355
|
+
lines: number;
|
|
5356
|
+
bytes: number;
|
|
5357
|
+
cnt?: number | undefined;
|
|
5358
|
+
};
|
|
5359
|
+
type: "block.code.end";
|
|
5360
|
+
sectionId: string;
|
|
5361
|
+
lang: string;
|
|
5362
|
+
path?: string | undefined;
|
|
5363
|
+
} | {
|
|
5364
|
+
blockId: string;
|
|
5365
|
+
streamId: string;
|
|
5366
|
+
seq: number;
|
|
5367
|
+
blockNr: number;
|
|
5368
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5369
|
+
type: "block.code.truncated";
|
|
5370
|
+
sectionId: string;
|
|
5371
|
+
lang: string;
|
|
5372
|
+
path?: string | undefined;
|
|
5373
|
+
reason: string;
|
|
5374
|
+
kind: string;
|
|
5375
|
+
truncatedAtLine: number;
|
|
5376
|
+
errorCount: number;
|
|
5377
|
+
} | {
|
|
5378
|
+
blockId: string;
|
|
5379
|
+
streamId: string;
|
|
5380
|
+
seq: number;
|
|
5381
|
+
blockNr: number;
|
|
5382
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5383
|
+
type: "block.toplevel.begin";
|
|
5384
|
+
sectionId: string;
|
|
5385
|
+
} | {
|
|
5386
|
+
blockId: string;
|
|
5387
|
+
streamId: string;
|
|
5388
|
+
seq: number;
|
|
5389
|
+
blockNr: number;
|
|
5390
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5391
|
+
lineNr: number;
|
|
5392
|
+
line: string;
|
|
5393
|
+
type: "block.toplevel.line";
|
|
5394
|
+
sectionId: string;
|
|
5395
|
+
} | {
|
|
5396
|
+
blockId: string;
|
|
5397
|
+
streamId: string;
|
|
5398
|
+
seq: number;
|
|
5399
|
+
blockNr: number;
|
|
5400
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5401
|
+
stats: {
|
|
5402
|
+
lines: number;
|
|
5403
|
+
bytes: number;
|
|
5404
|
+
cnt?: number | undefined;
|
|
5405
|
+
};
|
|
5406
|
+
type: "block.toplevel.end";
|
|
5407
|
+
sectionId: string;
|
|
5408
|
+
} | {
|
|
5189
5409
|
type: "prompt.research";
|
|
5190
5410
|
version: 1;
|
|
5191
5411
|
streamId: string;
|
|
@@ -5658,226 +5878,6 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
5658
5878
|
nature: "collaborative" | "open" | "sensitive";
|
|
5659
5879
|
outcome: "not-applied" | "persisted" | "refused";
|
|
5660
5880
|
error?: string | undefined;
|
|
5661
|
-
} | {
|
|
5662
|
-
blockId: string;
|
|
5663
|
-
streamId: string;
|
|
5664
|
-
seq: number;
|
|
5665
|
-
blockNr: number;
|
|
5666
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5667
|
-
type: "block.begin";
|
|
5668
|
-
} | {
|
|
5669
|
-
blockId: string;
|
|
5670
|
-
streamId: string;
|
|
5671
|
-
seq: number;
|
|
5672
|
-
blockNr: number;
|
|
5673
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5674
|
-
type: "block.end";
|
|
5675
|
-
stats: {
|
|
5676
|
-
toplevel: {
|
|
5677
|
-
lines: number;
|
|
5678
|
-
bytes: number;
|
|
5679
|
-
cnt?: number | undefined;
|
|
5680
|
-
};
|
|
5681
|
-
code: {
|
|
5682
|
-
lines: number;
|
|
5683
|
-
bytes: number;
|
|
5684
|
-
cnt?: number | undefined;
|
|
5685
|
-
};
|
|
5686
|
-
image: {
|
|
5687
|
-
lines: number;
|
|
5688
|
-
bytes: number;
|
|
5689
|
-
cnt?: number | undefined;
|
|
5690
|
-
};
|
|
5691
|
-
total: {
|
|
5692
|
-
lines: number;
|
|
5693
|
-
bytes: number;
|
|
5694
|
-
cnt?: number | undefined;
|
|
5695
|
-
};
|
|
5696
|
-
};
|
|
5697
|
-
usage: {
|
|
5698
|
-
given: {
|
|
5699
|
-
prompt_tokens: number;
|
|
5700
|
-
completion_tokens: number;
|
|
5701
|
-
total_tokens: number;
|
|
5702
|
-
model?: string | undefined;
|
|
5703
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
5704
|
-
reasoningEffort?: string | undefined;
|
|
5705
|
-
}[];
|
|
5706
|
-
calculated: {
|
|
5707
|
-
prompt_tokens: number;
|
|
5708
|
-
completion_tokens: number;
|
|
5709
|
-
total_tokens: number;
|
|
5710
|
-
model?: string | undefined;
|
|
5711
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
5712
|
-
reasoningEffort?: string | undefined;
|
|
5713
|
-
};
|
|
5714
|
-
};
|
|
5715
|
-
fsRef?: ((In: {
|
|
5716
|
-
appSlug: string;
|
|
5717
|
-
ownerHandle?: string | undefined;
|
|
5718
|
-
userSlug?: string | undefined;
|
|
5719
|
-
mode: "dev" | "production";
|
|
5720
|
-
fsId: string;
|
|
5721
|
-
}) => import("arktype").Out<{
|
|
5722
|
-
appSlug: string;
|
|
5723
|
-
mode: "dev" | "production";
|
|
5724
|
-
fsId: string;
|
|
5725
|
-
ownerHandle: string;
|
|
5726
|
-
}>) | undefined;
|
|
5727
|
-
touchedPaths?: string[] | undefined;
|
|
5728
|
-
settled?: {
|
|
5729
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
5730
|
-
entryTouched: boolean;
|
|
5731
|
-
touchedCount: number;
|
|
5732
|
-
applied: boolean;
|
|
5733
|
-
} | undefined;
|
|
5734
|
-
saveRepair?: {
|
|
5735
|
-
repaired: string[];
|
|
5736
|
-
attempts: number;
|
|
5737
|
-
} | undefined;
|
|
5738
|
-
seedRepair?: {
|
|
5739
|
-
repaired: string[];
|
|
5740
|
-
attempts: number;
|
|
5741
|
-
} | undefined;
|
|
5742
|
-
savedBy?: "agent" | "person" | undefined;
|
|
5743
|
-
} | {
|
|
5744
|
-
blockId: string;
|
|
5745
|
-
streamId: string;
|
|
5746
|
-
seq: number;
|
|
5747
|
-
blockNr: number;
|
|
5748
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5749
|
-
type: "block.stats";
|
|
5750
|
-
stats: {
|
|
5751
|
-
toplevel: {
|
|
5752
|
-
lines: number;
|
|
5753
|
-
bytes: number;
|
|
5754
|
-
cnt?: number | undefined;
|
|
5755
|
-
};
|
|
5756
|
-
code: {
|
|
5757
|
-
lines: number;
|
|
5758
|
-
bytes: number;
|
|
5759
|
-
cnt?: number | undefined;
|
|
5760
|
-
};
|
|
5761
|
-
image: {
|
|
5762
|
-
lines: number;
|
|
5763
|
-
bytes: number;
|
|
5764
|
-
cnt?: number | undefined;
|
|
5765
|
-
};
|
|
5766
|
-
total: {
|
|
5767
|
-
lines: number;
|
|
5768
|
-
bytes: number;
|
|
5769
|
-
cnt?: number | undefined;
|
|
5770
|
-
};
|
|
5771
|
-
};
|
|
5772
|
-
usage: {
|
|
5773
|
-
prompt_tokens: number;
|
|
5774
|
-
completion_tokens: number;
|
|
5775
|
-
total_tokens: number;
|
|
5776
|
-
model?: string | undefined;
|
|
5777
|
-
role?: "agent" | "codegen" | "frontendDraft" | "img" | "mercury" | "research" | "runtime" | undefined;
|
|
5778
|
-
reasoningEffort?: string | undefined;
|
|
5779
|
-
};
|
|
5780
|
-
} | {
|
|
5781
|
-
blockId: string;
|
|
5782
|
-
streamId: string;
|
|
5783
|
-
seq: number;
|
|
5784
|
-
blockNr: number;
|
|
5785
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5786
|
-
stats: {
|
|
5787
|
-
lines: number;
|
|
5788
|
-
bytes: number;
|
|
5789
|
-
cnt?: number | undefined;
|
|
5790
|
-
};
|
|
5791
|
-
type: "block.image";
|
|
5792
|
-
sectionId: string;
|
|
5793
|
-
url?: string | undefined;
|
|
5794
|
-
uploadId?: string | undefined;
|
|
5795
|
-
cid?: string | undefined;
|
|
5796
|
-
mimeType?: string | undefined;
|
|
5797
|
-
size?: number | undefined;
|
|
5798
|
-
docWritten?: boolean | undefined;
|
|
5799
|
-
} | {
|
|
5800
|
-
blockId: string;
|
|
5801
|
-
streamId: string;
|
|
5802
|
-
seq: number;
|
|
5803
|
-
blockNr: number;
|
|
5804
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5805
|
-
type: "block.code.begin";
|
|
5806
|
-
sectionId: string;
|
|
5807
|
-
lang: string;
|
|
5808
|
-
path?: string | undefined;
|
|
5809
|
-
} | {
|
|
5810
|
-
blockId: string;
|
|
5811
|
-
streamId: string;
|
|
5812
|
-
seq: number;
|
|
5813
|
-
blockNr: number;
|
|
5814
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5815
|
-
lineNr: number;
|
|
5816
|
-
line: string;
|
|
5817
|
-
type: "block.code.line";
|
|
5818
|
-
sectionId: string;
|
|
5819
|
-
lang: string;
|
|
5820
|
-
path?: string | undefined;
|
|
5821
|
-
} | {
|
|
5822
|
-
blockId: string;
|
|
5823
|
-
streamId: string;
|
|
5824
|
-
seq: number;
|
|
5825
|
-
blockNr: number;
|
|
5826
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5827
|
-
stats: {
|
|
5828
|
-
lines: number;
|
|
5829
|
-
bytes: number;
|
|
5830
|
-
cnt?: number | undefined;
|
|
5831
|
-
};
|
|
5832
|
-
type: "block.code.end";
|
|
5833
|
-
sectionId: string;
|
|
5834
|
-
lang: string;
|
|
5835
|
-
path?: string | undefined;
|
|
5836
|
-
} | {
|
|
5837
|
-
blockId: string;
|
|
5838
|
-
streamId: string;
|
|
5839
|
-
seq: number;
|
|
5840
|
-
blockNr: number;
|
|
5841
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5842
|
-
type: "block.code.truncated";
|
|
5843
|
-
sectionId: string;
|
|
5844
|
-
lang: string;
|
|
5845
|
-
path?: string | undefined;
|
|
5846
|
-
reason: string;
|
|
5847
|
-
kind: string;
|
|
5848
|
-
truncatedAtLine: number;
|
|
5849
|
-
errorCount: number;
|
|
5850
|
-
} | {
|
|
5851
|
-
blockId: string;
|
|
5852
|
-
streamId: string;
|
|
5853
|
-
seq: number;
|
|
5854
|
-
blockNr: number;
|
|
5855
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5856
|
-
type: "block.toplevel.begin";
|
|
5857
|
-
sectionId: string;
|
|
5858
|
-
} | {
|
|
5859
|
-
blockId: string;
|
|
5860
|
-
streamId: string;
|
|
5861
|
-
seq: number;
|
|
5862
|
-
blockNr: number;
|
|
5863
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5864
|
-
lineNr: number;
|
|
5865
|
-
line: string;
|
|
5866
|
-
type: "block.toplevel.line";
|
|
5867
|
-
sectionId: string;
|
|
5868
|
-
} | {
|
|
5869
|
-
blockId: string;
|
|
5870
|
-
streamId: string;
|
|
5871
|
-
seq: number;
|
|
5872
|
-
blockNr: number;
|
|
5873
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
5874
|
-
stats: {
|
|
5875
|
-
lines: number;
|
|
5876
|
-
bytes: number;
|
|
5877
|
-
cnt?: number | undefined;
|
|
5878
|
-
};
|
|
5879
|
-
type: "block.toplevel.end";
|
|
5880
|
-
sectionId: string;
|
|
5881
5881
|
})[];
|
|
5882
5882
|
}[];
|
|
5883
5883
|
usage?: {
|