@sqlrooms/ai-config 0.26.0-rc.2 → 0.26.0-rc.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/dist/AiSettingsSliceConfig.d.ts +5 -69
- package/dist/AiSettingsSliceConfig.d.ts.map +1 -1
- package/dist/AiSliceConfig.d.ts +120 -329
- package/dist/AiSliceConfig.d.ts.map +1 -1
- package/dist/AiSliceConfig.js +4 -1
- package/dist/AiSliceConfig.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/migration/AnalysisSession-v0.24.14.d.ts +48 -0
- package/dist/migration/AnalysisSession-v0.24.14.d.ts.map +1 -0
- package/dist/migration/AnalysisSession-v0.24.14.js +59 -0
- package/dist/migration/AnalysisSession-v0.24.14.js.map +1 -0
- package/dist/migration/AnalysisSession-v0.25.0.d.ts +86 -0
- package/dist/migration/AnalysisSession-v0.25.0.d.ts.map +1 -0
- package/dist/migration/AnalysisSession-v0.25.0.js +182 -0
- package/dist/migration/AnalysisSession-v0.25.0.js.map +1 -0
- package/dist/migration/AnalysisSession-v0.26.0.d.ts +61 -0
- package/dist/migration/AnalysisSession-v0.26.0.d.ts.map +1 -0
- package/dist/migration/AnalysisSession-v0.26.0.js +150 -0
- package/dist/migration/AnalysisSession-v0.26.0.js.map +1 -0
- package/dist/schema/AnalysisSessionSchema.d.ts +147 -0
- package/dist/schema/AnalysisSessionSchema.d.ts.map +1 -0
- package/dist/schema/AnalysisSessionSchema.js +50 -0
- package/dist/schema/AnalysisSessionSchema.js.map +1 -0
- package/dist/schema/UIMessageSchema.d.ts +252 -0
- package/dist/schema/UIMessageSchema.d.ts.map +1 -0
- package/dist/schema/UIMessageSchema.js +138 -0
- package/dist/schema/UIMessageSchema.js.map +1 -0
- package/package.json +3 -4
- package/dist/AnalysisSessionSchema.d.ts +0 -498
- package/dist/AnalysisSessionSchema.d.ts.map +0 -1
- package/dist/AnalysisSessionSchema.js +0 -88
- package/dist/AnalysisSessionSchema.js.map +0 -1
|
@@ -5,81 +5,17 @@ export declare const AiSettingsSliceConfig: z.ZodObject<{
|
|
|
5
5
|
apiKey: z.ZodString;
|
|
6
6
|
models: z.ZodArray<z.ZodObject<{
|
|
7
7
|
modelName: z.ZodString;
|
|
8
|
-
},
|
|
9
|
-
|
|
10
|
-
}, {
|
|
11
|
-
modelName: string;
|
|
12
|
-
}>, "many">;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
baseUrl: string;
|
|
15
|
-
apiKey: string;
|
|
16
|
-
models: {
|
|
17
|
-
modelName: string;
|
|
18
|
-
}[];
|
|
19
|
-
}, {
|
|
20
|
-
baseUrl: string;
|
|
21
|
-
apiKey: string;
|
|
22
|
-
models: {
|
|
23
|
-
modelName: string;
|
|
24
|
-
}[];
|
|
25
|
-
}>>;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
}, z.core.$strip>>;
|
|
26
10
|
customModels: z.ZodArray<z.ZodObject<{
|
|
27
11
|
baseUrl: z.ZodString;
|
|
28
12
|
apiKey: z.ZodString;
|
|
29
13
|
modelName: z.ZodString;
|
|
30
|
-
},
|
|
31
|
-
baseUrl: string;
|
|
32
|
-
apiKey: string;
|
|
33
|
-
modelName: string;
|
|
34
|
-
}, {
|
|
35
|
-
baseUrl: string;
|
|
36
|
-
apiKey: string;
|
|
37
|
-
modelName: string;
|
|
38
|
-
}>, "many">;
|
|
14
|
+
}, z.core.$strip>>;
|
|
39
15
|
modelParameters: z.ZodObject<{
|
|
40
16
|
maxSteps: z.ZodNumber;
|
|
41
17
|
additionalInstruction: z.ZodString;
|
|
42
|
-
},
|
|
43
|
-
|
|
44
|
-
additionalInstruction: string;
|
|
45
|
-
}, {
|
|
46
|
-
maxSteps: number;
|
|
47
|
-
additionalInstruction: string;
|
|
48
|
-
}>;
|
|
49
|
-
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
providers: Record<string, {
|
|
51
|
-
baseUrl: string;
|
|
52
|
-
apiKey: string;
|
|
53
|
-
models: {
|
|
54
|
-
modelName: string;
|
|
55
|
-
}[];
|
|
56
|
-
}>;
|
|
57
|
-
customModels: {
|
|
58
|
-
baseUrl: string;
|
|
59
|
-
apiKey: string;
|
|
60
|
-
modelName: string;
|
|
61
|
-
}[];
|
|
62
|
-
modelParameters: {
|
|
63
|
-
maxSteps: number;
|
|
64
|
-
additionalInstruction: string;
|
|
65
|
-
};
|
|
66
|
-
}, {
|
|
67
|
-
providers: Record<string, {
|
|
68
|
-
baseUrl: string;
|
|
69
|
-
apiKey: string;
|
|
70
|
-
models: {
|
|
71
|
-
modelName: string;
|
|
72
|
-
}[];
|
|
73
|
-
}>;
|
|
74
|
-
customModels: {
|
|
75
|
-
baseUrl: string;
|
|
76
|
-
apiKey: string;
|
|
77
|
-
modelName: string;
|
|
78
|
-
}[];
|
|
79
|
-
modelParameters: {
|
|
80
|
-
maxSteps: number;
|
|
81
|
-
additionalInstruction: string;
|
|
82
|
-
};
|
|
83
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
}, z.core.$strip>;
|
|
84
20
|
export type AiSettingsSliceConfig = z.infer<typeof AiSettingsSliceConfig>;
|
|
85
21
|
//# sourceMappingURL=AiSettingsSliceConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiSettingsSliceConfig.d.ts","sourceRoot":"","sources":["../src/AiSettingsSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"AiSettingsSliceConfig.d.ts","sourceRoot":"","sources":["../src/AiSettingsSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/AiSliceConfig.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const AiSliceConfig: z.ZodObject<{
|
|
3
|
-
sessions: z.ZodArray<z.
|
|
3
|
+
sessions: z.ZodArray<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
5
|
name: z.ZodString;
|
|
6
6
|
modelProvider: z.ZodString;
|
|
@@ -10,338 +10,129 @@ export declare const AiSliceConfig: z.ZodObject<{
|
|
|
10
10
|
analysisResults: z.ZodArray<z.ZodObject<{
|
|
11
11
|
id: z.ZodString;
|
|
12
12
|
prompt: z.ZodString;
|
|
13
|
-
streamMessage: z.ZodEffects<z.ZodObject<{
|
|
14
|
-
parts: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
15
|
-
type: z.ZodLiteral<"text">;
|
|
16
|
-
text: z.ZodString;
|
|
17
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
18
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
type: "text";
|
|
21
|
-
text: string;
|
|
22
|
-
isCompleted?: boolean | undefined;
|
|
23
|
-
additionalData?: any;
|
|
24
|
-
}, {
|
|
25
|
-
type: "text";
|
|
26
|
-
text: string;
|
|
27
|
-
isCompleted?: boolean | undefined;
|
|
28
|
-
additionalData?: any;
|
|
29
|
-
}>, z.ZodObject<{
|
|
30
|
-
type: z.ZodLiteral<"tool-invocation">;
|
|
31
|
-
toolInvocation: z.ZodObject<{
|
|
32
|
-
toolCallId: z.ZodString;
|
|
33
|
-
toolName: z.ZodString;
|
|
34
|
-
args: z.ZodAny;
|
|
35
|
-
state: z.ZodString;
|
|
36
|
-
result: z.ZodOptional<z.ZodAny>;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
toolName: string;
|
|
39
|
-
toolCallId: string;
|
|
40
|
-
state: string;
|
|
41
|
-
args?: any;
|
|
42
|
-
result?: any;
|
|
43
|
-
}, {
|
|
44
|
-
toolName: string;
|
|
45
|
-
toolCallId: string;
|
|
46
|
-
state: string;
|
|
47
|
-
args?: any;
|
|
48
|
-
result?: any;
|
|
49
|
-
}>;
|
|
50
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
51
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
-
}, "strip", z.ZodTypeAny, {
|
|
53
|
-
type: "tool-invocation";
|
|
54
|
-
toolInvocation: {
|
|
55
|
-
toolName: string;
|
|
56
|
-
toolCallId: string;
|
|
57
|
-
state: string;
|
|
58
|
-
args?: any;
|
|
59
|
-
result?: any;
|
|
60
|
-
};
|
|
61
|
-
isCompleted?: boolean | undefined;
|
|
62
|
-
additionalData?: any;
|
|
63
|
-
}, {
|
|
64
|
-
type: "tool-invocation";
|
|
65
|
-
toolInvocation: {
|
|
66
|
-
toolName: string;
|
|
67
|
-
toolCallId: string;
|
|
68
|
-
state: string;
|
|
69
|
-
args?: any;
|
|
70
|
-
result?: any;
|
|
71
|
-
};
|
|
72
|
-
isCompleted?: boolean | undefined;
|
|
73
|
-
additionalData?: any;
|
|
74
|
-
}>, z.ZodObject<{
|
|
75
|
-
type: z.ZodString;
|
|
76
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
77
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
79
|
-
type: z.ZodString;
|
|
80
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
81
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
82
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
83
|
-
type: z.ZodString;
|
|
84
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
85
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
86
|
-
}, z.ZodTypeAny, "passthrough">>]>, "many">>;
|
|
87
|
-
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
parts?: ({
|
|
89
|
-
type: "text";
|
|
90
|
-
text: string;
|
|
91
|
-
isCompleted?: boolean | undefined;
|
|
92
|
-
additionalData?: any;
|
|
93
|
-
} | {
|
|
94
|
-
type: "tool-invocation";
|
|
95
|
-
toolInvocation: {
|
|
96
|
-
toolName: string;
|
|
97
|
-
toolCallId: string;
|
|
98
|
-
state: string;
|
|
99
|
-
args?: any;
|
|
100
|
-
result?: any;
|
|
101
|
-
};
|
|
102
|
-
isCompleted?: boolean | undefined;
|
|
103
|
-
additionalData?: any;
|
|
104
|
-
} | z.objectOutputType<{
|
|
105
|
-
type: z.ZodString;
|
|
106
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
107
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
-
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
109
|
-
}, {
|
|
110
|
-
parts?: ({
|
|
111
|
-
type: "text";
|
|
112
|
-
text: string;
|
|
113
|
-
isCompleted?: boolean | undefined;
|
|
114
|
-
additionalData?: any;
|
|
115
|
-
} | {
|
|
116
|
-
type: "tool-invocation";
|
|
117
|
-
toolInvocation: {
|
|
118
|
-
toolName: string;
|
|
119
|
-
toolCallId: string;
|
|
120
|
-
state: string;
|
|
121
|
-
args?: any;
|
|
122
|
-
result?: any;
|
|
123
|
-
};
|
|
124
|
-
isCompleted?: boolean | undefined;
|
|
125
|
-
additionalData?: any;
|
|
126
|
-
} | z.objectInputType<{
|
|
127
|
-
type: z.ZodString;
|
|
128
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
129
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
130
|
-
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
131
|
-
}>, {
|
|
132
|
-
parts?: ({
|
|
133
|
-
type: "text";
|
|
134
|
-
text: string;
|
|
135
|
-
isCompleted?: boolean | undefined;
|
|
136
|
-
additionalData?: any;
|
|
137
|
-
} | {
|
|
138
|
-
type: "tool-invocation";
|
|
139
|
-
toolInvocation: {
|
|
140
|
-
toolName: string;
|
|
141
|
-
toolCallId: string;
|
|
142
|
-
state: string;
|
|
143
|
-
args?: any;
|
|
144
|
-
result?: any;
|
|
145
|
-
};
|
|
146
|
-
isCompleted?: boolean | undefined;
|
|
147
|
-
additionalData?: any;
|
|
148
|
-
} | z.objectOutputType<{
|
|
149
|
-
type: z.ZodString;
|
|
150
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
151
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
-
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
153
|
-
}, unknown>;
|
|
154
13
|
errorMessage: z.ZodOptional<z.ZodObject<{
|
|
155
14
|
error: z.ZodString;
|
|
156
|
-
},
|
|
157
|
-
error: string;
|
|
158
|
-
}, {
|
|
159
|
-
error: string;
|
|
160
|
-
}>>;
|
|
15
|
+
}, z.core.$strip>>;
|
|
161
16
|
isCompleted: z.ZodBoolean;
|
|
162
|
-
},
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
args?: any;
|
|
280
|
-
result?: any;
|
|
281
|
-
};
|
|
282
|
-
isCompleted?: boolean | undefined;
|
|
283
|
-
additionalData?: any;
|
|
284
|
-
} | z.objectOutputType<{
|
|
285
|
-
type: z.ZodString;
|
|
286
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
287
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
288
|
-
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
289
|
-
};
|
|
290
|
-
errorMessage?: {
|
|
291
|
-
error: string;
|
|
292
|
-
} | undefined;
|
|
293
|
-
}[];
|
|
294
|
-
baseUrl?: string | undefined;
|
|
295
|
-
customModelName?: string | undefined;
|
|
296
|
-
createdAt?: Date | undefined;
|
|
297
|
-
}, unknown>, "many">;
|
|
17
|
+
}, z.core.$strip>>;
|
|
18
|
+
createdAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
19
|
+
uiMessages: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
role: z.ZodEnum<{
|
|
22
|
+
system: "system";
|
|
23
|
+
user: "user";
|
|
24
|
+
assistant: "assistant";
|
|
25
|
+
}>;
|
|
26
|
+
metadata: z.ZodOptional<z.ZodUnknown>;
|
|
27
|
+
parts: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
28
|
+
type: z.ZodLiteral<"text">;
|
|
29
|
+
text: z.ZodString;
|
|
30
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
31
|
+
streaming: "streaming";
|
|
32
|
+
done: "done";
|
|
33
|
+
}>>;
|
|
34
|
+
providerMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
type: z.ZodLiteral<"reasoning">;
|
|
37
|
+
text: z.ZodString;
|
|
38
|
+
state: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
streaming: "streaming";
|
|
40
|
+
done: "done";
|
|
41
|
+
}>>;
|
|
42
|
+
providerMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
43
|
+
}, z.core.$strip>, z.ZodUnion<readonly [z.ZodObject<{
|
|
44
|
+
type: z.ZodString;
|
|
45
|
+
toolCallId: z.ZodString;
|
|
46
|
+
state: z.ZodLiteral<"input-streaming">;
|
|
47
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
48
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
50
|
+
type: z.ZodString;
|
|
51
|
+
toolCallId: z.ZodString;
|
|
52
|
+
state: z.ZodLiteral<"input-available">;
|
|
53
|
+
input: z.ZodUnknown;
|
|
54
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
callProviderMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodString;
|
|
58
|
+
toolCallId: z.ZodString;
|
|
59
|
+
state: z.ZodLiteral<"output-available">;
|
|
60
|
+
input: z.ZodUnknown;
|
|
61
|
+
output: z.ZodUnknown;
|
|
62
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
callProviderMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
64
|
+
preliminary: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
type: z.ZodString;
|
|
67
|
+
toolCallId: z.ZodString;
|
|
68
|
+
state: z.ZodLiteral<"output-error">;
|
|
69
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
70
|
+
rawInput: z.ZodOptional<z.ZodUnknown>;
|
|
71
|
+
errorText: z.ZodString;
|
|
72
|
+
providerExecuted: z.ZodOptional<z.ZodBoolean>;
|
|
73
|
+
callProviderMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
74
|
+
}, z.core.$strip>]>, z.ZodUnion<readonly [z.ZodObject<{
|
|
75
|
+
type: z.ZodLiteral<"dynamic-tool">;
|
|
76
|
+
toolName: z.ZodString;
|
|
77
|
+
toolCallId: z.ZodString;
|
|
78
|
+
state: z.ZodLiteral<"input-streaming">;
|
|
79
|
+
input: z.ZodOptional<z.ZodUnknown>;
|
|
80
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
81
|
+
type: z.ZodLiteral<"dynamic-tool">;
|
|
82
|
+
toolName: z.ZodString;
|
|
83
|
+
toolCallId: z.ZodString;
|
|
84
|
+
state: z.ZodLiteral<"input-available">;
|
|
85
|
+
input: z.ZodUnknown;
|
|
86
|
+
callProviderMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
type: z.ZodLiteral<"dynamic-tool">;
|
|
89
|
+
toolName: z.ZodString;
|
|
90
|
+
toolCallId: z.ZodString;
|
|
91
|
+
state: z.ZodLiteral<"output-available">;
|
|
92
|
+
input: z.ZodUnknown;
|
|
93
|
+
output: z.ZodUnknown;
|
|
94
|
+
callProviderMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
95
|
+
preliminary: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
type: z.ZodLiteral<"dynamic-tool">;
|
|
98
|
+
toolName: z.ZodString;
|
|
99
|
+
toolCallId: z.ZodString;
|
|
100
|
+
state: z.ZodLiteral<"output-error">;
|
|
101
|
+
input: z.ZodUnknown;
|
|
102
|
+
errorText: z.ZodString;
|
|
103
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
104
|
+
type: z.ZodLiteral<"step-start">;
|
|
105
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
106
|
+
type: z.ZodLiteral<"source-url">;
|
|
107
|
+
sourceId: z.ZodString;
|
|
108
|
+
url: z.ZodString;
|
|
109
|
+
title: z.ZodOptional<z.ZodString>;
|
|
110
|
+
providerMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
type: z.ZodLiteral<"source-document">;
|
|
113
|
+
sourceId: z.ZodString;
|
|
114
|
+
mediaType: z.ZodString;
|
|
115
|
+
title: z.ZodString;
|
|
116
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
117
|
+
providerMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
+
type: z.ZodLiteral<"file">;
|
|
120
|
+
mediaType: z.ZodString;
|
|
121
|
+
filename: z.ZodOptional<z.ZodString>;
|
|
122
|
+
url: z.ZodOptional<z.ZodString>;
|
|
123
|
+
data: z.ZodOptional<z.ZodString>;
|
|
124
|
+
providerMetadata: z.ZodOptional<z.ZodUnknown>;
|
|
125
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
126
|
+
type: z.ZodString;
|
|
127
|
+
id: z.ZodOptional<z.ZodString>;
|
|
128
|
+
data: z.ZodUnknown;
|
|
129
|
+
}, z.core.$strip>]>>;
|
|
130
|
+
}, z.core.$strip>>;
|
|
131
|
+
toolAdditionalData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
132
|
+
messagesRevision: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
133
|
+
}, z.core.$strip>>>;
|
|
298
134
|
currentSessionId: z.ZodOptional<z.ZodString>;
|
|
299
|
-
},
|
|
300
|
-
sessions: {
|
|
301
|
-
id: string;
|
|
302
|
-
name: string;
|
|
303
|
-
modelProvider: string;
|
|
304
|
-
model: string;
|
|
305
|
-
analysisResults: {
|
|
306
|
-
isCompleted: boolean;
|
|
307
|
-
id: string;
|
|
308
|
-
prompt: string;
|
|
309
|
-
streamMessage: {
|
|
310
|
-
parts?: ({
|
|
311
|
-
type: "text";
|
|
312
|
-
text: string;
|
|
313
|
-
isCompleted?: boolean | undefined;
|
|
314
|
-
additionalData?: any;
|
|
315
|
-
} | {
|
|
316
|
-
type: "tool-invocation";
|
|
317
|
-
toolInvocation: {
|
|
318
|
-
toolName: string;
|
|
319
|
-
toolCallId: string;
|
|
320
|
-
state: string;
|
|
321
|
-
args?: any;
|
|
322
|
-
result?: any;
|
|
323
|
-
};
|
|
324
|
-
isCompleted?: boolean | undefined;
|
|
325
|
-
additionalData?: any;
|
|
326
|
-
} | z.objectOutputType<{
|
|
327
|
-
type: z.ZodString;
|
|
328
|
-
additionalData: z.ZodOptional<z.ZodAny>;
|
|
329
|
-
isCompleted: z.ZodOptional<z.ZodBoolean>;
|
|
330
|
-
}, z.ZodTypeAny, "passthrough">)[] | undefined;
|
|
331
|
-
};
|
|
332
|
-
errorMessage?: {
|
|
333
|
-
error: string;
|
|
334
|
-
} | undefined;
|
|
335
|
-
}[];
|
|
336
|
-
baseUrl?: string | undefined;
|
|
337
|
-
customModelName?: string | undefined;
|
|
338
|
-
createdAt?: Date | undefined;
|
|
339
|
-
}[];
|
|
340
|
-
currentSessionId?: string | undefined;
|
|
341
|
-
}, {
|
|
342
|
-
sessions: unknown[];
|
|
343
|
-
currentSessionId?: string | undefined;
|
|
344
|
-
}>;
|
|
135
|
+
}, z.core.$strip>;
|
|
345
136
|
export type AiSliceConfig = z.infer<typeof AiSliceConfig>;
|
|
346
137
|
export declare function createDefaultAiConfig(props?: Partial<AiSliceConfig>): AiSliceConfig;
|
|
347
138
|
//# sourceMappingURL=AiSliceConfig.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiSliceConfig.d.ts","sourceRoot":"","sources":["../src/AiSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"AiSliceConfig.d.ts","sourceRoot":"","sources":["../src/AiSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAItB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,wBAAgB,qBAAqB,CACnC,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAC7B,aAAa,CAmBf"}
|
package/dist/AiSliceConfig.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { AnalysisSessionSchema } from './AnalysisSessionSchema';
|
|
2
|
+
import { AnalysisSessionSchema } from './schema/AnalysisSessionSchema';
|
|
3
3
|
import { createId } from '@paralleldrive/cuid2';
|
|
4
4
|
export const AiSliceConfig = z.object({
|
|
5
5
|
sessions: z.array(AnalysisSessionSchema),
|
|
@@ -16,6 +16,9 @@ export function createDefaultAiConfig(props) {
|
|
|
16
16
|
model: 'gpt-4.1',
|
|
17
17
|
analysisResults: [],
|
|
18
18
|
createdAt: new Date(),
|
|
19
|
+
uiMessages: [],
|
|
20
|
+
toolAdditionalData: {},
|
|
21
|
+
messagesRevision: 0,
|
|
19
22
|
},
|
|
20
23
|
],
|
|
21
24
|
currentSessionId: defaultSessionId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AiSliceConfig.js","sourceRoot":"","sources":["../src/AiSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,qBAAqB,EAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"AiSliceConfig.js","sourceRoot":"","sources":["../src/AiSliceConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,qBAAqB,EAAC,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAE9C,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,qBAAqB,CAAC;IACxC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAC,CAAC;AAGH,MAAM,UAAU,qBAAqB,CACnC,KAA8B;IAE9B,MAAM,gBAAgB,GAAG,QAAQ,EAAE,CAAC;IACpC,OAAO;QACL,QAAQ,EAAE;YACR;gBACE,EAAE,EAAE,gBAAgB;gBACpB,IAAI,EAAE,iBAAiB;gBACvB,aAAa,EAAE,QAAQ;gBACvB,KAAK,EAAE,SAAS;gBAChB,eAAe,EAAE,EAAE;gBACnB,SAAS,EAAE,IAAI,IAAI,EAAE;gBACrB,UAAU,EAAE,EAAE;gBACd,kBAAkB,EAAE,EAAE;gBACtB,gBAAgB,EAAE,CAAC;aACpB;SACF;QACD,gBAAgB,EAAE,gBAAgB;QAClC,GAAG,KAAK;KACT,CAAC;AACJ,CAAC","sourcesContent":["import {z} from 'zod';\nimport {AnalysisSessionSchema} from './schema/AnalysisSessionSchema';\nimport {createId} from '@paralleldrive/cuid2';\n\nexport const AiSliceConfig = z.object({\n sessions: z.array(AnalysisSessionSchema),\n currentSessionId: z.string().optional(),\n});\nexport type AiSliceConfig = z.infer<typeof AiSliceConfig>;\n\nexport function createDefaultAiConfig(\n props?: Partial<AiSliceConfig>,\n): AiSliceConfig {\n const defaultSessionId = createId();\n return {\n sessions: [\n {\n id: defaultSessionId,\n name: 'Default Session',\n modelProvider: 'openai',\n model: 'gpt-4.1',\n analysisResults: [],\n createdAt: new Date(),\n uiMessages: [],\n toolAdditionalData: {},\n messagesRevision: 0,\n },\n ],\n currentSessionId: defaultSessionId,\n ...props,\n };\n}\n"]}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { AiSliceConfig, createDefaultAiConfig } from './AiSliceConfig';
|
|
2
2
|
export { AiSettingsSliceConfig } from './AiSettingsSliceConfig';
|
|
3
|
-
export { AnalysisSessionSchema, AnalysisResultSchema, ErrorMessageSchema, } from './AnalysisSessionSchema';
|
|
3
|
+
export { AnalysisSessionSchema, AnalysisResultSchema, ErrorMessageSchema, } from './schema/AnalysisSessionSchema';
|
|
4
|
+
export type { ToolUIPart, UIMessagePart } from './schema/UIMessageSchema';
|
|
4
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,qBAAqB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,qBAAqB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AACxC,YAAY,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { AiSliceConfig, createDefaultAiConfig } from './AiSliceConfig';
|
|
2
2
|
export { AiSettingsSliceConfig } from './AiSettingsSliceConfig';
|
|
3
|
-
export { AnalysisSessionSchema, AnalysisResultSchema, ErrorMessageSchema, } from './AnalysisSessionSchema';
|
|
3
|
+
export { AnalysisSessionSchema, AnalysisResultSchema, ErrorMessageSchema, } from './schema/AnalysisSessionSchema';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,qBAAqB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,qBAAqB,EAAC,MAAM,iBAAiB,CAAC;AACrE,OAAO,EAAC,qBAAqB,EAAC,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,gCAAgC,CAAC","sourcesContent":["export {AiSliceConfig, createDefaultAiConfig} from './AiSliceConfig';\nexport {AiSettingsSliceConfig} from './AiSettingsSliceConfig';\nexport {\n AnalysisSessionSchema,\n AnalysisResultSchema,\n ErrorMessageSchema,\n} from './schema/AnalysisSessionSchema';\nexport type {ToolUIPart, UIMessagePart} from './schema/UIMessageSchema';\n"]}
|