@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.
- package/dist/agent/DextoAgent.d.ts +3 -3
- package/dist/agent/DextoAgent.d.ts.map +1 -1
- package/dist/agent/schemas.cjs +5 -5
- package/dist/agent/schemas.d.ts +69 -980
- package/dist/agent/schemas.d.ts.map +1 -1
- package/dist/agent/schemas.js +5 -5
- package/dist/approval/schemas.cjs +6 -6
- package/dist/approval/schemas.d.ts +316 -1292
- package/dist/approval/schemas.d.ts.map +1 -1
- package/dist/approval/schemas.js +6 -6
- package/dist/approval/session-approval-store.cjs +1 -1
- package/dist/approval/session-approval-store.d.ts +12 -30
- package/dist/approval/session-approval-store.d.ts.map +1 -1
- package/dist/approval/session-approval-store.js +1 -1
- package/dist/llm/providers/local/schemas.d.ts +102 -262
- package/dist/llm/providers/local/schemas.d.ts.map +1 -1
- package/dist/llm/registry/index.d.ts +5 -3
- package/dist/llm/registry/index.d.ts.map +1 -1
- package/dist/llm/resolver.cjs +0 -1
- package/dist/llm/resolver.d.ts.map +1 -1
- package/dist/llm/resolver.js +0 -1
- package/dist/llm/schemas.d.ts +95 -199
- package/dist/llm/schemas.d.ts.map +1 -1
- package/dist/logger/default-logger-factory.d.ts +28 -256
- package/dist/logger/default-logger-factory.d.ts.map +1 -1
- package/dist/logger/v2/schemas.d.ts +18 -120
- package/dist/logger/v2/schemas.d.ts.map +1 -1
- package/dist/mcp/schemas.cjs +4 -4
- package/dist/mcp/schemas.d.ts +77 -270
- package/dist/mcp/schemas.d.ts.map +1 -1
- package/dist/mcp/schemas.js +4 -4
- package/dist/memory/schemas.d.ts +37 -117
- package/dist/memory/schemas.d.ts.map +1 -1
- package/dist/prompts/schemas.d.ts +46 -190
- package/dist/prompts/schemas.d.ts.map +1 -1
- package/dist/resources/schemas.d.ts +14 -68
- package/dist/resources/schemas.d.ts.map +1 -1
- package/dist/runtime/host-runtime.d.ts +1 -5
- package/dist/runtime/host-runtime.d.ts.map +1 -1
- package/dist/session/schemas.d.ts +1 -7
- package/dist/session/schemas.d.ts.map +1 -1
- package/dist/systemPrompt/schemas.cjs +2 -10
- package/dist/systemPrompt/schemas.d.ts +53 -343
- package/dist/systemPrompt/schemas.d.ts.map +1 -1
- package/dist/systemPrompt/schemas.js +2 -10
- package/dist/telemetry/schemas.cjs +1 -1
- package/dist/telemetry/schemas.d.ts +9 -44
- package/dist/telemetry/schemas.d.ts.map +1 -1
- package/dist/telemetry/schemas.js +1 -1
- package/dist/tools/schemas.cjs +1 -1
- package/dist/tools/schemas.d.ts +19 -62
- package/dist/tools/schemas.d.ts.map +1 -1
- package/dist/tools/schemas.js +1 -1
- package/dist/tools/session-tool-preferences-store.d.ts +3 -9
- package/dist/tools/session-tool-preferences-store.d.ts.map +1 -1
- package/dist/utils/result.cjs +11 -8
- package/dist/utils/result.d.ts +6 -6
- package/dist/utils/result.d.ts.map +1 -1
- package/dist/utils/result.js +12 -9
- package/dist/utils/schema.cjs +6 -2
- package/dist/utils/schema.d.ts +2 -7
- package/dist/utils/schema.d.ts.map +1 -1
- package/dist/utils/schema.js +6 -2
- package/dist/utils/zod-schema-converter.cjs +66 -66
- package/dist/utils/zod-schema-converter.d.ts +3 -2
- package/dist/utils/zod-schema-converter.d.ts.map +1 -1
- package/dist/utils/zod-schema-converter.js +66 -66
- package/package.json +4 -5
|
@@ -3,147 +3,33 @@ import type { Logger } from './v2/types.js';
|
|
|
3
3
|
export declare const DefaultLoggerFactoryConfigSchema: z.ZodObject<{
|
|
4
4
|
agentId: z.ZodString;
|
|
5
5
|
config: z.ZodObject<{
|
|
6
|
-
level: z.ZodDefault<z.ZodEnum<
|
|
7
|
-
|
|
6
|
+
level: z.ZodDefault<z.ZodEnum<{
|
|
7
|
+
debug: "debug";
|
|
8
|
+
info: "info";
|
|
9
|
+
warn: "warn";
|
|
10
|
+
error: "error";
|
|
11
|
+
silly: "silly";
|
|
12
|
+
}>>;
|
|
13
|
+
transports: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
8
14
|
type: z.ZodLiteral<"silent">;
|
|
9
|
-
},
|
|
10
|
-
type: "silent";
|
|
11
|
-
}, {
|
|
12
|
-
type: "silent";
|
|
13
|
-
}>, z.ZodObject<{
|
|
15
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
14
16
|
type: z.ZodLiteral<"console">;
|
|
15
17
|
colorize: z.ZodDefault<z.ZodBoolean>;
|
|
16
|
-
},
|
|
17
|
-
type: "console";
|
|
18
|
-
colorize: boolean;
|
|
19
|
-
}, {
|
|
20
|
-
type: "console";
|
|
21
|
-
colorize?: boolean | undefined;
|
|
22
|
-
}>, z.ZodObject<{
|
|
18
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
23
19
|
type: z.ZodLiteral<"file">;
|
|
24
20
|
path: z.ZodString;
|
|
25
21
|
maxSize: z.ZodDefault<z.ZodNumber>;
|
|
26
22
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
27
|
-
},
|
|
28
|
-
path: string;
|
|
29
|
-
type: "file";
|
|
30
|
-
maxSize: number;
|
|
31
|
-
maxFiles: number;
|
|
32
|
-
}, {
|
|
33
|
-
path: string;
|
|
34
|
-
type: "file";
|
|
35
|
-
maxSize?: number | undefined;
|
|
36
|
-
maxFiles?: number | undefined;
|
|
37
|
-
}>, z.ZodObject<{
|
|
23
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
38
24
|
type: z.ZodLiteral<"upstash">;
|
|
39
25
|
url: z.ZodString;
|
|
40
26
|
token: z.ZodString;
|
|
41
27
|
listName: z.ZodDefault<z.ZodString>;
|
|
42
28
|
maxListLength: z.ZodDefault<z.ZodNumber>;
|
|
43
29
|
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
url: string;
|
|
48
|
-
batchSize: number;
|
|
49
|
-
listName: string;
|
|
50
|
-
maxListLength: number;
|
|
51
|
-
}, {
|
|
52
|
-
token: string;
|
|
53
|
-
type: "upstash";
|
|
54
|
-
url: string;
|
|
55
|
-
batchSize?: number | undefined;
|
|
56
|
-
listName?: string | undefined;
|
|
57
|
-
maxListLength?: number | undefined;
|
|
58
|
-
}>]>, "many">>;
|
|
59
|
-
}, "strict", z.ZodTypeAny, {
|
|
60
|
-
level: "debug" | "info" | "warn" | "error" | "silly";
|
|
61
|
-
transports: ({
|
|
62
|
-
type: "silent";
|
|
63
|
-
} | {
|
|
64
|
-
type: "console";
|
|
65
|
-
colorize: boolean;
|
|
66
|
-
} | {
|
|
67
|
-
path: string;
|
|
68
|
-
type: "file";
|
|
69
|
-
maxSize: number;
|
|
70
|
-
maxFiles: number;
|
|
71
|
-
} | {
|
|
72
|
-
token: string;
|
|
73
|
-
type: "upstash";
|
|
74
|
-
url: string;
|
|
75
|
-
batchSize: number;
|
|
76
|
-
listName: string;
|
|
77
|
-
maxListLength: number;
|
|
78
|
-
})[];
|
|
79
|
-
}, {
|
|
80
|
-
level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
|
|
81
|
-
transports?: ({
|
|
82
|
-
type: "silent";
|
|
83
|
-
} | {
|
|
84
|
-
type: "console";
|
|
85
|
-
colorize?: boolean | undefined;
|
|
86
|
-
} | {
|
|
87
|
-
path: string;
|
|
88
|
-
type: "file";
|
|
89
|
-
maxSize?: number | undefined;
|
|
90
|
-
maxFiles?: number | undefined;
|
|
91
|
-
} | {
|
|
92
|
-
token: string;
|
|
93
|
-
type: "upstash";
|
|
94
|
-
url: string;
|
|
95
|
-
batchSize?: number | undefined;
|
|
96
|
-
listName?: string | undefined;
|
|
97
|
-
maxListLength?: number | undefined;
|
|
98
|
-
})[] | undefined;
|
|
99
|
-
}>;
|
|
100
|
-
}, "strict", z.ZodTypeAny, {
|
|
101
|
-
config: {
|
|
102
|
-
level: "debug" | "info" | "warn" | "error" | "silly";
|
|
103
|
-
transports: ({
|
|
104
|
-
type: "silent";
|
|
105
|
-
} | {
|
|
106
|
-
type: "console";
|
|
107
|
-
colorize: boolean;
|
|
108
|
-
} | {
|
|
109
|
-
path: string;
|
|
110
|
-
type: "file";
|
|
111
|
-
maxSize: number;
|
|
112
|
-
maxFiles: number;
|
|
113
|
-
} | {
|
|
114
|
-
token: string;
|
|
115
|
-
type: "upstash";
|
|
116
|
-
url: string;
|
|
117
|
-
batchSize: number;
|
|
118
|
-
listName: string;
|
|
119
|
-
maxListLength: number;
|
|
120
|
-
})[];
|
|
121
|
-
};
|
|
122
|
-
agentId: string;
|
|
123
|
-
}, {
|
|
124
|
-
config: {
|
|
125
|
-
level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
|
|
126
|
-
transports?: ({
|
|
127
|
-
type: "silent";
|
|
128
|
-
} | {
|
|
129
|
-
type: "console";
|
|
130
|
-
colorize?: boolean | undefined;
|
|
131
|
-
} | {
|
|
132
|
-
path: string;
|
|
133
|
-
type: "file";
|
|
134
|
-
maxSize?: number | undefined;
|
|
135
|
-
maxFiles?: number | undefined;
|
|
136
|
-
} | {
|
|
137
|
-
token: string;
|
|
138
|
-
type: "upstash";
|
|
139
|
-
url: string;
|
|
140
|
-
batchSize?: number | undefined;
|
|
141
|
-
listName?: string | undefined;
|
|
142
|
-
maxListLength?: number | undefined;
|
|
143
|
-
})[] | undefined;
|
|
144
|
-
};
|
|
145
|
-
agentId: string;
|
|
146
|
-
}>;
|
|
30
|
+
}, z.core.$strict>], "type">>>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
}, z.core.$strict>;
|
|
147
33
|
export type DefaultLoggerFactoryConfig = z.output<typeof DefaultLoggerFactoryConfigSchema>;
|
|
148
34
|
/**
|
|
149
35
|
* Default logger factory for image-based DI.
|
|
@@ -155,147 +41,33 @@ export declare const defaultLoggerFactory: {
|
|
|
155
41
|
configSchema: z.ZodObject<{
|
|
156
42
|
agentId: z.ZodString;
|
|
157
43
|
config: z.ZodObject<{
|
|
158
|
-
level: z.ZodDefault<z.ZodEnum<
|
|
159
|
-
|
|
44
|
+
level: z.ZodDefault<z.ZodEnum<{
|
|
45
|
+
debug: "debug";
|
|
46
|
+
info: "info";
|
|
47
|
+
warn: "warn";
|
|
48
|
+
error: "error";
|
|
49
|
+
silly: "silly";
|
|
50
|
+
}>>;
|
|
51
|
+
transports: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
160
52
|
type: z.ZodLiteral<"silent">;
|
|
161
|
-
},
|
|
162
|
-
type: "silent";
|
|
163
|
-
}, {
|
|
164
|
-
type: "silent";
|
|
165
|
-
}>, z.ZodObject<{
|
|
53
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
166
54
|
type: z.ZodLiteral<"console">;
|
|
167
55
|
colorize: z.ZodDefault<z.ZodBoolean>;
|
|
168
|
-
},
|
|
169
|
-
type: "console";
|
|
170
|
-
colorize: boolean;
|
|
171
|
-
}, {
|
|
172
|
-
type: "console";
|
|
173
|
-
colorize?: boolean | undefined;
|
|
174
|
-
}>, z.ZodObject<{
|
|
56
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
175
57
|
type: z.ZodLiteral<"file">;
|
|
176
58
|
path: z.ZodString;
|
|
177
59
|
maxSize: z.ZodDefault<z.ZodNumber>;
|
|
178
60
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
179
|
-
},
|
|
180
|
-
path: string;
|
|
181
|
-
type: "file";
|
|
182
|
-
maxSize: number;
|
|
183
|
-
maxFiles: number;
|
|
184
|
-
}, {
|
|
185
|
-
path: string;
|
|
186
|
-
type: "file";
|
|
187
|
-
maxSize?: number | undefined;
|
|
188
|
-
maxFiles?: number | undefined;
|
|
189
|
-
}>, z.ZodObject<{
|
|
61
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
190
62
|
type: z.ZodLiteral<"upstash">;
|
|
191
63
|
url: z.ZodString;
|
|
192
64
|
token: z.ZodString;
|
|
193
65
|
listName: z.ZodDefault<z.ZodString>;
|
|
194
66
|
maxListLength: z.ZodDefault<z.ZodNumber>;
|
|
195
67
|
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
196
|
-
},
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
url: string;
|
|
200
|
-
batchSize: number;
|
|
201
|
-
listName: string;
|
|
202
|
-
maxListLength: number;
|
|
203
|
-
}, {
|
|
204
|
-
token: string;
|
|
205
|
-
type: "upstash";
|
|
206
|
-
url: string;
|
|
207
|
-
batchSize?: number | undefined;
|
|
208
|
-
listName?: string | undefined;
|
|
209
|
-
maxListLength?: number | undefined;
|
|
210
|
-
}>]>, "many">>;
|
|
211
|
-
}, "strict", z.ZodTypeAny, {
|
|
212
|
-
level: "debug" | "info" | "warn" | "error" | "silly";
|
|
213
|
-
transports: ({
|
|
214
|
-
type: "silent";
|
|
215
|
-
} | {
|
|
216
|
-
type: "console";
|
|
217
|
-
colorize: boolean;
|
|
218
|
-
} | {
|
|
219
|
-
path: string;
|
|
220
|
-
type: "file";
|
|
221
|
-
maxSize: number;
|
|
222
|
-
maxFiles: number;
|
|
223
|
-
} | {
|
|
224
|
-
token: string;
|
|
225
|
-
type: "upstash";
|
|
226
|
-
url: string;
|
|
227
|
-
batchSize: number;
|
|
228
|
-
listName: string;
|
|
229
|
-
maxListLength: number;
|
|
230
|
-
})[];
|
|
231
|
-
}, {
|
|
232
|
-
level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
|
|
233
|
-
transports?: ({
|
|
234
|
-
type: "silent";
|
|
235
|
-
} | {
|
|
236
|
-
type: "console";
|
|
237
|
-
colorize?: boolean | undefined;
|
|
238
|
-
} | {
|
|
239
|
-
path: string;
|
|
240
|
-
type: "file";
|
|
241
|
-
maxSize?: number | undefined;
|
|
242
|
-
maxFiles?: number | undefined;
|
|
243
|
-
} | {
|
|
244
|
-
token: string;
|
|
245
|
-
type: "upstash";
|
|
246
|
-
url: string;
|
|
247
|
-
batchSize?: number | undefined;
|
|
248
|
-
listName?: string | undefined;
|
|
249
|
-
maxListLength?: number | undefined;
|
|
250
|
-
})[] | undefined;
|
|
251
|
-
}>;
|
|
252
|
-
}, "strict", z.ZodTypeAny, {
|
|
253
|
-
config: {
|
|
254
|
-
level: "debug" | "info" | "warn" | "error" | "silly";
|
|
255
|
-
transports: ({
|
|
256
|
-
type: "silent";
|
|
257
|
-
} | {
|
|
258
|
-
type: "console";
|
|
259
|
-
colorize: boolean;
|
|
260
|
-
} | {
|
|
261
|
-
path: string;
|
|
262
|
-
type: "file";
|
|
263
|
-
maxSize: number;
|
|
264
|
-
maxFiles: number;
|
|
265
|
-
} | {
|
|
266
|
-
token: string;
|
|
267
|
-
type: "upstash";
|
|
268
|
-
url: string;
|
|
269
|
-
batchSize: number;
|
|
270
|
-
listName: string;
|
|
271
|
-
maxListLength: number;
|
|
272
|
-
})[];
|
|
273
|
-
};
|
|
274
|
-
agentId: string;
|
|
275
|
-
}, {
|
|
276
|
-
config: {
|
|
277
|
-
level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
|
|
278
|
-
transports?: ({
|
|
279
|
-
type: "silent";
|
|
280
|
-
} | {
|
|
281
|
-
type: "console";
|
|
282
|
-
colorize?: boolean | undefined;
|
|
283
|
-
} | {
|
|
284
|
-
path: string;
|
|
285
|
-
type: "file";
|
|
286
|
-
maxSize?: number | undefined;
|
|
287
|
-
maxFiles?: number | undefined;
|
|
288
|
-
} | {
|
|
289
|
-
token: string;
|
|
290
|
-
type: "upstash";
|
|
291
|
-
url: string;
|
|
292
|
-
batchSize?: number | undefined;
|
|
293
|
-
listName?: string | undefined;
|
|
294
|
-
maxListLength?: number | undefined;
|
|
295
|
-
})[] | undefined;
|
|
296
|
-
};
|
|
297
|
-
agentId: string;
|
|
298
|
-
}>;
|
|
68
|
+
}, z.core.$strict>], "type">>>;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
}, z.core.$strict>;
|
|
299
71
|
create: (input: DefaultLoggerFactoryConfig) => Logger;
|
|
300
72
|
};
|
|
301
73
|
//# sourceMappingURL=default-logger-factory.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default-logger-factory.d.ts","sourceRoot":"","sources":["../../src/logger/default-logger-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,gCAAgC
|
|
1
|
+
{"version":3,"file":"default-logger-factory.d.ts","sourceRoot":"","sources":["../../src/logger/default-logger-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAKhC,CAAC;AAEd,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAE3F;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAEb,0BAA0B,KAAG,MAAM;CAGtD,CAAC"}
|
|
@@ -8,156 +8,54 @@ import { z } from 'zod';
|
|
|
8
8
|
/**
|
|
9
9
|
* Transport configuration (discriminated union)
|
|
10
10
|
*/
|
|
11
|
-
export declare const LoggerTransportSchema: z.ZodDiscriminatedUnion<
|
|
11
|
+
export declare const LoggerTransportSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
12
12
|
type: z.ZodLiteral<"silent">;
|
|
13
|
-
},
|
|
14
|
-
type: "silent";
|
|
15
|
-
}, {
|
|
16
|
-
type: "silent";
|
|
17
|
-
}>, z.ZodObject<{
|
|
13
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
18
14
|
type: z.ZodLiteral<"console">;
|
|
19
15
|
colorize: z.ZodDefault<z.ZodBoolean>;
|
|
20
|
-
},
|
|
21
|
-
type: "console";
|
|
22
|
-
colorize: boolean;
|
|
23
|
-
}, {
|
|
24
|
-
type: "console";
|
|
25
|
-
colorize?: boolean | undefined;
|
|
26
|
-
}>, z.ZodObject<{
|
|
16
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
27
17
|
type: z.ZodLiteral<"file">;
|
|
28
18
|
path: z.ZodString;
|
|
29
19
|
maxSize: z.ZodDefault<z.ZodNumber>;
|
|
30
20
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
31
|
-
},
|
|
32
|
-
path: string;
|
|
33
|
-
type: "file";
|
|
34
|
-
maxSize: number;
|
|
35
|
-
maxFiles: number;
|
|
36
|
-
}, {
|
|
37
|
-
path: string;
|
|
38
|
-
type: "file";
|
|
39
|
-
maxSize?: number | undefined;
|
|
40
|
-
maxFiles?: number | undefined;
|
|
41
|
-
}>, z.ZodObject<{
|
|
21
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
42
22
|
type: z.ZodLiteral<"upstash">;
|
|
43
23
|
url: z.ZodString;
|
|
44
24
|
token: z.ZodString;
|
|
45
25
|
listName: z.ZodDefault<z.ZodString>;
|
|
46
26
|
maxListLength: z.ZodDefault<z.ZodNumber>;
|
|
47
27
|
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
48
|
-
},
|
|
49
|
-
token: string;
|
|
50
|
-
type: "upstash";
|
|
51
|
-
url: string;
|
|
52
|
-
batchSize: number;
|
|
53
|
-
listName: string;
|
|
54
|
-
maxListLength: number;
|
|
55
|
-
}, {
|
|
56
|
-
token: string;
|
|
57
|
-
type: "upstash";
|
|
58
|
-
url: string;
|
|
59
|
-
batchSize?: number | undefined;
|
|
60
|
-
listName?: string | undefined;
|
|
61
|
-
maxListLength?: number | undefined;
|
|
62
|
-
}>]>;
|
|
28
|
+
}, z.core.$strict>], "type">;
|
|
63
29
|
export type LoggerTransportConfig = z.output<typeof LoggerTransportSchema>;
|
|
64
30
|
/**
|
|
65
31
|
* Logger configuration schema
|
|
66
32
|
*/
|
|
67
33
|
export declare const LoggerConfigSchema: z.ZodObject<{
|
|
68
|
-
level: z.ZodDefault<z.ZodEnum<
|
|
69
|
-
|
|
34
|
+
level: z.ZodDefault<z.ZodEnum<{
|
|
35
|
+
debug: "debug";
|
|
36
|
+
info: "info";
|
|
37
|
+
warn: "warn";
|
|
38
|
+
error: "error";
|
|
39
|
+
silly: "silly";
|
|
40
|
+
}>>;
|
|
41
|
+
transports: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
70
42
|
type: z.ZodLiteral<"silent">;
|
|
71
|
-
},
|
|
72
|
-
type: "silent";
|
|
73
|
-
}, {
|
|
74
|
-
type: "silent";
|
|
75
|
-
}>, z.ZodObject<{
|
|
43
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
76
44
|
type: z.ZodLiteral<"console">;
|
|
77
45
|
colorize: z.ZodDefault<z.ZodBoolean>;
|
|
78
|
-
},
|
|
79
|
-
type: "console";
|
|
80
|
-
colorize: boolean;
|
|
81
|
-
}, {
|
|
82
|
-
type: "console";
|
|
83
|
-
colorize?: boolean | undefined;
|
|
84
|
-
}>, z.ZodObject<{
|
|
46
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
85
47
|
type: z.ZodLiteral<"file">;
|
|
86
48
|
path: z.ZodString;
|
|
87
49
|
maxSize: z.ZodDefault<z.ZodNumber>;
|
|
88
50
|
maxFiles: z.ZodDefault<z.ZodNumber>;
|
|
89
|
-
},
|
|
90
|
-
path: string;
|
|
91
|
-
type: "file";
|
|
92
|
-
maxSize: number;
|
|
93
|
-
maxFiles: number;
|
|
94
|
-
}, {
|
|
95
|
-
path: string;
|
|
96
|
-
type: "file";
|
|
97
|
-
maxSize?: number | undefined;
|
|
98
|
-
maxFiles?: number | undefined;
|
|
99
|
-
}>, z.ZodObject<{
|
|
51
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
100
52
|
type: z.ZodLiteral<"upstash">;
|
|
101
53
|
url: z.ZodString;
|
|
102
54
|
token: z.ZodString;
|
|
103
55
|
listName: z.ZodDefault<z.ZodString>;
|
|
104
56
|
maxListLength: z.ZodDefault<z.ZodNumber>;
|
|
105
57
|
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
type: "upstash";
|
|
109
|
-
url: string;
|
|
110
|
-
batchSize: number;
|
|
111
|
-
listName: string;
|
|
112
|
-
maxListLength: number;
|
|
113
|
-
}, {
|
|
114
|
-
token: string;
|
|
115
|
-
type: "upstash";
|
|
116
|
-
url: string;
|
|
117
|
-
batchSize?: number | undefined;
|
|
118
|
-
listName?: string | undefined;
|
|
119
|
-
maxListLength?: number | undefined;
|
|
120
|
-
}>]>, "many">>;
|
|
121
|
-
}, "strict", z.ZodTypeAny, {
|
|
122
|
-
level: "debug" | "info" | "warn" | "error" | "silly";
|
|
123
|
-
transports: ({
|
|
124
|
-
type: "silent";
|
|
125
|
-
} | {
|
|
126
|
-
type: "console";
|
|
127
|
-
colorize: boolean;
|
|
128
|
-
} | {
|
|
129
|
-
path: string;
|
|
130
|
-
type: "file";
|
|
131
|
-
maxSize: number;
|
|
132
|
-
maxFiles: number;
|
|
133
|
-
} | {
|
|
134
|
-
token: string;
|
|
135
|
-
type: "upstash";
|
|
136
|
-
url: string;
|
|
137
|
-
batchSize: number;
|
|
138
|
-
listName: string;
|
|
139
|
-
maxListLength: number;
|
|
140
|
-
})[];
|
|
141
|
-
}, {
|
|
142
|
-
level?: "debug" | "info" | "warn" | "error" | "silly" | undefined;
|
|
143
|
-
transports?: ({
|
|
144
|
-
type: "silent";
|
|
145
|
-
} | {
|
|
146
|
-
type: "console";
|
|
147
|
-
colorize?: boolean | undefined;
|
|
148
|
-
} | {
|
|
149
|
-
path: string;
|
|
150
|
-
type: "file";
|
|
151
|
-
maxSize?: number | undefined;
|
|
152
|
-
maxFiles?: number | undefined;
|
|
153
|
-
} | {
|
|
154
|
-
token: string;
|
|
155
|
-
type: "upstash";
|
|
156
|
-
url: string;
|
|
157
|
-
batchSize?: number | undefined;
|
|
158
|
-
listName?: string | undefined;
|
|
159
|
-
maxListLength?: number | undefined;
|
|
160
|
-
})[] | undefined;
|
|
161
|
-
}>;
|
|
58
|
+
}, z.core.$strict>], "type">>>;
|
|
59
|
+
}, z.core.$strict>;
|
|
162
60
|
export type LoggerConfig = z.output<typeof LoggerConfigSchema>;
|
|
163
61
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/logger/v2/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsExB;;GAEG;AACH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/logger/v2/schemas.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAsExB;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;4BAKhC,CAAC;AAEH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;kBAamC,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/mcp/schemas.cjs
CHANGED
|
@@ -60,7 +60,7 @@ const StdioServerConfigSchema = import_zod.z.object({
|
|
|
60
60
|
}
|
|
61
61
|
}),
|
|
62
62
|
args: import_zod.z.array((0, import_result.EnvExpandedString)()).default([]).describe("Array of arguments for the command (e.g., ['script.js'])"),
|
|
63
|
-
env: import_zod.z.record((0, import_result.EnvExpandedString)()).default({}).describe("Optional environment variables for the server process"),
|
|
63
|
+
env: import_zod.z.record(import_zod.z.string(), (0, import_result.EnvExpandedString)()).default({}).describe("Optional environment variables for the server process"),
|
|
64
64
|
timeout: import_zod.z.coerce.number().int().positive().default(3e4),
|
|
65
65
|
connectionMode: import_zod.z.enum(MCP_CONNECTION_MODES).default(DEFAULT_MCP_CONNECTION_MODE)
|
|
66
66
|
}).strict();
|
|
@@ -68,7 +68,7 @@ const SseServerConfigSchema = import_zod.z.object({
|
|
|
68
68
|
type: import_zod.z.literal("sse"),
|
|
69
69
|
enabled: import_zod.z.boolean().default(true).describe("Whether this server is enabled (disabled servers are not connected)"),
|
|
70
70
|
url: (0, import_result.RequiredEnvURL)(process.env).describe("URL for the SSE server endpoint"),
|
|
71
|
-
headers: import_zod.z.record((0, import_result.EnvExpandedString)()).default({}),
|
|
71
|
+
headers: import_zod.z.record(import_zod.z.string(), (0, import_result.EnvExpandedString)()).default({}),
|
|
72
72
|
timeout: import_zod.z.coerce.number().int().positive().default(3e4),
|
|
73
73
|
connectionMode: import_zod.z.enum(MCP_CONNECTION_MODES).default(DEFAULT_MCP_CONNECTION_MODE)
|
|
74
74
|
}).strict();
|
|
@@ -76,7 +76,7 @@ const HttpServerConfigSchema = import_zod.z.object({
|
|
|
76
76
|
type: import_zod.z.literal("http"),
|
|
77
77
|
enabled: import_zod.z.boolean().default(true).describe("Whether this server is enabled (disabled servers are not connected)"),
|
|
78
78
|
url: (0, import_result.RequiredEnvURL)(process.env).describe("URL for the HTTP server"),
|
|
79
|
-
headers: import_zod.z.record((0, import_result.EnvExpandedString)()).default({}),
|
|
79
|
+
headers: import_zod.z.record(import_zod.z.string(), (0, import_result.EnvExpandedString)()).default({}),
|
|
80
80
|
timeout: import_zod.z.coerce.number().int().positive().default(3e4),
|
|
81
81
|
connectionMode: import_zod.z.enum(MCP_CONNECTION_MODES).default(DEFAULT_MCP_CONNECTION_MODE)
|
|
82
82
|
}).strict();
|
|
@@ -86,7 +86,7 @@ const McpServerConfigSchema = import_zod.z.discriminatedUnion("type", [
|
|
|
86
86
|
HttpServerConfigSchema
|
|
87
87
|
]).superRefine((_data, _ctx) => {
|
|
88
88
|
}).brand();
|
|
89
|
-
const ServersConfigSchema = import_zod.z.record(McpServerConfigSchema).describe("A dictionary of server configurations, keyed by server name").brand();
|
|
89
|
+
const ServersConfigSchema = import_zod.z.record(import_zod.z.string(), McpServerConfigSchema).describe("A dictionary of server configurations, keyed by server name").brand();
|
|
90
90
|
// Annotate the CommonJS export names for ESM import in node:
|
|
91
91
|
0 && (module.exports = {
|
|
92
92
|
DEFAULT_MCP_CONNECTION_MODE,
|