@manehorizons/cadence-types 1.1.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/anomaly.d.ts +43 -24
- package/dist/anomaly.d.ts.map +1 -1
- package/dist/anomaly.js +1 -1
- package/dist/anomaly.js.map +1 -1
- package/dist/config.d.ts +128 -508
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/events.d.ts +19 -19
- package/dist/events.d.ts.map +1 -1
- package/dist/intelligence.d.ts +447 -1543
- package/dist/intelligence.d.ts.map +1 -1
- package/dist/plan.d.ts +43 -133
- package/dist/plan.d.ts.map +1 -1
- package/dist/profile.d.ts +36 -11
- package/dist/profile.d.ts.map +1 -1
- package/dist/spec.d.ts +8 -47
- package/dist/spec.d.ts.map +1 -1
- package/dist/state.d.ts +53 -202
- package/dist/state.d.ts.map +1 -1
- package/dist/summary.d.ts +44 -227
- package/dist/summary.d.ts.map +1 -1
- package/package.json +4 -3
package/dist/config.d.ts
CHANGED
|
@@ -2,531 +2,151 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const CadenceConfigZ: z.ZodObject<{
|
|
3
3
|
$schema: z.ZodOptional<z.ZodString>;
|
|
4
4
|
schemaVersion: z.ZodLiteral<1>;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
profile: z.ZodDefault<z.ZodEnum<{
|
|
6
|
+
strict: "strict";
|
|
7
|
+
standard: "standard";
|
|
8
|
+
auto: "auto";
|
|
9
|
+
}>>;
|
|
10
|
+
loopEnforcement: z.ZodEnum<{
|
|
11
|
+
strict: "strict";
|
|
12
|
+
soft: "soft";
|
|
13
|
+
reminder: "reminder";
|
|
14
|
+
}>;
|
|
15
|
+
acDiscipline: z.ZodEnum<{
|
|
16
|
+
optional: "optional";
|
|
17
|
+
strict: "strict";
|
|
18
|
+
"tier-scaled": "tier-scaled";
|
|
19
|
+
}>;
|
|
20
|
+
workstreamBackend: z.ZodUnion<readonly [z.ZodEnum<{
|
|
21
|
+
simple: "simple";
|
|
22
|
+
"multi-branch": "multi-branch";
|
|
23
|
+
}>, z.ZodString]>;
|
|
24
|
+
ruleProvider: z.ZodUnion<readonly [z.ZodEnum<{
|
|
25
|
+
"trigger-taxonomy": "trigger-taxonomy";
|
|
26
|
+
carl: "carl";
|
|
27
|
+
}>, z.ZodString]>;
|
|
11
28
|
subagentPolicy: z.ZodObject<{
|
|
12
29
|
contextBudgetThreshold: z.ZodNumber;
|
|
13
30
|
largeTaskTokens: z.ZodNumber;
|
|
14
31
|
mechanicalBatchMin: z.ZodNumber;
|
|
15
|
-
},
|
|
16
|
-
contextBudgetThreshold: number;
|
|
17
|
-
largeTaskTokens: number;
|
|
18
|
-
mechanicalBatchMin: number;
|
|
19
|
-
}, {
|
|
20
|
-
contextBudgetThreshold: number;
|
|
21
|
-
largeTaskTokens: number;
|
|
22
|
-
mechanicalBatchMin: number;
|
|
23
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
24
33
|
modelPerClass: z.ZodObject<{
|
|
25
34
|
mechanical: z.ZodString;
|
|
26
35
|
standard: z.ZodString;
|
|
27
36
|
complex: z.ZodString;
|
|
28
37
|
drafting: z.ZodString;
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}, {
|
|
35
|
-
standard: string;
|
|
36
|
-
mechanical: string;
|
|
37
|
-
complex: string;
|
|
38
|
-
drafting: string;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
commitCadence: z.ZodEnum<{
|
|
40
|
+
task: "task";
|
|
41
|
+
draft: "draft";
|
|
42
|
+
manual: "manual";
|
|
39
43
|
}>;
|
|
40
|
-
commitCadence: z.ZodEnum<["task", "draft", "manual"]>;
|
|
41
44
|
templates: z.ZodObject<{
|
|
42
45
|
dir: z.ZodString;
|
|
43
|
-
overrides: z.ZodArray<z.ZodString
|
|
44
|
-
},
|
|
45
|
-
dir: string;
|
|
46
|
-
overrides: string[];
|
|
47
|
-
}, {
|
|
48
|
-
dir: string;
|
|
49
|
-
overrides: string[];
|
|
50
|
-
}>;
|
|
46
|
+
overrides: z.ZodArray<z.ZodString>;
|
|
47
|
+
}, z.core.$strip>;
|
|
51
48
|
hooks: z.ZodObject<{
|
|
52
49
|
sessionStart: z.ZodBoolean;
|
|
53
50
|
stopReminder: z.ZodBoolean;
|
|
54
51
|
preToolUseBuildGate: z.ZodBoolean;
|
|
55
52
|
userPromptSubmit: z.ZodBoolean;
|
|
56
|
-
},
|
|
57
|
-
sessionStart: boolean;
|
|
58
|
-
stopReminder: boolean;
|
|
59
|
-
preToolUseBuildGate: boolean;
|
|
60
|
-
userPromptSubmit: boolean;
|
|
61
|
-
}, {
|
|
62
|
-
sessionStart: boolean;
|
|
63
|
-
stopReminder: boolean;
|
|
64
|
-
preToolUseBuildGate: boolean;
|
|
65
|
-
userPromptSubmit: boolean;
|
|
66
|
-
}>;
|
|
53
|
+
}, z.core.$strip>;
|
|
67
54
|
packs: z.ZodObject<{
|
|
68
|
-
enabled: z.ZodArray<z.ZodString
|
|
69
|
-
disabled: z.ZodArray<z.ZodString
|
|
70
|
-
},
|
|
71
|
-
enabled: string[];
|
|
72
|
-
disabled: string[];
|
|
73
|
-
}, {
|
|
74
|
-
enabled: string[];
|
|
75
|
-
disabled: string[];
|
|
76
|
-
}>;
|
|
55
|
+
enabled: z.ZodArray<z.ZodString>;
|
|
56
|
+
disabled: z.ZodArray<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>;
|
|
77
58
|
telemetry: z.ZodObject<{
|
|
78
59
|
tokenUtilization: z.ZodBoolean;
|
|
79
60
|
skillInvocations: z.ZodBoolean;
|
|
80
61
|
remoteOptIn: z.ZodBoolean;
|
|
81
|
-
},
|
|
82
|
-
tokenUtilization: boolean;
|
|
83
|
-
skillInvocations: boolean;
|
|
84
|
-
remoteOptIn: boolean;
|
|
85
|
-
}, {
|
|
86
|
-
tokenUtilization: boolean;
|
|
87
|
-
skillInvocations: boolean;
|
|
88
|
-
remoteOptIn: boolean;
|
|
89
|
-
}>;
|
|
62
|
+
}, z.core.$strip>;
|
|
90
63
|
skillAudit: z.ZodDefault<z.ZodObject<{
|
|
91
|
-
required: z.ZodDefault<z.ZodArray<z.ZodString
|
|
92
|
-
},
|
|
93
|
-
required: string[];
|
|
94
|
-
}, {
|
|
95
|
-
required?: string[] | undefined;
|
|
96
|
-
}>>;
|
|
64
|
+
required: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
97
66
|
convergence: z.ZodDefault<z.ZodObject<{
|
|
98
67
|
maxAttempts: z.ZodDefault<z.ZodNumber>;
|
|
99
|
-
},
|
|
100
|
-
maxAttempts: number;
|
|
101
|
-
}, {
|
|
102
|
-
maxAttempts?: number | undefined;
|
|
103
|
-
}>>;
|
|
68
|
+
}, z.core.$strip>>;
|
|
104
69
|
specReview: z.ZodDefault<z.ZodObject<{
|
|
105
|
-
provider: z.ZodDefault<z.ZodEnum<
|
|
70
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
71
|
+
local: "local";
|
|
72
|
+
mock: "mock";
|
|
73
|
+
anthropic: "anthropic";
|
|
74
|
+
}>>;
|
|
106
75
|
model: z.ZodOptional<z.ZodString>;
|
|
107
|
-
},
|
|
108
|
-
provider: "mock" | "anthropic" | "local";
|
|
109
|
-
model?: string | undefined;
|
|
110
|
-
}, {
|
|
111
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
112
|
-
model?: string | undefined;
|
|
113
|
-
}>>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
114
77
|
tier: z.ZodObject<{
|
|
115
78
|
quickFix: z.ZodObject<{
|
|
116
79
|
maxTasks: z.ZodNumber;
|
|
117
80
|
maxFiles: z.ZodNumber;
|
|
118
|
-
},
|
|
119
|
-
maxTasks: number;
|
|
120
|
-
maxFiles: number;
|
|
121
|
-
}, {
|
|
122
|
-
maxTasks: number;
|
|
123
|
-
maxFiles: number;
|
|
124
|
-
}>;
|
|
81
|
+
}, z.core.$strip>;
|
|
125
82
|
standard: z.ZodObject<{
|
|
126
83
|
maxTasks: z.ZodNumber;
|
|
127
84
|
maxFiles: z.ZodNumber;
|
|
128
|
-
},
|
|
129
|
-
maxTasks: number;
|
|
130
|
-
maxFiles: number;
|
|
131
|
-
}, {
|
|
132
|
-
maxTasks: number;
|
|
133
|
-
maxFiles: number;
|
|
134
|
-
}>;
|
|
85
|
+
}, z.core.$strip>;
|
|
135
86
|
complex: z.ZodObject<{
|
|
136
87
|
maxTasks: z.ZodNumber;
|
|
137
88
|
minTasks: z.ZodNumber;
|
|
138
|
-
},
|
|
139
|
-
|
|
140
|
-
minTasks: number;
|
|
141
|
-
}, {
|
|
142
|
-
maxTasks: number;
|
|
143
|
-
minTasks: number;
|
|
144
|
-
}>;
|
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
|
146
|
-
standard: {
|
|
147
|
-
maxTasks: number;
|
|
148
|
-
maxFiles: number;
|
|
149
|
-
};
|
|
150
|
-
complex: {
|
|
151
|
-
maxTasks: number;
|
|
152
|
-
minTasks: number;
|
|
153
|
-
};
|
|
154
|
-
quickFix: {
|
|
155
|
-
maxTasks: number;
|
|
156
|
-
maxFiles: number;
|
|
157
|
-
};
|
|
158
|
-
}, {
|
|
159
|
-
standard: {
|
|
160
|
-
maxTasks: number;
|
|
161
|
-
maxFiles: number;
|
|
162
|
-
};
|
|
163
|
-
complex: {
|
|
164
|
-
maxTasks: number;
|
|
165
|
-
minTasks: number;
|
|
166
|
-
};
|
|
167
|
-
quickFix: {
|
|
168
|
-
maxTasks: number;
|
|
169
|
-
maxFiles: number;
|
|
170
|
-
};
|
|
171
|
-
}>;
|
|
89
|
+
}, z.core.$strip>;
|
|
90
|
+
}, z.core.$strip>;
|
|
172
91
|
verification: z.ZodDefault<z.ZodObject<{
|
|
173
|
-
|
|
174
|
-
* Glob patterns the test-coverage scanner walks. Supports `**` and `*`.
|
|
175
|
-
* Default scans the workspace `packages/**\/*.test.ts(x)`.
|
|
176
|
-
*/
|
|
177
|
-
testGlobs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
178
|
-
/**
|
|
179
|
-
* Shell command the `build-test-must-pass` gate runs at settle time
|
|
180
|
-
* (Phase 39.2). When set, settle runs it and refuses on a non-zero exit
|
|
181
|
-
* unless `--allow-failing-build` / `--force`. When absent, the gate is
|
|
182
|
-
* evaluated but cannot enforce — it passes with a one-time note.
|
|
183
|
-
*/
|
|
92
|
+
testGlobs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
184
93
|
testCommand: z.ZodOptional<z.ZodString>;
|
|
185
|
-
},
|
|
186
|
-
testGlobs: string[];
|
|
187
|
-
testCommand?: string | undefined;
|
|
188
|
-
}, {
|
|
189
|
-
testGlobs?: string[] | undefined;
|
|
190
|
-
testCommand?: string | undefined;
|
|
191
|
-
}>>;
|
|
94
|
+
}, z.core.$strip>>;
|
|
192
95
|
verifier: z.ZodDefault<z.ZodObject<{
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
/** Optional model override for the Anthropic provider. */
|
|
96
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
97
|
+
local: "local";
|
|
98
|
+
mock: "mock";
|
|
99
|
+
anthropic: "anthropic";
|
|
100
|
+
}>>;
|
|
199
101
|
model: z.ZodOptional<z.ZodString>;
|
|
200
|
-
},
|
|
201
|
-
provider: "mock" | "anthropic" | "local";
|
|
202
|
-
model?: string | undefined;
|
|
203
|
-
}, {
|
|
204
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
205
|
-
model?: string | undefined;
|
|
206
|
-
}>>;
|
|
102
|
+
}, z.core.$strip>>;
|
|
207
103
|
perTaskVerifier: z.ZodDefault<z.ZodObject<{
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
provider: z.ZodDefault<z.ZodEnum<["mock", "anthropic", "local"]>>;
|
|
214
|
-
/** Optional model override for the Anthropic provider. */
|
|
104
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
105
|
+
local: "local";
|
|
106
|
+
mock: "mock";
|
|
107
|
+
anthropic: "anthropic";
|
|
108
|
+
}>>;
|
|
215
109
|
model: z.ZodOptional<z.ZodString>;
|
|
216
|
-
},
|
|
217
|
-
provider: "mock" | "anthropic" | "local";
|
|
218
|
-
model?: string | undefined;
|
|
219
|
-
}, {
|
|
220
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
221
|
-
model?: string | undefined;
|
|
222
|
-
}>>;
|
|
110
|
+
}, z.core.$strip>>;
|
|
223
111
|
codeReview: z.ZodDefault<z.ZodObject<{
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
*/
|
|
230
|
-
provider: z.ZodDefault<z.ZodEnum<["mock", "anthropic", "local"]>>;
|
|
231
|
-
/** Optional model override for the Anthropic provider. */
|
|
112
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
113
|
+
local: "local";
|
|
114
|
+
mock: "mock";
|
|
115
|
+
anthropic: "anthropic";
|
|
116
|
+
}>>;
|
|
232
117
|
model: z.ZodOptional<z.ZodString>;
|
|
233
|
-
},
|
|
234
|
-
provider: "mock" | "anthropic" | "local";
|
|
235
|
-
model?: string | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
238
|
-
model?: string | undefined;
|
|
239
|
-
}>>;
|
|
118
|
+
}, z.core.$strip>>;
|
|
240
119
|
planReview: z.ZodDefault<z.ZodObject<{
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
*/
|
|
247
|
-
provider: z.ZodDefault<z.ZodEnum<["mock", "anthropic", "local"]>>;
|
|
248
|
-
/** Optional model override for the Anthropic provider. */
|
|
120
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
121
|
+
local: "local";
|
|
122
|
+
mock: "mock";
|
|
123
|
+
anthropic: "anthropic";
|
|
124
|
+
}>>;
|
|
249
125
|
model: z.ZodOptional<z.ZodString>;
|
|
250
|
-
},
|
|
251
|
-
provider: "mock" | "anthropic" | "local";
|
|
252
|
-
model?: string | undefined;
|
|
253
|
-
}, {
|
|
254
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
255
|
-
model?: string | undefined;
|
|
256
|
-
}>>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
257
127
|
securityAudit: z.ZodDefault<z.ZodObject<{
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
* `--force` / `--allow-security-audit-failure`.
|
|
264
|
-
*/
|
|
265
|
-
provider: z.ZodDefault<z.ZodEnum<["mock", "anthropic", "local"]>>;
|
|
266
|
-
/** Optional model override for the Anthropic provider. */
|
|
128
|
+
provider: z.ZodDefault<z.ZodEnum<{
|
|
129
|
+
local: "local";
|
|
130
|
+
mock: "mock";
|
|
131
|
+
anthropic: "anthropic";
|
|
132
|
+
}>>;
|
|
267
133
|
model: z.ZodOptional<z.ZodString>;
|
|
268
|
-
},
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Anomaly-event transport. `stderr` (default) writes one line per event;
|
|
278
|
-
* `file` appends NDJSON to `notify.file`; `none` drops events;
|
|
279
|
-
* `webhook` POSTs `{events: [...]}` JSON to `notify.webhook.url`
|
|
280
|
-
* (Phase 19.1). Only fires when `'anomaly-notify'` is in the
|
|
281
|
-
* effective gate set.
|
|
282
|
-
*/
|
|
283
|
-
transport: z.ZodDefault<z.ZodEnum<["stderr", "file", "none", "webhook"]>>;
|
|
284
|
-
/** Path for the `file` transport. Defaults to `.cadence/anomalies.log`. */
|
|
134
|
+
}, z.core.$strip>>;
|
|
135
|
+
notify: z.ZodDefault<z.ZodObject<{
|
|
136
|
+
transport: z.ZodDefault<z.ZodEnum<{
|
|
137
|
+
file: "file";
|
|
138
|
+
stderr: "stderr";
|
|
139
|
+
none: "none";
|
|
140
|
+
webhook: "webhook";
|
|
141
|
+
}>>;
|
|
285
142
|
file: z.ZodOptional<z.ZodString>;
|
|
286
|
-
/**
|
|
287
|
-
* Webhook target for the `webhook` transport (Phase 19.1). Required
|
|
288
|
-
* when transport === 'webhook'; ignored otherwise. URL is sensitive
|
|
289
|
-
* (may carry a token); never logged on failure.
|
|
290
|
-
*/
|
|
291
143
|
webhook: z.ZodOptional<z.ZodObject<{
|
|
292
144
|
url: z.ZodString;
|
|
293
145
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
294
146
|
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
295
|
-
},
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
timeoutMs?: number | undefined;
|
|
299
|
-
}, {
|
|
300
|
-
url: string;
|
|
301
|
-
headers?: Record<string, string> | undefined;
|
|
302
|
-
timeoutMs?: number | undefined;
|
|
303
|
-
}>>;
|
|
304
|
-
}, "strip", z.ZodTypeAny, {
|
|
305
|
-
transport: "stderr" | "file" | "none" | "webhook";
|
|
306
|
-
file?: string | undefined;
|
|
307
|
-
webhook?: {
|
|
308
|
-
url: string;
|
|
309
|
-
headers?: Record<string, string> | undefined;
|
|
310
|
-
timeoutMs?: number | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
}, {
|
|
313
|
-
file?: string | undefined;
|
|
314
|
-
webhook?: {
|
|
315
|
-
url: string;
|
|
316
|
-
headers?: Record<string, string> | undefined;
|
|
317
|
-
timeoutMs?: number | undefined;
|
|
318
|
-
} | undefined;
|
|
319
|
-
transport?: "stderr" | "file" | "none" | "webhook" | undefined;
|
|
320
|
-
}>, {
|
|
321
|
-
transport: "stderr" | "file" | "none" | "webhook";
|
|
322
|
-
file?: string | undefined;
|
|
323
|
-
webhook?: {
|
|
324
|
-
url: string;
|
|
325
|
-
headers?: Record<string, string> | undefined;
|
|
326
|
-
timeoutMs?: number | undefined;
|
|
327
|
-
} | undefined;
|
|
328
|
-
}, {
|
|
329
|
-
file?: string | undefined;
|
|
330
|
-
webhook?: {
|
|
331
|
-
url: string;
|
|
332
|
-
headers?: Record<string, string> | undefined;
|
|
333
|
-
timeoutMs?: number | undefined;
|
|
334
|
-
} | undefined;
|
|
335
|
-
transport?: "stderr" | "file" | "none" | "webhook" | undefined;
|
|
336
|
-
}>>;
|
|
337
|
-
}, "strip", z.ZodTypeAny, {
|
|
338
|
-
schemaVersion: 1;
|
|
339
|
-
profile: "strict" | "standard" | "auto";
|
|
340
|
-
loopEnforcement: "strict" | "soft" | "reminder";
|
|
341
|
-
acDiscipline: "strict" | "tier-scaled" | "optional";
|
|
342
|
-
workstreamBackend: string;
|
|
343
|
-
ruleProvider: string;
|
|
344
|
-
subagentPolicy: {
|
|
345
|
-
contextBudgetThreshold: number;
|
|
346
|
-
largeTaskTokens: number;
|
|
347
|
-
mechanicalBatchMin: number;
|
|
348
|
-
};
|
|
349
|
-
modelPerClass: {
|
|
350
|
-
standard: string;
|
|
351
|
-
mechanical: string;
|
|
352
|
-
complex: string;
|
|
353
|
-
drafting: string;
|
|
354
|
-
};
|
|
355
|
-
commitCadence: "task" | "draft" | "manual";
|
|
356
|
-
templates: {
|
|
357
|
-
dir: string;
|
|
358
|
-
overrides: string[];
|
|
359
|
-
};
|
|
360
|
-
hooks: {
|
|
361
|
-
sessionStart: boolean;
|
|
362
|
-
stopReminder: boolean;
|
|
363
|
-
preToolUseBuildGate: boolean;
|
|
364
|
-
userPromptSubmit: boolean;
|
|
365
|
-
};
|
|
366
|
-
packs: {
|
|
367
|
-
enabled: string[];
|
|
368
|
-
disabled: string[];
|
|
369
|
-
};
|
|
370
|
-
telemetry: {
|
|
371
|
-
tokenUtilization: boolean;
|
|
372
|
-
skillInvocations: boolean;
|
|
373
|
-
remoteOptIn: boolean;
|
|
374
|
-
};
|
|
375
|
-
skillAudit: {
|
|
376
|
-
required: string[];
|
|
377
|
-
};
|
|
378
|
-
convergence: {
|
|
379
|
-
maxAttempts: number;
|
|
380
|
-
};
|
|
381
|
-
specReview: {
|
|
382
|
-
provider: "mock" | "anthropic" | "local";
|
|
383
|
-
model?: string | undefined;
|
|
384
|
-
};
|
|
385
|
-
tier: {
|
|
386
|
-
standard: {
|
|
387
|
-
maxTasks: number;
|
|
388
|
-
maxFiles: number;
|
|
389
|
-
};
|
|
390
|
-
complex: {
|
|
391
|
-
maxTasks: number;
|
|
392
|
-
minTasks: number;
|
|
393
|
-
};
|
|
394
|
-
quickFix: {
|
|
395
|
-
maxTasks: number;
|
|
396
|
-
maxFiles: number;
|
|
397
|
-
};
|
|
398
|
-
};
|
|
399
|
-
verification: {
|
|
400
|
-
testGlobs: string[];
|
|
401
|
-
testCommand?: string | undefined;
|
|
402
|
-
};
|
|
403
|
-
verifier: {
|
|
404
|
-
provider: "mock" | "anthropic" | "local";
|
|
405
|
-
model?: string | undefined;
|
|
406
|
-
};
|
|
407
|
-
perTaskVerifier: {
|
|
408
|
-
provider: "mock" | "anthropic" | "local";
|
|
409
|
-
model?: string | undefined;
|
|
410
|
-
};
|
|
411
|
-
codeReview: {
|
|
412
|
-
provider: "mock" | "anthropic" | "local";
|
|
413
|
-
model?: string | undefined;
|
|
414
|
-
};
|
|
415
|
-
planReview: {
|
|
416
|
-
provider: "mock" | "anthropic" | "local";
|
|
417
|
-
model?: string | undefined;
|
|
418
|
-
};
|
|
419
|
-
securityAudit: {
|
|
420
|
-
provider: "mock" | "anthropic" | "local";
|
|
421
|
-
model?: string | undefined;
|
|
422
|
-
};
|
|
423
|
-
notify: {
|
|
424
|
-
transport: "stderr" | "file" | "none" | "webhook";
|
|
425
|
-
file?: string | undefined;
|
|
426
|
-
webhook?: {
|
|
427
|
-
url: string;
|
|
428
|
-
headers?: Record<string, string> | undefined;
|
|
429
|
-
timeoutMs?: number | undefined;
|
|
430
|
-
} | undefined;
|
|
431
|
-
};
|
|
432
|
-
$schema?: string | undefined;
|
|
433
|
-
}, {
|
|
434
|
-
schemaVersion: 1;
|
|
435
|
-
loopEnforcement: "strict" | "soft" | "reminder";
|
|
436
|
-
acDiscipline: "strict" | "tier-scaled" | "optional";
|
|
437
|
-
workstreamBackend: string;
|
|
438
|
-
ruleProvider: string;
|
|
439
|
-
subagentPolicy: {
|
|
440
|
-
contextBudgetThreshold: number;
|
|
441
|
-
largeTaskTokens: number;
|
|
442
|
-
mechanicalBatchMin: number;
|
|
443
|
-
};
|
|
444
|
-
modelPerClass: {
|
|
445
|
-
standard: string;
|
|
446
|
-
mechanical: string;
|
|
447
|
-
complex: string;
|
|
448
|
-
drafting: string;
|
|
449
|
-
};
|
|
450
|
-
commitCadence: "task" | "draft" | "manual";
|
|
451
|
-
templates: {
|
|
452
|
-
dir: string;
|
|
453
|
-
overrides: string[];
|
|
454
|
-
};
|
|
455
|
-
hooks: {
|
|
456
|
-
sessionStart: boolean;
|
|
457
|
-
stopReminder: boolean;
|
|
458
|
-
preToolUseBuildGate: boolean;
|
|
459
|
-
userPromptSubmit: boolean;
|
|
460
|
-
};
|
|
461
|
-
packs: {
|
|
462
|
-
enabled: string[];
|
|
463
|
-
disabled: string[];
|
|
464
|
-
};
|
|
465
|
-
telemetry: {
|
|
466
|
-
tokenUtilization: boolean;
|
|
467
|
-
skillInvocations: boolean;
|
|
468
|
-
remoteOptIn: boolean;
|
|
469
|
-
};
|
|
470
|
-
tier: {
|
|
471
|
-
standard: {
|
|
472
|
-
maxTasks: number;
|
|
473
|
-
maxFiles: number;
|
|
474
|
-
};
|
|
475
|
-
complex: {
|
|
476
|
-
maxTasks: number;
|
|
477
|
-
minTasks: number;
|
|
478
|
-
};
|
|
479
|
-
quickFix: {
|
|
480
|
-
maxTasks: number;
|
|
481
|
-
maxFiles: number;
|
|
482
|
-
};
|
|
483
|
-
};
|
|
484
|
-
$schema?: string | undefined;
|
|
485
|
-
profile?: "strict" | "standard" | "auto" | undefined;
|
|
486
|
-
skillAudit?: {
|
|
487
|
-
required?: string[] | undefined;
|
|
488
|
-
} | undefined;
|
|
489
|
-
convergence?: {
|
|
490
|
-
maxAttempts?: number | undefined;
|
|
491
|
-
} | undefined;
|
|
492
|
-
specReview?: {
|
|
493
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
494
|
-
model?: string | undefined;
|
|
495
|
-
} | undefined;
|
|
496
|
-
verification?: {
|
|
497
|
-
testGlobs?: string[] | undefined;
|
|
498
|
-
testCommand?: string | undefined;
|
|
499
|
-
} | undefined;
|
|
500
|
-
verifier?: {
|
|
501
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
502
|
-
model?: string | undefined;
|
|
503
|
-
} | undefined;
|
|
504
|
-
perTaskVerifier?: {
|
|
505
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
506
|
-
model?: string | undefined;
|
|
507
|
-
} | undefined;
|
|
508
|
-
codeReview?: {
|
|
509
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
510
|
-
model?: string | undefined;
|
|
511
|
-
} | undefined;
|
|
512
|
-
planReview?: {
|
|
513
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
514
|
-
model?: string | undefined;
|
|
515
|
-
} | undefined;
|
|
516
|
-
securityAudit?: {
|
|
517
|
-
provider?: "mock" | "anthropic" | "local" | undefined;
|
|
518
|
-
model?: string | undefined;
|
|
519
|
-
} | undefined;
|
|
520
|
-
notify?: {
|
|
521
|
-
file?: string | undefined;
|
|
522
|
-
webhook?: {
|
|
523
|
-
url: string;
|
|
524
|
-
headers?: Record<string, string> | undefined;
|
|
525
|
-
timeoutMs?: number | undefined;
|
|
526
|
-
} | undefined;
|
|
527
|
-
transport?: "stderr" | "file" | "none" | "webhook" | undefined;
|
|
528
|
-
} | undefined;
|
|
529
|
-
}>;
|
|
147
|
+
}, z.core.$strip>>;
|
|
148
|
+
}, z.core.$strip>>;
|
|
149
|
+
}, z.core.$strip>;
|
|
530
150
|
export type CadenceConfig = z.infer<typeof CadenceConfigZ>;
|
|
531
151
|
export declare const defaultConfig: CadenceConfig;
|
|
532
152
|
export declare const presets: {
|
|
@@ -544,8 +164,8 @@ export declare const presets: {
|
|
|
544
164
|
mechanicalBatchMin: number;
|
|
545
165
|
};
|
|
546
166
|
modelPerClass: {
|
|
547
|
-
standard: string;
|
|
548
167
|
mechanical: string;
|
|
168
|
+
standard: string;
|
|
549
169
|
complex: string;
|
|
550
170
|
drafting: string;
|
|
551
171
|
};
|
|
@@ -575,10 +195,14 @@ export declare const presets: {
|
|
|
575
195
|
maxAttempts: number;
|
|
576
196
|
};
|
|
577
197
|
specReview: {
|
|
578
|
-
provider: "
|
|
198
|
+
provider: "local" | "mock" | "anthropic";
|
|
579
199
|
model?: string | undefined;
|
|
580
200
|
};
|
|
581
201
|
tier: {
|
|
202
|
+
quickFix: {
|
|
203
|
+
maxTasks: number;
|
|
204
|
+
maxFiles: number;
|
|
205
|
+
};
|
|
582
206
|
standard: {
|
|
583
207
|
maxTasks: number;
|
|
584
208
|
maxFiles: number;
|
|
@@ -587,37 +211,33 @@ export declare const presets: {
|
|
|
587
211
|
maxTasks: number;
|
|
588
212
|
minTasks: number;
|
|
589
213
|
};
|
|
590
|
-
quickFix: {
|
|
591
|
-
maxTasks: number;
|
|
592
|
-
maxFiles: number;
|
|
593
|
-
};
|
|
594
214
|
};
|
|
595
215
|
verification: {
|
|
596
216
|
testGlobs: string[];
|
|
597
217
|
testCommand?: string | undefined;
|
|
598
218
|
};
|
|
599
219
|
verifier: {
|
|
600
|
-
provider: "
|
|
220
|
+
provider: "local" | "mock" | "anthropic";
|
|
601
221
|
model?: string | undefined;
|
|
602
222
|
};
|
|
603
223
|
perTaskVerifier: {
|
|
604
|
-
provider: "
|
|
224
|
+
provider: "local" | "mock" | "anthropic";
|
|
605
225
|
model?: string | undefined;
|
|
606
226
|
};
|
|
607
227
|
codeReview: {
|
|
608
|
-
provider: "
|
|
228
|
+
provider: "local" | "mock" | "anthropic";
|
|
609
229
|
model?: string | undefined;
|
|
610
230
|
};
|
|
611
231
|
planReview: {
|
|
612
|
-
provider: "
|
|
232
|
+
provider: "local" | "mock" | "anthropic";
|
|
613
233
|
model?: string | undefined;
|
|
614
234
|
};
|
|
615
235
|
securityAudit: {
|
|
616
|
-
provider: "
|
|
236
|
+
provider: "local" | "mock" | "anthropic";
|
|
617
237
|
model?: string | undefined;
|
|
618
238
|
};
|
|
619
239
|
notify: {
|
|
620
|
-
transport: "
|
|
240
|
+
transport: "file" | "stderr" | "none" | "webhook";
|
|
621
241
|
file?: string | undefined;
|
|
622
242
|
webhook?: {
|
|
623
243
|
url: string;
|
|
@@ -631,7 +251,7 @@ export declare const presets: {
|
|
|
631
251
|
schemaVersion: 1;
|
|
632
252
|
profile: "strict" | "standard" | "auto";
|
|
633
253
|
loopEnforcement: "strict" | "soft" | "reminder";
|
|
634
|
-
acDiscipline: "
|
|
254
|
+
acDiscipline: "optional" | "strict" | "tier-scaled";
|
|
635
255
|
workstreamBackend: string;
|
|
636
256
|
ruleProvider: string;
|
|
637
257
|
subagentPolicy: {
|
|
@@ -640,8 +260,8 @@ export declare const presets: {
|
|
|
640
260
|
mechanicalBatchMin: number;
|
|
641
261
|
};
|
|
642
262
|
modelPerClass: {
|
|
643
|
-
standard: string;
|
|
644
263
|
mechanical: string;
|
|
264
|
+
standard: string;
|
|
645
265
|
complex: string;
|
|
646
266
|
drafting: string;
|
|
647
267
|
};
|
|
@@ -672,10 +292,14 @@ export declare const presets: {
|
|
|
672
292
|
maxAttempts: number;
|
|
673
293
|
};
|
|
674
294
|
specReview: {
|
|
675
|
-
provider: "
|
|
295
|
+
provider: "local" | "mock" | "anthropic";
|
|
676
296
|
model?: string | undefined;
|
|
677
297
|
};
|
|
678
298
|
tier: {
|
|
299
|
+
quickFix: {
|
|
300
|
+
maxTasks: number;
|
|
301
|
+
maxFiles: number;
|
|
302
|
+
};
|
|
679
303
|
standard: {
|
|
680
304
|
maxTasks: number;
|
|
681
305
|
maxFiles: number;
|
|
@@ -684,37 +308,33 @@ export declare const presets: {
|
|
|
684
308
|
maxTasks: number;
|
|
685
309
|
minTasks: number;
|
|
686
310
|
};
|
|
687
|
-
quickFix: {
|
|
688
|
-
maxTasks: number;
|
|
689
|
-
maxFiles: number;
|
|
690
|
-
};
|
|
691
311
|
};
|
|
692
312
|
verification: {
|
|
693
313
|
testGlobs: string[];
|
|
694
314
|
testCommand?: string | undefined;
|
|
695
315
|
};
|
|
696
316
|
verifier: {
|
|
697
|
-
provider: "
|
|
317
|
+
provider: "local" | "mock" | "anthropic";
|
|
698
318
|
model?: string | undefined;
|
|
699
319
|
};
|
|
700
320
|
perTaskVerifier: {
|
|
701
|
-
provider: "
|
|
321
|
+
provider: "local" | "mock" | "anthropic";
|
|
702
322
|
model?: string | undefined;
|
|
703
323
|
};
|
|
704
324
|
codeReview: {
|
|
705
|
-
provider: "
|
|
325
|
+
provider: "local" | "mock" | "anthropic";
|
|
706
326
|
model?: string | undefined;
|
|
707
327
|
};
|
|
708
328
|
planReview: {
|
|
709
|
-
provider: "
|
|
329
|
+
provider: "local" | "mock" | "anthropic";
|
|
710
330
|
model?: string | undefined;
|
|
711
331
|
};
|
|
712
332
|
securityAudit: {
|
|
713
|
-
provider: "
|
|
333
|
+
provider: "local" | "mock" | "anthropic";
|
|
714
334
|
model?: string | undefined;
|
|
715
335
|
};
|
|
716
336
|
notify: {
|
|
717
|
-
transport: "
|
|
337
|
+
transport: "file" | "stderr" | "none" | "webhook";
|
|
718
338
|
file?: string | undefined;
|
|
719
339
|
webhook?: {
|
|
720
340
|
url: string;
|
|
@@ -743,8 +363,8 @@ export declare const presets: {
|
|
|
743
363
|
mechanicalBatchMin: number;
|
|
744
364
|
};
|
|
745
365
|
modelPerClass: {
|
|
746
|
-
standard: string;
|
|
747
366
|
mechanical: string;
|
|
367
|
+
standard: string;
|
|
748
368
|
complex: string;
|
|
749
369
|
drafting: string;
|
|
750
370
|
};
|
|
@@ -769,10 +389,14 @@ export declare const presets: {
|
|
|
769
389
|
maxAttempts: number;
|
|
770
390
|
};
|
|
771
391
|
specReview: {
|
|
772
|
-
provider: "
|
|
392
|
+
provider: "local" | "mock" | "anthropic";
|
|
773
393
|
model?: string | undefined;
|
|
774
394
|
};
|
|
775
395
|
tier: {
|
|
396
|
+
quickFix: {
|
|
397
|
+
maxTasks: number;
|
|
398
|
+
maxFiles: number;
|
|
399
|
+
};
|
|
776
400
|
standard: {
|
|
777
401
|
maxTasks: number;
|
|
778
402
|
maxFiles: number;
|
|
@@ -781,37 +405,33 @@ export declare const presets: {
|
|
|
781
405
|
maxTasks: number;
|
|
782
406
|
minTasks: number;
|
|
783
407
|
};
|
|
784
|
-
quickFix: {
|
|
785
|
-
maxTasks: number;
|
|
786
|
-
maxFiles: number;
|
|
787
|
-
};
|
|
788
408
|
};
|
|
789
409
|
verification: {
|
|
790
410
|
testGlobs: string[];
|
|
791
411
|
testCommand?: string | undefined;
|
|
792
412
|
};
|
|
793
413
|
verifier: {
|
|
794
|
-
provider: "
|
|
414
|
+
provider: "local" | "mock" | "anthropic";
|
|
795
415
|
model?: string | undefined;
|
|
796
416
|
};
|
|
797
417
|
perTaskVerifier: {
|
|
798
|
-
provider: "
|
|
418
|
+
provider: "local" | "mock" | "anthropic";
|
|
799
419
|
model?: string | undefined;
|
|
800
420
|
};
|
|
801
421
|
codeReview: {
|
|
802
|
-
provider: "
|
|
422
|
+
provider: "local" | "mock" | "anthropic";
|
|
803
423
|
model?: string | undefined;
|
|
804
424
|
};
|
|
805
425
|
planReview: {
|
|
806
|
-
provider: "
|
|
426
|
+
provider: "local" | "mock" | "anthropic";
|
|
807
427
|
model?: string | undefined;
|
|
808
428
|
};
|
|
809
429
|
securityAudit: {
|
|
810
|
-
provider: "
|
|
430
|
+
provider: "local" | "mock" | "anthropic";
|
|
811
431
|
model?: string | undefined;
|
|
812
432
|
};
|
|
813
433
|
notify: {
|
|
814
|
-
transport: "
|
|
434
|
+
transport: "file" | "stderr" | "none" | "webhook";
|
|
815
435
|
file?: string | undefined;
|
|
816
436
|
webhook?: {
|
|
817
437
|
url: string;
|