@miller-tech/uap 1.5.6 → 1.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.tsbuildinfo +1 -1
- package/dist/benchmarks/benchmark.d.ts +53 -53
- package/dist/coordination/droid-validator.d.ts +1 -1
- package/dist/models/types.d.ts +57 -57
- package/dist/policies/schemas/policy.d.ts +18 -18
- package/dist/tasks/types.d.ts +23 -23
- package/dist/types/config.d.ts +416 -416
- package/dist/types/coordination.d.ts +22 -22
- package/dist/uap-droids-strict.d.ts +1 -1
- package/package.json +3 -5
|
@@ -40,25 +40,25 @@ export declare const BenchmarkTaskSchema: z.ZodObject<{
|
|
|
40
40
|
name: string;
|
|
41
41
|
description: string;
|
|
42
42
|
id: string;
|
|
43
|
-
|
|
43
|
+
instruction: string;
|
|
44
|
+
difficulty: "easy" | "medium" | "hard";
|
|
45
|
+
category: "security" | "memory" | "coordination" | "code-quality" | "performance" | "testing" | "debugging";
|
|
44
46
|
verify: (...args: unknown[]) => Promise<{
|
|
45
47
|
success: boolean;
|
|
46
48
|
details?: Record<string, any> | undefined;
|
|
47
49
|
}>;
|
|
48
|
-
instruction: string;
|
|
49
|
-
difficulty: "medium" | "easy" | "hard";
|
|
50
50
|
estimatedMinutes?: number | undefined;
|
|
51
51
|
}, {
|
|
52
52
|
name: string;
|
|
53
53
|
description: string;
|
|
54
54
|
id: string;
|
|
55
|
-
|
|
55
|
+
instruction: string;
|
|
56
|
+
difficulty: "easy" | "medium" | "hard";
|
|
57
|
+
category: "security" | "memory" | "coordination" | "code-quality" | "performance" | "testing" | "debugging";
|
|
56
58
|
verify: (...args: unknown[]) => Promise<{
|
|
57
59
|
success: boolean;
|
|
58
60
|
details?: Record<string, any> | undefined;
|
|
59
61
|
}>;
|
|
60
|
-
instruction: string;
|
|
61
|
-
difficulty: "medium" | "easy" | "hard";
|
|
62
62
|
estimatedMinutes?: number | undefined;
|
|
63
63
|
}>;
|
|
64
64
|
export type BenchmarkTask = z.infer<typeof BenchmarkTaskSchema>;
|
|
@@ -75,26 +75,26 @@ export declare const AgentExecutionSchema: z.ZodObject<{
|
|
|
75
75
|
errors: z.ZodArray<z.ZodString, "many">;
|
|
76
76
|
}, "strip", z.ZodTypeAny, {
|
|
77
77
|
success: boolean;
|
|
78
|
-
errors: string[];
|
|
79
|
-
agent: string;
|
|
80
78
|
taskId: string;
|
|
81
|
-
|
|
79
|
+
agent: string;
|
|
82
80
|
startTime: number;
|
|
83
81
|
endTime: number;
|
|
82
|
+
durationMs: number;
|
|
84
83
|
attempts: number;
|
|
85
|
-
|
|
84
|
+
errors: string[];
|
|
86
85
|
memoryQueries?: number | undefined;
|
|
86
|
+
tokensUsed?: number | undefined;
|
|
87
87
|
}, {
|
|
88
88
|
success: boolean;
|
|
89
|
-
errors: string[];
|
|
90
|
-
agent: string;
|
|
91
89
|
taskId: string;
|
|
92
|
-
|
|
90
|
+
agent: string;
|
|
93
91
|
startTime: number;
|
|
94
92
|
endTime: number;
|
|
93
|
+
durationMs: number;
|
|
95
94
|
attempts: number;
|
|
96
|
-
|
|
95
|
+
errors: string[];
|
|
97
96
|
memoryQueries?: number | undefined;
|
|
97
|
+
tokensUsed?: number | undefined;
|
|
98
98
|
}>;
|
|
99
99
|
export type AgentExecution = z.infer<typeof AgentExecutionSchema>;
|
|
100
100
|
export declare const BenchmarkResultSchema: z.ZodObject<{
|
|
@@ -113,26 +113,26 @@ export declare const BenchmarkResultSchema: z.ZodObject<{
|
|
|
113
113
|
errors: z.ZodArray<z.ZodString, "many">;
|
|
114
114
|
}, "strip", z.ZodTypeAny, {
|
|
115
115
|
success: boolean;
|
|
116
|
-
errors: string[];
|
|
117
|
-
agent: string;
|
|
118
116
|
taskId: string;
|
|
119
|
-
|
|
117
|
+
agent: string;
|
|
120
118
|
startTime: number;
|
|
121
119
|
endTime: number;
|
|
120
|
+
durationMs: number;
|
|
122
121
|
attempts: number;
|
|
123
|
-
|
|
122
|
+
errors: string[];
|
|
124
123
|
memoryQueries?: number | undefined;
|
|
124
|
+
tokensUsed?: number | undefined;
|
|
125
125
|
}, {
|
|
126
126
|
success: boolean;
|
|
127
|
-
errors: string[];
|
|
128
|
-
agent: string;
|
|
129
127
|
taskId: string;
|
|
130
|
-
|
|
128
|
+
agent: string;
|
|
131
129
|
startTime: number;
|
|
132
130
|
endTime: number;
|
|
131
|
+
durationMs: number;
|
|
133
132
|
attempts: number;
|
|
134
|
-
|
|
133
|
+
errors: string[];
|
|
135
134
|
memoryQueries?: number | undefined;
|
|
135
|
+
tokensUsed?: number | undefined;
|
|
136
136
|
}>, "many">;
|
|
137
137
|
summary: z.ZodObject<{
|
|
138
138
|
uapSuccessRate: z.ZodNumber;
|
|
@@ -175,6 +175,19 @@ export declare const BenchmarkResultSchema: z.ZodObject<{
|
|
|
175
175
|
}>;
|
|
176
176
|
}, "strip", z.ZodTypeAny, {
|
|
177
177
|
taskId: string;
|
|
178
|
+
taskName: string;
|
|
179
|
+
results: {
|
|
180
|
+
success: boolean;
|
|
181
|
+
taskId: string;
|
|
182
|
+
agent: string;
|
|
183
|
+
startTime: number;
|
|
184
|
+
endTime: number;
|
|
185
|
+
durationMs: number;
|
|
186
|
+
attempts: number;
|
|
187
|
+
errors: string[];
|
|
188
|
+
memoryQueries?: number | undefined;
|
|
189
|
+
tokensUsed?: number | undefined;
|
|
190
|
+
}[];
|
|
178
191
|
summary: {
|
|
179
192
|
uapSuccessRate: number;
|
|
180
193
|
naiveSuccessRate: number;
|
|
@@ -186,21 +199,21 @@ export declare const BenchmarkResultSchema: z.ZodObject<{
|
|
|
186
199
|
speedup: number;
|
|
187
200
|
};
|
|
188
201
|
};
|
|
202
|
+
}, {
|
|
203
|
+
taskId: string;
|
|
189
204
|
taskName: string;
|
|
190
205
|
results: {
|
|
191
206
|
success: boolean;
|
|
192
|
-
errors: string[];
|
|
193
|
-
agent: string;
|
|
194
207
|
taskId: string;
|
|
195
|
-
|
|
208
|
+
agent: string;
|
|
196
209
|
startTime: number;
|
|
197
210
|
endTime: number;
|
|
211
|
+
durationMs: number;
|
|
198
212
|
attempts: number;
|
|
199
|
-
|
|
213
|
+
errors: string[];
|
|
200
214
|
memoryQueries?: number | undefined;
|
|
215
|
+
tokensUsed?: number | undefined;
|
|
201
216
|
}[];
|
|
202
|
-
}, {
|
|
203
|
-
taskId: string;
|
|
204
217
|
summary: {
|
|
205
218
|
uapSuccessRate: number;
|
|
206
219
|
naiveSuccessRate: number;
|
|
@@ -212,19 +225,6 @@ export declare const BenchmarkResultSchema: z.ZodObject<{
|
|
|
212
225
|
speedup: number;
|
|
213
226
|
};
|
|
214
227
|
};
|
|
215
|
-
taskName: string;
|
|
216
|
-
results: {
|
|
217
|
-
success: boolean;
|
|
218
|
-
errors: string[];
|
|
219
|
-
agent: string;
|
|
220
|
-
taskId: string;
|
|
221
|
-
durationMs: number;
|
|
222
|
-
startTime: number;
|
|
223
|
-
endTime: number;
|
|
224
|
-
attempts: number;
|
|
225
|
-
tokensUsed?: number | undefined;
|
|
226
|
-
memoryQueries?: number | undefined;
|
|
227
|
-
}[];
|
|
228
228
|
}>;
|
|
229
229
|
export type BenchmarkResult = z.infer<typeof BenchmarkResultSchema>;
|
|
230
230
|
export declare const OverallBenchmarkStatsSchema: z.ZodObject<{
|
|
@@ -241,26 +241,26 @@ export declare const OverallBenchmarkStatsSchema: z.ZodObject<{
|
|
|
241
241
|
uapSuccess: z.ZodNumber;
|
|
242
242
|
naiveSuccess: z.ZodNumber;
|
|
243
243
|
}, "strip", z.ZodTypeAny, {
|
|
244
|
-
count: number;
|
|
245
244
|
uapSuccess: number;
|
|
246
245
|
naiveSuccess: number;
|
|
247
|
-
}, {
|
|
248
246
|
count: number;
|
|
247
|
+
}, {
|
|
249
248
|
uapSuccess: number;
|
|
250
249
|
naiveSuccess: number;
|
|
250
|
+
count: number;
|
|
251
251
|
}>>;
|
|
252
252
|
byCategory: z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
253
253
|
count: z.ZodNumber;
|
|
254
254
|
uapSuccess: z.ZodNumber;
|
|
255
255
|
naiveSuccess: z.ZodNumber;
|
|
256
256
|
}, "strip", z.ZodTypeAny, {
|
|
257
|
-
count: number;
|
|
258
257
|
uapSuccess: number;
|
|
259
258
|
naiveSuccess: number;
|
|
260
|
-
}, {
|
|
261
259
|
count: number;
|
|
260
|
+
}, {
|
|
262
261
|
uapSuccess: number;
|
|
263
262
|
naiveSuccess: number;
|
|
263
|
+
count: number;
|
|
264
264
|
}>>;
|
|
265
265
|
}, "strip", z.ZodTypeAny, {
|
|
266
266
|
uapSuccessRate: number;
|
|
@@ -272,14 +272,14 @@ export declare const OverallBenchmarkStatsSchema: z.ZodObject<{
|
|
|
272
272
|
naiveSuccess: number;
|
|
273
273
|
overallSpeedup: number;
|
|
274
274
|
byDifficulty: Record<string, {
|
|
275
|
-
count: number;
|
|
276
275
|
uapSuccess: number;
|
|
277
276
|
naiveSuccess: number;
|
|
277
|
+
count: number;
|
|
278
278
|
}>;
|
|
279
279
|
byCategory: Record<string, {
|
|
280
|
-
count: number;
|
|
281
280
|
uapSuccess: number;
|
|
282
281
|
naiveSuccess: number;
|
|
282
|
+
count: number;
|
|
283
283
|
}>;
|
|
284
284
|
}, {
|
|
285
285
|
uapSuccessRate: number;
|
|
@@ -291,14 +291,14 @@ export declare const OverallBenchmarkStatsSchema: z.ZodObject<{
|
|
|
291
291
|
naiveSuccess: number;
|
|
292
292
|
overallSpeedup: number;
|
|
293
293
|
byDifficulty: Record<string, {
|
|
294
|
-
count: number;
|
|
295
294
|
uapSuccess: number;
|
|
296
295
|
naiveSuccess: number;
|
|
296
|
+
count: number;
|
|
297
297
|
}>;
|
|
298
298
|
byCategory: Record<string, {
|
|
299
|
-
count: number;
|
|
300
299
|
uapSuccess: number;
|
|
301
300
|
naiveSuccess: number;
|
|
301
|
+
count: number;
|
|
302
302
|
}>;
|
|
303
303
|
}>;
|
|
304
304
|
export type OverallBenchmarkStats = z.infer<typeof OverallBenchmarkStatsSchema>;
|
|
@@ -310,18 +310,18 @@ export declare const BenchmarkConfigSchema: z.ZodObject<{
|
|
|
310
310
|
verbose: z.ZodDefault<z.ZodBoolean>;
|
|
311
311
|
outputDir: z.ZodDefault<z.ZodString>;
|
|
312
312
|
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
agents: string[];
|
|
314
|
-
verbose: boolean;
|
|
315
313
|
maxAttempts: number;
|
|
316
314
|
timeoutMs: number;
|
|
315
|
+
agents: string[];
|
|
317
316
|
memoryEnabled: boolean;
|
|
317
|
+
verbose: boolean;
|
|
318
318
|
outputDir: string;
|
|
319
319
|
}, {
|
|
320
|
-
agents?: string[] | undefined;
|
|
321
|
-
verbose?: boolean | undefined;
|
|
322
320
|
maxAttempts?: number | undefined;
|
|
323
321
|
timeoutMs?: number | undefined;
|
|
322
|
+
agents?: string[] | undefined;
|
|
324
323
|
memoryEnabled?: boolean | undefined;
|
|
324
|
+
verbose?: boolean | undefined;
|
|
325
325
|
outputDir?: string | undefined;
|
|
326
326
|
}>;
|
|
327
327
|
export type BenchmarkConfig = z.infer<typeof BenchmarkConfigSchema>;
|
|
@@ -40,12 +40,12 @@ export declare const DroidFrontmatterSchema: z.ZodObject<{
|
|
|
40
40
|
}, {
|
|
41
41
|
name: string;
|
|
42
42
|
description: string;
|
|
43
|
-
model?: "inherit" | "dedicated" | undefined;
|
|
44
43
|
coordination?: {
|
|
45
44
|
channels?: string[] | undefined;
|
|
46
45
|
claims?: ("exclusive" | "shared")[] | undefined;
|
|
47
46
|
batches_deploy?: boolean | undefined;
|
|
48
47
|
} | undefined;
|
|
48
|
+
model?: "inherit" | "dedicated" | undefined;
|
|
49
49
|
}>;
|
|
50
50
|
export type DroidFrontmatter = z.infer<typeof DroidFrontmatterSchema>;
|
|
51
51
|
/**
|
package/dist/models/types.d.ts
CHANGED
|
@@ -25,28 +25,28 @@ export declare const ModelConfigSchemaModels: z.ZodObject<{
|
|
|
25
25
|
capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
26
26
|
modelContextBudget: z.ZodOptional<z.ZodNumber>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
29
28
|
name: string;
|
|
30
|
-
|
|
29
|
+
provider: "custom" | "anthropic" | "zhipu" | "openai" | "deepseek" | "ollama";
|
|
31
30
|
id: string;
|
|
32
|
-
apiModel: string;
|
|
33
31
|
capabilities: string[];
|
|
32
|
+
maxContextTokens: number;
|
|
33
|
+
apiModel: string;
|
|
34
34
|
endpoint?: string | undefined;
|
|
35
35
|
apiKeyEnvVar?: string | undefined;
|
|
36
36
|
costPer1MInput?: number | undefined;
|
|
37
37
|
costPer1MOutput?: number | undefined;
|
|
38
38
|
modelContextBudget?: number | undefined;
|
|
39
39
|
}, {
|
|
40
|
-
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
41
40
|
name: string;
|
|
41
|
+
provider: "custom" | "anthropic" | "zhipu" | "openai" | "deepseek" | "ollama";
|
|
42
42
|
id: string;
|
|
43
43
|
apiModel: string;
|
|
44
|
+
capabilities?: string[] | undefined;
|
|
44
45
|
endpoint?: string | undefined;
|
|
45
46
|
maxContextTokens?: number | undefined;
|
|
46
47
|
apiKeyEnvVar?: string | undefined;
|
|
47
48
|
costPer1MInput?: number | undefined;
|
|
48
49
|
costPer1MOutput?: number | undefined;
|
|
49
|
-
capabilities?: string[] | undefined;
|
|
50
50
|
modelContextBudget?: number | undefined;
|
|
51
51
|
}>;
|
|
52
52
|
export type ModelConfig = z.infer<typeof ModelConfigSchemaModels>;
|
|
@@ -64,15 +64,15 @@ export declare const RoleAssignmentSchema: z.ZodObject<{
|
|
|
64
64
|
maxTokensPerRequest: z.ZodOptional<z.ZodNumber>;
|
|
65
65
|
timeout: z.ZodDefault<z.ZodNumber>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
|
-
role: "planner" | "executor" | "reviewer" | "fallback";
|
|
68
|
-
modelId: string;
|
|
69
67
|
timeout: number;
|
|
68
|
+
modelId: string;
|
|
69
|
+
role: "planner" | "executor" | "reviewer" | "fallback";
|
|
70
70
|
maxTokensPerRequest?: number | undefined;
|
|
71
71
|
}, {
|
|
72
|
-
role: "planner" | "executor" | "reviewer" | "fallback";
|
|
73
72
|
modelId: string;
|
|
74
|
-
|
|
73
|
+
role: "planner" | "executor" | "reviewer" | "fallback";
|
|
75
74
|
timeout?: number | undefined;
|
|
75
|
+
maxTokensPerRequest?: number | undefined;
|
|
76
76
|
}>;
|
|
77
77
|
export type RoleAssignment = z.infer<typeof RoleAssignmentSchema>;
|
|
78
78
|
/**
|
|
@@ -85,17 +85,17 @@ export declare const RoutingRuleSchema: z.ZodObject<{
|
|
|
85
85
|
targetRole: z.ZodEnum<["planner", "executor", "reviewer", "fallback"]>;
|
|
86
86
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
87
87
|
}, "strip", z.ZodTypeAny, {
|
|
88
|
-
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
89
88
|
priority: number;
|
|
90
|
-
|
|
89
|
+
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
90
|
+
complexity?: "medium" | "low" | "high" | "critical" | undefined;
|
|
91
91
|
keywords?: string[] | undefined;
|
|
92
|
-
taskType?: "
|
|
92
|
+
taskType?: "documentation" | "coding" | "bug-fix" | "refactoring" | "review" | "planning" | undefined;
|
|
93
93
|
}, {
|
|
94
94
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
95
|
-
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
96
|
-
keywords?: string[] | undefined;
|
|
97
|
-
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
98
95
|
priority?: number | undefined;
|
|
96
|
+
complexity?: "medium" | "low" | "high" | "critical" | undefined;
|
|
97
|
+
keywords?: string[] | undefined;
|
|
98
|
+
taskType?: "documentation" | "coding" | "bug-fix" | "refactoring" | "review" | "planning" | undefined;
|
|
99
99
|
}>;
|
|
100
100
|
export type RoutingRule = z.infer<typeof RoutingRuleSchema>;
|
|
101
101
|
/**
|
|
@@ -116,28 +116,28 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
116
116
|
capabilities: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
117
117
|
modelContextBudget: z.ZodOptional<z.ZodNumber>;
|
|
118
118
|
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
120
119
|
name: string;
|
|
121
|
-
|
|
120
|
+
provider: "custom" | "anthropic" | "zhipu" | "openai" | "deepseek" | "ollama";
|
|
122
121
|
id: string;
|
|
123
|
-
apiModel: string;
|
|
124
122
|
capabilities: string[];
|
|
123
|
+
maxContextTokens: number;
|
|
124
|
+
apiModel: string;
|
|
125
125
|
endpoint?: string | undefined;
|
|
126
126
|
apiKeyEnvVar?: string | undefined;
|
|
127
127
|
costPer1MInput?: number | undefined;
|
|
128
128
|
costPer1MOutput?: number | undefined;
|
|
129
129
|
modelContextBudget?: number | undefined;
|
|
130
130
|
}, {
|
|
131
|
-
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
132
131
|
name: string;
|
|
132
|
+
provider: "custom" | "anthropic" | "zhipu" | "openai" | "deepseek" | "ollama";
|
|
133
133
|
id: string;
|
|
134
134
|
apiModel: string;
|
|
135
|
+
capabilities?: string[] | undefined;
|
|
135
136
|
endpoint?: string | undefined;
|
|
136
137
|
maxContextTokens?: number | undefined;
|
|
137
138
|
apiKeyEnvVar?: string | undefined;
|
|
138
139
|
costPer1MInput?: number | undefined;
|
|
139
140
|
costPer1MOutput?: number | undefined;
|
|
140
|
-
capabilities?: string[] | undefined;
|
|
141
141
|
modelContextBudget?: number | undefined;
|
|
142
142
|
}>]>, "many">>;
|
|
143
143
|
roles: z.ZodOptional<z.ZodObject<{
|
|
@@ -163,17 +163,17 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
163
163
|
targetRole: z.ZodEnum<["planner", "executor", "reviewer", "fallback"]>;
|
|
164
164
|
priority: z.ZodDefault<z.ZodNumber>;
|
|
165
165
|
}, "strip", z.ZodTypeAny, {
|
|
166
|
-
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
167
166
|
priority: number;
|
|
168
|
-
|
|
167
|
+
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
168
|
+
complexity?: "medium" | "low" | "high" | "critical" | undefined;
|
|
169
169
|
keywords?: string[] | undefined;
|
|
170
|
-
taskType?: "
|
|
170
|
+
taskType?: "documentation" | "coding" | "bug-fix" | "refactoring" | "review" | "planning" | undefined;
|
|
171
171
|
}, {
|
|
172
172
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
173
|
-
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
174
|
-
keywords?: string[] | undefined;
|
|
175
|
-
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
176
173
|
priority?: number | undefined;
|
|
174
|
+
complexity?: "medium" | "low" | "high" | "critical" | undefined;
|
|
175
|
+
keywords?: string[] | undefined;
|
|
176
|
+
taskType?: "documentation" | "coding" | "bug-fix" | "refactoring" | "review" | "planning" | undefined;
|
|
177
177
|
}>, "many">>;
|
|
178
178
|
costOptimization: z.ZodOptional<z.ZodObject<{
|
|
179
179
|
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -207,11 +207,11 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
207
207
|
maxPlanningTokens: z.ZodDefault<z.ZodNumber>;
|
|
208
208
|
enableDecomposition: z.ZodDefault<z.ZodBoolean>;
|
|
209
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
complexityThreshold: "
|
|
210
|
+
complexityThreshold: "medium" | "low" | "high";
|
|
211
211
|
maxPlanningTokens: number;
|
|
212
212
|
enableDecomposition: boolean;
|
|
213
213
|
}, {
|
|
214
|
-
complexityThreshold?: "
|
|
214
|
+
complexityThreshold?: "medium" | "low" | "high" | undefined;
|
|
215
215
|
maxPlanningTokens?: number | undefined;
|
|
216
216
|
enableDecomposition?: boolean | undefined;
|
|
217
217
|
}>>;
|
|
@@ -231,19 +231,25 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
231
231
|
}, "strip", z.ZodTypeAny, {
|
|
232
232
|
enabled: boolean;
|
|
233
233
|
models: (string | {
|
|
234
|
-
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
235
234
|
name: string;
|
|
236
|
-
|
|
235
|
+
provider: "custom" | "anthropic" | "zhipu" | "openai" | "deepseek" | "ollama";
|
|
237
236
|
id: string;
|
|
238
|
-
apiModel: string;
|
|
239
237
|
capabilities: string[];
|
|
238
|
+
maxContextTokens: number;
|
|
239
|
+
apiModel: string;
|
|
240
240
|
endpoint?: string | undefined;
|
|
241
241
|
apiKeyEnvVar?: string | undefined;
|
|
242
242
|
costPer1MInput?: number | undefined;
|
|
243
243
|
costPer1MOutput?: number | undefined;
|
|
244
244
|
modelContextBudget?: number | undefined;
|
|
245
245
|
})[];
|
|
246
|
-
routingStrategy: "cost-optimized" | "performance-first" | "
|
|
246
|
+
routingStrategy: "balanced" | "cost-optimized" | "performance-first" | "adaptive";
|
|
247
|
+
costOptimization?: {
|
|
248
|
+
enabled: boolean;
|
|
249
|
+
targetReduction: number;
|
|
250
|
+
maxPerformanceDegradation: number;
|
|
251
|
+
fallbackThreshold: number;
|
|
252
|
+
} | undefined;
|
|
247
253
|
roles?: {
|
|
248
254
|
planner: string;
|
|
249
255
|
executor: string;
|
|
@@ -251,20 +257,14 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
251
257
|
reviewer?: string | undefined;
|
|
252
258
|
} | undefined;
|
|
253
259
|
routing?: {
|
|
254
|
-
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
255
260
|
priority: number;
|
|
256
|
-
|
|
261
|
+
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
262
|
+
complexity?: "medium" | "low" | "high" | "critical" | undefined;
|
|
257
263
|
keywords?: string[] | undefined;
|
|
258
|
-
taskType?: "
|
|
264
|
+
taskType?: "documentation" | "coding" | "bug-fix" | "refactoring" | "review" | "planning" | undefined;
|
|
259
265
|
}[] | undefined;
|
|
260
|
-
costOptimization?: {
|
|
261
|
-
enabled: boolean;
|
|
262
|
-
targetReduction: number;
|
|
263
|
-
maxPerformanceDegradation: number;
|
|
264
|
-
fallbackThreshold: number;
|
|
265
|
-
} | undefined;
|
|
266
266
|
plannerSettings?: {
|
|
267
|
-
complexityThreshold: "
|
|
267
|
+
complexityThreshold: "medium" | "low" | "high";
|
|
268
268
|
maxPlanningTokens: number;
|
|
269
269
|
enableDecomposition: boolean;
|
|
270
270
|
} | undefined;
|
|
@@ -273,25 +273,31 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
273
273
|
maxRetries: number;
|
|
274
274
|
stepTimeout: number;
|
|
275
275
|
} | undefined;
|
|
276
|
-
routingMatrix?: Partial<Record<"
|
|
276
|
+
routingMatrix?: Partial<Record<"medium" | "low" | "high" | "critical", {
|
|
277
277
|
planner: string;
|
|
278
278
|
executor: string;
|
|
279
279
|
}>> | undefined;
|
|
280
280
|
}, {
|
|
281
281
|
enabled?: boolean | undefined;
|
|
282
282
|
models?: (string | {
|
|
283
|
-
provider: "custom" | "anthropic" | "deepseek" | "openai" | "zhipu" | "ollama";
|
|
284
283
|
name: string;
|
|
284
|
+
provider: "custom" | "anthropic" | "zhipu" | "openai" | "deepseek" | "ollama";
|
|
285
285
|
id: string;
|
|
286
286
|
apiModel: string;
|
|
287
|
+
capabilities?: string[] | undefined;
|
|
287
288
|
endpoint?: string | undefined;
|
|
288
289
|
maxContextTokens?: number | undefined;
|
|
289
290
|
apiKeyEnvVar?: string | undefined;
|
|
290
291
|
costPer1MInput?: number | undefined;
|
|
291
292
|
costPer1MOutput?: number | undefined;
|
|
292
|
-
capabilities?: string[] | undefined;
|
|
293
293
|
modelContextBudget?: number | undefined;
|
|
294
294
|
})[] | undefined;
|
|
295
|
+
costOptimization?: {
|
|
296
|
+
enabled?: boolean | undefined;
|
|
297
|
+
targetReduction?: number | undefined;
|
|
298
|
+
maxPerformanceDegradation?: number | undefined;
|
|
299
|
+
fallbackThreshold?: number | undefined;
|
|
300
|
+
} | undefined;
|
|
295
301
|
roles?: {
|
|
296
302
|
planner?: string | undefined;
|
|
297
303
|
executor?: string | undefined;
|
|
@@ -300,20 +306,14 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
300
306
|
} | undefined;
|
|
301
307
|
routing?: {
|
|
302
308
|
targetRole: "planner" | "executor" | "reviewer" | "fallback";
|
|
303
|
-
complexity?: "low" | "medium" | "high" | "critical" | undefined;
|
|
304
|
-
keywords?: string[] | undefined;
|
|
305
|
-
taskType?: "planning" | "coding" | "refactoring" | "bug-fix" | "review" | "documentation" | undefined;
|
|
306
309
|
priority?: number | undefined;
|
|
310
|
+
complexity?: "medium" | "low" | "high" | "critical" | undefined;
|
|
311
|
+
keywords?: string[] | undefined;
|
|
312
|
+
taskType?: "documentation" | "coding" | "bug-fix" | "refactoring" | "review" | "planning" | undefined;
|
|
307
313
|
}[] | undefined;
|
|
308
|
-
routingStrategy?: "cost-optimized" | "performance-first" | "
|
|
309
|
-
costOptimization?: {
|
|
310
|
-
enabled?: boolean | undefined;
|
|
311
|
-
targetReduction?: number | undefined;
|
|
312
|
-
maxPerformanceDegradation?: number | undefined;
|
|
313
|
-
fallbackThreshold?: number | undefined;
|
|
314
|
-
} | undefined;
|
|
314
|
+
routingStrategy?: "balanced" | "cost-optimized" | "performance-first" | "adaptive" | undefined;
|
|
315
315
|
plannerSettings?: {
|
|
316
|
-
complexityThreshold?: "
|
|
316
|
+
complexityThreshold?: "medium" | "low" | "high" | undefined;
|
|
317
317
|
maxPlanningTokens?: number | undefined;
|
|
318
318
|
enableDecomposition?: boolean | undefined;
|
|
319
319
|
} | undefined;
|
|
@@ -322,7 +322,7 @@ export declare const MultiModelConfigSchema: z.ZodObject<{
|
|
|
322
322
|
maxRetries?: number | undefined;
|
|
323
323
|
stepTimeout?: number | undefined;
|
|
324
324
|
} | undefined;
|
|
325
|
-
routingMatrix?: Partial<Record<"
|
|
325
|
+
routingMatrix?: Partial<Record<"medium" | "low" | "high" | "critical", {
|
|
326
326
|
planner: string;
|
|
327
327
|
executor: string;
|
|
328
328
|
}>> | undefined;
|
|
@@ -17,33 +17,33 @@ export declare const PolicySchema: z.ZodObject<{
|
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
18
|
name: string;
|
|
19
19
|
id: string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
category: "code" | "custom" | "testing" | "ui" | "security" | "image" | "automation";
|
|
24
|
-
level: "REQUIRED" | "RECOMMENDED" | "OPTIONAL";
|
|
25
|
-
enforcementStage: "review" | "pre-exec" | "post-exec" | "always";
|
|
20
|
+
category: "ui" | "security" | "code" | "custom" | "testing" | "image" | "automation";
|
|
21
|
+
level: "RECOMMENDED" | "REQUIRED" | "OPTIONAL";
|
|
22
|
+
enforcementStage: "pre-exec" | "post-exec" | "review" | "always";
|
|
26
23
|
rawMarkdown: string;
|
|
27
24
|
tags: string[];
|
|
25
|
+
createdAt: string;
|
|
28
26
|
updatedAt: string;
|
|
27
|
+
version: number;
|
|
29
28
|
isActive: boolean;
|
|
29
|
+
priority: number;
|
|
30
30
|
convertedFormat?: string | null | undefined;
|
|
31
31
|
executableTools?: string[] | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
name: string;
|
|
34
34
|
id: string;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
category: "code" | "custom" | "testing" | "ui" | "security" | "image" | "automation";
|
|
38
|
-
level: "REQUIRED" | "RECOMMENDED" | "OPTIONAL";
|
|
35
|
+
category: "ui" | "security" | "code" | "custom" | "testing" | "image" | "automation";
|
|
36
|
+
level: "RECOMMENDED" | "REQUIRED" | "OPTIONAL";
|
|
39
37
|
rawMarkdown: string;
|
|
40
38
|
tags: string[];
|
|
39
|
+
createdAt: string;
|
|
41
40
|
updatedAt: string;
|
|
41
|
+
version: number;
|
|
42
42
|
isActive: boolean;
|
|
43
|
-
|
|
44
|
-
enforcementStage?: "review" | "pre-exec" | "post-exec" | "always" | undefined;
|
|
43
|
+
enforcementStage?: "pre-exec" | "post-exec" | "review" | "always" | undefined;
|
|
45
44
|
convertedFormat?: string | null | undefined;
|
|
46
45
|
executableTools?: string[] | undefined;
|
|
46
|
+
priority?: number | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
export type Policy = z.infer<typeof PolicySchema>;
|
|
49
49
|
export declare const PolicyExecutionSchema: z.ZodObject<{
|
|
@@ -54,18 +54,18 @@ export declare const PolicyExecutionSchema: z.ZodObject<{
|
|
|
54
54
|
result: z.ZodAny;
|
|
55
55
|
executedAt: z.ZodEffects<z.ZodString, string, string>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
args: Record<string, unknown>;
|
|
58
|
-
policyId: string;
|
|
59
|
-
toolName: string;
|
|
60
57
|
operation: string;
|
|
61
58
|
executedAt: string;
|
|
62
|
-
result?: any;
|
|
63
|
-
}, {
|
|
64
|
-
args: Record<string, unknown>;
|
|
65
59
|
policyId: string;
|
|
60
|
+
args: Record<string, unknown>;
|
|
66
61
|
toolName: string;
|
|
62
|
+
result?: any;
|
|
63
|
+
}, {
|
|
67
64
|
operation: string;
|
|
68
65
|
executedAt: string;
|
|
66
|
+
policyId: string;
|
|
67
|
+
args: Record<string, unknown>;
|
|
68
|
+
toolName: string;
|
|
69
69
|
result?: any;
|
|
70
70
|
}>;
|
|
71
71
|
export type PolicyExecution = z.infer<typeof PolicyExecutionSchema>;
|