@dexto/core 1.6.27 → 1.7.0

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.
Files changed (68) hide show
  1. package/dist/agent/DextoAgent.d.ts +3 -3
  2. package/dist/agent/DextoAgent.d.ts.map +1 -1
  3. package/dist/agent/schemas.cjs +5 -5
  4. package/dist/agent/schemas.d.ts +69 -980
  5. package/dist/agent/schemas.d.ts.map +1 -1
  6. package/dist/agent/schemas.js +5 -5
  7. package/dist/approval/schemas.cjs +6 -6
  8. package/dist/approval/schemas.d.ts +316 -1292
  9. package/dist/approval/schemas.d.ts.map +1 -1
  10. package/dist/approval/schemas.js +6 -6
  11. package/dist/approval/session-approval-store.cjs +1 -1
  12. package/dist/approval/session-approval-store.d.ts +12 -30
  13. package/dist/approval/session-approval-store.d.ts.map +1 -1
  14. package/dist/approval/session-approval-store.js +1 -1
  15. package/dist/llm/providers/local/schemas.d.ts +102 -262
  16. package/dist/llm/providers/local/schemas.d.ts.map +1 -1
  17. package/dist/llm/registry/index.d.ts +5 -3
  18. package/dist/llm/registry/index.d.ts.map +1 -1
  19. package/dist/llm/resolver.cjs +0 -1
  20. package/dist/llm/resolver.d.ts.map +1 -1
  21. package/dist/llm/resolver.js +0 -1
  22. package/dist/llm/schemas.d.ts +95 -199
  23. package/dist/llm/schemas.d.ts.map +1 -1
  24. package/dist/logger/default-logger-factory.d.ts +28 -256
  25. package/dist/logger/default-logger-factory.d.ts.map +1 -1
  26. package/dist/logger/v2/schemas.d.ts +18 -120
  27. package/dist/logger/v2/schemas.d.ts.map +1 -1
  28. package/dist/mcp/schemas.cjs +4 -4
  29. package/dist/mcp/schemas.d.ts +77 -270
  30. package/dist/mcp/schemas.d.ts.map +1 -1
  31. package/dist/mcp/schemas.js +4 -4
  32. package/dist/memory/schemas.d.ts +37 -117
  33. package/dist/memory/schemas.d.ts.map +1 -1
  34. package/dist/prompts/schemas.d.ts +46 -190
  35. package/dist/prompts/schemas.d.ts.map +1 -1
  36. package/dist/resources/schemas.d.ts +14 -68
  37. package/dist/resources/schemas.d.ts.map +1 -1
  38. package/dist/runtime/host-runtime.d.ts +1 -5
  39. package/dist/runtime/host-runtime.d.ts.map +1 -1
  40. package/dist/session/schemas.d.ts +1 -7
  41. package/dist/session/schemas.d.ts.map +1 -1
  42. package/dist/systemPrompt/schemas.cjs +2 -10
  43. package/dist/systemPrompt/schemas.d.ts +53 -343
  44. package/dist/systemPrompt/schemas.d.ts.map +1 -1
  45. package/dist/systemPrompt/schemas.js +2 -10
  46. package/dist/telemetry/schemas.cjs +1 -1
  47. package/dist/telemetry/schemas.d.ts +9 -44
  48. package/dist/telemetry/schemas.d.ts.map +1 -1
  49. package/dist/telemetry/schemas.js +1 -1
  50. package/dist/tools/schemas.cjs +1 -1
  51. package/dist/tools/schemas.d.ts +19 -62
  52. package/dist/tools/schemas.d.ts.map +1 -1
  53. package/dist/tools/schemas.js +1 -1
  54. package/dist/tools/session-tool-preferences-store.d.ts +3 -9
  55. package/dist/tools/session-tool-preferences-store.d.ts.map +1 -1
  56. package/dist/utils/result.cjs +11 -8
  57. package/dist/utils/result.d.ts +6 -6
  58. package/dist/utils/result.d.ts.map +1 -1
  59. package/dist/utils/result.js +12 -9
  60. package/dist/utils/schema.cjs +6 -2
  61. package/dist/utils/schema.d.ts +2 -7
  62. package/dist/utils/schema.d.ts.map +1 -1
  63. package/dist/utils/schema.js +6 -2
  64. package/dist/utils/zod-schema-converter.cjs +66 -66
  65. package/dist/utils/zod-schema-converter.d.ts +3 -2
  66. package/dist/utils/zod-schema-converter.d.ts.map +1 -1
  67. package/dist/utils/zod-schema-converter.js +66 -66
  68. package/package.json +4 -5
