@miller-tech/uap 1.9.1 → 1.10.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 (195) hide show
  1. package/README.md +285 -642
  2. package/config/chat_template.jinja +76 -0
  3. package/config/lora-finetune.yaml +82 -0
  4. package/config/model-profiles/claude-haiku-3.5.json +62 -0
  5. package/config/model-profiles/claude-opus-4.6.json +63 -0
  6. package/config/model-profiles/claude-sonnet-4.6.json +63 -0
  7. package/config/model-profiles/gemini-2.5-flash.json +62 -0
  8. package/config/model-profiles/gemini-2.5-pro.json +62 -0
  9. package/config/model-profiles/generic.json +54 -0
  10. package/config/model-profiles/glm-5.json +61 -0
  11. package/config/model-profiles/gpt-4.1.json +64 -0
  12. package/config/model-profiles/gpt-4o.json +64 -0
  13. package/config/model-profiles/gpt-o3.json +61 -0
  14. package/config/model-profiles/kimi-k2.5.json +70 -0
  15. package/config/model-profiles/llama.json +86 -0
  16. package/config/model-profiles/qwen35.json +218 -0
  17. package/dist/.tsbuildinfo +1 -1
  18. package/dist/bin/cli.js +78 -9
  19. package/dist/bin/cli.js.map +1 -1
  20. package/dist/bin/llama-server-optimize.js +0 -10
  21. package/dist/bin/llama-server-optimize.js.map +1 -1
  22. package/dist/bin/policy.js +11 -195
  23. package/dist/bin/policy.js.map +1 -1
  24. package/dist/cli/dashboard.d.ts.map +1 -1
  25. package/dist/cli/dashboard.js +10 -12
  26. package/dist/cli/dashboard.js.map +1 -1
  27. package/dist/cli/generate.d.ts +0 -7
  28. package/dist/cli/generate.d.ts.map +1 -1
  29. package/dist/cli/generate.js +10 -22
  30. package/dist/cli/generate.js.map +1 -1
  31. package/dist/cli/memory.d.ts.map +1 -1
  32. package/dist/cli/memory.js +43 -109
  33. package/dist/cli/memory.js.map +1 -1
  34. package/dist/cli/model.d.ts.map +1 -1
  35. package/dist/cli/model.js +8 -25
  36. package/dist/cli/model.js.map +1 -1
  37. package/dist/cli/patterns.d.ts.map +1 -1
  38. package/dist/cli/patterns.js +11 -9
  39. package/dist/cli/patterns.js.map +1 -1
  40. package/dist/cli/policy.d.ts.map +1 -1
  41. package/dist/cli/policy.js +165 -1
  42. package/dist/cli/policy.js.map +1 -1
  43. package/dist/cli/rtk-validation.d.ts +0 -4
  44. package/dist/cli/rtk-validation.d.ts.map +1 -1
  45. package/dist/cli/rtk-validation.js +5 -23
  46. package/dist/cli/rtk-validation.js.map +1 -1
  47. package/dist/cli/schema-diff.d.ts.map +1 -1
  48. package/dist/cli/schema-diff.js +25 -16
  49. package/dist/cli/schema-diff.js.map +1 -1
  50. package/dist/cli/setup-wizard.d.ts.map +1 -1
  51. package/dist/cli/setup-wizard.js +11 -7
  52. package/dist/cli/setup-wizard.js.map +1 -1
  53. package/dist/cli/setup.d.ts.map +1 -1
  54. package/dist/cli/setup.js +3 -4
  55. package/dist/cli/setup.js.map +1 -1
  56. package/dist/cli/visualize.d.ts +0 -13
  57. package/dist/cli/visualize.d.ts.map +1 -1
  58. package/dist/cli/visualize.js +1 -60
  59. package/dist/cli/visualize.js.map +1 -1
  60. package/dist/cli/worktree.d.ts.map +1 -1
  61. package/dist/cli/worktree.js +12 -13
  62. package/dist/cli/worktree.js.map +1 -1
  63. package/dist/coordination/adaptive-patterns.d.ts.map +1 -1
  64. package/dist/coordination/adaptive-patterns.js +7 -3
  65. package/dist/coordination/adaptive-patterns.js.map +1 -1
  66. package/dist/coordination/deploy-batcher.d.ts.map +1 -1
  67. package/dist/coordination/deploy-batcher.js +8 -8
  68. package/dist/coordination/deploy-batcher.js.map +1 -1
  69. package/dist/dashboard/data-service.d.ts.map +1 -1
  70. package/dist/dashboard/data-service.js +12 -13
  71. package/dist/dashboard/data-service.js.map +1 -1
  72. package/dist/dashboard/server.d.ts.map +1 -1
  73. package/dist/dashboard/server.js +23 -8
  74. package/dist/dashboard/server.js.map +1 -1
  75. package/dist/index.d.ts +4 -4
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.js +3 -3
  78. package/dist/index.js.map +1 -1
  79. package/dist/mcp-router/executor/client.d.ts +0 -6
  80. package/dist/mcp-router/executor/client.d.ts.map +1 -1
  81. package/dist/mcp-router/executor/client.js +1 -27
  82. package/dist/mcp-router/executor/client.js.map +1 -1
  83. package/dist/mcp-router/index.d.ts +1 -1
  84. package/dist/mcp-router/index.d.ts.map +1 -1
  85. package/dist/mcp-router/index.js.map +1 -1
  86. package/dist/mcp-router/output-compressor.js +114 -112
  87. package/dist/mcp-router/output-compressor.js.map +1 -1
  88. package/dist/mcp-router/types.d.ts +0 -5
  89. package/dist/mcp-router/types.d.ts.map +1 -1
  90. package/dist/memory/backends/github.d.ts.map +1 -1
  91. package/dist/memory/backends/github.js +21 -13
  92. package/dist/memory/backends/github.js.map +1 -1
  93. package/dist/memory/context-pruner.d.ts +2 -9
  94. package/dist/memory/context-pruner.d.ts.map +1 -1
  95. package/dist/memory/context-pruner.js +5 -22
  96. package/dist/memory/context-pruner.js.map +1 -1
  97. package/dist/memory/correction-propagator.d.ts.map +1 -1
  98. package/dist/memory/correction-propagator.js +19 -19
  99. package/dist/memory/correction-propagator.js.map +1 -1
  100. package/dist/memory/dynamic-retrieval.d.ts.map +1 -1
  101. package/dist/memory/dynamic-retrieval.js +263 -132
  102. package/dist/memory/dynamic-retrieval.js.map +1 -1
  103. package/dist/memory/embeddings.d.ts.map +1 -1
  104. package/dist/memory/embeddings.js +2 -15
  105. package/dist/memory/embeddings.js.map +1 -1
  106. package/dist/memory/hierarchical-memory.d.ts.map +1 -1
  107. package/dist/memory/hierarchical-memory.js +6 -0
  108. package/dist/memory/hierarchical-memory.js.map +1 -1
  109. package/dist/memory/knowledge-graph.d.ts.map +1 -1
  110. package/dist/memory/knowledge-graph.js +2 -1
  111. package/dist/memory/knowledge-graph.js.map +1 -1
  112. package/dist/memory/memory-consolidator.d.ts +1 -0
  113. package/dist/memory/memory-consolidator.d.ts.map +1 -1
  114. package/dist/memory/memory-consolidator.js +27 -3
  115. package/dist/memory/memory-consolidator.js.map +1 -1
  116. package/dist/memory/predictive-memory.d.ts +9 -1
  117. package/dist/memory/predictive-memory.d.ts.map +1 -1
  118. package/dist/memory/predictive-memory.js +77 -1
  119. package/dist/memory/predictive-memory.js.map +1 -1
  120. package/dist/memory/serverless-qdrant.d.ts +1 -0
  121. package/dist/memory/serverless-qdrant.d.ts.map +1 -1
  122. package/dist/memory/serverless-qdrant.js +3 -9
  123. package/dist/memory/serverless-qdrant.js.map +1 -1
  124. package/dist/memory/short-term/schema.d.ts.map +1 -1
  125. package/dist/memory/short-term/schema.js +44 -6
  126. package/dist/memory/short-term/schema.js.map +1 -1
  127. package/dist/memory/short-term/sqlite.d.ts +4 -3
  128. package/dist/memory/short-term/sqlite.d.ts.map +1 -1
  129. package/dist/memory/short-term/sqlite.js +3 -12
  130. package/dist/memory/short-term/sqlite.js.map +1 -1
  131. package/dist/memory/speculative-cache.js +2 -2
  132. package/dist/memory/speculative-cache.js.map +1 -1
  133. package/dist/models/executor.d.ts +21 -0
  134. package/dist/models/executor.d.ts.map +1 -1
  135. package/dist/models/executor.js +116 -4
  136. package/dist/models/executor.js.map +1 -1
  137. package/dist/models/planner.d.ts +1 -0
  138. package/dist/models/planner.d.ts.map +1 -1
  139. package/dist/models/planner.js +13 -1
  140. package/dist/models/planner.js.map +1 -1
  141. package/dist/policies/enforced-tool-router.d.ts +3 -1
  142. package/dist/policies/enforced-tool-router.d.ts.map +1 -1
  143. package/dist/policies/enforced-tool-router.js.map +1 -1
  144. package/dist/tasks/service.d.ts +1 -0
  145. package/dist/tasks/service.d.ts.map +1 -1
  146. package/dist/tasks/service.js +10 -6
  147. package/dist/tasks/service.js.map +1 -1
  148. package/dist/telemetry/session-telemetry.d.ts.map +1 -1
  149. package/dist/telemetry/session-telemetry.js +14 -11
  150. package/dist/telemetry/session-telemetry.js.map +1 -1
  151. package/dist/types/config.d.ts +426 -359
  152. package/dist/types/config.d.ts.map +1 -1
  153. package/dist/types/config.js +12 -67
  154. package/dist/types/config.js.map +1 -1
  155. package/dist/utils/config-loader.d.ts +34 -0
  156. package/dist/utils/config-loader.d.ts.map +1 -0
  157. package/dist/utils/config-loader.js +93 -0
  158. package/dist/utils/config-loader.js.map +1 -0
  159. package/dist/utils/lazy-imports.d.ts +18 -0
  160. package/dist/utils/lazy-imports.d.ts.map +1 -0
  161. package/dist/utils/lazy-imports.js +39 -0
  162. package/dist/utils/lazy-imports.js.map +1 -0
  163. package/dist/utils/stopwords.d.ts +12 -0
  164. package/dist/utils/stopwords.d.ts.map +1 -0
  165. package/dist/utils/stopwords.js +196 -0
  166. package/dist/utils/stopwords.js.map +1 -0
  167. package/dist/utils/string-similarity.d.ts +10 -3
  168. package/dist/utils/string-similarity.d.ts.map +1 -1
  169. package/dist/utils/string-similarity.js +49 -25
  170. package/dist/utils/string-similarity.js.map +1 -1
  171. package/docs/INDEX.md +35 -34
  172. package/package.json +13 -14
  173. package/scripts/maintenance/publish-npm.sh +82 -0
  174. package/scripts/maintenance/publish.sh +29 -0
  175. package/scripts/maintenance/update-droids.py +93 -0
  176. package/scripts/maintenance/update-skills.py +148 -0
  177. package/scripts/maintenance/update-uap-compliance.sh +45 -0
  178. package/scripts/maintenance/validate-skills.py +83 -0
  179. package/scripts/maintenance/verify-compliance.sh +117 -0
  180. package/scripts/setup/install-cloakbrowser.ts +14 -0
  181. package/scripts/setup/install-desktop.sh +105 -0
  182. package/scripts/setup/install-rtk.sh +184 -0
  183. package/scripts/setup/install-web.sh +73 -0
  184. package/scripts/setup/setup.sh +375 -0
  185. package/scripts/validate-build.sh +62 -0
  186. package/scripts/version-bump.sh +130 -0
  187. package/tools/agents/scripts/migrate_memory_to_qdrant.py +1 -1
  188. /package/docs/{BENCHMARK_GAPS_AND_PLAN.md → archive/BENCHMARK_GAPS_AND_PLAN.md} +0 -0
  189. /package/docs/{MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md → archive/MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md} +0 -0
  190. /package/docs/{MODEL_ROUTING_OPTIMIZATION_PLAN.md → archive/MODEL_ROUTING_OPTIMIZATION_PLAN.md} +0 -0
  191. /package/docs/{PARALLELISM_GAPS_AND_OPTIONS.md → archive/PARALLELISM_GAPS_AND_OPTIONS.md} +0 -0
  192. /package/docs/{POLICY_GATE_IMPLEMENTATION.md → archive/POLICY_GATE_IMPLEMENTATION.md} +0 -0
  193. /package/docs/{UAP_OPTIMIZATION_PLAN.md → archive/UAP_OPTIMIZATION_PLAN.md} +0 -0
  194. /package/docs/{opencode-integration-guide.md → archive/opencode-integration-guide.md} +0 -0
  195. /package/docs/{opencode-integration-quickref.md → archive/opencode-integration-quickref.md} +0 -0
