universal-agent-memory 0.4.0 → 0.5.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/coordination/capability-router.d.ts +79 -0
- package/dist/coordination/capability-router.d.ts.map +1 -0
- package/dist/coordination/capability-router.js +324 -0
- package/dist/coordination/capability-router.js.map +1 -0
- package/dist/coordination/deploy-batcher.d.ts +64 -1
- package/dist/coordination/deploy-batcher.d.ts.map +1 -1
- package/dist/coordination/deploy-batcher.js +203 -39
- package/dist/coordination/deploy-batcher.js.map +1 -1
- package/dist/coordination/index.d.ts +1 -0
- package/dist/coordination/index.d.ts.map +1 -1
- package/dist/coordination/index.js +1 -0
- package/dist/coordination/index.js.map +1 -1
- package/dist/generators/template-loader.d.ts +105 -0
- package/dist/generators/template-loader.d.ts.map +1 -0
- package/dist/generators/template-loader.js +291 -0
- package/dist/generators/template-loader.js.map +1 -0
- package/dist/memory/serverless-qdrant.d.ts +102 -0
- package/dist/memory/serverless-qdrant.d.ts.map +1 -0
- package/dist/memory/serverless-qdrant.js +369 -0
- package/dist/memory/serverless-qdrant.js.map +1 -0
- package/dist/types/config.d.ts +1220 -15
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +92 -1
- package/dist/types/config.js.map +1 -1
- package/dist/types/coordination.d.ts +4 -4
- package/package.json +1 -1
- package/templates/CLAUDE.template.md +347 -370
package/dist/types/config.d.ts
CHANGED
|
@@ -60,9 +60,130 @@ export declare const QdrantCloudBackendSchema: z.ZodObject<{
|
|
|
60
60
|
apiKey?: string | undefined;
|
|
61
61
|
collection?: string | undefined;
|
|
62
62
|
}>;
|
|
63
|
+
/**
|
|
64
|
+
* NEW: Serverless Qdrant configuration for cost optimization.
|
|
65
|
+
* Supports lazy-start local instance or cloud serverless.
|
|
66
|
+
*/
|
|
67
|
+
export declare const QdrantServerlessSchema: z.ZodObject<{
|
|
68
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
mode: z.ZodDefault<z.ZodEnum<["lazy-local", "cloud-serverless", "hybrid"]>>;
|
|
70
|
+
lazyLocal: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
dockerImage: z.ZodDefault<z.ZodString>;
|
|
72
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
73
|
+
dataDir: z.ZodDefault<z.ZodString>;
|
|
74
|
+
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
75
|
+
autoStop: z.ZodDefault<z.ZodBoolean>;
|
|
76
|
+
idleTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
77
|
+
healthCheckIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
dockerImage: string;
|
|
80
|
+
port: number;
|
|
81
|
+
dataDir: string;
|
|
82
|
+
autoStart: boolean;
|
|
83
|
+
autoStop: boolean;
|
|
84
|
+
idleTimeoutMs: number;
|
|
85
|
+
healthCheckIntervalMs: number;
|
|
86
|
+
}, {
|
|
87
|
+
dockerImage?: string | undefined;
|
|
88
|
+
port?: number | undefined;
|
|
89
|
+
dataDir?: string | undefined;
|
|
90
|
+
autoStart?: boolean | undefined;
|
|
91
|
+
autoStop?: boolean | undefined;
|
|
92
|
+
idleTimeoutMs?: number | undefined;
|
|
93
|
+
healthCheckIntervalMs?: number | undefined;
|
|
94
|
+
}>>;
|
|
95
|
+
cloudServerless: z.ZodOptional<z.ZodObject<{
|
|
96
|
+
provider: z.ZodDefault<z.ZodEnum<["qdrant-cloud", "aws-lambda", "cloudflare-workers"]>>;
|
|
97
|
+
url: z.ZodOptional<z.ZodString>;
|
|
98
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
99
|
+
region: z.ZodDefault<z.ZodString>;
|
|
100
|
+
keepWarm: z.ZodDefault<z.ZodBoolean>;
|
|
101
|
+
warmIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
104
|
+
region: string;
|
|
105
|
+
keepWarm: boolean;
|
|
106
|
+
warmIntervalMs: number;
|
|
107
|
+
url?: string | undefined;
|
|
108
|
+
apiKey?: string | undefined;
|
|
109
|
+
}, {
|
|
110
|
+
url?: string | undefined;
|
|
111
|
+
apiKey?: string | undefined;
|
|
112
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
113
|
+
region?: string | undefined;
|
|
114
|
+
keepWarm?: boolean | undefined;
|
|
115
|
+
warmIntervalMs?: number | undefined;
|
|
116
|
+
}>>;
|
|
117
|
+
hybrid: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
useLocalInDev: z.ZodDefault<z.ZodBoolean>;
|
|
119
|
+
useCloudInProd: z.ZodDefault<z.ZodBoolean>;
|
|
120
|
+
envDetection: z.ZodDefault<z.ZodEnum<["NODE_ENV", "UAM_ENV", "auto"]>>;
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
useLocalInDev: boolean;
|
|
123
|
+
useCloudInProd: boolean;
|
|
124
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
125
|
+
}, {
|
|
126
|
+
useLocalInDev?: boolean | undefined;
|
|
127
|
+
useCloudInProd?: boolean | undefined;
|
|
128
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
129
|
+
}>>;
|
|
130
|
+
fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
|
|
131
|
+
}, "strip", z.ZodTypeAny, {
|
|
132
|
+
enabled: boolean;
|
|
133
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
134
|
+
fallbackToMemory: boolean;
|
|
135
|
+
hybrid?: {
|
|
136
|
+
useLocalInDev: boolean;
|
|
137
|
+
useCloudInProd: boolean;
|
|
138
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
139
|
+
} | undefined;
|
|
140
|
+
lazyLocal?: {
|
|
141
|
+
dockerImage: string;
|
|
142
|
+
port: number;
|
|
143
|
+
dataDir: string;
|
|
144
|
+
autoStart: boolean;
|
|
145
|
+
autoStop: boolean;
|
|
146
|
+
idleTimeoutMs: number;
|
|
147
|
+
healthCheckIntervalMs: number;
|
|
148
|
+
} | undefined;
|
|
149
|
+
cloudServerless?: {
|
|
150
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
151
|
+
region: string;
|
|
152
|
+
keepWarm: boolean;
|
|
153
|
+
warmIntervalMs: number;
|
|
154
|
+
url?: string | undefined;
|
|
155
|
+
apiKey?: string | undefined;
|
|
156
|
+
} | undefined;
|
|
157
|
+
}, {
|
|
158
|
+
enabled?: boolean | undefined;
|
|
159
|
+
hybrid?: {
|
|
160
|
+
useLocalInDev?: boolean | undefined;
|
|
161
|
+
useCloudInProd?: boolean | undefined;
|
|
162
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
163
|
+
} | undefined;
|
|
164
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
165
|
+
lazyLocal?: {
|
|
166
|
+
dockerImage?: string | undefined;
|
|
167
|
+
port?: number | undefined;
|
|
168
|
+
dataDir?: string | undefined;
|
|
169
|
+
autoStart?: boolean | undefined;
|
|
170
|
+
autoStop?: boolean | undefined;
|
|
171
|
+
idleTimeoutMs?: number | undefined;
|
|
172
|
+
healthCheckIntervalMs?: number | undefined;
|
|
173
|
+
} | undefined;
|
|
174
|
+
cloudServerless?: {
|
|
175
|
+
url?: string | undefined;
|
|
176
|
+
apiKey?: string | undefined;
|
|
177
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
178
|
+
region?: string | undefined;
|
|
179
|
+
keepWarm?: boolean | undefined;
|
|
180
|
+
warmIntervalMs?: number | undefined;
|
|
181
|
+
} | undefined;
|
|
182
|
+
fallbackToMemory?: boolean | undefined;
|
|
183
|
+
}>;
|
|
63
184
|
export declare const LongTermMemorySchema: z.ZodObject<{
|
|
64
185
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
65
|
-
provider: z.ZodDefault<z.ZodEnum<["qdrant", "chroma", "pinecone", "github", "qdrant-cloud", "none"]>>;
|
|
186
|
+
provider: z.ZodDefault<z.ZodEnum<["qdrant", "chroma", "pinecone", "github", "qdrant-cloud", "serverless", "none"]>>;
|
|
66
187
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
67
188
|
collection: z.ZodDefault<z.ZodString>;
|
|
68
189
|
embeddingModel: z.ZodDefault<z.ZodString>;
|
|
@@ -101,10 +222,127 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
101
222
|
apiKey?: string | undefined;
|
|
102
223
|
collection?: string | undefined;
|
|
103
224
|
}>>;
|
|
225
|
+
serverless: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
227
|
+
mode: z.ZodDefault<z.ZodEnum<["lazy-local", "cloud-serverless", "hybrid"]>>;
|
|
228
|
+
lazyLocal: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
dockerImage: z.ZodDefault<z.ZodString>;
|
|
230
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
231
|
+
dataDir: z.ZodDefault<z.ZodString>;
|
|
232
|
+
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
233
|
+
autoStop: z.ZodDefault<z.ZodBoolean>;
|
|
234
|
+
idleTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
235
|
+
healthCheckIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
dockerImage: string;
|
|
238
|
+
port: number;
|
|
239
|
+
dataDir: string;
|
|
240
|
+
autoStart: boolean;
|
|
241
|
+
autoStop: boolean;
|
|
242
|
+
idleTimeoutMs: number;
|
|
243
|
+
healthCheckIntervalMs: number;
|
|
244
|
+
}, {
|
|
245
|
+
dockerImage?: string | undefined;
|
|
246
|
+
port?: number | undefined;
|
|
247
|
+
dataDir?: string | undefined;
|
|
248
|
+
autoStart?: boolean | undefined;
|
|
249
|
+
autoStop?: boolean | undefined;
|
|
250
|
+
idleTimeoutMs?: number | undefined;
|
|
251
|
+
healthCheckIntervalMs?: number | undefined;
|
|
252
|
+
}>>;
|
|
253
|
+
cloudServerless: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
provider: z.ZodDefault<z.ZodEnum<["qdrant-cloud", "aws-lambda", "cloudflare-workers"]>>;
|
|
255
|
+
url: z.ZodOptional<z.ZodString>;
|
|
256
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
257
|
+
region: z.ZodDefault<z.ZodString>;
|
|
258
|
+
keepWarm: z.ZodDefault<z.ZodBoolean>;
|
|
259
|
+
warmIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
260
|
+
}, "strip", z.ZodTypeAny, {
|
|
261
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
262
|
+
region: string;
|
|
263
|
+
keepWarm: boolean;
|
|
264
|
+
warmIntervalMs: number;
|
|
265
|
+
url?: string | undefined;
|
|
266
|
+
apiKey?: string | undefined;
|
|
267
|
+
}, {
|
|
268
|
+
url?: string | undefined;
|
|
269
|
+
apiKey?: string | undefined;
|
|
270
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
271
|
+
region?: string | undefined;
|
|
272
|
+
keepWarm?: boolean | undefined;
|
|
273
|
+
warmIntervalMs?: number | undefined;
|
|
274
|
+
}>>;
|
|
275
|
+
hybrid: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
useLocalInDev: z.ZodDefault<z.ZodBoolean>;
|
|
277
|
+
useCloudInProd: z.ZodDefault<z.ZodBoolean>;
|
|
278
|
+
envDetection: z.ZodDefault<z.ZodEnum<["NODE_ENV", "UAM_ENV", "auto"]>>;
|
|
279
|
+
}, "strip", z.ZodTypeAny, {
|
|
280
|
+
useLocalInDev: boolean;
|
|
281
|
+
useCloudInProd: boolean;
|
|
282
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
283
|
+
}, {
|
|
284
|
+
useLocalInDev?: boolean | undefined;
|
|
285
|
+
useCloudInProd?: boolean | undefined;
|
|
286
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
287
|
+
}>>;
|
|
288
|
+
fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
|
|
289
|
+
}, "strip", z.ZodTypeAny, {
|
|
290
|
+
enabled: boolean;
|
|
291
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
292
|
+
fallbackToMemory: boolean;
|
|
293
|
+
hybrid?: {
|
|
294
|
+
useLocalInDev: boolean;
|
|
295
|
+
useCloudInProd: boolean;
|
|
296
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
297
|
+
} | undefined;
|
|
298
|
+
lazyLocal?: {
|
|
299
|
+
dockerImage: string;
|
|
300
|
+
port: number;
|
|
301
|
+
dataDir: string;
|
|
302
|
+
autoStart: boolean;
|
|
303
|
+
autoStop: boolean;
|
|
304
|
+
idleTimeoutMs: number;
|
|
305
|
+
healthCheckIntervalMs: number;
|
|
306
|
+
} | undefined;
|
|
307
|
+
cloudServerless?: {
|
|
308
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
309
|
+
region: string;
|
|
310
|
+
keepWarm: boolean;
|
|
311
|
+
warmIntervalMs: number;
|
|
312
|
+
url?: string | undefined;
|
|
313
|
+
apiKey?: string | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
}, {
|
|
316
|
+
enabled?: boolean | undefined;
|
|
317
|
+
hybrid?: {
|
|
318
|
+
useLocalInDev?: boolean | undefined;
|
|
319
|
+
useCloudInProd?: boolean | undefined;
|
|
320
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
323
|
+
lazyLocal?: {
|
|
324
|
+
dockerImage?: string | undefined;
|
|
325
|
+
port?: number | undefined;
|
|
326
|
+
dataDir?: string | undefined;
|
|
327
|
+
autoStart?: boolean | undefined;
|
|
328
|
+
autoStop?: boolean | undefined;
|
|
329
|
+
idleTimeoutMs?: number | undefined;
|
|
330
|
+
healthCheckIntervalMs?: number | undefined;
|
|
331
|
+
} | undefined;
|
|
332
|
+
cloudServerless?: {
|
|
333
|
+
url?: string | undefined;
|
|
334
|
+
apiKey?: string | undefined;
|
|
335
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
336
|
+
region?: string | undefined;
|
|
337
|
+
keepWarm?: boolean | undefined;
|
|
338
|
+
warmIntervalMs?: number | undefined;
|
|
339
|
+
} | undefined;
|
|
340
|
+
fallbackToMemory?: boolean | undefined;
|
|
341
|
+
}>>;
|
|
104
342
|
}, "strip", z.ZodTypeAny, {
|
|
105
343
|
enabled: boolean;
|
|
106
344
|
collection: string;
|
|
107
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "
|
|
345
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
108
346
|
embeddingModel: string;
|
|
109
347
|
github?: {
|
|
110
348
|
enabled: boolean;
|
|
@@ -113,6 +351,33 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
113
351
|
repo?: string | undefined;
|
|
114
352
|
token?: string | undefined;
|
|
115
353
|
} | undefined;
|
|
354
|
+
serverless?: {
|
|
355
|
+
enabled: boolean;
|
|
356
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
357
|
+
fallbackToMemory: boolean;
|
|
358
|
+
hybrid?: {
|
|
359
|
+
useLocalInDev: boolean;
|
|
360
|
+
useCloudInProd: boolean;
|
|
361
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
362
|
+
} | undefined;
|
|
363
|
+
lazyLocal?: {
|
|
364
|
+
dockerImage: string;
|
|
365
|
+
port: number;
|
|
366
|
+
dataDir: string;
|
|
367
|
+
autoStart: boolean;
|
|
368
|
+
autoStop: boolean;
|
|
369
|
+
idleTimeoutMs: number;
|
|
370
|
+
healthCheckIntervalMs: number;
|
|
371
|
+
} | undefined;
|
|
372
|
+
cloudServerless?: {
|
|
373
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
374
|
+
region: string;
|
|
375
|
+
keepWarm: boolean;
|
|
376
|
+
warmIntervalMs: number;
|
|
377
|
+
url?: string | undefined;
|
|
378
|
+
apiKey?: string | undefined;
|
|
379
|
+
} | undefined;
|
|
380
|
+
} | undefined;
|
|
116
381
|
endpoint?: string | undefined;
|
|
117
382
|
qdrantCloud?: {
|
|
118
383
|
enabled: boolean;
|
|
@@ -123,6 +388,7 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
123
388
|
}, {
|
|
124
389
|
enabled?: boolean | undefined;
|
|
125
390
|
collection?: string | undefined;
|
|
391
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
126
392
|
github?: {
|
|
127
393
|
enabled?: boolean | undefined;
|
|
128
394
|
path?: string | undefined;
|
|
@@ -130,7 +396,33 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
130
396
|
token?: string | undefined;
|
|
131
397
|
branch?: string | undefined;
|
|
132
398
|
} | undefined;
|
|
133
|
-
|
|
399
|
+
serverless?: {
|
|
400
|
+
enabled?: boolean | undefined;
|
|
401
|
+
hybrid?: {
|
|
402
|
+
useLocalInDev?: boolean | undefined;
|
|
403
|
+
useCloudInProd?: boolean | undefined;
|
|
404
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
405
|
+
} | undefined;
|
|
406
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
407
|
+
lazyLocal?: {
|
|
408
|
+
dockerImage?: string | undefined;
|
|
409
|
+
port?: number | undefined;
|
|
410
|
+
dataDir?: string | undefined;
|
|
411
|
+
autoStart?: boolean | undefined;
|
|
412
|
+
autoStop?: boolean | undefined;
|
|
413
|
+
idleTimeoutMs?: number | undefined;
|
|
414
|
+
healthCheckIntervalMs?: number | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
cloudServerless?: {
|
|
417
|
+
url?: string | undefined;
|
|
418
|
+
apiKey?: string | undefined;
|
|
419
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
420
|
+
region?: string | undefined;
|
|
421
|
+
keepWarm?: boolean | undefined;
|
|
422
|
+
warmIntervalMs?: number | undefined;
|
|
423
|
+
} | undefined;
|
|
424
|
+
fallbackToMemory?: boolean | undefined;
|
|
425
|
+
} | undefined;
|
|
134
426
|
endpoint?: string | undefined;
|
|
135
427
|
embeddingModel?: string | undefined;
|
|
136
428
|
qdrantCloud?: {
|
|
@@ -162,7 +454,7 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
162
454
|
}>>;
|
|
163
455
|
longTerm: z.ZodOptional<z.ZodObject<{
|
|
164
456
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
165
|
-
provider: z.ZodDefault<z.ZodEnum<["qdrant", "chroma", "pinecone", "github", "qdrant-cloud", "none"]>>;
|
|
457
|
+
provider: z.ZodDefault<z.ZodEnum<["qdrant", "chroma", "pinecone", "github", "qdrant-cloud", "serverless", "none"]>>;
|
|
166
458
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
167
459
|
collection: z.ZodDefault<z.ZodString>;
|
|
168
460
|
embeddingModel: z.ZodDefault<z.ZodString>;
|
|
@@ -201,10 +493,127 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
201
493
|
apiKey?: string | undefined;
|
|
202
494
|
collection?: string | undefined;
|
|
203
495
|
}>>;
|
|
496
|
+
serverless: z.ZodOptional<z.ZodObject<{
|
|
497
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
498
|
+
mode: z.ZodDefault<z.ZodEnum<["lazy-local", "cloud-serverless", "hybrid"]>>;
|
|
499
|
+
lazyLocal: z.ZodOptional<z.ZodObject<{
|
|
500
|
+
dockerImage: z.ZodDefault<z.ZodString>;
|
|
501
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
502
|
+
dataDir: z.ZodDefault<z.ZodString>;
|
|
503
|
+
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
504
|
+
autoStop: z.ZodDefault<z.ZodBoolean>;
|
|
505
|
+
idleTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
506
|
+
healthCheckIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
507
|
+
}, "strip", z.ZodTypeAny, {
|
|
508
|
+
dockerImage: string;
|
|
509
|
+
port: number;
|
|
510
|
+
dataDir: string;
|
|
511
|
+
autoStart: boolean;
|
|
512
|
+
autoStop: boolean;
|
|
513
|
+
idleTimeoutMs: number;
|
|
514
|
+
healthCheckIntervalMs: number;
|
|
515
|
+
}, {
|
|
516
|
+
dockerImage?: string | undefined;
|
|
517
|
+
port?: number | undefined;
|
|
518
|
+
dataDir?: string | undefined;
|
|
519
|
+
autoStart?: boolean | undefined;
|
|
520
|
+
autoStop?: boolean | undefined;
|
|
521
|
+
idleTimeoutMs?: number | undefined;
|
|
522
|
+
healthCheckIntervalMs?: number | undefined;
|
|
523
|
+
}>>;
|
|
524
|
+
cloudServerless: z.ZodOptional<z.ZodObject<{
|
|
525
|
+
provider: z.ZodDefault<z.ZodEnum<["qdrant-cloud", "aws-lambda", "cloudflare-workers"]>>;
|
|
526
|
+
url: z.ZodOptional<z.ZodString>;
|
|
527
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
528
|
+
region: z.ZodDefault<z.ZodString>;
|
|
529
|
+
keepWarm: z.ZodDefault<z.ZodBoolean>;
|
|
530
|
+
warmIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
531
|
+
}, "strip", z.ZodTypeAny, {
|
|
532
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
533
|
+
region: string;
|
|
534
|
+
keepWarm: boolean;
|
|
535
|
+
warmIntervalMs: number;
|
|
536
|
+
url?: string | undefined;
|
|
537
|
+
apiKey?: string | undefined;
|
|
538
|
+
}, {
|
|
539
|
+
url?: string | undefined;
|
|
540
|
+
apiKey?: string | undefined;
|
|
541
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
542
|
+
region?: string | undefined;
|
|
543
|
+
keepWarm?: boolean | undefined;
|
|
544
|
+
warmIntervalMs?: number | undefined;
|
|
545
|
+
}>>;
|
|
546
|
+
hybrid: z.ZodOptional<z.ZodObject<{
|
|
547
|
+
useLocalInDev: z.ZodDefault<z.ZodBoolean>;
|
|
548
|
+
useCloudInProd: z.ZodDefault<z.ZodBoolean>;
|
|
549
|
+
envDetection: z.ZodDefault<z.ZodEnum<["NODE_ENV", "UAM_ENV", "auto"]>>;
|
|
550
|
+
}, "strip", z.ZodTypeAny, {
|
|
551
|
+
useLocalInDev: boolean;
|
|
552
|
+
useCloudInProd: boolean;
|
|
553
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
554
|
+
}, {
|
|
555
|
+
useLocalInDev?: boolean | undefined;
|
|
556
|
+
useCloudInProd?: boolean | undefined;
|
|
557
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
558
|
+
}>>;
|
|
559
|
+
fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
|
|
560
|
+
}, "strip", z.ZodTypeAny, {
|
|
561
|
+
enabled: boolean;
|
|
562
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
563
|
+
fallbackToMemory: boolean;
|
|
564
|
+
hybrid?: {
|
|
565
|
+
useLocalInDev: boolean;
|
|
566
|
+
useCloudInProd: boolean;
|
|
567
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
568
|
+
} | undefined;
|
|
569
|
+
lazyLocal?: {
|
|
570
|
+
dockerImage: string;
|
|
571
|
+
port: number;
|
|
572
|
+
dataDir: string;
|
|
573
|
+
autoStart: boolean;
|
|
574
|
+
autoStop: boolean;
|
|
575
|
+
idleTimeoutMs: number;
|
|
576
|
+
healthCheckIntervalMs: number;
|
|
577
|
+
} | undefined;
|
|
578
|
+
cloudServerless?: {
|
|
579
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
580
|
+
region: string;
|
|
581
|
+
keepWarm: boolean;
|
|
582
|
+
warmIntervalMs: number;
|
|
583
|
+
url?: string | undefined;
|
|
584
|
+
apiKey?: string | undefined;
|
|
585
|
+
} | undefined;
|
|
586
|
+
}, {
|
|
587
|
+
enabled?: boolean | undefined;
|
|
588
|
+
hybrid?: {
|
|
589
|
+
useLocalInDev?: boolean | undefined;
|
|
590
|
+
useCloudInProd?: boolean | undefined;
|
|
591
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
592
|
+
} | undefined;
|
|
593
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
594
|
+
lazyLocal?: {
|
|
595
|
+
dockerImage?: string | undefined;
|
|
596
|
+
port?: number | undefined;
|
|
597
|
+
dataDir?: string | undefined;
|
|
598
|
+
autoStart?: boolean | undefined;
|
|
599
|
+
autoStop?: boolean | undefined;
|
|
600
|
+
idleTimeoutMs?: number | undefined;
|
|
601
|
+
healthCheckIntervalMs?: number | undefined;
|
|
602
|
+
} | undefined;
|
|
603
|
+
cloudServerless?: {
|
|
604
|
+
url?: string | undefined;
|
|
605
|
+
apiKey?: string | undefined;
|
|
606
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
607
|
+
region?: string | undefined;
|
|
608
|
+
keepWarm?: boolean | undefined;
|
|
609
|
+
warmIntervalMs?: number | undefined;
|
|
610
|
+
} | undefined;
|
|
611
|
+
fallbackToMemory?: boolean | undefined;
|
|
612
|
+
}>>;
|
|
204
613
|
}, "strip", z.ZodTypeAny, {
|
|
205
614
|
enabled: boolean;
|
|
206
615
|
collection: string;
|
|
207
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "
|
|
616
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
208
617
|
embeddingModel: string;
|
|
209
618
|
github?: {
|
|
210
619
|
enabled: boolean;
|
|
@@ -213,6 +622,33 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
213
622
|
repo?: string | undefined;
|
|
214
623
|
token?: string | undefined;
|
|
215
624
|
} | undefined;
|
|
625
|
+
serverless?: {
|
|
626
|
+
enabled: boolean;
|
|
627
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
628
|
+
fallbackToMemory: boolean;
|
|
629
|
+
hybrid?: {
|
|
630
|
+
useLocalInDev: boolean;
|
|
631
|
+
useCloudInProd: boolean;
|
|
632
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
633
|
+
} | undefined;
|
|
634
|
+
lazyLocal?: {
|
|
635
|
+
dockerImage: string;
|
|
636
|
+
port: number;
|
|
637
|
+
dataDir: string;
|
|
638
|
+
autoStart: boolean;
|
|
639
|
+
autoStop: boolean;
|
|
640
|
+
idleTimeoutMs: number;
|
|
641
|
+
healthCheckIntervalMs: number;
|
|
642
|
+
} | undefined;
|
|
643
|
+
cloudServerless?: {
|
|
644
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
645
|
+
region: string;
|
|
646
|
+
keepWarm: boolean;
|
|
647
|
+
warmIntervalMs: number;
|
|
648
|
+
url?: string | undefined;
|
|
649
|
+
apiKey?: string | undefined;
|
|
650
|
+
} | undefined;
|
|
651
|
+
} | undefined;
|
|
216
652
|
endpoint?: string | undefined;
|
|
217
653
|
qdrantCloud?: {
|
|
218
654
|
enabled: boolean;
|
|
@@ -223,6 +659,7 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
223
659
|
}, {
|
|
224
660
|
enabled?: boolean | undefined;
|
|
225
661
|
collection?: string | undefined;
|
|
662
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
226
663
|
github?: {
|
|
227
664
|
enabled?: boolean | undefined;
|
|
228
665
|
path?: string | undefined;
|
|
@@ -230,7 +667,33 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
230
667
|
token?: string | undefined;
|
|
231
668
|
branch?: string | undefined;
|
|
232
669
|
} | undefined;
|
|
233
|
-
|
|
670
|
+
serverless?: {
|
|
671
|
+
enabled?: boolean | undefined;
|
|
672
|
+
hybrid?: {
|
|
673
|
+
useLocalInDev?: boolean | undefined;
|
|
674
|
+
useCloudInProd?: boolean | undefined;
|
|
675
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
676
|
+
} | undefined;
|
|
677
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
678
|
+
lazyLocal?: {
|
|
679
|
+
dockerImage?: string | undefined;
|
|
680
|
+
port?: number | undefined;
|
|
681
|
+
dataDir?: string | undefined;
|
|
682
|
+
autoStart?: boolean | undefined;
|
|
683
|
+
autoStop?: boolean | undefined;
|
|
684
|
+
idleTimeoutMs?: number | undefined;
|
|
685
|
+
healthCheckIntervalMs?: number | undefined;
|
|
686
|
+
} | undefined;
|
|
687
|
+
cloudServerless?: {
|
|
688
|
+
url?: string | undefined;
|
|
689
|
+
apiKey?: string | undefined;
|
|
690
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
691
|
+
region?: string | undefined;
|
|
692
|
+
keepWarm?: boolean | undefined;
|
|
693
|
+
warmIntervalMs?: number | undefined;
|
|
694
|
+
} | undefined;
|
|
695
|
+
fallbackToMemory?: boolean | undefined;
|
|
696
|
+
} | undefined;
|
|
234
697
|
endpoint?: string | undefined;
|
|
235
698
|
embeddingModel?: string | undefined;
|
|
236
699
|
qdrantCloud?: {
|
|
@@ -251,7 +714,7 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
251
714
|
longTerm?: {
|
|
252
715
|
enabled: boolean;
|
|
253
716
|
collection: string;
|
|
254
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "
|
|
717
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
255
718
|
embeddingModel: string;
|
|
256
719
|
github?: {
|
|
257
720
|
enabled: boolean;
|
|
@@ -260,6 +723,33 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
260
723
|
repo?: string | undefined;
|
|
261
724
|
token?: string | undefined;
|
|
262
725
|
} | undefined;
|
|
726
|
+
serverless?: {
|
|
727
|
+
enabled: boolean;
|
|
728
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
729
|
+
fallbackToMemory: boolean;
|
|
730
|
+
hybrid?: {
|
|
731
|
+
useLocalInDev: boolean;
|
|
732
|
+
useCloudInProd: boolean;
|
|
733
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
734
|
+
} | undefined;
|
|
735
|
+
lazyLocal?: {
|
|
736
|
+
dockerImage: string;
|
|
737
|
+
port: number;
|
|
738
|
+
dataDir: string;
|
|
739
|
+
autoStart: boolean;
|
|
740
|
+
autoStop: boolean;
|
|
741
|
+
idleTimeoutMs: number;
|
|
742
|
+
healthCheckIntervalMs: number;
|
|
743
|
+
} | undefined;
|
|
744
|
+
cloudServerless?: {
|
|
745
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
746
|
+
region: string;
|
|
747
|
+
keepWarm: boolean;
|
|
748
|
+
warmIntervalMs: number;
|
|
749
|
+
url?: string | undefined;
|
|
750
|
+
apiKey?: string | undefined;
|
|
751
|
+
} | undefined;
|
|
752
|
+
} | undefined;
|
|
263
753
|
endpoint?: string | undefined;
|
|
264
754
|
qdrantCloud?: {
|
|
265
755
|
enabled: boolean;
|
|
@@ -279,6 +769,7 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
279
769
|
longTerm?: {
|
|
280
770
|
enabled?: boolean | undefined;
|
|
281
771
|
collection?: string | undefined;
|
|
772
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
282
773
|
github?: {
|
|
283
774
|
enabled?: boolean | undefined;
|
|
284
775
|
path?: string | undefined;
|
|
@@ -286,7 +777,33 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
286
777
|
token?: string | undefined;
|
|
287
778
|
branch?: string | undefined;
|
|
288
779
|
} | undefined;
|
|
289
|
-
|
|
780
|
+
serverless?: {
|
|
781
|
+
enabled?: boolean | undefined;
|
|
782
|
+
hybrid?: {
|
|
783
|
+
useLocalInDev?: boolean | undefined;
|
|
784
|
+
useCloudInProd?: boolean | undefined;
|
|
785
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
786
|
+
} | undefined;
|
|
787
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
788
|
+
lazyLocal?: {
|
|
789
|
+
dockerImage?: string | undefined;
|
|
790
|
+
port?: number | undefined;
|
|
791
|
+
dataDir?: string | undefined;
|
|
792
|
+
autoStart?: boolean | undefined;
|
|
793
|
+
autoStop?: boolean | undefined;
|
|
794
|
+
idleTimeoutMs?: number | undefined;
|
|
795
|
+
healthCheckIntervalMs?: number | undefined;
|
|
796
|
+
} | undefined;
|
|
797
|
+
cloudServerless?: {
|
|
798
|
+
url?: string | undefined;
|
|
799
|
+
apiKey?: string | undefined;
|
|
800
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
801
|
+
region?: string | undefined;
|
|
802
|
+
keepWarm?: boolean | undefined;
|
|
803
|
+
warmIntervalMs?: number | undefined;
|
|
804
|
+
} | undefined;
|
|
805
|
+
fallbackToMemory?: boolean | undefined;
|
|
806
|
+
} | undefined;
|
|
290
807
|
endpoint?: string | undefined;
|
|
291
808
|
embeddingModel?: string | undefined;
|
|
292
809
|
qdrantCloud?: {
|
|
@@ -428,6 +945,174 @@ export declare const ProjectSchema: z.ZodObject<{
|
|
|
428
945
|
description?: string | undefined;
|
|
429
946
|
defaultBranch?: string | undefined;
|
|
430
947
|
}>;
|
|
948
|
+
/**
|
|
949
|
+
* NEW: Cost optimization settings.
|
|
950
|
+
*/
|
|
951
|
+
export declare const CostOptimizationSchema: z.ZodObject<{
|
|
952
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
953
|
+
tokenBudget: z.ZodOptional<z.ZodObject<{
|
|
954
|
+
maxTemplateTokens: z.ZodDefault<z.ZodNumber>;
|
|
955
|
+
maxMemoryQueryTokens: z.ZodDefault<z.ZodNumber>;
|
|
956
|
+
maxContextTokens: z.ZodDefault<z.ZodNumber>;
|
|
957
|
+
warningThreshold: z.ZodDefault<z.ZodNumber>;
|
|
958
|
+
}, "strip", z.ZodTypeAny, {
|
|
959
|
+
maxTemplateTokens: number;
|
|
960
|
+
maxMemoryQueryTokens: number;
|
|
961
|
+
maxContextTokens: number;
|
|
962
|
+
warningThreshold: number;
|
|
963
|
+
}, {
|
|
964
|
+
maxTemplateTokens?: number | undefined;
|
|
965
|
+
maxMemoryQueryTokens?: number | undefined;
|
|
966
|
+
maxContextTokens?: number | undefined;
|
|
967
|
+
warningThreshold?: number | undefined;
|
|
968
|
+
}>>;
|
|
969
|
+
embeddingBatching: z.ZodOptional<z.ZodObject<{
|
|
970
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
971
|
+
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
972
|
+
maxDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
973
|
+
}, "strip", z.ZodTypeAny, {
|
|
974
|
+
enabled: boolean;
|
|
975
|
+
batchSize: number;
|
|
976
|
+
maxDelayMs: number;
|
|
977
|
+
}, {
|
|
978
|
+
enabled?: boolean | undefined;
|
|
979
|
+
batchSize?: number | undefined;
|
|
980
|
+
maxDelayMs?: number | undefined;
|
|
981
|
+
}>>;
|
|
982
|
+
llmCallReduction: z.ZodOptional<z.ZodObject<{
|
|
983
|
+
cacheResponses: z.ZodDefault<z.ZodBoolean>;
|
|
984
|
+
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
985
|
+
deduplicateQueries: z.ZodDefault<z.ZodBoolean>;
|
|
986
|
+
}, "strip", z.ZodTypeAny, {
|
|
987
|
+
cacheResponses: boolean;
|
|
988
|
+
cacheTtlMs: number;
|
|
989
|
+
deduplicateQueries: boolean;
|
|
990
|
+
}, {
|
|
991
|
+
cacheResponses?: boolean | undefined;
|
|
992
|
+
cacheTtlMs?: number | undefined;
|
|
993
|
+
deduplicateQueries?: boolean | undefined;
|
|
994
|
+
}>>;
|
|
995
|
+
}, "strip", z.ZodTypeAny, {
|
|
996
|
+
enabled: boolean;
|
|
997
|
+
tokenBudget?: {
|
|
998
|
+
maxTemplateTokens: number;
|
|
999
|
+
maxMemoryQueryTokens: number;
|
|
1000
|
+
maxContextTokens: number;
|
|
1001
|
+
warningThreshold: number;
|
|
1002
|
+
} | undefined;
|
|
1003
|
+
embeddingBatching?: {
|
|
1004
|
+
enabled: boolean;
|
|
1005
|
+
batchSize: number;
|
|
1006
|
+
maxDelayMs: number;
|
|
1007
|
+
} | undefined;
|
|
1008
|
+
llmCallReduction?: {
|
|
1009
|
+
cacheResponses: boolean;
|
|
1010
|
+
cacheTtlMs: number;
|
|
1011
|
+
deduplicateQueries: boolean;
|
|
1012
|
+
} | undefined;
|
|
1013
|
+
}, {
|
|
1014
|
+
enabled?: boolean | undefined;
|
|
1015
|
+
tokenBudget?: {
|
|
1016
|
+
maxTemplateTokens?: number | undefined;
|
|
1017
|
+
maxMemoryQueryTokens?: number | undefined;
|
|
1018
|
+
maxContextTokens?: number | undefined;
|
|
1019
|
+
warningThreshold?: number | undefined;
|
|
1020
|
+
} | undefined;
|
|
1021
|
+
embeddingBatching?: {
|
|
1022
|
+
enabled?: boolean | undefined;
|
|
1023
|
+
batchSize?: number | undefined;
|
|
1024
|
+
maxDelayMs?: number | undefined;
|
|
1025
|
+
} | undefined;
|
|
1026
|
+
llmCallReduction?: {
|
|
1027
|
+
cacheResponses?: boolean | undefined;
|
|
1028
|
+
cacheTtlMs?: number | undefined;
|
|
1029
|
+
deduplicateQueries?: boolean | undefined;
|
|
1030
|
+
} | undefined;
|
|
1031
|
+
}>;
|
|
1032
|
+
/**
|
|
1033
|
+
* NEW: Time optimization settings for deployments.
|
|
1034
|
+
*/
|
|
1035
|
+
export declare const TimeOptimizationSchema: z.ZodObject<{
|
|
1036
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1037
|
+
batchWindows: z.ZodOptional<z.ZodObject<{
|
|
1038
|
+
commit: z.ZodDefault<z.ZodNumber>;
|
|
1039
|
+
push: z.ZodDefault<z.ZodNumber>;
|
|
1040
|
+
merge: z.ZodDefault<z.ZodNumber>;
|
|
1041
|
+
workflow: z.ZodDefault<z.ZodNumber>;
|
|
1042
|
+
deploy: z.ZodDefault<z.ZodNumber>;
|
|
1043
|
+
}, "strip", z.ZodTypeAny, {
|
|
1044
|
+
push: number;
|
|
1045
|
+
commit: number;
|
|
1046
|
+
merge: number;
|
|
1047
|
+
workflow: number;
|
|
1048
|
+
deploy: number;
|
|
1049
|
+
}, {
|
|
1050
|
+
push?: number | undefined;
|
|
1051
|
+
commit?: number | undefined;
|
|
1052
|
+
merge?: number | undefined;
|
|
1053
|
+
workflow?: number | undefined;
|
|
1054
|
+
deploy?: number | undefined;
|
|
1055
|
+
}>>;
|
|
1056
|
+
parallelExecution: z.ZodOptional<z.ZodObject<{
|
|
1057
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1058
|
+
maxParallelDroids: z.ZodDefault<z.ZodNumber>;
|
|
1059
|
+
maxParallelWorkflows: z.ZodDefault<z.ZodNumber>;
|
|
1060
|
+
}, "strip", z.ZodTypeAny, {
|
|
1061
|
+
enabled: boolean;
|
|
1062
|
+
maxParallelDroids: number;
|
|
1063
|
+
maxParallelWorkflows: number;
|
|
1064
|
+
}, {
|
|
1065
|
+
enabled?: boolean | undefined;
|
|
1066
|
+
maxParallelDroids?: number | undefined;
|
|
1067
|
+
maxParallelWorkflows?: number | undefined;
|
|
1068
|
+
}>>;
|
|
1069
|
+
prewarming: z.ZodOptional<z.ZodObject<{
|
|
1070
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1071
|
+
prewarmServices: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1072
|
+
}, "strip", z.ZodTypeAny, {
|
|
1073
|
+
enabled: boolean;
|
|
1074
|
+
prewarmServices: string[];
|
|
1075
|
+
}, {
|
|
1076
|
+
enabled?: boolean | undefined;
|
|
1077
|
+
prewarmServices?: string[] | undefined;
|
|
1078
|
+
}>>;
|
|
1079
|
+
}, "strip", z.ZodTypeAny, {
|
|
1080
|
+
enabled: boolean;
|
|
1081
|
+
batchWindows?: {
|
|
1082
|
+
push: number;
|
|
1083
|
+
commit: number;
|
|
1084
|
+
merge: number;
|
|
1085
|
+
workflow: number;
|
|
1086
|
+
deploy: number;
|
|
1087
|
+
} | undefined;
|
|
1088
|
+
parallelExecution?: {
|
|
1089
|
+
enabled: boolean;
|
|
1090
|
+
maxParallelDroids: number;
|
|
1091
|
+
maxParallelWorkflows: number;
|
|
1092
|
+
} | undefined;
|
|
1093
|
+
prewarming?: {
|
|
1094
|
+
enabled: boolean;
|
|
1095
|
+
prewarmServices: string[];
|
|
1096
|
+
} | undefined;
|
|
1097
|
+
}, {
|
|
1098
|
+
enabled?: boolean | undefined;
|
|
1099
|
+
batchWindows?: {
|
|
1100
|
+
push?: number | undefined;
|
|
1101
|
+
commit?: number | undefined;
|
|
1102
|
+
merge?: number | undefined;
|
|
1103
|
+
workflow?: number | undefined;
|
|
1104
|
+
deploy?: number | undefined;
|
|
1105
|
+
} | undefined;
|
|
1106
|
+
parallelExecution?: {
|
|
1107
|
+
enabled?: boolean | undefined;
|
|
1108
|
+
maxParallelDroids?: number | undefined;
|
|
1109
|
+
maxParallelWorkflows?: number | undefined;
|
|
1110
|
+
} | undefined;
|
|
1111
|
+
prewarming?: {
|
|
1112
|
+
enabled?: boolean | undefined;
|
|
1113
|
+
prewarmServices?: string[] | undefined;
|
|
1114
|
+
} | undefined;
|
|
1115
|
+
}>;
|
|
431
1116
|
export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
432
1117
|
$schema: z.ZodOptional<z.ZodString>;
|
|
433
1118
|
version: z.ZodDefault<z.ZodString>;
|
|
@@ -522,7 +1207,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
522
1207
|
}>>;
|
|
523
1208
|
longTerm: z.ZodOptional<z.ZodObject<{
|
|
524
1209
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
525
|
-
provider: z.ZodDefault<z.ZodEnum<["qdrant", "chroma", "pinecone", "github", "qdrant-cloud", "none"]>>;
|
|
1210
|
+
provider: z.ZodDefault<z.ZodEnum<["qdrant", "chroma", "pinecone", "github", "qdrant-cloud", "serverless", "none"]>>;
|
|
526
1211
|
endpoint: z.ZodOptional<z.ZodString>;
|
|
527
1212
|
collection: z.ZodDefault<z.ZodString>;
|
|
528
1213
|
embeddingModel: z.ZodDefault<z.ZodString>;
|
|
@@ -561,10 +1246,127 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
561
1246
|
apiKey?: string | undefined;
|
|
562
1247
|
collection?: string | undefined;
|
|
563
1248
|
}>>;
|
|
1249
|
+
serverless: z.ZodOptional<z.ZodObject<{
|
|
1250
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1251
|
+
mode: z.ZodDefault<z.ZodEnum<["lazy-local", "cloud-serverless", "hybrid"]>>;
|
|
1252
|
+
lazyLocal: z.ZodOptional<z.ZodObject<{
|
|
1253
|
+
dockerImage: z.ZodDefault<z.ZodString>;
|
|
1254
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
1255
|
+
dataDir: z.ZodDefault<z.ZodString>;
|
|
1256
|
+
autoStart: z.ZodDefault<z.ZodBoolean>;
|
|
1257
|
+
autoStop: z.ZodDefault<z.ZodBoolean>;
|
|
1258
|
+
idleTimeoutMs: z.ZodDefault<z.ZodNumber>;
|
|
1259
|
+
healthCheckIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
1260
|
+
}, "strip", z.ZodTypeAny, {
|
|
1261
|
+
dockerImage: string;
|
|
1262
|
+
port: number;
|
|
1263
|
+
dataDir: string;
|
|
1264
|
+
autoStart: boolean;
|
|
1265
|
+
autoStop: boolean;
|
|
1266
|
+
idleTimeoutMs: number;
|
|
1267
|
+
healthCheckIntervalMs: number;
|
|
1268
|
+
}, {
|
|
1269
|
+
dockerImage?: string | undefined;
|
|
1270
|
+
port?: number | undefined;
|
|
1271
|
+
dataDir?: string | undefined;
|
|
1272
|
+
autoStart?: boolean | undefined;
|
|
1273
|
+
autoStop?: boolean | undefined;
|
|
1274
|
+
idleTimeoutMs?: number | undefined;
|
|
1275
|
+
healthCheckIntervalMs?: number | undefined;
|
|
1276
|
+
}>>;
|
|
1277
|
+
cloudServerless: z.ZodOptional<z.ZodObject<{
|
|
1278
|
+
provider: z.ZodDefault<z.ZodEnum<["qdrant-cloud", "aws-lambda", "cloudflare-workers"]>>;
|
|
1279
|
+
url: z.ZodOptional<z.ZodString>;
|
|
1280
|
+
apiKey: z.ZodOptional<z.ZodString>;
|
|
1281
|
+
region: z.ZodDefault<z.ZodString>;
|
|
1282
|
+
keepWarm: z.ZodDefault<z.ZodBoolean>;
|
|
1283
|
+
warmIntervalMs: z.ZodDefault<z.ZodNumber>;
|
|
1284
|
+
}, "strip", z.ZodTypeAny, {
|
|
1285
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
1286
|
+
region: string;
|
|
1287
|
+
keepWarm: boolean;
|
|
1288
|
+
warmIntervalMs: number;
|
|
1289
|
+
url?: string | undefined;
|
|
1290
|
+
apiKey?: string | undefined;
|
|
1291
|
+
}, {
|
|
1292
|
+
url?: string | undefined;
|
|
1293
|
+
apiKey?: string | undefined;
|
|
1294
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1295
|
+
region?: string | undefined;
|
|
1296
|
+
keepWarm?: boolean | undefined;
|
|
1297
|
+
warmIntervalMs?: number | undefined;
|
|
1298
|
+
}>>;
|
|
1299
|
+
hybrid: z.ZodOptional<z.ZodObject<{
|
|
1300
|
+
useLocalInDev: z.ZodDefault<z.ZodBoolean>;
|
|
1301
|
+
useCloudInProd: z.ZodDefault<z.ZodBoolean>;
|
|
1302
|
+
envDetection: z.ZodDefault<z.ZodEnum<["NODE_ENV", "UAM_ENV", "auto"]>>;
|
|
1303
|
+
}, "strip", z.ZodTypeAny, {
|
|
1304
|
+
useLocalInDev: boolean;
|
|
1305
|
+
useCloudInProd: boolean;
|
|
1306
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
1307
|
+
}, {
|
|
1308
|
+
useLocalInDev?: boolean | undefined;
|
|
1309
|
+
useCloudInProd?: boolean | undefined;
|
|
1310
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
1311
|
+
}>>;
|
|
1312
|
+
fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
|
|
1313
|
+
}, "strip", z.ZodTypeAny, {
|
|
1314
|
+
enabled: boolean;
|
|
1315
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
1316
|
+
fallbackToMemory: boolean;
|
|
1317
|
+
hybrid?: {
|
|
1318
|
+
useLocalInDev: boolean;
|
|
1319
|
+
useCloudInProd: boolean;
|
|
1320
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
1321
|
+
} | undefined;
|
|
1322
|
+
lazyLocal?: {
|
|
1323
|
+
dockerImage: string;
|
|
1324
|
+
port: number;
|
|
1325
|
+
dataDir: string;
|
|
1326
|
+
autoStart: boolean;
|
|
1327
|
+
autoStop: boolean;
|
|
1328
|
+
idleTimeoutMs: number;
|
|
1329
|
+
healthCheckIntervalMs: number;
|
|
1330
|
+
} | undefined;
|
|
1331
|
+
cloudServerless?: {
|
|
1332
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
1333
|
+
region: string;
|
|
1334
|
+
keepWarm: boolean;
|
|
1335
|
+
warmIntervalMs: number;
|
|
1336
|
+
url?: string | undefined;
|
|
1337
|
+
apiKey?: string | undefined;
|
|
1338
|
+
} | undefined;
|
|
1339
|
+
}, {
|
|
1340
|
+
enabled?: boolean | undefined;
|
|
1341
|
+
hybrid?: {
|
|
1342
|
+
useLocalInDev?: boolean | undefined;
|
|
1343
|
+
useCloudInProd?: boolean | undefined;
|
|
1344
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
1345
|
+
} | undefined;
|
|
1346
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
1347
|
+
lazyLocal?: {
|
|
1348
|
+
dockerImage?: string | undefined;
|
|
1349
|
+
port?: number | undefined;
|
|
1350
|
+
dataDir?: string | undefined;
|
|
1351
|
+
autoStart?: boolean | undefined;
|
|
1352
|
+
autoStop?: boolean | undefined;
|
|
1353
|
+
idleTimeoutMs?: number | undefined;
|
|
1354
|
+
healthCheckIntervalMs?: number | undefined;
|
|
1355
|
+
} | undefined;
|
|
1356
|
+
cloudServerless?: {
|
|
1357
|
+
url?: string | undefined;
|
|
1358
|
+
apiKey?: string | undefined;
|
|
1359
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1360
|
+
region?: string | undefined;
|
|
1361
|
+
keepWarm?: boolean | undefined;
|
|
1362
|
+
warmIntervalMs?: number | undefined;
|
|
1363
|
+
} | undefined;
|
|
1364
|
+
fallbackToMemory?: boolean | undefined;
|
|
1365
|
+
}>>;
|
|
564
1366
|
}, "strip", z.ZodTypeAny, {
|
|
565
1367
|
enabled: boolean;
|
|
566
1368
|
collection: string;
|
|
567
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "
|
|
1369
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
568
1370
|
embeddingModel: string;
|
|
569
1371
|
github?: {
|
|
570
1372
|
enabled: boolean;
|
|
@@ -573,6 +1375,33 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
573
1375
|
repo?: string | undefined;
|
|
574
1376
|
token?: string | undefined;
|
|
575
1377
|
} | undefined;
|
|
1378
|
+
serverless?: {
|
|
1379
|
+
enabled: boolean;
|
|
1380
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
1381
|
+
fallbackToMemory: boolean;
|
|
1382
|
+
hybrid?: {
|
|
1383
|
+
useLocalInDev: boolean;
|
|
1384
|
+
useCloudInProd: boolean;
|
|
1385
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
1386
|
+
} | undefined;
|
|
1387
|
+
lazyLocal?: {
|
|
1388
|
+
dockerImage: string;
|
|
1389
|
+
port: number;
|
|
1390
|
+
dataDir: string;
|
|
1391
|
+
autoStart: boolean;
|
|
1392
|
+
autoStop: boolean;
|
|
1393
|
+
idleTimeoutMs: number;
|
|
1394
|
+
healthCheckIntervalMs: number;
|
|
1395
|
+
} | undefined;
|
|
1396
|
+
cloudServerless?: {
|
|
1397
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
1398
|
+
region: string;
|
|
1399
|
+
keepWarm: boolean;
|
|
1400
|
+
warmIntervalMs: number;
|
|
1401
|
+
url?: string | undefined;
|
|
1402
|
+
apiKey?: string | undefined;
|
|
1403
|
+
} | undefined;
|
|
1404
|
+
} | undefined;
|
|
576
1405
|
endpoint?: string | undefined;
|
|
577
1406
|
qdrantCloud?: {
|
|
578
1407
|
enabled: boolean;
|
|
@@ -583,6 +1412,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
583
1412
|
}, {
|
|
584
1413
|
enabled?: boolean | undefined;
|
|
585
1414
|
collection?: string | undefined;
|
|
1415
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
586
1416
|
github?: {
|
|
587
1417
|
enabled?: boolean | undefined;
|
|
588
1418
|
path?: string | undefined;
|
|
@@ -590,7 +1420,33 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
590
1420
|
token?: string | undefined;
|
|
591
1421
|
branch?: string | undefined;
|
|
592
1422
|
} | undefined;
|
|
593
|
-
|
|
1423
|
+
serverless?: {
|
|
1424
|
+
enabled?: boolean | undefined;
|
|
1425
|
+
hybrid?: {
|
|
1426
|
+
useLocalInDev?: boolean | undefined;
|
|
1427
|
+
useCloudInProd?: boolean | undefined;
|
|
1428
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
1429
|
+
} | undefined;
|
|
1430
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
1431
|
+
lazyLocal?: {
|
|
1432
|
+
dockerImage?: string | undefined;
|
|
1433
|
+
port?: number | undefined;
|
|
1434
|
+
dataDir?: string | undefined;
|
|
1435
|
+
autoStart?: boolean | undefined;
|
|
1436
|
+
autoStop?: boolean | undefined;
|
|
1437
|
+
idleTimeoutMs?: number | undefined;
|
|
1438
|
+
healthCheckIntervalMs?: number | undefined;
|
|
1439
|
+
} | undefined;
|
|
1440
|
+
cloudServerless?: {
|
|
1441
|
+
url?: string | undefined;
|
|
1442
|
+
apiKey?: string | undefined;
|
|
1443
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1444
|
+
region?: string | undefined;
|
|
1445
|
+
keepWarm?: boolean | undefined;
|
|
1446
|
+
warmIntervalMs?: number | undefined;
|
|
1447
|
+
} | undefined;
|
|
1448
|
+
fallbackToMemory?: boolean | undefined;
|
|
1449
|
+
} | undefined;
|
|
594
1450
|
endpoint?: string | undefined;
|
|
595
1451
|
embeddingModel?: string | undefined;
|
|
596
1452
|
qdrantCloud?: {
|
|
@@ -611,7 +1467,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
611
1467
|
longTerm?: {
|
|
612
1468
|
enabled: boolean;
|
|
613
1469
|
collection: string;
|
|
614
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "
|
|
1470
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
615
1471
|
embeddingModel: string;
|
|
616
1472
|
github?: {
|
|
617
1473
|
enabled: boolean;
|
|
@@ -620,6 +1476,33 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
620
1476
|
repo?: string | undefined;
|
|
621
1477
|
token?: string | undefined;
|
|
622
1478
|
} | undefined;
|
|
1479
|
+
serverless?: {
|
|
1480
|
+
enabled: boolean;
|
|
1481
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
1482
|
+
fallbackToMemory: boolean;
|
|
1483
|
+
hybrid?: {
|
|
1484
|
+
useLocalInDev: boolean;
|
|
1485
|
+
useCloudInProd: boolean;
|
|
1486
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
1487
|
+
} | undefined;
|
|
1488
|
+
lazyLocal?: {
|
|
1489
|
+
dockerImage: string;
|
|
1490
|
+
port: number;
|
|
1491
|
+
dataDir: string;
|
|
1492
|
+
autoStart: boolean;
|
|
1493
|
+
autoStop: boolean;
|
|
1494
|
+
idleTimeoutMs: number;
|
|
1495
|
+
healthCheckIntervalMs: number;
|
|
1496
|
+
} | undefined;
|
|
1497
|
+
cloudServerless?: {
|
|
1498
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
1499
|
+
region: string;
|
|
1500
|
+
keepWarm: boolean;
|
|
1501
|
+
warmIntervalMs: number;
|
|
1502
|
+
url?: string | undefined;
|
|
1503
|
+
apiKey?: string | undefined;
|
|
1504
|
+
} | undefined;
|
|
1505
|
+
} | undefined;
|
|
623
1506
|
endpoint?: string | undefined;
|
|
624
1507
|
qdrantCloud?: {
|
|
625
1508
|
enabled: boolean;
|
|
@@ -639,6 +1522,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
639
1522
|
longTerm?: {
|
|
640
1523
|
enabled?: boolean | undefined;
|
|
641
1524
|
collection?: string | undefined;
|
|
1525
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
642
1526
|
github?: {
|
|
643
1527
|
enabled?: boolean | undefined;
|
|
644
1528
|
path?: string | undefined;
|
|
@@ -646,7 +1530,33 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
646
1530
|
token?: string | undefined;
|
|
647
1531
|
branch?: string | undefined;
|
|
648
1532
|
} | undefined;
|
|
649
|
-
|
|
1533
|
+
serverless?: {
|
|
1534
|
+
enabled?: boolean | undefined;
|
|
1535
|
+
hybrid?: {
|
|
1536
|
+
useLocalInDev?: boolean | undefined;
|
|
1537
|
+
useCloudInProd?: boolean | undefined;
|
|
1538
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
1541
|
+
lazyLocal?: {
|
|
1542
|
+
dockerImage?: string | undefined;
|
|
1543
|
+
port?: number | undefined;
|
|
1544
|
+
dataDir?: string | undefined;
|
|
1545
|
+
autoStart?: boolean | undefined;
|
|
1546
|
+
autoStop?: boolean | undefined;
|
|
1547
|
+
idleTimeoutMs?: number | undefined;
|
|
1548
|
+
healthCheckIntervalMs?: number | undefined;
|
|
1549
|
+
} | undefined;
|
|
1550
|
+
cloudServerless?: {
|
|
1551
|
+
url?: string | undefined;
|
|
1552
|
+
apiKey?: string | undefined;
|
|
1553
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1554
|
+
region?: string | undefined;
|
|
1555
|
+
keepWarm?: boolean | undefined;
|
|
1556
|
+
warmIntervalMs?: number | undefined;
|
|
1557
|
+
} | undefined;
|
|
1558
|
+
fallbackToMemory?: boolean | undefined;
|
|
1559
|
+
} | undefined;
|
|
650
1560
|
endpoint?: string | undefined;
|
|
651
1561
|
embeddingModel?: string | undefined;
|
|
652
1562
|
qdrantCloud?: {
|
|
@@ -753,6 +1663,168 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
753
1663
|
augmentedCapabilities?: boolean | undefined;
|
|
754
1664
|
} | undefined;
|
|
755
1665
|
}>>;
|
|
1666
|
+
costOptimization: z.ZodOptional<z.ZodObject<{
|
|
1667
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1668
|
+
tokenBudget: z.ZodOptional<z.ZodObject<{
|
|
1669
|
+
maxTemplateTokens: z.ZodDefault<z.ZodNumber>;
|
|
1670
|
+
maxMemoryQueryTokens: z.ZodDefault<z.ZodNumber>;
|
|
1671
|
+
maxContextTokens: z.ZodDefault<z.ZodNumber>;
|
|
1672
|
+
warningThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1673
|
+
}, "strip", z.ZodTypeAny, {
|
|
1674
|
+
maxTemplateTokens: number;
|
|
1675
|
+
maxMemoryQueryTokens: number;
|
|
1676
|
+
maxContextTokens: number;
|
|
1677
|
+
warningThreshold: number;
|
|
1678
|
+
}, {
|
|
1679
|
+
maxTemplateTokens?: number | undefined;
|
|
1680
|
+
maxMemoryQueryTokens?: number | undefined;
|
|
1681
|
+
maxContextTokens?: number | undefined;
|
|
1682
|
+
warningThreshold?: number | undefined;
|
|
1683
|
+
}>>;
|
|
1684
|
+
embeddingBatching: z.ZodOptional<z.ZodObject<{
|
|
1685
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1686
|
+
batchSize: z.ZodDefault<z.ZodNumber>;
|
|
1687
|
+
maxDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
1688
|
+
}, "strip", z.ZodTypeAny, {
|
|
1689
|
+
enabled: boolean;
|
|
1690
|
+
batchSize: number;
|
|
1691
|
+
maxDelayMs: number;
|
|
1692
|
+
}, {
|
|
1693
|
+
enabled?: boolean | undefined;
|
|
1694
|
+
batchSize?: number | undefined;
|
|
1695
|
+
maxDelayMs?: number | undefined;
|
|
1696
|
+
}>>;
|
|
1697
|
+
llmCallReduction: z.ZodOptional<z.ZodObject<{
|
|
1698
|
+
cacheResponses: z.ZodDefault<z.ZodBoolean>;
|
|
1699
|
+
cacheTtlMs: z.ZodDefault<z.ZodNumber>;
|
|
1700
|
+
deduplicateQueries: z.ZodDefault<z.ZodBoolean>;
|
|
1701
|
+
}, "strip", z.ZodTypeAny, {
|
|
1702
|
+
cacheResponses: boolean;
|
|
1703
|
+
cacheTtlMs: number;
|
|
1704
|
+
deduplicateQueries: boolean;
|
|
1705
|
+
}, {
|
|
1706
|
+
cacheResponses?: boolean | undefined;
|
|
1707
|
+
cacheTtlMs?: number | undefined;
|
|
1708
|
+
deduplicateQueries?: boolean | undefined;
|
|
1709
|
+
}>>;
|
|
1710
|
+
}, "strip", z.ZodTypeAny, {
|
|
1711
|
+
enabled: boolean;
|
|
1712
|
+
tokenBudget?: {
|
|
1713
|
+
maxTemplateTokens: number;
|
|
1714
|
+
maxMemoryQueryTokens: number;
|
|
1715
|
+
maxContextTokens: number;
|
|
1716
|
+
warningThreshold: number;
|
|
1717
|
+
} | undefined;
|
|
1718
|
+
embeddingBatching?: {
|
|
1719
|
+
enabled: boolean;
|
|
1720
|
+
batchSize: number;
|
|
1721
|
+
maxDelayMs: number;
|
|
1722
|
+
} | undefined;
|
|
1723
|
+
llmCallReduction?: {
|
|
1724
|
+
cacheResponses: boolean;
|
|
1725
|
+
cacheTtlMs: number;
|
|
1726
|
+
deduplicateQueries: boolean;
|
|
1727
|
+
} | undefined;
|
|
1728
|
+
}, {
|
|
1729
|
+
enabled?: boolean | undefined;
|
|
1730
|
+
tokenBudget?: {
|
|
1731
|
+
maxTemplateTokens?: number | undefined;
|
|
1732
|
+
maxMemoryQueryTokens?: number | undefined;
|
|
1733
|
+
maxContextTokens?: number | undefined;
|
|
1734
|
+
warningThreshold?: number | undefined;
|
|
1735
|
+
} | undefined;
|
|
1736
|
+
embeddingBatching?: {
|
|
1737
|
+
enabled?: boolean | undefined;
|
|
1738
|
+
batchSize?: number | undefined;
|
|
1739
|
+
maxDelayMs?: number | undefined;
|
|
1740
|
+
} | undefined;
|
|
1741
|
+
llmCallReduction?: {
|
|
1742
|
+
cacheResponses?: boolean | undefined;
|
|
1743
|
+
cacheTtlMs?: number | undefined;
|
|
1744
|
+
deduplicateQueries?: boolean | undefined;
|
|
1745
|
+
} | undefined;
|
|
1746
|
+
}>>;
|
|
1747
|
+
timeOptimization: z.ZodOptional<z.ZodObject<{
|
|
1748
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1749
|
+
batchWindows: z.ZodOptional<z.ZodObject<{
|
|
1750
|
+
commit: z.ZodDefault<z.ZodNumber>;
|
|
1751
|
+
push: z.ZodDefault<z.ZodNumber>;
|
|
1752
|
+
merge: z.ZodDefault<z.ZodNumber>;
|
|
1753
|
+
workflow: z.ZodDefault<z.ZodNumber>;
|
|
1754
|
+
deploy: z.ZodDefault<z.ZodNumber>;
|
|
1755
|
+
}, "strip", z.ZodTypeAny, {
|
|
1756
|
+
push: number;
|
|
1757
|
+
commit: number;
|
|
1758
|
+
merge: number;
|
|
1759
|
+
workflow: number;
|
|
1760
|
+
deploy: number;
|
|
1761
|
+
}, {
|
|
1762
|
+
push?: number | undefined;
|
|
1763
|
+
commit?: number | undefined;
|
|
1764
|
+
merge?: number | undefined;
|
|
1765
|
+
workflow?: number | undefined;
|
|
1766
|
+
deploy?: number | undefined;
|
|
1767
|
+
}>>;
|
|
1768
|
+
parallelExecution: z.ZodOptional<z.ZodObject<{
|
|
1769
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1770
|
+
maxParallelDroids: z.ZodDefault<z.ZodNumber>;
|
|
1771
|
+
maxParallelWorkflows: z.ZodDefault<z.ZodNumber>;
|
|
1772
|
+
}, "strip", z.ZodTypeAny, {
|
|
1773
|
+
enabled: boolean;
|
|
1774
|
+
maxParallelDroids: number;
|
|
1775
|
+
maxParallelWorkflows: number;
|
|
1776
|
+
}, {
|
|
1777
|
+
enabled?: boolean | undefined;
|
|
1778
|
+
maxParallelDroids?: number | undefined;
|
|
1779
|
+
maxParallelWorkflows?: number | undefined;
|
|
1780
|
+
}>>;
|
|
1781
|
+
prewarming: z.ZodOptional<z.ZodObject<{
|
|
1782
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1783
|
+
prewarmServices: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
1784
|
+
}, "strip", z.ZodTypeAny, {
|
|
1785
|
+
enabled: boolean;
|
|
1786
|
+
prewarmServices: string[];
|
|
1787
|
+
}, {
|
|
1788
|
+
enabled?: boolean | undefined;
|
|
1789
|
+
prewarmServices?: string[] | undefined;
|
|
1790
|
+
}>>;
|
|
1791
|
+
}, "strip", z.ZodTypeAny, {
|
|
1792
|
+
enabled: boolean;
|
|
1793
|
+
batchWindows?: {
|
|
1794
|
+
push: number;
|
|
1795
|
+
commit: number;
|
|
1796
|
+
merge: number;
|
|
1797
|
+
workflow: number;
|
|
1798
|
+
deploy: number;
|
|
1799
|
+
} | undefined;
|
|
1800
|
+
parallelExecution?: {
|
|
1801
|
+
enabled: boolean;
|
|
1802
|
+
maxParallelDroids: number;
|
|
1803
|
+
maxParallelWorkflows: number;
|
|
1804
|
+
} | undefined;
|
|
1805
|
+
prewarming?: {
|
|
1806
|
+
enabled: boolean;
|
|
1807
|
+
prewarmServices: string[];
|
|
1808
|
+
} | undefined;
|
|
1809
|
+
}, {
|
|
1810
|
+
enabled?: boolean | undefined;
|
|
1811
|
+
batchWindows?: {
|
|
1812
|
+
push?: number | undefined;
|
|
1813
|
+
commit?: number | undefined;
|
|
1814
|
+
merge?: number | undefined;
|
|
1815
|
+
workflow?: number | undefined;
|
|
1816
|
+
deploy?: number | undefined;
|
|
1817
|
+
} | undefined;
|
|
1818
|
+
parallelExecution?: {
|
|
1819
|
+
enabled?: boolean | undefined;
|
|
1820
|
+
maxParallelDroids?: number | undefined;
|
|
1821
|
+
maxParallelWorkflows?: number | undefined;
|
|
1822
|
+
} | undefined;
|
|
1823
|
+
prewarming?: {
|
|
1824
|
+
enabled?: boolean | undefined;
|
|
1825
|
+
prewarmServices?: string[] | undefined;
|
|
1826
|
+
} | undefined;
|
|
1827
|
+
}>>;
|
|
756
1828
|
}, "strip", z.ZodTypeAny, {
|
|
757
1829
|
version: string;
|
|
758
1830
|
project: {
|
|
@@ -797,7 +1869,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
797
1869
|
longTerm?: {
|
|
798
1870
|
enabled: boolean;
|
|
799
1871
|
collection: string;
|
|
800
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "
|
|
1872
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
801
1873
|
embeddingModel: string;
|
|
802
1874
|
github?: {
|
|
803
1875
|
enabled: boolean;
|
|
@@ -806,6 +1878,33 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
806
1878
|
repo?: string | undefined;
|
|
807
1879
|
token?: string | undefined;
|
|
808
1880
|
} | undefined;
|
|
1881
|
+
serverless?: {
|
|
1882
|
+
enabled: boolean;
|
|
1883
|
+
mode: "lazy-local" | "cloud-serverless" | "hybrid";
|
|
1884
|
+
fallbackToMemory: boolean;
|
|
1885
|
+
hybrid?: {
|
|
1886
|
+
useLocalInDev: boolean;
|
|
1887
|
+
useCloudInProd: boolean;
|
|
1888
|
+
envDetection: "NODE_ENV" | "UAM_ENV" | "auto";
|
|
1889
|
+
} | undefined;
|
|
1890
|
+
lazyLocal?: {
|
|
1891
|
+
dockerImage: string;
|
|
1892
|
+
port: number;
|
|
1893
|
+
dataDir: string;
|
|
1894
|
+
autoStart: boolean;
|
|
1895
|
+
autoStop: boolean;
|
|
1896
|
+
idleTimeoutMs: number;
|
|
1897
|
+
healthCheckIntervalMs: number;
|
|
1898
|
+
} | undefined;
|
|
1899
|
+
cloudServerless?: {
|
|
1900
|
+
provider: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers";
|
|
1901
|
+
region: string;
|
|
1902
|
+
keepWarm: boolean;
|
|
1903
|
+
warmIntervalMs: number;
|
|
1904
|
+
url?: string | undefined;
|
|
1905
|
+
apiKey?: string | undefined;
|
|
1906
|
+
} | undefined;
|
|
1907
|
+
} | undefined;
|
|
809
1908
|
endpoint?: string | undefined;
|
|
810
1909
|
qdrantCloud?: {
|
|
811
1910
|
enabled: boolean;
|
|
@@ -834,6 +1933,44 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
834
1933
|
description?: string | undefined;
|
|
835
1934
|
argumentHint?: string | undefined;
|
|
836
1935
|
}[] | undefined;
|
|
1936
|
+
costOptimization?: {
|
|
1937
|
+
enabled: boolean;
|
|
1938
|
+
tokenBudget?: {
|
|
1939
|
+
maxTemplateTokens: number;
|
|
1940
|
+
maxMemoryQueryTokens: number;
|
|
1941
|
+
maxContextTokens: number;
|
|
1942
|
+
warningThreshold: number;
|
|
1943
|
+
} | undefined;
|
|
1944
|
+
embeddingBatching?: {
|
|
1945
|
+
enabled: boolean;
|
|
1946
|
+
batchSize: number;
|
|
1947
|
+
maxDelayMs: number;
|
|
1948
|
+
} | undefined;
|
|
1949
|
+
llmCallReduction?: {
|
|
1950
|
+
cacheResponses: boolean;
|
|
1951
|
+
cacheTtlMs: number;
|
|
1952
|
+
deduplicateQueries: boolean;
|
|
1953
|
+
} | undefined;
|
|
1954
|
+
} | undefined;
|
|
1955
|
+
timeOptimization?: {
|
|
1956
|
+
enabled: boolean;
|
|
1957
|
+
batchWindows?: {
|
|
1958
|
+
push: number;
|
|
1959
|
+
commit: number;
|
|
1960
|
+
merge: number;
|
|
1961
|
+
workflow: number;
|
|
1962
|
+
deploy: number;
|
|
1963
|
+
} | undefined;
|
|
1964
|
+
parallelExecution?: {
|
|
1965
|
+
enabled: boolean;
|
|
1966
|
+
maxParallelDroids: number;
|
|
1967
|
+
maxParallelWorkflows: number;
|
|
1968
|
+
} | undefined;
|
|
1969
|
+
prewarming?: {
|
|
1970
|
+
enabled: boolean;
|
|
1971
|
+
prewarmServices: string[];
|
|
1972
|
+
} | undefined;
|
|
1973
|
+
} | undefined;
|
|
837
1974
|
}, {
|
|
838
1975
|
project: {
|
|
839
1976
|
name: string;
|
|
@@ -878,6 +2015,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
878
2015
|
longTerm?: {
|
|
879
2016
|
enabled?: boolean | undefined;
|
|
880
2017
|
collection?: string | undefined;
|
|
2018
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
881
2019
|
github?: {
|
|
882
2020
|
enabled?: boolean | undefined;
|
|
883
2021
|
path?: string | undefined;
|
|
@@ -885,7 +2023,33 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
885
2023
|
token?: string | undefined;
|
|
886
2024
|
branch?: string | undefined;
|
|
887
2025
|
} | undefined;
|
|
888
|
-
|
|
2026
|
+
serverless?: {
|
|
2027
|
+
enabled?: boolean | undefined;
|
|
2028
|
+
hybrid?: {
|
|
2029
|
+
useLocalInDev?: boolean | undefined;
|
|
2030
|
+
useCloudInProd?: boolean | undefined;
|
|
2031
|
+
envDetection?: "NODE_ENV" | "UAM_ENV" | "auto" | undefined;
|
|
2032
|
+
} | undefined;
|
|
2033
|
+
mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
|
|
2034
|
+
lazyLocal?: {
|
|
2035
|
+
dockerImage?: string | undefined;
|
|
2036
|
+
port?: number | undefined;
|
|
2037
|
+
dataDir?: string | undefined;
|
|
2038
|
+
autoStart?: boolean | undefined;
|
|
2039
|
+
autoStop?: boolean | undefined;
|
|
2040
|
+
idleTimeoutMs?: number | undefined;
|
|
2041
|
+
healthCheckIntervalMs?: number | undefined;
|
|
2042
|
+
} | undefined;
|
|
2043
|
+
cloudServerless?: {
|
|
2044
|
+
url?: string | undefined;
|
|
2045
|
+
apiKey?: string | undefined;
|
|
2046
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
2047
|
+
region?: string | undefined;
|
|
2048
|
+
keepWarm?: boolean | undefined;
|
|
2049
|
+
warmIntervalMs?: number | undefined;
|
|
2050
|
+
} | undefined;
|
|
2051
|
+
fallbackToMemory?: boolean | undefined;
|
|
2052
|
+
} | undefined;
|
|
889
2053
|
endpoint?: string | undefined;
|
|
890
2054
|
embeddingModel?: string | undefined;
|
|
891
2055
|
qdrantCloud?: {
|
|
@@ -915,9 +2079,50 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
915
2079
|
description?: string | undefined;
|
|
916
2080
|
argumentHint?: string | undefined;
|
|
917
2081
|
}[] | undefined;
|
|
2082
|
+
costOptimization?: {
|
|
2083
|
+
enabled?: boolean | undefined;
|
|
2084
|
+
tokenBudget?: {
|
|
2085
|
+
maxTemplateTokens?: number | undefined;
|
|
2086
|
+
maxMemoryQueryTokens?: number | undefined;
|
|
2087
|
+
maxContextTokens?: number | undefined;
|
|
2088
|
+
warningThreshold?: number | undefined;
|
|
2089
|
+
} | undefined;
|
|
2090
|
+
embeddingBatching?: {
|
|
2091
|
+
enabled?: boolean | undefined;
|
|
2092
|
+
batchSize?: number | undefined;
|
|
2093
|
+
maxDelayMs?: number | undefined;
|
|
2094
|
+
} | undefined;
|
|
2095
|
+
llmCallReduction?: {
|
|
2096
|
+
cacheResponses?: boolean | undefined;
|
|
2097
|
+
cacheTtlMs?: number | undefined;
|
|
2098
|
+
deduplicateQueries?: boolean | undefined;
|
|
2099
|
+
} | undefined;
|
|
2100
|
+
} | undefined;
|
|
2101
|
+
timeOptimization?: {
|
|
2102
|
+
enabled?: boolean | undefined;
|
|
2103
|
+
batchWindows?: {
|
|
2104
|
+
push?: number | undefined;
|
|
2105
|
+
commit?: number | undefined;
|
|
2106
|
+
merge?: number | undefined;
|
|
2107
|
+
workflow?: number | undefined;
|
|
2108
|
+
deploy?: number | undefined;
|
|
2109
|
+
} | undefined;
|
|
2110
|
+
parallelExecution?: {
|
|
2111
|
+
enabled?: boolean | undefined;
|
|
2112
|
+
maxParallelDroids?: number | undefined;
|
|
2113
|
+
maxParallelWorkflows?: number | undefined;
|
|
2114
|
+
} | undefined;
|
|
2115
|
+
prewarming?: {
|
|
2116
|
+
enabled?: boolean | undefined;
|
|
2117
|
+
prewarmServices?: string[] | undefined;
|
|
2118
|
+
} | undefined;
|
|
2119
|
+
} | undefined;
|
|
918
2120
|
}>;
|
|
919
2121
|
export type AgentContextConfig = z.infer<typeof AgentContextConfigSchema>;
|
|
920
2122
|
export type Platform = 'claudeCode' | 'factory' | 'vscode' | 'opencode' | 'claudeWeb' | 'factoryWeb';
|
|
921
2123
|
export type Droid = z.infer<typeof DroidSchema>;
|
|
922
2124
|
export type Command = z.infer<typeof CommandSchema>;
|
|
2125
|
+
export type QdrantServerlessConfig = z.infer<typeof QdrantServerlessSchema>;
|
|
2126
|
+
export type CostOptimizationConfig = z.infer<typeof CostOptimizationSchema>;
|
|
2127
|
+
export type TimeOptimizationConfig = z.infer<typeof TimeOptimizationSchema>;
|
|
923
2128
|
//# sourceMappingURL=config.d.ts.map
|