@vibes.diy/api-types 2.0.0-dev-cli-i → 2.0.0-dev-cli-k
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/README.md +20 -5
- package/chat.d.ts +684 -209
- package/chat.js +55 -24
- package/chat.js.map +1 -1
- package/common.d.ts +7 -2
- package/common.js +6 -2
- package/common.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/invite.d.ts +11 -11
- package/package.json +7 -7
- package/prompt.d.ts +200 -0
- package/prompt.js +45 -0
- package/prompt.js.map +1 -0
- package/settings.d.ts +30 -30
- package/vibes-diy-api.d.ts +2 -2
package/chat.d.ts
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export type
|
|
1
|
+
export declare const PromptLLMStyle: import("arktype/internal/variants/string.ts").StringType<"app" | "chat" | "img", {}>;
|
|
2
|
+
export type PromptLLMStyle = typeof PromptLLMStyle.infer;
|
|
3
|
+
export declare function isPromptLLMStyle(obj: unknown): obj is PromptLLMStyle;
|
|
4
|
+
export declare const PromptFSStyle: import("arktype/internal/variants/string.ts").StringType<"fs-set" | "fs-update", {}>;
|
|
5
|
+
export type PromptFSStyle = typeof PromptFSStyle.infer;
|
|
6
|
+
export declare function isPromptFSStyle(obj: unknown): obj is PromptFSStyle;
|
|
7
|
+
export declare const PromptStyle: import("arktype/internal/variants/string.ts").StringType<"app" | "chat" | "fs-set" | "fs-update" | "img", {}>;
|
|
8
|
+
export type PromptStyle = typeof PromptStyle.infer;
|
|
3
9
|
export declare const Model: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
4
10
|
id: string;
|
|
5
11
|
name: string;
|
|
6
12
|
description: string;
|
|
7
13
|
featured?: boolean | undefined;
|
|
8
|
-
preSelected?: ("app" | "chat" | "img")[] | undefined;
|
|
14
|
+
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
9
15
|
}, {}>;
|
|
10
16
|
export type Model = typeof Model.infer;
|
|
11
17
|
export declare const reqOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -17,7 +23,7 @@ export declare const reqOpenChat: import("arktype/internal/variants/object.ts").
|
|
|
17
23
|
appSlug?: string | undefined;
|
|
18
24
|
userSlug?: string | undefined;
|
|
19
25
|
chatId?: string | undefined;
|
|
20
|
-
mode: "app" | "chat" | "img";
|
|
26
|
+
mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
|
|
21
27
|
}, {}>;
|
|
22
28
|
export type ReqOpenChat = typeof reqOpenChat.infer;
|
|
23
29
|
export declare const resOpenChat: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -25,7 +31,7 @@ export declare const resOpenChat: import("arktype/internal/variants/object.ts").
|
|
|
25
31
|
appSlug: string;
|
|
26
32
|
userSlug: string;
|
|
27
33
|
chatId: string;
|
|
28
|
-
mode: "app" | "chat" | "img";
|
|
34
|
+
mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
|
|
29
35
|
}, {}>;
|
|
30
36
|
export type ResOpenChat = typeof resOpenChat.infer;
|
|
31
37
|
export declare function isResOpenChat(obj: unknown): obj is ResOpenChat;
|
|
@@ -119,7 +125,158 @@ export declare const reqPromptImageChatSection: import("arktype/internal/variant
|
|
|
119
125
|
};
|
|
120
126
|
}, {}>;
|
|
121
127
|
export declare function isReqPromptImageChatSection(obj: unknown): obj is typeof reqPromptImageChatSection.infer;
|
|
122
|
-
export declare const
|
|
128
|
+
export declare const FSUpdate: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
129
|
+
update: ({
|
|
130
|
+
filename: string;
|
|
131
|
+
entryPoint?: boolean | undefined;
|
|
132
|
+
mimetype?: string | undefined;
|
|
133
|
+
type: "code-block";
|
|
134
|
+
lang: string;
|
|
135
|
+
content: string;
|
|
136
|
+
} | {
|
|
137
|
+
filename: string;
|
|
138
|
+
entryPoint?: boolean | undefined;
|
|
139
|
+
mimetype?: string | undefined;
|
|
140
|
+
type: "code-ref";
|
|
141
|
+
refId: string;
|
|
142
|
+
} | {
|
|
143
|
+
filename: string;
|
|
144
|
+
entryPoint?: boolean | undefined;
|
|
145
|
+
mimetype?: string | undefined;
|
|
146
|
+
type: "str-asset-block";
|
|
147
|
+
content: string;
|
|
148
|
+
} | {
|
|
149
|
+
filename: string;
|
|
150
|
+
entryPoint?: boolean | undefined;
|
|
151
|
+
mimetype?: string | undefined;
|
|
152
|
+
type: "str-asset-ref";
|
|
153
|
+
refId: string;
|
|
154
|
+
} | {
|
|
155
|
+
filename: string;
|
|
156
|
+
entryPoint?: boolean | undefined;
|
|
157
|
+
mimetype?: string | undefined;
|
|
158
|
+
type: "uint8-asset-block";
|
|
159
|
+
content: Uint8Array<ArrayBuffer>;
|
|
160
|
+
} | {
|
|
161
|
+
filename: string;
|
|
162
|
+
entryPoint?: boolean | undefined;
|
|
163
|
+
mimetype?: string | undefined;
|
|
164
|
+
type: "uint8-asset-ref";
|
|
165
|
+
refId: string;
|
|
166
|
+
})[];
|
|
167
|
+
remove: {
|
|
168
|
+
filename: string;
|
|
169
|
+
}[];
|
|
170
|
+
}, {}>;
|
|
171
|
+
export type FSUpdate = typeof FSUpdate.infer;
|
|
172
|
+
export declare function isFSUpdate(obj: unknown): obj is FSUpdate;
|
|
173
|
+
export declare const reqPromptFSUpdateChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
174
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
175
|
+
mode: "fs-update";
|
|
176
|
+
auth: {
|
|
177
|
+
type: "clerk" | "device-id" | "ucan";
|
|
178
|
+
token: string;
|
|
179
|
+
};
|
|
180
|
+
chatId: string;
|
|
181
|
+
outerTid: string;
|
|
182
|
+
refFsId?: string | undefined;
|
|
183
|
+
fsUpdate: {
|
|
184
|
+
update: ({
|
|
185
|
+
filename: string;
|
|
186
|
+
entryPoint?: boolean | undefined;
|
|
187
|
+
mimetype?: string | undefined;
|
|
188
|
+
type: "code-block";
|
|
189
|
+
lang: string;
|
|
190
|
+
content: string;
|
|
191
|
+
} | {
|
|
192
|
+
filename: string;
|
|
193
|
+
entryPoint?: boolean | undefined;
|
|
194
|
+
mimetype?: string | undefined;
|
|
195
|
+
type: "code-ref";
|
|
196
|
+
refId: string;
|
|
197
|
+
} | {
|
|
198
|
+
filename: string;
|
|
199
|
+
entryPoint?: boolean | undefined;
|
|
200
|
+
mimetype?: string | undefined;
|
|
201
|
+
type: "str-asset-block";
|
|
202
|
+
content: string;
|
|
203
|
+
} | {
|
|
204
|
+
filename: string;
|
|
205
|
+
entryPoint?: boolean | undefined;
|
|
206
|
+
mimetype?: string | undefined;
|
|
207
|
+
type: "str-asset-ref";
|
|
208
|
+
refId: string;
|
|
209
|
+
} | {
|
|
210
|
+
filename: string;
|
|
211
|
+
entryPoint?: boolean | undefined;
|
|
212
|
+
mimetype?: string | undefined;
|
|
213
|
+
type: "uint8-asset-block";
|
|
214
|
+
content: Uint8Array<ArrayBuffer>;
|
|
215
|
+
} | {
|
|
216
|
+
filename: string;
|
|
217
|
+
entryPoint?: boolean | undefined;
|
|
218
|
+
mimetype?: string | undefined;
|
|
219
|
+
type: "uint8-asset-ref";
|
|
220
|
+
refId: string;
|
|
221
|
+
})[];
|
|
222
|
+
remove: {
|
|
223
|
+
filename: string;
|
|
224
|
+
}[];
|
|
225
|
+
};
|
|
226
|
+
}, {}>;
|
|
227
|
+
export type ReqPromptFSUpdateChatSection = typeof reqPromptFSUpdateChatSection.infer;
|
|
228
|
+
export declare function isReqPromptFSUpdateChatSection(obj: unknown): obj is ReqPromptFSUpdateChatSection;
|
|
229
|
+
export declare const reqPromptFSSetChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
230
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
231
|
+
mode: "fs-set";
|
|
232
|
+
auth: {
|
|
233
|
+
type: "clerk" | "device-id" | "ucan";
|
|
234
|
+
token: string;
|
|
235
|
+
};
|
|
236
|
+
chatId: string;
|
|
237
|
+
outerTid: string;
|
|
238
|
+
fsSet: ({
|
|
239
|
+
filename: string;
|
|
240
|
+
entryPoint?: boolean | undefined;
|
|
241
|
+
mimetype?: string | undefined;
|
|
242
|
+
type: "code-block";
|
|
243
|
+
lang: string;
|
|
244
|
+
content: string;
|
|
245
|
+
} | {
|
|
246
|
+
filename: string;
|
|
247
|
+
entryPoint?: boolean | undefined;
|
|
248
|
+
mimetype?: string | undefined;
|
|
249
|
+
type: "code-ref";
|
|
250
|
+
refId: string;
|
|
251
|
+
} | {
|
|
252
|
+
filename: string;
|
|
253
|
+
entryPoint?: boolean | undefined;
|
|
254
|
+
mimetype?: string | undefined;
|
|
255
|
+
type: "str-asset-block";
|
|
256
|
+
content: string;
|
|
257
|
+
} | {
|
|
258
|
+
filename: string;
|
|
259
|
+
entryPoint?: boolean | undefined;
|
|
260
|
+
mimetype?: string | undefined;
|
|
261
|
+
type: "str-asset-ref";
|
|
262
|
+
refId: string;
|
|
263
|
+
} | {
|
|
264
|
+
filename: string;
|
|
265
|
+
entryPoint?: boolean | undefined;
|
|
266
|
+
mimetype?: string | undefined;
|
|
267
|
+
type: "uint8-asset-block";
|
|
268
|
+
content: Uint8Array<ArrayBuffer>;
|
|
269
|
+
} | {
|
|
270
|
+
filename: string;
|
|
271
|
+
entryPoint?: boolean | undefined;
|
|
272
|
+
mimetype?: string | undefined;
|
|
273
|
+
type: "uint8-asset-ref";
|
|
274
|
+
refId: string;
|
|
275
|
+
})[];
|
|
276
|
+
}, {}>;
|
|
277
|
+
export type ReqPromptFSSetChatSection = typeof reqPromptFSSetChatSection.infer;
|
|
278
|
+
export declare function isReqPromptFSSetChatSection(obj: unknown): obj is ReqPromptFSSetChatSection;
|
|
279
|
+
export declare const reqPromptLLMChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
123
280
|
type: "vibes.diy.req-prompt-chat-section";
|
|
124
281
|
mode: "chat";
|
|
125
282
|
auth: {
|
|
@@ -204,27 +361,71 @@ export declare const reqPromptChatSection: import("arktype/internal/variants/obj
|
|
|
204
361
|
stop?: string | string[] | undefined;
|
|
205
362
|
};
|
|
206
363
|
}, {}>;
|
|
207
|
-
export type
|
|
208
|
-
export declare
|
|
209
|
-
|
|
210
|
-
|
|
364
|
+
export type ReqPromptLLMChatSection = typeof reqPromptLLMChatSection.infer;
|
|
365
|
+
export declare function isReqPromptLLMChatSection(obj: unknown): obj is ReqPromptLLMChatSection;
|
|
366
|
+
export declare const reqPromptFSChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
367
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
368
|
+
mode: "fs-update";
|
|
369
|
+
auth: {
|
|
370
|
+
type: "clerk" | "device-id" | "ucan";
|
|
371
|
+
token: string;
|
|
372
|
+
};
|
|
211
373
|
chatId: string;
|
|
212
|
-
userSlug: string;
|
|
213
|
-
appSlug: string;
|
|
214
|
-
promptId: string;
|
|
215
374
|
outerTid: string;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
375
|
+
refFsId?: string | undefined;
|
|
376
|
+
fsUpdate: {
|
|
377
|
+
update: ({
|
|
378
|
+
filename: string;
|
|
379
|
+
entryPoint?: boolean | undefined;
|
|
380
|
+
mimetype?: string | undefined;
|
|
381
|
+
type: "code-block";
|
|
382
|
+
lang: string;
|
|
383
|
+
content: string;
|
|
384
|
+
} | {
|
|
385
|
+
filename: string;
|
|
386
|
+
entryPoint?: boolean | undefined;
|
|
387
|
+
mimetype?: string | undefined;
|
|
388
|
+
type: "code-ref";
|
|
389
|
+
refId: string;
|
|
390
|
+
} | {
|
|
391
|
+
filename: string;
|
|
392
|
+
entryPoint?: boolean | undefined;
|
|
393
|
+
mimetype?: string | undefined;
|
|
394
|
+
type: "str-asset-block";
|
|
395
|
+
content: string;
|
|
396
|
+
} | {
|
|
397
|
+
filename: string;
|
|
398
|
+
entryPoint?: boolean | undefined;
|
|
399
|
+
mimetype?: string | undefined;
|
|
400
|
+
type: "str-asset-ref";
|
|
401
|
+
refId: string;
|
|
402
|
+
} | {
|
|
403
|
+
filename: string;
|
|
404
|
+
entryPoint?: boolean | undefined;
|
|
405
|
+
mimetype?: string | undefined;
|
|
406
|
+
type: "uint8-asset-block";
|
|
407
|
+
content: Uint8Array<ArrayBuffer>;
|
|
408
|
+
} | {
|
|
409
|
+
filename: string;
|
|
410
|
+
entryPoint?: boolean | undefined;
|
|
411
|
+
mimetype?: string | undefined;
|
|
412
|
+
type: "uint8-asset-ref";
|
|
413
|
+
refId: string;
|
|
414
|
+
})[];
|
|
415
|
+
remove: {
|
|
416
|
+
filename: string;
|
|
417
|
+
}[];
|
|
418
|
+
};
|
|
419
|
+
} | {
|
|
420
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
421
|
+
mode: "fs-set";
|
|
221
422
|
auth: {
|
|
222
423
|
type: "clerk" | "device-id" | "ucan";
|
|
223
424
|
token: string;
|
|
224
425
|
};
|
|
225
426
|
chatId: string;
|
|
226
427
|
outerTid: string;
|
|
227
|
-
|
|
428
|
+
fsSet: ({
|
|
228
429
|
filename: string;
|
|
229
430
|
entryPoint?: boolean | undefined;
|
|
230
431
|
mimetype?: string | undefined;
|
|
@@ -263,38 +464,46 @@ export declare const reqAddFS: import("arktype/internal/variants/object.ts").Obj
|
|
|
263
464
|
refId: string;
|
|
264
465
|
})[];
|
|
265
466
|
}, {}>;
|
|
266
|
-
export type
|
|
267
|
-
export declare function
|
|
268
|
-
export declare const
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
467
|
+
export type ReqPromptFSChatSection = typeof reqPromptFSChatSection.infer;
|
|
468
|
+
export declare function isReqPromptFSChatSection(obj: unknown): obj is ReqPromptFSChatSection;
|
|
469
|
+
export declare const reqPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
470
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
471
|
+
mode: "chat";
|
|
472
|
+
auth: {
|
|
473
|
+
type: "clerk" | "device-id" | "ucan";
|
|
474
|
+
token: string;
|
|
475
|
+
};
|
|
274
476
|
chatId: string;
|
|
275
477
|
outerTid: string;
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
478
|
+
prompt: {
|
|
479
|
+
model?: string | undefined;
|
|
480
|
+
messages: {
|
|
481
|
+
role: "assistant" | "system" | "user";
|
|
482
|
+
content: {
|
|
483
|
+
type: "text";
|
|
484
|
+
text: string;
|
|
485
|
+
}[];
|
|
486
|
+
}[];
|
|
487
|
+
stream?: boolean | undefined;
|
|
488
|
+
temperature?: number | undefined;
|
|
489
|
+
max_tokens?: number | undefined;
|
|
490
|
+
top_p?: number | undefined;
|
|
491
|
+
logprobs?: boolean | undefined;
|
|
492
|
+
top_logsprobs?: number | undefined;
|
|
493
|
+
frequency_penalty?: number | undefined;
|
|
494
|
+
presence_penalty?: number | undefined;
|
|
495
|
+
stop?: string | string[] | undefined;
|
|
496
|
+
};
|
|
291
497
|
} | {
|
|
292
|
-
|
|
498
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
499
|
+
mode: "app";
|
|
500
|
+
auth: {
|
|
501
|
+
type: "clerk" | "device-id" | "ucan";
|
|
502
|
+
token: string;
|
|
503
|
+
};
|
|
293
504
|
chatId: string;
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
type: "prompt.req";
|
|
297
|
-
request: {
|
|
505
|
+
outerTid: string;
|
|
506
|
+
prompt: {
|
|
298
507
|
model?: string | undefined;
|
|
299
508
|
messages: {
|
|
300
509
|
role: "assistant" | "system" | "user";
|
|
@@ -314,73 +523,160 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
314
523
|
stop?: string | string[] | undefined;
|
|
315
524
|
};
|
|
316
525
|
} | {
|
|
317
|
-
|
|
526
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
527
|
+
mode: "img";
|
|
528
|
+
auth: {
|
|
529
|
+
type: "clerk" | "device-id" | "ucan";
|
|
530
|
+
token: string;
|
|
531
|
+
};
|
|
318
532
|
chatId: string;
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
533
|
+
outerTid: string;
|
|
534
|
+
prompt: {
|
|
535
|
+
model?: string | undefined;
|
|
536
|
+
messages: {
|
|
537
|
+
role: "assistant" | "system" | "user";
|
|
538
|
+
content: {
|
|
539
|
+
type: "text";
|
|
540
|
+
text: string;
|
|
541
|
+
}[];
|
|
542
|
+
}[];
|
|
543
|
+
stream?: boolean | undefined;
|
|
544
|
+
temperature?: number | undefined;
|
|
545
|
+
max_tokens?: number | undefined;
|
|
546
|
+
top_p?: number | undefined;
|
|
547
|
+
logprobs?: boolean | undefined;
|
|
548
|
+
top_logsprobs?: number | undefined;
|
|
549
|
+
frequency_penalty?: number | undefined;
|
|
550
|
+
presence_penalty?: number | undefined;
|
|
551
|
+
stop?: string | string[] | undefined;
|
|
552
|
+
};
|
|
330
553
|
} | {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
type: "block.end";
|
|
337
|
-
stats: {
|
|
338
|
-
toplevel: {
|
|
339
|
-
lines: number;
|
|
340
|
-
bytes: number;
|
|
341
|
-
cnt?: number | undefined;
|
|
342
|
-
};
|
|
343
|
-
code: {
|
|
344
|
-
lines: number;
|
|
345
|
-
bytes: number;
|
|
346
|
-
cnt?: number | undefined;
|
|
347
|
-
};
|
|
348
|
-
image: {
|
|
349
|
-
lines: number;
|
|
350
|
-
bytes: number;
|
|
351
|
-
cnt?: number | undefined;
|
|
352
|
-
};
|
|
353
|
-
total: {
|
|
354
|
-
lines: number;
|
|
355
|
-
bytes: number;
|
|
356
|
-
cnt?: number | undefined;
|
|
357
|
-
};
|
|
554
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
555
|
+
mode: "fs-update";
|
|
556
|
+
auth: {
|
|
557
|
+
type: "clerk" | "device-id" | "ucan";
|
|
558
|
+
token: string;
|
|
358
559
|
};
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
560
|
+
chatId: string;
|
|
561
|
+
outerTid: string;
|
|
562
|
+
refFsId?: string | undefined;
|
|
563
|
+
fsUpdate: {
|
|
564
|
+
update: ({
|
|
565
|
+
filename: string;
|
|
566
|
+
entryPoint?: boolean | undefined;
|
|
567
|
+
mimetype?: string | undefined;
|
|
568
|
+
type: "code-block";
|
|
569
|
+
lang: string;
|
|
570
|
+
content: string;
|
|
571
|
+
} | {
|
|
572
|
+
filename: string;
|
|
573
|
+
entryPoint?: boolean | undefined;
|
|
574
|
+
mimetype?: string | undefined;
|
|
575
|
+
type: "code-ref";
|
|
576
|
+
refId: string;
|
|
577
|
+
} | {
|
|
578
|
+
filename: string;
|
|
579
|
+
entryPoint?: boolean | undefined;
|
|
580
|
+
mimetype?: string | undefined;
|
|
581
|
+
type: "str-asset-block";
|
|
582
|
+
content: string;
|
|
583
|
+
} | {
|
|
584
|
+
filename: string;
|
|
585
|
+
entryPoint?: boolean | undefined;
|
|
586
|
+
mimetype?: string | undefined;
|
|
587
|
+
type: "str-asset-ref";
|
|
588
|
+
refId: string;
|
|
589
|
+
} | {
|
|
590
|
+
filename: string;
|
|
591
|
+
entryPoint?: boolean | undefined;
|
|
592
|
+
mimetype?: string | undefined;
|
|
593
|
+
type: "uint8-asset-block";
|
|
594
|
+
content: Uint8Array<ArrayBuffer>;
|
|
595
|
+
} | {
|
|
596
|
+
filename: string;
|
|
597
|
+
entryPoint?: boolean | undefined;
|
|
598
|
+
mimetype?: string | undefined;
|
|
599
|
+
type: "uint8-asset-ref";
|
|
600
|
+
refId: string;
|
|
601
|
+
})[];
|
|
602
|
+
remove: {
|
|
603
|
+
filename: string;
|
|
364
604
|
}[];
|
|
365
|
-
calculated: {
|
|
366
|
-
prompt_tokens: number;
|
|
367
|
-
completion_tokens: number;
|
|
368
|
-
total_tokens: number;
|
|
369
|
-
};
|
|
370
605
|
};
|
|
371
|
-
fsRef?: {
|
|
372
|
-
appSlug: string;
|
|
373
|
-
userSlug: string;
|
|
374
|
-
mode: "dev" | "production";
|
|
375
|
-
fsId: string;
|
|
376
|
-
} | undefined;
|
|
377
606
|
} | {
|
|
607
|
+
type: "vibes.diy.req-prompt-chat-section";
|
|
608
|
+
mode: "fs-set";
|
|
609
|
+
auth: {
|
|
610
|
+
type: "clerk" | "device-id" | "ucan";
|
|
611
|
+
token: string;
|
|
612
|
+
};
|
|
613
|
+
chatId: string;
|
|
614
|
+
outerTid: string;
|
|
615
|
+
fsSet: ({
|
|
616
|
+
filename: string;
|
|
617
|
+
entryPoint?: boolean | undefined;
|
|
618
|
+
mimetype?: string | undefined;
|
|
619
|
+
type: "code-block";
|
|
620
|
+
lang: string;
|
|
621
|
+
content: string;
|
|
622
|
+
} | {
|
|
623
|
+
filename: string;
|
|
624
|
+
entryPoint?: boolean | undefined;
|
|
625
|
+
mimetype?: string | undefined;
|
|
626
|
+
type: "code-ref";
|
|
627
|
+
refId: string;
|
|
628
|
+
} | {
|
|
629
|
+
filename: string;
|
|
630
|
+
entryPoint?: boolean | undefined;
|
|
631
|
+
mimetype?: string | undefined;
|
|
632
|
+
type: "str-asset-block";
|
|
633
|
+
content: string;
|
|
634
|
+
} | {
|
|
635
|
+
filename: string;
|
|
636
|
+
entryPoint?: boolean | undefined;
|
|
637
|
+
mimetype?: string | undefined;
|
|
638
|
+
type: "str-asset-ref";
|
|
639
|
+
refId: string;
|
|
640
|
+
} | {
|
|
641
|
+
filename: string;
|
|
642
|
+
entryPoint?: boolean | undefined;
|
|
643
|
+
mimetype?: string | undefined;
|
|
644
|
+
type: "uint8-asset-block";
|
|
645
|
+
content: Uint8Array<ArrayBuffer>;
|
|
646
|
+
} | {
|
|
647
|
+
filename: string;
|
|
648
|
+
entryPoint?: boolean | undefined;
|
|
649
|
+
mimetype?: string | undefined;
|
|
650
|
+
type: "uint8-asset-ref";
|
|
651
|
+
refId: string;
|
|
652
|
+
})[];
|
|
653
|
+
}, {}>;
|
|
654
|
+
export type ReqPromptChatSection = typeof reqPromptChatSection.infer;
|
|
655
|
+
export declare const resPromptChatSection: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
656
|
+
type: "vibes.diy.res-prompt-chat-section";
|
|
657
|
+
mode: "app" | "chat" | "fs-set" | "fs-update" | "img";
|
|
658
|
+
chatId: string;
|
|
659
|
+
userSlug: string;
|
|
660
|
+
appSlug: string;
|
|
661
|
+
promptId: string;
|
|
662
|
+
outerTid: string;
|
|
663
|
+
}, {}>;
|
|
664
|
+
export type ResPromptChatSection = typeof resPromptChatSection.infer;
|
|
665
|
+
export declare function isResPromptChatSection(obj: unknown): obj is ResPromptChatSection;
|
|
666
|
+
export declare const PromptAndBlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
378
667
|
blockId: string;
|
|
379
668
|
streamId: string;
|
|
380
669
|
seq: number;
|
|
381
670
|
blockNr: number;
|
|
382
671
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
383
|
-
type: "block.
|
|
672
|
+
type: "block.begin";
|
|
673
|
+
} | {
|
|
674
|
+
blockId: string;
|
|
675
|
+
streamId: string;
|
|
676
|
+
seq: number;
|
|
677
|
+
blockNr: number;
|
|
678
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
679
|
+
type: "block.end";
|
|
384
680
|
stats: {
|
|
385
681
|
toplevel: {
|
|
386
682
|
lines: number;
|
|
@@ -404,10 +700,41 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
404
700
|
};
|
|
405
701
|
};
|
|
406
702
|
usage: {
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
703
|
+
given: {
|
|
704
|
+
prompt_tokens: number;
|
|
705
|
+
completion_tokens: number;
|
|
706
|
+
total_tokens: number;
|
|
707
|
+
}[];
|
|
708
|
+
calculated: {
|
|
709
|
+
prompt_tokens: number;
|
|
710
|
+
completion_tokens: number;
|
|
711
|
+
total_tokens: number;
|
|
712
|
+
};
|
|
410
713
|
};
|
|
714
|
+
fsRef?: {
|
|
715
|
+
appSlug: string;
|
|
716
|
+
userSlug: string;
|
|
717
|
+
mode: "dev" | "production";
|
|
718
|
+
fsId: string;
|
|
719
|
+
} | undefined;
|
|
720
|
+
} | {
|
|
721
|
+
blockId: string;
|
|
722
|
+
streamId: string;
|
|
723
|
+
seq: number;
|
|
724
|
+
blockNr: number;
|
|
725
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
726
|
+
type: "block.toplevel.begin";
|
|
727
|
+
sectionId: string;
|
|
728
|
+
} | {
|
|
729
|
+
blockId: string;
|
|
730
|
+
streamId: string;
|
|
731
|
+
seq: number;
|
|
732
|
+
blockNr: number;
|
|
733
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
734
|
+
lineNr: number;
|
|
735
|
+
line: string;
|
|
736
|
+
type: "block.toplevel.line";
|
|
737
|
+
sectionId: string;
|
|
411
738
|
} | {
|
|
412
739
|
blockId: string;
|
|
413
740
|
streamId: string;
|
|
@@ -419,9 +746,8 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
419
746
|
bytes: number;
|
|
420
747
|
cnt?: number | undefined;
|
|
421
748
|
};
|
|
422
|
-
type: "block.
|
|
749
|
+
type: "block.toplevel.end";
|
|
423
750
|
sectionId: string;
|
|
424
|
-
url: string;
|
|
425
751
|
} | {
|
|
426
752
|
blockId: string;
|
|
427
753
|
streamId: string;
|
|
@@ -462,31 +788,136 @@ export declare const PromptAndBlockMsgs: import("arktype/internal/variants/objec
|
|
|
462
788
|
seq: number;
|
|
463
789
|
blockNr: number;
|
|
464
790
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
465
|
-
|
|
791
|
+
stats: {
|
|
792
|
+
lines: number;
|
|
793
|
+
bytes: number;
|
|
794
|
+
cnt?: number | undefined;
|
|
795
|
+
};
|
|
796
|
+
type: "block.image";
|
|
466
797
|
sectionId: string;
|
|
798
|
+
url: string;
|
|
467
799
|
} | {
|
|
468
800
|
blockId: string;
|
|
469
801
|
streamId: string;
|
|
470
802
|
seq: number;
|
|
471
803
|
blockNr: number;
|
|
472
804
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
805
|
+
type: "block.stats";
|
|
806
|
+
stats: {
|
|
807
|
+
toplevel: {
|
|
808
|
+
lines: number;
|
|
809
|
+
bytes: number;
|
|
810
|
+
cnt?: number | undefined;
|
|
811
|
+
};
|
|
812
|
+
code: {
|
|
813
|
+
lines: number;
|
|
814
|
+
bytes: number;
|
|
815
|
+
cnt?: number | undefined;
|
|
816
|
+
};
|
|
817
|
+
image: {
|
|
818
|
+
lines: number;
|
|
819
|
+
bytes: number;
|
|
820
|
+
cnt?: number | undefined;
|
|
821
|
+
};
|
|
822
|
+
total: {
|
|
823
|
+
lines: number;
|
|
824
|
+
bytes: number;
|
|
825
|
+
cnt?: number | undefined;
|
|
826
|
+
};
|
|
827
|
+
};
|
|
828
|
+
usage: {
|
|
829
|
+
prompt_tokens: number;
|
|
830
|
+
completion_tokens: number;
|
|
831
|
+
total_tokens: number;
|
|
832
|
+
};
|
|
477
833
|
} | {
|
|
478
|
-
blockId: string;
|
|
479
834
|
streamId: string;
|
|
835
|
+
chatId: string;
|
|
480
836
|
seq: number;
|
|
481
|
-
blockNr: number;
|
|
482
837
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
838
|
+
type: "prompt.block-begin";
|
|
839
|
+
} | {
|
|
840
|
+
streamId: string;
|
|
841
|
+
chatId: string;
|
|
842
|
+
seq: number;
|
|
843
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
844
|
+
type: "prompt.block-end";
|
|
845
|
+
} | {
|
|
846
|
+
streamId: string;
|
|
847
|
+
chatId: string;
|
|
848
|
+
seq: number;
|
|
849
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
850
|
+
type: "prompt.req";
|
|
851
|
+
request: {
|
|
852
|
+
model?: string | undefined;
|
|
853
|
+
messages: {
|
|
854
|
+
role: "assistant" | "system" | "user";
|
|
855
|
+
content: {
|
|
856
|
+
type: "text";
|
|
857
|
+
text: string;
|
|
858
|
+
}[];
|
|
859
|
+
}[];
|
|
860
|
+
stream?: boolean | undefined;
|
|
861
|
+
temperature?: number | undefined;
|
|
862
|
+
max_tokens?: number | undefined;
|
|
863
|
+
top_p?: number | undefined;
|
|
864
|
+
logprobs?: boolean | undefined;
|
|
865
|
+
top_logsprobs?: number | undefined;
|
|
866
|
+
frequency_penalty?: number | undefined;
|
|
867
|
+
presence_penalty?: number | undefined;
|
|
868
|
+
stop?: string | string[] | undefined;
|
|
487
869
|
};
|
|
488
|
-
|
|
489
|
-
|
|
870
|
+
} | {
|
|
871
|
+
streamId: string;
|
|
872
|
+
chatId: string;
|
|
873
|
+
seq: number;
|
|
874
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
875
|
+
type: "prompt.error";
|
|
876
|
+
error: string;
|
|
877
|
+
} | {
|
|
878
|
+
streamId: string;
|
|
879
|
+
chatId: string;
|
|
880
|
+
seq: number;
|
|
881
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
882
|
+
type: "prompt.fs";
|
|
883
|
+
fileSystem: ({
|
|
884
|
+
filename: string;
|
|
885
|
+
entryPoint?: boolean | undefined;
|
|
886
|
+
mimetype?: string | undefined;
|
|
887
|
+
type: "code-block";
|
|
888
|
+
lang: string;
|
|
889
|
+
content: string;
|
|
890
|
+
} | {
|
|
891
|
+
filename: string;
|
|
892
|
+
entryPoint?: boolean | undefined;
|
|
893
|
+
mimetype?: string | undefined;
|
|
894
|
+
type: "code-ref";
|
|
895
|
+
refId: string;
|
|
896
|
+
} | {
|
|
897
|
+
filename: string;
|
|
898
|
+
entryPoint?: boolean | undefined;
|
|
899
|
+
mimetype?: string | undefined;
|
|
900
|
+
type: "str-asset-block";
|
|
901
|
+
content: string;
|
|
902
|
+
} | {
|
|
903
|
+
filename: string;
|
|
904
|
+
entryPoint?: boolean | undefined;
|
|
905
|
+
mimetype?: string | undefined;
|
|
906
|
+
type: "str-asset-ref";
|
|
907
|
+
refId: string;
|
|
908
|
+
} | {
|
|
909
|
+
filename: string;
|
|
910
|
+
entryPoint?: boolean | undefined;
|
|
911
|
+
mimetype?: string | undefined;
|
|
912
|
+
type: "uint8-asset-block";
|
|
913
|
+
content: Uint8Array<ArrayBuffer>;
|
|
914
|
+
} | {
|
|
915
|
+
filename: string;
|
|
916
|
+
entryPoint?: boolean | undefined;
|
|
917
|
+
mimetype?: string | undefined;
|
|
918
|
+
type: "uint8-asset-ref";
|
|
919
|
+
refId: string;
|
|
920
|
+
})[];
|
|
490
921
|
}, {}>;
|
|
491
922
|
export type PromptAndBlockMsgs = typeof PromptAndBlockMsgs.infer;
|
|
492
923
|
export declare const sectionEvent: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
@@ -496,50 +927,6 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
496
927
|
blockSeq: number;
|
|
497
928
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
498
929
|
blocks: ({
|
|
499
|
-
streamId: string;
|
|
500
|
-
chatId: string;
|
|
501
|
-
seq: number;
|
|
502
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
503
|
-
type: "prompt.block-begin";
|
|
504
|
-
} | {
|
|
505
|
-
streamId: string;
|
|
506
|
-
chatId: string;
|
|
507
|
-
seq: number;
|
|
508
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
509
|
-
type: "prompt.block-end";
|
|
510
|
-
} | {
|
|
511
|
-
streamId: string;
|
|
512
|
-
chatId: string;
|
|
513
|
-
seq: number;
|
|
514
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
515
|
-
type: "prompt.req";
|
|
516
|
-
request: {
|
|
517
|
-
model?: string | undefined;
|
|
518
|
-
messages: {
|
|
519
|
-
role: "assistant" | "system" | "user";
|
|
520
|
-
content: {
|
|
521
|
-
type: "text";
|
|
522
|
-
text: string;
|
|
523
|
-
}[];
|
|
524
|
-
}[];
|
|
525
|
-
stream?: boolean | undefined;
|
|
526
|
-
temperature?: number | undefined;
|
|
527
|
-
max_tokens?: number | undefined;
|
|
528
|
-
top_p?: number | undefined;
|
|
529
|
-
logprobs?: boolean | undefined;
|
|
530
|
-
top_logsprobs?: number | undefined;
|
|
531
|
-
frequency_penalty?: number | undefined;
|
|
532
|
-
presence_penalty?: number | undefined;
|
|
533
|
-
stop?: string | string[] | undefined;
|
|
534
|
-
};
|
|
535
|
-
} | {
|
|
536
|
-
streamId: string;
|
|
537
|
-
chatId: string;
|
|
538
|
-
seq: number;
|
|
539
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
540
|
-
type: "prompt.error";
|
|
541
|
-
error: string;
|
|
542
|
-
} | {
|
|
543
930
|
blockId: string;
|
|
544
931
|
streamId: string;
|
|
545
932
|
seq: number;
|
|
@@ -599,34 +986,18 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
599
986
|
seq: number;
|
|
600
987
|
blockNr: number;
|
|
601
988
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
602
|
-
type: "block.
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
image: {
|
|
615
|
-
lines: number;
|
|
616
|
-
bytes: number;
|
|
617
|
-
cnt?: number | undefined;
|
|
618
|
-
};
|
|
619
|
-
total: {
|
|
620
|
-
lines: number;
|
|
621
|
-
bytes: number;
|
|
622
|
-
cnt?: number | undefined;
|
|
623
|
-
};
|
|
624
|
-
};
|
|
625
|
-
usage: {
|
|
626
|
-
prompt_tokens: number;
|
|
627
|
-
completion_tokens: number;
|
|
628
|
-
total_tokens: number;
|
|
629
|
-
};
|
|
989
|
+
type: "block.toplevel.begin";
|
|
990
|
+
sectionId: string;
|
|
991
|
+
} | {
|
|
992
|
+
blockId: string;
|
|
993
|
+
streamId: string;
|
|
994
|
+
seq: number;
|
|
995
|
+
blockNr: number;
|
|
996
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
997
|
+
lineNr: number;
|
|
998
|
+
line: string;
|
|
999
|
+
type: "block.toplevel.line";
|
|
1000
|
+
sectionId: string;
|
|
630
1001
|
} | {
|
|
631
1002
|
blockId: string;
|
|
632
1003
|
streamId: string;
|
|
@@ -638,9 +1009,8 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
638
1009
|
bytes: number;
|
|
639
1010
|
cnt?: number | undefined;
|
|
640
1011
|
};
|
|
641
|
-
type: "block.
|
|
1012
|
+
type: "block.toplevel.end";
|
|
642
1013
|
sectionId: string;
|
|
643
|
-
url: string;
|
|
644
1014
|
} | {
|
|
645
1015
|
blockId: string;
|
|
646
1016
|
streamId: string;
|
|
@@ -681,31 +1051,136 @@ export declare const sectionEvent: import("arktype/internal/variants/object.ts")
|
|
|
681
1051
|
seq: number;
|
|
682
1052
|
blockNr: number;
|
|
683
1053
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
684
|
-
|
|
1054
|
+
stats: {
|
|
1055
|
+
lines: number;
|
|
1056
|
+
bytes: number;
|
|
1057
|
+
cnt?: number | undefined;
|
|
1058
|
+
};
|
|
1059
|
+
type: "block.image";
|
|
685
1060
|
sectionId: string;
|
|
1061
|
+
url: string;
|
|
686
1062
|
} | {
|
|
687
1063
|
blockId: string;
|
|
688
1064
|
streamId: string;
|
|
689
1065
|
seq: number;
|
|
690
1066
|
blockNr: number;
|
|
691
1067
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
1068
|
+
type: "block.stats";
|
|
1069
|
+
stats: {
|
|
1070
|
+
toplevel: {
|
|
1071
|
+
lines: number;
|
|
1072
|
+
bytes: number;
|
|
1073
|
+
cnt?: number | undefined;
|
|
1074
|
+
};
|
|
1075
|
+
code: {
|
|
1076
|
+
lines: number;
|
|
1077
|
+
bytes: number;
|
|
1078
|
+
cnt?: number | undefined;
|
|
1079
|
+
};
|
|
1080
|
+
image: {
|
|
1081
|
+
lines: number;
|
|
1082
|
+
bytes: number;
|
|
1083
|
+
cnt?: number | undefined;
|
|
1084
|
+
};
|
|
1085
|
+
total: {
|
|
1086
|
+
lines: number;
|
|
1087
|
+
bytes: number;
|
|
1088
|
+
cnt?: number | undefined;
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
usage: {
|
|
1092
|
+
prompt_tokens: number;
|
|
1093
|
+
completion_tokens: number;
|
|
1094
|
+
total_tokens: number;
|
|
1095
|
+
};
|
|
696
1096
|
} | {
|
|
697
|
-
blockId: string;
|
|
698
1097
|
streamId: string;
|
|
1098
|
+
chatId: string;
|
|
699
1099
|
seq: number;
|
|
700
|
-
blockNr: number;
|
|
701
1100
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
1101
|
+
type: "prompt.block-begin";
|
|
1102
|
+
} | {
|
|
1103
|
+
streamId: string;
|
|
1104
|
+
chatId: string;
|
|
1105
|
+
seq: number;
|
|
1106
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1107
|
+
type: "prompt.block-end";
|
|
1108
|
+
} | {
|
|
1109
|
+
streamId: string;
|
|
1110
|
+
chatId: string;
|
|
1111
|
+
seq: number;
|
|
1112
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1113
|
+
type: "prompt.req";
|
|
1114
|
+
request: {
|
|
1115
|
+
model?: string | undefined;
|
|
1116
|
+
messages: {
|
|
1117
|
+
role: "assistant" | "system" | "user";
|
|
1118
|
+
content: {
|
|
1119
|
+
type: "text";
|
|
1120
|
+
text: string;
|
|
1121
|
+
}[];
|
|
1122
|
+
}[];
|
|
1123
|
+
stream?: boolean | undefined;
|
|
1124
|
+
temperature?: number | undefined;
|
|
1125
|
+
max_tokens?: number | undefined;
|
|
1126
|
+
top_p?: number | undefined;
|
|
1127
|
+
logprobs?: boolean | undefined;
|
|
1128
|
+
top_logsprobs?: number | undefined;
|
|
1129
|
+
frequency_penalty?: number | undefined;
|
|
1130
|
+
presence_penalty?: number | undefined;
|
|
1131
|
+
stop?: string | string[] | undefined;
|
|
706
1132
|
};
|
|
707
|
-
|
|
708
|
-
|
|
1133
|
+
} | {
|
|
1134
|
+
streamId: string;
|
|
1135
|
+
chatId: string;
|
|
1136
|
+
seq: number;
|
|
1137
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1138
|
+
type: "prompt.error";
|
|
1139
|
+
error: string;
|
|
1140
|
+
} | {
|
|
1141
|
+
streamId: string;
|
|
1142
|
+
chatId: string;
|
|
1143
|
+
seq: number;
|
|
1144
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
1145
|
+
type: "prompt.fs";
|
|
1146
|
+
fileSystem: ({
|
|
1147
|
+
filename: string;
|
|
1148
|
+
entryPoint?: boolean | undefined;
|
|
1149
|
+
mimetype?: string | undefined;
|
|
1150
|
+
type: "code-block";
|
|
1151
|
+
lang: string;
|
|
1152
|
+
content: string;
|
|
1153
|
+
} | {
|
|
1154
|
+
filename: string;
|
|
1155
|
+
entryPoint?: boolean | undefined;
|
|
1156
|
+
mimetype?: string | undefined;
|
|
1157
|
+
type: "code-ref";
|
|
1158
|
+
refId: string;
|
|
1159
|
+
} | {
|
|
1160
|
+
filename: string;
|
|
1161
|
+
entryPoint?: boolean | undefined;
|
|
1162
|
+
mimetype?: string | undefined;
|
|
1163
|
+
type: "str-asset-block";
|
|
1164
|
+
content: string;
|
|
1165
|
+
} | {
|
|
1166
|
+
filename: string;
|
|
1167
|
+
entryPoint?: boolean | undefined;
|
|
1168
|
+
mimetype?: string | undefined;
|
|
1169
|
+
type: "str-asset-ref";
|
|
1170
|
+
refId: string;
|
|
1171
|
+
} | {
|
|
1172
|
+
filename: string;
|
|
1173
|
+
entryPoint?: boolean | undefined;
|
|
1174
|
+
mimetype?: string | undefined;
|
|
1175
|
+
type: "uint8-asset-block";
|
|
1176
|
+
content: Uint8Array<ArrayBuffer>;
|
|
1177
|
+
} | {
|
|
1178
|
+
filename: string;
|
|
1179
|
+
entryPoint?: boolean | undefined;
|
|
1180
|
+
mimetype?: string | undefined;
|
|
1181
|
+
type: "uint8-asset-ref";
|
|
1182
|
+
refId: string;
|
|
1183
|
+
})[];
|
|
709
1184
|
})[];
|
|
710
1185
|
}, {}>;
|
|
711
1186
|
export type SectionEvent = typeof sectionEvent.infer;
|
|
@@ -732,7 +1207,7 @@ export declare const resListModels: import("arktype/internal/variants/object.ts"
|
|
|
732
1207
|
name: string;
|
|
733
1208
|
description: string;
|
|
734
1209
|
featured?: boolean | undefined;
|
|
735
|
-
preSelected?: ("app" | "chat" | "img")[] | undefined;
|
|
1210
|
+
preSelected?: ("app" | "chat" | "fs-set" | "fs-update" | "img")[] | undefined;
|
|
736
1211
|
}[];
|
|
737
1212
|
}, {}>;
|
|
738
1213
|
export type ResListModels = typeof resListModels.infer;
|