@@ -1,259 +1,81 @@
1
1
  import { z } from 'zod';
2
- export declare const ContributorConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2
+ export declare const ContributorConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  priority: z.ZodNumber;
5
5
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
6
- } & {
7
6
  type: z.ZodLiteral<"static">;
8
7
  content: z.ZodString;
9
- }, "strict", z.ZodTypeAny, {
10
- type: "static";
11
- enabled: boolean;
12
- content: string;
13
- id: string;
14
- priority: number;
15
- }, {
16
- type: "static";
17
- content: string;
18
- id: string;
19
- priority: number;
20
- enabled?: boolean | undefined;
21
- }>, z.ZodObject<{
8
+ }, z.core.$strict>, z.ZodObject<{
22
9
  id: z.ZodString;
23
10
  priority: z.ZodNumber;
24
11
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
25
- } & {
26
12
  type: z.ZodLiteral<"dynamic">;
27
- source: z.ZodEnum<["date", "env", "resources"]>;
28
- }, "strict", z.ZodTypeAny, {
29
- type: "dynamic";
30
- enabled: boolean;
31
- id: string;
32
- priority: number;
33
- source: "date" | "env" | "resources";
34
- }, {
35
- type: "dynamic";
36
- id: string;
37
- priority: number;
38
- source: "date" | "env" | "resources";
39
- enabled?: boolean | undefined;
40
- }>, z.ZodObject<{
13
+ source: z.ZodEnum<{
14
+ date: "date";
15
+ env: "env";
16
+ resources: "resources";
17
+ }>;
18
+ }, z.core.$strict>, z.ZodObject<{
41
19
  id: z.ZodString;
42
20
  priority: z.ZodNumber;
43
21
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
44
- } & {
45
22
  type: z.ZodLiteral<"file">;
46
- files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
47
- options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
23
+ files: z.ZodArray<z.ZodString>;
24
+ options: z.ZodPrefault<z.ZodOptional<z.ZodObject<{
48
25
  includeFilenames: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
49
26
  separator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
50
- errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip", "error"]>>>;
27
+ errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
28
+ error: "error";
29
+ skip: "skip";
30
+ }>>>;
51
31
  maxFileSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
52
32
  includeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
53
- }, "strict", z.ZodTypeAny, {
54
- includeFilenames: boolean;
55
- separator: string;
56
- errorHandling: "error" | "skip";
57
- maxFileSize: number;
58
- includeMetadata: boolean;
59
- }, {
60
- includeFilenames?: boolean | undefined;
61
- separator?: string | undefined;
62
- errorHandling?: "error" | "skip" | undefined;
63
- maxFileSize?: number | undefined;
64
- includeMetadata?: boolean | undefined;
65
- }>>>;
66
- }, "strict", z.ZodTypeAny, {
67
- type: "file";
68
- options: {
69
- includeFilenames: boolean;
70
- separator: string;
71
- errorHandling: "error" | "skip";
72
- maxFileSize: number;
73
- includeMetadata: boolean;
74
- };
75
- enabled: boolean;
76
- id: string;
77
- priority: number;
78
- files: string[];
79
- }, {
80
- type: "file";
81
- id: string;
82
- priority: number;
83
- files: string[];
84
- options?: {
85
- includeFilenames?: boolean | undefined;
86
- separator?: string | undefined;
87
- errorHandling?: "error" | "skip" | undefined;
88
- maxFileSize?: number | undefined;
89
- includeMetadata?: boolean | undefined;
90
- } | undefined;
91
- enabled?: boolean | undefined;
92
- }>]>;
33
+ }, z.core.$strict>>>;
34
+ }, z.core.$strict>], "type">;
93
35
  export type ContributorConfig = z.input<typeof ContributorConfigSchema>;
94
36
  export type ValidatedContributorConfig = z.output<typeof ContributorConfigSchema>;
95
37
  export declare const SessionPromptContributorSchema: z.ZodObject<{
96
38
  id: z.ZodString;
97
39
  priority: z.ZodNumber;
98
40
  content: z.ZodString;
99
- }, "strict", z.ZodTypeAny, {
100
- content: string;
101
- id: string;
102
- priority: number;
103
- }, {
104
- content: string;
105
- id: string;
106
- priority: number;
107
- }>;
41
+ }, z.core.$strict>;
108
42
  export type SessionPromptContributor = z.output<typeof SessionPromptContributorSchema>;
