@vibes.diy/api-types 14.2.6 → 14.2.8
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 +58 -54
- package/app.js +4 -2
- package/app.js.map +1 -1
- package/auth.d.ts +2 -1
- package/auth.js.map +1 -1
- package/cf-env.d.ts +2 -3
- package/chat.d.ts +1896 -1393
- package/chat.js +15 -6
- package/chat.js.map +1 -1
- package/draft-chat.d.ts +1 -1
- package/draft-chat.js +1 -1
- package/draft-chat.js.map +1 -1
- package/draft-runtime.d.ts +65 -0
- package/draft-runtime.js +33 -0
- package/draft-runtime.js.map +1 -0
- package/guest-build.d.ts +82 -0
- package/guest-build.js +43 -0
- package/guest-build.js.map +1 -0
- 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.d.ts +128 -128
- package/invite.js.map +1 -1
- package/package.json +4 -4
- package/prompt.js.map +1 -1
- package/settings.d.ts +451 -399
- package/settings.js +1 -0
- package/settings.js.map +1 -1
- package/shard-policy.d.ts +3 -0
- package/shard-policy.js +3 -0
- package/shard-policy.js.map +1 -1
- package/shared-mint.d.ts +3 -0
- package/shared-mint.js +3 -0
- package/shared-mint.js.map +1 -1
- package/turn-variant.d.ts +2 -2
- package/turn-variant.js +1 -4
- package/turn-variant.js.map +1 -1
- package/vibes-diy-api.d.ts +7 -0
- package/vibes-diy-api.js.map +1 -1
- package/vibes-diy-serv-ctx.d.ts +2 -6
- package/vibes-diy-serv-ctx.js +1 -3
- package/vibes-diy-serv-ctx.js.map +1 -1
package/chat.d.ts
CHANGED
|
@@ -14,16 +14,16 @@ export declare const PromptStyle: import("arktype/internal/variants/string.ts").
|
|
|
14
14
|
export type PromptStyle = typeof PromptStyle.infer;
|
|
15
15
|
export declare function isSourceChangingMode(mode: unknown): boolean;
|
|
16
16
|
export declare function isBuildNotifyMode(mode: unknown): boolean;
|
|
17
|
-
export declare const ModelCapability: import("arktype/internal/variants/string.ts").StringType<"app" | "chat" | "codegen" | "img" | "img-edit" | "runtime", {}>;
|
|
17
|
+
export declare const ModelCapability: import("arktype/internal/variants/string.ts").StringType<"agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime", {}>;
|
|
18
18
|
export type ModelCapability = typeof ModelCapability.infer;
|
|
19
19
|
export declare const Model: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
20
20
|
id: string;
|
|
21
21
|
name: string;
|
|
22
22
|
description: string;
|
|
23
23
|
featured?: boolean | undefined;
|
|
24
|
-
preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
25
|
-
fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
26
|
-
supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
24
|
+
preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
25
|
+
fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
26
|
+
supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
27
27
|
imageInput?: boolean | undefined;
|
|
28
28
|
}, {}>;
|
|
29
29
|
export type Model = typeof Model.infer;
|
|
@@ -34,13 +34,18 @@ export declare const varietyPin: import("arktype/internal/variants/object.ts").O
|
|
|
34
34
|
export type VarietyPinWire = typeof varietyPin.infer;
|
|
35
35
|
export declare const reqOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
36
36
|
type: "vibes.diy.req-open-chat";
|
|
37
|
-
auth
|
|
37
|
+
auth?: {
|
|
38
38
|
type: "clerk" | "device-id" | "ucan";
|
|
39
39
|
token: string;
|
|
40
|
-
};
|
|
40
|
+
} | undefined;
|
|
41
|
+
guest?: {
|
|
42
|
+
type: "guest-build";
|
|
43
|
+
token: string;
|
|
44
|
+
} | undefined;
|
|
41
45
|
appSlug?: string | undefined;
|
|
42
46
|
ownerHandle?: string | undefined;
|
|
43
47
|
chatId?: string | undefined;
|
|
48
|
+
firstBuildRequestId?: string | undefined;
|
|
44
49
|
prompt?: string | undefined;
|
|
45
50
|
dryRun?: boolean | undefined;
|
|
46
51
|
allowDraft?: boolean | undefined;
|
|
@@ -65,6 +70,8 @@ export declare const resOpenChat: import("arktype/internal/variants/object.ts").
|
|
|
65
70
|
chatId: string;
|
|
66
71
|
mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
|
|
67
72
|
firstTurnFired?: boolean | undefined;
|
|
73
|
+
firstBuildReplayed?: boolean | undefined;
|
|
74
|
+
firstBuildNeedsAttachments?: boolean | undefined;
|
|
68
75
|
draft?: boolean | undefined;
|
|
69
76
|
agentFirstTurn?: boolean | undefined;
|
|
70
77
|
firstTurnFire?: "denied" | "fired" | "none" | undefined;
|
|
@@ -148,13 +155,178 @@ export declare const slotConfig: import("arktype/internal/variants/object.ts").O
|
|
|
148
155
|
compaction?: "off" | "on" | undefined;
|
|
149
156
|
}, {}>;
|
|
150
157
|
export type SlotConfig = typeof slotConfig.infer;
|
|
151
|
-
export declare const reqCreationPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
158
|
+
export declare const reqCreationPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<(In: {
|
|
152
159
|
type: "vibes.diy.req-prompt-chat-section";
|
|
153
160
|
mode: "codegen";
|
|
154
|
-
auth
|
|
161
|
+
auth?: {
|
|
155
162
|
type: "clerk" | "device-id" | "ucan";
|
|
156
163
|
token: string;
|
|
164
|
+
} | undefined;
|
|
165
|
+
guest?: {
|
|
166
|
+
type: "guest-build";
|
|
167
|
+
token: string;
|
|
168
|
+
} | undefined;
|
|
169
|
+
chatId: string;
|
|
170
|
+
outerTid: string;
|
|
171
|
+
prompt: {
|
|
172
|
+
model?: string | undefined;
|
|
173
|
+
messages: ({
|
|
174
|
+
role: "assistant" | "system" | "user";
|
|
175
|
+
content: ({
|
|
176
|
+
type: "text";
|
|
177
|
+
text: string;
|
|
178
|
+
cache_control?: {
|
|
179
|
+
type: "ephemeral";
|
|
180
|
+
ttl?: "1h" | "5m" | undefined;
|
|
181
|
+
} | undefined;
|
|
182
|
+
} | {
|
|
183
|
+
type: "image_url";
|
|
184
|
+
image_url: {
|
|
185
|
+
url: string;
|
|
186
|
+
};
|
|
187
|
+
cache_control?: {
|
|
188
|
+
type: "ephemeral";
|
|
189
|
+
ttl?: "1h" | "5m" | undefined;
|
|
190
|
+
} | undefined;
|
|
191
|
+
} | {
|
|
192
|
+
type: "vibes_file";
|
|
193
|
+
uploadId: string;
|
|
194
|
+
name: string;
|
|
195
|
+
mimeType: string;
|
|
196
|
+
kind: "image" | "text";
|
|
197
|
+
originalUploadId?: string | undefined;
|
|
198
|
+
size?: number | undefined;
|
|
199
|
+
})[];
|
|
200
|
+
} | {
|
|
201
|
+
role: "assistant";
|
|
202
|
+
content: string | null;
|
|
203
|
+
tool_calls: {
|
|
204
|
+
id: string;
|
|
205
|
+
type: "function";
|
|
206
|
+
function: {
|
|
207
|
+
name: string;
|
|
208
|
+
arguments: string;
|
|
209
|
+
};
|
|
210
|
+
}[];
|
|
211
|
+
} | {
|
|
212
|
+
role: "tool";
|
|
213
|
+
content: string;
|
|
214
|
+
tool_call_id: string;
|
|
215
|
+
})[];
|
|
216
|
+
stream?: boolean | undefined;
|
|
217
|
+
temperature?: number | undefined;
|
|
218
|
+
max_tokens?: number | undefined;
|
|
219
|
+
top_p?: number | undefined;
|
|
220
|
+
logprobs?: boolean | undefined;
|
|
221
|
+
top_logsprobs?: number | undefined;
|
|
222
|
+
frequency_penalty?: number | undefined;
|
|
223
|
+
presence_penalty?: number | undefined;
|
|
224
|
+
stop?: string | string[] | undefined;
|
|
225
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
226
|
+
modalities?: string[] | undefined;
|
|
227
|
+
tools?: {
|
|
228
|
+
type: "function";
|
|
229
|
+
function: {
|
|
230
|
+
name: string;
|
|
231
|
+
description?: string | undefined;
|
|
232
|
+
parameters: unknown;
|
|
233
|
+
};
|
|
234
|
+
}[] | undefined;
|
|
235
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
236
|
+
type: "function";
|
|
237
|
+
function: {
|
|
238
|
+
name: string;
|
|
239
|
+
};
|
|
240
|
+
} | undefined;
|
|
241
|
+
response_format?: unknown;
|
|
157
242
|
};
|
|
243
|
+
dryRun?: boolean | undefined;
|
|
244
|
+
ownerHandle?: string | undefined;
|
|
245
|
+
appSlug?: string | undefined;
|
|
246
|
+
selected?: {
|
|
247
|
+
kind: "version";
|
|
248
|
+
fsId: string;
|
|
249
|
+
} | {
|
|
250
|
+
kind: "draft";
|
|
251
|
+
files: ({
|
|
252
|
+
filename: string;
|
|
253
|
+
entryPoint?: boolean | undefined;
|
|
254
|
+
mimetype?: string | undefined;
|
|
255
|
+
type: "code-block";
|
|
256
|
+
lang: string;
|
|
257
|
+
content: string;
|
|
258
|
+
} | {
|
|
259
|
+
filename: string;
|
|
260
|
+
entryPoint?: boolean | undefined;
|
|
261
|
+
mimetype?: string | undefined;
|
|
262
|
+
type: "code-ref";
|
|
263
|
+
refId: string;
|
|
264
|
+
} | {
|
|
265
|
+
filename: string;
|
|
266
|
+
entryPoint?: boolean | undefined;
|
|
267
|
+
mimetype?: string | undefined;
|
|
268
|
+
type: "str-asset-block";
|
|
269
|
+
content: string;
|
|
270
|
+
} | {
|
|
271
|
+
filename: string;
|
|
272
|
+
entryPoint?: boolean | undefined;
|
|
273
|
+
mimetype?: string | undefined;
|
|
274
|
+
type: "str-asset-ref";
|
|
275
|
+
refId: string;
|
|
276
|
+
} | {
|
|
277
|
+
filename: string;
|
|
278
|
+
entryPoint?: boolean | undefined;
|
|
279
|
+
mimetype?: string | undefined;
|
|
280
|
+
type: "uint8-asset-block";
|
|
281
|
+
content: Uint8Array<ArrayBuffer>;
|
|
282
|
+
} | {
|
|
283
|
+
filename: string;
|
|
284
|
+
entryPoint?: boolean | undefined;
|
|
285
|
+
mimetype?: string | undefined;
|
|
286
|
+
type: "uint8-asset-ref";
|
|
287
|
+
refId: string;
|
|
288
|
+
} | {
|
|
289
|
+
filename: string;
|
|
290
|
+
entryPoint?: boolean | undefined;
|
|
291
|
+
mimetype?: string | undefined;
|
|
292
|
+
type: "cid-ref";
|
|
293
|
+
cid: string;
|
|
294
|
+
size: number;
|
|
295
|
+
})[];
|
|
296
|
+
} | undefined;
|
|
297
|
+
slots?: {
|
|
298
|
+
original?: "off" | "on" | undefined;
|
|
299
|
+
selected?: "off" | "on" | undefined;
|
|
300
|
+
last_edit?: "off" | "on" | undefined;
|
|
301
|
+
previous?: "off" | "on" | undefined;
|
|
302
|
+
compaction?: "off" | "on" | undefined;
|
|
303
|
+
} | undefined;
|
|
304
|
+
source?: "suggestion" | undefined;
|
|
305
|
+
directBuild?: boolean | undefined;
|
|
306
|
+
agentDispatched?: boolean | undefined;
|
|
307
|
+
agentWake?: boolean | undefined;
|
|
308
|
+
agentWakeBudget?: number | undefined;
|
|
309
|
+
agentWakeNote?: string | undefined;
|
|
310
|
+
nonInteractive?: boolean | undefined;
|
|
311
|
+
agentSkills?: string[] | undefined;
|
|
312
|
+
focusPath?: string | undefined;
|
|
313
|
+
apiKey?: string | undefined;
|
|
314
|
+
varietyPin?: {
|
|
315
|
+
archetype: string;
|
|
316
|
+
flourishes: string[];
|
|
317
|
+
} | undefined;
|
|
318
|
+
stylePin?: string | undefined;
|
|
319
|
+
}) => import("arktype").Out<{
|
|
320
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
321
|
+
mode: "codegen";
|
|
322
|
+
auth?: {
|
|
323
|
+
type: "clerk" | "device-id" | "ucan";
|
|
324
|
+
token: string;
|
|
325
|
+
} | undefined;
|
|
326
|
+
guest?: {
|
|
327
|
+
type: "guest-build";
|
|
328
|
+
token: string;
|
|
329
|
+
} | undefined;
|
|
158
330
|
chatId: string;
|
|
159
331
|
outerTid: string;
|
|
160
332
|
prompt: {
|
|
@@ -290,7 +462,6 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
290
462
|
previous?: "off" | "on" | undefined;
|
|
291
463
|
compaction?: "off" | "on" | undefined;
|
|
292
464
|
} | undefined;
|
|
293
|
-
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
294
465
|
source?: "suggestion" | undefined;
|
|
295
466
|
directBuild?: boolean | undefined;
|
|
296
467
|
agentDispatched?: boolean | undefined;
|
|
@@ -306,7 +477,7 @@ export declare const reqCreationPromptChatSection: import("arktype/internal/vari
|
|
|
306
477
|
flourishes: string[];
|
|
307
478
|
} | undefined;
|
|
308
479
|
stylePin?: string | undefined;
|
|
309
|
-
}
|
|
480
|
+
}>, {}>;
|
|
310
481
|
export declare function isReqCreationPromptChatSection(obj: unknown): obj is typeof reqCreationPromptChatSection.infer;
|
|
311
482
|
export declare const reqPromptApplicationChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
312
483
|
type: "vibes.diy.req-prompt-chat-section";
|
|
@@ -664,7 +835,7 @@ export type ReqPromptFSSetChatSection = typeof reqPromptFSSetChatSection.infer;
|
|
|
664
835
|
export declare function isReqPromptFSSetChatSection(obj: unknown): obj is ReqPromptFSSetChatSection;
|
|
665
836
|
export declare const reqPromptLLMChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
666
837
|
type: "vibes.diy.req-prompt-chat-section";
|
|
667
|
-
mode: "
|
|
838
|
+
mode: "runtime";
|
|
668
839
|
auth: {
|
|
669
840
|
type: "clerk" | "device-id" | "ucan";
|
|
670
841
|
token: string;
|
|
@@ -743,86 +914,10 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
743
914
|
} | undefined;
|
|
744
915
|
response_format?: unknown;
|
|
745
916
|
};
|
|
746
|
-
dryRun?: boolean | undefined;
|
|
747
|
-
ownerHandle?: string | undefined;
|
|
748
|
-
appSlug?: string | undefined;
|
|
749
|
-
selected?: {
|
|
750
|
-
kind: "version";
|
|
751
|
-
fsId: string;
|
|
752
|
-
} | {
|
|
753
|
-
kind: "draft";
|
|
754
|
-
files: ({
|
|
755
|
-
filename: string;
|
|
756
|
-
entryPoint?: boolean | undefined;
|
|
757
|
-
mimetype?: string | undefined;
|
|
758
|
-
type: "code-block";
|
|
759
|
-
lang: string;
|
|
760
|
-
content: string;
|
|
761
|
-
} | {
|
|
762
|
-
filename: string;
|
|
763
|
-
entryPoint?: boolean | undefined;
|
|
764
|
-
mimetype?: string | undefined;
|
|
765
|
-
type: "code-ref";
|
|
766
|
-
refId: string;
|
|
767
|
-
} | {
|
|
768
|
-
filename: string;
|
|
769
|
-
entryPoint?: boolean | undefined;
|
|
770
|
-
mimetype?: string | undefined;
|
|
771
|
-
type: "str-asset-block";
|
|
772
|
-
content: string;
|
|
773
|
-
} | {
|
|
774
|
-
filename: string;
|
|
775
|
-
entryPoint?: boolean | undefined;
|
|
776
|
-
mimetype?: string | undefined;
|
|
777
|
-
type: "str-asset-ref";
|
|
778
|
-
refId: string;
|
|
779
|
-
} | {
|
|
780
|
-
filename: string;
|
|
781
|
-
entryPoint?: boolean | undefined;
|
|
782
|
-
mimetype?: string | undefined;
|
|
783
|
-
type: "uint8-asset-block";
|
|
784
|
-
content: Uint8Array<ArrayBuffer>;
|
|
785
|
-
} | {
|
|
786
|
-
filename: string;
|
|
787
|
-
entryPoint?: boolean | undefined;
|
|
788
|
-
mimetype?: string | undefined;
|
|
789
|
-
type: "uint8-asset-ref";
|
|
790
|
-
refId: string;
|
|
791
|
-
} | {
|
|
792
|
-
filename: string;
|
|
793
|
-
entryPoint?: boolean | undefined;
|
|
794
|
-
mimetype?: string | undefined;
|
|
795
|
-
type: "cid-ref";
|
|
796
|
-
cid: string;
|
|
797
|
-
size: number;
|
|
798
|
-
})[];
|
|
799
|
-
} | undefined;
|
|
800
|
-
slots?: {
|
|
801
|
-
original?: "off" | "on" | undefined;
|
|
802
|
-
selected?: "off" | "on" | undefined;
|
|
803
|
-
last_edit?: "off" | "on" | undefined;
|
|
804
|
-
previous?: "off" | "on" | undefined;
|
|
805
|
-
compaction?: "off" | "on" | undefined;
|
|
806
|
-
} | undefined;
|
|
807
|
-
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
808
|
-
source?: "suggestion" | undefined;
|
|
809
|
-
directBuild?: boolean | undefined;
|
|
810
|
-
agentDispatched?: boolean | undefined;
|
|
811
|
-
agentWake?: boolean | undefined;
|
|
812
|
-
agentWakeBudget?: number | undefined;
|
|
813
|
-
agentWakeNote?: string | undefined;
|
|
814
|
-
nonInteractive?: boolean | undefined;
|
|
815
|
-
agentSkills?: string[] | undefined;
|
|
816
|
-
focusPath?: string | undefined;
|
|
817
917
|
apiKey?: string | undefined;
|
|
818
|
-
varietyPin?: {
|
|
819
|
-
archetype: string;
|
|
820
|
-
flourishes: string[];
|
|
821
|
-
} | undefined;
|
|
822
|
-
stylePin?: string | undefined;
|
|
823
918
|
} | {
|
|
824
919
|
type: "vibes.diy.req-prompt-chat-section";
|
|
825
|
-
mode: "
|
|
920
|
+
mode: "img";
|
|
826
921
|
auth: {
|
|
827
922
|
type: "clerk" | "device-id" | "ucan";
|
|
828
923
|
token: string;
|
|
@@ -901,14 +996,25 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
901
996
|
} | undefined;
|
|
902
997
|
response_format?: unknown;
|
|
903
998
|
};
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
999
|
+
inputImageBase64?: string | undefined;
|
|
1000
|
+
imgTarget?: {
|
|
1001
|
+
dbName: string;
|
|
1002
|
+
docId: string;
|
|
1003
|
+
regen?: boolean | undefined;
|
|
1004
|
+
sourceKey?: string | undefined;
|
|
1005
|
+
} | undefined;
|
|
1006
|
+
apiKey?: string | undefined;
|
|
1007
|
+
} | ((In: {
|
|
1008
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
1009
|
+
mode: "codegen";
|
|
1010
|
+
auth?: {
|
|
1011
|
+
type: "clerk" | "device-id" | "ucan";
|
|
910
1012
|
token: string;
|
|
911
|
-
};
|
|
1013
|
+
} | undefined;
|
|
1014
|
+
guest?: {
|
|
1015
|
+
type: "guest-build";
|
|
1016
|
+
token: string;
|
|
1017
|
+
} | undefined;
|
|
912
1018
|
chatId: string;
|
|
913
1019
|
outerTid: string;
|
|
914
1020
|
prompt: {
|
|
@@ -983,29 +1089,15 @@ export declare const reqPromptLLMChatSection: import("arktype/internal/variants/
|
|
|
983
1089
|
} | undefined;
|
|
984
1090
|
response_format?: unknown;
|
|
985
1091
|
};
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
} |
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
export type ReqPromptLLMChatSection = typeof reqPromptLLMChatSection.infer;
|
|
996
|
-
export declare function isReqPromptLLMChatSection(obj: unknown): obj is ReqPromptLLMChatSection;
|
|
997
|
-
export declare const reqPromptFSChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
998
|
-
type: "vibes.diy.req-prompt-chat-section";
|
|
999
|
-
mode: "fs-update";
|
|
1000
|
-
auth: {
|
|
1001
|
-
type: "clerk" | "device-id" | "ucan";
|
|
1002
|
-
token: string;
|
|
1003
|
-
};
|
|
1004
|
-
chatId: string;
|
|
1005
|
-
outerTid: string;
|
|
1006
|
-
refFsId?: string | undefined;
|
|
1007
|
-
fsUpdate: {
|
|
1008
|
-
update: ({
|
|
1092
|
+
dryRun?: boolean | undefined;
|
|
1093
|
+
ownerHandle?: string | undefined;
|
|
1094
|
+
appSlug?: string | undefined;
|
|
1095
|
+
selected?: {
|
|
1096
|
+
kind: "version";
|
|
1097
|
+
fsId: string;
|
|
1098
|
+
} | {
|
|
1099
|
+
kind: "draft";
|
|
1100
|
+
files: ({
|
|
1009
1101
|
filename: string;
|
|
1010
1102
|
entryPoint?: boolean | undefined;
|
|
1011
1103
|
mimetype?: string | undefined;
|
|
@@ -1050,81 +1142,40 @@ export declare const reqPromptFSChatSection: import("arktype/internal/variants/o
|
|
|
1050
1142
|
cid: string;
|
|
1051
1143
|
size: number;
|
|
1052
1144
|
})[];
|
|
1053
|
-
remove: {
|
|
1054
|
-
filename: string;
|
|
1055
|
-
}[];
|
|
1056
|
-
};
|
|
1057
|
-
agentFileCommit?: {
|
|
1058
|
-
changes: {
|
|
1059
|
-
path: string;
|
|
1060
|
-
original?: string | undefined;
|
|
1061
|
-
contents: string;
|
|
1062
|
-
}[];
|
|
1063
1145
|
} | undefined;
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
};
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
filename: string;
|
|
1088
|
-
entryPoint?: boolean | undefined;
|
|
1089
|
-
mimetype?: string | undefined;
|
|
1090
|
-
type: "str-asset-block";
|
|
1091
|
-
content: string;
|
|
1092
|
-
} | {
|
|
1093
|
-
filename: string;
|
|
1094
|
-
entryPoint?: boolean | undefined;
|
|
1095
|
-
mimetype?: string | undefined;
|
|
1096
|
-
type: "str-asset-ref";
|
|
1097
|
-
refId: string;
|
|
1098
|
-
} | {
|
|
1099
|
-
filename: string;
|
|
1100
|
-
entryPoint?: boolean | undefined;
|
|
1101
|
-
mimetype?: string | undefined;
|
|
1102
|
-
type: "uint8-asset-block";
|
|
1103
|
-
content: Uint8Array<ArrayBuffer>;
|
|
1104
|
-
} | {
|
|
1105
|
-
filename: string;
|
|
1106
|
-
entryPoint?: boolean | undefined;
|
|
1107
|
-
mimetype?: string | undefined;
|
|
1108
|
-
type: "uint8-asset-ref";
|
|
1109
|
-
refId: string;
|
|
1110
|
-
} | {
|
|
1111
|
-
filename: string;
|
|
1112
|
-
entryPoint?: boolean | undefined;
|
|
1113
|
-
mimetype?: string | undefined;
|
|
1114
|
-
type: "cid-ref";
|
|
1115
|
-
cid: string;
|
|
1116
|
-
size: number;
|
|
1117
|
-
})[];
|
|
1118
|
-
}, {}>;
|
|
1119
|
-
export type ReqPromptFSChatSection = typeof reqPromptFSChatSection.infer;
|
|
1120
|
-
export declare function isReqPromptFSChatSection(obj: unknown): obj is ReqPromptFSChatSection;
|
|
1121
|
-
export declare const reqPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1146
|
+
slots?: {
|
|
1147
|
+
original?: "off" | "on" | undefined;
|
|
1148
|
+
selected?: "off" | "on" | undefined;
|
|
1149
|
+
last_edit?: "off" | "on" | undefined;
|
|
1150
|
+
previous?: "off" | "on" | undefined;
|
|
1151
|
+
compaction?: "off" | "on" | undefined;
|
|
1152
|
+
} | undefined;
|
|
1153
|
+
source?: "suggestion" | undefined;
|
|
1154
|
+
directBuild?: boolean | undefined;
|
|
1155
|
+
agentDispatched?: boolean | undefined;
|
|
1156
|
+
agentWake?: boolean | undefined;
|
|
1157
|
+
agentWakeBudget?: number | undefined;
|
|
1158
|
+
agentWakeNote?: string | undefined;
|
|
1159
|
+
nonInteractive?: boolean | undefined;
|
|
1160
|
+
agentSkills?: string[] | undefined;
|
|
1161
|
+
focusPath?: string | undefined;
|
|
1162
|
+
apiKey?: string | undefined;
|
|
1163
|
+
varietyPin?: {
|
|
1164
|
+
archetype: string;
|
|
1165
|
+
flourishes: string[];
|
|
1166
|
+
} | undefined;
|
|
1167
|
+
stylePin?: string | undefined;
|
|
1168
|
+
}) => import("arktype").Out<{
|
|
1122
1169
|
type: "vibes.diy.req-prompt-chat-section";
|
|
1123
1170
|
mode: "codegen";
|
|
1124
|
-
auth
|
|
1171
|
+
auth?: {
|
|
1125
1172
|
type: "clerk" | "device-id" | "ucan";
|
|
1126
1173
|
token: string;
|
|
1127
|
-
};
|
|
1174
|
+
} | undefined;
|
|
1175
|
+
guest?: {
|
|
1176
|
+
type: "guest-build";
|
|
1177
|
+
token: string;
|
|
1178
|
+
} | undefined;
|
|
1128
1179
|
chatId: string;
|
|
1129
1180
|
outerTid: string;
|
|
1130
1181
|
prompt: {
|
|
@@ -1260,7 +1311,6 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1260
1311
|
previous?: "off" | "on" | undefined;
|
|
1261
1312
|
compaction?: "off" | "on" | undefined;
|
|
1262
1313
|
} | undefined;
|
|
1263
|
-
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
1264
1314
|
source?: "suggestion" | undefined;
|
|
1265
1315
|
directBuild?: boolean | undefined;
|
|
1266
1316
|
agentDispatched?: boolean | undefined;
|
|
@@ -1276,81 +1326,208 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1276
1326
|
flourishes: string[];
|
|
1277
1327
|
} | undefined;
|
|
1278
1328
|
stylePin?: string | undefined;
|
|
1279
|
-
}
|
|
1329
|
+
}>), {}>;
|
|
1330
|
+
export type ReqPromptLLMChatSection = typeof reqPromptLLMChatSection.infer;
|
|
1331
|
+
export declare function isReqPromptLLMChatSection(obj: unknown): obj is ReqPromptLLMChatSection;
|
|
1332
|
+
export declare const reqPromptFSChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1280
1333
|
type: "vibes.diy.req-prompt-chat-section";
|
|
1281
|
-
mode: "
|
|
1334
|
+
mode: "fs-update";
|
|
1282
1335
|
auth: {
|
|
1283
1336
|
type: "clerk" | "device-id" | "ucan";
|
|
1284
1337
|
token: string;
|
|
1285
1338
|
};
|
|
1286
1339
|
chatId: string;
|
|
1287
1340
|
outerTid: string;
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
ttl?: "1h" | "5m" | undefined;
|
|
1298
|
-
} | undefined;
|
|
1299
|
-
} | {
|
|
1300
|
-
type: "image_url";
|
|
1301
|
-
image_url: {
|
|
1302
|
-
url: string;
|
|
1303
|
-
};
|
|
1304
|
-
cache_control?: {
|
|
1305
|
-
type: "ephemeral";
|
|
1306
|
-
ttl?: "1h" | "5m" | undefined;
|
|
1307
|
-
} | undefined;
|
|
1308
|
-
} | {
|
|
1309
|
-
type: "vibes_file";
|
|
1310
|
-
uploadId: string;
|
|
1311
|
-
name: string;
|
|
1312
|
-
mimeType: string;
|
|
1313
|
-
kind: "image" | "text";
|
|
1314
|
-
originalUploadId?: string | undefined;
|
|
1315
|
-
size?: number | undefined;
|
|
1316
|
-
})[];
|
|
1341
|
+
refFsId?: string | undefined;
|
|
1342
|
+
fsUpdate: {
|
|
1343
|
+
update: ({
|
|
1344
|
+
filename: string;
|
|
1345
|
+
entryPoint?: boolean | undefined;
|
|
1346
|
+
mimetype?: string | undefined;
|
|
1347
|
+
type: "code-block";
|
|
1348
|
+
lang: string;
|
|
1349
|
+
content: string;
|
|
1317
1350
|
} | {
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
function: {
|
|
1324
|
-
name: string;
|
|
1325
|
-
arguments: string;
|
|
1326
|
-
};
|
|
1327
|
-
}[];
|
|
1351
|
+
filename: string;
|
|
1352
|
+
entryPoint?: boolean | undefined;
|
|
1353
|
+
mimetype?: string | undefined;
|
|
1354
|
+
type: "code-ref";
|
|
1355
|
+
refId: string;
|
|
1328
1356
|
} | {
|
|
1329
|
-
|
|
1357
|
+
filename: string;
|
|
1358
|
+
entryPoint?: boolean | undefined;
|
|
1359
|
+
mimetype?: string | undefined;
|
|
1360
|
+
type: "str-asset-block";
|
|
1330
1361
|
content: string;
|
|
1331
|
-
|
|
1362
|
+
} | {
|
|
1363
|
+
filename: string;
|
|
1364
|
+
entryPoint?: boolean | undefined;
|
|
1365
|
+
mimetype?: string | undefined;
|
|
1366
|
+
type: "str-asset-ref";
|
|
1367
|
+
refId: string;
|
|
1368
|
+
} | {
|
|
1369
|
+
filename: string;
|
|
1370
|
+
entryPoint?: boolean | undefined;
|
|
1371
|
+
mimetype?: string | undefined;
|
|
1372
|
+
type: "uint8-asset-block";
|
|
1373
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1374
|
+
} | {
|
|
1375
|
+
filename: string;
|
|
1376
|
+
entryPoint?: boolean | undefined;
|
|
1377
|
+
mimetype?: string | undefined;
|
|
1378
|
+
type: "uint8-asset-ref";
|
|
1379
|
+
refId: string;
|
|
1380
|
+
} | {
|
|
1381
|
+
filename: string;
|
|
1382
|
+
entryPoint?: boolean | undefined;
|
|
1383
|
+
mimetype?: string | undefined;
|
|
1384
|
+
type: "cid-ref";
|
|
1385
|
+
cid: string;
|
|
1386
|
+
size: number;
|
|
1332
1387
|
})[];
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1388
|
+
remove: {
|
|
1389
|
+
filename: string;
|
|
1390
|
+
}[];
|
|
1391
|
+
};
|
|
1392
|
+
agentFileCommit?: {
|
|
1393
|
+
changes: {
|
|
1394
|
+
path: string;
|
|
1395
|
+
original?: string | undefined;
|
|
1396
|
+
contents: string;
|
|
1397
|
+
}[];
|
|
1398
|
+
} | undefined;
|
|
1399
|
+
} | {
|
|
1400
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
1401
|
+
mode: "fs-set";
|
|
1402
|
+
auth: {
|
|
1403
|
+
type: "clerk" | "device-id" | "ucan";
|
|
1404
|
+
token: string;
|
|
1405
|
+
};
|
|
1406
|
+
chatId: string;
|
|
1407
|
+
outerTid: string;
|
|
1408
|
+
fsSet: ({
|
|
1409
|
+
filename: string;
|
|
1410
|
+
entryPoint?: boolean | undefined;
|
|
1411
|
+
mimetype?: string | undefined;
|
|
1412
|
+
type: "code-block";
|
|
1413
|
+
lang: string;
|
|
1414
|
+
content: string;
|
|
1415
|
+
} | {
|
|
1416
|
+
filename: string;
|
|
1417
|
+
entryPoint?: boolean | undefined;
|
|
1418
|
+
mimetype?: string | undefined;
|
|
1419
|
+
type: "code-ref";
|
|
1420
|
+
refId: string;
|
|
1421
|
+
} | {
|
|
1422
|
+
filename: string;
|
|
1423
|
+
entryPoint?: boolean | undefined;
|
|
1424
|
+
mimetype?: string | undefined;
|
|
1425
|
+
type: "str-asset-block";
|
|
1426
|
+
content: string;
|
|
1427
|
+
} | {
|
|
1428
|
+
filename: string;
|
|
1429
|
+
entryPoint?: boolean | undefined;
|
|
1430
|
+
mimetype?: string | undefined;
|
|
1431
|
+
type: "str-asset-ref";
|
|
1432
|
+
refId: string;
|
|
1433
|
+
} | {
|
|
1434
|
+
filename: string;
|
|
1435
|
+
entryPoint?: boolean | undefined;
|
|
1436
|
+
mimetype?: string | undefined;
|
|
1437
|
+
type: "uint8-asset-block";
|
|
1438
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1439
|
+
} | {
|
|
1440
|
+
filename: string;
|
|
1441
|
+
entryPoint?: boolean | undefined;
|
|
1442
|
+
mimetype?: string | undefined;
|
|
1443
|
+
type: "uint8-asset-ref";
|
|
1444
|
+
refId: string;
|
|
1445
|
+
} | {
|
|
1446
|
+
filename: string;
|
|
1447
|
+
entryPoint?: boolean | undefined;
|
|
1448
|
+
mimetype?: string | undefined;
|
|
1449
|
+
type: "cid-ref";
|
|
1450
|
+
cid: string;
|
|
1451
|
+
size: number;
|
|
1452
|
+
})[];
|
|
1453
|
+
}, {}>;
|
|
1454
|
+
export type ReqPromptFSChatSection = typeof reqPromptFSChatSection.infer;
|
|
1455
|
+
export declare function isReqPromptFSChatSection(obj: unknown): obj is ReqPromptFSChatSection;
|
|
1456
|
+
export declare const reqPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1457
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
1458
|
+
mode: "runtime";
|
|
1459
|
+
auth: {
|
|
1460
|
+
type: "clerk" | "device-id" | "ucan";
|
|
1461
|
+
token: string;
|
|
1462
|
+
};
|
|
1463
|
+
chatId: string;
|
|
1464
|
+
outerTid: string;
|
|
1465
|
+
prompt: {
|
|
1466
|
+
model?: string | undefined;
|
|
1467
|
+
messages: ({
|
|
1468
|
+
role: "assistant" | "system" | "user";
|
|
1469
|
+
content: ({
|
|
1470
|
+
type: "text";
|
|
1471
|
+
text: string;
|
|
1472
|
+
cache_control?: {
|
|
1473
|
+
type: "ephemeral";
|
|
1474
|
+
ttl?: "1h" | "5m" | undefined;
|
|
1475
|
+
} | undefined;
|
|
1476
|
+
} | {
|
|
1477
|
+
type: "image_url";
|
|
1478
|
+
image_url: {
|
|
1479
|
+
url: string;
|
|
1480
|
+
};
|
|
1481
|
+
cache_control?: {
|
|
1482
|
+
type: "ephemeral";
|
|
1483
|
+
ttl?: "1h" | "5m" | undefined;
|
|
1484
|
+
} | undefined;
|
|
1485
|
+
} | {
|
|
1486
|
+
type: "vibes_file";
|
|
1487
|
+
uploadId: string;
|
|
1488
|
+
name: string;
|
|
1489
|
+
mimeType: string;
|
|
1490
|
+
kind: "image" | "text";
|
|
1491
|
+
originalUploadId?: string | undefined;
|
|
1492
|
+
size?: number | undefined;
|
|
1493
|
+
})[];
|
|
1494
|
+
} | {
|
|
1495
|
+
role: "assistant";
|
|
1496
|
+
content: string | null;
|
|
1497
|
+
tool_calls: {
|
|
1498
|
+
id: string;
|
|
1499
|
+
type: "function";
|
|
1500
|
+
function: {
|
|
1501
|
+
name: string;
|
|
1502
|
+
arguments: string;
|
|
1503
|
+
};
|
|
1504
|
+
}[];
|
|
1505
|
+
} | {
|
|
1506
|
+
role: "tool";
|
|
1507
|
+
content: string;
|
|
1508
|
+
tool_call_id: string;
|
|
1509
|
+
})[];
|
|
1510
|
+
stream?: boolean | undefined;
|
|
1511
|
+
temperature?: number | undefined;
|
|
1512
|
+
max_tokens?: number | undefined;
|
|
1513
|
+
top_p?: number | undefined;
|
|
1514
|
+
logprobs?: boolean | undefined;
|
|
1515
|
+
top_logsprobs?: number | undefined;
|
|
1516
|
+
frequency_penalty?: number | undefined;
|
|
1517
|
+
presence_penalty?: number | undefined;
|
|
1518
|
+
stop?: string | string[] | undefined;
|
|
1519
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
1520
|
+
modalities?: string[] | undefined;
|
|
1521
|
+
tools?: {
|
|
1522
|
+
type: "function";
|
|
1523
|
+
function: {
|
|
1524
|
+
name: string;
|
|
1525
|
+
description?: string | undefined;
|
|
1526
|
+
parameters: unknown;
|
|
1527
|
+
};
|
|
1528
|
+
}[] | undefined;
|
|
1529
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
1530
|
+
type: "function";
|
|
1354
1531
|
function: {
|
|
1355
1532
|
name: string;
|
|
1356
1533
|
};
|
|
@@ -1568,76 +1745,20 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
1568
1745
|
cid: string;
|
|
1569
1746
|
size: number;
|
|
1570
1747
|
})[];
|
|
1571
|
-
}
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1748
|
+
} | ((In: {
|
|
1749
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
1750
|
+
mode: "codegen";
|
|
1751
|
+
auth?: {
|
|
1752
|
+
type: "clerk" | "device-id" | "ucan";
|
|
1753
|
+
token: string;
|
|
1754
|
+
} | undefined;
|
|
1755
|
+
guest?: {
|
|
1756
|
+
type: "guest-build";
|
|
1757
|
+
token: string;
|
|
1758
|
+
} | undefined;
|
|
1576
1759
|
chatId: string;
|
|
1577
|
-
ownerHandle: string;
|
|
1578
|
-
appSlug: string;
|
|
1579
|
-
promptId: string;
|
|
1580
1760
|
outerTid: string;
|
|
1581
|
-
|
|
1582
|
-
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
1583
|
-
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
1584
|
-
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
1585
|
-
type: "prompt.research";
|
|
1586
|
-
version: 1;
|
|
1587
|
-
streamId: string;
|
|
1588
|
-
chatId: string;
|
|
1589
|
-
seq: number;
|
|
1590
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1591
|
-
researchId: string;
|
|
1592
|
-
status: "complete" | "failed" | "partial";
|
|
1593
|
-
brief: string;
|
|
1594
|
-
sources: {
|
|
1595
|
-
url: string;
|
|
1596
|
-
finalUrl: string | null;
|
|
1597
|
-
contentType: string | null;
|
|
1598
|
-
httpStatus: number | null;
|
|
1599
|
-
backendFetchable: boolean;
|
|
1600
|
-
fetched: boolean;
|
|
1601
|
-
errorCode?: string | undefined;
|
|
1602
|
-
}[];
|
|
1603
|
-
api: {
|
|
1604
|
-
method: string;
|
|
1605
|
-
path: string;
|
|
1606
|
-
description: string;
|
|
1607
|
-
fields: string[];
|
|
1608
|
-
}[];
|
|
1609
|
-
excerpts: {
|
|
1610
|
-
sourceUrl: string;
|
|
1611
|
-
text: string;
|
|
1612
|
-
locator?: string | undefined;
|
|
1613
|
-
}[];
|
|
1614
|
-
seedRows: {
|
|
1615
|
-
sourceUrl: string;
|
|
1616
|
-
dbName: string;
|
|
1617
|
-
key: string;
|
|
1618
|
-
item: unknown;
|
|
1619
|
-
}[];
|
|
1620
|
-
completedAt: string;
|
|
1621
|
-
errorCode?: string | undefined;
|
|
1622
|
-
} | {
|
|
1623
|
-
streamId: string;
|
|
1624
|
-
chatId: string;
|
|
1625
|
-
seq: number;
|
|
1626
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1627
|
-
type: "prompt.block-begin";
|
|
1628
|
-
} | {
|
|
1629
|
-
streamId: string;
|
|
1630
|
-
chatId: string;
|
|
1631
|
-
seq: number;
|
|
1632
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1633
|
-
type: "prompt.block-end";
|
|
1634
|
-
} | {
|
|
1635
|
-
streamId: string;
|
|
1636
|
-
chatId: string;
|
|
1637
|
-
seq: number;
|
|
1638
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1639
|
-
type: "prompt.req";
|
|
1640
|
-
request: {
|
|
1761
|
+
prompt: {
|
|
1641
1762
|
model?: string | undefined;
|
|
1642
1763
|
messages: ({
|
|
1643
1764
|
role: "assistant" | "system" | "user";
|
|
@@ -1709,77 +1830,96 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1709
1830
|
} | undefined;
|
|
1710
1831
|
response_format?: unknown;
|
|
1711
1832
|
};
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
seq: number;
|
|
1719
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1720
|
-
type: "prompt.error";
|
|
1721
|
-
error: string;
|
|
1722
|
-
code?: "turn-lost" | undefined;
|
|
1723
|
-
lostBuildPromptIds?: string[] | undefined;
|
|
1724
|
-
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
1725
|
-
} | {
|
|
1726
|
-
streamId: string;
|
|
1727
|
-
chatId: string;
|
|
1728
|
-
seq: number;
|
|
1729
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1730
|
-
type: "prompt.fs";
|
|
1731
|
-
fileSystem: ({
|
|
1732
|
-
filename: string;
|
|
1733
|
-
entryPoint?: boolean | undefined;
|
|
1734
|
-
mimetype?: string | undefined;
|
|
1735
|
-
type: "code-block";
|
|
1736
|
-
lang: string;
|
|
1737
|
-
content: string;
|
|
1833
|
+
dryRun?: boolean | undefined;
|
|
1834
|
+
ownerHandle?: string | undefined;
|
|
1835
|
+
appSlug?: string | undefined;
|
|
1836
|
+
selected?: {
|
|
1837
|
+
kind: "version";
|
|
1838
|
+
fsId: string;
|
|
1738
1839
|
} | {
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1840
|
+
kind: "draft";
|
|
1841
|
+
files: ({
|
|
1842
|
+
filename: string;
|
|
1843
|
+
entryPoint?: boolean | undefined;
|
|
1844
|
+
mimetype?: string | undefined;
|
|
1845
|
+
type: "code-block";
|
|
1846
|
+
lang: string;
|
|
1847
|
+
content: string;
|
|
1848
|
+
} | {
|
|
1849
|
+
filename: string;
|
|
1850
|
+
entryPoint?: boolean | undefined;
|
|
1851
|
+
mimetype?: string | undefined;
|
|
1852
|
+
type: "code-ref";
|
|
1853
|
+
refId: string;
|
|
1854
|
+
} | {
|
|
1855
|
+
filename: string;
|
|
1856
|
+
entryPoint?: boolean | undefined;
|
|
1857
|
+
mimetype?: string | undefined;
|
|
1858
|
+
type: "str-asset-block";
|
|
1859
|
+
content: string;
|
|
1860
|
+
} | {
|
|
1861
|
+
filename: string;
|
|
1862
|
+
entryPoint?: boolean | undefined;
|
|
1863
|
+
mimetype?: string | undefined;
|
|
1864
|
+
type: "str-asset-ref";
|
|
1865
|
+
refId: string;
|
|
1866
|
+
} | {
|
|
1867
|
+
filename: string;
|
|
1868
|
+
entryPoint?: boolean | undefined;
|
|
1869
|
+
mimetype?: string | undefined;
|
|
1870
|
+
type: "uint8-asset-block";
|
|
1871
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1872
|
+
} | {
|
|
1873
|
+
filename: string;
|
|
1874
|
+
entryPoint?: boolean | undefined;
|
|
1875
|
+
mimetype?: string | undefined;
|
|
1876
|
+
type: "uint8-asset-ref";
|
|
1877
|
+
refId: string;
|
|
1878
|
+
} | {
|
|
1879
|
+
filename: string;
|
|
1880
|
+
entryPoint?: boolean | undefined;
|
|
1881
|
+
mimetype?: string | undefined;
|
|
1882
|
+
type: "cid-ref";
|
|
1883
|
+
cid: string;
|
|
1884
|
+
size: number;
|
|
1885
|
+
})[];
|
|
1886
|
+
} | undefined;
|
|
1887
|
+
slots?: {
|
|
1888
|
+
original?: "off" | "on" | undefined;
|
|
1889
|
+
selected?: "off" | "on" | undefined;
|
|
1890
|
+
last_edit?: "off" | "on" | undefined;
|
|
1891
|
+
previous?: "off" | "on" | undefined;
|
|
1892
|
+
compaction?: "off" | "on" | undefined;
|
|
1893
|
+
} | undefined;
|
|
1894
|
+
source?: "suggestion" | undefined;
|
|
1895
|
+
directBuild?: boolean | undefined;
|
|
1896
|
+
agentDispatched?: boolean | undefined;
|
|
1897
|
+
agentWake?: boolean | undefined;
|
|
1898
|
+
agentWakeBudget?: number | undefined;
|
|
1899
|
+
agentWakeNote?: string | undefined;
|
|
1900
|
+
nonInteractive?: boolean | undefined;
|
|
1901
|
+
agentSkills?: string[] | undefined;
|
|
1902
|
+
focusPath?: string | undefined;
|
|
1903
|
+
apiKey?: string | undefined;
|
|
1904
|
+
varietyPin?: {
|
|
1905
|
+
archetype: string;
|
|
1906
|
+
flourishes: string[];
|
|
1907
|
+
} | undefined;
|
|
1908
|
+
stylePin?: string | undefined;
|
|
1909
|
+
}) => import("arktype").Out<{
|
|
1910
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
1911
|
+
mode: "codegen";
|
|
1912
|
+
auth?: {
|
|
1913
|
+
type: "clerk" | "device-id" | "ucan";
|
|
1914
|
+
token: string;
|
|
1915
|
+
} | undefined;
|
|
1916
|
+
guest?: {
|
|
1917
|
+
type: "guest-build";
|
|
1918
|
+
token: string;
|
|
1919
|
+
} | undefined;
|
|
1778
1920
|
chatId: string;
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
type: "prompt.dry-run-payload";
|
|
1782
|
-
request: {
|
|
1921
|
+
outerTid: string;
|
|
1922
|
+
prompt: {
|
|
1783
1923
|
model?: string | undefined;
|
|
1784
1924
|
messages: ({
|
|
1785
1925
|
role: "assistant" | "system" | "user";
|
|
@@ -1851,156 +1991,107 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
1851
1991
|
} | undefined;
|
|
1852
1992
|
response_format?: unknown;
|
|
1853
1993
|
};
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
type: "prompt.model-resolved";
|
|
1860
|
-
model: string;
|
|
1861
|
-
} | {
|
|
1862
|
-
streamId: string;
|
|
1863
|
-
chatId: string;
|
|
1864
|
-
seq: number;
|
|
1865
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1866
|
-
type: "prompt.raw";
|
|
1867
|
-
text: string;
|
|
1868
|
-
} | {
|
|
1869
|
-
streamId: string;
|
|
1870
|
-
chatId: string;
|
|
1871
|
-
seq: number;
|
|
1872
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1873
|
-
type: "prompt.fs-persisted";
|
|
1874
|
-
fsRef: (In: {
|
|
1875
|
-
appSlug: string;
|
|
1876
|
-
ownerHandle?: string | undefined;
|
|
1877
|
-
userSlug?: string | undefined;
|
|
1878
|
-
mode: "dev" | "production";
|
|
1879
|
-
fsId: string;
|
|
1880
|
-
}) => import("arktype").Out<{
|
|
1881
|
-
appSlug: string;
|
|
1882
|
-
mode: "dev" | "production";
|
|
1994
|
+
dryRun?: boolean | undefined;
|
|
1995
|
+
ownerHandle?: string | undefined;
|
|
1996
|
+
appSlug?: string | undefined;
|
|
1997
|
+
selected?: {
|
|
1998
|
+
kind: "version";
|
|
1883
1999
|
fsId: string;
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
2000
|
+
} | {
|
|
2001
|
+
kind: "draft";
|
|
2002
|
+
files: ({
|
|
2003
|
+
filename: string;
|
|
2004
|
+
entryPoint?: boolean | undefined;
|
|
2005
|
+
mimetype?: string | undefined;
|
|
2006
|
+
type: "code-block";
|
|
2007
|
+
lang: string;
|
|
2008
|
+
content: string;
|
|
2009
|
+
} | {
|
|
2010
|
+
filename: string;
|
|
2011
|
+
entryPoint?: boolean | undefined;
|
|
2012
|
+
mimetype?: string | undefined;
|
|
2013
|
+
type: "code-ref";
|
|
2014
|
+
refId: string;
|
|
2015
|
+
} | {
|
|
2016
|
+
filename: string;
|
|
2017
|
+
entryPoint?: boolean | undefined;
|
|
2018
|
+
mimetype?: string | undefined;
|
|
2019
|
+
type: "str-asset-block";
|
|
2020
|
+
content: string;
|
|
2021
|
+
} | {
|
|
2022
|
+
filename: string;
|
|
2023
|
+
entryPoint?: boolean | undefined;
|
|
2024
|
+
mimetype?: string | undefined;
|
|
2025
|
+
type: "str-asset-ref";
|
|
2026
|
+
refId: string;
|
|
2027
|
+
} | {
|
|
2028
|
+
filename: string;
|
|
2029
|
+
entryPoint?: boolean | undefined;
|
|
2030
|
+
mimetype?: string | undefined;
|
|
2031
|
+
type: "uint8-asset-block";
|
|
2032
|
+
content: Uint8Array<ArrayBuffer>;
|
|
2033
|
+
} | {
|
|
2034
|
+
filename: string;
|
|
2035
|
+
entryPoint?: boolean | undefined;
|
|
2036
|
+
mimetype?: string | undefined;
|
|
2037
|
+
type: "uint8-asset-ref";
|
|
2038
|
+
refId: string;
|
|
2039
|
+
} | {
|
|
2040
|
+
filename: string;
|
|
2041
|
+
entryPoint?: boolean | undefined;
|
|
2042
|
+
mimetype?: string | undefined;
|
|
2043
|
+
type: "cid-ref";
|
|
2044
|
+
cid: string;
|
|
2045
|
+
size: number;
|
|
2046
|
+
})[];
|
|
2047
|
+
} | undefined;
|
|
2048
|
+
slots?: {
|
|
2049
|
+
original?: "off" | "on" | undefined;
|
|
2050
|
+
selected?: "off" | "on" | undefined;
|
|
2051
|
+
last_edit?: "off" | "on" | undefined;
|
|
2052
|
+
previous?: "off" | "on" | undefined;
|
|
2053
|
+
compaction?: "off" | "on" | undefined;
|
|
2054
|
+
} | undefined;
|
|
2055
|
+
source?: "suggestion" | undefined;
|
|
2056
|
+
directBuild?: boolean | undefined;
|
|
2057
|
+
agentDispatched?: boolean | undefined;
|
|
2058
|
+
agentWake?: boolean | undefined;
|
|
2059
|
+
agentWakeBudget?: number | undefined;
|
|
2060
|
+
agentWakeNote?: string | undefined;
|
|
2061
|
+
nonInteractive?: boolean | undefined;
|
|
2062
|
+
agentSkills?: string[] | undefined;
|
|
2063
|
+
focusPath?: string | undefined;
|
|
2064
|
+
apiKey?: string | undefined;
|
|
2065
|
+
varietyPin?: {
|
|
2066
|
+
archetype: string;
|
|
2067
|
+
flourishes: string[];
|
|
2068
|
+
} | undefined;
|
|
2069
|
+
stylePin?: string | undefined;
|
|
2070
|
+
}>), {}>;
|
|
2071
|
+
export type ReqPromptChatSection = typeof reqPromptChatSection.infer;
|
|
2072
|
+
export declare const resPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2073
|
+
type: "vibes.diy.res-prompt-chat-section";
|
|
2074
|
+
mode: "codegen" | "fs-set" | "fs-update" | "img" | "runtime";
|
|
1888
2075
|
chatId: string;
|
|
2076
|
+
ownerHandle: string;
|
|
2077
|
+
appSlug: string;
|
|
2078
|
+
promptId: string;
|
|
2079
|
+
outerTid: string;
|
|
2080
|
+
}, {}>;
|
|
2081
|
+
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
2082
|
+
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
2083
|
+
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2084
|
+
blockId: string;
|
|
2085
|
+
streamId: string;
|
|
1889
2086
|
seq: number;
|
|
2087
|
+
blockNr: number;
|
|
1890
2088
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1891
|
-
type: "
|
|
1892
|
-
text: string;
|
|
2089
|
+
type: "block.begin";
|
|
1893
2090
|
} | {
|
|
2091
|
+
blockId: string;
|
|
1894
2092
|
streamId: string;
|
|
1895
|
-
chatId: string;
|
|
1896
2093
|
seq: number;
|
|
1897
|
-
|
|
1898
|
-
type: "prompt.restyle";
|
|
1899
|
-
style: {
|
|
1900
|
-
palette?: {
|
|
1901
|
-
hues: [number, ({
|
|
1902
|
-
mode: "derived";
|
|
1903
|
-
} | {
|
|
1904
|
-
mode: "pinned";
|
|
1905
|
-
h: number;
|
|
1906
|
-
} | undefined)?, ({
|
|
1907
|
-
mode: "derived";
|
|
1908
|
-
} | {
|
|
1909
|
-
mode: "pinned";
|
|
1910
|
-
h: number;
|
|
1911
|
-
} | undefined)?];
|
|
1912
|
-
character: {
|
|
1913
|
-
chroma: number;
|
|
1914
|
-
contrast: number;
|
|
1915
|
-
neutralTint: number;
|
|
1916
|
-
surfaceLift: number;
|
|
1917
|
-
fillLevel: number;
|
|
1918
|
-
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
1919
|
-
paper?: number | undefined;
|
|
1920
|
-
fillLift?: number | undefined;
|
|
1921
|
-
};
|
|
1922
|
-
} | undefined;
|
|
1923
|
-
font?: string | undefined;
|
|
1924
|
-
ornament?: {
|
|
1925
|
-
pad: {
|
|
1926
|
-
x: number;
|
|
1927
|
-
y: number;
|
|
1928
|
-
};
|
|
1929
|
-
pins?: {
|
|
1930
|
-
spacing?: string | undefined;
|
|
1931
|
-
"font-size-base"?: string | undefined;
|
|
1932
|
-
radius?: string | undefined;
|
|
1933
|
-
"radius-sm"?: string | undefined;
|
|
1934
|
-
"radius-lg"?: string | undefined;
|
|
1935
|
-
"border-width"?: string | undefined;
|
|
1936
|
-
shadow?: string | undefined;
|
|
1937
|
-
"shadow-sm"?: string | undefined;
|
|
1938
|
-
"shadow-lg"?: string | undefined;
|
|
1939
|
-
"letter-spacing"?: string | undefined;
|
|
1940
|
-
"letter-spacing-wide"?: string | undefined;
|
|
1941
|
-
"font-weight"?: string | undefined;
|
|
1942
|
-
"text-transform"?: string | undefined;
|
|
1943
|
-
} | undefined;
|
|
1944
|
-
} | undefined;
|
|
1945
|
-
};
|
|
1946
|
-
description: string;
|
|
1947
|
-
} | {
|
|
1948
|
-
streamId: string;
|
|
1949
|
-
chatId: string;
|
|
1950
|
-
seq: number;
|
|
1951
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1952
|
-
type: "prompt.agent-evidence";
|
|
1953
|
-
evidence: {
|
|
1954
|
-
kind: "active" | "call" | "dispatch" | "idle" | "receipt" | "result";
|
|
1955
|
-
sessionId?: string | undefined;
|
|
1956
|
-
callId?: string | undefined;
|
|
1957
|
-
handleId?: string | undefined;
|
|
1958
|
-
buildHandleId?: string | undefined;
|
|
1959
|
-
supersedes?: string | undefined;
|
|
1960
|
-
queued?: boolean | undefined;
|
|
1961
|
-
state?: "building" | "committing" | "queued" | undefined;
|
|
1962
|
-
saved?: boolean | undefined;
|
|
1963
|
-
ok?: boolean | undefined;
|
|
1964
|
-
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;
|
|
1965
|
-
fsId?: string | undefined;
|
|
1966
|
-
name?: string | undefined;
|
|
1967
|
-
round?: number | undefined;
|
|
1968
|
-
epoch?: number | undefined;
|
|
1969
|
-
text?: string | undefined;
|
|
1970
|
-
truncated?: boolean | undefined;
|
|
1971
|
-
};
|
|
1972
|
-
} | {
|
|
1973
|
-
type: "prompt.status";
|
|
1974
|
-
streamId: string;
|
|
1975
|
-
chatId: string;
|
|
1976
|
-
seq: number;
|
|
1977
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1978
|
-
round: number;
|
|
1979
|
-
maxRounds: number;
|
|
1980
|
-
tools: {
|
|
1981
|
-
name: string;
|
|
1982
|
-
path?: string | undefined;
|
|
1983
|
-
}[];
|
|
1984
|
-
} | {
|
|
1985
|
-
streamId: string;
|
|
1986
|
-
chatId: string;
|
|
1987
|
-
seq: number;
|
|
1988
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1989
|
-
type: "prompt.notice";
|
|
1990
|
-
kind: "edits-incomplete";
|
|
1991
|
-
path?: string | undefined;
|
|
1992
|
-
} | {
|
|
1993
|
-
blockId: string;
|
|
1994
|
-
streamId: string;
|
|
1995
|
-
seq: number;
|
|
1996
|
-
blockNr: number;
|
|
1997
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1998
|
-
type: "block.begin";
|
|
1999
|
-
} | {
|
|
2000
|
-
blockId: string;
|
|
2001
|
-
streamId: string;
|
|
2002
|
-
seq: number;
|
|
2003
|
-
blockNr: number;
|
|
2094
|
+
blockNr: number;
|
|
2004
2095
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2005
2096
|
type: "block.end";
|
|
2006
2097
|
stats: {
|
|
@@ -2191,127 +2282,699 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
2191
2282
|
};
|
|
2192
2283
|
type: "block.toplevel.end";
|
|
2193
2284
|
sectionId: string;
|
|
2194
|
-
}
|
|
2195
|
-
|
|
2196
|
-
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2197
|
-
type: "vibes.diy.section-event";
|
|
2285
|
+
} | {
|
|
2286
|
+
streamId: string;
|
|
2198
2287
|
chatId: string;
|
|
2199
|
-
|
|
2200
|
-
blockSeq: number;
|
|
2288
|
+
seq: number;
|
|
2201
2289
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
}[];
|
|
2227
|
-
excerpts: {
|
|
2228
|
-
sourceUrl: string;
|
|
2229
|
-
text: string;
|
|
2230
|
-
locator?: string | undefined;
|
|
2231
|
-
}[];
|
|
2232
|
-
seedRows: {
|
|
2233
|
-
sourceUrl: string;
|
|
2234
|
-
dbName: string;
|
|
2235
|
-
key: string;
|
|
2236
|
-
item: unknown;
|
|
2237
|
-
}[];
|
|
2238
|
-
completedAt: string;
|
|
2239
|
-
errorCode?: string | undefined;
|
|
2240
|
-
} | {
|
|
2241
|
-
streamId: string;
|
|
2242
|
-
chatId: string;
|
|
2243
|
-
seq: number;
|
|
2244
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2245
|
-
type: "prompt.block-begin";
|
|
2246
|
-
} | {
|
|
2247
|
-
streamId: string;
|
|
2248
|
-
chatId: string;
|
|
2249
|
-
seq: number;
|
|
2250
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2251
|
-
type: "prompt.block-end";
|
|
2252
|
-
} | {
|
|
2253
|
-
streamId: string;
|
|
2254
|
-
chatId: string;
|
|
2255
|
-
seq: number;
|
|
2256
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2257
|
-
type: "prompt.req";
|
|
2258
|
-
request: {
|
|
2259
|
-
model?: string | undefined;
|
|
2260
|
-
messages: ({
|
|
2261
|
-
role: "assistant" | "system" | "user";
|
|
2262
|
-
content: ({
|
|
2263
|
-
type: "text";
|
|
2264
|
-
text: string;
|
|
2265
|
-
cache_control?: {
|
|
2266
|
-
type: "ephemeral";
|
|
2267
|
-
ttl?: "1h" | "5m" | undefined;
|
|
2268
|
-
} | undefined;
|
|
2269
|
-
} | {
|
|
2270
|
-
type: "image_url";
|
|
2271
|
-
image_url: {
|
|
2272
|
-
url: string;
|
|
2273
|
-
};
|
|
2274
|
-
cache_control?: {
|
|
2275
|
-
type: "ephemeral";
|
|
2276
|
-
ttl?: "1h" | "5m" | undefined;
|
|
2277
|
-
} | undefined;
|
|
2278
|
-
} | {
|
|
2279
|
-
type: "vibes_file";
|
|
2280
|
-
uploadId: string;
|
|
2281
|
-
name: string;
|
|
2282
|
-
mimeType: string;
|
|
2283
|
-
kind: "image" | "text";
|
|
2284
|
-
originalUploadId?: string | undefined;
|
|
2285
|
-
size?: number | undefined;
|
|
2286
|
-
})[];
|
|
2290
|
+
type: "prompt.block-begin";
|
|
2291
|
+
} | {
|
|
2292
|
+
streamId: string;
|
|
2293
|
+
chatId: string;
|
|
2294
|
+
seq: number;
|
|
2295
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2296
|
+
type: "prompt.block-end";
|
|
2297
|
+
} | {
|
|
2298
|
+
streamId: string;
|
|
2299
|
+
chatId: string;
|
|
2300
|
+
seq: number;
|
|
2301
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2302
|
+
type: "prompt.req";
|
|
2303
|
+
request: {
|
|
2304
|
+
model?: string | undefined;
|
|
2305
|
+
messages: ({
|
|
2306
|
+
role: "assistant" | "system" | "user";
|
|
2307
|
+
content: ({
|
|
2308
|
+
type: "text";
|
|
2309
|
+
text: string;
|
|
2310
|
+
cache_control?: {
|
|
2311
|
+
type: "ephemeral";
|
|
2312
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2313
|
+
} | undefined;
|
|
2287
2314
|
} | {
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
};
|
|
2297
|
-
}[];
|
|
2315
|
+
type: "image_url";
|
|
2316
|
+
image_url: {
|
|
2317
|
+
url: string;
|
|
2318
|
+
};
|
|
2319
|
+
cache_control?: {
|
|
2320
|
+
type: "ephemeral";
|
|
2321
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2322
|
+
} | undefined;
|
|
2298
2323
|
} | {
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2324
|
+
type: "vibes_file";
|
|
2325
|
+
uploadId: string;
|
|
2326
|
+
name: string;
|
|
2327
|
+
mimeType: string;
|
|
2328
|
+
kind: "image" | "text";
|
|
2329
|
+
originalUploadId?: string | undefined;
|
|
2330
|
+
size?: number | undefined;
|
|
2302
2331
|
})[];
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2332
|
+
} | {
|
|
2333
|
+
role: "assistant";
|
|
2334
|
+
content: string | null;
|
|
2335
|
+
tool_calls: {
|
|
2336
|
+
id: string;
|
|
2337
|
+
type: "function";
|
|
2338
|
+
function: {
|
|
2339
|
+
name: string;
|
|
2340
|
+
arguments: string;
|
|
2341
|
+
};
|
|
2342
|
+
}[];
|
|
2343
|
+
} | {
|
|
2344
|
+
role: "tool";
|
|
2345
|
+
content: string;
|
|
2346
|
+
tool_call_id: string;
|
|
2347
|
+
})[];
|
|
2348
|
+
stream?: boolean | undefined;
|
|
2349
|
+
temperature?: number | undefined;
|
|
2350
|
+
max_tokens?: number | undefined;
|
|
2351
|
+
top_p?: number | undefined;
|
|
2352
|
+
logprobs?: boolean | undefined;
|
|
2353
|
+
top_logsprobs?: number | undefined;
|
|
2354
|
+
frequency_penalty?: number | undefined;
|
|
2355
|
+
presence_penalty?: number | undefined;
|
|
2356
|
+
stop?: string | string[] | undefined;
|
|
2357
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2358
|
+
modalities?: string[] | undefined;
|
|
2359
|
+
tools?: {
|
|
2360
|
+
type: "function";
|
|
2361
|
+
function: {
|
|
2362
|
+
name: string;
|
|
2363
|
+
description?: string | undefined;
|
|
2364
|
+
parameters: unknown;
|
|
2365
|
+
};
|
|
2366
|
+
}[] | undefined;
|
|
2367
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
2368
|
+
type: "function";
|
|
2369
|
+
function: {
|
|
2370
|
+
name: string;
|
|
2371
|
+
};
|
|
2372
|
+
} | undefined;
|
|
2373
|
+
response_format?: unknown;
|
|
2374
|
+
};
|
|
2375
|
+
source?: "suggestion" | undefined;
|
|
2376
|
+
agentDispatched?: true | undefined;
|
|
2377
|
+
platformInitiated?: true | undefined;
|
|
2378
|
+
} | {
|
|
2379
|
+
streamId: string;
|
|
2380
|
+
chatId: string;
|
|
2381
|
+
seq: number;
|
|
2382
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2383
|
+
type: "prompt.error";
|
|
2384
|
+
error: string;
|
|
2385
|
+
code?: "turn-lost" | undefined;
|
|
2386
|
+
lostBuildPromptIds?: string[] | undefined;
|
|
2387
|
+
variant?: "access-wizard" | "discuss" | "upgrade-backend" | "work" | undefined;
|
|
2388
|
+
} | {
|
|
2389
|
+
streamId: string;
|
|
2390
|
+
chatId: string;
|
|
2391
|
+
seq: number;
|
|
2392
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2393
|
+
type: "prompt.fs";
|
|
2394
|
+
fileSystem: ({
|
|
2395
|
+
filename: string;
|
|
2396
|
+
entryPoint?: boolean | undefined;
|
|
2397
|
+
mimetype?: string | undefined;
|
|
2398
|
+
type: "code-block";
|
|
2399
|
+
lang: string;
|
|
2400
|
+
content: string;
|
|
2401
|
+
} | {
|
|
2402
|
+
filename: string;
|
|
2403
|
+
entryPoint?: boolean | undefined;
|
|
2404
|
+
mimetype?: string | undefined;
|
|
2405
|
+
type: "code-ref";
|
|
2406
|
+
refId: string;
|
|
2407
|
+
} | {
|
|
2408
|
+
filename: string;
|
|
2409
|
+
entryPoint?: boolean | undefined;
|
|
2410
|
+
mimetype?: string | undefined;
|
|
2411
|
+
type: "str-asset-block";
|
|
2412
|
+
content: string;
|
|
2413
|
+
} | {
|
|
2414
|
+
filename: string;
|
|
2415
|
+
entryPoint?: boolean | undefined;
|
|
2416
|
+
mimetype?: string | undefined;
|
|
2417
|
+
type: "str-asset-ref";
|
|
2418
|
+
refId: string;
|
|
2419
|
+
} | {
|
|
2420
|
+
filename: string;
|
|
2421
|
+
entryPoint?: boolean | undefined;
|
|
2422
|
+
mimetype?: string | undefined;
|
|
2423
|
+
type: "uint8-asset-block";
|
|
2424
|
+
content: Uint8Array<ArrayBuffer>;
|
|
2425
|
+
} | {
|
|
2426
|
+
filename: string;
|
|
2427
|
+
entryPoint?: boolean | undefined;
|
|
2428
|
+
mimetype?: string | undefined;
|
|
2429
|
+
type: "uint8-asset-ref";
|
|
2430
|
+
refId: string;
|
|
2431
|
+
} | {
|
|
2432
|
+
filename: string;
|
|
2433
|
+
entryPoint?: boolean | undefined;
|
|
2434
|
+
mimetype?: string | undefined;
|
|
2435
|
+
type: "cid-ref";
|
|
2436
|
+
cid: string;
|
|
2437
|
+
size: number;
|
|
2438
|
+
})[];
|
|
2439
|
+
} | {
|
|
2440
|
+
streamId: string;
|
|
2441
|
+
chatId: string;
|
|
2442
|
+
seq: number;
|
|
2443
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2444
|
+
type: "prompt.dry-run-payload";
|
|
2445
|
+
request: {
|
|
2446
|
+
model?: string | undefined;
|
|
2447
|
+
messages: ({
|
|
2448
|
+
role: "assistant" | "system" | "user";
|
|
2449
|
+
content: ({
|
|
2450
|
+
type: "text";
|
|
2451
|
+
text: string;
|
|
2452
|
+
cache_control?: {
|
|
2453
|
+
type: "ephemeral";
|
|
2454
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2455
|
+
} | undefined;
|
|
2456
|
+
} | {
|
|
2457
|
+
type: "image_url";
|
|
2458
|
+
image_url: {
|
|
2459
|
+
url: string;
|
|
2460
|
+
};
|
|
2461
|
+
cache_control?: {
|
|
2462
|
+
type: "ephemeral";
|
|
2463
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2464
|
+
} | undefined;
|
|
2465
|
+
} | {
|
|
2466
|
+
type: "vibes_file";
|
|
2467
|
+
uploadId: string;
|
|
2468
|
+
name: string;
|
|
2469
|
+
mimeType: string;
|
|
2470
|
+
kind: "image" | "text";
|
|
2471
|
+
originalUploadId?: string | undefined;
|
|
2472
|
+
size?: number | undefined;
|
|
2473
|
+
})[];
|
|
2474
|
+
} | {
|
|
2475
|
+
role: "assistant";
|
|
2476
|
+
content: string | null;
|
|
2477
|
+
tool_calls: {
|
|
2478
|
+
id: string;
|
|
2479
|
+
type: "function";
|
|
2480
|
+
function: {
|
|
2481
|
+
name: string;
|
|
2482
|
+
arguments: string;
|
|
2483
|
+
};
|
|
2484
|
+
}[];
|
|
2485
|
+
} | {
|
|
2486
|
+
role: "tool";
|
|
2487
|
+
content: string;
|
|
2488
|
+
tool_call_id: string;
|
|
2489
|
+
})[];
|
|
2490
|
+
stream?: boolean | undefined;
|
|
2491
|
+
temperature?: number | undefined;
|
|
2492
|
+
max_tokens?: number | undefined;
|
|
2493
|
+
top_p?: number | undefined;
|
|
2494
|
+
logprobs?: boolean | undefined;
|
|
2495
|
+
top_logsprobs?: number | undefined;
|
|
2496
|
+
frequency_penalty?: number | undefined;
|
|
2497
|
+
presence_penalty?: number | undefined;
|
|
2498
|
+
stop?: string | string[] | undefined;
|
|
2499
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2500
|
+
modalities?: string[] | undefined;
|
|
2501
|
+
tools?: {
|
|
2502
|
+
type: "function";
|
|
2503
|
+
function: {
|
|
2504
|
+
name: string;
|
|
2505
|
+
description?: string | undefined;
|
|
2506
|
+
parameters: unknown;
|
|
2507
|
+
};
|
|
2508
|
+
}[] | undefined;
|
|
2509
|
+
tool_choice?: "auto" | "none" | "required" | {
|
|
2510
|
+
type: "function";
|
|
2511
|
+
function: {
|
|
2512
|
+
name: string;
|
|
2513
|
+
};
|
|
2514
|
+
} | undefined;
|
|
2515
|
+
response_format?: unknown;
|
|
2516
|
+
};
|
|
2517
|
+
} | {
|
|
2518
|
+
streamId: string;
|
|
2519
|
+
chatId: string;
|
|
2520
|
+
seq: number;
|
|
2521
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2522
|
+
type: "prompt.model-resolved";
|
|
2523
|
+
model: string;
|
|
2524
|
+
} | {
|
|
2525
|
+
streamId: string;
|
|
2526
|
+
chatId: string;
|
|
2527
|
+
seq: number;
|
|
2528
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2529
|
+
type: "prompt.raw";
|
|
2530
|
+
text: string;
|
|
2531
|
+
} | {
|
|
2532
|
+
streamId: string;
|
|
2533
|
+
chatId: string;
|
|
2534
|
+
seq: number;
|
|
2535
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2536
|
+
type: "prompt.fs-persisted";
|
|
2537
|
+
fsRef: (In: {
|
|
2538
|
+
appSlug: string;
|
|
2539
|
+
ownerHandle?: string | undefined;
|
|
2540
|
+
userSlug?: string | undefined;
|
|
2541
|
+
mode: "dev" | "production";
|
|
2542
|
+
fsId: string;
|
|
2543
|
+
}) => import("arktype").Out<{
|
|
2544
|
+
appSlug: string;
|
|
2545
|
+
mode: "dev" | "production";
|
|
2546
|
+
fsId: string;
|
|
2547
|
+
ownerHandle: string;
|
|
2548
|
+
}>;
|
|
2549
|
+
} | {
|
|
2550
|
+
streamId: string;
|
|
2551
|
+
chatId: string;
|
|
2552
|
+
seq: number;
|
|
2553
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2554
|
+
type: "prompt.system-prompt";
|
|
2555
|
+
text: string;
|
|
2556
|
+
} | {
|
|
2557
|
+
streamId: string;
|
|
2558
|
+
chatId: string;
|
|
2559
|
+
seq: number;
|
|
2560
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2561
|
+
type: "prompt.restyle";
|
|
2562
|
+
style: {
|
|
2563
|
+
palette?: {
|
|
2564
|
+
hues: [number, ({
|
|
2565
|
+
mode: "derived";
|
|
2566
|
+
} | {
|
|
2567
|
+
mode: "pinned";
|
|
2568
|
+
h: number;
|
|
2569
|
+
} | undefined)?, ({
|
|
2570
|
+
mode: "derived";
|
|
2571
|
+
} | {
|
|
2572
|
+
mode: "pinned";
|
|
2573
|
+
h: number;
|
|
2574
|
+
} | undefined)?];
|
|
2575
|
+
character: {
|
|
2576
|
+
chroma: number;
|
|
2577
|
+
contrast: number;
|
|
2578
|
+
neutralTint: number;
|
|
2579
|
+
surfaceLift: number;
|
|
2580
|
+
fillLevel: number;
|
|
2581
|
+
scheme: "analogous" | "complementary" | "split-complementary" | "triadic";
|
|
2582
|
+
paper?: number | undefined;
|
|
2583
|
+
fillLift?: number | undefined;
|
|
2584
|
+
};
|
|
2585
|
+
} | undefined;
|
|
2586
|
+
font?: string | undefined;
|
|
2587
|
+
ornament?: {
|
|
2588
|
+
pad: {
|
|
2589
|
+
x: number;
|
|
2590
|
+
y: number;
|
|
2591
|
+
};
|
|
2592
|
+
pins?: {
|
|
2593
|
+
spacing?: string | undefined;
|
|
2594
|
+
"font-size-base"?: string | undefined;
|
|
2595
|
+
radius?: string | undefined;
|
|
2596
|
+
"radius-sm"?: string | undefined;
|
|
2597
|
+
"radius-lg"?: string | undefined;
|
|
2598
|
+
"border-width"?: string | undefined;
|
|
2599
|
+
shadow?: string | undefined;
|
|
2600
|
+
"shadow-sm"?: string | undefined;
|
|
2601
|
+
"shadow-lg"?: string | undefined;
|
|
2602
|
+
"letter-spacing"?: string | undefined;
|
|
2603
|
+
"letter-spacing-wide"?: string | undefined;
|
|
2604
|
+
"font-weight"?: string | undefined;
|
|
2605
|
+
"text-transform"?: string | undefined;
|
|
2606
|
+
} | undefined;
|
|
2607
|
+
} | undefined;
|
|
2608
|
+
};
|
|
2609
|
+
description: string;
|
|
2610
|
+
} | {
|
|
2611
|
+
streamId: string;
|
|
2612
|
+
chatId: string;
|
|
2613
|
+
seq: number;
|
|
2614
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2615
|
+
type: "prompt.agent-evidence";
|
|
2616
|
+
evidence: {
|
|
2617
|
+
kind: "active" | "call" | "dispatch" | "idle" | "receipt" | "result";
|
|
2618
|
+
sessionId?: string | undefined;
|
|
2619
|
+
callId?: string | undefined;
|
|
2620
|
+
handleId?: string | undefined;
|
|
2621
|
+
buildHandleId?: string | undefined;
|
|
2622
|
+
supersedes?: string | undefined;
|
|
2623
|
+
queued?: boolean | undefined;
|
|
2624
|
+
state?: "building" | "committing" | "queued" | undefined;
|
|
2625
|
+
saved?: boolean | undefined;
|
|
2626
|
+
ok?: boolean | undefined;
|
|
2627
|
+
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;
|
|
2628
|
+
fsId?: string | undefined;
|
|
2629
|
+
name?: string | undefined;
|
|
2630
|
+
round?: number | undefined;
|
|
2631
|
+
epoch?: number | undefined;
|
|
2632
|
+
text?: string | undefined;
|
|
2633
|
+
truncated?: boolean | undefined;
|
|
2634
|
+
};
|
|
2635
|
+
} | {
|
|
2636
|
+
type: "prompt.status";
|
|
2637
|
+
streamId: string;
|
|
2638
|
+
chatId: string;
|
|
2639
|
+
seq: number;
|
|
2640
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2641
|
+
round: number;
|
|
2642
|
+
maxRounds: number;
|
|
2643
|
+
tools: {
|
|
2644
|
+
name: string;
|
|
2645
|
+
path?: string | undefined;
|
|
2646
|
+
}[];
|
|
2647
|
+
} | {
|
|
2648
|
+
streamId: string;
|
|
2649
|
+
chatId: string;
|
|
2650
|
+
seq: number;
|
|
2651
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2652
|
+
type: "prompt.notice";
|
|
2653
|
+
kind: "edits-incomplete";
|
|
2654
|
+
path?: string | undefined;
|
|
2655
|
+
} | {
|
|
2656
|
+
type: "prompt.research";
|
|
2657
|
+
version: 1;
|
|
2658
|
+
streamId: string;
|
|
2659
|
+
chatId: string;
|
|
2660
|
+
seq: number;
|
|
2661
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2662
|
+
researchId: string;
|
|
2663
|
+
status: "complete" | "failed" | "partial";
|
|
2664
|
+
brief: string;
|
|
2665
|
+
sources: {
|
|
2666
|
+
url: string;
|
|
2667
|
+
finalUrl: string | null;
|
|
2668
|
+
contentType: string | null;
|
|
2669
|
+
httpStatus: number | null;
|
|
2670
|
+
backendFetchable: boolean;
|
|
2671
|
+
fetched: boolean;
|
|
2672
|
+
errorCode?: string | undefined;
|
|
2673
|
+
}[];
|
|
2674
|
+
api: {
|
|
2675
|
+
method: string;
|
|
2676
|
+
path: string;
|
|
2677
|
+
description: string;
|
|
2678
|
+
fields: string[];
|
|
2679
|
+
}[];
|
|
2680
|
+
excerpts: {
|
|
2681
|
+
sourceUrl: string;
|
|
2682
|
+
text: string;
|
|
2683
|
+
locator?: string | undefined;
|
|
2684
|
+
}[];
|
|
2685
|
+
seedRows: {
|
|
2686
|
+
sourceUrl: string;
|
|
2687
|
+
dbName: string;
|
|
2688
|
+
key: string;
|
|
2689
|
+
item: unknown;
|
|
2690
|
+
}[];
|
|
2691
|
+
completedAt: string;
|
|
2692
|
+
errorCode?: string | undefined;
|
|
2693
|
+
}, {}>;
|
|
2694
|
+
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
2695
|
+
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2696
|
+
type: "vibes.diy.section-event";
|
|
2697
|
+
chatId: string;
|
|
2698
|
+
promptId: string;
|
|
2699
|
+
blockSeq: number;
|
|
2700
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2701
|
+
blocks: ({
|
|
2702
|
+
blockId: string;
|
|
2703
|
+
streamId: string;
|
|
2704
|
+
seq: number;
|
|
2705
|
+
blockNr: number;
|
|
2706
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2707
|
+
type: "block.begin";
|
|
2708
|
+
} | {
|
|
2709
|
+
blockId: string;
|
|
2710
|
+
streamId: string;
|
|
2711
|
+
seq: number;
|
|
2712
|
+
blockNr: number;
|
|
2713
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2714
|
+
type: "block.end";
|
|
2715
|
+
stats: {
|
|
2716
|
+
toplevel: {
|
|
2717
|
+
lines: number;
|
|
2718
|
+
bytes: number;
|
|
2719
|
+
cnt?: number | undefined;
|
|
2720
|
+
};
|
|
2721
|
+
code: {
|
|
2722
|
+
lines: number;
|
|
2723
|
+
bytes: number;
|
|
2724
|
+
cnt?: number | undefined;
|
|
2725
|
+
};
|
|
2726
|
+
image: {
|
|
2727
|
+
lines: number;
|
|
2728
|
+
bytes: number;
|
|
2729
|
+
cnt?: number | undefined;
|
|
2730
|
+
};
|
|
2731
|
+
total: {
|
|
2732
|
+
lines: number;
|
|
2733
|
+
bytes: number;
|
|
2734
|
+
cnt?: number | undefined;
|
|
2735
|
+
};
|
|
2736
|
+
};
|
|
2737
|
+
usage: {
|
|
2738
|
+
given: {
|
|
2739
|
+
prompt_tokens: number;
|
|
2740
|
+
completion_tokens: number;
|
|
2741
|
+
total_tokens: number;
|
|
2742
|
+
}[];
|
|
2743
|
+
calculated: {
|
|
2744
|
+
prompt_tokens: number;
|
|
2745
|
+
completion_tokens: number;
|
|
2746
|
+
total_tokens: number;
|
|
2747
|
+
};
|
|
2748
|
+
};
|
|
2749
|
+
fsRef?: ((In: {
|
|
2750
|
+
appSlug: string;
|
|
2751
|
+
ownerHandle?: string | undefined;
|
|
2752
|
+
userSlug?: string | undefined;
|
|
2753
|
+
mode: "dev" | "production";
|
|
2754
|
+
fsId: string;
|
|
2755
|
+
}) => import("arktype").Out<{
|
|
2756
|
+
appSlug: string;
|
|
2757
|
+
mode: "dev" | "production";
|
|
2758
|
+
fsId: string;
|
|
2759
|
+
ownerHandle: string;
|
|
2760
|
+
}>) | undefined;
|
|
2761
|
+
touchedPaths?: string[] | undefined;
|
|
2762
|
+
settled?: {
|
|
2763
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
2764
|
+
entryTouched: boolean;
|
|
2765
|
+
touchedCount: number;
|
|
2766
|
+
applied: boolean;
|
|
2767
|
+
} | undefined;
|
|
2768
|
+
} | {
|
|
2769
|
+
blockId: string;
|
|
2770
|
+
streamId: string;
|
|
2771
|
+
seq: number;
|
|
2772
|
+
blockNr: number;
|
|
2773
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2774
|
+
type: "block.stats";
|
|
2775
|
+
stats: {
|
|
2776
|
+
toplevel: {
|
|
2777
|
+
lines: number;
|
|
2778
|
+
bytes: number;
|
|
2779
|
+
cnt?: number | undefined;
|
|
2780
|
+
};
|
|
2781
|
+
code: {
|
|
2782
|
+
lines: number;
|
|
2783
|
+
bytes: number;
|
|
2784
|
+
cnt?: number | undefined;
|
|
2785
|
+
};
|
|
2786
|
+
image: {
|
|
2787
|
+
lines: number;
|
|
2788
|
+
bytes: number;
|
|
2789
|
+
cnt?: number | undefined;
|
|
2790
|
+
};
|
|
2791
|
+
total: {
|
|
2792
|
+
lines: number;
|
|
2793
|
+
bytes: number;
|
|
2794
|
+
cnt?: number | undefined;
|
|
2795
|
+
};
|
|
2796
|
+
};
|
|
2797
|
+
usage: {
|
|
2798
|
+
prompt_tokens: number;
|
|
2799
|
+
completion_tokens: number;
|
|
2800
|
+
total_tokens: number;
|
|
2801
|
+
};
|
|
2802
|
+
} | {
|
|
2803
|
+
blockId: string;
|
|
2804
|
+
streamId: string;
|
|
2805
|
+
seq: number;
|
|
2806
|
+
blockNr: number;
|
|
2807
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2808
|
+
stats: {
|
|
2809
|
+
lines: number;
|
|
2810
|
+
bytes: number;
|
|
2811
|
+
cnt?: number | undefined;
|
|
2812
|
+
};
|
|
2813
|
+
type: "block.image";
|
|
2814
|
+
sectionId: string;
|
|
2815
|
+
url?: string | undefined;
|
|
2816
|
+
uploadId?: string | undefined;
|
|
2817
|
+
cid?: string | undefined;
|
|
2818
|
+
mimeType?: string | undefined;
|
|
2819
|
+
size?: number | undefined;
|
|
2820
|
+
docWritten?: boolean | undefined;
|
|
2821
|
+
} | {
|
|
2822
|
+
blockId: string;
|
|
2823
|
+
streamId: string;
|
|
2824
|
+
seq: number;
|
|
2825
|
+
blockNr: number;
|
|
2826
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2827
|
+
type: "block.code.begin";
|
|
2828
|
+
sectionId: string;
|
|
2829
|
+
lang: string;
|
|
2830
|
+
path?: string | undefined;
|
|
2831
|
+
} | {
|
|
2832
|
+
blockId: string;
|
|
2833
|
+
streamId: string;
|
|
2834
|
+
seq: number;
|
|
2835
|
+
blockNr: number;
|
|
2836
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2837
|
+
lineNr: number;
|
|
2838
|
+
line: string;
|
|
2839
|
+
type: "block.code.line";
|
|
2840
|
+
sectionId: string;
|
|
2841
|
+
lang: string;
|
|
2842
|
+
path?: string | undefined;
|
|
2843
|
+
} | {
|
|
2844
|
+
blockId: string;
|
|
2845
|
+
streamId: string;
|
|
2846
|
+
seq: number;
|
|
2847
|
+
blockNr: number;
|
|
2848
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2849
|
+
stats: {
|
|
2850
|
+
lines: number;
|
|
2851
|
+
bytes: number;
|
|
2852
|
+
cnt?: number | undefined;
|
|
2853
|
+
};
|
|
2854
|
+
type: "block.code.end";
|
|
2855
|
+
sectionId: string;
|
|
2856
|
+
lang: string;
|
|
2857
|
+
path?: string | 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.code.truncated";
|
|
2865
|
+
sectionId: string;
|
|
2866
|
+
lang: string;
|
|
2867
|
+
path?: string | undefined;
|
|
2868
|
+
reason: string;
|
|
2869
|
+
kind: string;
|
|
2870
|
+
truncatedAtLine: number;
|
|
2871
|
+
errorCount: number;
|
|
2872
|
+
} | {
|
|
2873
|
+
blockId: string;
|
|
2874
|
+
streamId: string;
|
|
2875
|
+
seq: number;
|
|
2876
|
+
blockNr: number;
|
|
2877
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2878
|
+
type: "block.toplevel.begin";
|
|
2879
|
+
sectionId: string;
|
|
2880
|
+
} | {
|
|
2881
|
+
blockId: string;
|
|
2882
|
+
streamId: string;
|
|
2883
|
+
seq: number;
|
|
2884
|
+
blockNr: number;
|
|
2885
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2886
|
+
lineNr: number;
|
|
2887
|
+
line: string;
|
|
2888
|
+
type: "block.toplevel.line";
|
|
2889
|
+
sectionId: string;
|
|
2890
|
+
} | {
|
|
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
|
+
stats: {
|
|
2897
|
+
lines: number;
|
|
2898
|
+
bytes: number;
|
|
2899
|
+
cnt?: number | undefined;
|
|
2900
|
+
};
|
|
2901
|
+
type: "block.toplevel.end";
|
|
2902
|
+
sectionId: string;
|
|
2903
|
+
} | {
|
|
2904
|
+
streamId: string;
|
|
2905
|
+
chatId: string;
|
|
2906
|
+
seq: number;
|
|
2907
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2908
|
+
type: "prompt.block-begin";
|
|
2909
|
+
} | {
|
|
2910
|
+
streamId: string;
|
|
2911
|
+
chatId: string;
|
|
2912
|
+
seq: number;
|
|
2913
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2914
|
+
type: "prompt.block-end";
|
|
2915
|
+
} | {
|
|
2916
|
+
streamId: string;
|
|
2917
|
+
chatId: string;
|
|
2918
|
+
seq: number;
|
|
2919
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2920
|
+
type: "prompt.req";
|
|
2921
|
+
request: {
|
|
2922
|
+
model?: string | undefined;
|
|
2923
|
+
messages: ({
|
|
2924
|
+
role: "assistant" | "system" | "user";
|
|
2925
|
+
content: ({
|
|
2926
|
+
type: "text";
|
|
2927
|
+
text: string;
|
|
2928
|
+
cache_control?: {
|
|
2929
|
+
type: "ephemeral";
|
|
2930
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2931
|
+
} | undefined;
|
|
2932
|
+
} | {
|
|
2933
|
+
type: "image_url";
|
|
2934
|
+
image_url: {
|
|
2935
|
+
url: string;
|
|
2936
|
+
};
|
|
2937
|
+
cache_control?: {
|
|
2938
|
+
type: "ephemeral";
|
|
2939
|
+
ttl?: "1h" | "5m" | undefined;
|
|
2940
|
+
} | undefined;
|
|
2941
|
+
} | {
|
|
2942
|
+
type: "vibes_file";
|
|
2943
|
+
uploadId: string;
|
|
2944
|
+
name: string;
|
|
2945
|
+
mimeType: string;
|
|
2946
|
+
kind: "image" | "text";
|
|
2947
|
+
originalUploadId?: string | undefined;
|
|
2948
|
+
size?: number | undefined;
|
|
2949
|
+
})[];
|
|
2950
|
+
} | {
|
|
2951
|
+
role: "assistant";
|
|
2952
|
+
content: string | null;
|
|
2953
|
+
tool_calls: {
|
|
2954
|
+
id: string;
|
|
2955
|
+
type: "function";
|
|
2956
|
+
function: {
|
|
2957
|
+
name: string;
|
|
2958
|
+
arguments: string;
|
|
2959
|
+
};
|
|
2960
|
+
}[];
|
|
2961
|
+
} | {
|
|
2962
|
+
role: "tool";
|
|
2963
|
+
content: string;
|
|
2964
|
+
tool_call_id: string;
|
|
2965
|
+
})[];
|
|
2966
|
+
stream?: boolean | undefined;
|
|
2967
|
+
temperature?: number | undefined;
|
|
2968
|
+
max_tokens?: number | undefined;
|
|
2969
|
+
top_p?: number | undefined;
|
|
2970
|
+
logprobs?: boolean | undefined;
|
|
2971
|
+
top_logsprobs?: number | undefined;
|
|
2972
|
+
frequency_penalty?: number | undefined;
|
|
2973
|
+
presence_penalty?: number | undefined;
|
|
2974
|
+
stop?: string | string[] | undefined;
|
|
2975
|
+
verbosity?: "high" | "low" | "max" | "medium" | undefined;
|
|
2976
|
+
modalities?: string[] | undefined;
|
|
2977
|
+
tools?: {
|
|
2315
2978
|
type: "function";
|
|
2316
2979
|
function: {
|
|
2317
2980
|
name: string;
|
|
@@ -2608,6 +3271,69 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
2608
3271
|
kind: "edits-incomplete";
|
|
2609
3272
|
path?: string | undefined;
|
|
2610
3273
|
} | {
|
|
3274
|
+
type: "prompt.research";
|
|
3275
|
+
version: 1;
|
|
3276
|
+
streamId: string;
|
|
3277
|
+
chatId: string;
|
|
3278
|
+
seq: number;
|
|
3279
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3280
|
+
researchId: string;
|
|
3281
|
+
status: "complete" | "failed" | "partial";
|
|
3282
|
+
brief: string;
|
|
3283
|
+
sources: {
|
|
3284
|
+
url: string;
|
|
3285
|
+
finalUrl: string | null;
|
|
3286
|
+
contentType: string | null;
|
|
3287
|
+
httpStatus: number | null;
|
|
3288
|
+
backendFetchable: boolean;
|
|
3289
|
+
fetched: boolean;
|
|
3290
|
+
errorCode?: string | undefined;
|
|
3291
|
+
}[];
|
|
3292
|
+
api: {
|
|
3293
|
+
method: string;
|
|
3294
|
+
path: string;
|
|
3295
|
+
description: string;
|
|
3296
|
+
fields: string[];
|
|
3297
|
+
}[];
|
|
3298
|
+
excerpts: {
|
|
3299
|
+
sourceUrl: string;
|
|
3300
|
+
text: string;
|
|
3301
|
+
locator?: string | undefined;
|
|
3302
|
+
}[];
|
|
3303
|
+
seedRows: {
|
|
3304
|
+
sourceUrl: string;
|
|
3305
|
+
dbName: string;
|
|
3306
|
+
key: string;
|
|
3307
|
+
item: unknown;
|
|
3308
|
+
}[];
|
|
3309
|
+
completedAt: string;
|
|
3310
|
+
errorCode?: string | undefined;
|
|
3311
|
+
})[];
|
|
3312
|
+
initiator?: "platform" | "seed" | undefined;
|
|
3313
|
+
}, {}>;
|
|
3314
|
+
export type SectionEvent = typeof sectionEvent.infer;
|
|
3315
|
+
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
3316
|
+
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3317
|
+
type: "vibes.diy.req-get-chat-response";
|
|
3318
|
+
auth?: {
|
|
3319
|
+
type: "clerk" | "device-id" | "ucan";
|
|
3320
|
+
token: string;
|
|
3321
|
+
} | undefined;
|
|
3322
|
+
guest?: {
|
|
3323
|
+
type: "guest-build";
|
|
3324
|
+
token: string;
|
|
3325
|
+
} | undefined;
|
|
3326
|
+
ownerHandle: string;
|
|
3327
|
+
appSlug: string;
|
|
3328
|
+
chatId?: string | undefined;
|
|
3329
|
+
promptId?: string | undefined;
|
|
3330
|
+
usageOnly?: boolean | undefined;
|
|
3331
|
+
}, {}>;
|
|
3332
|
+
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
3333
|
+
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
3334
|
+
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
3335
|
+
blockSeq: number;
|
|
3336
|
+
blocks: ({
|
|
2611
3337
|
blockId: string;
|
|
2612
3338
|
streamId: string;
|
|
2613
3339
|
seq: number;
|
|
@@ -2809,65 +3535,6 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
2809
3535
|
};
|
|
2810
3536
|
type: "block.toplevel.end";
|
|
2811
3537
|
sectionId: string;
|
|
2812
|
-
})[];
|
|
2813
|
-
initiator?: "platform" | "seed" | undefined;
|
|
2814
|
-
}, {}>;
|
|
2815
|
-
export type SectionEvent = typeof sectionEvent.infer;
|
|
2816
|
-
export declare function isSectionEvent(obj: unknown): obj is SectionEvent;
|
|
2817
|
-
export declare const reqGetChatResponse: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2818
|
-
type: "vibes.diy.req-get-chat-response";
|
|
2819
|
-
auth: {
|
|
2820
|
-
type: "clerk" | "device-id" | "ucan";
|
|
2821
|
-
token: string;
|
|
2822
|
-
};
|
|
2823
|
-
ownerHandle: string;
|
|
2824
|
-
appSlug: string;
|
|
2825
|
-
chatId?: string | undefined;
|
|
2826
|
-
promptId?: string | undefined;
|
|
2827
|
-
usageOnly?: boolean | undefined;
|
|
2828
|
-
}, {}>;
|
|
2829
|
-
export type ReqGetChatResponse = typeof reqGetChatResponse.infer;
|
|
2830
|
-
export declare function isReqGetChatResponse(obj: unknown): obj is ReqGetChatResponse;
|
|
2831
|
-
export declare const resChatResponseSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
2832
|
-
blockSeq: number;
|
|
2833
|
-
blocks: ({
|
|
2834
|
-
type: "prompt.research";
|
|
2835
|
-
version: 1;
|
|
2836
|
-
streamId: string;
|
|
2837
|
-
chatId: string;
|
|
2838
|
-
seq: number;
|
|
2839
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
2840
|
-
researchId: string;
|
|
2841
|
-
status: "complete" | "failed" | "partial";
|
|
2842
|
-
brief: string;
|
|
2843
|
-
sources: {
|
|
2844
|
-
url: string;
|
|
2845
|
-
finalUrl: string | null;
|
|
2846
|
-
contentType: string | null;
|
|
2847
|
-
httpStatus: number | null;
|
|
2848
|
-
backendFetchable: boolean;
|
|
2849
|
-
fetched: boolean;
|
|
2850
|
-
errorCode?: string | undefined;
|
|
2851
|
-
}[];
|
|
2852
|
-
api: {
|
|
2853
|
-
method: string;
|
|
2854
|
-
path: string;
|
|
2855
|
-
description: string;
|
|
2856
|
-
fields: string[];
|
|
2857
|
-
}[];
|
|
2858
|
-
excerpts: {
|
|
2859
|
-
sourceUrl: string;
|
|
2860
|
-
text: string;
|
|
2861
|
-
locator?: string | undefined;
|
|
2862
|
-
}[];
|
|
2863
|
-
seedRows: {
|
|
2864
|
-
sourceUrl: string;
|
|
2865
|
-
dbName: string;
|
|
2866
|
-
key: string;
|
|
2867
|
-
item: unknown;
|
|
2868
|
-
}[];
|
|
2869
|
-
completedAt: string;
|
|
2870
|
-
errorCode?: string | undefined;
|
|
2871
3538
|
} | {
|
|
2872
3539
|
streamId: string;
|
|
2873
3540
|
chatId: string;
|
|
@@ -3214,232 +3881,68 @@ export declare const resChatResponseSection: import("arktype/internal/variants/o
|
|
|
3214
3881
|
fsId?: string | undefined;
|
|
3215
3882
|
name?: string | undefined;
|
|
3216
3883
|
round?: number | undefined;
|
|
3217
|
-
epoch?: number | undefined;
|
|
3218
|
-
text?: string | undefined;
|
|
3219
|
-
truncated?: boolean | undefined;
|
|
3220
|
-
};
|
|
3221
|
-
} | {
|
|
3222
|
-
type: "prompt.status";
|
|
3223
|
-
streamId: string;
|
|
3224
|
-
chatId: string;
|
|
3225
|
-
seq: number;
|
|
3226
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3227
|
-
round: number;
|
|
3228
|
-
maxRounds: number;
|
|
3229
|
-
tools: {
|
|
3230
|
-
name: string;
|
|
3231
|
-
path?: string | undefined;
|
|
3232
|
-
}[];
|
|
3233
|
-
} | {
|
|
3234
|
-
streamId: string;
|
|
3235
|
-
chatId: string;
|
|
3236
|
-
seq: number;
|
|
3237
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3238
|
-
type: "prompt.notice";
|
|
3239
|
-
kind: "edits-incomplete";
|
|
3240
|
-
path?: string | undefined;
|
|
3241
|
-
} | {
|
|
3242
|
-
blockId: string;
|
|
3243
|
-
streamId: string;
|
|
3244
|
-
seq: number;
|
|
3245
|
-
blockNr: number;
|
|
3246
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3247
|
-
type: "block.begin";
|
|
3248
|
-
} | {
|
|
3249
|
-
blockId: string;
|
|
3250
|
-
streamId: string;
|
|
3251
|
-
seq: number;
|
|
3252
|
-
blockNr: number;
|
|
3253
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3254
|
-
type: "block.end";
|
|
3255
|
-
stats: {
|
|
3256
|
-
toplevel: {
|
|
3257
|
-
lines: number;
|
|
3258
|
-
bytes: number;
|
|
3259
|
-
cnt?: number | undefined;
|
|
3260
|
-
};
|
|
3261
|
-
code: {
|
|
3262
|
-
lines: number;
|
|
3263
|
-
bytes: number;
|
|
3264
|
-
cnt?: number | undefined;
|
|
3265
|
-
};
|
|
3266
|
-
image: {
|
|
3267
|
-
lines: number;
|
|
3268
|
-
bytes: number;
|
|
3269
|
-
cnt?: number | undefined;
|
|
3270
|
-
};
|
|
3271
|
-
total: {
|
|
3272
|
-
lines: number;
|
|
3273
|
-
bytes: number;
|
|
3274
|
-
cnt?: number | undefined;
|
|
3275
|
-
};
|
|
3276
|
-
};
|
|
3277
|
-
usage: {
|
|
3278
|
-
given: {
|
|
3279
|
-
prompt_tokens: number;
|
|
3280
|
-
completion_tokens: number;
|
|
3281
|
-
total_tokens: number;
|
|
3282
|
-
}[];
|
|
3283
|
-
calculated: {
|
|
3284
|
-
prompt_tokens: number;
|
|
3285
|
-
completion_tokens: number;
|
|
3286
|
-
total_tokens: number;
|
|
3287
|
-
};
|
|
3288
|
-
};
|
|
3289
|
-
fsRef?: ((In: {
|
|
3290
|
-
appSlug: string;
|
|
3291
|
-
ownerHandle?: string | undefined;
|
|
3292
|
-
userSlug?: string | undefined;
|
|
3293
|
-
mode: "dev" | "production";
|
|
3294
|
-
fsId: string;
|
|
3295
|
-
}) => import("arktype").Out<{
|
|
3296
|
-
appSlug: string;
|
|
3297
|
-
mode: "dev" | "production";
|
|
3298
|
-
fsId: string;
|
|
3299
|
-
ownerHandle: string;
|
|
3300
|
-
}>) | undefined;
|
|
3301
|
-
touchedPaths?: string[] | undefined;
|
|
3302
|
-
settled?: {
|
|
3303
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
3304
|
-
entryTouched: boolean;
|
|
3305
|
-
touchedCount: number;
|
|
3306
|
-
applied: boolean;
|
|
3307
|
-
} | undefined;
|
|
3308
|
-
} | {
|
|
3309
|
-
blockId: string;
|
|
3310
|
-
streamId: string;
|
|
3311
|
-
seq: number;
|
|
3312
|
-
blockNr: number;
|
|
3313
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3314
|
-
type: "block.stats";
|
|
3315
|
-
stats: {
|
|
3316
|
-
toplevel: {
|
|
3317
|
-
lines: number;
|
|
3318
|
-
bytes: number;
|
|
3319
|
-
cnt?: number | undefined;
|
|
3320
|
-
};
|
|
3321
|
-
code: {
|
|
3322
|
-
lines: number;
|
|
3323
|
-
bytes: number;
|
|
3324
|
-
cnt?: number | undefined;
|
|
3325
|
-
};
|
|
3326
|
-
image: {
|
|
3327
|
-
lines: number;
|
|
3328
|
-
bytes: number;
|
|
3329
|
-
cnt?: number | undefined;
|
|
3330
|
-
};
|
|
3331
|
-
total: {
|
|
3332
|
-
lines: number;
|
|
3333
|
-
bytes: number;
|
|
3334
|
-
cnt?: number | undefined;
|
|
3335
|
-
};
|
|
3336
|
-
};
|
|
3337
|
-
usage: {
|
|
3338
|
-
prompt_tokens: number;
|
|
3339
|
-
completion_tokens: number;
|
|
3340
|
-
total_tokens: number;
|
|
3341
|
-
};
|
|
3342
|
-
} | {
|
|
3343
|
-
blockId: string;
|
|
3344
|
-
streamId: string;
|
|
3345
|
-
seq: number;
|
|
3346
|
-
blockNr: number;
|
|
3347
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3348
|
-
stats: {
|
|
3349
|
-
lines: number;
|
|
3350
|
-
bytes: number;
|
|
3351
|
-
cnt?: number | undefined;
|
|
3352
|
-
};
|
|
3353
|
-
type: "block.image";
|
|
3354
|
-
sectionId: string;
|
|
3355
|
-
url?: string | undefined;
|
|
3356
|
-
uploadId?: string | undefined;
|
|
3357
|
-
cid?: string | undefined;
|
|
3358
|
-
mimeType?: string | undefined;
|
|
3359
|
-
size?: number | undefined;
|
|
3360
|
-
docWritten?: boolean | undefined;
|
|
3361
|
-
} | {
|
|
3362
|
-
blockId: string;
|
|
3363
|
-
streamId: string;
|
|
3364
|
-
seq: number;
|
|
3365
|
-
blockNr: number;
|
|
3366
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3367
|
-
type: "block.code.begin";
|
|
3368
|
-
sectionId: string;
|
|
3369
|
-
lang: string;
|
|
3370
|
-
path?: string | undefined;
|
|
3371
|
-
} | {
|
|
3372
|
-
blockId: string;
|
|
3373
|
-
streamId: string;
|
|
3374
|
-
seq: number;
|
|
3375
|
-
blockNr: number;
|
|
3376
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3377
|
-
lineNr: number;
|
|
3378
|
-
line: string;
|
|
3379
|
-
type: "block.code.line";
|
|
3380
|
-
sectionId: string;
|
|
3381
|
-
lang: string;
|
|
3382
|
-
path?: string | undefined;
|
|
3383
|
-
} | {
|
|
3384
|
-
blockId: string;
|
|
3385
|
-
streamId: string;
|
|
3386
|
-
seq: number;
|
|
3387
|
-
blockNr: number;
|
|
3388
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3389
|
-
stats: {
|
|
3390
|
-
lines: number;
|
|
3391
|
-
bytes: number;
|
|
3392
|
-
cnt?: number | undefined;
|
|
3884
|
+
epoch?: number | undefined;
|
|
3885
|
+
text?: string | undefined;
|
|
3886
|
+
truncated?: boolean | undefined;
|
|
3393
3887
|
};
|
|
3394
|
-
type: "block.code.end";
|
|
3395
|
-
sectionId: string;
|
|
3396
|
-
lang: string;
|
|
3397
|
-
path?: string | undefined;
|
|
3398
|
-
} | {
|
|
3399
|
-
blockId: string;
|
|
3400
|
-
streamId: string;
|
|
3401
|
-
seq: number;
|
|
3402
|
-
blockNr: number;
|
|
3403
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3404
|
-
type: "block.code.truncated";
|
|
3405
|
-
sectionId: string;
|
|
3406
|
-
lang: string;
|
|
3407
|
-
path?: string | undefined;
|
|
3408
|
-
reason: string;
|
|
3409
|
-
kind: string;
|
|
3410
|
-
truncatedAtLine: number;
|
|
3411
|
-
errorCount: number;
|
|
3412
3888
|
} | {
|
|
3413
|
-
|
|
3889
|
+
type: "prompt.status";
|
|
3414
3890
|
streamId: string;
|
|
3891
|
+
chatId: string;
|
|
3415
3892
|
seq: number;
|
|
3416
|
-
blockNr: number;
|
|
3417
3893
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3418
|
-
|
|
3419
|
-
|
|
3894
|
+
round: number;
|
|
3895
|
+
maxRounds: number;
|
|
3896
|
+
tools: {
|
|
3897
|
+
name: string;
|
|
3898
|
+
path?: string | undefined;
|
|
3899
|
+
}[];
|
|
3420
3900
|
} | {
|
|
3421
|
-
blockId: string;
|
|
3422
3901
|
streamId: string;
|
|
3902
|
+
chatId: string;
|
|
3423
3903
|
seq: number;
|
|
3424
|
-
blockNr: number;
|
|
3425
3904
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
sectionId: string;
|
|
3905
|
+
type: "prompt.notice";
|
|
3906
|
+
kind: "edits-incomplete";
|
|
3907
|
+
path?: string | undefined;
|
|
3430
3908
|
} | {
|
|
3431
|
-
|
|
3909
|
+
type: "prompt.research";
|
|
3910
|
+
version: 1;
|
|
3432
3911
|
streamId: string;
|
|
3912
|
+
chatId: string;
|
|
3433
3913
|
seq: number;
|
|
3434
|
-
blockNr: number;
|
|
3435
3914
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3436
|
-
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3915
|
+
researchId: string;
|
|
3916
|
+
status: "complete" | "failed" | "partial";
|
|
3917
|
+
brief: string;
|
|
3918
|
+
sources: {
|
|
3919
|
+
url: string;
|
|
3920
|
+
finalUrl: string | null;
|
|
3921
|
+
contentType: string | null;
|
|
3922
|
+
httpStatus: number | null;
|
|
3923
|
+
backendFetchable: boolean;
|
|
3924
|
+
fetched: boolean;
|
|
3925
|
+
errorCode?: string | undefined;
|
|
3926
|
+
}[];
|
|
3927
|
+
api: {
|
|
3928
|
+
method: string;
|
|
3929
|
+
path: string;
|
|
3930
|
+
description: string;
|
|
3931
|
+
fields: string[];
|
|
3932
|
+
}[];
|
|
3933
|
+
excerpts: {
|
|
3934
|
+
sourceUrl: string;
|
|
3935
|
+
text: string;
|
|
3936
|
+
locator?: string | undefined;
|
|
3937
|
+
}[];
|
|
3938
|
+
seedRows: {
|
|
3939
|
+
sourceUrl: string;
|
|
3940
|
+
dbName: string;
|
|
3941
|
+
key: string;
|
|
3942
|
+
item: unknown;
|
|
3943
|
+
}[];
|
|
3944
|
+
completedAt: string;
|
|
3945
|
+
errorCode?: string | undefined;
|
|
3443
3946
|
})[];
|
|
3444
3947
|
}, {}>;
|
|
3445
3948
|
export type ResChatResponseSection = typeof resChatResponseSection.infer;
|
|
@@ -3459,43 +3962,207 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3459
3962
|
sections: {
|
|
3460
3963
|
blockSeq: number;
|
|
3461
3964
|
blocks: ({
|
|
3462
|
-
|
|
3463
|
-
|
|
3965
|
+
blockId: string;
|
|
3966
|
+
streamId: string;
|
|
3967
|
+
seq: number;
|
|
3968
|
+
blockNr: number;
|
|
3969
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3970
|
+
type: "block.begin";
|
|
3971
|
+
} | {
|
|
3972
|
+
blockId: string;
|
|
3973
|
+
streamId: string;
|
|
3974
|
+
seq: number;
|
|
3975
|
+
blockNr: number;
|
|
3976
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3977
|
+
type: "block.end";
|
|
3978
|
+
stats: {
|
|
3979
|
+
toplevel: {
|
|
3980
|
+
lines: number;
|
|
3981
|
+
bytes: number;
|
|
3982
|
+
cnt?: number | undefined;
|
|
3983
|
+
};
|
|
3984
|
+
code: {
|
|
3985
|
+
lines: number;
|
|
3986
|
+
bytes: number;
|
|
3987
|
+
cnt?: number | undefined;
|
|
3988
|
+
};
|
|
3989
|
+
image: {
|
|
3990
|
+
lines: number;
|
|
3991
|
+
bytes: number;
|
|
3992
|
+
cnt?: number | undefined;
|
|
3993
|
+
};
|
|
3994
|
+
total: {
|
|
3995
|
+
lines: number;
|
|
3996
|
+
bytes: number;
|
|
3997
|
+
cnt?: number | undefined;
|
|
3998
|
+
};
|
|
3999
|
+
};
|
|
4000
|
+
usage: {
|
|
4001
|
+
given: {
|
|
4002
|
+
prompt_tokens: number;
|
|
4003
|
+
completion_tokens: number;
|
|
4004
|
+
total_tokens: number;
|
|
4005
|
+
}[];
|
|
4006
|
+
calculated: {
|
|
4007
|
+
prompt_tokens: number;
|
|
4008
|
+
completion_tokens: number;
|
|
4009
|
+
total_tokens: number;
|
|
4010
|
+
};
|
|
4011
|
+
};
|
|
4012
|
+
fsRef?: ((In: {
|
|
4013
|
+
appSlug: string;
|
|
4014
|
+
ownerHandle?: string | undefined;
|
|
4015
|
+
userSlug?: string | undefined;
|
|
4016
|
+
mode: "dev" | "production";
|
|
4017
|
+
fsId: string;
|
|
4018
|
+
}) => import("arktype").Out<{
|
|
4019
|
+
appSlug: string;
|
|
4020
|
+
mode: "dev" | "production";
|
|
4021
|
+
fsId: string;
|
|
4022
|
+
ownerHandle: string;
|
|
4023
|
+
}>) | undefined;
|
|
4024
|
+
touchedPaths?: string[] | undefined;
|
|
4025
|
+
settled?: {
|
|
4026
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4027
|
+
entryTouched: boolean;
|
|
4028
|
+
touchedCount: number;
|
|
4029
|
+
applied: boolean;
|
|
4030
|
+
} | undefined;
|
|
4031
|
+
} | {
|
|
4032
|
+
blockId: string;
|
|
4033
|
+
streamId: string;
|
|
4034
|
+
seq: number;
|
|
4035
|
+
blockNr: number;
|
|
4036
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4037
|
+
type: "block.stats";
|
|
4038
|
+
stats: {
|
|
4039
|
+
toplevel: {
|
|
4040
|
+
lines: number;
|
|
4041
|
+
bytes: number;
|
|
4042
|
+
cnt?: number | undefined;
|
|
4043
|
+
};
|
|
4044
|
+
code: {
|
|
4045
|
+
lines: number;
|
|
4046
|
+
bytes: number;
|
|
4047
|
+
cnt?: number | undefined;
|
|
4048
|
+
};
|
|
4049
|
+
image: {
|
|
4050
|
+
lines: number;
|
|
4051
|
+
bytes: number;
|
|
4052
|
+
cnt?: number | undefined;
|
|
4053
|
+
};
|
|
4054
|
+
total: {
|
|
4055
|
+
lines: number;
|
|
4056
|
+
bytes: number;
|
|
4057
|
+
cnt?: number | undefined;
|
|
4058
|
+
};
|
|
4059
|
+
};
|
|
4060
|
+
usage: {
|
|
4061
|
+
prompt_tokens: number;
|
|
4062
|
+
completion_tokens: number;
|
|
4063
|
+
total_tokens: number;
|
|
4064
|
+
};
|
|
4065
|
+
} | {
|
|
4066
|
+
blockId: string;
|
|
4067
|
+
streamId: string;
|
|
4068
|
+
seq: number;
|
|
4069
|
+
blockNr: number;
|
|
4070
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4071
|
+
stats: {
|
|
4072
|
+
lines: number;
|
|
4073
|
+
bytes: number;
|
|
4074
|
+
cnt?: number | undefined;
|
|
4075
|
+
};
|
|
4076
|
+
type: "block.image";
|
|
4077
|
+
sectionId: string;
|
|
4078
|
+
url?: string | undefined;
|
|
4079
|
+
uploadId?: string | undefined;
|
|
4080
|
+
cid?: string | undefined;
|
|
4081
|
+
mimeType?: string | undefined;
|
|
4082
|
+
size?: number | undefined;
|
|
4083
|
+
docWritten?: boolean | undefined;
|
|
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
|
+
type: "block.code.begin";
|
|
4091
|
+
sectionId: string;
|
|
4092
|
+
lang: string;
|
|
4093
|
+
path?: string | undefined;
|
|
4094
|
+
} | {
|
|
4095
|
+
blockId: string;
|
|
4096
|
+
streamId: string;
|
|
4097
|
+
seq: number;
|
|
4098
|
+
blockNr: number;
|
|
4099
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4100
|
+
lineNr: number;
|
|
4101
|
+
line: string;
|
|
4102
|
+
type: "block.code.line";
|
|
4103
|
+
sectionId: string;
|
|
4104
|
+
lang: string;
|
|
4105
|
+
path?: string | undefined;
|
|
4106
|
+
} | {
|
|
4107
|
+
blockId: string;
|
|
4108
|
+
streamId: string;
|
|
4109
|
+
seq: number;
|
|
4110
|
+
blockNr: number;
|
|
4111
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4112
|
+
stats: {
|
|
4113
|
+
lines: number;
|
|
4114
|
+
bytes: number;
|
|
4115
|
+
cnt?: number | undefined;
|
|
4116
|
+
};
|
|
4117
|
+
type: "block.code.end";
|
|
4118
|
+
sectionId: string;
|
|
4119
|
+
lang: string;
|
|
4120
|
+
path?: string | undefined;
|
|
4121
|
+
} | {
|
|
4122
|
+
blockId: string;
|
|
4123
|
+
streamId: string;
|
|
4124
|
+
seq: number;
|
|
4125
|
+
blockNr: number;
|
|
4126
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4127
|
+
type: "block.code.truncated";
|
|
4128
|
+
sectionId: string;
|
|
4129
|
+
lang: string;
|
|
4130
|
+
path?: string | undefined;
|
|
4131
|
+
reason: string;
|
|
4132
|
+
kind: string;
|
|
4133
|
+
truncatedAtLine: number;
|
|
4134
|
+
errorCount: number;
|
|
4135
|
+
} | {
|
|
4136
|
+
blockId: string;
|
|
3464
4137
|
streamId: string;
|
|
3465
|
-
chatId: string;
|
|
3466
4138
|
seq: number;
|
|
4139
|
+
blockNr: number;
|
|
3467
4140
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
}
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
dbName: string;
|
|
3494
|
-
key: string;
|
|
3495
|
-
item: unknown;
|
|
3496
|
-
}[];
|
|
3497
|
-
completedAt: string;
|
|
3498
|
-
errorCode?: string | undefined;
|
|
4141
|
+
type: "block.toplevel.begin";
|
|
4142
|
+
sectionId: string;
|
|
4143
|
+
} | {
|
|
4144
|
+
blockId: string;
|
|
4145
|
+
streamId: string;
|
|
4146
|
+
seq: number;
|
|
4147
|
+
blockNr: number;
|
|
4148
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4149
|
+
lineNr: number;
|
|
4150
|
+
line: string;
|
|
4151
|
+
type: "block.toplevel.line";
|
|
4152
|
+
sectionId: string;
|
|
4153
|
+
} | {
|
|
4154
|
+
blockId: string;
|
|
4155
|
+
streamId: string;
|
|
4156
|
+
seq: number;
|
|
4157
|
+
blockNr: number;
|
|
4158
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4159
|
+
stats: {
|
|
4160
|
+
lines: number;
|
|
4161
|
+
bytes: number;
|
|
4162
|
+
cnt?: number | undefined;
|
|
4163
|
+
};
|
|
4164
|
+
type: "block.toplevel.end";
|
|
4165
|
+
sectionId: string;
|
|
3499
4166
|
} | {
|
|
3500
4167
|
streamId: string;
|
|
3501
4168
|
chatId: string;
|
|
@@ -3861,213 +4528,49 @@ export declare const resChatResponseTurn: import("arktype/internal/variants/obje
|
|
|
3861
4528
|
} | {
|
|
3862
4529
|
streamId: string;
|
|
3863
4530
|
chatId: string;
|
|
3864
|
-
seq: number;
|
|
3865
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3866
|
-
type: "prompt.notice";
|
|
3867
|
-
kind: "edits-incomplete";
|
|
3868
|
-
path?: string | undefined;
|
|
3869
|
-
} | {
|
|
3870
|
-
blockId: string;
|
|
3871
|
-
streamId: string;
|
|
3872
|
-
seq: number;
|
|
3873
|
-
blockNr: number;
|
|
3874
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3875
|
-
type: "block.begin";
|
|
3876
|
-
} | {
|
|
3877
|
-
blockId: string;
|
|
3878
|
-
streamId: string;
|
|
3879
|
-
seq: number;
|
|
3880
|
-
blockNr: number;
|
|
3881
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3882
|
-
type: "block.end";
|
|
3883
|
-
stats: {
|
|
3884
|
-
toplevel: {
|
|
3885
|
-
lines: number;
|
|
3886
|
-
bytes: number;
|
|
3887
|
-
cnt?: number | undefined;
|
|
3888
|
-
};
|
|
3889
|
-
code: {
|
|
3890
|
-
lines: number;
|
|
3891
|
-
bytes: number;
|
|
3892
|
-
cnt?: number | undefined;
|
|
3893
|
-
};
|
|
3894
|
-
image: {
|
|
3895
|
-
lines: number;
|
|
3896
|
-
bytes: number;
|
|
3897
|
-
cnt?: number | undefined;
|
|
3898
|
-
};
|
|
3899
|
-
total: {
|
|
3900
|
-
lines: number;
|
|
3901
|
-
bytes: number;
|
|
3902
|
-
cnt?: number | undefined;
|
|
3903
|
-
};
|
|
3904
|
-
};
|
|
3905
|
-
usage: {
|
|
3906
|
-
given: {
|
|
3907
|
-
prompt_tokens: number;
|
|
3908
|
-
completion_tokens: number;
|
|
3909
|
-
total_tokens: number;
|
|
3910
|
-
}[];
|
|
3911
|
-
calculated: {
|
|
3912
|
-
prompt_tokens: number;
|
|
3913
|
-
completion_tokens: number;
|
|
3914
|
-
total_tokens: number;
|
|
3915
|
-
};
|
|
3916
|
-
};
|
|
3917
|
-
fsRef?: ((In: {
|
|
3918
|
-
appSlug: string;
|
|
3919
|
-
ownerHandle?: string | undefined;
|
|
3920
|
-
userSlug?: string | undefined;
|
|
3921
|
-
mode: "dev" | "production";
|
|
3922
|
-
fsId: string;
|
|
3923
|
-
}) => import("arktype").Out<{
|
|
3924
|
-
appSlug: string;
|
|
3925
|
-
mode: "dev" | "production";
|
|
3926
|
-
fsId: string;
|
|
3927
|
-
ownerHandle: string;
|
|
3928
|
-
}>) | undefined;
|
|
3929
|
-
touchedPaths?: string[] | undefined;
|
|
3930
|
-
settled?: {
|
|
3931
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
3932
|
-
entryTouched: boolean;
|
|
3933
|
-
touchedCount: number;
|
|
3934
|
-
applied: boolean;
|
|
3935
|
-
} | undefined;
|
|
3936
|
-
} | {
|
|
3937
|
-
blockId: string;
|
|
3938
|
-
streamId: string;
|
|
3939
|
-
seq: number;
|
|
3940
|
-
blockNr: number;
|
|
3941
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3942
|
-
type: "block.stats";
|
|
3943
|
-
stats: {
|
|
3944
|
-
toplevel: {
|
|
3945
|
-
lines: number;
|
|
3946
|
-
bytes: number;
|
|
3947
|
-
cnt?: number | undefined;
|
|
3948
|
-
};
|
|
3949
|
-
code: {
|
|
3950
|
-
lines: number;
|
|
3951
|
-
bytes: number;
|
|
3952
|
-
cnt?: number | undefined;
|
|
3953
|
-
};
|
|
3954
|
-
image: {
|
|
3955
|
-
lines: number;
|
|
3956
|
-
bytes: number;
|
|
3957
|
-
cnt?: number | undefined;
|
|
3958
|
-
};
|
|
3959
|
-
total: {
|
|
3960
|
-
lines: number;
|
|
3961
|
-
bytes: number;
|
|
3962
|
-
cnt?: number | undefined;
|
|
3963
|
-
};
|
|
3964
|
-
};
|
|
3965
|
-
usage: {
|
|
3966
|
-
prompt_tokens: number;
|
|
3967
|
-
completion_tokens: number;
|
|
3968
|
-
total_tokens: number;
|
|
3969
|
-
};
|
|
3970
|
-
} | {
|
|
3971
|
-
blockId: string;
|
|
3972
|
-
streamId: string;
|
|
3973
|
-
seq: number;
|
|
3974
|
-
blockNr: number;
|
|
3975
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3976
|
-
stats: {
|
|
3977
|
-
lines: number;
|
|
3978
|
-
bytes: number;
|
|
3979
|
-
cnt?: number | undefined;
|
|
3980
|
-
};
|
|
3981
|
-
type: "block.image";
|
|
3982
|
-
sectionId: string;
|
|
3983
|
-
url?: string | undefined;
|
|
3984
|
-
uploadId?: string | undefined;
|
|
3985
|
-
cid?: string | undefined;
|
|
3986
|
-
mimeType?: string | undefined;
|
|
3987
|
-
size?: number | undefined;
|
|
3988
|
-
docWritten?: boolean | undefined;
|
|
3989
|
-
} | {
|
|
3990
|
-
blockId: string;
|
|
3991
|
-
streamId: string;
|
|
3992
|
-
seq: number;
|
|
3993
|
-
blockNr: number;
|
|
3994
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
3995
|
-
type: "block.code.begin";
|
|
3996
|
-
sectionId: string;
|
|
3997
|
-
lang: string;
|
|
3998
|
-
path?: string | undefined;
|
|
3999
|
-
} | {
|
|
4000
|
-
blockId: string;
|
|
4001
|
-
streamId: string;
|
|
4002
|
-
seq: number;
|
|
4003
|
-
blockNr: number;
|
|
4004
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4005
|
-
lineNr: number;
|
|
4006
|
-
line: string;
|
|
4007
|
-
type: "block.code.line";
|
|
4008
|
-
sectionId: string;
|
|
4009
|
-
lang: string;
|
|
4010
|
-
path?: string | undefined;
|
|
4011
|
-
} | {
|
|
4012
|
-
blockId: string;
|
|
4013
|
-
streamId: string;
|
|
4014
|
-
seq: number;
|
|
4015
|
-
blockNr: number;
|
|
4016
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4017
|
-
stats: {
|
|
4018
|
-
lines: number;
|
|
4019
|
-
bytes: number;
|
|
4020
|
-
cnt?: number | undefined;
|
|
4021
|
-
};
|
|
4022
|
-
type: "block.code.end";
|
|
4023
|
-
sectionId: string;
|
|
4024
|
-
lang: string;
|
|
4025
|
-
path?: string | undefined;
|
|
4026
|
-
} | {
|
|
4027
|
-
blockId: string;
|
|
4028
|
-
streamId: string;
|
|
4029
|
-
seq: number;
|
|
4030
|
-
blockNr: number;
|
|
4031
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4032
|
-
type: "block.code.truncated";
|
|
4033
|
-
sectionId: string;
|
|
4034
|
-
lang: string;
|
|
4035
|
-
path?: string | undefined;
|
|
4036
|
-
reason: string;
|
|
4037
|
-
kind: string;
|
|
4038
|
-
truncatedAtLine: number;
|
|
4039
|
-
errorCount: number;
|
|
4040
|
-
} | {
|
|
4041
|
-
blockId: string;
|
|
4042
|
-
streamId: string;
|
|
4043
|
-
seq: number;
|
|
4044
|
-
blockNr: number;
|
|
4045
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4046
|
-
type: "block.toplevel.begin";
|
|
4047
|
-
sectionId: string;
|
|
4048
|
-
} | {
|
|
4049
|
-
blockId: string;
|
|
4050
|
-
streamId: string;
|
|
4051
|
-
seq: number;
|
|
4052
|
-
blockNr: number;
|
|
4053
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4054
|
-
lineNr: number;
|
|
4055
|
-
line: string;
|
|
4056
|
-
type: "block.toplevel.line";
|
|
4057
|
-
sectionId: string;
|
|
4531
|
+
seq: number;
|
|
4532
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4533
|
+
type: "prompt.notice";
|
|
4534
|
+
kind: "edits-incomplete";
|
|
4535
|
+
path?: string | undefined;
|
|
4058
4536
|
} | {
|
|
4059
|
-
|
|
4537
|
+
type: "prompt.research";
|
|
4538
|
+
version: 1;
|
|
4060
4539
|
streamId: string;
|
|
4540
|
+
chatId: string;
|
|
4061
4541
|
seq: number;
|
|
4062
|
-
blockNr: number;
|
|
4063
4542
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4064
|
-
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4543
|
+
researchId: string;
|
|
4544
|
+
status: "complete" | "failed" | "partial";
|
|
4545
|
+
brief: string;
|
|
4546
|
+
sources: {
|
|
4547
|
+
url: string;
|
|
4548
|
+
finalUrl: string | null;
|
|
4549
|
+
contentType: string | null;
|
|
4550
|
+
httpStatus: number | null;
|
|
4551
|
+
backendFetchable: boolean;
|
|
4552
|
+
fetched: boolean;
|
|
4553
|
+
errorCode?: string | undefined;
|
|
4554
|
+
}[];
|
|
4555
|
+
api: {
|
|
4556
|
+
method: string;
|
|
4557
|
+
path: string;
|
|
4558
|
+
description: string;
|
|
4559
|
+
fields: string[];
|
|
4560
|
+
}[];
|
|
4561
|
+
excerpts: {
|
|
4562
|
+
sourceUrl: string;
|
|
4563
|
+
text: string;
|
|
4564
|
+
locator?: string | undefined;
|
|
4565
|
+
}[];
|
|
4566
|
+
seedRows: {
|
|
4567
|
+
sourceUrl: string;
|
|
4568
|
+
dbName: string;
|
|
4569
|
+
key: string;
|
|
4570
|
+
item: unknown;
|
|
4571
|
+
}[];
|
|
4572
|
+
completedAt: string;
|
|
4573
|
+
errorCode?: string | undefined;
|
|
4071
4574
|
})[];
|
|
4072
4575
|
}[];
|
|
4073
4576
|
usage?: {
|
|
@@ -4092,43 +4595,207 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
4092
4595
|
sections: {
|
|
4093
4596
|
blockSeq: number;
|
|
4094
4597
|
blocks: ({
|
|
4095
|
-
|
|
4096
|
-
version: 1;
|
|
4598
|
+
blockId: string;
|
|
4097
4599
|
streamId: string;
|
|
4098
|
-
chatId: string;
|
|
4099
4600
|
seq: number;
|
|
4601
|
+
blockNr: number;
|
|
4100
4602
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
|
|
4130
|
-
|
|
4131
|
-
|
|
4603
|
+
type: "block.begin";
|
|
4604
|
+
} | {
|
|
4605
|
+
blockId: string;
|
|
4606
|
+
streamId: string;
|
|
4607
|
+
seq: number;
|
|
4608
|
+
blockNr: number;
|
|
4609
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4610
|
+
type: "block.end";
|
|
4611
|
+
stats: {
|
|
4612
|
+
toplevel: {
|
|
4613
|
+
lines: number;
|
|
4614
|
+
bytes: number;
|
|
4615
|
+
cnt?: number | undefined;
|
|
4616
|
+
};
|
|
4617
|
+
code: {
|
|
4618
|
+
lines: number;
|
|
4619
|
+
bytes: number;
|
|
4620
|
+
cnt?: number | undefined;
|
|
4621
|
+
};
|
|
4622
|
+
image: {
|
|
4623
|
+
lines: number;
|
|
4624
|
+
bytes: number;
|
|
4625
|
+
cnt?: number | undefined;
|
|
4626
|
+
};
|
|
4627
|
+
total: {
|
|
4628
|
+
lines: number;
|
|
4629
|
+
bytes: number;
|
|
4630
|
+
cnt?: number | undefined;
|
|
4631
|
+
};
|
|
4632
|
+
};
|
|
4633
|
+
usage: {
|
|
4634
|
+
given: {
|
|
4635
|
+
prompt_tokens: number;
|
|
4636
|
+
completion_tokens: number;
|
|
4637
|
+
total_tokens: number;
|
|
4638
|
+
}[];
|
|
4639
|
+
calculated: {
|
|
4640
|
+
prompt_tokens: number;
|
|
4641
|
+
completion_tokens: number;
|
|
4642
|
+
total_tokens: number;
|
|
4643
|
+
};
|
|
4644
|
+
};
|
|
4645
|
+
fsRef?: ((In: {
|
|
4646
|
+
appSlug: string;
|
|
4647
|
+
ownerHandle?: string | undefined;
|
|
4648
|
+
userSlug?: string | undefined;
|
|
4649
|
+
mode: "dev" | "production";
|
|
4650
|
+
fsId: string;
|
|
4651
|
+
}) => import("arktype").Out<{
|
|
4652
|
+
appSlug: string;
|
|
4653
|
+
mode: "dev" | "production";
|
|
4654
|
+
fsId: string;
|
|
4655
|
+
ownerHandle: string;
|
|
4656
|
+
}>) | undefined;
|
|
4657
|
+
touchedPaths?: string[] | undefined;
|
|
4658
|
+
settled?: {
|
|
4659
|
+
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4660
|
+
entryTouched: boolean;
|
|
4661
|
+
touchedCount: number;
|
|
4662
|
+
applied: boolean;
|
|
4663
|
+
} | undefined;
|
|
4664
|
+
} | {
|
|
4665
|
+
blockId: string;
|
|
4666
|
+
streamId: string;
|
|
4667
|
+
seq: number;
|
|
4668
|
+
blockNr: number;
|
|
4669
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4670
|
+
type: "block.stats";
|
|
4671
|
+
stats: {
|
|
4672
|
+
toplevel: {
|
|
4673
|
+
lines: number;
|
|
4674
|
+
bytes: number;
|
|
4675
|
+
cnt?: number | undefined;
|
|
4676
|
+
};
|
|
4677
|
+
code: {
|
|
4678
|
+
lines: number;
|
|
4679
|
+
bytes: number;
|
|
4680
|
+
cnt?: number | undefined;
|
|
4681
|
+
};
|
|
4682
|
+
image: {
|
|
4683
|
+
lines: number;
|
|
4684
|
+
bytes: number;
|
|
4685
|
+
cnt?: number | undefined;
|
|
4686
|
+
};
|
|
4687
|
+
total: {
|
|
4688
|
+
lines: number;
|
|
4689
|
+
bytes: number;
|
|
4690
|
+
cnt?: number | undefined;
|
|
4691
|
+
};
|
|
4692
|
+
};
|
|
4693
|
+
usage: {
|
|
4694
|
+
prompt_tokens: number;
|
|
4695
|
+
completion_tokens: number;
|
|
4696
|
+
total_tokens: number;
|
|
4697
|
+
};
|
|
4698
|
+
} | {
|
|
4699
|
+
blockId: string;
|
|
4700
|
+
streamId: string;
|
|
4701
|
+
seq: number;
|
|
4702
|
+
blockNr: number;
|
|
4703
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4704
|
+
stats: {
|
|
4705
|
+
lines: number;
|
|
4706
|
+
bytes: number;
|
|
4707
|
+
cnt?: number | undefined;
|
|
4708
|
+
};
|
|
4709
|
+
type: "block.image";
|
|
4710
|
+
sectionId: string;
|
|
4711
|
+
url?: string | undefined;
|
|
4712
|
+
uploadId?: string | undefined;
|
|
4713
|
+
cid?: string | undefined;
|
|
4714
|
+
mimeType?: string | undefined;
|
|
4715
|
+
size?: number | undefined;
|
|
4716
|
+
docWritten?: boolean | undefined;
|
|
4717
|
+
} | {
|
|
4718
|
+
blockId: string;
|
|
4719
|
+
streamId: string;
|
|
4720
|
+
seq: number;
|
|
4721
|
+
blockNr: number;
|
|
4722
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4723
|
+
type: "block.code.begin";
|
|
4724
|
+
sectionId: string;
|
|
4725
|
+
lang: string;
|
|
4726
|
+
path?: string | undefined;
|
|
4727
|
+
} | {
|
|
4728
|
+
blockId: string;
|
|
4729
|
+
streamId: string;
|
|
4730
|
+
seq: number;
|
|
4731
|
+
blockNr: number;
|
|
4732
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4733
|
+
lineNr: number;
|
|
4734
|
+
line: string;
|
|
4735
|
+
type: "block.code.line";
|
|
4736
|
+
sectionId: string;
|
|
4737
|
+
lang: string;
|
|
4738
|
+
path?: string | undefined;
|
|
4739
|
+
} | {
|
|
4740
|
+
blockId: string;
|
|
4741
|
+
streamId: string;
|
|
4742
|
+
seq: number;
|
|
4743
|
+
blockNr: number;
|
|
4744
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4745
|
+
stats: {
|
|
4746
|
+
lines: number;
|
|
4747
|
+
bytes: number;
|
|
4748
|
+
cnt?: number | undefined;
|
|
4749
|
+
};
|
|
4750
|
+
type: "block.code.end";
|
|
4751
|
+
sectionId: string;
|
|
4752
|
+
lang: string;
|
|
4753
|
+
path?: string | undefined;
|
|
4754
|
+
} | {
|
|
4755
|
+
blockId: string;
|
|
4756
|
+
streamId: string;
|
|
4757
|
+
seq: number;
|
|
4758
|
+
blockNr: number;
|
|
4759
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4760
|
+
type: "block.code.truncated";
|
|
4761
|
+
sectionId: string;
|
|
4762
|
+
lang: string;
|
|
4763
|
+
path?: string | undefined;
|
|
4764
|
+
reason: string;
|
|
4765
|
+
kind: string;
|
|
4766
|
+
truncatedAtLine: number;
|
|
4767
|
+
errorCount: number;
|
|
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.toplevel.begin";
|
|
4775
|
+
sectionId: string;
|
|
4776
|
+
} | {
|
|
4777
|
+
blockId: string;
|
|
4778
|
+
streamId: string;
|
|
4779
|
+
seq: number;
|
|
4780
|
+
blockNr: number;
|
|
4781
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4782
|
+
lineNr: number;
|
|
4783
|
+
line: string;
|
|
4784
|
+
type: "block.toplevel.line";
|
|
4785
|
+
sectionId: string;
|
|
4786
|
+
} | {
|
|
4787
|
+
blockId: string;
|
|
4788
|
+
streamId: string;
|
|
4789
|
+
seq: number;
|
|
4790
|
+
blockNr: number;
|
|
4791
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4792
|
+
stats: {
|
|
4793
|
+
lines: number;
|
|
4794
|
+
bytes: number;
|
|
4795
|
+
cnt?: number | undefined;
|
|
4796
|
+
};
|
|
4797
|
+
type: "block.toplevel.end";
|
|
4798
|
+
sectionId: string;
|
|
4132
4799
|
} | {
|
|
4133
4800
|
streamId: string;
|
|
4134
4801
|
chatId: string;
|
|
@@ -4500,207 +5167,43 @@ export declare const resGetChatResponse: import("arktype/internal/variants/objec
|
|
|
4500
5167
|
kind: "edits-incomplete";
|
|
4501
5168
|
path?: string | undefined;
|
|
4502
5169
|
} | {
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
seq: number;
|
|
4506
|
-
blockNr: number;
|
|
4507
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4508
|
-
type: "block.begin";
|
|
4509
|
-
} | {
|
|
4510
|
-
blockId: string;
|
|
4511
|
-
streamId: string;
|
|
4512
|
-
seq: number;
|
|
4513
|
-
blockNr: number;
|
|
4514
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4515
|
-
type: "block.end";
|
|
4516
|
-
stats: {
|
|
4517
|
-
toplevel: {
|
|
4518
|
-
lines: number;
|
|
4519
|
-
bytes: number;
|
|
4520
|
-
cnt?: number | undefined;
|
|
4521
|
-
};
|
|
4522
|
-
code: {
|
|
4523
|
-
lines: number;
|
|
4524
|
-
bytes: number;
|
|
4525
|
-
cnt?: number | undefined;
|
|
4526
|
-
};
|
|
4527
|
-
image: {
|
|
4528
|
-
lines: number;
|
|
4529
|
-
bytes: number;
|
|
4530
|
-
cnt?: number | undefined;
|
|
4531
|
-
};
|
|
4532
|
-
total: {
|
|
4533
|
-
lines: number;
|
|
4534
|
-
bytes: number;
|
|
4535
|
-
cnt?: number | undefined;
|
|
4536
|
-
};
|
|
4537
|
-
};
|
|
4538
|
-
usage: {
|
|
4539
|
-
given: {
|
|
4540
|
-
prompt_tokens: number;
|
|
4541
|
-
completion_tokens: number;
|
|
4542
|
-
total_tokens: number;
|
|
4543
|
-
}[];
|
|
4544
|
-
calculated: {
|
|
4545
|
-
prompt_tokens: number;
|
|
4546
|
-
completion_tokens: number;
|
|
4547
|
-
total_tokens: number;
|
|
4548
|
-
};
|
|
4549
|
-
};
|
|
4550
|
-
fsRef?: ((In: {
|
|
4551
|
-
appSlug: string;
|
|
4552
|
-
ownerHandle?: string | undefined;
|
|
4553
|
-
userSlug?: string | undefined;
|
|
4554
|
-
mode: "dev" | "production";
|
|
4555
|
-
fsId: string;
|
|
4556
|
-
}) => import("arktype").Out<{
|
|
4557
|
-
appSlug: string;
|
|
4558
|
-
mode: "dev" | "production";
|
|
4559
|
-
fsId: string;
|
|
4560
|
-
ownerHandle: string;
|
|
4561
|
-
}>) | undefined;
|
|
4562
|
-
touchedPaths?: string[] | undefined;
|
|
4563
|
-
settled?: {
|
|
4564
|
-
reach: "companion-only" | "entry" | "none" | "server-only";
|
|
4565
|
-
entryTouched: boolean;
|
|
4566
|
-
touchedCount: number;
|
|
4567
|
-
applied: boolean;
|
|
4568
|
-
} | undefined;
|
|
4569
|
-
} | {
|
|
4570
|
-
blockId: string;
|
|
4571
|
-
streamId: string;
|
|
4572
|
-
seq: number;
|
|
4573
|
-
blockNr: number;
|
|
4574
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4575
|
-
type: "block.stats";
|
|
4576
|
-
stats: {
|
|
4577
|
-
toplevel: {
|
|
4578
|
-
lines: number;
|
|
4579
|
-
bytes: number;
|
|
4580
|
-
cnt?: number | undefined;
|
|
4581
|
-
};
|
|
4582
|
-
code: {
|
|
4583
|
-
lines: number;
|
|
4584
|
-
bytes: number;
|
|
4585
|
-
cnt?: number | undefined;
|
|
4586
|
-
};
|
|
4587
|
-
image: {
|
|
4588
|
-
lines: number;
|
|
4589
|
-
bytes: number;
|
|
4590
|
-
cnt?: number | undefined;
|
|
4591
|
-
};
|
|
4592
|
-
total: {
|
|
4593
|
-
lines: number;
|
|
4594
|
-
bytes: number;
|
|
4595
|
-
cnt?: number | undefined;
|
|
4596
|
-
};
|
|
4597
|
-
};
|
|
4598
|
-
usage: {
|
|
4599
|
-
prompt_tokens: number;
|
|
4600
|
-
completion_tokens: number;
|
|
4601
|
-
total_tokens: number;
|
|
4602
|
-
};
|
|
4603
|
-
} | {
|
|
4604
|
-
blockId: string;
|
|
4605
|
-
streamId: string;
|
|
4606
|
-
seq: number;
|
|
4607
|
-
blockNr: number;
|
|
4608
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4609
|
-
stats: {
|
|
4610
|
-
lines: number;
|
|
4611
|
-
bytes: number;
|
|
4612
|
-
cnt?: number | undefined;
|
|
4613
|
-
};
|
|
4614
|
-
type: "block.image";
|
|
4615
|
-
sectionId: string;
|
|
4616
|
-
url?: string | undefined;
|
|
4617
|
-
uploadId?: string | undefined;
|
|
4618
|
-
cid?: string | undefined;
|
|
4619
|
-
mimeType?: string | undefined;
|
|
4620
|
-
size?: number | undefined;
|
|
4621
|
-
docWritten?: boolean | undefined;
|
|
4622
|
-
} | {
|
|
4623
|
-
blockId: string;
|
|
4624
|
-
streamId: string;
|
|
4625
|
-
seq: number;
|
|
4626
|
-
blockNr: number;
|
|
4627
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4628
|
-
type: "block.code.begin";
|
|
4629
|
-
sectionId: string;
|
|
4630
|
-
lang: string;
|
|
4631
|
-
path?: string | undefined;
|
|
4632
|
-
} | {
|
|
4633
|
-
blockId: string;
|
|
4634
|
-
streamId: string;
|
|
4635
|
-
seq: number;
|
|
4636
|
-
blockNr: number;
|
|
4637
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4638
|
-
lineNr: number;
|
|
4639
|
-
line: string;
|
|
4640
|
-
type: "block.code.line";
|
|
4641
|
-
sectionId: string;
|
|
4642
|
-
lang: string;
|
|
4643
|
-
path?: string | undefined;
|
|
4644
|
-
} | {
|
|
4645
|
-
blockId: string;
|
|
4646
|
-
streamId: string;
|
|
4647
|
-
seq: number;
|
|
4648
|
-
blockNr: number;
|
|
4649
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4650
|
-
stats: {
|
|
4651
|
-
lines: number;
|
|
4652
|
-
bytes: number;
|
|
4653
|
-
cnt?: number | undefined;
|
|
4654
|
-
};
|
|
4655
|
-
type: "block.code.end";
|
|
4656
|
-
sectionId: string;
|
|
4657
|
-
lang: string;
|
|
4658
|
-
path?: string | undefined;
|
|
4659
|
-
} | {
|
|
4660
|
-
blockId: string;
|
|
4661
|
-
streamId: string;
|
|
4662
|
-
seq: number;
|
|
4663
|
-
blockNr: number;
|
|
4664
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4665
|
-
type: "block.code.truncated";
|
|
4666
|
-
sectionId: string;
|
|
4667
|
-
lang: string;
|
|
4668
|
-
path?: string | undefined;
|
|
4669
|
-
reason: string;
|
|
4670
|
-
kind: string;
|
|
4671
|
-
truncatedAtLine: number;
|
|
4672
|
-
errorCount: number;
|
|
4673
|
-
} | {
|
|
4674
|
-
blockId: string;
|
|
4675
|
-
streamId: string;
|
|
4676
|
-
seq: number;
|
|
4677
|
-
blockNr: number;
|
|
4678
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4679
|
-
type: "block.toplevel.begin";
|
|
4680
|
-
sectionId: string;
|
|
4681
|
-
} | {
|
|
4682
|
-
blockId: string;
|
|
4683
|
-
streamId: string;
|
|
4684
|
-
seq: number;
|
|
4685
|
-
blockNr: number;
|
|
4686
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4687
|
-
lineNr: number;
|
|
4688
|
-
line: string;
|
|
4689
|
-
type: "block.toplevel.line";
|
|
4690
|
-
sectionId: string;
|
|
4691
|
-
} | {
|
|
4692
|
-
blockId: string;
|
|
5170
|
+
type: "prompt.research";
|
|
5171
|
+
version: 1;
|
|
4693
5172
|
streamId: string;
|
|
5173
|
+
chatId: string;
|
|
4694
5174
|
seq: number;
|
|
4695
|
-
blockNr: number;
|
|
4696
5175
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
4700
|
-
|
|
4701
|
-
|
|
4702
|
-
|
|
4703
|
-
|
|
5176
|
+
researchId: string;
|
|
5177
|
+
status: "complete" | "failed" | "partial";
|
|
5178
|
+
brief: string;
|
|
5179
|
+
sources: {
|
|
5180
|
+
url: string;
|
|
5181
|
+
finalUrl: string | null;
|
|
5182
|
+
contentType: string | null;
|
|
5183
|
+
httpStatus: number | null;
|
|
5184
|
+
backendFetchable: boolean;
|
|
5185
|
+
fetched: boolean;
|
|
5186
|
+
errorCode?: string | undefined;
|
|
5187
|
+
}[];
|
|
5188
|
+
api: {
|
|
5189
|
+
method: string;
|
|
5190
|
+
path: string;
|
|
5191
|
+
description: string;
|
|
5192
|
+
fields: string[];
|
|
5193
|
+
}[];
|
|
5194
|
+
excerpts: {
|
|
5195
|
+
sourceUrl: string;
|
|
5196
|
+
text: string;
|
|
5197
|
+
locator?: string | undefined;
|
|
5198
|
+
}[];
|
|
5199
|
+
seedRows: {
|
|
5200
|
+
sourceUrl: string;
|
|
5201
|
+
dbName: string;
|
|
5202
|
+
key: string;
|
|
5203
|
+
item: unknown;
|
|
5204
|
+
}[];
|
|
5205
|
+
completedAt: string;
|
|
5206
|
+
errorCode?: string | undefined;
|
|
4704
5207
|
})[];
|
|
4705
5208
|
}[];
|
|
4706
5209
|
usage?: {
|
|
@@ -4820,9 +5323,9 @@ export declare const resListModels: import("arktype/internal/variants/object.ts"
|
|
|
4820
5323
|
name: string;
|
|
4821
5324
|
description: string;
|
|
4822
5325
|
featured?: boolean | undefined;
|
|
4823
|
-
preSelected?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
4824
|
-
fallbackFor?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
4825
|
-
supports?: ("app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5326
|
+
preSelected?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5327
|
+
fallbackFor?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
5328
|
+
supports?: ("agent" | "app" | "chat" | "codegen" | "img" | "img-edit" | "runtime")[] | undefined;
|
|
4826
5329
|
imageInput?: boolean | undefined;
|
|
4827
5330
|
}[];
|
|
4828
5331
|
}, {}>;
|