@vibes.diy/call-ai-v2 0.0.0-smoke-a1db1035-1774562607 → 2.0.0-dev-cli-3
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/data-stream.d.ts +6 -6
- package/delta-stream.d.ts +21 -21
- package/package.json +11 -7
- package/sse-stream.d.ts +7 -7
- package/tsconfig.json +1 -1
package/data-stream.d.ts
CHANGED
|
@@ -42,12 +42,6 @@ export declare const DataStreamMsg: import("arktype/internal/variants/object.ts"
|
|
|
42
42
|
json: unknown;
|
|
43
43
|
dataLineNr: number;
|
|
44
44
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
45
|
-
} | {
|
|
46
|
-
type: "data.error";
|
|
47
|
-
streamId: string;
|
|
48
|
-
message: string;
|
|
49
|
-
dataLineNr: number;
|
|
50
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
51
45
|
} | {
|
|
52
46
|
type: "data.end";
|
|
53
47
|
streamId: string;
|
|
@@ -60,6 +54,12 @@ export declare const DataStreamMsg: import("arktype/internal/variants/object.ts"
|
|
|
60
54
|
dataLineNr: number;
|
|
61
55
|
};
|
|
62
56
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
57
|
+
} | {
|
|
58
|
+
type: "data.error";
|
|
59
|
+
streamId: string;
|
|
60
|
+
message: string;
|
|
61
|
+
dataLineNr: number;
|
|
62
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
63
63
|
}, {}>;
|
|
64
64
|
export type DataBeginMsg = typeof DataBeginMsg.infer;
|
|
65
65
|
export type DataLineMsg = typeof DataLineMsg.infer;
|
package/delta-stream.d.ts
CHANGED
|
@@ -81,6 +81,27 @@ export declare const DeltaStreamMsg: import("arktype/internal/variants/object.ts
|
|
|
81
81
|
deltaSeq: number;
|
|
82
82
|
choiceSeq: number;
|
|
83
83
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
84
|
+
} | {
|
|
85
|
+
type: "delta.end";
|
|
86
|
+
streamId: string;
|
|
87
|
+
finishReasons: string[];
|
|
88
|
+
usages: {
|
|
89
|
+
prompt_tokens: number;
|
|
90
|
+
completion_tokens: number;
|
|
91
|
+
total_tokens: number;
|
|
92
|
+
}[];
|
|
93
|
+
totalDeltas: number;
|
|
94
|
+
totalChars: number;
|
|
95
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
96
|
+
} | {
|
|
97
|
+
type: "delta.stats";
|
|
98
|
+
streamId: string;
|
|
99
|
+
stats: {
|
|
100
|
+
deltaSeq: number;
|
|
101
|
+
deltaUsages: number;
|
|
102
|
+
totalChars: number;
|
|
103
|
+
};
|
|
104
|
+
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
84
105
|
} | {
|
|
85
106
|
type: "delta.usage";
|
|
86
107
|
streamId: string;
|
|
@@ -107,27 +128,6 @@ export declare const DeltaStreamMsg: import("arktype/internal/variants/object.ts
|
|
|
107
128
|
deltaSeq: number;
|
|
108
129
|
index: number;
|
|
109
130
|
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
110
|
-
} | {
|
|
111
|
-
type: "delta.end";
|
|
112
|
-
streamId: string;
|
|
113
|
-
finishReasons: string[];
|
|
114
|
-
usages: {
|
|
115
|
-
prompt_tokens: number;
|
|
116
|
-
completion_tokens: number;
|
|
117
|
-
total_tokens: number;
|
|
118
|
-
}[];
|
|
119
|
-
totalDeltas: number;
|
|
120
|
-
totalChars: number;
|
|
121
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
122
|
-
} | {
|
|
123
|
-
type: "delta.stats";
|
|
124
|
-
streamId: string;
|
|
125
|
-
stats: {
|
|
126
|
-
deltaSeq: number;
|
|
127
|
-
deltaUsages: number;
|
|
128
|
-
totalChars: number;
|
|
129
|
-
};
|
|
130
|
-
timestamp: Date | ((In: string) => import("arktype/internal/attributes.ts").To<Date>);
|
|
131
131
|
}, {}>;
|
|
132
132
|
export type DeltaBeginMsg = typeof DeltaBeginMsg.infer;
|
|
133
133
|
export type DeltaLineMsg = typeof DeltaLineMsg.infer;
|
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vibes.diy/call-ai-v2",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-dev-cli-3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"build": "core-cli tsc",
|
|
9
|
+
"cli": "tsx cli.ts",
|
|
10
|
+
"test": "vitest run",
|
|
11
|
+
"test:watch": "vitest"
|
|
12
|
+
},
|
|
7
13
|
"keywords": [],
|
|
8
14
|
"author": "",
|
|
9
15
|
"license": "AFL",
|
|
@@ -15,10 +21,8 @@
|
|
|
15
21
|
"mime": "~4.1.0",
|
|
16
22
|
"zx": "~8.8.5"
|
|
17
23
|
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"test": "vitest run",
|
|
22
|
-
"test:watch": "vitest"
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/VibesDIY/vibes.diy.git"
|
|
23
27
|
}
|
|
24
|
-
}
|
|
28
|
+
}
|
package/sse-stream.d.ts
CHANGED
|
@@ -158,6 +158,13 @@ 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>);
|
|
161
168
|
} | {
|
|
162
169
|
type: "sse.end";
|
|
163
170
|
streamId: string;
|
|
@@ -169,13 +176,6 @@ export declare const SseStreamMsg: import("arktype/internal/variants/object.ts")
|
|
|
169
176
|
totalChunks: number;
|
|
170
177
|
totalErrors: number;
|
|
171
178
|
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;
|