109
43
  export declare const SystemPromptContributorsSchema: z.ZodObject<{
110
- contributors: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
44
+ contributors: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
111
45
  id: z.ZodString;
112
46
  priority: z.ZodNumber;
113
47
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
114
- } & {
115
48
  type: z.ZodLiteral<"static">;
116
49
  content: z.ZodString;
117
- }, "strict", z.ZodTypeAny, {
118
- type: "static";
119
- enabled: boolean;
120
- content: string;
121
- id: string;
122
- priority: number;
123
- }, {
124
- type: "static";
125
- content: string;
126
- id: string;
127
- priority: number;
128
- enabled?: boolean | undefined;
129
- }>, z.ZodObject<{
50
+ }, z.core.$strict>, z.ZodObject<{
130
51
  id: z.ZodString;
131
52
  priority: z.ZodNumber;
132
53
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
133
- } & {
134
54
  type: z.ZodLiteral<"dynamic">;
135
- source: z.ZodEnum<["date", "env", "resources"]>;
136
- }, "strict", z.ZodTypeAny, {
137
- type: "dynamic";
138
- enabled: boolean;
139
- id: string;
140
- priority: number;
141
- source: "date" | "env" | "resources";
142
- }, {
143
- type: "dynamic";
144
- id: string;
145
- priority: number;
146
- source: "date" | "env" | "resources";
147
- enabled?: boolean | undefined;
148
- }>, z.ZodObject<{
55
+ source: z.ZodEnum<{
56
+ date: "date";
57
+ env: "env";
58
+ resources: "resources";
59
+ }>;
60
+ }, z.core.$strict>, z.ZodObject<{
149
61
  id: z.ZodString;
150
62
  priority: z.ZodNumber;
151
63
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
152
- } & {
153
64
  type: z.ZodLiteral<"file">;
154
- files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
155
- options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
65
+ files: z.ZodArray<z.ZodString>;
66
+ options: z.ZodPrefault<z.ZodOptional<z.ZodObject<{
156
67
  includeFilenames: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
157
68
  separator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
158
- errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip", "error"]>>>;
69
+ errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
70
+ error: "error";
71
+ skip: "skip";
72
+ }>>>;
159
73
  maxFileSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
160
74
  includeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
161
- }, "strict", z.ZodTypeAny, {
162
- includeFilenames: boolean;
163
- separator: string;
164
- errorHandling: "error" | "skip";
165
- maxFileSize: number;
166
- includeMetadata: boolean;
167
- }, {
168
- includeFilenames?: boolean | undefined;
169
- separator?: string | undefined;
170
- errorHandling?: "error" | "skip" | undefined;
171
- maxFileSize?: number | undefined;
172
- includeMetadata?: boolean | undefined;
173
- }>>>;
174
- }, "strict", z.ZodTypeAny, {
175
- type: "file";
176
- options: {
177
- includeFilenames: boolean;
178
- separator: string;
179
- errorHandling: "error" | "skip";
180
- maxFileSize: number;
181
- includeMetadata: boolean;
182
- };
183
- enabled: boolean;
184
- id: string;
185
- priority: number;
186
- files: string[];
187
- }, {
188
- type: "file";
189
- id: string;
190
- priority: number;
191
- files: string[];
192
- options?: {
193
- includeFilenames?: boolean | undefined;
194
- separator?: string | undefined;
195
- errorHandling?: "error" | "skip" | undefined;
196
- maxFileSize?: number | undefined;
197
- includeMetadata?: boolean | undefined;
198
- } | undefined;
199
- enabled?: boolean | undefined;
200
- }>]>, "many">>;
201
- }, "strict", z.ZodTypeAny, {
202
- contributors: ({
203
- type: "static";
204
- enabled: boolean;
205
- content: string;
206
- id: string;
207
- priority: number;
208
- } | {
209
- type: "dynamic";
210
- enabled: boolean;
211
- id: string;
212
- priority: number;
213
- source: "date" | "env" | "resources";
214
- } | {
215
- type: "file";
216
- options: {
217
- includeFilenames: boolean;
218
- separator: string;
219
- errorHandling: "error" | "skip";
220
- maxFileSize: number;
221
- includeMetadata: boolean;
222
- };
223
- enabled: boolean;
224
- id: string;
225
- priority: number;
226
- files: string[];
227
- })[];
228
- }, {
229
- contributors?: ({
230
- type: "static";
231
- content: string;
232
- id: string;
233
- priority: number;
234
- enabled?: boolean | undefined;
235
- } | {
236
- type: "dynamic";
237
- id: string;
238
- priority: number;
239
- source: "date" | "env" | "resources";
240
- enabled?: boolean | undefined;
241
- } | {
242
- type: "file";
243
- id: string;
244
- priority: number;
245
- files: string[];
246
- options?: {
247
- includeFilenames?: boolean | undefined;
248
- separator?: string | undefined;
249
- errorHandling?: "error" | "skip" | undefined;
250
- maxFileSize?: number | undefined;
251
- includeMetadata?: boolean | undefined;
252
- } | undefined;
253
- enabled?: boolean | undefined;
254
- })[] | undefined;
255
- }>;
256
- export declare const SystemPromptConfigSchema: z.ZodBranded<z.ZodUnion<[z.ZodEffects<z.ZodString, {
75
+ }, z.core.$strict>>>;
76
+ }, z.core.$strict>], "type">>>;
77
+ }, z.core.$strict>;
78
+ export declare const SystemPromptConfigSchema: z.core.$ZodBranded<z.ZodUnion<readonly [z.ZodPipe<z.ZodString, z.ZodTransform<{
257
79
  contributors: {
258
80
  id: string;
259
81
  type: "static";
@@ -261,153 +83,41 @@ export declare const SystemPromptConfigSchema: z.ZodBranded<z.ZodUnion<[z.ZodEff
261
83
  priority: number;
262
84
  enabled: boolean;
263
85
  }[];
264
- }, string>, z.ZodObject<{
265
- contributors: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
86
+ }, string>>, z.ZodObject<{
87
+ contributors: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
266
88
  id: z.ZodString;
267
89
  priority: z.ZodNumber;
268
90
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
269
- } & {
270
91
  type: z.ZodLiteral<"static">;
271
92
  content: z.ZodString;
272
- }, "strict", z.ZodTypeAny, {
273
- type: "static";
274
- enabled: boolean;
275
- content: string;
276
- id: string;
277
- priority: number;
278
- }, {
279
- type: "static";
280
- content: string;
281
- id: string;
282
- priority: number;
283
- enabled?: boolean | undefined;
284
- }>, z.ZodObject<{
93
+ }, z.core.$strict>, z.ZodObject<{
285
94
  id: z.ZodString;
286
95
  priority: z.ZodNumber;
287
96
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
288
- } & {
289
97
  type: z.ZodLiteral<"dynamic">;
290
- source: z.ZodEnum<["date", "env", "resources"]>;
291
- }, "strict", z.ZodTypeAny, {
292
- type: "dynamic";
293
- enabled: boolean;
294
- id: string;
295
- priority: number;
296
- source: "date" | "env" | "resources";
297
- }, {
298
- type: "dynamic";
299
- id: string;
300
- priority: number;
301
- source: "date" | "env" | "resources";
302
- enabled?: boolean | undefined;
303
- }>, z.ZodObject<{
98
+ source: z.ZodEnum<{
99
+ date: "date";
100
+ env: "env";
101
+ resources: "resources";
102
+ }>;
103
+ }, z.core.$strict>, z.ZodObject<{
304
104
  id: z.ZodString;
305
105
  priority: z.ZodNumber;
306
106
  enabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
307
- } & {
308
107
  type: z.ZodLiteral<"file">;
309
- files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
310
- options: z.ZodDefault<z.ZodOptional<z.ZodObject<{
108
+ files: z.ZodArray<z.ZodString>;
109
+ options: z.ZodPrefault<z.ZodOptional<z.ZodObject<{
311
110
  includeFilenames: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
312
111
  separator: z.ZodDefault<z.ZodOptional<z.ZodString>>;
313
- errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<["skip", "error"]>>>;
112
+ errorHandling: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
113
+ error: "error";
114
+ skip: "skip";
115
+ }>>>;
314
116
  maxFileSize: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
315
117
  includeMetadata: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
316
- }, "strict", z.ZodTypeAny, {
317
- includeFilenames: boolean;
318
- separator: string;
319
- errorHandling: "error" | "skip";
320
- maxFileSize: number;
321
- includeMetadata: boolean;
322
- }, {
323
- includeFilenames?: boolean | undefined;
324
- separator?: string | undefined;
325
- errorHandling?: "error" | "skip" | undefined;
326
- maxFileSize?: number | undefined;
327
- includeMetadata?: boolean | undefined;
328
- }>>>;
329
- }, "strict", z.ZodTypeAny, {
330
- type: "file";
331
- options: {
332
- includeFilenames: boolean;
333
- separator: string;
334
- errorHandling: "error" | "skip";
335
- maxFileSize: number;
336
- includeMetadata: boolean;
337
- };
338
- enabled: boolean;
339
- id: string;
340
- priority: number;
341
- files: string[];
342
- }, {
343
- type: "file";
344
- id: string;
345
- priority: number;
346
- files: string[];
347
- options?: {
348
- includeFilenames?: boolean | undefined;
349
- separator?: string | undefined;
350
- errorHandling?: "error" | "skip" | undefined;
351
- maxFileSize?: number | undefined;
352
- includeMetadata?: boolean | undefined;
353
- } | undefined;
354
- enabled?: boolean | undefined;
355
- }>]>, "many">>;
356
- }, "strict", z.ZodTypeAny, {
357
- contributors: ({
358
- type: "static";
359
- enabled: boolean;
360
- content: string;
361
- id: string;
362
- priority: number;
363
- } | {
364
- type: "dynamic";
365
- enabled: boolean;
366
- id: string;
367
- priority: number;
368
- source: "date" | "env" | "resources";
369
- } | {
370
- type: "file";
371
- options: {
372
- includeFilenames: boolean;
373
- separator: string;
374
- errorHandling: "error" | "skip";
375
- maxFileSize: number;
376
- includeMetadata: boolean;
377
- };
378
- enabled: boolean;
379
- id: string;
380
- priority: number;
381
- files: string[];
382
- })[];
383
- }, {
384
- contributors?: ({
385
- type: "static";
386
- content: string;
387
- id: string;
388
- priority: number;
389
- enabled?: boolean | undefined;
390
- } | {
391
- type: "dynamic";
392
- id: string;
393
- priority: number;
394
- source: "date" | "env" | "resources";
395
- enabled?: boolean | undefined;
396
- } | {
397
- type: "file";
398
- id: string;
399
- priority: number;
400
- files: string[];
401
- options?: {
402
- includeFilenames?: boolean | undefined;
403
- separator?: string | undefined;
404
- errorHandling?: "error" | "skip" | undefined;
405
- maxFileSize?: number | undefined;
406
- includeMetadata?: boolean | undefined;
407
- } | undefined;
408
- enabled?: boolean | undefined;
409
- })[] | undefined;
410
- }>]>, "ValidatedSystemPromptConfig">;
118
+ }, z.core.$strict>>>;
119
+ }, z.core.$strict>], "type">>>;
120
+ }, z.core.$strict>]>, "ValidatedSystemPromptConfig", "out">;
411
121
  export type SystemPromptConfig = z.input<typeof SystemPromptConfigSchema>;
