@vibes.diy/call-ai-v2 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/block-stream.d.ts +98 -98
- package/package.json +2 -2
- package/prompt-type.d.ts +0 -109
- package/prompt-type.js +0 -35
- package/prompt-type.js.map +1 -1
- package/sse-stream.d.ts +7 -7
package/block-stream.d.ts
CHANGED
|
@@ -333,9 +333,8 @@ export declare const LineMsg: import("arktype/internal/variants/object.ts").Obje
|
|
|
333
333
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
334
334
|
lineNr: number;
|
|
335
335
|
line: string;
|
|
336
|
-
type: "block.
|
|
336
|
+
type: "block.toplevel.line";
|
|
337
337
|
sectionId: string;
|
|
338
|
-
lang: string;
|
|
339
338
|
} | {
|
|
340
339
|
blockId: string;
|
|
341
340
|
streamId: string;
|
|
@@ -344,8 +343,9 @@ export declare const LineMsg: import("arktype/internal/variants/object.ts").Obje
|
|
|
344
343
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
345
344
|
lineNr: number;
|
|
346
345
|
line: string;
|
|
347
|
-
type: "block.
|
|
346
|
+
type: "block.code.line";
|
|
348
347
|
sectionId: string;
|
|
348
|
+
lang: string;
|
|
349
349
|
}, {}>;
|
|
350
350
|
export declare const BeginMsg: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
351
351
|
blockId: string;
|
|
@@ -353,17 +353,17 @@ export declare const BeginMsg: import("arktype/internal/variants/object.ts").Obj
|
|
|
353
353
|
seq: number;
|
|
354
354
|
blockNr: number;
|
|
355
355
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
356
|
-
type: "block.
|
|
356
|
+
type: "block.toplevel.begin";
|
|
357
357
|
sectionId: string;
|
|
358
|
-
lang: string;
|
|
359
358
|
} | {
|
|
360
359
|
blockId: string;
|
|
361
360
|
streamId: string;
|
|
362
361
|
seq: number;
|
|
363
362
|
blockNr: number;
|
|
364
363
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
365
|
-
type: "block.
|
|
364
|
+
type: "block.code.begin";
|
|
366
365
|
sectionId: string;
|
|
366
|
+
lang: string;
|
|
367
367
|
}, {}>;
|
|
368
368
|
export declare const BlockStreamMsg: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
369
369
|
blockId: string;
|
|
@@ -425,34 +425,18 @@ export declare const BlockStreamMsg: import("arktype/internal/variants/object.ts
|
|
|
425
425
|
seq: number;
|
|
426
426
|
blockNr: number;
|
|
427
427
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
428
|
-
type: "block.
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
image: {
|
|
441
|
-
lines: number;
|
|
442
|
-
bytes: number;
|
|
443
|
-
cnt?: number | undefined;
|
|
444
|
-
};
|
|
445
|
-
total: {
|
|
446
|
-
lines: number;
|
|
447
|
-
bytes: number;
|
|
448
|
-
cnt?: number | undefined;
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
|
-
usage: {
|
|
452
|
-
prompt_tokens: number;
|
|
453
|
-
completion_tokens: number;
|
|
454
|
-
total_tokens: number;
|
|
455
|
-
};
|
|
428
|
+
type: "block.toplevel.begin";
|
|
429
|
+
sectionId: string;
|
|
430
|
+
} | {
|
|
431
|
+
blockId: string;
|
|
432
|
+
streamId: string;
|
|
433
|
+
seq: number;
|
|
434
|
+
blockNr: number;
|
|
435
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
436
|
+
lineNr: number;
|
|
437
|
+
line: string;
|
|
438
|
+
type: "block.toplevel.line";
|
|
439
|
+
sectionId: string;
|
|
456
440
|
} | {
|
|
457
441
|
blockId: string;
|
|
458
442
|
streamId: string;
|
|
@@ -464,9 +448,8 @@ export declare const BlockStreamMsg: import("arktype/internal/variants/object.ts
|
|
|
464
448
|
bytes: number;
|
|
465
449
|
cnt?: number | undefined;
|
|
466
450
|
};
|
|
467
|
-
type: "block.
|
|
451
|
+
type: "block.toplevel.end";
|
|
468
452
|
sectionId: string;
|
|
469
|
-
url: string;
|
|
470
453
|
} | {
|
|
471
454
|
blockId: string;
|
|
472
455
|
streamId: string;
|
|
@@ -507,31 +490,48 @@ export declare const BlockStreamMsg: import("arktype/internal/variants/object.ts
|
|
|
507
490
|
seq: number;
|
|
508
491
|
blockNr: number;
|
|
509
492
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
blockNr: number;
|
|
517
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
518
|
-
lineNr: number;
|
|
519
|
-
line: string;
|
|
520
|
-
type: "block.toplevel.line";
|
|
493
|
+
stats: {
|
|
494
|
+
lines: number;
|
|
495
|
+
bytes: number;
|
|
496
|
+
cnt?: number | undefined;
|
|
497
|
+
};
|
|
498
|
+
type: "block.image";
|
|
521
499
|
sectionId: string;
|
|
500
|
+
url: string;
|
|
522
501
|
} | {
|
|
523
502
|
blockId: string;
|
|
524
503
|
streamId: string;
|
|
525
504
|
seq: number;
|
|
526
505
|
blockNr: number;
|
|
527
506
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
507
|
+
type: "block.stats";
|
|
528
508
|
stats: {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
509
|
+
toplevel: {
|
|
510
|
+
lines: number;
|
|
511
|
+
bytes: number;
|
|
512
|
+
cnt?: number | undefined;
|
|
513
|
+
};
|
|
514
|
+
code: {
|
|
515
|
+
lines: number;
|
|
516
|
+
bytes: number;
|
|
517
|
+
cnt?: number | undefined;
|
|
518
|
+
};
|
|
519
|
+
image: {
|
|
520
|
+
lines: number;
|
|
521
|
+
bytes: number;
|
|
522
|
+
cnt?: number | undefined;
|
|
523
|
+
};
|
|
524
|
+
total: {
|
|
525
|
+
lines: number;
|
|
526
|
+
bytes: number;
|
|
527
|
+
cnt?: number | undefined;
|
|
528
|
+
};
|
|
529
|
+
};
|
|
530
|
+
usage: {
|
|
531
|
+
prompt_tokens: number;
|
|
532
|
+
completion_tokens: number;
|
|
533
|
+
total_tokens: number;
|
|
532
534
|
};
|
|
533
|
-
type: "block.toplevel.end";
|
|
534
|
-
sectionId: string;
|
|
535
535
|
}, {}>;
|
|
536
536
|
export declare const BlockMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
537
537
|
blockId: string;
|
|
@@ -593,34 +593,18 @@ export declare const BlockMsgs: import("arktype/internal/variants/object.ts").Ob
|
|
|
593
593
|
seq: number;
|
|
594
594
|
blockNr: number;
|
|
595
595
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
596
|
-
type: "block.
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
image: {
|
|
609
|
-
lines: number;
|
|
610
|
-
bytes: number;
|
|
611
|
-
cnt?: number | undefined;
|
|
612
|
-
};
|
|
613
|
-
total: {
|
|
614
|
-
lines: number;
|
|
615
|
-
bytes: number;
|
|
616
|
-
cnt?: number | undefined;
|
|
617
|
-
};
|
|
618
|
-
};
|
|
619
|
-
usage: {
|
|
620
|
-
prompt_tokens: number;
|
|
621
|
-
completion_tokens: number;
|
|
622
|
-
total_tokens: number;
|
|
623
|
-
};
|
|
596
|
+
type: "block.toplevel.begin";
|
|
597
|
+
sectionId: string;
|
|
598
|
+
} | {
|
|
599
|
+
blockId: string;
|
|
600
|
+
streamId: string;
|
|
601
|
+
seq: number;
|
|
602
|
+
blockNr: number;
|
|
603
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
604
|
+
lineNr: number;
|
|
605
|
+
line: string;
|
|
606
|
+
type: "block.toplevel.line";
|
|
607
|
+
sectionId: string;
|
|
624
608
|
} | {
|
|
625
609
|
blockId: string;
|
|
626
610
|
streamId: string;
|
|
@@ -632,9 +616,8 @@ export declare const BlockMsgs: import("arktype/internal/variants/object.ts").Ob
|
|
|
632
616
|
bytes: number;
|
|
633
617
|
cnt?: number | undefined;
|
|
634
618
|
};
|
|
635
|
-
type: "block.
|
|
619
|
+
type: "block.toplevel.end";
|
|
636
620
|
sectionId: string;
|
|
637
|
-
url: string;
|
|
638
621
|
} | {
|
|
639
622
|
blockId: string;
|
|
640
623
|
streamId: string;
|
|
@@ -675,31 +658,48 @@ export declare const BlockMsgs: import("arktype/internal/variants/object.ts").Ob
|
|
|
675
658
|
seq: number;
|
|
676
659
|
blockNr: number;
|
|
677
660
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
blockNr: number;
|
|
685
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
686
|
-
lineNr: number;
|
|
687
|
-
line: string;
|
|
688
|
-
type: "block.toplevel.line";
|
|
661
|
+
stats: {
|
|
662
|
+
lines: number;
|
|
663
|
+
bytes: number;
|
|
664
|
+
cnt?: number | undefined;
|
|
665
|
+
};
|
|
666
|
+
type: "block.image";
|
|
689
667
|
sectionId: string;
|
|
668
|
+
url: string;
|
|
690
669
|
} | {
|
|
691
670
|
blockId: string;
|
|
692
671
|
streamId: string;
|
|
693
672
|
seq: number;
|
|
694
673
|
blockNr: number;
|
|
695
674
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
675
|
+
type: "block.stats";
|
|
696
676
|
stats: {
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
677
|
+
toplevel: {
|
|
678
|
+
lines: number;
|
|
679
|
+
bytes: number;
|
|
680
|
+
cnt?: number | undefined;
|
|
681
|
+
};
|
|
682
|
+
code: {
|
|
683
|
+
lines: number;
|
|
684
|
+
bytes: number;
|
|
685
|
+
cnt?: number | undefined;
|
|
686
|
+
};
|
|
687
|
+
image: {
|
|
688
|
+
lines: number;
|
|
689
|
+
bytes: number;
|
|
690
|
+
cnt?: number | undefined;
|
|
691
|
+
};
|
|
692
|
+
total: {
|
|
693
|
+
lines: number;
|
|
694
|
+
bytes: number;
|
|
695
|
+
cnt?: number | undefined;
|
|
696
|
+
};
|
|
697
|
+
};
|
|
698
|
+
usage: {
|
|
699
|
+
prompt_tokens: number;
|
|
700
|
+
completion_tokens: number;
|
|
701
|
+
total_tokens: number;
|
|
700
702
|
};
|
|
701
|
-
type: "block.toplevel.end";
|
|
702
|
-
sectionId: string;
|
|
703
703
|
}, {}>;
|
|
704
704
|
export type BlockBeginMsg = typeof BlockBeginMsg.infer;
|
|
705
705
|
export type BlockEndMsg = typeof BlockEndMsg.infer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/call-ai-v2",
|
|
3
|
-
"version": "2.0.0-dev-cli-
|
|
3
|
+
"version": "2.0.0-dev-cli-k",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"license": "AFL",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@adviser/cement": "~0.5.34",
|
|
18
|
-
"@fireproof/core-runtime": "~0.24.
|
|
18
|
+
"@fireproof/core-runtime": "~0.24.16",
|
|
19
19
|
"arktype": "~2.2.0",
|
|
20
20
|
"cmd-ts": "~0.15.0",
|
|
21
21
|
"mime": "~4.1.0",
|
package/prompt-type.d.ts
CHANGED
|
@@ -36,112 +36,3 @@ export type LLMRequest = typeof LLMRequest.infer;
|
|
|
36
36
|
export declare const isMessageRole: (msg: unknown) => msg is MessageRole;
|
|
37
37
|
export declare const isChatMessage: (msg: unknown) => msg is ChatMessage;
|
|
38
38
|
export declare const isLLMRequest: (msg: unknown) => msg is LLMRequest;
|
|
39
|
-
export declare const PromptBase: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
40
|
-
streamId: string;
|
|
41
|
-
chatId: string;
|
|
42
|
-
seq: number;
|
|
43
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
44
|
-
}, {}>;
|
|
45
|
-
export declare const PromptReq: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
46
|
-
streamId: string;
|
|
47
|
-
chatId: string;
|
|
48
|
-
seq: number;
|
|
49
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
50
|
-
type: "prompt.req";
|
|
51
|
-
request: {
|
|
52
|
-
model?: string | undefined;
|
|
53
|
-
messages: {
|
|
54
|
-
role: "assistant" | "system" | "user";
|
|
55
|
-
content: {
|
|
56
|
-
type: "text";
|
|
57
|
-
text: string;
|
|
58
|
-
}[];
|
|
59
|
-
}[];
|
|
60
|
-
stream?: boolean | undefined;
|
|
61
|
-
temperature?: number | undefined;
|
|
62
|
-
max_tokens?: number | undefined;
|
|
63
|
-
top_p?: number | undefined;
|
|
64
|
-
logprobs?: boolean | undefined;
|
|
65
|
-
top_logsprobs?: number | undefined;
|
|
66
|
-
frequency_penalty?: number | undefined;
|
|
67
|
-
presence_penalty?: number | undefined;
|
|
68
|
-
stop?: string | string[] | undefined;
|
|
69
|
-
};
|
|
70
|
-
}, {}>;
|
|
71
|
-
export type PromptReq = typeof PromptReq.infer;
|
|
72
|
-
export declare function isPromptReq(msg: unknown): msg is PromptReq;
|
|
73
|
-
export declare const PromptBlockBegin: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
74
|
-
streamId: string;
|
|
75
|
-
chatId: string;
|
|
76
|
-
seq: number;
|
|
77
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
78
|
-
type: "prompt.block-begin";
|
|
79
|
-
}, {}>;
|
|
80
|
-
export type PromptBlockBegin = typeof PromptBlockBegin.infer;
|
|
81
|
-
export declare const PromptError: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
82
|
-
streamId: string;
|
|
83
|
-
chatId: string;
|
|
84
|
-
seq: number;
|
|
85
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
86
|
-
type: "prompt.error";
|
|
87
|
-
error: string;
|
|
88
|
-
}, {}>;
|
|
89
|
-
export type PromptError = typeof PromptError.infer;
|
|
90
|
-
export declare function isPromptError(msg: unknown): msg is PromptError;
|
|
91
|
-
export declare const PromptBlockEnd: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
92
|
-
streamId: string;
|
|
93
|
-
chatId: string;
|
|
94
|
-
seq: number;
|
|
95
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
96
|
-
type: "prompt.block-end";
|
|
97
|
-
}, {}>;
|
|
98
|
-
export type PromptBlockEnd = typeof PromptBlockEnd.infer;
|
|
99
|
-
export declare const PromptMsgs: import("arktype/internal/variants/object.ts").ObjectType<{
|
|
100
|
-
streamId: string;
|
|
101
|
-
chatId: string;
|
|
102
|
-
seq: number;
|
|
103
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
104
|
-
type: "prompt.req";
|
|
105
|
-
request: {
|
|
106
|
-
model?: string | undefined;
|
|
107
|
-
messages: {
|
|
108
|
-
role: "assistant" | "system" | "user";
|
|
109
|
-
content: {
|
|
110
|
-
type: "text";
|
|
111
|
-
text: string;
|
|
112
|
-
}[];
|
|
113
|
-
}[];
|
|
114
|
-
stream?: boolean | undefined;
|
|
115
|
-
temperature?: number | undefined;
|
|
116
|
-
max_tokens?: number | undefined;
|
|
117
|
-
top_p?: number | undefined;
|
|
118
|
-
logprobs?: boolean | undefined;
|
|
119
|
-
top_logsprobs?: number | undefined;
|
|
120
|
-
frequency_penalty?: number | undefined;
|
|
121
|
-
presence_penalty?: number | undefined;
|
|
122
|
-
stop?: string | string[] | undefined;
|
|
123
|
-
};
|
|
124
|
-
} | {
|
|
125
|
-
streamId: string;
|
|
126
|
-
chatId: string;
|
|
127
|
-
seq: number;
|
|
128
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
129
|
-
type: "prompt.block-begin";
|
|
130
|
-
} | {
|
|
131
|
-
streamId: string;
|
|
132
|
-
chatId: string;
|
|
133
|
-
seq: number;
|
|
134
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
135
|
-
type: "prompt.error";
|
|
136
|
-
error: string;
|
|
137
|
-
} | {
|
|
138
|
-
streamId: string;
|
|
139
|
-
chatId: string;
|
|
140
|
-
seq: number;
|
|
141
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
142
|
-
type: "prompt.block-end";
|
|
143
|
-
}, {}>;
|
|
144
|
-
export type PromptMsgs = typeof PromptMsgs.infer;
|
|
145
|
-
export declare const isPromptMsg: (msg: unknown) => msg is PromptMsgs;
|
|
146
|
-
export declare function isPromptBlockBegin(msg: unknown): msg is PromptBlockBegin;
|
|
147
|
-
export declare function isPromptBlockEnd(msg: unknown): msg is PromptBlockEnd;
|
package/prompt-type.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type } from "arktype";
|
|
2
|
-
import { CoercedDate } from "./types.js";
|
|
3
2
|
export const MessageRole = type("'system' | 'user' | 'assistant'");
|
|
4
3
|
export const TextContent = type({
|
|
5
4
|
type: "'text'",
|
|
@@ -25,38 +24,4 @@ export const LLMRequest = type({
|
|
|
25
24
|
export const isMessageRole = (msg) => !(MessageRole(msg) instanceof type.errors);
|
|
26
25
|
export const isChatMessage = (msg) => !(ChatMessage(msg) instanceof type.errors);
|
|
27
26
|
export const isLLMRequest = (msg) => !(LLMRequest(msg) instanceof type.errors);
|
|
28
|
-
export const PromptBase = type({
|
|
29
|
-
streamId: "string",
|
|
30
|
-
chatId: "string",
|
|
31
|
-
seq: "number",
|
|
32
|
-
timestamp: CoercedDate,
|
|
33
|
-
});
|
|
34
|
-
export const PromptReq = type({
|
|
35
|
-
type: "'prompt.req'",
|
|
36
|
-
request: LLMRequest,
|
|
37
|
-
}).and(PromptBase);
|
|
38
|
-
export function isPromptReq(msg) {
|
|
39
|
-
return !(PromptReq(msg) instanceof type.errors);
|
|
40
|
-
}
|
|
41
|
-
export const PromptBlockBegin = type({
|
|
42
|
-
type: "'prompt.block-begin'",
|
|
43
|
-
}).and(PromptBase);
|
|
44
|
-
export const PromptError = type({
|
|
45
|
-
type: "'prompt.error'",
|
|
46
|
-
error: "string",
|
|
47
|
-
}).and(PromptBase);
|
|
48
|
-
export function isPromptError(msg) {
|
|
49
|
-
return !(PromptError(msg) instanceof type.errors);
|
|
50
|
-
}
|
|
51
|
-
export const PromptBlockEnd = type({
|
|
52
|
-
type: "'prompt.block-end'",
|
|
53
|
-
}).and(PromptBase);
|
|
54
|
-
export const PromptMsgs = PromptBlockBegin.or(PromptBlockEnd).or(PromptReq).or(PromptError);
|
|
55
|
-
export const isPromptMsg = (msg) => !(PromptMsgs(msg) instanceof type.errors);
|
|
56
|
-
export function isPromptBlockBegin(msg) {
|
|
57
|
-
return !(PromptBlockBegin(msg) instanceof type.errors);
|
|
58
|
-
}
|
|
59
|
-
export function isPromptBlockEnd(msg) {
|
|
60
|
-
return !(PromptBlockEnd(msg) instanceof type.errors);
|
|
61
|
-
}
|
|
62
27
|
//# sourceMappingURL=prompt-type.js.map
|
package/prompt-type.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-type.js","sourceRoot":"","sources":["../jsr/prompt-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-type.js","sourceRoot":"","sources":["../jsr/prompt-type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAG/B,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,iCAAiC,CAAC,CAAC;AAGnE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,QAAQ;CACf,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC;IAC9B,IAAI,EAAE,WAAW;IACjB,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE;CAC7B,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,UAAU,GAAG,IAAI,CAAC;IAC7B,QAAQ,EAAE,QAAQ;IAClB,QAAQ,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC;IAC7B,SAAS,EAAE,SAAS;IACpB,cAAc,EAAE,QAAQ;IACxB,aAAa,EAAE,QAAQ;IACvB,QAAQ,EAAE,QAAQ;IAClB,WAAW,EAAE,SAAS;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,oBAAoB,EAAE,QAAQ;IAC9B,mBAAmB,EAAE,QAAQ;IAC7B,OAAO,EAAE,mBAAmB;CAC7B,CAAC,CAAC;AAKH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAY,EAAsB,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAE9G,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,GAAY,EAAsB,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC;AAE9G,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,GAAY,EAAqB,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,MAAM,CAAC,CAAC"}
|
package/sse-stream.d.ts
CHANGED
|
@@ -158,13 +158,6 @@ export declare const SseStreamMsg: import("arktype/internal/variants/object.ts")
|
|
|
158
158
|
};
|
|
159
159
|
chunkNr: number;
|
|
160
160
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
161
|
-
} | {
|
|
162
|
-
type: "sse.error";
|
|
163
|
-
streamId: string;
|
|
164
|
-
error: string;
|
|
165
|
-
json: unknown;
|
|
166
|
-
errorNr: number;
|
|
167
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
168
161
|
} | {
|
|
169
162
|
type: "sse.end";
|
|
170
163
|
streamId: string;
|
|
@@ -176,6 +169,13 @@ export declare const SseStreamMsg: import("arktype/internal/variants/object.ts")
|
|
|
176
169
|
totalChunks: number;
|
|
177
170
|
totalErrors: number;
|
|
178
171
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
172
|
+
} | {
|
|
173
|
+
type: "sse.error";
|
|
174
|
+
streamId: string;
|
|
175
|
+
error: string;
|
|
176
|
+
json: unknown;
|
|
177
|
+
errorNr: number;
|
|
178
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
179
179
|
} | {
|
|
180
180
|
type: "sse.stats";
|
|
181
181
|
streamId: string;
|