@@ -68,9 +68,9 @@ export declare const QdrantCloudBackendSchema: z.ZodObject<{
68
68
  apiKey?: string | undefined;
69
69
  }, {
70
70
  enabled?: boolean | undefined;
71
- collection?: string | undefined;
72
71
  url?: string | undefined;
73
72
  apiKey?: string | undefined;
73
+ collection?: string | undefined;
74
74
  }>;
75
75
  /**
76
76
  * NEW: Serverless Qdrant configuration for cost optimization.
@@ -119,9 +119,9 @@ export declare const QdrantServerlessSchema: z.ZodObject<{
119
119
  url?: string | undefined;
120
120
  apiKey?: string | undefined;
121
121
  }, {
122
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
123
122
  url?: string | undefined;
124
123
  apiKey?: string | undefined;
124
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
125
125
  region?: string | undefined;
126
126
  keepWarm?: boolean | undefined;
127
127
  warmIntervalMs?: number | undefined;
@@ -133,11 +133,11 @@ export declare const QdrantServerlessSchema: z.ZodObject<{
133
133
  }, "strip", z.ZodTypeAny, {
134
134
  useLocalInDev: boolean;
135
135
  useCloudInProd: boolean;
136
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
136
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
137
137
  }, {
138
138
  useLocalInDev?: boolean | undefined;
139
139
  useCloudInProd?: boolean | undefined;
140
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
140
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
141
141
  }>>;
142
142
  fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
143
143
  }, "strip", z.ZodTypeAny, {
@@ -147,7 +147,7 @@ export declare const QdrantServerlessSchema: z.ZodObject<{
147
147
  hybrid?: {
148
148
  useLocalInDev: boolean;
149
149
  useCloudInProd: boolean;
150
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
150
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
151
151
  } | undefined;
152
152
  lazyLocal?: {
153
153
  dockerImage: string;
@@ -171,7 +171,7 @@ export declare const QdrantServerlessSchema: z.ZodObject<{
171
171
  hybrid?: {
172
172
  useLocalInDev?: boolean | undefined;
173
173
  useCloudInProd?: boolean | undefined;
174
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
174
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
175
175
  } | undefined;
176
176
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
177
177
  lazyLocal?: {
@@ -184,9 +184,9 @@ export declare const QdrantServerlessSchema: z.ZodObject<{
184
184
  healthCheckIntervalMs?: number | undefined;
185
185
  } | undefined;
186
186
  cloudServerless?: {
187
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
188
187
  url?: string | undefined;
189
188
  apiKey?: string | undefined;
189
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
190
190
  region?: string | undefined;
191
191
  keepWarm?: boolean | undefined;
192
192
  warmIntervalMs?: number | undefined;
@@ -230,9 +230,9 @@ export declare const LongTermMemorySchema: z.ZodObject<{
230
230
  apiKey?: string | undefined;
231
231
  }, {
232
232
  enabled?: boolean | undefined;
233
- collection?: string | undefined;
234
233
  url?: string | undefined;
235
234
  apiKey?: string | undefined;
235
+ collection?: string | undefined;
236
236
  }>>;
237
237
  serverless: z.ZodOptional<z.ZodObject<{
238
238
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -277,9 +277,9 @@ export declare const LongTermMemorySchema: z.ZodObject<{
277
277
  url?: string | undefined;
278
278
  apiKey?: string | undefined;
279
279
  }, {
280
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
281
280
  url?: string | undefined;
282
281
  apiKey?: string | undefined;
282
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
283
283
  region?: string | undefined;
284
284
  keepWarm?: boolean | undefined;
285
285
  warmIntervalMs?: number | undefined;
@@ -291,11 +291,11 @@ export declare const LongTermMemorySchema: z.ZodObject<{
291
291
  }, "strip", z.ZodTypeAny, {
292
292
  useLocalInDev: boolean;
293
293
  useCloudInProd: boolean;
294
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
294
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
295
295
  }, {
296
296
  useLocalInDev?: boolean | undefined;
297
297
  useCloudInProd?: boolean | undefined;
298
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
298
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
299
299
  }>>;
300
300
  fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
301
301
  }, "strip", z.ZodTypeAny, {
@@ -305,7 +305,7 @@ export declare const LongTermMemorySchema: z.ZodObject<{
305
305
  hybrid?: {
306
306
  useLocalInDev: boolean;
307
307
  useCloudInProd: boolean;
308
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
308
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
309
309
  } | undefined;
310
310
  lazyLocal?: {
311
311
  dockerImage: string;
@@ -329,7 +329,7 @@ export declare const LongTermMemorySchema: z.ZodObject<{
329
329
  hybrid?: {
330
330
  useLocalInDev?: boolean | undefined;
331
331
  useCloudInProd?: boolean | undefined;
332
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
332
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
333
333
  } | undefined;
334
334
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
335
335
  lazyLocal?: {
@@ -342,9 +342,9 @@ export declare const LongTermMemorySchema: z.ZodObject<{
342
342
  healthCheckIntervalMs?: number | undefined;
343
343
  } | undefined;
344
344
  cloudServerless?: {
345
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
346
345
  url?: string | undefined;
347
346
  apiKey?: string | undefined;
347
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
348
348
  region?: string | undefined;
349
349
  keepWarm?: boolean | undefined;
350
350
  warmIntervalMs?: number | undefined;
@@ -352,9 +352,9 @@ export declare const LongTermMemorySchema: z.ZodObject<{
352
352
  fallbackToMemory?: boolean | undefined;
353
353
  }>>;
354
354
  }, "strip", z.ZodTypeAny, {
355
- provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
356
355
  enabled: boolean;
357
356
  collection: string;
357
+ provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
358
358
  embeddingModel: string;
359
359
  github?: {
360
360
  enabled: boolean;
@@ -370,7 +370,7 @@ export declare const LongTermMemorySchema: z.ZodObject<{
370
370
  hybrid?: {
371
371
  useLocalInDev: boolean;
372
372
  useCloudInProd: boolean;
373
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
373
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
374
374
  } | undefined;
375
375
  lazyLocal?: {
376
376
  dockerImage: string;
@@ -398,8 +398,9 @@ export declare const LongTermMemorySchema: z.ZodObject<{
398
398
  apiKey?: string | undefined;
399
399
  } | undefined;
400
400
  }, {
401
- provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
402
401
  enabled?: boolean | undefined;
402
+ collection?: string | undefined;
403
+ provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
403
404
  github?: {
404
405
  enabled?: boolean | undefined;
405
406
  path?: string | undefined;
@@ -412,7 +413,7 @@ export declare const LongTermMemorySchema: z.ZodObject<{
412
413
  hybrid?: {
413
414
  useLocalInDev?: boolean | undefined;
414
415
  useCloudInProd?: boolean | undefined;
415
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
416
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
416
417
  } | undefined;
417
418
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
418
419
  lazyLocal?: {
@@ -425,9 +426,9 @@ export declare const LongTermMemorySchema: z.ZodObject<{
425
426
  healthCheckIntervalMs?: number | undefined;
426
427
  } | undefined;
427
428
  cloudServerless?: {
428
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
429
429
  url?: string | undefined;
430
430
  apiKey?: string | undefined;
431
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
431
432
  region?: string | undefined;
432
433
  keepWarm?: boolean | undefined;
433
434
  warmIntervalMs?: number | undefined;
@@ -435,13 +436,12 @@ export declare const LongTermMemorySchema: z.ZodObject<{
435
436
  fallbackToMemory?: boolean | undefined;
436
437
  } | undefined;
437
438
  endpoint?: string | undefined;
438
- collection?: string | undefined;
439
439
  embeddingModel?: string | undefined;
440
440
  qdrantCloud?: {
441
441
  enabled?: boolean | undefined;
442
- collection?: string | undefined;
443
442
  url?: string | undefined;
444
443
  apiKey?: string | undefined;
444
+ collection?: string | undefined;
445
445
  } | undefined;
446
446
  }>;
447
447
  /**
@@ -547,9 +547,9 @@ export declare const MemorySchema: z.ZodObject<{
547
547
  apiKey?: string | undefined;
548
548
  }, {
549
549
  enabled?: boolean | undefined;
550
- collection?: string | undefined;
551
550
  url?: string | undefined;
552
551
  apiKey?: string | undefined;
552
+ collection?: string | undefined;
553
553
  }>>;
554
554
  serverless: z.ZodOptional<z.ZodObject<{
555
555
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -594,9 +594,9 @@ export declare const MemorySchema: z.ZodObject<{
594
594
  url?: string | undefined;
595
595
  apiKey?: string | undefined;
596
596
  }, {
597
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
598
597
  url?: string | undefined;
599
598
  apiKey?: string | undefined;
599
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
600
600
  region?: string | undefined;
601
601
  keepWarm?: boolean | undefined;
602
602
  warmIntervalMs?: number | undefined;
@@ -608,11 +608,11 @@ export declare const MemorySchema: z.ZodObject<{
608
608
  }, "strip", z.ZodTypeAny, {
609
609
  useLocalInDev: boolean;
610
610
  useCloudInProd: boolean;
611
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
611
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
612
612
  }, {
613
613
  useLocalInDev?: boolean | undefined;
614
614
  useCloudInProd?: boolean | undefined;
615
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
615
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
616
616
  }>>;
617
617
  fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
618
618
  }, "strip", z.ZodTypeAny, {
@@ -622,7 +622,7 @@ export declare const MemorySchema: z.ZodObject<{
622
622
  hybrid?: {
623
623
  useLocalInDev: boolean;
624
624
  useCloudInProd: boolean;
625
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
625
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
626
626
  } | undefined;
627
627
  lazyLocal?: {
628
628
  dockerImage: string;
@@ -646,7 +646,7 @@ export declare const MemorySchema: z.ZodObject<{
646
646
  hybrid?: {
647
647
  useLocalInDev?: boolean | undefined;
648
648
  useCloudInProd?: boolean | undefined;
649
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
649
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
650
650
  } | undefined;
651
651
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
652
652
  lazyLocal?: {
@@ -659,9 +659,9 @@ export declare const MemorySchema: z.ZodObject<{
659
659
  healthCheckIntervalMs?: number | undefined;
660
660
  } | undefined;
661
661
  cloudServerless?: {
662
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
663
662
  url?: string | undefined;
664
663
  apiKey?: string | undefined;
664
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
665
665
  region?: string | undefined;
666
666
  keepWarm?: boolean | undefined;
667
667
  warmIntervalMs?: number | undefined;
@@ -669,9 +669,9 @@ export declare const MemorySchema: z.ZodObject<{
669
669
  fallbackToMemory?: boolean | undefined;
670
670
  }>>;
671
671
  }, "strip", z.ZodTypeAny, {
672
- provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
673
672
  enabled: boolean;
674
673
  collection: string;
674
+ provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
675
675
  embeddingModel: string;
676
676
  github?: {
677
677
  enabled: boolean;
@@ -687,7 +687,7 @@ export declare const MemorySchema: z.ZodObject<{
687
687
  hybrid?: {
688
688
  useLocalInDev: boolean;
689
689
  useCloudInProd: boolean;
690
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
690
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
691
691
  } | undefined;
692
692
  lazyLocal?: {
693
693
  dockerImage: string;
@@ -715,8 +715,9 @@ export declare const MemorySchema: z.ZodObject<{
715
715
  apiKey?: string | undefined;
716
716
  } | undefined;
717
717
  }, {
718
- provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
719
718
  enabled?: boolean | undefined;
719
+ collection?: string | undefined;
720
+ provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
720
721
  github?: {
721
722
  enabled?: boolean | undefined;
722
723
  path?: string | undefined;
@@ -729,7 +730,7 @@ export declare const MemorySchema: z.ZodObject<{
729
730
  hybrid?: {
730
731
  useLocalInDev?: boolean | undefined;
731
732
  useCloudInProd?: boolean | undefined;
732
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
733
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
733
734
  } | undefined;
734
735
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
735
736
  lazyLocal?: {
@@ -742,9 +743,9 @@ export declare const MemorySchema: z.ZodObject<{
742
743
  healthCheckIntervalMs?: number | undefined;
743
744
  } | undefined;
744
745
  cloudServerless?: {
745
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
746
746
  url?: string | undefined;
747
747
  apiKey?: string | undefined;
748
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
748
749
  region?: string | undefined;
749
750
  keepWarm?: boolean | undefined;
750
751
  warmIntervalMs?: number | undefined;
@@ -752,13 +753,12 @@ export declare const MemorySchema: z.ZodObject<{
752
753
  fallbackToMemory?: boolean | undefined;
753
754
  } | undefined;
754
755
  endpoint?: string | undefined;
755
- collection?: string | undefined;
756
756
  embeddingModel?: string | undefined;
757
757
  qdrantCloud?: {
758
758
  enabled?: boolean | undefined;
759
- collection?: string | undefined;
760
759
  url?: string | undefined;
761
760
  apiKey?: string | undefined;
761
+ collection?: string | undefined;
762
762
  } | undefined;
763
763
  }>>;
764
764
  patternRag: z.ZodOptional<z.ZodObject<{
@@ -824,9 +824,9 @@ export declare const MemorySchema: z.ZodObject<{
824
824
  forceDesktop?: boolean | undefined;
825
825
  } | undefined;
826
826
  longTerm?: {
827
- provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
828
827
  enabled: boolean;
829
828
  collection: string;
829
+ provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
830
830
  embeddingModel: string;
831
831
  github?: {
832
832
  enabled: boolean;
@@ -842,7 +842,7 @@ export declare const MemorySchema: z.ZodObject<{
842
842
  hybrid?: {
843
843
  useLocalInDev: boolean;
844
844
  useCloudInProd: boolean;
845
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
845
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
846
846
  } | undefined;
847
847
  lazyLocal?: {
848
848
  dockerImage: string;
@@ -893,8 +893,9 @@ export declare const MemorySchema: z.ZodObject<{
893
893
  forceDesktop?: boolean | undefined;
894
894
  } | undefined;
895
895
  longTerm?: {
896
- provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
897
896
  enabled?: boolean | undefined;
897
+ collection?: string | undefined;
898
+ provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
898
899
  github?: {
899
900
  enabled?: boolean | undefined;
900
901
  path?: string | undefined;
@@ -907,7 +908,7 @@ export declare const MemorySchema: z.ZodObject<{
907
908
  hybrid?: {
908
909
  useLocalInDev?: boolean | undefined;
909
910
  useCloudInProd?: boolean | undefined;
910
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
911
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
911
912
  } | undefined;
912
913
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
913
914
  lazyLocal?: {
@@ -920,9 +921,9 @@ export declare const MemorySchema: z.ZodObject<{
920
921
  healthCheckIntervalMs?: number | undefined;
921
922
  } | undefined;
922
923
  cloudServerless?: {
923
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
924
924
  url?: string | undefined;
925
925
  apiKey?: string | undefined;
926
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
926
927
  region?: string | undefined;
927
928
  keepWarm?: boolean | undefined;
928
929
  warmIntervalMs?: number | undefined;
@@ -930,13 +931,12 @@ export declare const MemorySchema: z.ZodObject<{
930
931
  fallbackToMemory?: boolean | undefined;
931
932
  } | undefined;
932
933
  endpoint?: string | undefined;
933
- collection?: string | undefined;
934
934
  embeddingModel?: string | undefined;
935
935
  qdrantCloud?: {
936
936
  enabled?: boolean | undefined;
937
- collection?: string | undefined;
938
937
  url?: string | undefined;
939
938
  apiKey?: string | undefined;
939
+ collection?: string | undefined;
940
940
  } | undefined;
941
941
  } | undefined;
942
942
  }>;
@@ -965,13 +965,13 @@ export declare const DroidSchema: z.ZodObject<{
965
965
  }, "strip", z.ZodTypeAny, {
966
966
  name: string;
967
967
  model: string;
968
- description?: string | undefined;
969
968
  template?: string | undefined;
969
+ description?: string | undefined;
970
970
  tools?: string | string[] | undefined;
971
971
  }, {
972
972
  name: string;
973
- description?: string | undefined;
974
973
  template?: string | undefined;
974
+ description?: string | undefined;
975
975
  model?: string | undefined;
976
976
  tools?: string | string[] | undefined;
977
977
  }>;
@@ -982,13 +982,13 @@ export declare const CommandSchema: z.ZodObject<{
982
982
  argumentHint: z.ZodOptional<z.ZodString>;
983
983
  }, "strip", z.ZodTypeAny, {
984
984
  name: string;
985
- description?: string | undefined;
986
985
  template?: string | undefined;
986
+ description?: string | undefined;
987
987
  argumentHint?: string | undefined;
988
988
  }, {
989
989
  name: string;
990
- description?: string | undefined;
991
990
  template?: string | undefined;
991
+ description?: string | undefined;
992
992
  argumentHint?: string | undefined;
993
993
  }>;
994
994
  export declare const TemplateSectionsSchema: z.ZodObject<{
@@ -1001,7 +1001,6 @@ export declare const TemplateSectionsSchema: z.ZodObject<{
1001
1001
  pipelineOnly: z.ZodDefault<z.ZodBoolean>;
1002
1002
  benchmark: z.ZodDefault<z.ZodBoolean>;
1003
1003
  }, "strip", z.ZodTypeAny, {
1004
- benchmark: boolean;
1005
1004
  memorySystem: boolean;
1006
1005
  browserUsage: boolean;
1007
1006
  decisionLoop: boolean;
@@ -1009,8 +1008,8 @@ export declare const TemplateSectionsSchema: z.ZodObject<{
1009
1008
  troubleshooting: boolean;
1010
1009
  augmentedCapabilities: boolean;
1011
1010
  pipelineOnly: boolean;
1011
+ benchmark: boolean;
1012
1012
  }, {
1013
- benchmark?: boolean | undefined;
1014
1013
  memorySystem?: boolean | undefined;
1015
1014
  browserUsage?: boolean | undefined;
1016
1015
  decisionLoop?: boolean | undefined;
@@ -1018,6 +1017,7 @@ export declare const TemplateSectionsSchema: z.ZodObject<{
1018
1017
  troubleshooting?: boolean | undefined;
1019
1018
  augmentedCapabilities?: boolean | undefined;
1020
1019
  pipelineOnly?: boolean | undefined;
1020
+ benchmark?: boolean | undefined;
1021
1021
  }>;
1022
1022
  export declare const TemplateSchema: z.ZodObject<{
1023
1023
  extends: z.ZodDefault<z.ZodString>;
@@ -1031,7 +1031,6 @@ export declare const TemplateSchema: z.ZodObject<{
1031
1031
  pipelineOnly: z.ZodDefault<z.ZodBoolean>;
1032
1032
  benchmark: z.ZodDefault<z.ZodBoolean>;
1033
1033
  }, "strip", z.ZodTypeAny, {
1034
- benchmark: boolean;
1035
1034
  memorySystem: boolean;
1036
1035
  browserUsage: boolean;
1037
1036
  decisionLoop: boolean;
@@ -1039,8 +1038,8 @@ export declare const TemplateSchema: z.ZodObject<{
1039
1038
  troubleshooting: boolean;
1040
1039
  augmentedCapabilities: boolean;
1041
1040
  pipelineOnly: boolean;
1041
+ benchmark: boolean;
1042
1042
  }, {
1043
- benchmark?: boolean | undefined;
1044
1043
  memorySystem?: boolean | undefined;
1045
1044
  browserUsage?: boolean | undefined;
1046
1045
  decisionLoop?: boolean | undefined;
@@ -1048,11 +1047,11 @@ export declare const TemplateSchema: z.ZodObject<{
1048
1047
  troubleshooting?: boolean | undefined;
1049
1048
  augmentedCapabilities?: boolean | undefined;
1050
1049
  pipelineOnly?: boolean | undefined;
1050
+ benchmark?: boolean | undefined;
1051
1051
  }>>;
1052
1052
  }, "strip", z.ZodTypeAny, {
1053
1053
  extends: string;
1054
1054
  sections?: {
1055
- benchmark: boolean;
1056
1055
  memorySystem: boolean;
1057
1056
  browserUsage: boolean;
1058
1057
  decisionLoop: boolean;
@@ -1060,11 +1059,11 @@ export declare const TemplateSchema: z.ZodObject<{
1060
1059
  troubleshooting: boolean;
1061
1060
  augmentedCapabilities: boolean;
1062
1061
  pipelineOnly: boolean;
1062
+ benchmark: boolean;
1063
1063
  } | undefined;
1064
1064
  }, {
1065
1065
  extends?: string | undefined;
1066
1066
  sections?: {
1067
- benchmark?: boolean | undefined;
1068
1067
  memorySystem?: boolean | undefined;
1069
1068
  browserUsage?: boolean | undefined;
1070
1069
  decisionLoop?: boolean | undefined;
@@ -1072,6 +1071,7 @@ export declare const TemplateSchema: z.ZodObject<{
1072
1071
  troubleshooting?: boolean | undefined;
1073
1072
  augmentedCapabilities?: boolean | undefined;
1074
1073
  pipelineOnly?: boolean | undefined;
1074
+ benchmark?: boolean | undefined;
1075
1075
  } | undefined;
1076
1076
  }>;
1077
1077
  export declare const ProjectSchema: z.ZodObject<{
@@ -1183,17 +1183,17 @@ export declare const TimeOptimizationSchema: z.ZodObject<{
1183
1183
  workflow: z.ZodDefault<z.ZodNumber>;
1184
1184
  deploy: z.ZodDefault<z.ZodNumber>;
1185
1185
  }, "strip", z.ZodTypeAny, {
1186
- deploy: number;
1187
1186
  push: number;
1188
1187
  commit: number;
1189
1188
  merge: number;
1190
1189
  workflow: number;
1190
+ deploy: number;
1191
1191
  }, {
1192
- deploy?: number | undefined;
1193
1192
  push?: number | undefined;
1194
1193
  commit?: number | undefined;
1195
1194
  merge?: number | undefined;
1196
1195
  workflow?: number | undefined;
1196
+ deploy?: number | undefined;
1197
1197
  }>>;
1198
1198
  parallelExecution: z.ZodOptional<z.ZodObject<{
1199
1199
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -1221,11 +1221,11 @@ export declare const TimeOptimizationSchema: z.ZodObject<{
1221
1221
  }, "strip", z.ZodTypeAny, {
1222
1222
  enabled: boolean;
1223
1223
  batchWindows?: {
1224
- deploy: number;
1225
1224
  push: number;
1226
1225
  commit: number;
1227
1226
  merge: number;
1228
1227
  workflow: number;
1228
+ deploy: number;
1229
1229
  } | undefined;
1230
1230
  parallelExecution?: {
1231
1231
  enabled: boolean;
@@ -1239,11 +1239,11 @@ export declare const TimeOptimizationSchema: z.ZodObject<{
1239
1239
  }, {
1240
1240
  enabled?: boolean | undefined;
1241
1241
  batchWindows?: {
1242
- deploy?: number | undefined;
1243
1242
  push?: number | undefined;
1244
1243
  commit?: number | undefined;
1245
1244
  merge?: number | undefined;
1246
1245
  workflow?: number | undefined;
1246
+ deploy?: number | undefined;
1247
1247
  } | undefined;
1248
1248
  parallelExecution?: {
1249
1249
  enabled?: boolean | undefined;
@@ -1270,10 +1270,10 @@ export declare const ModelConfigSchema: z.ZodObject<{
1270
1270
  costPer1MOutput: z.ZodOptional<z.ZodNumber>;
1271
1271
  capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1272
1272
  }, "strip", z.ZodTypeAny, {
1273
- name: string;
1274
1273
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
1275
- id: string;
1274
+ name: string;
1276
1275
  maxContextTokens: number;
1276
+ id: string;
1277
1277
  apiModel: string;
1278
1278
  capabilities: string[];
1279
1279
  endpoint?: string | undefined;
@@ -1281,8 +1281,8 @@ export declare const ModelConfigSchema: z.ZodObject<{
1281
1281
  costPer1MInput?: number | undefined;
1282
1282
  costPer1MOutput?: number | undefined;
1283
1283
  }, {
1284
- name: string;
1285
1284
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
1285
+ name: string;
1286
1286
  id: string;
1287
1287
  apiModel: string;
1288
1288
  endpoint?: string | undefined;
@@ -1292,9 +1292,6 @@ export declare const ModelConfigSchema: z.ZodObject<{
1292
1292
  costPer1MOutput?: number | undefined;
1293
1293
  capabilities?: string[] | undefined;
1294
1294
  }>;
1295
- /**
1296
- * Routing rule for task-to-model mapping
1297
- */
1298
1295
  export declare const RoutingRuleSchema: z.ZodObject<{
1299
1296
  complexity: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
1300
1297
  keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1306,18 +1303,14 @@ export declare const RoutingRuleSchema: z.ZodObject<{
1306
1303
  priority: number;
1307
1304
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
1308
1305
  keywords?: string[] | undefined;
1309
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
1306
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
1310
1307
  }, {
1311
1308
  targetRole: "planner" | "executor" | "reviewer" | "fallback";
1312
1309
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
1313
1310
  keywords?: string[] | undefined;
1314
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
1311
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
1315
1312
  priority?: number | undefined;
1316
1313
  }>;
1317
- /**
1318
- * NEW: Multi-Model Architecture configuration.
1319
- * Enables two-tier agentic architecture with separate planner and executor models.
1320
- */
1321
1314
  export declare const MultiModelSchema: z.ZodObject<{
1322
1315
  enabled: z.ZodDefault<z.ZodBoolean>;
1323
1316
  models: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
@@ -1331,20 +1324,22 @@ export declare const MultiModelSchema: z.ZodObject<{
1331
1324
  costPer1MInput: z.ZodOptional<z.ZodNumber>;
1332
1325
  costPer1MOutput: z.ZodOptional<z.ZodNumber>;
1333
1326
  capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1327
+ modelContextBudget: z.ZodOptional<z.ZodNumber>;
1334
1328
  }, "strip", z.ZodTypeAny, {
1335
- name: string;
1336
1329
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
1337
- id: string;
1330
+ name: string;
1338
1331
  maxContextTokens: number;
1332
+ id: string;
1339
1333
  apiModel: string;
1340
1334
  capabilities: string[];
1341
1335
  endpoint?: string | undefined;
1342
1336
  apiKeyEnvVar?: string | undefined;
1343
1337
  costPer1MInput?: number | undefined;
1344
1338
  costPer1MOutput?: number | undefined;
1339
+ modelContextBudget?: number | undefined;
1345
1340
  }, {
1346
- name: string;
1347
1341
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
1342
+ name: string;
1348
1343
  id: string;
1349
1344
  apiModel: string;
1350
1345
  endpoint?: string | undefined;
@@ -1353,6 +1348,7 @@ export declare const MultiModelSchema: z.ZodObject<{
1353
1348
  costPer1MInput?: number | undefined;
1354
1349
  costPer1MOutput?: number | undefined;
1355
1350
  capabilities?: string[] | undefined;
1351
+ modelContextBudget?: number | undefined;
1356
1352
  }>]>, "many">>;
1357
1353
  roles: z.ZodOptional<z.ZodObject<{
1358
1354
  planner: z.ZodDefault<z.ZodString>;
@@ -1381,15 +1377,14 @@ export declare const MultiModelSchema: z.ZodObject<{
1381
1377
  priority: number;
1382
1378
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
1383
1379
  keywords?: string[] | undefined;
1384
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
1380
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
1385
1381
  }, {
1386
1382
  targetRole: "planner" | "executor" | "reviewer" | "fallback";
1387
1383
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
1388
1384
  keywords?: string[] | undefined;
1389
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
1385
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
1390
1386
  priority?: number | undefined;
1391
1387
  }>, "many">>;
1392
- routingStrategy: z.ZodDefault<z.ZodEnum<["cost-optimized", "performance-first", "balanced", "adaptive"]>>;
1393
1388
  costOptimization: z.ZodOptional<z.ZodObject<{
1394
1389
  enabled: z.ZodDefault<z.ZodBoolean>;
1395
1390
  targetReduction: z.ZodDefault<z.ZodNumber>;
@@ -1406,6 +1401,17 @@ export declare const MultiModelSchema: z.ZodObject<{
1406
1401
  maxPerformanceDegradation?: number | undefined;
1407
1402
  fallbackThreshold?: number | undefined;
1408
1403
  }>>;
1404
+ routingMatrix: z.ZodOptional<z.ZodRecord<z.ZodEnum<["low", "medium", "high", "critical"]>, z.ZodObject<{
1405
+ planner: z.ZodString;
1406
+ executor: z.ZodString;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ planner: string;
1409
+ executor: string;
1410
+ }, {
1411
+ planner: string;
1412
+ executor: string;
1413
+ }>>>;
1414
+ routingStrategy: z.ZodDefault<z.ZodEnum<["cost-optimized", "performance-first", "balanced", "adaptive"]>>;
1409
1415
  plannerSettings: z.ZodOptional<z.ZodObject<{
1410
1416
  complexityThreshold: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
1411
1417
  maxPlanningTokens: z.ZodDefault<z.ZodNumber>;
@@ -1435,24 +1441,19 @@ export declare const MultiModelSchema: z.ZodObject<{
1435
1441
  }, "strip", z.ZodTypeAny, {
1436
1442
  enabled: boolean;
1437
1443
  models: (string | {
1438
- name: string;
1439
1444
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
1440
- id: string;
1445
+ name: string;
1441
1446
  maxContextTokens: number;
1447
+ id: string;
1442
1448
  apiModel: string;
1443
1449
  capabilities: string[];
1444
1450
  endpoint?: string | undefined;
1445
1451
  apiKeyEnvVar?: string | undefined;
1446
1452
  costPer1MInput?: number | undefined;
1447
1453
  costPer1MOutput?: number | undefined;
1454
+ modelContextBudget?: number | undefined;
1448
1455
  })[];
1449
1456
  routingStrategy: "cost-optimized" | "performance-first" | "balanced" | "adaptive";
1450
- costOptimization?: {
1451
- enabled: boolean;
1452
- targetReduction: number;
1453
- maxPerformanceDegradation: number;
1454
- fallbackThreshold: number;
1455
- } | undefined;
1456
1457
  roles?: {
1457
1458
  planner: string;
1458
1459
  executor: string;
@@ -1464,8 +1465,18 @@ export declare const MultiModelSchema: z.ZodObject<{
1464
1465
  priority: number;
1465
1466
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
1466
1467
  keywords?: string[] | undefined;
1467
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
1468
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
1468
1469
  }[] | undefined;
1470
+ costOptimization?: {
1471
+ enabled: boolean;
1472
+ targetReduction: number;
1473
+ maxPerformanceDegradation: number;
1474
+ fallbackThreshold: number;
1475
+ } | undefined;
1476
+ routingMatrix?: Partial<Record<"low" | "medium" | "high" | "critical", {
1477
+ planner: string;
1478
+ executor: string;
1479
+ }>> | undefined;
1469
1480
  plannerSettings?: {
1470
1481
  complexityThreshold: "low" | "medium" | "high";
1471
1482
  maxPlanningTokens: number;
@@ -1479,8 +1490,8 @@ export declare const MultiModelSchema: z.ZodObject<{
1479
1490
  }, {
1480
1491
  enabled?: boolean | undefined;
1481
1492
  models?: (string | {
1482
- name: string;
1483
1493
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
1494
+ name: string;
1484
1495
  id: string;
1485
1496
  apiModel: string;
1486
1497
  endpoint?: string | undefined;
@@ -1489,13 +1500,8 @@ export declare const MultiModelSchema: z.ZodObject<{
1489
1500
  costPer1MInput?: number | undefined;
1490
1501
  costPer1MOutput?: number | undefined;
1491
1502
  capabilities?: string[] | undefined;
1503
+ modelContextBudget?: number | undefined;
1492
1504
  })[] | undefined;
1493
- costOptimization?: {
1494
- enabled?: boolean | undefined;
1495
- targetReduction?: number | undefined;
1496
- maxPerformanceDegradation?: number | undefined;
1497
- fallbackThreshold?: number | undefined;
1498
- } | undefined;
1499
1505
  roles?: {
1500
1506
  planner?: string | undefined;
1501
1507
  executor?: string | undefined;
@@ -1506,9 +1512,19 @@ export declare const MultiModelSchema: z.ZodObject<{
1506
1512
  targetRole: "planner" | "executor" | "reviewer" | "fallback";
1507
1513
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
1508
1514
  keywords?: string[] | undefined;
1509
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
1515
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
1510
1516
  priority?: number | undefined;
1511
1517
  }[] | undefined;
1518
+ costOptimization?: {
1519
+ enabled?: boolean | undefined;
1520
+ targetReduction?: number | undefined;
1521
+ maxPerformanceDegradation?: number | undefined;
1522
+ fallbackThreshold?: number | undefined;
1523
+ } | undefined;
1524
+ routingMatrix?: Partial<Record<"low" | "medium" | "high" | "critical", {
1525
+ planner: string;
1526
+ executor: string;
1527
+ }>> | undefined;
1512
1528
  routingStrategy?: "cost-optimized" | "performance-first" | "balanced" | "adaptive" | undefined;
1513
1529
  plannerSettings?: {
1514
1530
  complexityThreshold?: "low" | "medium" | "high" | undefined;
@@ -1760,6 +1776,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1760
1776
  patternRag?: boolean | undefined;
1761
1777
  }>>;
1762
1778
  }, "strip", z.ZodTypeAny, {
1779
+ claudeCode?: {
1780
+ enabled: boolean;
1781
+ shortTermMax?: number | undefined;
1782
+ searchResults?: number | undefined;
1783
+ sessionMax?: number | undefined;
1784
+ patternRag?: boolean | undefined;
1785
+ } | undefined;
1763
1786
  factory?: {
1764
1787
  enabled: boolean;
1765
1788
  shortTermMax?: number | undefined;
@@ -1788,14 +1811,14 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1788
1811
  sessionMax?: number | undefined;
1789
1812
  patternRag?: boolean | undefined;
1790
1813
  } | undefined;
1814
+ }, {
1791
1815
  claudeCode?: {
1792
- enabled: boolean;
1816
+ enabled?: boolean | undefined;
1793
1817
  shortTermMax?: number | undefined;
1794
1818
  searchResults?: number | undefined;
1795
1819
  sessionMax?: number | undefined;
1796
1820
  patternRag?: boolean | undefined;
1797
1821
  } | undefined;
1798
- }, {
1799
1822
  factory?: {
1800
1823
  enabled?: boolean | undefined;
1801
1824
  shortTermMax?: number | undefined;
@@ -1824,13 +1847,6 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1824
1847
  sessionMax?: number | undefined;
1825
1848
  patternRag?: boolean | undefined;
1826
1849
  } | undefined;
1827
- claudeCode?: {
1828
- enabled?: boolean | undefined;
1829
- shortTermMax?: number | undefined;
1830
- searchResults?: number | undefined;
1831
- sessionMax?: number | undefined;
1832
- patternRag?: boolean | undefined;
1833
- } | undefined;
1834
1850
  }>>;
1835
1851
  memory: z.ZodOptional<z.ZodObject<{
1836
1852
  shortTerm: z.ZodOptional<z.ZodObject<{
@@ -1889,9 +1905,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1889
1905
  apiKey?: string | undefined;
1890
1906
  }, {
1891
1907
  enabled?: boolean | undefined;
1892
- collection?: string | undefined;
1893
1908
  url?: string | undefined;
1894
1909
  apiKey?: string | undefined;
1910
+ collection?: string | undefined;
1895
1911
  }>>;
1896
1912
  serverless: z.ZodOptional<z.ZodObject<{
1897
1913
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -1936,9 +1952,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1936
1952
  url?: string | undefined;
1937
1953
  apiKey?: string | undefined;
1938
1954
  }, {
1939
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
1940
1955
  url?: string | undefined;
1941
1956
  apiKey?: string | undefined;
1957
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
1942
1958
  region?: string | undefined;
1943
1959
  keepWarm?: boolean | undefined;
1944
1960
  warmIntervalMs?: number | undefined;
@@ -1950,11 +1966,11 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1950
1966
  }, "strip", z.ZodTypeAny, {
1951
1967
  useLocalInDev: boolean;
1952
1968
  useCloudInProd: boolean;
1953
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
1969
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
1954
1970
  }, {
1955
1971
  useLocalInDev?: boolean | undefined;
1956
1972
  useCloudInProd?: boolean | undefined;
1957
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
1973
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
1958
1974
  }>>;
1959
1975
  fallbackToMemory: z.ZodDefault<z.ZodBoolean>;
1960
1976
  }, "strip", z.ZodTypeAny, {
@@ -1964,7 +1980,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1964
1980
  hybrid?: {
1965
1981
  useLocalInDev: boolean;
1966
1982
  useCloudInProd: boolean;
1967
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
1983
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
1968
1984
  } | undefined;
1969
1985
  lazyLocal?: {
1970
1986
  dockerImage: string;
@@ -1988,7 +2004,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
1988
2004
  hybrid?: {
1989
2005
  useLocalInDev?: boolean | undefined;
1990
2006
  useCloudInProd?: boolean | undefined;
1991
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
2007
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
1992
2008
  } | undefined;
1993
2009
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
1994
2010
  lazyLocal?: {
@@ -2001,9 +2017,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2001
2017
  healthCheckIntervalMs?: number | undefined;
2002
2018
  } | undefined;
2003
2019
  cloudServerless?: {
2004
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
2005
2020
  url?: string | undefined;
2006
2021
  apiKey?: string | undefined;
2022
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
2007
2023
  region?: string | undefined;
2008
2024
  keepWarm?: boolean | undefined;
2009
2025
  warmIntervalMs?: number | undefined;
@@ -2011,9 +2027,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2011
2027
  fallbackToMemory?: boolean | undefined;
2012
2028
  }>>;
2013
2029
  }, "strip", z.ZodTypeAny, {
2014
- provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
2015
2030
  enabled: boolean;
2016
2031
  collection: string;
2032
+ provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
2017
2033
  embeddingModel: string;
2018
2034
  github?: {
2019
2035
  enabled: boolean;
@@ -2029,7 +2045,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2029
2045
  hybrid?: {
2030
2046
  useLocalInDev: boolean;
2031
2047
  useCloudInProd: boolean;
2032
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
2048
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
2033
2049
  } | undefined;
2034
2050
  lazyLocal?: {
2035
2051
  dockerImage: string;
@@ -2057,8 +2073,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2057
2073
  apiKey?: string | undefined;
2058
2074
  } | undefined;
2059
2075
  }, {
2060
- provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
2061
2076
  enabled?: boolean | undefined;
2077
+ collection?: string | undefined;
2078
+ provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
2062
2079
  github?: {
2063
2080
  enabled?: boolean | undefined;
2064
2081
  path?: string | undefined;
@@ -2071,7 +2088,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2071
2088
  hybrid?: {
2072
2089
  useLocalInDev?: boolean | undefined;
2073
2090
  useCloudInProd?: boolean | undefined;
2074
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
2091
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
2075
2092
  } | undefined;
2076
2093
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
2077
2094
  lazyLocal?: {
@@ -2084,9 +2101,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2084
2101
  healthCheckIntervalMs?: number | undefined;
2085
2102
  } | undefined;
2086
2103
  cloudServerless?: {
2087
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
2088
2104
  url?: string | undefined;
2089
2105
  apiKey?: string | undefined;
2106
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
2090
2107
  region?: string | undefined;
2091
2108
  keepWarm?: boolean | undefined;
2092
2109
  warmIntervalMs?: number | undefined;
@@ -2094,13 +2111,12 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2094
2111
  fallbackToMemory?: boolean | undefined;
2095
2112
  } | undefined;
2096
2113
  endpoint?: string | undefined;
2097
- collection?: string | undefined;
2098
2114
  embeddingModel?: string | undefined;
2099
2115
  qdrantCloud?: {
2100
2116
  enabled?: boolean | undefined;
2101
- collection?: string | undefined;
2102
2117
  url?: string | undefined;
2103
2118
  apiKey?: string | undefined;
2119
+ collection?: string | undefined;
2104
2120
  } | undefined;
2105
2121
  }>>;
2106
2122
  patternRag: z.ZodOptional<z.ZodObject<{
@@ -2166,9 +2182,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2166
2182
  forceDesktop?: boolean | undefined;
2167
2183
  } | undefined;
2168
2184
  longTerm?: {
2169
- provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
2170
2185
  enabled: boolean;
2171
2186
  collection: string;
2187
+ provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
2172
2188
  embeddingModel: string;
2173
2189
  github?: {
2174
2190
  enabled: boolean;
@@ -2184,7 +2200,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2184
2200
  hybrid?: {
2185
2201
  useLocalInDev: boolean;
2186
2202
  useCloudInProd: boolean;
2187
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
2203
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
2188
2204
  } | undefined;
2189
2205
  lazyLocal?: {
2190
2206
  dockerImage: string;
@@ -2235,8 +2251,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2235
2251
  forceDesktop?: boolean | undefined;
2236
2252
  } | undefined;
2237
2253
  longTerm?: {
2238
- provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
2239
2254
  enabled?: boolean | undefined;
2255
+ collection?: string | undefined;
2256
+ provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
2240
2257
  github?: {
2241
2258
  enabled?: boolean | undefined;
2242
2259
  path?: string | undefined;
@@ -2249,7 +2266,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2249
2266
  hybrid?: {
2250
2267
  useLocalInDev?: boolean | undefined;
2251
2268
  useCloudInProd?: boolean | undefined;
2252
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
2269
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
2253
2270
  } | undefined;
2254
2271
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
2255
2272
  lazyLocal?: {
@@ -2262,9 +2279,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2262
2279
  healthCheckIntervalMs?: number | undefined;
2263
2280
  } | undefined;
2264
2281
  cloudServerless?: {
2265
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
2266
2282
  url?: string | undefined;
2267
2283
  apiKey?: string | undefined;
2284
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
2268
2285
  region?: string | undefined;
2269
2286
  keepWarm?: boolean | undefined;
2270
2287
  warmIntervalMs?: number | undefined;
@@ -2272,13 +2289,12 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2272
2289
  fallbackToMemory?: boolean | undefined;
2273
2290
  } | undefined;
2274
2291
  endpoint?: string | undefined;
2275
- collection?: string | undefined;
2276
2292
  embeddingModel?: string | undefined;
2277
2293
  qdrantCloud?: {
2278
2294
  enabled?: boolean | undefined;
2279
- collection?: string | undefined;
2280
2295
  url?: string | undefined;
2281
2296
  apiKey?: string | undefined;
2297
+ collection?: string | undefined;
2282
2298
  } | undefined;
2283
2299
  } | undefined;
2284
2300
  }>>;
@@ -2307,13 +2323,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2307
2323
  }, "strip", z.ZodTypeAny, {
2308
2324
  name: string;
2309
2325
  model: string;
2310
- description?: string | undefined;
2311
2326
  template?: string | undefined;
2327
+ description?: string | undefined;
2312
2328
  tools?: string | string[] | undefined;
2313
2329
  }, {
2314
2330
  name: string;
2315
- description?: string | undefined;
2316
2331
  template?: string | undefined;
2332
+ description?: string | undefined;
2317
2333
  model?: string | undefined;
2318
2334
  tools?: string | string[] | undefined;
2319
2335
  }>, "many">>;
@@ -2324,13 +2340,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2324
2340
  argumentHint: z.ZodOptional<z.ZodString>;
2325
2341
  }, "strip", z.ZodTypeAny, {
2326
2342
  name: string;
2327
- description?: string | undefined;
2328
2343
  template?: string | undefined;
2344
+ description?: string | undefined;
2329
2345
  argumentHint?: string | undefined;
2330
2346
  }, {
2331
2347
  name: string;
2332
- description?: string | undefined;
2333
2348
  template?: string | undefined;
2349
+ description?: string | undefined;
2334
2350
  argumentHint?: string | undefined;
2335
2351
  }>, "many">>;
2336
2352
  template: z.ZodOptional<z.ZodObject<{
@@ -2345,7 +2361,6 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2345
2361
  pipelineOnly: z.ZodDefault<z.ZodBoolean>;
2346
2362
  benchmark: z.ZodDefault<z.ZodBoolean>;
2347
2363
  }, "strip", z.ZodTypeAny, {
2348
- benchmark: boolean;
2349
2364
  memorySystem: boolean;
2350
2365
  browserUsage: boolean;
2351
2366
  decisionLoop: boolean;
@@ -2353,8 +2368,8 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2353
2368
  troubleshooting: boolean;
2354
2369
  augmentedCapabilities: boolean;
2355
2370
  pipelineOnly: boolean;
2371
+ benchmark: boolean;
2356
2372
  }, {
2357
- benchmark?: boolean | undefined;
2358
2373
  memorySystem?: boolean | undefined;
2359
2374
  browserUsage?: boolean | undefined;
2360
2375
  decisionLoop?: boolean | undefined;
@@ -2362,11 +2377,11 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2362
2377
  troubleshooting?: boolean | undefined;
2363
2378
  augmentedCapabilities?: boolean | undefined;
2364
2379
  pipelineOnly?: boolean | undefined;
2380
+ benchmark?: boolean | undefined;
2365
2381
  }>>;
2366
2382
  }, "strip", z.ZodTypeAny, {
2367
2383
  extends: string;
2368
2384
  sections?: {
2369
- benchmark: boolean;
2370
2385
  memorySystem: boolean;
2371
2386
  browserUsage: boolean;
2372
2387
  decisionLoop: boolean;
@@ -2374,11 +2389,11 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2374
2389
  troubleshooting: boolean;
2375
2390
  augmentedCapabilities: boolean;
2376
2391
  pipelineOnly: boolean;
2392
+ benchmark: boolean;
2377
2393
  } | undefined;
2378
2394
  }, {
2379
2395
  extends?: string | undefined;
2380
2396
  sections?: {
2381
- benchmark?: boolean | undefined;
2382
2397
  memorySystem?: boolean | undefined;
2383
2398
  browserUsage?: boolean | undefined;
2384
2399
  decisionLoop?: boolean | undefined;
@@ -2386,6 +2401,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2386
2401
  troubleshooting?: boolean | undefined;
2387
2402
  augmentedCapabilities?: boolean | undefined;
2388
2403
  pipelineOnly?: boolean | undefined;
2404
+ benchmark?: boolean | undefined;
2389
2405
  } | undefined;
2390
2406
  }>>;
2391
2407
  costOptimization: z.ZodOptional<z.ZodObject<{
@@ -2478,17 +2494,17 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2478
2494
  workflow: z.ZodDefault<z.ZodNumber>;
2479
2495
  deploy: z.ZodDefault<z.ZodNumber>;
2480
2496
  }, "strip", z.ZodTypeAny, {
2481
- deploy: number;
2482
2497
  push: number;
2483
2498
  commit: number;
2484
2499
  merge: number;
2485
2500
  workflow: number;
2501
+ deploy: number;
2486
2502
  }, {
2487
- deploy?: number | undefined;
2488
2503
  push?: number | undefined;
2489
2504
  commit?: number | undefined;
2490
2505
  merge?: number | undefined;
2491
2506
  workflow?: number | undefined;
2507
+ deploy?: number | undefined;
2492
2508
  }>>;
2493
2509
  parallelExecution: z.ZodOptional<z.ZodObject<{
2494
2510
  enabled: z.ZodDefault<z.ZodBoolean>;
@@ -2516,11 +2532,11 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2516
2532
  }, "strip", z.ZodTypeAny, {
2517
2533
  enabled: boolean;
2518
2534
  batchWindows?: {
2519
- deploy: number;
2520
2535
  push: number;
2521
2536
  commit: number;
2522
2537
  merge: number;
2523
2538
  workflow: number;
2539
+ deploy: number;
2524
2540
  } | undefined;
2525
2541
  parallelExecution?: {
2526
2542
  enabled: boolean;
@@ -2534,11 +2550,11 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2534
2550
  }, {
2535
2551
  enabled?: boolean | undefined;
2536
2552
  batchWindows?: {
2537
- deploy?: number | undefined;
2538
2553
  push?: number | undefined;
2539
2554
  commit?: number | undefined;
2540
2555
  merge?: number | undefined;
2541
2556
  workflow?: number | undefined;
2557
+ deploy?: number | undefined;
2542
2558
  } | undefined;
2543
2559
  parallelExecution?: {
2544
2560
  enabled?: boolean | undefined;
@@ -2563,20 +2579,22 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2563
2579
  costPer1MInput: z.ZodOptional<z.ZodNumber>;
2564
2580
  costPer1MOutput: z.ZodOptional<z.ZodNumber>;
2565
2581
  capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
2582
+ modelContextBudget: z.ZodOptional<z.ZodNumber>;
2566
2583
  }, "strip", z.ZodTypeAny, {
2567
- name: string;
2568
2584
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
2569
- id: string;
2585
+ name: string;
2570
2586
  maxContextTokens: number;
2587
+ id: string;
2571
2588
  apiModel: string;
2572
2589
  capabilities: string[];
2573
2590
  endpoint?: string | undefined;
2574
2591
  apiKeyEnvVar?: string | undefined;
2575
2592
  costPer1MInput?: number | undefined;
2576
2593
  costPer1MOutput?: number | undefined;
2594
+ modelContextBudget?: number | undefined;
2577
2595
  }, {
2578
- name: string;
2579
2596
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
2597
+ name: string;
2580
2598
  id: string;
2581
2599
  apiModel: string;
2582
2600
  endpoint?: string | undefined;
@@ -2585,6 +2603,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2585
2603
  costPer1MInput?: number | undefined;
2586
2604
  costPer1MOutput?: number | undefined;
2587
2605
  capabilities?: string[] | undefined;
2606
+ modelContextBudget?: number | undefined;
2588
2607
  }>]>, "many">>;
2589
2608
  roles: z.ZodOptional<z.ZodObject<{
2590
2609
  planner: z.ZodDefault<z.ZodString>;
@@ -2613,15 +2632,14 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2613
2632
  priority: number;
2614
2633
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
2615
2634
  keywords?: string[] | undefined;
2616
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
2635
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
2617
2636
  }, {
2618
2637
  targetRole: "planner" | "executor" | "reviewer" | "fallback";
2619
2638
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
2620
2639
  keywords?: string[] | undefined;
2621
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
2640
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
2622
2641
  priority?: number | undefined;
2623
2642
  }>, "many">>;
2624
- routingStrategy: z.ZodDefault<z.ZodEnum<["cost-optimized", "performance-first", "balanced", "adaptive"]>>;
2625
2643
  costOptimization: z.ZodOptional<z.ZodObject<{
2626
2644
  enabled: z.ZodDefault<z.ZodBoolean>;
2627
2645
  targetReduction: z.ZodDefault<z.ZodNumber>;
@@ -2638,6 +2656,17 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2638
2656
  maxPerformanceDegradation?: number | undefined;
2639
2657
  fallbackThreshold?: number | undefined;
2640
2658
  }>>;
2659
+ routingMatrix: z.ZodOptional<z.ZodRecord<z.ZodEnum<["low", "medium", "high", "critical"]>, z.ZodObject<{
2660
+ planner: z.ZodString;
2661
+ executor: z.ZodString;
2662
+ }, "strip", z.ZodTypeAny, {
2663
+ planner: string;
2664
+ executor: string;
2665
+ }, {
2666
+ planner: string;
2667
+ executor: string;
2668
+ }>>>;
2669
+ routingStrategy: z.ZodDefault<z.ZodEnum<["cost-optimized", "performance-first", "balanced", "adaptive"]>>;
2641
2670
  plannerSettings: z.ZodOptional<z.ZodObject<{
2642
2671
  complexityThreshold: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
2643
2672
  maxPlanningTokens: z.ZodDefault<z.ZodNumber>;
@@ -2667,24 +2696,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2667
2696
  }, "strip", z.ZodTypeAny, {
2668
2697
  enabled: boolean;
2669
2698
  models: (string | {
2670
- name: string;
2671
2699
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
2672
- id: string;
2700
+ name: string;
2673
2701
  maxContextTokens: number;
2702
+ id: string;
2674
2703
  apiModel: string;
2675
2704
  capabilities: string[];
2676
2705
  endpoint?: string | undefined;
2677
2706
  apiKeyEnvVar?: string | undefined;
2678
2707
  costPer1MInput?: number | undefined;
2679
2708
  costPer1MOutput?: number | undefined;
2709
+ modelContextBudget?: number | undefined;
2680
2710
  })[];
2681
2711
  routingStrategy: "cost-optimized" | "performance-first" | "balanced" | "adaptive";
2682
- costOptimization?: {
2683
- enabled: boolean;
2684
- targetReduction: number;
2685
- maxPerformanceDegradation: number;
2686
- fallbackThreshold: number;
2687
- } | undefined;
2688
2712
  roles?: {
2689
2713
  planner: string;
2690
2714
  executor: string;
@@ -2696,8 +2720,18 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2696
2720
  priority: number;
2697
2721
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
2698
2722
  keywords?: string[] | undefined;
2699
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
2723
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
2700
2724
  }[] | undefined;
2725
+ costOptimization?: {
2726
+ enabled: boolean;
2727
+ targetReduction: number;
2728
+ maxPerformanceDegradation: number;
2729
+ fallbackThreshold: number;
2730
+ } | undefined;
2731
+ routingMatrix?: Partial<Record<"low" | "medium" | "high" | "critical", {
2732
+ planner: string;
2733
+ executor: string;
2734
+ }>> | undefined;
2701
2735
  plannerSettings?: {
2702
2736
  complexityThreshold: "low" | "medium" | "high";
2703
2737
  maxPlanningTokens: number;
@@ -2711,8 +2745,8 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2711
2745
  }, {
2712
2746
  enabled?: boolean | undefined;
2713
2747
  models?: (string | {
2714
- name: string;
2715
2748
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
2749
+ name: string;
2716
2750
  id: string;
2717
2751
  apiModel: string;
2718
2752
  endpoint?: string | undefined;
@@ -2721,13 +2755,8 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2721
2755
  costPer1MInput?: number | undefined;
2722
2756
  costPer1MOutput?: number | undefined;
2723
2757
  capabilities?: string[] | undefined;
2758
+ modelContextBudget?: number | undefined;
2724
2759
  })[] | undefined;
2725
- costOptimization?: {
2726
- enabled?: boolean | undefined;
2727
- targetReduction?: number | undefined;
2728
- maxPerformanceDegradation?: number | undefined;
2729
- fallbackThreshold?: number | undefined;
2730
- } | undefined;
2731
2760
  roles?: {
2732
2761
  planner?: string | undefined;
2733
2762
  executor?: string | undefined;
@@ -2738,9 +2767,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2738
2767
  targetRole: "planner" | "executor" | "reviewer" | "fallback";
2739
2768
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
2740
2769
  keywords?: string[] | undefined;
2741
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
2770
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
2742
2771
  priority?: number | undefined;
2743
2772
  }[] | undefined;
2773
+ costOptimization?: {
2774
+ enabled?: boolean | undefined;
2775
+ targetReduction?: number | undefined;
2776
+ maxPerformanceDegradation?: number | undefined;
2777
+ fallbackThreshold?: number | undefined;
2778
+ } | undefined;
2779
+ routingMatrix?: Partial<Record<"low" | "medium" | "high" | "critical", {
2780
+ planner: string;
2781
+ executor: string;
2782
+ }>> | undefined;
2744
2783
  routingStrategy?: "cost-optimized" | "performance-first" | "balanced" | "adaptive" | undefined;
2745
2784
  plannerSettings?: {
2746
2785
  complexityThreshold?: "low" | "medium" | "high" | undefined;
@@ -2853,6 +2892,16 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2853
2892
  hardBudget?: number | undefined;
2854
2893
  toolChoiceForce?: "auto" | "none" | "required" | undefined;
2855
2894
  }>>;
2895
+ patternRL: z.ZodOptional<z.ZodObject<{
2896
+ enabled: z.ZodDefault<z.ZodBoolean>;
2897
+ dbPath: z.ZodDefault<z.ZodString>;
2898
+ }, "strip", z.ZodTypeAny, {
2899
+ enabled: boolean;
2900
+ dbPath: string;
2901
+ }, {
2902
+ enabled?: boolean | undefined;
2903
+ dbPath?: string | undefined;
2904
+ }>>;
2856
2905
  }, "strip", z.ZodTypeAny, {
2857
2906
  version: string;
2858
2907
  project: {
@@ -2860,32 +2909,102 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2860
2909
  defaultBranch: string;
2861
2910
  description?: string | undefined;
2862
2911
  };
2863
- memory?: {
2864
- patternRag?: {
2865
- enabled: boolean;
2866
- collection: string;
2867
- embeddingModel: string;
2868
- vectorSize: number;
2869
- scoreThreshold: number;
2870
- topK: number;
2871
- indexScript: string;
2872
- queryScript: string;
2873
- sourceFile: string;
2874
- maxBodyChars: number;
2875
- sourceFiles?: string[] | undefined;
2876
- skillsDir?: string | undefined;
2877
- } | undefined;
2878
- shortTerm?: {
2879
- enabled: boolean;
2880
- path: string;
2881
- maxEntries: number;
2882
- webDatabase?: string | undefined;
2912
+ template?: {
2913
+ extends: string;
2914
+ sections?: {
2915
+ memorySystem: boolean;
2916
+ browserUsage: boolean;
2917
+ decisionLoop: boolean;
2918
+ worktreeWorkflow: boolean;
2919
+ troubleshooting: boolean;
2920
+ augmentedCapabilities: boolean;
2921
+ pipelineOnly: boolean;
2922
+ benchmark: boolean;
2923
+ } | undefined;
2924
+ } | undefined;
2925
+ costOptimization?: {
2926
+ enabled: boolean;
2927
+ tokenBudget?: {
2928
+ maxTemplateTokens: number;
2929
+ maxMemoryQueryTokens: number;
2930
+ maxContextTokens: number;
2931
+ warningThreshold: number;
2932
+ } | undefined;
2933
+ embeddingBatching?: {
2934
+ enabled: boolean;
2935
+ batchSize: number;
2936
+ maxDelayMs: number;
2937
+ } | undefined;
2938
+ llmCallReduction?: {
2939
+ cacheResponses: boolean;
2940
+ cacheTtlMs: number;
2941
+ deduplicateQueries: boolean;
2942
+ } | undefined;
2943
+ } | undefined;
2944
+ $schema?: string | undefined;
2945
+ platforms?: {
2946
+ claudeCode?: {
2947
+ enabled: boolean;
2948
+ shortTermMax?: number | undefined;
2949
+ searchResults?: number | undefined;
2950
+ sessionMax?: number | undefined;
2951
+ patternRag?: boolean | undefined;
2952
+ } | undefined;
2953
+ factory?: {
2954
+ enabled: boolean;
2955
+ shortTermMax?: number | undefined;
2956
+ searchResults?: number | undefined;
2957
+ sessionMax?: number | undefined;
2958
+ patternRag?: boolean | undefined;
2959
+ } | undefined;
2960
+ vscode?: {
2961
+ enabled: boolean;
2962
+ shortTermMax?: number | undefined;
2963
+ searchResults?: number | undefined;
2964
+ sessionMax?: number | undefined;
2965
+ patternRag?: boolean | undefined;
2966
+ } | undefined;
2967
+ opencode?: {
2968
+ enabled: boolean;
2969
+ shortTermMax?: number | undefined;
2970
+ searchResults?: number | undefined;
2971
+ sessionMax?: number | undefined;
2972
+ patternRag?: boolean | undefined;
2973
+ } | undefined;
2974
+ codex?: {
2975
+ enabled: boolean;
2976
+ shortTermMax?: number | undefined;
2977
+ searchResults?: number | undefined;
2978
+ sessionMax?: number | undefined;
2979
+ patternRag?: boolean | undefined;
2980
+ } | undefined;
2981
+ } | undefined;
2982
+ memory?: {
2983
+ patternRag?: {
2984
+ enabled: boolean;
2985
+ collection: string;
2986
+ embeddingModel: string;
2987
+ vectorSize: number;
2988
+ scoreThreshold: number;
2989
+ topK: number;
2990
+ indexScript: string;
2991
+ queryScript: string;
2992
+ sourceFile: string;
2993
+ maxBodyChars: number;
2994
+ sourceFiles?: string[] | undefined;
2995
+ skillsDir?: string | undefined;
2996
+ } | undefined;
2997
+ shortTerm?: {
2998
+ enabled: boolean;
2999
+ path: string;
3000
+ maxEntries: number;
3001
+ webDatabase?: string | undefined;
2883
3002
  forceDesktop?: boolean | undefined;
2884
3003
  } | undefined;
2885
3004
  longTerm?: {
2886
- provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
2887
3005
  enabled: boolean;
2888
3006
  collection: string;
3007
+ provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
2889
3008
  embeddingModel: string;
2890
3009
  github?: {
2891
3010
  enabled: boolean;
@@ -2901,7 +3020,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2901
3020
  hybrid?: {
2902
3021
  useLocalInDev: boolean;
2903
3022
  useCloudInProd: boolean;
2904
- envDetection: "auto" | "NODE_ENV" | "UAP_ENV";
3023
+ envDetection: "NODE_ENV" | "UAP_ENV" | "auto";
2905
3024
  } | undefined;
2906
3025
  lazyLocal?: {
2907
3026
  dockerImage: string;
@@ -2930,103 +3049,33 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
2930
3049
  } | undefined;
2931
3050
  } | undefined;
2932
3051
  } | undefined;
2933
- droids?: {
2934
- name: string;
2935
- model: string;
2936
- description?: string | undefined;
2937
- template?: string | undefined;
2938
- tools?: string | string[] | undefined;
2939
- }[] | undefined;
2940
- $schema?: string | undefined;
2941
- platforms?: {
2942
- factory?: {
2943
- enabled: boolean;
2944
- shortTermMax?: number | undefined;
2945
- searchResults?: number | undefined;
2946
- sessionMax?: number | undefined;
2947
- patternRag?: boolean | undefined;
2948
- } | undefined;
2949
- vscode?: {
2950
- enabled: boolean;
2951
- shortTermMax?: number | undefined;
2952
- searchResults?: number | undefined;
2953
- sessionMax?: number | undefined;
2954
- patternRag?: boolean | undefined;
2955
- } | undefined;
2956
- opencode?: {
2957
- enabled: boolean;
2958
- shortTermMax?: number | undefined;
2959
- searchResults?: number | undefined;
2960
- sessionMax?: number | undefined;
2961
- patternRag?: boolean | undefined;
2962
- } | undefined;
2963
- codex?: {
2964
- enabled: boolean;
2965
- shortTermMax?: number | undefined;
2966
- searchResults?: number | undefined;
2967
- sessionMax?: number | undefined;
2968
- patternRag?: boolean | undefined;
2969
- } | undefined;
2970
- claudeCode?: {
2971
- enabled: boolean;
2972
- shortTermMax?: number | undefined;
2973
- searchResults?: number | undefined;
2974
- sessionMax?: number | undefined;
2975
- patternRag?: boolean | undefined;
2976
- } | undefined;
2977
- } | undefined;
2978
3052
  worktrees?: {
2979
3053
  enabled: boolean;
2980
3054
  directory: string;
2981
3055
  branchPrefix: string;
2982
3056
  autoCleanup: boolean;
2983
3057
  } | undefined;
2984
- template?: {
2985
- extends: string;
2986
- sections?: {
2987
- benchmark: boolean;
2988
- memorySystem: boolean;
2989
- browserUsage: boolean;
2990
- decisionLoop: boolean;
2991
- worktreeWorkflow: boolean;
2992
- troubleshooting: boolean;
2993
- augmentedCapabilities: boolean;
2994
- pipelineOnly: boolean;
2995
- } | undefined;
2996
- } | undefined;
2997
- commands?: {
3058
+ droids?: {
2998
3059
  name: string;
3060
+ model: string;
3061
+ template?: string | undefined;
2999
3062
  description?: string | undefined;
3063
+ tools?: string | string[] | undefined;
3064
+ }[] | undefined;
3065
+ commands?: {
3066
+ name: string;
3000
3067
  template?: string | undefined;
3068
+ description?: string | undefined;
3001
3069
  argumentHint?: string | undefined;
3002
3070
  }[] | undefined;
3003
- costOptimization?: {
3004
- enabled: boolean;
3005
- tokenBudget?: {
3006
- maxTemplateTokens: number;
3007
- maxMemoryQueryTokens: number;
3008
- maxContextTokens: number;
3009
- warningThreshold: number;
3010
- } | undefined;
3011
- embeddingBatching?: {
3012
- enabled: boolean;
3013
- batchSize: number;
3014
- maxDelayMs: number;
3015
- } | undefined;
3016
- llmCallReduction?: {
3017
- cacheResponses: boolean;
3018
- cacheTtlMs: number;
3019
- deduplicateQueries: boolean;
3020
- } | undefined;
3021
- } | undefined;
3022
3071
  timeOptimization?: {
3023
3072
  enabled: boolean;
3024
3073
  batchWindows?: {
3025
- deploy: number;
3026
3074
  push: number;
3027
3075
  commit: number;
3028
3076
  merge: number;
3029
3077
  workflow: number;
3078
+ deploy: number;
3030
3079
  } | undefined;
3031
3080
  parallelExecution?: {
3032
3081
  enabled: boolean;
@@ -3041,24 +3090,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3041
3090
  multiModel?: {
3042
3091
  enabled: boolean;
3043
3092
  models: (string | {
3044
- name: string;
3045
3093
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
3046
- id: string;
3094
+ name: string;
3047
3095
  maxContextTokens: number;
3096
+ id: string;
3048
3097
  apiModel: string;
3049
3098
  capabilities: string[];
3050
3099
  endpoint?: string | undefined;
3051
3100
  apiKeyEnvVar?: string | undefined;
3052
3101
  costPer1MInput?: number | undefined;
3053
3102
  costPer1MOutput?: number | undefined;
3103
+ modelContextBudget?: number | undefined;
3054
3104
  })[];
3055
3105
  routingStrategy: "cost-optimized" | "performance-first" | "balanced" | "adaptive";
3056
- costOptimization?: {
3057
- enabled: boolean;
3058
- targetReduction: number;
3059
- maxPerformanceDegradation: number;
3060
- fallbackThreshold: number;
3061
- } | undefined;
3062
3106
  roles?: {
3063
3107
  planner: string;
3064
3108
  executor: string;
@@ -3070,8 +3114,18 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3070
3114
  priority: number;
3071
3115
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
3072
3116
  keywords?: string[] | undefined;
3073
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
3117
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
3074
3118
  }[] | undefined;
3119
+ costOptimization?: {
3120
+ enabled: boolean;
3121
+ targetReduction: number;
3122
+ maxPerformanceDegradation: number;
3123
+ fallbackThreshold: number;
3124
+ } | undefined;
3125
+ routingMatrix?: Partial<Record<"low" | "medium" | "high" | "critical", {
3126
+ planner: string;
3127
+ executor: string;
3128
+ }>> | undefined;
3075
3129
  plannerSettings?: {
3076
3130
  complexityThreshold: "low" | "medium" | "high";
3077
3131
  maxPlanningTokens: number;
@@ -3105,12 +3159,87 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3105
3159
  hardBudget: number;
3106
3160
  toolChoiceForce: "auto" | "none" | "required";
3107
3161
  } | undefined;
3162
+ patternRL?: {
3163
+ enabled: boolean;
3164
+ dbPath: string;
3165
+ } | undefined;
3108
3166
  }, {
3109
3167
  project: {
3110
3168
  name: string;
3111
3169
  description?: string | undefined;
3112
3170
  defaultBranch?: string | undefined;
3113
3171
  };
3172
+ template?: {
3173
+ extends?: string | undefined;
3174
+ sections?: {
3175
+ memorySystem?: boolean | undefined;
3176
+ browserUsage?: boolean | undefined;
3177
+ decisionLoop?: boolean | undefined;
3178
+ worktreeWorkflow?: boolean | undefined;
3179
+ troubleshooting?: boolean | undefined;
3180
+ augmentedCapabilities?: boolean | undefined;
3181
+ pipelineOnly?: boolean | undefined;
3182
+ benchmark?: boolean | undefined;
3183
+ } | undefined;
3184
+ } | undefined;
3185
+ costOptimization?: {
3186
+ enabled?: boolean | undefined;
3187
+ tokenBudget?: {
3188
+ maxTemplateTokens?: number | undefined;
3189
+ maxMemoryQueryTokens?: number | undefined;
3190
+ maxContextTokens?: number | undefined;
3191
+ warningThreshold?: number | undefined;
3192
+ } | undefined;
3193
+ embeddingBatching?: {
3194
+ enabled?: boolean | undefined;
3195
+ batchSize?: number | undefined;
3196
+ maxDelayMs?: number | undefined;
3197
+ } | undefined;
3198
+ llmCallReduction?: {
3199
+ cacheResponses?: boolean | undefined;
3200
+ cacheTtlMs?: number | undefined;
3201
+ deduplicateQueries?: boolean | undefined;
3202
+ } | undefined;
3203
+ } | undefined;
3204
+ $schema?: string | undefined;
3205
+ version?: string | undefined;
3206
+ platforms?: {
3207
+ claudeCode?: {
3208
+ enabled?: boolean | undefined;
3209
+ shortTermMax?: number | undefined;
3210
+ searchResults?: number | undefined;
3211
+ sessionMax?: number | undefined;
3212
+ patternRag?: boolean | undefined;
3213
+ } | undefined;
3214
+ factory?: {
3215
+ enabled?: boolean | undefined;
3216
+ shortTermMax?: number | undefined;
3217
+ searchResults?: number | undefined;
3218
+ sessionMax?: number | undefined;
3219
+ patternRag?: boolean | undefined;
3220
+ } | undefined;
3221
+ vscode?: {
3222
+ enabled?: boolean | undefined;
3223
+ shortTermMax?: number | undefined;
3224
+ searchResults?: number | undefined;
3225
+ sessionMax?: number | undefined;
3226
+ patternRag?: boolean | undefined;
3227
+ } | undefined;
3228
+ opencode?: {
3229
+ enabled?: boolean | undefined;
3230
+ shortTermMax?: number | undefined;
3231
+ searchResults?: number | undefined;
3232
+ sessionMax?: number | undefined;
3233
+ patternRag?: boolean | undefined;
3234
+ } | undefined;
3235
+ codex?: {
3236
+ enabled?: boolean | undefined;
3237
+ shortTermMax?: number | undefined;
3238
+ searchResults?: number | undefined;
3239
+ sessionMax?: number | undefined;
3240
+ patternRag?: boolean | undefined;
3241
+ } | undefined;
3242
+ } | undefined;
3114
3243
  memory?: {
3115
3244
  patternRag?: {
3116
3245
  enabled?: boolean | undefined;
@@ -3134,8 +3263,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3134
3263
  forceDesktop?: boolean | undefined;
3135
3264
  } | undefined;
3136
3265
  longTerm?: {
3137
- provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
3138
3266
  enabled?: boolean | undefined;
3267
+ collection?: string | undefined;
3268
+ provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
3139
3269
  github?: {
3140
3270
  enabled?: boolean | undefined;
3141
3271
  path?: string | undefined;
@@ -3148,7 +3278,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3148
3278
  hybrid?: {
3149
3279
  useLocalInDev?: boolean | undefined;
3150
3280
  useCloudInProd?: boolean | undefined;
3151
- envDetection?: "auto" | "NODE_ENV" | "UAP_ENV" | undefined;
3281
+ envDetection?: "NODE_ENV" | "UAP_ENV" | "auto" | undefined;
3152
3282
  } | undefined;
3153
3283
  mode?: "lazy-local" | "cloud-serverless" | "hybrid" | undefined;
3154
3284
  lazyLocal?: {
@@ -3161,9 +3291,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3161
3291
  healthCheckIntervalMs?: number | undefined;
3162
3292
  } | undefined;
3163
3293
  cloudServerless?: {
3164
- provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
3165
3294
  url?: string | undefined;
3166
3295
  apiKey?: string | undefined;
3296
+ provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
3167
3297
  region?: string | undefined;
3168
3298
  keepWarm?: boolean | undefined;
3169
3299
  warmIntervalMs?: number | undefined;
@@ -3171,114 +3301,42 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3171
3301
  fallbackToMemory?: boolean | undefined;
3172
3302
  } | undefined;
3173
3303
  endpoint?: string | undefined;
3174
- collection?: string | undefined;
3175
3304
  embeddingModel?: string | undefined;
3176
3305
  qdrantCloud?: {
3177
3306
  enabled?: boolean | undefined;
3178
- collection?: string | undefined;
3179
3307
  url?: string | undefined;
3180
3308
  apiKey?: string | undefined;
3309
+ collection?: string | undefined;
3181
3310
  } | undefined;
3182
3311
  } | undefined;
3183
3312
  } | undefined;
3184
- droids?: {
3185
- name: string;
3186
- description?: string | undefined;
3187
- template?: string | undefined;
3188
- model?: string | undefined;
3189
- tools?: string | string[] | undefined;
3190
- }[] | undefined;
3191
- $schema?: string | undefined;
3192
- version?: string | undefined;
3193
- platforms?: {
3194
- factory?: {
3195
- enabled?: boolean | undefined;
3196
- shortTermMax?: number | undefined;
3197
- searchResults?: number | undefined;
3198
- sessionMax?: number | undefined;
3199
- patternRag?: boolean | undefined;
3200
- } | undefined;
3201
- vscode?: {
3202
- enabled?: boolean | undefined;
3203
- shortTermMax?: number | undefined;
3204
- searchResults?: number | undefined;
3205
- sessionMax?: number | undefined;
3206
- patternRag?: boolean | undefined;
3207
- } | undefined;
3208
- opencode?: {
3209
- enabled?: boolean | undefined;
3210
- shortTermMax?: number | undefined;
3211
- searchResults?: number | undefined;
3212
- sessionMax?: number | undefined;
3213
- patternRag?: boolean | undefined;
3214
- } | undefined;
3215
- codex?: {
3216
- enabled?: boolean | undefined;
3217
- shortTermMax?: number | undefined;
3218
- searchResults?: number | undefined;
3219
- sessionMax?: number | undefined;
3220
- patternRag?: boolean | undefined;
3221
- } | undefined;
3222
- claudeCode?: {
3223
- enabled?: boolean | undefined;
3224
- shortTermMax?: number | undefined;
3225
- searchResults?: number | undefined;
3226
- sessionMax?: number | undefined;
3227
- patternRag?: boolean | undefined;
3228
- } | undefined;
3229
- } | undefined;
3230
3313
  worktrees?: {
3231
3314
  enabled?: boolean | undefined;
3232
3315
  directory?: string | undefined;
3233
3316
  branchPrefix?: string | undefined;
3234
3317
  autoCleanup?: boolean | undefined;
3235
3318
  } | undefined;
3236
- template?: {
3237
- extends?: string | undefined;
3238
- sections?: {
3239
- benchmark?: boolean | undefined;
3240
- memorySystem?: boolean | undefined;
3241
- browserUsage?: boolean | undefined;
3242
- decisionLoop?: boolean | undefined;
3243
- worktreeWorkflow?: boolean | undefined;
3244
- troubleshooting?: boolean | undefined;
3245
- augmentedCapabilities?: boolean | undefined;
3246
- pipelineOnly?: boolean | undefined;
3247
- } | undefined;
3248
- } | undefined;
3249
- commands?: {
3319
+ droids?: {
3250
3320
  name: string;
3321
+ template?: string | undefined;
3251
3322
  description?: string | undefined;
3323
+ model?: string | undefined;
3324
+ tools?: string | string[] | undefined;
3325
+ }[] | undefined;
3326
+ commands?: {
3327
+ name: string;
3252
3328
  template?: string | undefined;
3329
+ description?: string | undefined;
3253
3330
  argumentHint?: string | undefined;
3254
3331
  }[] | undefined;
3255
- costOptimization?: {
3256
- enabled?: boolean | undefined;
3257
- tokenBudget?: {
3258
- maxTemplateTokens?: number | undefined;
3259
- maxMemoryQueryTokens?: number | undefined;
3260
- maxContextTokens?: number | undefined;
3261
- warningThreshold?: number | undefined;
3262
- } | undefined;
3263
- embeddingBatching?: {
3264
- enabled?: boolean | undefined;
3265
- batchSize?: number | undefined;
3266
- maxDelayMs?: number | undefined;
3267
- } | undefined;
3268
- llmCallReduction?: {
3269
- cacheResponses?: boolean | undefined;
3270
- cacheTtlMs?: number | undefined;
3271
- deduplicateQueries?: boolean | undefined;
3272
- } | undefined;
3273
- } | undefined;
3274
3332
  timeOptimization?: {
3275
3333
  enabled?: boolean | undefined;
3276
3334
  batchWindows?: {
3277
- deploy?: number | undefined;
3278
3335
  push?: number | undefined;
3279
3336
  commit?: number | undefined;
3280
3337
  merge?: number | undefined;
3281
3338
  workflow?: number | undefined;
3339
+ deploy?: number | undefined;
3282
3340
  } | undefined;
3283
3341
  parallelExecution?: {
3284
3342
  enabled?: boolean | undefined;
@@ -3293,8 +3351,8 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3293
3351
  multiModel?: {
3294
3352
  enabled?: boolean | undefined;
3295
3353
  models?: (string | {
3296
- name: string;
3297
3354
  provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
3355
+ name: string;
3298
3356
  id: string;
3299
3357
  apiModel: string;
3300
3358
  endpoint?: string | undefined;
@@ -3303,13 +3361,8 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3303
3361
  costPer1MInput?: number | undefined;
3304
3362
  costPer1MOutput?: number | undefined;
3305
3363
  capabilities?: string[] | undefined;
3364
+ modelContextBudget?: number | undefined;
3306
3365
  })[] | undefined;
3307
- costOptimization?: {
3308
- enabled?: boolean | undefined;
3309
- targetReduction?: number | undefined;
3310
- maxPerformanceDegradation?: number | undefined;
3311
- fallbackThreshold?: number | undefined;
3312
- } | undefined;
3313
3366
  roles?: {
3314
3367
  planner?: string | undefined;
3315
3368
  executor?: string | undefined;
@@ -3320,9 +3373,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3320
3373
  targetRole: "planner" | "executor" | "reviewer" | "fallback";
3321
3374
  complexity?: "low" | "medium" | "high" | "critical" | undefined;
3322
3375
  keywords?: string[] | undefined;
3323
- taskType?: "documentation" | "planning" | "coding" | "refactoring" | "bug-fix" | "review" | undefined;
3376
+ taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
3324
3377
  priority?: number | undefined;
3325
3378
  }[] | undefined;
3379
+ costOptimization?: {
3380
+ enabled?: boolean | undefined;
3381
+ targetReduction?: number | undefined;
3382
+ maxPerformanceDegradation?: number | undefined;
3383
+ fallbackThreshold?: number | undefined;
3384
+ } | undefined;
3385
+ routingMatrix?: Partial<Record<"low" | "medium" | "high" | "critical", {
3386
+ planner: string;
3387
+ executor: string;
3388
+ }>> | undefined;
3326
3389
  routingStrategy?: "cost-optimized" | "performance-first" | "balanced" | "adaptive" | undefined;
3327
3390
  plannerSettings?: {
3328
3391
  complexityThreshold?: "low" | "medium" | "high" | undefined;
@@ -3357,6 +3420,10 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
3357
3420
  hardBudget?: number | undefined;
3358
3421
  toolChoiceForce?: "auto" | "none" | "required" | undefined;
3359
3422
  } | undefined;
3423
+ patternRL?: {
3424
+ enabled?: boolean | undefined;
3425
+ dbPath?: string | undefined;
3426
+ } | undefined;
3360
3427
  }>;
3361
3428
  export type AgentContextConfig = z.infer<typeof AgentContextConfigSchema>;
3362
3429
  export type MultiModelConfig = z.infer<typeof MultiModelSchema>;