412
122
  export type ValidatedSystemPromptConfig = z.output<typeof SystemPromptConfigSchema>;
413
123
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/systemPrompt/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0FxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAkB/B,CAAC;AAGN,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAElF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;EAY9B,CAAC;AAEd,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEvF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8B9B,CAAC;AAGd,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAUM,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/systemPrompt/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AA0FxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4BAU/B,CAAC;AAGN,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAElF,eAAO,MAAM,8BAA8B;;;;kBAY9B,CAAC;AAEd,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,8BAA8B,CAAC,CAAC;AAEvF,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBA8B9B,CAAC;AAGd,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DAUM,CAAC;AAG5C,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
@@ -39,22 +39,14 @@ const FileContributorSchema = BaseContributorSchema.extend({
39
39
  includeMetadata: z.boolean().optional().default(false).describe(
40
40
  "Whether to include file metadata (size, modification time) in the context"
41
41
  )
42
- }).strict().optional().default({})
42
+ }).strict().optional().prefault({})
43
43
  }).strict();
44
44
  const ContributorConfigSchema = z.discriminatedUnion(
45
45
  "type",
46
46
  // The field to discriminate on
47
47
  [StaticContributorSchema, DynamicContributorSchema, FileContributorSchema],
48
48
  {
49
- // Optional: Custom error message for invalid discriminator
50
- errorMap: (issue, ctx) => {
51
- if (issue.code === z.ZodIssueCode.invalid_union_discriminator) {
52
- return {
53
- message: `Invalid contributor type. Expected 'static', 'dynamic', or 'file'. Note: memory contributors are now configured via the top-level 'memories' config.`
54
- };
55
- }
56
- return { message: ctx.defaultError };
57
- }
49
+ error: `Invalid contributor type. Expected 'static', 'dynamic', or 'file'. Note: memory contributors are now configured via the top-level 'memories' config.`
58
50
  }
59
51
  ).describe(
60
52
  "Configuration for a system prompt contributor. Type 'static' requires 'content', type 'dynamic' requires 'source', type 'file' requires 'files'."
@@ -58,7 +58,7 @@ const OtelConfigurationSchema = import_zod.z.object({
58
58
  import_zod.z.string().regex(/^[\w.-]+:\d+$/)
59
59
  // host:port
60
60
  ]).optional(),
61
- headers: import_zod.z.record(import_zod.z.string()).optional()
61
+ headers: import_zod.z.record(import_zod.z.string(), import_zod.z.string()).optional()
62
62
  }),
