@miller-tech/uap 1.8.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.
- package/README.md +285 -642
- package/config/chat_template.jinja +76 -0
- package/config/lora-finetune.yaml +82 -0
- package/config/model-profiles/claude-haiku-3.5.json +62 -0
- package/config/model-profiles/claude-opus-4.6.json +63 -0
- package/config/model-profiles/claude-sonnet-4.6.json +63 -0
- package/config/model-profiles/gemini-2.5-flash.json +62 -0
- package/config/model-profiles/gemini-2.5-pro.json +62 -0
- package/config/model-profiles/generic.json +54 -0
- package/config/model-profiles/glm-5.json +61 -0
- package/config/model-profiles/gpt-4.1.json +64 -0
- package/config/model-profiles/gpt-4o.json +64 -0
- package/config/model-profiles/gpt-o3.json +61 -0
- package/config/model-profiles/kimi-k2.5.json +70 -0
- package/config/model-profiles/llama.json +86 -0
- package/config/model-profiles/qwen35.json +218 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/bin/cli.js +78 -9
- package/dist/bin/cli.js.map +1 -1
- package/dist/bin/llama-server-optimize.js +0 -10
- package/dist/bin/llama-server-optimize.js.map +1 -1
- package/dist/bin/policy.js +11 -195
- package/dist/bin/policy.js.map +1 -1
- package/dist/cli/dashboard.d.ts.map +1 -1
- package/dist/cli/dashboard.js +14 -14
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/generate.d.ts +0 -7
- package/dist/cli/generate.d.ts.map +1 -1
- package/dist/cli/generate.js +10 -22
- package/dist/cli/generate.js.map +1 -1
- package/dist/cli/hooks.d.ts +1 -1
- package/dist/cli/hooks.d.ts.map +1 -1
- package/dist/cli/hooks.js +371 -0
- package/dist/cli/hooks.js.map +1 -1
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +120 -3
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/memory.d.ts.map +1 -1
- package/dist/cli/memory.js +43 -109
- package/dist/cli/memory.js.map +1 -1
- package/dist/cli/model.d.ts.map +1 -1
- package/dist/cli/model.js +8 -25
- package/dist/cli/model.js.map +1 -1
- package/dist/cli/patterns.d.ts.map +1 -1
- package/dist/cli/patterns.js +11 -9
- package/dist/cli/patterns.js.map +1 -1
- package/dist/cli/policy.d.ts.map +1 -1
- package/dist/cli/policy.js +165 -1
- package/dist/cli/policy.js.map +1 -1
- package/dist/cli/rtk-validation.d.ts +0 -4
- package/dist/cli/rtk-validation.d.ts.map +1 -1
- package/dist/cli/rtk-validation.js +5 -23
- package/dist/cli/rtk-validation.js.map +1 -1
- package/dist/cli/schema-diff.d.ts.map +1 -1
- package/dist/cli/schema-diff.js +25 -16
- package/dist/cli/schema-diff.js.map +1 -1
- package/dist/cli/setup-wizard.d.ts.map +1 -1
- package/dist/cli/setup-wizard.js +13 -9
- package/dist/cli/setup-wizard.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +3 -4
- package/dist/cli/setup.js.map +1 -1
- package/dist/cli/visualize.d.ts +6 -13
- package/dist/cli/visualize.d.ts.map +1 -1
- package/dist/cli/visualize.js +35 -64
- package/dist/cli/visualize.js.map +1 -1
- package/dist/cli/worktree.d.ts.map +1 -1
- package/dist/cli/worktree.js +12 -13
- package/dist/cli/worktree.js.map +1 -1
- package/dist/coordination/adaptive-patterns.d.ts.map +1 -1
- package/dist/coordination/adaptive-patterns.js +7 -3
- package/dist/coordination/adaptive-patterns.js.map +1 -1
- package/dist/coordination/deploy-batcher.d.ts.map +1 -1
- package/dist/coordination/deploy-batcher.js +8 -8
- package/dist/coordination/deploy-batcher.js.map +1 -1
- package/dist/dashboard/data-service.d.ts.map +1 -1
- package/dist/dashboard/data-service.js +12 -13
- package/dist/dashboard/data-service.js.map +1 -1
- package/dist/dashboard/server.d.ts.map +1 -1
- package/dist/dashboard/server.js +23 -8
- package/dist/dashboard/server.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/mcp-router/executor/client.d.ts +0 -6
- package/dist/mcp-router/executor/client.d.ts.map +1 -1
- package/dist/mcp-router/executor/client.js +1 -27
- package/dist/mcp-router/executor/client.js.map +1 -1
- package/dist/mcp-router/index.d.ts +1 -1
- package/dist/mcp-router/index.d.ts.map +1 -1
- package/dist/mcp-router/index.js.map +1 -1
- package/dist/mcp-router/output-compressor.js +114 -112
- package/dist/mcp-router/output-compressor.js.map +1 -1
- package/dist/mcp-router/types.d.ts +0 -5
- package/dist/mcp-router/types.d.ts.map +1 -1
- package/dist/memory/backends/github.d.ts.map +1 -1
- package/dist/memory/backends/github.js +21 -13
- package/dist/memory/backends/github.js.map +1 -1
- package/dist/memory/context-pruner.d.ts +2 -9
- package/dist/memory/context-pruner.d.ts.map +1 -1
- package/dist/memory/context-pruner.js +5 -22
- package/dist/memory/context-pruner.js.map +1 -1
- package/dist/memory/correction-propagator.d.ts.map +1 -1
- package/dist/memory/correction-propagator.js +19 -19
- package/dist/memory/correction-propagator.js.map +1 -1
- package/dist/memory/dynamic-retrieval.d.ts.map +1 -1
- package/dist/memory/dynamic-retrieval.js +263 -132
- package/dist/memory/dynamic-retrieval.js.map +1 -1
- package/dist/memory/embeddings.d.ts.map +1 -1
- package/dist/memory/embeddings.js +2 -15
- package/dist/memory/embeddings.js.map +1 -1
- package/dist/memory/hierarchical-memory.d.ts.map +1 -1
- package/dist/memory/hierarchical-memory.js +6 -0
- package/dist/memory/hierarchical-memory.js.map +1 -1
- package/dist/memory/knowledge-graph.d.ts.map +1 -1
- package/dist/memory/knowledge-graph.js +2 -1
- package/dist/memory/knowledge-graph.js.map +1 -1
- package/dist/memory/memory-consolidator.d.ts +1 -0
- package/dist/memory/memory-consolidator.d.ts.map +1 -1
- package/dist/memory/memory-consolidator.js +27 -3
- package/dist/memory/memory-consolidator.js.map +1 -1
- package/dist/memory/predictive-memory.d.ts +9 -1
- package/dist/memory/predictive-memory.d.ts.map +1 -1
- package/dist/memory/predictive-memory.js +77 -1
- package/dist/memory/predictive-memory.js.map +1 -1
- package/dist/memory/serverless-qdrant.d.ts +1 -0
- package/dist/memory/serverless-qdrant.d.ts.map +1 -1
- package/dist/memory/serverless-qdrant.js +3 -9
- package/dist/memory/serverless-qdrant.js.map +1 -1
- package/dist/memory/short-term/schema.d.ts.map +1 -1
- package/dist/memory/short-term/schema.js +44 -6
- package/dist/memory/short-term/schema.js.map +1 -1
- package/dist/memory/short-term/sqlite.d.ts +4 -3
- package/dist/memory/short-term/sqlite.d.ts.map +1 -1
- package/dist/memory/short-term/sqlite.js +3 -12
- package/dist/memory/short-term/sqlite.js.map +1 -1
- package/dist/memory/speculative-cache.js +2 -2
- package/dist/memory/speculative-cache.js.map +1 -1
- package/dist/models/executor.d.ts +21 -0
- package/dist/models/executor.d.ts.map +1 -1
- package/dist/models/executor.js +116 -4
- package/dist/models/executor.js.map +1 -1
- package/dist/models/planner.d.ts +1 -0
- package/dist/models/planner.d.ts.map +1 -1
- package/dist/models/planner.js +13 -1
- package/dist/models/planner.js.map +1 -1
- package/dist/policies/enforced-tool-router.d.ts +3 -1
- package/dist/policies/enforced-tool-router.d.ts.map +1 -1
- package/dist/policies/enforced-tool-router.js.map +1 -1
- package/dist/tasks/service.d.ts +1 -0
- package/dist/tasks/service.d.ts.map +1 -1
- package/dist/tasks/service.js +10 -6
- package/dist/tasks/service.js.map +1 -1
- package/dist/telemetry/session-telemetry.d.ts.map +1 -1
- package/dist/telemetry/session-telemetry.js +73 -17
- package/dist/telemetry/session-telemetry.js.map +1 -1
- package/dist/types/config.d.ts +377 -263
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/config.js +13 -67
- package/dist/types/config.js.map +1 -1
- package/dist/utils/config-loader.d.ts +34 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-loader.js +93 -0
- package/dist/utils/config-loader.js.map +1 -0
- package/dist/utils/lazy-imports.d.ts +18 -0
- package/dist/utils/lazy-imports.d.ts.map +1 -0
- package/dist/utils/lazy-imports.js +39 -0
- package/dist/utils/lazy-imports.js.map +1 -0
- package/dist/utils/stopwords.d.ts +12 -0
- package/dist/utils/stopwords.d.ts.map +1 -0
- package/dist/utils/stopwords.js +196 -0
- package/dist/utils/stopwords.js.map +1 -0
- package/dist/utils/string-similarity.d.ts +10 -3
- package/dist/utils/string-similarity.d.ts.map +1 -1
- package/dist/utils/string-similarity.js +49 -25
- package/dist/utils/string-similarity.js.map +1 -1
- package/docs/INDEX.md +35 -34
- package/package.json +13 -14
- package/scripts/maintenance/publish-npm.sh +82 -0
- package/scripts/maintenance/publish.sh +29 -0
- package/scripts/maintenance/update-droids.py +93 -0
- package/scripts/maintenance/update-skills.py +148 -0
- package/scripts/maintenance/update-uap-compliance.sh +45 -0
- package/scripts/maintenance/validate-skills.py +83 -0
- package/scripts/maintenance/verify-compliance.sh +117 -0
- package/scripts/setup/install-cloakbrowser.ts +14 -0
- package/scripts/setup/install-desktop.sh +105 -0
- package/scripts/setup/install-rtk.sh +184 -0
- package/scripts/setup/install-web.sh +73 -0
- package/scripts/setup/setup.sh +375 -0
- package/scripts/validate-build.sh +62 -0
- package/scripts/version-bump.sh +130 -0
- package/tools/agents/scripts/migrate_memory_to_qdrant.py +1 -1
- /package/docs/{BENCHMARK_GAPS_AND_PLAN.md → archive/BENCHMARK_GAPS_AND_PLAN.md} +0 -0
- /package/docs/{MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md → archive/MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md} +0 -0
- /package/docs/{MODEL_ROUTING_OPTIMIZATION_PLAN.md → archive/MODEL_ROUTING_OPTIMIZATION_PLAN.md} +0 -0
- /package/docs/{PARALLELISM_GAPS_AND_OPTIONS.md → archive/PARALLELISM_GAPS_AND_OPTIONS.md} +0 -0
- /package/docs/{POLICY_GATE_IMPLEMENTATION.md → archive/POLICY_GATE_IMPLEMENTATION.md} +0 -0
- /package/docs/{UAP_OPTIMIZATION_PLAN.md → archive/UAP_OPTIMIZATION_PLAN.md} +0 -0
- /package/docs/{opencode-integration-guide.md → archive/opencode-integration-guide.md} +0 -0
- /package/docs/{opencode-integration-quickref.md → archive/opencode-integration-quickref.md} +0 -0
package/dist/types/config.d.ts
CHANGED
|
@@ -25,14 +25,14 @@ export declare const ShortTermMemorySchema: z.ZodObject<{
|
|
|
25
25
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
26
26
|
forceDesktop: z.ZodOptional<z.ZodBoolean>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
path: string;
|
|
29
28
|
enabled: boolean;
|
|
29
|
+
path: string;
|
|
30
30
|
maxEntries: number;
|
|
31
31
|
webDatabase?: string | undefined;
|
|
32
32
|
forceDesktop?: boolean | undefined;
|
|
33
33
|
}, {
|
|
34
|
-
path?: string | undefined;
|
|
35
34
|
enabled?: boolean | undefined;
|
|
35
|
+
path?: string | undefined;
|
|
36
36
|
webDatabase?: string | undefined;
|
|
37
37
|
maxEntries?: number | undefined;
|
|
38
38
|
forceDesktop?: boolean | undefined;
|
|
@@ -44,14 +44,14 @@ export declare const GitHubMemoryBackendSchema: z.ZodObject<{
|
|
|
44
44
|
path: z.ZodDefault<z.ZodString>;
|
|
45
45
|
branch: z.ZodDefault<z.ZodString>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
path: string;
|
|
48
47
|
enabled: boolean;
|
|
48
|
+
path: string;
|
|
49
49
|
branch: string;
|
|
50
50
|
repo?: string | undefined;
|
|
51
51
|
token?: string | undefined;
|
|
52
52
|
}, {
|
|
53
|
-
path?: string | undefined;
|
|
54
53
|
enabled?: boolean | undefined;
|
|
54
|
+
path?: string | undefined;
|
|
55
55
|
repo?: string | undefined;
|
|
56
56
|
token?: string | undefined;
|
|
57
57
|
branch?: string | undefined;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -206,14 +206,14 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
206
206
|
path: z.ZodDefault<z.ZodString>;
|
|
207
207
|
branch: z.ZodDefault<z.ZodString>;
|
|
208
208
|
}, "strip", z.ZodTypeAny, {
|
|
209
|
-
path: string;
|
|
210
209
|
enabled: boolean;
|
|
210
|
+
path: string;
|
|
211
211
|
branch: string;
|
|
212
212
|
repo?: string | undefined;
|
|
213
213
|
token?: string | undefined;
|
|
214
214
|
}, {
|
|
215
|
-
path?: string | undefined;
|
|
216
215
|
enabled?: boolean | undefined;
|
|
216
|
+
path?: string | undefined;
|
|
217
217
|
repo?: string | undefined;
|
|
218
218
|
token?: string | undefined;
|
|
219
219
|
branch?: string | 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;
|
|
@@ -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;
|
|
@@ -353,12 +353,12 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
353
353
|
}>>;
|
|
354
354
|
}, "strip", z.ZodTypeAny, {
|
|
355
355
|
enabled: boolean;
|
|
356
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
|
|
357
356
|
collection: string;
|
|
357
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
358
358
|
embeddingModel: string;
|
|
359
359
|
github?: {
|
|
360
|
-
path: string;
|
|
361
360
|
enabled: boolean;
|
|
361
|
+
path: string;
|
|
362
362
|
branch: string;
|
|
363
363
|
repo?: string | undefined;
|
|
364
364
|
token?: string | undefined;
|
|
@@ -399,9 +399,11 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
399
399
|
} | undefined;
|
|
400
400
|
}, {
|
|
401
401
|
enabled?: boolean | undefined;
|
|
402
|
+
collection?: string | undefined;
|
|
403
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
402
404
|
github?: {
|
|
403
|
-
path?: string | undefined;
|
|
404
405
|
enabled?: boolean | undefined;
|
|
406
|
+
path?: string | undefined;
|
|
405
407
|
repo?: string | undefined;
|
|
406
408
|
token?: string | undefined;
|
|
407
409
|
branch?: string | undefined;
|
|
@@ -424,24 +426,22 @@ export declare const LongTermMemorySchema: z.ZodObject<{
|
|
|
424
426
|
healthCheckIntervalMs?: number | undefined;
|
|
425
427
|
} | undefined;
|
|
426
428
|
cloudServerless?: {
|
|
427
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
428
429
|
url?: string | undefined;
|
|
429
430
|
apiKey?: string | undefined;
|
|
431
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
430
432
|
region?: string | undefined;
|
|
431
433
|
keepWarm?: boolean | undefined;
|
|
432
434
|
warmIntervalMs?: number | undefined;
|
|
433
435
|
} | undefined;
|
|
434
436
|
fallbackToMemory?: boolean | undefined;
|
|
435
437
|
} | undefined;
|
|
436
|
-
provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | 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
|
/**
|
|
@@ -498,14 +498,14 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
498
498
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
499
499
|
forceDesktop: z.ZodOptional<z.ZodBoolean>;
|
|
500
500
|
}, "strip", z.ZodTypeAny, {
|
|
501
|
-
path: string;
|
|
502
501
|
enabled: boolean;
|
|
502
|
+
path: string;
|
|
503
503
|
maxEntries: number;
|
|
504
504
|
webDatabase?: string | undefined;
|
|
505
505
|
forceDesktop?: boolean | undefined;
|
|
506
506
|
}, {
|
|
507
|
-
path?: string | undefined;
|
|
508
507
|
enabled?: boolean | undefined;
|
|
508
|
+
path?: string | undefined;
|
|
509
509
|
webDatabase?: string | undefined;
|
|
510
510
|
maxEntries?: number | undefined;
|
|
511
511
|
forceDesktop?: boolean | undefined;
|
|
@@ -523,14 +523,14 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
523
523
|
path: z.ZodDefault<z.ZodString>;
|
|
524
524
|
branch: z.ZodDefault<z.ZodString>;
|
|
525
525
|
}, "strip", z.ZodTypeAny, {
|
|
526
|
-
path: string;
|
|
527
526
|
enabled: boolean;
|
|
527
|
+
path: string;
|
|
528
528
|
branch: string;
|
|
529
529
|
repo?: string | undefined;
|
|
530
530
|
token?: string | undefined;
|
|
531
531
|
}, {
|
|
532
|
-
path?: string | undefined;
|
|
533
532
|
enabled?: boolean | undefined;
|
|
533
|
+
path?: string | undefined;
|
|
534
534
|
repo?: string | undefined;
|
|
535
535
|
token?: string | undefined;
|
|
536
536
|
branch?: string | undefined;
|
|
@@ -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;
|
|
@@ -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;
|
|
@@ -670,12 +670,12 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
670
670
|
}>>;
|
|
671
671
|
}, "strip", z.ZodTypeAny, {
|
|
672
672
|
enabled: boolean;
|
|
673
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
|
|
674
673
|
collection: string;
|
|
674
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
675
675
|
embeddingModel: string;
|
|
676
676
|
github?: {
|
|
677
|
-
path: string;
|
|
678
677
|
enabled: boolean;
|
|
678
|
+
path: string;
|
|
679
679
|
branch: string;
|
|
680
680
|
repo?: string | undefined;
|
|
681
681
|
token?: string | undefined;
|
|
@@ -716,9 +716,11 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
716
716
|
} | undefined;
|
|
717
717
|
}, {
|
|
718
718
|
enabled?: boolean | undefined;
|
|
719
|
+
collection?: string | undefined;
|
|
720
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
719
721
|
github?: {
|
|
720
|
-
path?: string | undefined;
|
|
721
722
|
enabled?: boolean | undefined;
|
|
723
|
+
path?: string | undefined;
|
|
722
724
|
repo?: string | undefined;
|
|
723
725
|
token?: string | undefined;
|
|
724
726
|
branch?: string | undefined;
|
|
@@ -741,24 +743,22 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
741
743
|
healthCheckIntervalMs?: number | undefined;
|
|
742
744
|
} | undefined;
|
|
743
745
|
cloudServerless?: {
|
|
744
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
745
746
|
url?: string | undefined;
|
|
746
747
|
apiKey?: string | undefined;
|
|
748
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
747
749
|
region?: string | undefined;
|
|
748
750
|
keepWarm?: boolean | undefined;
|
|
749
751
|
warmIntervalMs?: number | undefined;
|
|
750
752
|
} | undefined;
|
|
751
753
|
fallbackToMemory?: boolean | undefined;
|
|
752
754
|
} | undefined;
|
|
753
|
-
provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | 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<{
|
|
@@ -817,20 +817,20 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
817
817
|
skillsDir?: string | undefined;
|
|
818
818
|
} | undefined;
|
|
819
819
|
shortTerm?: {
|
|
820
|
-
path: string;
|
|
821
820
|
enabled: boolean;
|
|
821
|
+
path: string;
|
|
822
822
|
maxEntries: number;
|
|
823
823
|
webDatabase?: string | undefined;
|
|
824
824
|
forceDesktop?: boolean | undefined;
|
|
825
825
|
} | undefined;
|
|
826
826
|
longTerm?: {
|
|
827
827
|
enabled: boolean;
|
|
828
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
|
|
829
828
|
collection: string;
|
|
829
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
830
830
|
embeddingModel: string;
|
|
831
831
|
github?: {
|
|
832
|
-
path: string;
|
|
833
832
|
enabled: boolean;
|
|
833
|
+
path: string;
|
|
834
834
|
branch: string;
|
|
835
835
|
repo?: string | undefined;
|
|
836
836
|
token?: string | undefined;
|
|
@@ -886,17 +886,19 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
886
886
|
maxBodyChars?: number | undefined;
|
|
887
887
|
} | undefined;
|
|
888
888
|
shortTerm?: {
|
|
889
|
-
path?: string | undefined;
|
|
890
889
|
enabled?: boolean | undefined;
|
|
890
|
+
path?: string | undefined;
|
|
891
891
|
webDatabase?: string | undefined;
|
|
892
892
|
maxEntries?: number | undefined;
|
|
893
893
|
forceDesktop?: boolean | undefined;
|
|
894
894
|
} | undefined;
|
|
895
895
|
longTerm?: {
|
|
896
896
|
enabled?: boolean | undefined;
|
|
897
|
+
collection?: string | undefined;
|
|
898
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
897
899
|
github?: {
|
|
898
|
-
path?: string | undefined;
|
|
899
900
|
enabled?: boolean | undefined;
|
|
901
|
+
path?: string | undefined;
|
|
900
902
|
repo?: string | undefined;
|
|
901
903
|
token?: string | undefined;
|
|
902
904
|
branch?: string | undefined;
|
|
@@ -919,24 +921,22 @@ export declare const MemorySchema: z.ZodObject<{
|
|
|
919
921
|
healthCheckIntervalMs?: number | undefined;
|
|
920
922
|
} | undefined;
|
|
921
923
|
cloudServerless?: {
|
|
922
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
923
924
|
url?: string | undefined;
|
|
924
925
|
apiKey?: string | undefined;
|
|
926
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
925
927
|
region?: string | undefined;
|
|
926
928
|
keepWarm?: boolean | undefined;
|
|
927
929
|
warmIntervalMs?: number | undefined;
|
|
928
930
|
} | undefined;
|
|
929
931
|
fallbackToMemory?: boolean | undefined;
|
|
930
932
|
} | undefined;
|
|
931
|
-
provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | 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<{
|
|
@@ -1183,14 +1183,14 @@ 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
|
-
commit: number;
|
|
1187
1186
|
push: number;
|
|
1187
|
+
commit: number;
|
|
1188
1188
|
merge: number;
|
|
1189
1189
|
workflow: number;
|
|
1190
1190
|
deploy: number;
|
|
1191
1191
|
}, {
|
|
1192
|
-
commit?: number | undefined;
|
|
1193
1192
|
push?: number | undefined;
|
|
1193
|
+
commit?: number | undefined;
|
|
1194
1194
|
merge?: number | undefined;
|
|
1195
1195
|
workflow?: number | undefined;
|
|
1196
1196
|
deploy?: number | undefined;
|
|
@@ -1221,8 +1221,8 @@ export declare const TimeOptimizationSchema: z.ZodObject<{
|
|
|
1221
1221
|
}, "strip", z.ZodTypeAny, {
|
|
1222
1222
|
enabled: boolean;
|
|
1223
1223
|
batchWindows?: {
|
|
1224
|
-
commit: number;
|
|
1225
1224
|
push: number;
|
|
1225
|
+
commit: number;
|
|
1226
1226
|
merge: number;
|
|
1227
1227
|
workflow: number;
|
|
1228
1228
|
deploy: number;
|
|
@@ -1237,14 +1237,14 @@ export declare const TimeOptimizationSchema: z.ZodObject<{
|
|
|
1237
1237
|
prewarmServices: string[];
|
|
1238
1238
|
} | undefined;
|
|
1239
1239
|
}, {
|
|
1240
|
+
enabled?: boolean | undefined;
|
|
1240
1241
|
batchWindows?: {
|
|
1241
|
-
commit?: number | undefined;
|
|
1242
1242
|
push?: number | undefined;
|
|
1243
|
+
commit?: number | undefined;
|
|
1243
1244
|
merge?: number | undefined;
|
|
1244
1245
|
workflow?: number | undefined;
|
|
1245
1246
|
deploy?: number | undefined;
|
|
1246
1247
|
} | undefined;
|
|
1247
|
-
enabled?: boolean | undefined;
|
|
1248
1248
|
parallelExecution?: {
|
|
1249
1249
|
enabled?: boolean | undefined;
|
|
1250
1250
|
maxParallelDroids?: number | 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
|
-
|
|
1273
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
1274
1274
|
name: string;
|
|
1275
|
-
provider: "ollama" | "openai" | "custom" | "anthropic" | "deepseek" | "zhipu";
|
|
1276
1275
|
maxContextTokens: number;
|
|
1276
|
+
id: string;
|
|
1277
1277
|
apiModel: string;
|
|
1278
1278
|
capabilities: string[];
|
|
1279
1279
|
endpoint?: string | undefined;
|
|
@@ -1281,9 +1281,9 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
1281
1281
|
costPer1MInput?: number | undefined;
|
|
1282
1282
|
costPer1MOutput?: number | undefined;
|
|
1283
1283
|
}, {
|
|
1284
|
-
|
|
1284
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
1285
1285
|
name: string;
|
|
1286
|
-
|
|
1286
|
+
id: string;
|
|
1287
1287
|
apiModel: string;
|
|
1288
1288
|
endpoint?: string | undefined;
|
|
1289
1289
|
maxContextTokens?: number | 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">>;
|
|
@@ -1302,22 +1299,18 @@ export declare const RoutingRuleSchema: z.ZodObject<{
|
|
|
1302
1299
|
targetRole: z.ZodEnum<["planner", "executor", "reviewer", "fallback"]>;
|
|
1303
1300
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
1304
1301
|
}, "strip", z.ZodTypeAny, {
|
|
1305
|
-
priority: number;
|
|
1306
1302
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
1303
|
+
priority: number;
|
|
1307
1304
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
1308
1305
|
keywords?: string[] | undefined;
|
|
1309
|
-
taskType?: "
|
|
1306
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
1310
1307
|
}, {
|
|
1311
1308
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
1312
|
-
priority?: number | undefined;
|
|
1313
1309
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
1314
1310
|
keywords?: string[] | undefined;
|
|
1315
|
-
taskType?: "
|
|
1311
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
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,21 +1324,23 @@ 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
|
-
|
|
1329
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
1336
1330
|
name: string;
|
|
1337
|
-
provider: "ollama" | "openai" | "custom" | "anthropic" | "deepseek" | "zhipu";
|
|
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
|
-
|
|
1341
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
1347
1342
|
name: string;
|
|
1348
|
-
|
|
1343
|
+
id: string;
|
|
1349
1344
|
apiModel: string;
|
|
1350
1345
|
endpoint?: string | undefined;
|
|
1351
1346
|
maxContextTokens?: number | 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>;
|
|
@@ -1377,19 +1373,18 @@ export declare const MultiModelSchema: z.ZodObject<{
|
|
|
1377
1373
|
targetRole: z.ZodEnum<["planner", "executor", "reviewer", "fallback"]>;
|
|
1378
1374
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
1379
1375
|
}, "strip", z.ZodTypeAny, {
|
|
1380
|
-
priority: number;
|
|
1381
1376
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
1377
|
+
priority: number;
|
|
1382
1378
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
1383
1379
|
keywords?: string[] | undefined;
|
|
1384
|
-
taskType?: "
|
|
1380
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
1385
1381
|
}, {
|
|
1386
1382
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
1387
|
-
priority?: number | undefined;
|
|
1388
1383
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
1389
1384
|
keywords?: string[] | undefined;
|
|
1390
|
-
taskType?: "
|
|
1385
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
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
|
-
|
|
1444
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
1439
1445
|
name: string;
|
|
1440
|
-
provider: "ollama" | "openai" | "custom" | "anthropic" | "deepseek" | "zhipu";
|
|
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;
|
|
@@ -1460,12 +1461,22 @@ export declare const MultiModelSchema: z.ZodObject<{
|
|
|
1460
1461
|
reviewer?: string | undefined;
|
|
1461
1462
|
} | undefined;
|
|
1462
1463
|
routing?: {
|
|
1463
|
-
priority: number;
|
|
1464
1464
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
1465
|
+
priority: number;
|
|
1465
1466
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
1466
1467
|
keywords?: string[] | undefined;
|
|
1467
|
-
taskType?: "
|
|
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;
|
|
@@ -1478,16 +1489,10 @@ export declare const MultiModelSchema: z.ZodObject<{
|
|
|
1478
1489
|
} | undefined;
|
|
1479
1490
|
}, {
|
|
1480
1491
|
enabled?: boolean | undefined;
|
|
1481
|
-
costOptimization?: {
|
|
1482
|
-
enabled?: boolean | undefined;
|
|
1483
|
-
targetReduction?: number | undefined;
|
|
1484
|
-
maxPerformanceDegradation?: number | undefined;
|
|
1485
|
-
fallbackThreshold?: number | undefined;
|
|
1486
|
-
} | undefined;
|
|
1487
1492
|
models?: (string | {
|
|
1488
|
-
|
|
1493
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
1489
1494
|
name: string;
|
|
1490
|
-
|
|
1495
|
+
id: string;
|
|
1491
1496
|
apiModel: string;
|
|
1492
1497
|
endpoint?: string | undefined;
|
|
1493
1498
|
maxContextTokens?: number | undefined;
|
|
@@ -1495,6 +1500,7 @@ export declare const MultiModelSchema: z.ZodObject<{
|
|
|
1495
1500
|
costPer1MInput?: number | undefined;
|
|
1496
1501
|
costPer1MOutput?: number | undefined;
|
|
1497
1502
|
capabilities?: string[] | undefined;
|
|
1503
|
+
modelContextBudget?: number | undefined;
|
|
1498
1504
|
})[] | undefined;
|
|
1499
1505
|
roles?: {
|
|
1500
1506
|
planner?: string | undefined;
|
|
@@ -1504,11 +1510,21 @@ export declare const MultiModelSchema: z.ZodObject<{
|
|
|
1504
1510
|
} | undefined;
|
|
1505
1511
|
routing?: {
|
|
1506
1512
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
1507
|
-
priority?: number | undefined;
|
|
1508
1513
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
1509
1514
|
keywords?: string[] | undefined;
|
|
1510
|
-
taskType?: "
|
|
1515
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
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;
|
|
@@ -1624,7 +1640,7 @@ export declare const AgentExecutionSchema: z.ZodObject<{
|
|
|
1624
1640
|
cwdInjection: boolean;
|
|
1625
1641
|
softBudget: number;
|
|
1626
1642
|
hardBudget: number;
|
|
1627
|
-
toolChoiceForce: "
|
|
1643
|
+
toolChoiceForce: "auto" | "none" | "required";
|
|
1628
1644
|
}, {
|
|
1629
1645
|
domainHints?: boolean | undefined;
|
|
1630
1646
|
prependNotReplaceLoopBreaker?: boolean | undefined;
|
|
@@ -1645,7 +1661,7 @@ export declare const AgentExecutionSchema: z.ZodObject<{
|
|
|
1645
1661
|
cwdInjection?: boolean | undefined;
|
|
1646
1662
|
softBudget?: number | undefined;
|
|
1647
1663
|
hardBudget?: number | undefined;
|
|
1648
|
-
toolChoiceForce?: "
|
|
1664
|
+
toolChoiceForce?: "auto" | "none" | "required" | undefined;
|
|
1649
1665
|
}>;
|
|
1650
1666
|
export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
1651
1667
|
$schema: z.ZodOptional<z.ZodString>;
|
|
@@ -1740,6 +1756,25 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1740
1756
|
sessionMax?: number | undefined;
|
|
1741
1757
|
patternRag?: boolean | undefined;
|
|
1742
1758
|
}>>;
|
|
1759
|
+
codex: z.ZodOptional<z.ZodObject<{
|
|
1760
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1761
|
+
shortTermMax: z.ZodOptional<z.ZodNumber>;
|
|
1762
|
+
searchResults: z.ZodOptional<z.ZodNumber>;
|
|
1763
|
+
sessionMax: z.ZodOptional<z.ZodNumber>;
|
|
1764
|
+
patternRag: z.ZodOptional<z.ZodBoolean>;
|
|
1765
|
+
}, "strip", z.ZodTypeAny, {
|
|
1766
|
+
enabled: boolean;
|
|
1767
|
+
shortTermMax?: number | undefined;
|
|
1768
|
+
searchResults?: number | undefined;
|
|
1769
|
+
sessionMax?: number | undefined;
|
|
1770
|
+
patternRag?: boolean | undefined;
|
|
1771
|
+
}, {
|
|
1772
|
+
enabled?: boolean | undefined;
|
|
1773
|
+
shortTermMax?: number | undefined;
|
|
1774
|
+
searchResults?: number | undefined;
|
|
1775
|
+
sessionMax?: number | undefined;
|
|
1776
|
+
patternRag?: boolean | undefined;
|
|
1777
|
+
}>>;
|
|
1743
1778
|
}, "strip", z.ZodTypeAny, {
|
|
1744
1779
|
claudeCode?: {
|
|
1745
1780
|
enabled: boolean;
|
|
@@ -1769,6 +1804,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1769
1804
|
sessionMax?: number | undefined;
|
|
1770
1805
|
patternRag?: boolean | undefined;
|
|
1771
1806
|
} | undefined;
|
|
1807
|
+
codex?: {
|
|
1808
|
+
enabled: boolean;
|
|
1809
|
+
shortTermMax?: number | undefined;
|
|
1810
|
+
searchResults?: number | undefined;
|
|
1811
|
+
sessionMax?: number | undefined;
|
|
1812
|
+
patternRag?: boolean | undefined;
|
|
1813
|
+
} | undefined;
|
|
1772
1814
|
}, {
|
|
1773
1815
|
claudeCode?: {
|
|
1774
1816
|
enabled?: boolean | undefined;
|
|
@@ -1798,6 +1840,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1798
1840
|
sessionMax?: number | undefined;
|
|
1799
1841
|
patternRag?: boolean | undefined;
|
|
1800
1842
|
} | undefined;
|
|
1843
|
+
codex?: {
|
|
1844
|
+
enabled?: boolean | undefined;
|
|
1845
|
+
shortTermMax?: number | undefined;
|
|
1846
|
+
searchResults?: number | undefined;
|
|
1847
|
+
sessionMax?: number | undefined;
|
|
1848
|
+
patternRag?: boolean | undefined;
|
|
1849
|
+
} | undefined;
|
|
1801
1850
|
}>>;
|
|
1802
1851
|
memory: z.ZodOptional<z.ZodObject<{
|
|
1803
1852
|
shortTerm: z.ZodOptional<z.ZodObject<{
|
|
@@ -1807,14 +1856,14 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1807
1856
|
maxEntries: z.ZodDefault<z.ZodNumber>;
|
|
1808
1857
|
forceDesktop: z.ZodOptional<z.ZodBoolean>;
|
|
1809
1858
|
}, "strip", z.ZodTypeAny, {
|
|
1810
|
-
path: string;
|
|
1811
1859
|
enabled: boolean;
|
|
1860
|
+
path: string;
|
|
1812
1861
|
maxEntries: number;
|
|
1813
1862
|
webDatabase?: string | undefined;
|
|
1814
1863
|
forceDesktop?: boolean | undefined;
|
|
1815
1864
|
}, {
|
|
1816
|
-
path?: string | undefined;
|
|
1817
1865
|
enabled?: boolean | undefined;
|
|
1866
|
+
path?: string | undefined;
|
|
1818
1867
|
webDatabase?: string | undefined;
|
|
1819
1868
|
maxEntries?: number | undefined;
|
|
1820
1869
|
forceDesktop?: boolean | undefined;
|
|
@@ -1832,14 +1881,14 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1832
1881
|
path: z.ZodDefault<z.ZodString>;
|
|
1833
1882
|
branch: z.ZodDefault<z.ZodString>;
|
|
1834
1883
|
}, "strip", z.ZodTypeAny, {
|
|
1835
|
-
path: string;
|
|
1836
1884
|
enabled: boolean;
|
|
1885
|
+
path: string;
|
|
1837
1886
|
branch: string;
|
|
1838
1887
|
repo?: string | undefined;
|
|
1839
1888
|
token?: string | undefined;
|
|
1840
1889
|
}, {
|
|
1841
|
-
path?: string | undefined;
|
|
1842
1890
|
enabled?: boolean | undefined;
|
|
1891
|
+
path?: string | undefined;
|
|
1843
1892
|
repo?: string | undefined;
|
|
1844
1893
|
token?: string | undefined;
|
|
1845
1894
|
branch?: string | undefined;
|
|
@@ -1856,9 +1905,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1856
1905
|
apiKey?: string | undefined;
|
|
1857
1906
|
}, {
|
|
1858
1907
|
enabled?: boolean | undefined;
|
|
1859
|
-
collection?: string | undefined;
|
|
1860
1908
|
url?: string | undefined;
|
|
1861
1909
|
apiKey?: string | undefined;
|
|
1910
|
+
collection?: string | undefined;
|
|
1862
1911
|
}>>;
|
|
1863
1912
|
serverless: z.ZodOptional<z.ZodObject<{
|
|
1864
1913
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -1903,9 +1952,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1903
1952
|
url?: string | undefined;
|
|
1904
1953
|
apiKey?: string | undefined;
|
|
1905
1954
|
}, {
|
|
1906
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1907
1955
|
url?: string | undefined;
|
|
1908
1956
|
apiKey?: string | undefined;
|
|
1957
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1909
1958
|
region?: string | undefined;
|
|
1910
1959
|
keepWarm?: boolean | undefined;
|
|
1911
1960
|
warmIntervalMs?: number | undefined;
|
|
@@ -1968,9 +2017,9 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1968
2017
|
healthCheckIntervalMs?: number | undefined;
|
|
1969
2018
|
} | undefined;
|
|
1970
2019
|
cloudServerless?: {
|
|
1971
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1972
2020
|
url?: string | undefined;
|
|
1973
2021
|
apiKey?: string | undefined;
|
|
2022
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
1974
2023
|
region?: string | undefined;
|
|
1975
2024
|
keepWarm?: boolean | undefined;
|
|
1976
2025
|
warmIntervalMs?: number | undefined;
|
|
@@ -1979,12 +2028,12 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
1979
2028
|
}>>;
|
|
1980
2029
|
}, "strip", z.ZodTypeAny, {
|
|
1981
2030
|
enabled: boolean;
|
|
1982
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
|
|
1983
2031
|
collection: string;
|
|
2032
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
1984
2033
|
embeddingModel: string;
|
|
1985
2034
|
github?: {
|
|
1986
|
-
path: string;
|
|
1987
2035
|
enabled: boolean;
|
|
2036
|
+
path: string;
|
|
1988
2037
|
branch: string;
|
|
1989
2038
|
repo?: string | undefined;
|
|
1990
2039
|
token?: string | undefined;
|
|
@@ -2025,9 +2074,11 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2025
2074
|
} | undefined;
|
|
2026
2075
|
}, {
|
|
2027
2076
|
enabled?: boolean | undefined;
|
|
2077
|
+
collection?: string | undefined;
|
|
2078
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
2028
2079
|
github?: {
|
|
2029
|
-
path?: string | undefined;
|
|
2030
2080
|
enabled?: boolean | undefined;
|
|
2081
|
+
path?: string | undefined;
|
|
2031
2082
|
repo?: string | undefined;
|
|
2032
2083
|
token?: string | undefined;
|
|
2033
2084
|
branch?: string | undefined;
|
|
@@ -2050,24 +2101,22 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2050
2101
|
healthCheckIntervalMs?: number | undefined;
|
|
2051
2102
|
} | undefined;
|
|
2052
2103
|
cloudServerless?: {
|
|
2053
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
2054
2104
|
url?: string | undefined;
|
|
2055
2105
|
apiKey?: string | undefined;
|
|
2106
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
2056
2107
|
region?: string | undefined;
|
|
2057
2108
|
keepWarm?: boolean | undefined;
|
|
2058
2109
|
warmIntervalMs?: number | undefined;
|
|
2059
2110
|
} | undefined;
|
|
2060
2111
|
fallbackToMemory?: boolean | undefined;
|
|
2061
2112
|
} | undefined;
|
|
2062
|
-
provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
|
|
2063
2113
|
endpoint?: string | undefined;
|
|
2064
|
-
collection?: string | undefined;
|
|
2065
2114
|
embeddingModel?: string | undefined;
|
|
2066
2115
|
qdrantCloud?: {
|
|
2067
2116
|
enabled?: boolean | undefined;
|
|
2068
|
-
collection?: string | undefined;
|
|
2069
2117
|
url?: string | undefined;
|
|
2070
2118
|
apiKey?: string | undefined;
|
|
2119
|
+
collection?: string | undefined;
|
|
2071
2120
|
} | undefined;
|
|
2072
2121
|
}>>;
|
|
2073
2122
|
patternRag: z.ZodOptional<z.ZodObject<{
|
|
@@ -2126,20 +2175,20 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2126
2175
|
skillsDir?: string | undefined;
|
|
2127
2176
|
} | undefined;
|
|
2128
2177
|
shortTerm?: {
|
|
2129
|
-
path: string;
|
|
2130
2178
|
enabled: boolean;
|
|
2179
|
+
path: string;
|
|
2131
2180
|
maxEntries: number;
|
|
2132
2181
|
webDatabase?: string | undefined;
|
|
2133
2182
|
forceDesktop?: boolean | undefined;
|
|
2134
2183
|
} | undefined;
|
|
2135
2184
|
longTerm?: {
|
|
2136
2185
|
enabled: boolean;
|
|
2137
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
|
|
2138
2186
|
collection: string;
|
|
2187
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
2139
2188
|
embeddingModel: string;
|
|
2140
2189
|
github?: {
|
|
2141
|
-
path: string;
|
|
2142
2190
|
enabled: boolean;
|
|
2191
|
+
path: string;
|
|
2143
2192
|
branch: string;
|
|
2144
2193
|
repo?: string | undefined;
|
|
2145
2194
|
token?: string | undefined;
|
|
@@ -2195,17 +2244,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2195
2244
|
maxBodyChars?: number | undefined;
|
|
2196
2245
|
} | undefined;
|
|
2197
2246
|
shortTerm?: {
|
|
2198
|
-
path?: string | undefined;
|
|
2199
2247
|
enabled?: boolean | undefined;
|
|
2248
|
+
path?: string | undefined;
|
|
2200
2249
|
webDatabase?: string | undefined;
|
|
2201
2250
|
maxEntries?: number | undefined;
|
|
2202
2251
|
forceDesktop?: boolean | undefined;
|
|
2203
2252
|
} | undefined;
|
|
2204
2253
|
longTerm?: {
|
|
2205
2254
|
enabled?: boolean | undefined;
|
|
2255
|
+
collection?: string | undefined;
|
|
2256
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
2206
2257
|
github?: {
|
|
2207
|
-
path?: string | undefined;
|
|
2208
2258
|
enabled?: boolean | undefined;
|
|
2259
|
+
path?: string | undefined;
|
|
2209
2260
|
repo?: string | undefined;
|
|
2210
2261
|
token?: string | undefined;
|
|
2211
2262
|
branch?: string | undefined;
|
|
@@ -2228,24 +2279,22 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2228
2279
|
healthCheckIntervalMs?: number | undefined;
|
|
2229
2280
|
} | undefined;
|
|
2230
2281
|
cloudServerless?: {
|
|
2231
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
2232
2282
|
url?: string | undefined;
|
|
2233
2283
|
apiKey?: string | undefined;
|
|
2284
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
2234
2285
|
region?: string | undefined;
|
|
2235
2286
|
keepWarm?: boolean | undefined;
|
|
2236
2287
|
warmIntervalMs?: number | undefined;
|
|
2237
2288
|
} | undefined;
|
|
2238
2289
|
fallbackToMemory?: boolean | undefined;
|
|
2239
2290
|
} | undefined;
|
|
2240
|
-
provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
|
|
2241
2291
|
endpoint?: string | undefined;
|
|
2242
|
-
collection?: string | undefined;
|
|
2243
2292
|
embeddingModel?: string | undefined;
|
|
2244
2293
|
qdrantCloud?: {
|
|
2245
2294
|
enabled?: boolean | undefined;
|
|
2246
|
-
collection?: string | undefined;
|
|
2247
2295
|
url?: string | undefined;
|
|
2248
2296
|
apiKey?: string | undefined;
|
|
2297
|
+
collection?: string | undefined;
|
|
2249
2298
|
} | undefined;
|
|
2250
2299
|
} | undefined;
|
|
2251
2300
|
}>>;
|
|
@@ -2274,13 +2323,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2274
2323
|
}, "strip", z.ZodTypeAny, {
|
|
2275
2324
|
name: string;
|
|
2276
2325
|
model: string;
|
|
2277
|
-
description?: string | undefined;
|
|
2278
2326
|
template?: string | undefined;
|
|
2327
|
+
description?: string | undefined;
|
|
2279
2328
|
tools?: string | string[] | undefined;
|
|
2280
2329
|
}, {
|
|
2281
2330
|
name: string;
|
|
2282
|
-
description?: string | undefined;
|
|
2283
2331
|
template?: string | undefined;
|
|
2332
|
+
description?: string | undefined;
|
|
2284
2333
|
model?: string | undefined;
|
|
2285
2334
|
tools?: string | string[] | undefined;
|
|
2286
2335
|
}>, "many">>;
|
|
@@ -2291,13 +2340,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2291
2340
|
argumentHint: z.ZodOptional<z.ZodString>;
|
|
2292
2341
|
}, "strip", z.ZodTypeAny, {
|
|
2293
2342
|
name: string;
|
|
2294
|
-
description?: string | undefined;
|
|
2295
2343
|
template?: string | undefined;
|
|
2344
|
+
description?: string | undefined;
|
|
2296
2345
|
argumentHint?: string | undefined;
|
|
2297
2346
|
}, {
|
|
2298
2347
|
name: string;
|
|
2299
|
-
description?: string | undefined;
|
|
2300
2348
|
template?: string | undefined;
|
|
2349
|
+
description?: string | undefined;
|
|
2301
2350
|
argumentHint?: string | undefined;
|
|
2302
2351
|
}>, "many">>;
|
|
2303
2352
|
template: z.ZodOptional<z.ZodObject<{
|
|
@@ -2445,14 +2494,14 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2445
2494
|
workflow: z.ZodDefault<z.ZodNumber>;
|
|
2446
2495
|
deploy: z.ZodDefault<z.ZodNumber>;
|
|
2447
2496
|
}, "strip", z.ZodTypeAny, {
|
|
2448
|
-
commit: number;
|
|
2449
2497
|
push: number;
|
|
2498
|
+
commit: number;
|
|
2450
2499
|
merge: number;
|
|
2451
2500
|
workflow: number;
|
|
2452
2501
|
deploy: number;
|
|
2453
2502
|
}, {
|
|
2454
|
-
commit?: number | undefined;
|
|
2455
2503
|
push?: number | undefined;
|
|
2504
|
+
commit?: number | undefined;
|
|
2456
2505
|
merge?: number | undefined;
|
|
2457
2506
|
workflow?: number | undefined;
|
|
2458
2507
|
deploy?: number | undefined;
|
|
@@ -2483,8 +2532,8 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2483
2532
|
}, "strip", z.ZodTypeAny, {
|
|
2484
2533
|
enabled: boolean;
|
|
2485
2534
|
batchWindows?: {
|
|
2486
|
-
commit: number;
|
|
2487
2535
|
push: number;
|
|
2536
|
+
commit: number;
|
|
2488
2537
|
merge: number;
|
|
2489
2538
|
workflow: number;
|
|
2490
2539
|
deploy: number;
|
|
@@ -2499,14 +2548,14 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2499
2548
|
prewarmServices: string[];
|
|
2500
2549
|
} | undefined;
|
|
2501
2550
|
}, {
|
|
2551
|
+
enabled?: boolean | undefined;
|
|
2502
2552
|
batchWindows?: {
|
|
2503
|
-
commit?: number | undefined;
|
|
2504
2553
|
push?: number | undefined;
|
|
2554
|
+
commit?: number | undefined;
|
|
2505
2555
|
merge?: number | undefined;
|
|
2506
2556
|
workflow?: number | undefined;
|
|
2507
2557
|
deploy?: number | undefined;
|
|
2508
2558
|
} | undefined;
|
|
2509
|
-
enabled?: boolean | undefined;
|
|
2510
2559
|
parallelExecution?: {
|
|
2511
2560
|
enabled?: boolean | undefined;
|
|
2512
2561
|
maxParallelDroids?: number | undefined;
|
|
@@ -2530,21 +2579,23 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2530
2579
|
costPer1MInput: z.ZodOptional<z.ZodNumber>;
|
|
2531
2580
|
costPer1MOutput: z.ZodOptional<z.ZodNumber>;
|
|
2532
2581
|
capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
2582
|
+
modelContextBudget: z.ZodOptional<z.ZodNumber>;
|
|
2533
2583
|
}, "strip", z.ZodTypeAny, {
|
|
2534
|
-
|
|
2584
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
2535
2585
|
name: string;
|
|
2536
|
-
provider: "ollama" | "openai" | "custom" | "anthropic" | "deepseek" | "zhipu";
|
|
2537
2586
|
maxContextTokens: number;
|
|
2587
|
+
id: string;
|
|
2538
2588
|
apiModel: string;
|
|
2539
2589
|
capabilities: string[];
|
|
2540
2590
|
endpoint?: string | undefined;
|
|
2541
2591
|
apiKeyEnvVar?: string | undefined;
|
|
2542
2592
|
costPer1MInput?: number | undefined;
|
|
2543
2593
|
costPer1MOutput?: number | undefined;
|
|
2594
|
+
modelContextBudget?: number | undefined;
|
|
2544
2595
|
}, {
|
|
2545
|
-
|
|
2596
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
2546
2597
|
name: string;
|
|
2547
|
-
|
|
2598
|
+
id: string;
|
|
2548
2599
|
apiModel: string;
|
|
2549
2600
|
endpoint?: string | undefined;
|
|
2550
2601
|
maxContextTokens?: number | undefined;
|
|
@@ -2552,6 +2603,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2552
2603
|
costPer1MInput?: number | undefined;
|
|
2553
2604
|
costPer1MOutput?: number | undefined;
|
|
2554
2605
|
capabilities?: string[] | undefined;
|
|
2606
|
+
modelContextBudget?: number | undefined;
|
|
2555
2607
|
}>]>, "many">>;
|
|
2556
2608
|
roles: z.ZodOptional<z.ZodObject<{
|
|
2557
2609
|
planner: z.ZodDefault<z.ZodString>;
|
|
@@ -2576,19 +2628,18 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2576
2628
|
targetRole: z.ZodEnum<["planner", "executor", "reviewer", "fallback"]>;
|
|
2577
2629
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
2578
2630
|
}, "strip", z.ZodTypeAny, {
|
|
2579
|
-
priority: number;
|
|
2580
2631
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
2632
|
+
priority: number;
|
|
2581
2633
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
2582
2634
|
keywords?: string[] | undefined;
|
|
2583
|
-
taskType?: "
|
|
2635
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
2584
2636
|
}, {
|
|
2585
2637
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
2586
|
-
priority?: number | undefined;
|
|
2587
2638
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
2588
2639
|
keywords?: string[] | undefined;
|
|
2589
|
-
taskType?: "
|
|
2640
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
2641
|
+
priority?: number | undefined;
|
|
2590
2642
|
}>, "many">>;
|
|
2591
|
-
routingStrategy: z.ZodDefault<z.ZodEnum<["cost-optimized", "performance-first", "balanced", "adaptive"]>>;
|
|
2592
2643
|
costOptimization: z.ZodOptional<z.ZodObject<{
|
|
2593
2644
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
2594
2645
|
targetReduction: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2605,6 +2656,17 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2605
2656
|
maxPerformanceDegradation?: number | undefined;
|
|
2606
2657
|
fallbackThreshold?: number | undefined;
|
|
2607
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"]>>;
|
|
2608
2670
|
plannerSettings: z.ZodOptional<z.ZodObject<{
|
|
2609
2671
|
complexityThreshold: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
2610
2672
|
maxPlanningTokens: z.ZodDefault<z.ZodNumber>;
|
|
@@ -2634,24 +2696,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2634
2696
|
}, "strip", z.ZodTypeAny, {
|
|
2635
2697
|
enabled: boolean;
|
|
2636
2698
|
models: (string | {
|
|
2637
|
-
|
|
2699
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
2638
2700
|
name: string;
|
|
2639
|
-
provider: "ollama" | "openai" | "custom" | "anthropic" | "deepseek" | "zhipu";
|
|
2640
2701
|
maxContextTokens: number;
|
|
2702
|
+
id: string;
|
|
2641
2703
|
apiModel: string;
|
|
2642
2704
|
capabilities: string[];
|
|
2643
2705
|
endpoint?: string | undefined;
|
|
2644
2706
|
apiKeyEnvVar?: string | undefined;
|
|
2645
2707
|
costPer1MInput?: number | undefined;
|
|
2646
2708
|
costPer1MOutput?: number | undefined;
|
|
2709
|
+
modelContextBudget?: number | undefined;
|
|
2647
2710
|
})[];
|
|
2648
2711
|
routingStrategy: "cost-optimized" | "performance-first" | "balanced" | "adaptive";
|
|
2649
|
-
costOptimization?: {
|
|
2650
|
-
enabled: boolean;
|
|
2651
|
-
targetReduction: number;
|
|
2652
|
-
maxPerformanceDegradation: number;
|
|
2653
|
-
fallbackThreshold: number;
|
|
2654
|
-
} | undefined;
|
|
2655
2712
|
roles?: {
|
|
2656
2713
|
planner: string;
|
|
2657
2714
|
executor: string;
|
|
@@ -2659,12 +2716,22 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2659
2716
|
reviewer?: string | undefined;
|
|
2660
2717
|
} | undefined;
|
|
2661
2718
|
routing?: {
|
|
2662
|
-
priority: number;
|
|
2663
2719
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
2720
|
+
priority: number;
|
|
2664
2721
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
2665
2722
|
keywords?: string[] | undefined;
|
|
2666
|
-
taskType?: "
|
|
2723
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
2667
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;
|
|
2668
2735
|
plannerSettings?: {
|
|
2669
2736
|
complexityThreshold: "low" | "medium" | "high";
|
|
2670
2737
|
maxPlanningTokens: number;
|
|
@@ -2677,16 +2744,10 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2677
2744
|
} | undefined;
|
|
2678
2745
|
}, {
|
|
2679
2746
|
enabled?: boolean | undefined;
|
|
2680
|
-
costOptimization?: {
|
|
2681
|
-
enabled?: boolean | undefined;
|
|
2682
|
-
targetReduction?: number | undefined;
|
|
2683
|
-
maxPerformanceDegradation?: number | undefined;
|
|
2684
|
-
fallbackThreshold?: number | undefined;
|
|
2685
|
-
} | undefined;
|
|
2686
2747
|
models?: (string | {
|
|
2687
|
-
|
|
2748
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
2688
2749
|
name: string;
|
|
2689
|
-
|
|
2750
|
+
id: string;
|
|
2690
2751
|
apiModel: string;
|
|
2691
2752
|
endpoint?: string | undefined;
|
|
2692
2753
|
maxContextTokens?: number | undefined;
|
|
@@ -2694,6 +2755,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2694
2755
|
costPer1MInput?: number | undefined;
|
|
2695
2756
|
costPer1MOutput?: number | undefined;
|
|
2696
2757
|
capabilities?: string[] | undefined;
|
|
2758
|
+
modelContextBudget?: number | undefined;
|
|
2697
2759
|
})[] | undefined;
|
|
2698
2760
|
roles?: {
|
|
2699
2761
|
planner?: string | undefined;
|
|
@@ -2703,11 +2765,21 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2703
2765
|
} | undefined;
|
|
2704
2766
|
routing?: {
|
|
2705
2767
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
2706
|
-
priority?: number | undefined;
|
|
2707
2768
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
2708
2769
|
keywords?: string[] | undefined;
|
|
2709
|
-
taskType?: "
|
|
2770
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
2771
|
+
priority?: number | undefined;
|
|
2710
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;
|
|
2711
2783
|
routingStrategy?: "cost-optimized" | "performance-first" | "balanced" | "adaptive" | undefined;
|
|
2712
2784
|
plannerSettings?: {
|
|
2713
2785
|
complexityThreshold?: "low" | "medium" | "high" | undefined;
|
|
@@ -2797,7 +2869,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2797
2869
|
cwdInjection: boolean;
|
|
2798
2870
|
softBudget: number;
|
|
2799
2871
|
hardBudget: number;
|
|
2800
|
-
toolChoiceForce: "
|
|
2872
|
+
toolChoiceForce: "auto" | "none" | "required";
|
|
2801
2873
|
}, {
|
|
2802
2874
|
domainHints?: boolean | undefined;
|
|
2803
2875
|
prependNotReplaceLoopBreaker?: boolean | undefined;
|
|
@@ -2818,7 +2890,17 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2818
2890
|
cwdInjection?: boolean | undefined;
|
|
2819
2891
|
softBudget?: number | undefined;
|
|
2820
2892
|
hardBudget?: number | undefined;
|
|
2821
|
-
toolChoiceForce?: "
|
|
2893
|
+
toolChoiceForce?: "auto" | "none" | "required" | undefined;
|
|
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;
|
|
2822
2904
|
}>>;
|
|
2823
2905
|
}, "strip", z.ZodTypeAny, {
|
|
2824
2906
|
version: string;
|
|
@@ -2827,6 +2909,38 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2827
2909
|
defaultBranch: string;
|
|
2828
2910
|
description?: string | undefined;
|
|
2829
2911
|
};
|
|
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;
|
|
2830
2944
|
$schema?: string | undefined;
|
|
2831
2945
|
platforms?: {
|
|
2832
2946
|
claudeCode?: {
|
|
@@ -2857,6 +2971,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2857
2971
|
sessionMax?: number | undefined;
|
|
2858
2972
|
patternRag?: boolean | undefined;
|
|
2859
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;
|
|
2860
2981
|
} | undefined;
|
|
2861
2982
|
memory?: {
|
|
2862
2983
|
patternRag?: {
|
|
@@ -2874,20 +2995,20 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2874
2995
|
skillsDir?: string | undefined;
|
|
2875
2996
|
} | undefined;
|
|
2876
2997
|
shortTerm?: {
|
|
2877
|
-
path: string;
|
|
2878
2998
|
enabled: boolean;
|
|
2999
|
+
path: string;
|
|
2879
3000
|
maxEntries: number;
|
|
2880
3001
|
webDatabase?: string | undefined;
|
|
2881
3002
|
forceDesktop?: boolean | undefined;
|
|
2882
3003
|
} | undefined;
|
|
2883
3004
|
longTerm?: {
|
|
2884
3005
|
enabled: boolean;
|
|
2885
|
-
provider: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none";
|
|
2886
3006
|
collection: string;
|
|
3007
|
+
provider: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none";
|
|
2887
3008
|
embeddingModel: string;
|
|
2888
3009
|
github?: {
|
|
2889
|
-
path: string;
|
|
2890
3010
|
enabled: boolean;
|
|
3011
|
+
path: string;
|
|
2891
3012
|
branch: string;
|
|
2892
3013
|
repo?: string | undefined;
|
|
2893
3014
|
token?: string | undefined;
|
|
@@ -2934,56 +3055,24 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
2934
3055
|
branchPrefix: string;
|
|
2935
3056
|
autoCleanup: boolean;
|
|
2936
3057
|
} | undefined;
|
|
2937
|
-
template?: {
|
|
2938
|
-
extends: string;
|
|
2939
|
-
sections?: {
|
|
2940
|
-
memorySystem: boolean;
|
|
2941
|
-
browserUsage: boolean;
|
|
2942
|
-
decisionLoop: boolean;
|
|
2943
|
-
worktreeWorkflow: boolean;
|
|
2944
|
-
troubleshooting: boolean;
|
|
2945
|
-
augmentedCapabilities: boolean;
|
|
2946
|
-
pipelineOnly: boolean;
|
|
2947
|
-
benchmark: boolean;
|
|
2948
|
-
} | undefined;
|
|
2949
|
-
} | undefined;
|
|
2950
3058
|
droids?: {
|
|
2951
3059
|
name: string;
|
|
2952
3060
|
model: string;
|
|
2953
|
-
description?: string | undefined;
|
|
2954
3061
|
template?: string | undefined;
|
|
3062
|
+
description?: string | undefined;
|
|
2955
3063
|
tools?: string | string[] | undefined;
|
|
2956
3064
|
}[] | undefined;
|
|
2957
3065
|
commands?: {
|
|
2958
3066
|
name: string;
|
|
2959
|
-
description?: string | undefined;
|
|
2960
3067
|
template?: string | undefined;
|
|
3068
|
+
description?: string | undefined;
|
|
2961
3069
|
argumentHint?: string | undefined;
|
|
2962
3070
|
}[] | undefined;
|
|
2963
|
-
costOptimization?: {
|
|
2964
|
-
enabled: boolean;
|
|
2965
|
-
tokenBudget?: {
|
|
2966
|
-
maxTemplateTokens: number;
|
|
2967
|
-
maxMemoryQueryTokens: number;
|
|
2968
|
-
maxContextTokens: number;
|
|
2969
|
-
warningThreshold: number;
|
|
2970
|
-
} | undefined;
|
|
2971
|
-
embeddingBatching?: {
|
|
2972
|
-
enabled: boolean;
|
|
2973
|
-
batchSize: number;
|
|
2974
|
-
maxDelayMs: number;
|
|
2975
|
-
} | undefined;
|
|
2976
|
-
llmCallReduction?: {
|
|
2977
|
-
cacheResponses: boolean;
|
|
2978
|
-
cacheTtlMs: number;
|
|
2979
|
-
deduplicateQueries: boolean;
|
|
2980
|
-
} | undefined;
|
|
2981
|
-
} | undefined;
|
|
2982
3071
|
timeOptimization?: {
|
|
2983
3072
|
enabled: boolean;
|
|
2984
3073
|
batchWindows?: {
|
|
2985
|
-
commit: number;
|
|
2986
3074
|
push: number;
|
|
3075
|
+
commit: number;
|
|
2987
3076
|
merge: number;
|
|
2988
3077
|
workflow: number;
|
|
2989
3078
|
deploy: number;
|
|
@@ -3001,24 +3090,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3001
3090
|
multiModel?: {
|
|
3002
3091
|
enabled: boolean;
|
|
3003
3092
|
models: (string | {
|
|
3004
|
-
|
|
3093
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
3005
3094
|
name: string;
|
|
3006
|
-
provider: "ollama" | "openai" | "custom" | "anthropic" | "deepseek" | "zhipu";
|
|
3007
3095
|
maxContextTokens: number;
|
|
3096
|
+
id: string;
|
|
3008
3097
|
apiModel: string;
|
|
3009
3098
|
capabilities: string[];
|
|
3010
3099
|
endpoint?: string | undefined;
|
|
3011
3100
|
apiKeyEnvVar?: string | undefined;
|
|
3012
3101
|
costPer1MInput?: number | undefined;
|
|
3013
3102
|
costPer1MOutput?: number | undefined;
|
|
3103
|
+
modelContextBudget?: number | undefined;
|
|
3014
3104
|
})[];
|
|
3015
3105
|
routingStrategy: "cost-optimized" | "performance-first" | "balanced" | "adaptive";
|
|
3016
|
-
costOptimization?: {
|
|
3017
|
-
enabled: boolean;
|
|
3018
|
-
targetReduction: number;
|
|
3019
|
-
maxPerformanceDegradation: number;
|
|
3020
|
-
fallbackThreshold: number;
|
|
3021
|
-
} | undefined;
|
|
3022
3106
|
roles?: {
|
|
3023
3107
|
planner: string;
|
|
3024
3108
|
executor: string;
|
|
@@ -3026,12 +3110,22 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3026
3110
|
reviewer?: string | undefined;
|
|
3027
3111
|
} | undefined;
|
|
3028
3112
|
routing?: {
|
|
3029
|
-
priority: number;
|
|
3030
3113
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
3114
|
+
priority: number;
|
|
3031
3115
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
3032
3116
|
keywords?: string[] | undefined;
|
|
3033
|
-
taskType?: "
|
|
3117
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
3034
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;
|
|
3035
3129
|
plannerSettings?: {
|
|
3036
3130
|
complexityThreshold: "low" | "medium" | "high";
|
|
3037
3131
|
maxPlanningTokens: number;
|
|
@@ -3063,7 +3157,11 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3063
3157
|
cwdInjection: boolean;
|
|
3064
3158
|
softBudget: number;
|
|
3065
3159
|
hardBudget: number;
|
|
3066
|
-
toolChoiceForce: "
|
|
3160
|
+
toolChoiceForce: "auto" | "none" | "required";
|
|
3161
|
+
} | undefined;
|
|
3162
|
+
patternRL?: {
|
|
3163
|
+
enabled: boolean;
|
|
3164
|
+
dbPath: string;
|
|
3067
3165
|
} | undefined;
|
|
3068
3166
|
}, {
|
|
3069
3167
|
project: {
|
|
@@ -3071,6 +3169,38 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3071
3169
|
description?: string | undefined;
|
|
3072
3170
|
defaultBranch?: string | undefined;
|
|
3073
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;
|
|
3074
3204
|
$schema?: string | undefined;
|
|
3075
3205
|
version?: string | undefined;
|
|
3076
3206
|
platforms?: {
|
|
@@ -3102,6 +3232,13 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3102
3232
|
sessionMax?: number | undefined;
|
|
3103
3233
|
patternRag?: boolean | undefined;
|
|
3104
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;
|
|
3105
3242
|
} | undefined;
|
|
3106
3243
|
memory?: {
|
|
3107
3244
|
patternRag?: {
|
|
@@ -3119,17 +3256,19 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3119
3256
|
maxBodyChars?: number | undefined;
|
|
3120
3257
|
} | undefined;
|
|
3121
3258
|
shortTerm?: {
|
|
3122
|
-
path?: string | undefined;
|
|
3123
3259
|
enabled?: boolean | undefined;
|
|
3260
|
+
path?: string | undefined;
|
|
3124
3261
|
webDatabase?: string | undefined;
|
|
3125
3262
|
maxEntries?: number | undefined;
|
|
3126
3263
|
forceDesktop?: boolean | undefined;
|
|
3127
3264
|
} | undefined;
|
|
3128
3265
|
longTerm?: {
|
|
3129
3266
|
enabled?: boolean | undefined;
|
|
3267
|
+
collection?: string | undefined;
|
|
3268
|
+
provider?: "qdrant-cloud" | "qdrant" | "chroma" | "pinecone" | "github" | "serverless" | "none" | undefined;
|
|
3130
3269
|
github?: {
|
|
3131
|
-
path?: string | undefined;
|
|
3132
3270
|
enabled?: boolean | undefined;
|
|
3271
|
+
path?: string | undefined;
|
|
3133
3272
|
repo?: string | undefined;
|
|
3134
3273
|
token?: string | undefined;
|
|
3135
3274
|
branch?: string | undefined;
|
|
@@ -3152,24 +3291,22 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3152
3291
|
healthCheckIntervalMs?: number | undefined;
|
|
3153
3292
|
} | undefined;
|
|
3154
3293
|
cloudServerless?: {
|
|
3155
|
-
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
3156
3294
|
url?: string | undefined;
|
|
3157
3295
|
apiKey?: string | undefined;
|
|
3296
|
+
provider?: "qdrant-cloud" | "aws-lambda" | "cloudflare-workers" | undefined;
|
|
3158
3297
|
region?: string | undefined;
|
|
3159
3298
|
keepWarm?: boolean | undefined;
|
|
3160
3299
|
warmIntervalMs?: number | undefined;
|
|
3161
3300
|
} | undefined;
|
|
3162
3301
|
fallbackToMemory?: boolean | undefined;
|
|
3163
3302
|
} | undefined;
|
|
3164
|
-
provider?: "qdrant" | "chroma" | "pinecone" | "github" | "qdrant-cloud" | "serverless" | "none" | undefined;
|
|
3165
3303
|
endpoint?: string | undefined;
|
|
3166
|
-
collection?: string | undefined;
|
|
3167
3304
|
embeddingModel?: string | undefined;
|
|
3168
3305
|
qdrantCloud?: {
|
|
3169
3306
|
enabled?: boolean | undefined;
|
|
3170
|
-
collection?: string | undefined;
|
|
3171
3307
|
url?: string | undefined;
|
|
3172
3308
|
apiKey?: string | undefined;
|
|
3309
|
+
collection?: string | undefined;
|
|
3173
3310
|
} | undefined;
|
|
3174
3311
|
} | undefined;
|
|
3175
3312
|
} | undefined;
|
|
@@ -3179,60 +3316,28 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3179
3316
|
branchPrefix?: string | undefined;
|
|
3180
3317
|
autoCleanup?: boolean | undefined;
|
|
3181
3318
|
} | undefined;
|
|
3182
|
-
template?: {
|
|
3183
|
-
extends?: string | undefined;
|
|
3184
|
-
sections?: {
|
|
3185
|
-
memorySystem?: boolean | undefined;
|
|
3186
|
-
browserUsage?: boolean | undefined;
|
|
3187
|
-
decisionLoop?: boolean | undefined;
|
|
3188
|
-
worktreeWorkflow?: boolean | undefined;
|
|
3189
|
-
troubleshooting?: boolean | undefined;
|
|
3190
|
-
augmentedCapabilities?: boolean | undefined;
|
|
3191
|
-
pipelineOnly?: boolean | undefined;
|
|
3192
|
-
benchmark?: boolean | undefined;
|
|
3193
|
-
} | undefined;
|
|
3194
|
-
} | undefined;
|
|
3195
3319
|
droids?: {
|
|
3196
3320
|
name: string;
|
|
3197
|
-
description?: string | undefined;
|
|
3198
3321
|
template?: string | undefined;
|
|
3322
|
+
description?: string | undefined;
|
|
3199
3323
|
model?: string | undefined;
|
|
3200
3324
|
tools?: string | string[] | undefined;
|
|
3201
3325
|
}[] | undefined;
|
|
3202
3326
|
commands?: {
|
|
3203
3327
|
name: string;
|
|
3204
|
-
description?: string | undefined;
|
|
3205
3328
|
template?: string | undefined;
|
|
3329
|
+
description?: string | undefined;
|
|
3206
3330
|
argumentHint?: string | undefined;
|
|
3207
3331
|
}[] | undefined;
|
|
3208
|
-
costOptimization?: {
|
|
3209
|
-
enabled?: boolean | undefined;
|
|
3210
|
-
tokenBudget?: {
|
|
3211
|
-
maxTemplateTokens?: number | undefined;
|
|
3212
|
-
maxMemoryQueryTokens?: number | undefined;
|
|
3213
|
-
maxContextTokens?: number | undefined;
|
|
3214
|
-
warningThreshold?: number | undefined;
|
|
3215
|
-
} | undefined;
|
|
3216
|
-
embeddingBatching?: {
|
|
3217
|
-
enabled?: boolean | undefined;
|
|
3218
|
-
batchSize?: number | undefined;
|
|
3219
|
-
maxDelayMs?: number | undefined;
|
|
3220
|
-
} | undefined;
|
|
3221
|
-
llmCallReduction?: {
|
|
3222
|
-
cacheResponses?: boolean | undefined;
|
|
3223
|
-
cacheTtlMs?: number | undefined;
|
|
3224
|
-
deduplicateQueries?: boolean | undefined;
|
|
3225
|
-
} | undefined;
|
|
3226
|
-
} | undefined;
|
|
3227
3332
|
timeOptimization?: {
|
|
3333
|
+
enabled?: boolean | undefined;
|
|
3228
3334
|
batchWindows?: {
|
|
3229
|
-
commit?: number | undefined;
|
|
3230
3335
|
push?: number | undefined;
|
|
3336
|
+
commit?: number | undefined;
|
|
3231
3337
|
merge?: number | undefined;
|
|
3232
3338
|
workflow?: number | undefined;
|
|
3233
3339
|
deploy?: number | undefined;
|
|
3234
3340
|
} | undefined;
|
|
3235
|
-
enabled?: boolean | undefined;
|
|
3236
3341
|
parallelExecution?: {
|
|
3237
3342
|
enabled?: boolean | undefined;
|
|
3238
3343
|
maxParallelDroids?: number | undefined;
|
|
@@ -3245,16 +3350,10 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3245
3350
|
} | undefined;
|
|
3246
3351
|
multiModel?: {
|
|
3247
3352
|
enabled?: boolean | undefined;
|
|
3248
|
-
costOptimization?: {
|
|
3249
|
-
enabled?: boolean | undefined;
|
|
3250
|
-
targetReduction?: number | undefined;
|
|
3251
|
-
maxPerformanceDegradation?: number | undefined;
|
|
3252
|
-
fallbackThreshold?: number | undefined;
|
|
3253
|
-
} | undefined;
|
|
3254
3353
|
models?: (string | {
|
|
3255
|
-
|
|
3354
|
+
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
3256
3355
|
name: string;
|
|
3257
|
-
|
|
3356
|
+
id: string;
|
|
3258
3357
|
apiModel: string;
|
|
3259
3358
|
endpoint?: string | undefined;
|
|
3260
3359
|
maxContextTokens?: number | undefined;
|
|
@@ -3262,6 +3361,7 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3262
3361
|
costPer1MInput?: number | undefined;
|
|
3263
3362
|
costPer1MOutput?: number | undefined;
|
|
3264
3363
|
capabilities?: string[] | undefined;
|
|
3364
|
+
modelContextBudget?: number | undefined;
|
|
3265
3365
|
})[] | undefined;
|
|
3266
3366
|
roles?: {
|
|
3267
3367
|
planner?: string | undefined;
|
|
@@ -3271,11 +3371,21 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3271
3371
|
} | undefined;
|
|
3272
3372
|
routing?: {
|
|
3273
3373
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
3274
|
-
priority?: number | undefined;
|
|
3275
3374
|
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
3276
3375
|
keywords?: string[] | undefined;
|
|
3277
|
-
taskType?: "
|
|
3376
|
+
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
3377
|
+
priority?: number | undefined;
|
|
3278
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;
|
|
3279
3389
|
routingStrategy?: "cost-optimized" | "performance-first" | "balanced" | "adaptive" | undefined;
|
|
3280
3390
|
plannerSettings?: {
|
|
3281
3391
|
complexityThreshold?: "low" | "medium" | "high" | undefined;
|
|
@@ -3308,12 +3418,16 @@ export declare const AgentContextConfigSchema: z.ZodObject<{
|
|
|
3308
3418
|
cwdInjection?: boolean | undefined;
|
|
3309
3419
|
softBudget?: number | undefined;
|
|
3310
3420
|
hardBudget?: number | undefined;
|
|
3311
|
-
toolChoiceForce?: "
|
|
3421
|
+
toolChoiceForce?: "auto" | "none" | "required" | undefined;
|
|
3422
|
+
} | undefined;
|
|
3423
|
+
patternRL?: {
|
|
3424
|
+
enabled?: boolean | undefined;
|
|
3425
|
+
dbPath?: string | undefined;
|
|
3312
3426
|
} | undefined;
|
|
3313
3427
|
}>;
|
|
3314
3428
|
export type AgentContextConfig = z.infer<typeof AgentContextConfigSchema>;
|
|
3315
3429
|
export type MultiModelConfig = z.infer<typeof MultiModelSchema>;
|
|
3316
|
-
export type Platform = 'claudeCode' | 'factory' | 'vscode' | 'opencode' | 'claudeWeb' | 'factoryWeb';
|
|
3430
|
+
export type Platform = 'claudeCode' | 'factory' | 'vscode' | 'opencode' | 'codex' | 'claudeWeb' | 'factoryWeb';
|
|
3317
3431
|
export type Droid = z.infer<typeof DroidSchema>;
|
|
3318
3432
|
export type Command = z.infer<typeof CommandSchema>;
|
|
3319
3433
|
export type QdrantServerlessConfig = z.infer<typeof QdrantServerlessSchema>;
|