63
63
  import_zod.z.object({
64
64
  type: import_zod.z.literal("console")
@@ -3,52 +3,17 @@ export declare const OtelConfigurationSchema: z.ZodObject<{
3
3
  serviceName: z.ZodOptional<z.ZodString>;
4
4
  enabled: z.ZodOptional<z.ZodBoolean>;
5
5
  tracerName: z.ZodOptional<z.ZodString>;
6
- export: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
6
+ export: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
7
7
  type: z.ZodLiteral<"otlp">;
8
- protocol: z.ZodOptional<z.ZodEnum<["grpc", "http"]>>;
9
- endpoint: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
8
+ protocol: z.ZodOptional<z.ZodEnum<{
9
+ http: "http";
10
+ grpc: "grpc";
11
+ }>>;
12
+ endpoint: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodString]>>;
10
13
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
11
- }, "strip", z.ZodTypeAny, {
12
- type: "otlp";
13
- headers?: Record<string, string> | undefined;
14
- protocol?: "http" | "grpc" | undefined;
15
- endpoint?: string | undefined;
16
- }, {
17
- type: "otlp";
18
- headers?: Record<string, string> | undefined;
19
- protocol?: "http" | "grpc" | undefined;
20
- endpoint?: string | undefined;
21
- }>, z.ZodObject<{
14
+ }, z.core.$strip>, z.ZodObject<{
22
15
  type: z.ZodLiteral<"console">;
23
- }, "strip", z.ZodTypeAny, {
24
- type: "console";
25
- }, {
26
- type: "console";
27
- }>]>>;
28
- }, "strip", z.ZodTypeAny, {
29
- enabled?: boolean | undefined;
30
- serviceName?: string | undefined;
31
- tracerName?: string | undefined;
32
- export?: {
33
- type: "otlp";
34
- headers?: Record<string, string> | undefined;
35
- protocol?: "http" | "grpc" | undefined;
36
- endpoint?: string | undefined;
37
- } | {
38
- type: "console";
39
- } | undefined;
40
- }, {
41
- enabled?: boolean | undefined;
42
- serviceName?: string | undefined;
43
- tracerName?: string | undefined;
44
- export?: {
45
- type: "otlp";
46
- headers?: Record<string, string> | undefined;
47
- protocol?: "http" | "grpc" | undefined;
48
- endpoint?: string | undefined;
49
- } | {
50
- type: "console";
51
- } | undefined;
52
- }>;
16
+ }, z.core.$strip>]>>;
17
+ }, z.core.$strip>;
53
18
  export type OtelConfiguration = z.output<typeof OtelConfigurationSchema>;
54
19
  //# sourceMappingURL=schemas.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/telemetry/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6ClC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/telemetry/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;iBA6ClC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -36,7 +36,7 @@ const OtelConfigurationSchema = z.object({
36
36
  z.string().regex(/^[\w.-]+:\d+$/)
37
37
  // host:port
38
38
  ]).optional(),
39
- headers: z.record(z.string()).optional()
39
+ headers: z.record(z.string(), z.string()).optional()
40
40
  }),
41
41
  z.object({
42
42
  type: z.literal("console")
@@ -71,7 +71,7 @@ const ToolLimitsSchema = import_zod.z.object({
71
71
  maxLines: import_zod.z.number().optional().describe("Maximum number of lines for tool output"),
72
72
  maxLineLength: import_zod.z.number().optional().describe("Maximum length of a single line")
73
73
  }).strict();
74
- const ToolsConfigSchema = import_zod.z.record(ToolLimitsSchema).describe("Per-tool configuration limits");
74
+ const ToolsConfigSchema = import_zod.z.record(import_zod.z.string(), ToolLimitsSchema).describe("Per-tool configuration limits");
75
75
  // Annotate the CommonJS export names for ESM import in node:
76
76
  0 && (module.exports = {
77
77
  ALLOWED_TOOLS_STORAGE_TYPES,