cc-codeconductor 1.7.1 → 1.8.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 +6 -6
- package/dist/core/goal/goal-state.d.ts +18 -0
- package/dist/core/hooks/hook-runner.d.ts +75 -0
- package/dist/core/orchestrator/runtime-orchestrator.d.ts +11 -3
- package/dist/core/telemetry/hook-telemetry.d.ts +55 -0
- package/dist/core/telemetry/schema.d.ts +94 -0
- package/dist/core/telemetry/store.d.ts +43 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +8527 -1109
- package/dist/library.js +1462 -738
- package/dist/validation/schemas.d.ts +927 -146
- package/dist/validation/scoped-context-schemas.d.ts +1074 -0
- package/docs/generated/cli.md +11 -1
- package/package.json +5 -2
- package/presets/agy/scripts/invoke-hook.cjs +15 -2
- package/presets/agy/skills/database-migrations/SKILL.md +64 -0
- package/presets/agy/skills/rust-async/SKILL.md +64 -0
- package/presets/agy/skills/rust-engineering/SKILL.md +69 -0
- package/presets/agy/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/claude/settings.json +34 -8
- package/presets/claude/skills/database-migrations/SKILL.md +64 -0
- package/presets/claude/skills/rust-async/SKILL.md +64 -0
- package/presets/claude/skills/rust-engineering/SKILL.md +69 -0
- package/presets/claude/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/codex/skills/database-migrations/SKILL.md +64 -0
- package/presets/codex/skills/rust-async/SKILL.md +64 -0
- package/presets/codex/skills/rust-engineering/SKILL.md +69 -0
- package/presets/codex/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/cursor/skills/database-migrations/SKILL.md +64 -0
- package/presets/cursor/skills/rust-async/SKILL.md +64 -0
- package/presets/cursor/skills/rust-engineering/SKILL.md +69 -0
- package/presets/cursor/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/opencode/skills/database-migrations/SKILL.md +64 -0
- package/presets/opencode/skills/rust-async/SKILL.md +64 -0
- package/presets/opencode/skills/rust-engineering/SKILL.md +69 -0
- package/presets/opencode/skills/rust-sqlx/SKILL.md +64 -0
- package/presets/shared/invoke-hook.cjs +15 -2
- package/pricing/pricing.v1.json +130 -0
- package/schemas/harness-telemetry.v1.json +239 -0
- package/src/presets/shared-skills.yml +8 -0
|
@@ -61,8 +61,8 @@ export declare const CouncilSpecSchema: z.ZodObject<{
|
|
|
61
61
|
focus: string[];
|
|
62
62
|
}[]>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
name: string;
|
|
65
64
|
version: string;
|
|
65
|
+
name: string;
|
|
66
66
|
description: string;
|
|
67
67
|
outputContract: string;
|
|
68
68
|
agents: {
|
|
@@ -73,8 +73,8 @@ export declare const CouncilSpecSchema: z.ZodObject<{
|
|
|
73
73
|
focus: string[];
|
|
74
74
|
}[];
|
|
75
75
|
}, {
|
|
76
|
-
name: string;
|
|
77
76
|
version: string;
|
|
77
|
+
name: string;
|
|
78
78
|
description: string;
|
|
79
79
|
outputContract: string;
|
|
80
80
|
agents: {
|
|
@@ -96,22 +96,210 @@ export declare const ProjectProfileSchema: z.ZodObject<{
|
|
|
96
96
|
frameworks: z.ZodArray<z.ZodString, "many">;
|
|
97
97
|
signals: z.ZodArray<z.ZodString, "many">;
|
|
98
98
|
confidence: z.ZodEnum<["low", "medium", "high"]>;
|
|
99
|
+
scopes: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
root: z.ZodString;
|
|
101
|
+
language: z.ZodString;
|
|
102
|
+
status: z.ZodEnum<["confirmed", "indicative", "inconclusive", "absent"]>;
|
|
103
|
+
packages: z.ZodArray<z.ZodObject<{
|
|
104
|
+
name: z.ZodString;
|
|
105
|
+
manifest: z.ZodString;
|
|
106
|
+
workspaceRoot: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, "strict", z.ZodTypeAny, {
|
|
108
|
+
manifest: string;
|
|
109
|
+
name: string;
|
|
110
|
+
workspaceRoot?: string | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
manifest: string;
|
|
113
|
+
name: string;
|
|
114
|
+
workspaceRoot?: string | undefined;
|
|
115
|
+
}>, "many">;
|
|
116
|
+
capabilities: z.ZodArray<z.ZodString, "many">;
|
|
117
|
+
declaredDatabaseBackends: z.ZodArray<z.ZodString, "many">;
|
|
118
|
+
dependencyEvidence: z.ZodArray<z.ZodObject<{
|
|
119
|
+
file: z.ZodString;
|
|
120
|
+
section: z.ZodString;
|
|
121
|
+
key: z.ZodString;
|
|
122
|
+
name: z.ZodString;
|
|
123
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
124
|
+
category: z.ZodEnum<["normal", "dev", "build"]>;
|
|
125
|
+
optional: z.ZodBoolean;
|
|
126
|
+
features: z.ZodArray<z.ZodString, "many">;
|
|
127
|
+
defaultFeatures: z.ZodBoolean;
|
|
128
|
+
target: z.ZodOptional<z.ZodString>;
|
|
129
|
+
owner: z.ZodString;
|
|
130
|
+
resolution: z.ZodEnum<["declared", "workspace-inherited", "unresolved"]>;
|
|
131
|
+
}, "strict", z.ZodTypeAny, {
|
|
132
|
+
file: string;
|
|
133
|
+
section: string;
|
|
134
|
+
key: string;
|
|
135
|
+
name: string;
|
|
136
|
+
category: "normal" | "dev" | "build";
|
|
137
|
+
optional: boolean;
|
|
138
|
+
features: string[];
|
|
139
|
+
defaultFeatures: boolean;
|
|
140
|
+
owner: string;
|
|
141
|
+
resolution: "declared" | "workspace-inherited" | "unresolved";
|
|
142
|
+
alias?: string | undefined;
|
|
143
|
+
target?: string | undefined;
|
|
144
|
+
}, {
|
|
145
|
+
file: string;
|
|
146
|
+
section: string;
|
|
147
|
+
key: string;
|
|
148
|
+
name: string;
|
|
149
|
+
category: "normal" | "dev" | "build";
|
|
150
|
+
optional: boolean;
|
|
151
|
+
features: string[];
|
|
152
|
+
defaultFeatures: boolean;
|
|
153
|
+
owner: string;
|
|
154
|
+
resolution: "declared" | "workspace-inherited" | "unresolved";
|
|
155
|
+
alias?: string | undefined;
|
|
156
|
+
target?: string | undefined;
|
|
157
|
+
}>, "many">;
|
|
158
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
159
|
+
code: z.ZodString;
|
|
160
|
+
message: z.ZodString;
|
|
161
|
+
}, "strict", z.ZodTypeAny, {
|
|
162
|
+
code: string;
|
|
163
|
+
message: string;
|
|
164
|
+
}, {
|
|
165
|
+
code: string;
|
|
166
|
+
message: string;
|
|
167
|
+
}>, "many">;
|
|
168
|
+
}, "strict", z.ZodTypeAny, {
|
|
169
|
+
status: "confirmed" | "indicative" | "inconclusive" | "absent";
|
|
170
|
+
diagnostics: {
|
|
171
|
+
code: string;
|
|
172
|
+
message: string;
|
|
173
|
+
}[];
|
|
174
|
+
root: string;
|
|
175
|
+
language: string;
|
|
176
|
+
packages: {
|
|
177
|
+
manifest: string;
|
|
178
|
+
name: string;
|
|
179
|
+
workspaceRoot?: string | undefined;
|
|
180
|
+
}[];
|
|
181
|
+
capabilities: string[];
|
|
182
|
+
declaredDatabaseBackends: string[];
|
|
183
|
+
dependencyEvidence: {
|
|
184
|
+
file: string;
|
|
185
|
+
section: string;
|
|
186
|
+
key: string;
|
|
187
|
+
name: string;
|
|
188
|
+
category: "normal" | "dev" | "build";
|
|
189
|
+
optional: boolean;
|
|
190
|
+
features: string[];
|
|
191
|
+
defaultFeatures: boolean;
|
|
192
|
+
owner: string;
|
|
193
|
+
resolution: "declared" | "workspace-inherited" | "unresolved";
|
|
194
|
+
alias?: string | undefined;
|
|
195
|
+
target?: string | undefined;
|
|
196
|
+
}[];
|
|
197
|
+
}, {
|
|
198
|
+
status: "confirmed" | "indicative" | "inconclusive" | "absent";
|
|
199
|
+
diagnostics: {
|
|
200
|
+
code: string;
|
|
201
|
+
message: string;
|
|
202
|
+
}[];
|
|
203
|
+
root: string;
|
|
204
|
+
language: string;
|
|
205
|
+
packages: {
|
|
206
|
+
manifest: string;
|
|
207
|
+
name: string;
|
|
208
|
+
workspaceRoot?: string | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
capabilities: string[];
|
|
211
|
+
declaredDatabaseBackends: string[];
|
|
212
|
+
dependencyEvidence: {
|
|
213
|
+
file: string;
|
|
214
|
+
section: string;
|
|
215
|
+
key: string;
|
|
216
|
+
name: string;
|
|
217
|
+
category: "normal" | "dev" | "build";
|
|
218
|
+
optional: boolean;
|
|
219
|
+
features: string[];
|
|
220
|
+
defaultFeatures: boolean;
|
|
221
|
+
owner: string;
|
|
222
|
+
resolution: "declared" | "workspace-inherited" | "unresolved";
|
|
223
|
+
alias?: string | undefined;
|
|
224
|
+
target?: string | undefined;
|
|
225
|
+
}[];
|
|
226
|
+
}>, "many">>;
|
|
99
227
|
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
rootDir: string;
|
|
101
228
|
languages: string[];
|
|
229
|
+
rootDir: string;
|
|
102
230
|
runtimes: string[];
|
|
103
231
|
packageManagers: string[];
|
|
104
232
|
frameworks: string[];
|
|
105
233
|
signals: string[];
|
|
106
234
|
confidence: "low" | "medium" | "high";
|
|
235
|
+
scopes?: {
|
|
236
|
+
status: "confirmed" | "indicative" | "inconclusive" | "absent";
|
|
237
|
+
diagnostics: {
|
|
238
|
+
code: string;
|
|
239
|
+
message: string;
|
|
240
|
+
}[];
|
|
241
|
+
root: string;
|
|
242
|
+
language: string;
|
|
243
|
+
packages: {
|
|
244
|
+
manifest: string;
|
|
245
|
+
name: string;
|
|
246
|
+
workspaceRoot?: string | undefined;
|
|
247
|
+
}[];
|
|
248
|
+
capabilities: string[];
|
|
249
|
+
declaredDatabaseBackends: string[];
|
|
250
|
+
dependencyEvidence: {
|
|
251
|
+
file: string;
|
|
252
|
+
section: string;
|
|
253
|
+
key: string;
|
|
254
|
+
name: string;
|
|
255
|
+
category: "normal" | "dev" | "build";
|
|
256
|
+
optional: boolean;
|
|
257
|
+
features: string[];
|
|
258
|
+
defaultFeatures: boolean;
|
|
259
|
+
owner: string;
|
|
260
|
+
resolution: "declared" | "workspace-inherited" | "unresolved";
|
|
261
|
+
alias?: string | undefined;
|
|
262
|
+
target?: string | undefined;
|
|
263
|
+
}[];
|
|
264
|
+
}[] | undefined;
|
|
107
265
|
}, {
|
|
108
|
-
rootDir: string;
|
|
109
266
|
languages: string[];
|
|
267
|
+
rootDir: string;
|
|
110
268
|
runtimes: string[];
|
|
111
269
|
packageManagers: string[];
|
|
112
270
|
frameworks: string[];
|
|
113
271
|
signals: string[];
|
|
114
272
|
confidence: "low" | "medium" | "high";
|
|
273
|
+
scopes?: {
|
|
274
|
+
status: "confirmed" | "indicative" | "inconclusive" | "absent";
|
|
275
|
+
diagnostics: {
|
|
276
|
+
code: string;
|
|
277
|
+
message: string;
|
|
278
|
+
}[];
|
|
279
|
+
root: string;
|
|
280
|
+
language: string;
|
|
281
|
+
packages: {
|
|
282
|
+
manifest: string;
|
|
283
|
+
name: string;
|
|
284
|
+
workspaceRoot?: string | undefined;
|
|
285
|
+
}[];
|
|
286
|
+
capabilities: string[];
|
|
287
|
+
declaredDatabaseBackends: string[];
|
|
288
|
+
dependencyEvidence: {
|
|
289
|
+
file: string;
|
|
290
|
+
section: string;
|
|
291
|
+
key: string;
|
|
292
|
+
name: string;
|
|
293
|
+
category: "normal" | "dev" | "build";
|
|
294
|
+
optional: boolean;
|
|
295
|
+
features: string[];
|
|
296
|
+
defaultFeatures: boolean;
|
|
297
|
+
owner: string;
|
|
298
|
+
resolution: "declared" | "workspace-inherited" | "unresolved";
|
|
299
|
+
alias?: string | undefined;
|
|
300
|
+
target?: string | undefined;
|
|
301
|
+
}[];
|
|
302
|
+
}[] | undefined;
|
|
115
303
|
}>;
|
|
116
304
|
/**
|
|
117
305
|
* Compile check config schema — validates the compileCheck section.
|
|
@@ -462,6 +650,7 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
462
650
|
tools: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
463
651
|
permissions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
464
652
|
}, "strip", z.ZodTypeAny, {
|
|
653
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
|
|
465
654
|
agents: Record<string, {
|
|
466
655
|
opencode?: string | undefined;
|
|
467
656
|
claude?: string | undefined;
|
|
@@ -473,10 +662,10 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
473
662
|
muse?: string | undefined;
|
|
474
663
|
grok?: string | undefined;
|
|
475
664
|
}>;
|
|
476
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
|
|
477
665
|
tools?: Record<string, Record<string, string>> | undefined;
|
|
478
666
|
permissions?: Record<string, string> | undefined;
|
|
479
667
|
}, {
|
|
668
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
|
|
480
669
|
agents: Record<string, {
|
|
481
670
|
opencode?: string | undefined;
|
|
482
671
|
claude?: string | undefined;
|
|
@@ -488,7 +677,6 @@ export declare const ModelConfigSchema: z.ZodObject<{
|
|
|
488
677
|
muse?: string | undefined;
|
|
489
678
|
grok?: string | undefined;
|
|
490
679
|
}>;
|
|
491
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
|
|
492
680
|
tools?: Record<string, Record<string, string>> | undefined;
|
|
493
681
|
permissions?: Record<string, string> | undefined;
|
|
494
682
|
}>;
|
|
@@ -586,27 +774,27 @@ export declare const TargetCapabilitiesSchema: z.ZodObject<{
|
|
|
586
774
|
}>;
|
|
587
775
|
}, "strip", z.ZodTypeAny, {
|
|
588
776
|
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
|
|
589
|
-
invocation: "colon" | "hyphen" | "dollar";
|
|
590
|
-
commandFormat: "markdown" | "toml" | "skill";
|
|
591
|
-
contextFile: string;
|
|
592
777
|
capabilities: {
|
|
593
778
|
council: boolean;
|
|
594
779
|
subagents: boolean;
|
|
595
780
|
hooks: boolean;
|
|
596
781
|
mcp: boolean;
|
|
597
782
|
};
|
|
598
|
-
subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
|
|
599
|
-
}, {
|
|
600
|
-
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
|
|
601
783
|
invocation: "colon" | "hyphen" | "dollar";
|
|
602
784
|
commandFormat: "markdown" | "toml" | "skill";
|
|
603
785
|
contextFile: string;
|
|
786
|
+
subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
|
|
787
|
+
}, {
|
|
788
|
+
target: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse";
|
|
604
789
|
capabilities: {
|
|
605
790
|
council: boolean;
|
|
606
791
|
subagents: boolean;
|
|
607
792
|
hooks: boolean;
|
|
608
793
|
mcp: boolean;
|
|
609
794
|
};
|
|
795
|
+
invocation: "colon" | "hyphen" | "dollar";
|
|
796
|
+
commandFormat: "markdown" | "toml" | "skill";
|
|
797
|
+
contextFile: string;
|
|
610
798
|
subagentInvocationStyle?: "task-tool" | "adopt-role" | "invoke-with-context" | undefined;
|
|
611
799
|
}>;
|
|
612
800
|
export type TargetCapabilities = z.infer<typeof TargetCapabilitiesSchema>;
|
|
@@ -713,8 +901,8 @@ export declare const AgentContractSchema: z.ZodObject<{
|
|
|
713
901
|
focus: string[];
|
|
714
902
|
}[]>;
|
|
715
903
|
}, "strip", z.ZodTypeAny, {
|
|
716
|
-
name: string;
|
|
717
904
|
version: string;
|
|
905
|
+
name: string;
|
|
718
906
|
description: string;
|
|
719
907
|
outputContract: string;
|
|
720
908
|
agents: {
|
|
@@ -725,8 +913,8 @@ export declare const AgentContractSchema: z.ZodObject<{
|
|
|
725
913
|
focus: string[];
|
|
726
914
|
}[];
|
|
727
915
|
}, {
|
|
728
|
-
name: string;
|
|
729
916
|
version: string;
|
|
917
|
+
name: string;
|
|
730
918
|
description: string;
|
|
731
919
|
outputContract: string;
|
|
732
920
|
agents: {
|
|
@@ -751,8 +939,8 @@ export declare const AgentContractSchema: z.ZodObject<{
|
|
|
751
939
|
renderHints: z.ZodOptional<z.ZodRecord<z.ZodEnum<["claude", "opencode", "codex", "gemini", "cursor", "agy"]>, z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
752
940
|
}, "strip", z.ZodTypeAny, {
|
|
753
941
|
council: {
|
|
754
|
-
name: string;
|
|
755
942
|
version: string;
|
|
943
|
+
name: string;
|
|
756
944
|
description: string;
|
|
757
945
|
outputContract: string;
|
|
758
946
|
agents: {
|
|
@@ -771,8 +959,8 @@ export declare const AgentContractSchema: z.ZodObject<{
|
|
|
771
959
|
renderHints?: Partial<Record<"opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy", Record<string, unknown>>> | undefined;
|
|
772
960
|
}, {
|
|
773
961
|
council: {
|
|
774
|
-
name: string;
|
|
775
962
|
version: string;
|
|
963
|
+
name: string;
|
|
776
964
|
description: string;
|
|
777
965
|
outputContract: string;
|
|
778
966
|
agents: {
|
|
@@ -800,13 +988,13 @@ export declare const CouncilFindingSchema: z.ZodObject<{
|
|
|
800
988
|
agentId: z.ZodString;
|
|
801
989
|
}, "strip", z.ZodTypeAny, {
|
|
802
990
|
message: string;
|
|
803
|
-
category: string;
|
|
804
991
|
severity: "info" | "warning" | "critical";
|
|
992
|
+
category: string;
|
|
805
993
|
agentId: string;
|
|
806
994
|
}, {
|
|
807
995
|
message: string;
|
|
808
|
-
category: string;
|
|
809
996
|
severity: "info" | "warning" | "critical";
|
|
997
|
+
category: string;
|
|
810
998
|
agentId: string;
|
|
811
999
|
}>;
|
|
812
1000
|
/**
|
|
@@ -826,13 +1014,13 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
|
|
|
826
1014
|
agentId: z.ZodString;
|
|
827
1015
|
}, "strip", z.ZodTypeAny, {
|
|
828
1016
|
message: string;
|
|
829
|
-
category: string;
|
|
830
1017
|
severity: "info" | "warning" | "critical";
|
|
1018
|
+
category: string;
|
|
831
1019
|
agentId: string;
|
|
832
1020
|
}, {
|
|
833
1021
|
message: string;
|
|
834
|
-
category: string;
|
|
835
1022
|
severity: "info" | "warning" | "critical";
|
|
1023
|
+
category: string;
|
|
836
1024
|
agentId: string;
|
|
837
1025
|
}>, "many">;
|
|
838
1026
|
summary: z.ZodString;
|
|
@@ -845,8 +1033,8 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
|
|
|
845
1033
|
securityVeto: boolean;
|
|
846
1034
|
findings: {
|
|
847
1035
|
message: string;
|
|
848
|
-
category: string;
|
|
849
1036
|
severity: "info" | "warning" | "critical";
|
|
1037
|
+
category: string;
|
|
850
1038
|
agentId: string;
|
|
851
1039
|
}[];
|
|
852
1040
|
summary: string;
|
|
@@ -860,8 +1048,8 @@ export declare const CouncilVerdictInputSchema: z.ZodObject<{
|
|
|
860
1048
|
securityVeto: boolean;
|
|
861
1049
|
findings: {
|
|
862
1050
|
message: string;
|
|
863
|
-
category: string;
|
|
864
1051
|
severity: "info" | "warning" | "critical";
|
|
1052
|
+
category: string;
|
|
865
1053
|
agentId: string;
|
|
866
1054
|
}[];
|
|
867
1055
|
summary: string;
|
|
@@ -948,13 +1136,13 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
948
1136
|
agentId: z.ZodString;
|
|
949
1137
|
}, "strip", z.ZodTypeAny, {
|
|
950
1138
|
message: string;
|
|
951
|
-
category: string;
|
|
952
1139
|
severity: "info" | "warning" | "critical";
|
|
1140
|
+
category: string;
|
|
953
1141
|
agentId: string;
|
|
954
1142
|
}, {
|
|
955
1143
|
message: string;
|
|
956
|
-
category: string;
|
|
957
1144
|
severity: "info" | "warning" | "critical";
|
|
1145
|
+
category: string;
|
|
958
1146
|
agentId: string;
|
|
959
1147
|
}>, "many">;
|
|
960
1148
|
summary: z.ZodString;
|
|
@@ -972,13 +1160,13 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
972
1160
|
agentId: z.ZodString;
|
|
973
1161
|
}, "strip", z.ZodTypeAny, {
|
|
974
1162
|
message: string;
|
|
975
|
-
category: string;
|
|
976
1163
|
severity: "info" | "warning" | "critical";
|
|
1164
|
+
category: string;
|
|
977
1165
|
agentId: string;
|
|
978
1166
|
}, {
|
|
979
1167
|
message: string;
|
|
980
|
-
category: string;
|
|
981
1168
|
severity: "info" | "warning" | "critical";
|
|
1169
|
+
category: string;
|
|
982
1170
|
agentId: string;
|
|
983
1171
|
}>, "many">;
|
|
984
1172
|
summary: z.ZodString;
|
|
@@ -991,8 +1179,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
991
1179
|
securityVeto: boolean;
|
|
992
1180
|
findings: {
|
|
993
1181
|
message: string;
|
|
994
|
-
category: string;
|
|
995
1182
|
severity: "info" | "warning" | "critical";
|
|
1183
|
+
category: string;
|
|
996
1184
|
agentId: string;
|
|
997
1185
|
}[];
|
|
998
1186
|
summary: string;
|
|
@@ -1006,8 +1194,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
1006
1194
|
securityVeto: boolean;
|
|
1007
1195
|
findings: {
|
|
1008
1196
|
message: string;
|
|
1009
|
-
category: string;
|
|
1010
1197
|
severity: "info" | "warning" | "critical";
|
|
1198
|
+
category: string;
|
|
1011
1199
|
agentId: string;
|
|
1012
1200
|
}[];
|
|
1013
1201
|
summary: string;
|
|
@@ -1018,8 +1206,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
1018
1206
|
status: "APPROVED" | "REJECTED" | "ESCALATED";
|
|
1019
1207
|
findings: {
|
|
1020
1208
|
message: string;
|
|
1021
|
-
category: string;
|
|
1022
1209
|
severity: "info" | "warning" | "critical";
|
|
1210
|
+
category: string;
|
|
1023
1211
|
agentId: string;
|
|
1024
1212
|
}[];
|
|
1025
1213
|
summary: string;
|
|
@@ -1036,8 +1224,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
1036
1224
|
securityVeto: boolean;
|
|
1037
1225
|
findings: {
|
|
1038
1226
|
message: string;
|
|
1039
|
-
category: string;
|
|
1040
1227
|
severity: "info" | "warning" | "critical";
|
|
1228
|
+
category: string;
|
|
1041
1229
|
agentId: string;
|
|
1042
1230
|
}[];
|
|
1043
1231
|
summary: string;
|
|
@@ -1051,8 +1239,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
1051
1239
|
status: "APPROVED" | "REJECTED" | "ESCALATED";
|
|
1052
1240
|
findings: {
|
|
1053
1241
|
message: string;
|
|
1054
|
-
category: string;
|
|
1055
1242
|
severity: "info" | "warning" | "critical";
|
|
1243
|
+
category: string;
|
|
1056
1244
|
agentId: string;
|
|
1057
1245
|
}[];
|
|
1058
1246
|
summary: string;
|
|
@@ -1069,8 +1257,8 @@ export declare const CouncilVerdictSchema: z.ZodObject<{
|
|
|
1069
1257
|
securityVeto: boolean;
|
|
1070
1258
|
findings: {
|
|
1071
1259
|
message: string;
|
|
1072
|
-
category: string;
|
|
1073
1260
|
severity: "info" | "warning" | "critical";
|
|
1261
|
+
category: string;
|
|
1074
1262
|
agentId: string;
|
|
1075
1263
|
}[];
|
|
1076
1264
|
summary: string;
|
|
@@ -1175,8 +1363,8 @@ export declare const SentryWebhookSchema: z.ZodObject<{
|
|
|
1175
1363
|
lineNo: number;
|
|
1176
1364
|
colNo?: number | undefined;
|
|
1177
1365
|
}[];
|
|
1178
|
-
filename?: string | undefined;
|
|
1179
1366
|
environment?: string | undefined;
|
|
1367
|
+
filename?: string | undefined;
|
|
1180
1368
|
release?: string | undefined;
|
|
1181
1369
|
}, {
|
|
1182
1370
|
issueId: string;
|
|
@@ -1189,8 +1377,8 @@ export declare const SentryWebhookSchema: z.ZodObject<{
|
|
|
1189
1377
|
lineNo: number;
|
|
1190
1378
|
colNo?: number | undefined;
|
|
1191
1379
|
}[];
|
|
1192
|
-
filename?: string | undefined;
|
|
1193
1380
|
environment?: string | undefined;
|
|
1381
|
+
filename?: string | undefined;
|
|
1194
1382
|
release?: string | undefined;
|
|
1195
1383
|
}>;
|
|
1196
1384
|
export type SentryWebhookInput = z.infer<typeof SentryWebhookSchema>;
|
|
@@ -1206,16 +1394,16 @@ export declare const MemoryPointerSchema: z.ZodObject<{
|
|
|
1206
1394
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1207
1395
|
}, "strip", z.ZodTypeAny, {
|
|
1208
1396
|
id: number;
|
|
1397
|
+
file: string;
|
|
1209
1398
|
summary: string;
|
|
1210
1399
|
topic_key: string;
|
|
1211
|
-
file: string;
|
|
1212
1400
|
timestamp: string;
|
|
1213
1401
|
tags: string[];
|
|
1214
1402
|
}, {
|
|
1215
1403
|
id: number;
|
|
1404
|
+
file: string;
|
|
1216
1405
|
summary: string;
|
|
1217
1406
|
topic_key: string;
|
|
1218
|
-
file: string;
|
|
1219
1407
|
timestamp: string;
|
|
1220
1408
|
tags?: string[] | undefined;
|
|
1221
1409
|
}>;
|
|
@@ -1233,16 +1421,16 @@ export declare const MemoryIndexSchema: z.ZodObject<{
|
|
|
1233
1421
|
tags: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1234
1422
|
}, "strip", z.ZodTypeAny, {
|
|
1235
1423
|
id: number;
|
|
1424
|
+
file: string;
|
|
1236
1425
|
summary: string;
|
|
1237
1426
|
topic_key: string;
|
|
1238
|
-
file: string;
|
|
1239
1427
|
timestamp: string;
|
|
1240
1428
|
tags: string[];
|
|
1241
1429
|
}, {
|
|
1242
1430
|
id: number;
|
|
1431
|
+
file: string;
|
|
1243
1432
|
summary: string;
|
|
1244
1433
|
topic_key: string;
|
|
1245
|
-
file: string;
|
|
1246
1434
|
timestamp: string;
|
|
1247
1435
|
tags?: string[] | undefined;
|
|
1248
1436
|
}>, "many">;
|
|
@@ -1250,9 +1438,9 @@ export declare const MemoryIndexSchema: z.ZodObject<{
|
|
|
1250
1438
|
version: 1;
|
|
1251
1439
|
pointers: {
|
|
1252
1440
|
id: number;
|
|
1441
|
+
file: string;
|
|
1253
1442
|
summary: string;
|
|
1254
1443
|
topic_key: string;
|
|
1255
|
-
file: string;
|
|
1256
1444
|
timestamp: string;
|
|
1257
1445
|
tags: string[];
|
|
1258
1446
|
}[];
|
|
@@ -1260,13 +1448,70 @@ export declare const MemoryIndexSchema: z.ZodObject<{
|
|
|
1260
1448
|
version: 1;
|
|
1261
1449
|
pointers: {
|
|
1262
1450
|
id: number;
|
|
1451
|
+
file: string;
|
|
1263
1452
|
summary: string;
|
|
1264
1453
|
topic_key: string;
|
|
1265
|
-
file: string;
|
|
1266
1454
|
timestamp: string;
|
|
1267
1455
|
tags?: string[] | undefined;
|
|
1268
1456
|
}[];
|
|
1269
1457
|
}>;
|
|
1458
|
+
/**
|
|
1459
|
+
* Code index schema — structural symbol map persisted as plain JSON.
|
|
1460
|
+
*/
|
|
1461
|
+
export declare const CodeIndexSymbolSchema: z.ZodObject<{
|
|
1462
|
+
name: z.ZodString;
|
|
1463
|
+
kind: z.ZodEnum<["function", "class", "interface", "type", "const"]>;
|
|
1464
|
+
startLine: z.ZodNumber;
|
|
1465
|
+
endLine: z.ZodNumber;
|
|
1466
|
+
}, "strip", z.ZodTypeAny, {
|
|
1467
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1468
|
+
name: string;
|
|
1469
|
+
startLine: number;
|
|
1470
|
+
endLine: number;
|
|
1471
|
+
}, {
|
|
1472
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1473
|
+
name: string;
|
|
1474
|
+
startLine: number;
|
|
1475
|
+
endLine: number;
|
|
1476
|
+
}>;
|
|
1477
|
+
export declare const CodeIndexSchema: z.ZodObject<{
|
|
1478
|
+
version: z.ZodLiteral<1>;
|
|
1479
|
+
generatedAt: z.ZodString;
|
|
1480
|
+
files: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodObject<{
|
|
1481
|
+
name: z.ZodString;
|
|
1482
|
+
kind: z.ZodEnum<["function", "class", "interface", "type", "const"]>;
|
|
1483
|
+
startLine: z.ZodNumber;
|
|
1484
|
+
endLine: z.ZodNumber;
|
|
1485
|
+
}, "strip", z.ZodTypeAny, {
|
|
1486
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1487
|
+
name: string;
|
|
1488
|
+
startLine: number;
|
|
1489
|
+
endLine: number;
|
|
1490
|
+
}, {
|
|
1491
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1492
|
+
name: string;
|
|
1493
|
+
startLine: number;
|
|
1494
|
+
endLine: number;
|
|
1495
|
+
}>, "many">>;
|
|
1496
|
+
}, "strip", z.ZodTypeAny, {
|
|
1497
|
+
files: Record<string, {
|
|
1498
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1499
|
+
name: string;
|
|
1500
|
+
startLine: number;
|
|
1501
|
+
endLine: number;
|
|
1502
|
+
}[]>;
|
|
1503
|
+
version: 1;
|
|
1504
|
+
generatedAt: string;
|
|
1505
|
+
}, {
|
|
1506
|
+
files: Record<string, {
|
|
1507
|
+
kind: "function" | "type" | "class" | "interface" | "const";
|
|
1508
|
+
name: string;
|
|
1509
|
+
startLine: number;
|
|
1510
|
+
endLine: number;
|
|
1511
|
+
}[]>;
|
|
1512
|
+
version: 1;
|
|
1513
|
+
generatedAt: string;
|
|
1514
|
+
}>;
|
|
1270
1515
|
/**
|
|
1271
1516
|
* Goal task schema — a single task in a goal graph
|
|
1272
1517
|
*/
|
|
@@ -1281,6 +1526,8 @@ export declare const GoalTaskSchema: z.ZodObject<{
|
|
|
1281
1526
|
acceptance_criteria: z.ZodArray<z.ZodString, "many">;
|
|
1282
1527
|
blocked_reason: z.ZodOptional<z.ZodString>;
|
|
1283
1528
|
context_scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<["isolated", "continuation", "full"]>>>;
|
|
1529
|
+
consecutive_failures: z.ZodOptional<z.ZodNumber>;
|
|
1530
|
+
frozen: z.ZodOptional<z.ZodBoolean>;
|
|
1284
1531
|
}, "strip", z.ZodTypeAny, {
|
|
1285
1532
|
id: string;
|
|
1286
1533
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1292,6 +1539,8 @@ export declare const GoalTaskSchema: z.ZodObject<{
|
|
|
1292
1539
|
context_scope: "isolated" | "continuation" | "full";
|
|
1293
1540
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
1294
1541
|
blocked_reason?: string | undefined;
|
|
1542
|
+
consecutive_failures?: number | undefined;
|
|
1543
|
+
frozen?: boolean | undefined;
|
|
1295
1544
|
}, {
|
|
1296
1545
|
id: string;
|
|
1297
1546
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1303,6 +1552,8 @@ export declare const GoalTaskSchema: z.ZodObject<{
|
|
|
1303
1552
|
depends_on?: string[] | undefined;
|
|
1304
1553
|
blocked_reason?: string | undefined;
|
|
1305
1554
|
context_scope?: "isolated" | "continuation" | "full" | undefined;
|
|
1555
|
+
consecutive_failures?: number | undefined;
|
|
1556
|
+
frozen?: boolean | undefined;
|
|
1306
1557
|
}>;
|
|
1307
1558
|
/**
|
|
1308
1559
|
* Goal graph schema — a complete goal with task dependencies
|
|
@@ -1320,6 +1571,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1320
1571
|
acceptance_criteria: z.ZodArray<z.ZodString, "many">;
|
|
1321
1572
|
blocked_reason: z.ZodOptional<z.ZodString>;
|
|
1322
1573
|
context_scope: z.ZodDefault<z.ZodOptional<z.ZodEnum<["isolated", "continuation", "full"]>>>;
|
|
1574
|
+
consecutive_failures: z.ZodOptional<z.ZodNumber>;
|
|
1575
|
+
frozen: z.ZodOptional<z.ZodBoolean>;
|
|
1323
1576
|
}, "strip", z.ZodTypeAny, {
|
|
1324
1577
|
id: string;
|
|
1325
1578
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1331,6 +1584,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1331
1584
|
context_scope: "isolated" | "continuation" | "full";
|
|
1332
1585
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
1333
1586
|
blocked_reason?: string | undefined;
|
|
1587
|
+
consecutive_failures?: number | undefined;
|
|
1588
|
+
frozen?: boolean | undefined;
|
|
1334
1589
|
}, {
|
|
1335
1590
|
id: string;
|
|
1336
1591
|
status: "pending" | "in-progress" | "done" | "blocked";
|
|
@@ -1342,6 +1597,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1342
1597
|
depends_on?: string[] | undefined;
|
|
1343
1598
|
blocked_reason?: string | undefined;
|
|
1344
1599
|
context_scope?: "isolated" | "continuation" | "full" | undefined;
|
|
1600
|
+
consecutive_failures?: number | undefined;
|
|
1601
|
+
frozen?: boolean | undefined;
|
|
1345
1602
|
}>, "many">;
|
|
1346
1603
|
created_at: z.ZodString;
|
|
1347
1604
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1357,6 +1614,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1357
1614
|
context_scope: "isolated" | "continuation" | "full";
|
|
1358
1615
|
priority?: "P0" | "P1" | "P2" | "P3" | undefined;
|
|
1359
1616
|
blocked_reason?: string | undefined;
|
|
1617
|
+
consecutive_failures?: number | undefined;
|
|
1618
|
+
frozen?: boolean | undefined;
|
|
1360
1619
|
}[];
|
|
1361
1620
|
created_at: string;
|
|
1362
1621
|
}, {
|
|
@@ -1372,6 +1631,8 @@ export declare const GoalGraphSchema: z.ZodObject<{
|
|
|
1372
1631
|
depends_on?: string[] | undefined;
|
|
1373
1632
|
blocked_reason?: string | undefined;
|
|
1374
1633
|
context_scope?: "isolated" | "continuation" | "full" | undefined;
|
|
1634
|
+
consecutive_failures?: number | undefined;
|
|
1635
|
+
frozen?: boolean | undefined;
|
|
1375
1636
|
}[];
|
|
1376
1637
|
created_at: string;
|
|
1377
1638
|
}>;
|
|
@@ -1398,10 +1659,10 @@ export declare const KnowledgeEntitySchema: z.ZodObject<{
|
|
|
1398
1659
|
data: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1399
1660
|
}, "strip", z.ZodTypeAny, {
|
|
1400
1661
|
id: string;
|
|
1401
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1662
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1663
|
+
source: string;
|
|
1402
1664
|
name: string;
|
|
1403
1665
|
confidence: "low" | "medium" | "high";
|
|
1404
|
-
source: string;
|
|
1405
1666
|
relations: {
|
|
1406
1667
|
targetId: string;
|
|
1407
1668
|
relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
|
|
@@ -1410,10 +1671,10 @@ export declare const KnowledgeEntitySchema: z.ZodObject<{
|
|
|
1410
1671
|
version?: string | undefined;
|
|
1411
1672
|
}, {
|
|
1412
1673
|
id: string;
|
|
1413
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1674
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1675
|
+
source: string;
|
|
1414
1676
|
name: string;
|
|
1415
1677
|
confidence: "low" | "medium" | "high";
|
|
1416
|
-
source: string;
|
|
1417
1678
|
version?: string | undefined;
|
|
1418
1679
|
relations?: {
|
|
1419
1680
|
targetId: string;
|
|
@@ -1434,8 +1695,8 @@ export declare const DecisionSchema: z.ZodObject<{
|
|
|
1434
1695
|
source: z.ZodOptional<z.ZodString>;
|
|
1435
1696
|
}, "strip", z.ZodTypeAny, {
|
|
1436
1697
|
id: string;
|
|
1437
|
-
context: string;
|
|
1438
1698
|
date: string;
|
|
1699
|
+
context: string;
|
|
1439
1700
|
alternatives: string[];
|
|
1440
1701
|
chosenOption: string;
|
|
1441
1702
|
rationale: string;
|
|
@@ -1445,8 +1706,8 @@ export declare const DecisionSchema: z.ZodObject<{
|
|
|
1445
1706
|
source?: string | undefined;
|
|
1446
1707
|
}, {
|
|
1447
1708
|
id: string;
|
|
1448
|
-
context: string;
|
|
1449
1709
|
date: string;
|
|
1710
|
+
context: string;
|
|
1450
1711
|
chosenOption: string;
|
|
1451
1712
|
rationale: string;
|
|
1452
1713
|
source?: string | undefined;
|
|
@@ -1469,9 +1730,9 @@ export declare const EvidenceSchema: z.ZodObject<{
|
|
|
1469
1730
|
}, "strip", z.ZodTypeAny, {
|
|
1470
1731
|
id: string;
|
|
1471
1732
|
type: string;
|
|
1733
|
+
source: string;
|
|
1472
1734
|
confidence: number;
|
|
1473
1735
|
timestamp: string;
|
|
1474
|
-
source: string;
|
|
1475
1736
|
summary?: string | undefined;
|
|
1476
1737
|
data?: Record<string, unknown> | undefined;
|
|
1477
1738
|
relatedTask?: string | undefined;
|
|
@@ -1480,9 +1741,9 @@ export declare const EvidenceSchema: z.ZodObject<{
|
|
|
1480
1741
|
}, {
|
|
1481
1742
|
id: string;
|
|
1482
1743
|
type: string;
|
|
1744
|
+
source: string;
|
|
1483
1745
|
confidence: number;
|
|
1484
1746
|
timestamp: string;
|
|
1485
|
-
source: string;
|
|
1486
1747
|
summary?: string | undefined;
|
|
1487
1748
|
data?: Record<string, unknown> | undefined;
|
|
1488
1749
|
relatedTask?: string | undefined;
|
|
@@ -1535,9 +1796,9 @@ export declare const CanonicalTaskCardSchema: z.ZodObject<{
|
|
|
1535
1796
|
authorization: z.ZodOptional<z.ZodString>;
|
|
1536
1797
|
}, "strip", z.ZodTypeAny, {
|
|
1537
1798
|
id: string;
|
|
1538
|
-
context: string;
|
|
1539
1799
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
1540
1800
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
1801
|
+
context: string;
|
|
1541
1802
|
title: string;
|
|
1542
1803
|
risk: "low" | "medium" | "high";
|
|
1543
1804
|
objective: string;
|
|
@@ -1559,9 +1820,9 @@ export declare const CanonicalTaskCardSchema: z.ZodObject<{
|
|
|
1559
1820
|
authorization?: string | undefined;
|
|
1560
1821
|
}, {
|
|
1561
1822
|
id: string;
|
|
1562
|
-
context: string;
|
|
1563
1823
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
1564
1824
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
1825
|
+
context: string;
|
|
1565
1826
|
title: string;
|
|
1566
1827
|
risk: "low" | "medium" | "high";
|
|
1567
1828
|
objective: string;
|
|
@@ -1592,19 +1853,19 @@ export declare const ProductGraphNodeSchema: z.ZodObject<{
|
|
|
1592
1853
|
version: z.ZodOptional<z.ZodString>;
|
|
1593
1854
|
}, "strip", z.ZodTypeAny, {
|
|
1594
1855
|
id: string;
|
|
1595
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1856
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1596
1857
|
name: string;
|
|
1597
1858
|
data: Record<string, unknown>;
|
|
1598
1859
|
version?: string | undefined;
|
|
1599
|
-
confidence?: "low" | "medium" | "high" | undefined;
|
|
1600
1860
|
source?: string | undefined;
|
|
1861
|
+
confidence?: "low" | "medium" | "high" | undefined;
|
|
1601
1862
|
}, {
|
|
1602
1863
|
id: string;
|
|
1603
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1864
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1604
1865
|
name: string;
|
|
1605
1866
|
version?: string | undefined;
|
|
1606
|
-
confidence?: "low" | "medium" | "high" | undefined;
|
|
1607
1867
|
source?: string | undefined;
|
|
1868
|
+
confidence?: "low" | "medium" | "high" | undefined;
|
|
1608
1869
|
data?: Record<string, unknown> | undefined;
|
|
1609
1870
|
}>;
|
|
1610
1871
|
export declare const ProductGraphEdgeSchema: z.ZodObject<{
|
|
@@ -1634,19 +1895,19 @@ export declare const ProductGraphSchema: z.ZodObject<{
|
|
|
1634
1895
|
version: z.ZodOptional<z.ZodString>;
|
|
1635
1896
|
}, "strip", z.ZodTypeAny, {
|
|
1636
1897
|
id: string;
|
|
1637
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1898
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1638
1899
|
name: string;
|
|
1639
1900
|
data: Record<string, unknown>;
|
|
1640
1901
|
version?: string | undefined;
|
|
1641
|
-
confidence?: "low" | "medium" | "high" | undefined;
|
|
1642
1902
|
source?: string | undefined;
|
|
1903
|
+
confidence?: "low" | "medium" | "high" | undefined;
|
|
1643
1904
|
}, {
|
|
1644
1905
|
id: string;
|
|
1645
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1906
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1646
1907
|
name: string;
|
|
1647
1908
|
version?: string | undefined;
|
|
1648
|
-
confidence?: "low" | "medium" | "high" | undefined;
|
|
1649
1909
|
source?: string | undefined;
|
|
1910
|
+
confidence?: "low" | "medium" | "high" | undefined;
|
|
1650
1911
|
data?: Record<string, unknown> | undefined;
|
|
1651
1912
|
}>, "many">;
|
|
1652
1913
|
edges: z.ZodArray<z.ZodObject<{
|
|
@@ -1669,12 +1930,12 @@ export declare const ProductGraphSchema: z.ZodObject<{
|
|
|
1669
1930
|
productName: string;
|
|
1670
1931
|
nodes: {
|
|
1671
1932
|
id: string;
|
|
1672
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1933
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1673
1934
|
name: string;
|
|
1674
1935
|
data: Record<string, unknown>;
|
|
1675
1936
|
version?: string | undefined;
|
|
1676
|
-
confidence?: "low" | "medium" | "high" | undefined;
|
|
1677
1937
|
source?: string | undefined;
|
|
1938
|
+
confidence?: "low" | "medium" | "high" | undefined;
|
|
1678
1939
|
}[];
|
|
1679
1940
|
edges: {
|
|
1680
1941
|
relation: "depends_on" | "implements" | "documents" | "affects" | "evidences" | "blocks" | "contains";
|
|
@@ -1688,11 +1949,11 @@ export declare const ProductGraphSchema: z.ZodObject<{
|
|
|
1688
1949
|
productName: string;
|
|
1689
1950
|
nodes: {
|
|
1690
1951
|
id: string;
|
|
1691
|
-
type: "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric"
|
|
1952
|
+
type: "task" | "evidence" | "risk" | "product" | "domain" | "capability" | "requirement" | "decision" | "component" | "flow" | "contract" | "metric";
|
|
1692
1953
|
name: string;
|
|
1693
1954
|
version?: string | undefined;
|
|
1694
|
-
confidence?: "low" | "medium" | "high" | undefined;
|
|
1695
1955
|
source?: string | undefined;
|
|
1956
|
+
confidence?: "low" | "medium" | "high" | undefined;
|
|
1696
1957
|
data?: Record<string, unknown> | undefined;
|
|
1697
1958
|
}[];
|
|
1698
1959
|
edges: {
|
|
@@ -1744,12 +2005,12 @@ export declare const OperationalStateSchema: z.ZodObject<{
|
|
|
1744
2005
|
reason: z.ZodString;
|
|
1745
2006
|
since: z.ZodString;
|
|
1746
2007
|
}, "strip", z.ZodTypeAny, {
|
|
1747
|
-
taskId: string;
|
|
1748
2008
|
reason: string;
|
|
2009
|
+
taskId: string;
|
|
1749
2010
|
since: string;
|
|
1750
2011
|
}, {
|
|
1751
|
-
taskId: string;
|
|
1752
2012
|
reason: string;
|
|
2013
|
+
taskId: string;
|
|
1753
2014
|
since: string;
|
|
1754
2015
|
}>, "many">>;
|
|
1755
2016
|
sprintFocus: z.ZodOptional<z.ZodString>;
|
|
@@ -1760,8 +2021,8 @@ export declare const OperationalStateSchema: z.ZodObject<{
|
|
|
1760
2021
|
activeAgents: string[];
|
|
1761
2022
|
activeTaskIds: string[];
|
|
1762
2023
|
blockers: {
|
|
1763
|
-
taskId: string;
|
|
1764
2024
|
reason: string;
|
|
2025
|
+
taskId: string;
|
|
1765
2026
|
since: string;
|
|
1766
2027
|
}[];
|
|
1767
2028
|
sprintFocus?: string | undefined;
|
|
@@ -1771,8 +2032,8 @@ export declare const OperationalStateSchema: z.ZodObject<{
|
|
|
1771
2032
|
activeAgents?: string[] | undefined;
|
|
1772
2033
|
activeTaskIds?: string[] | undefined;
|
|
1773
2034
|
blockers?: {
|
|
1774
|
-
taskId: string;
|
|
1775
2035
|
reason: string;
|
|
2036
|
+
taskId: string;
|
|
1776
2037
|
since: string;
|
|
1777
2038
|
}[] | undefined;
|
|
1778
2039
|
sprintFocus?: string | undefined;
|
|
@@ -1944,14 +2205,14 @@ export declare const BacklogItemSchema: z.ZodObject<{
|
|
|
1944
2205
|
lastUpdate: z.ZodOptional<z.ZodString>;
|
|
1945
2206
|
}, "strip", z.ZodTypeAny, {
|
|
1946
2207
|
id: string;
|
|
1947
|
-
status: "
|
|
2208
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
1948
2209
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2210
|
+
scope: string;
|
|
1949
2211
|
description: string;
|
|
1950
2212
|
title: string;
|
|
1951
2213
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
1952
2214
|
acceptanceCriteria: string[];
|
|
1953
2215
|
dependencies: string[];
|
|
1954
|
-
scope: string;
|
|
1955
2216
|
outOfScope: string;
|
|
1956
2217
|
progress: number;
|
|
1957
2218
|
owner?: string | undefined;
|
|
@@ -1962,16 +2223,16 @@ export declare const BacklogItemSchema: z.ZodObject<{
|
|
|
1962
2223
|
lastUpdate?: string | undefined;
|
|
1963
2224
|
}, {
|
|
1964
2225
|
id: string;
|
|
1965
|
-
status: "
|
|
2226
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
1966
2227
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2228
|
+
scope: string;
|
|
1967
2229
|
description: string;
|
|
1968
2230
|
title: string;
|
|
1969
2231
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
1970
2232
|
acceptanceCriteria: string[];
|
|
1971
|
-
scope: string;
|
|
1972
2233
|
progress: number;
|
|
1973
|
-
dependencies?: string[] | undefined;
|
|
1974
2234
|
owner?: string | undefined;
|
|
2235
|
+
dependencies?: string[] | undefined;
|
|
1975
2236
|
outOfScope?: string | undefined;
|
|
1976
2237
|
businessValue?: string | undefined;
|
|
1977
2238
|
risks?: string | undefined;
|
|
@@ -2019,14 +2280,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2019
2280
|
lastUpdate: z.ZodOptional<z.ZodString>;
|
|
2020
2281
|
}, "strip", z.ZodTypeAny, {
|
|
2021
2282
|
id: string;
|
|
2022
|
-
status: "
|
|
2283
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2023
2284
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2285
|
+
scope: string;
|
|
2024
2286
|
description: string;
|
|
2025
2287
|
title: string;
|
|
2026
2288
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2027
2289
|
acceptanceCriteria: string[];
|
|
2028
2290
|
dependencies: string[];
|
|
2029
|
-
scope: string;
|
|
2030
2291
|
outOfScope: string;
|
|
2031
2292
|
progress: number;
|
|
2032
2293
|
owner?: string | undefined;
|
|
@@ -2037,16 +2298,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2037
2298
|
lastUpdate?: string | undefined;
|
|
2038
2299
|
}, {
|
|
2039
2300
|
id: string;
|
|
2040
|
-
status: "
|
|
2301
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2041
2302
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2303
|
+
scope: string;
|
|
2042
2304
|
description: string;
|
|
2043
2305
|
title: string;
|
|
2044
2306
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2045
2307
|
acceptanceCriteria: string[];
|
|
2046
|
-
scope: string;
|
|
2047
2308
|
progress: number;
|
|
2048
|
-
dependencies?: string[] | undefined;
|
|
2049
2309
|
owner?: string | undefined;
|
|
2310
|
+
dependencies?: string[] | undefined;
|
|
2050
2311
|
outOfScope?: string | undefined;
|
|
2051
2312
|
businessValue?: string | undefined;
|
|
2052
2313
|
risks?: string | undefined;
|
|
@@ -2074,14 +2335,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2074
2335
|
lastUpdate: z.ZodOptional<z.ZodString>;
|
|
2075
2336
|
}, "strip", z.ZodTypeAny, {
|
|
2076
2337
|
id: string;
|
|
2077
|
-
status: "
|
|
2338
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2078
2339
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2340
|
+
scope: string;
|
|
2079
2341
|
description: string;
|
|
2080
2342
|
title: string;
|
|
2081
2343
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2082
2344
|
acceptanceCriteria: string[];
|
|
2083
2345
|
dependencies: string[];
|
|
2084
|
-
scope: string;
|
|
2085
2346
|
outOfScope: string;
|
|
2086
2347
|
progress: number;
|
|
2087
2348
|
owner?: string | undefined;
|
|
@@ -2092,16 +2353,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2092
2353
|
lastUpdate?: string | undefined;
|
|
2093
2354
|
}, {
|
|
2094
2355
|
id: string;
|
|
2095
|
-
status: "
|
|
2356
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2096
2357
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2358
|
+
scope: string;
|
|
2097
2359
|
description: string;
|
|
2098
2360
|
title: string;
|
|
2099
2361
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2100
2362
|
acceptanceCriteria: string[];
|
|
2101
|
-
scope: string;
|
|
2102
2363
|
progress: number;
|
|
2103
|
-
dependencies?: string[] | undefined;
|
|
2104
2364
|
owner?: string | undefined;
|
|
2365
|
+
dependencies?: string[] | undefined;
|
|
2105
2366
|
outOfScope?: string | undefined;
|
|
2106
2367
|
businessValue?: string | undefined;
|
|
2107
2368
|
risks?: string | undefined;
|
|
@@ -2119,14 +2380,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2119
2380
|
};
|
|
2120
2381
|
items: {
|
|
2121
2382
|
id: string;
|
|
2122
|
-
status: "
|
|
2383
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2123
2384
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2385
|
+
scope: string;
|
|
2124
2386
|
description: string;
|
|
2125
2387
|
title: string;
|
|
2126
2388
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2127
2389
|
acceptanceCriteria: string[];
|
|
2128
2390
|
dependencies: string[];
|
|
2129
|
-
scope: string;
|
|
2130
2391
|
outOfScope: string;
|
|
2131
2392
|
progress: number;
|
|
2132
2393
|
owner?: string | undefined;
|
|
@@ -2138,14 +2399,14 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2138
2399
|
}[];
|
|
2139
2400
|
archive: {
|
|
2140
2401
|
id: string;
|
|
2141
|
-
status: "
|
|
2402
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2142
2403
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2404
|
+
scope: string;
|
|
2143
2405
|
description: string;
|
|
2144
2406
|
title: string;
|
|
2145
2407
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2146
2408
|
acceptanceCriteria: string[];
|
|
2147
2409
|
dependencies: string[];
|
|
2148
|
-
scope: string;
|
|
2149
2410
|
outOfScope: string;
|
|
2150
2411
|
progress: number;
|
|
2151
2412
|
owner?: string | undefined;
|
|
@@ -2165,16 +2426,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2165
2426
|
};
|
|
2166
2427
|
items: {
|
|
2167
2428
|
id: string;
|
|
2168
|
-
status: "
|
|
2429
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2169
2430
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2431
|
+
scope: string;
|
|
2170
2432
|
description: string;
|
|
2171
2433
|
title: string;
|
|
2172
2434
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2173
2435
|
acceptanceCriteria: string[];
|
|
2174
|
-
scope: string;
|
|
2175
2436
|
progress: number;
|
|
2176
|
-
dependencies?: string[] | undefined;
|
|
2177
2437
|
owner?: string | undefined;
|
|
2438
|
+
dependencies?: string[] | undefined;
|
|
2178
2439
|
outOfScope?: string | undefined;
|
|
2179
2440
|
businessValue?: string | undefined;
|
|
2180
2441
|
risks?: string | undefined;
|
|
@@ -2184,16 +2445,16 @@ export declare const BacklogDocumentSchema: z.ZodObject<{
|
|
|
2184
2445
|
}[];
|
|
2185
2446
|
archive?: {
|
|
2186
2447
|
id: string;
|
|
2187
|
-
status: "
|
|
2448
|
+
status: "BLOCKED" | "TODO" | "READY" | "PLANNED" | "IN_PROGRESS" | "REVIEW" | "DONE";
|
|
2188
2449
|
type: "feature" | "refactor" | "bug" | "tech-debt";
|
|
2450
|
+
scope: string;
|
|
2189
2451
|
description: string;
|
|
2190
2452
|
title: string;
|
|
2191
2453
|
priority: "P0" | "P1" | "P2" | "P3";
|
|
2192
2454
|
acceptanceCriteria: string[];
|
|
2193
|
-
scope: string;
|
|
2194
2455
|
progress: number;
|
|
2195
|
-
dependencies?: string[] | undefined;
|
|
2196
2456
|
owner?: string | undefined;
|
|
2457
|
+
dependencies?: string[] | undefined;
|
|
2197
2458
|
outOfScope?: string | undefined;
|
|
2198
2459
|
businessValue?: string | undefined;
|
|
2199
2460
|
risks?: string | undefined;
|
|
@@ -3149,15 +3410,15 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3149
3410
|
domains: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
|
|
3150
3411
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3151
3412
|
}, "strip", z.ZodTypeAny, {
|
|
3152
|
-
confidence: "low" | "medium" | "high";
|
|
3153
3413
|
source: "detect" | "graphify" | "manual" | "product-graph";
|
|
3154
|
-
|
|
3414
|
+
confidence: "low" | "medium" | "high";
|
|
3155
3415
|
rules?: string[] | undefined;
|
|
3416
|
+
domains?: unknown[] | undefined;
|
|
3156
3417
|
}, {
|
|
3157
|
-
confidence: "low" | "medium" | "high";
|
|
3158
3418
|
source: "detect" | "graphify" | "manual" | "product-graph";
|
|
3159
|
-
|
|
3419
|
+
confidence: "low" | "medium" | "high";
|
|
3160
3420
|
rules?: string[] | undefined;
|
|
3421
|
+
domains?: unknown[] | undefined;
|
|
3161
3422
|
}>;
|
|
3162
3423
|
policies: z.ZodObject<{
|
|
3163
3424
|
architecture: z.ZodString;
|
|
@@ -3177,6 +3438,352 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3177
3438
|
}>;
|
|
3178
3439
|
currentPhase: z.ZodOptional<z.ZodString>;
|
|
3179
3440
|
outputSchema: z.ZodString;
|
|
3441
|
+
scopedContext: z.ZodOptional<z.ZodObject<{
|
|
3442
|
+
manifest: z.ZodObject<{
|
|
3443
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
3444
|
+
scope: z.ZodObject<{
|
|
3445
|
+
files: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
3446
|
+
role: z.ZodString;
|
|
3447
|
+
}, "strict", z.ZodTypeAny, {
|
|
3448
|
+
files: string[];
|
|
3449
|
+
role: string;
|
|
3450
|
+
}, {
|
|
3451
|
+
files: string[];
|
|
3452
|
+
role: string;
|
|
3453
|
+
}>;
|
|
3454
|
+
profiles: z.ZodArray<z.ZodUnknown, "many">;
|
|
3455
|
+
skills: z.ZodArray<z.ZodObject<{
|
|
3456
|
+
id: z.ZodString;
|
|
3457
|
+
version: z.ZodString;
|
|
3458
|
+
}, "strict", z.ZodTypeAny, {
|
|
3459
|
+
id: string;
|
|
3460
|
+
version: string;
|
|
3461
|
+
}, {
|
|
3462
|
+
id: string;
|
|
3463
|
+
version: string;
|
|
3464
|
+
}>, "many">;
|
|
3465
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
3466
|
+
id: z.ZodString;
|
|
3467
|
+
kind: z.ZodEnum<["default", "invariant"]>;
|
|
3468
|
+
originClass: z.ZodEnum<["engine", "stack", "repository", "task"]>;
|
|
3469
|
+
scopeRoot: z.ZodString;
|
|
3470
|
+
depth: z.ZodNumber;
|
|
3471
|
+
sourcePath: z.ZodString;
|
|
3472
|
+
contentHash: z.ZodString;
|
|
3473
|
+
appliesTo: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
3474
|
+
}, "strict", z.ZodTypeAny, {
|
|
3475
|
+
id: string;
|
|
3476
|
+
kind: "default" | "invariant";
|
|
3477
|
+
scopeRoot: string;
|
|
3478
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
3479
|
+
depth: number;
|
|
3480
|
+
sourcePath: string;
|
|
3481
|
+
contentHash: string;
|
|
3482
|
+
appliesTo: string[];
|
|
3483
|
+
}, {
|
|
3484
|
+
id: string;
|
|
3485
|
+
kind: "default" | "invariant";
|
|
3486
|
+
scopeRoot: string;
|
|
3487
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
3488
|
+
depth: number;
|
|
3489
|
+
sourcePath: string;
|
|
3490
|
+
contentHash: string;
|
|
3491
|
+
appliesTo: string[];
|
|
3492
|
+
}>, "many">;
|
|
3493
|
+
overrides: z.ZodArray<z.ZodObject<{
|
|
3494
|
+
id: z.ZodString;
|
|
3495
|
+
winner: z.ZodString;
|
|
3496
|
+
loser: z.ZodString;
|
|
3497
|
+
}, "strict", z.ZodTypeAny, {
|
|
3498
|
+
id: string;
|
|
3499
|
+
winner: string;
|
|
3500
|
+
loser: string;
|
|
3501
|
+
}, {
|
|
3502
|
+
id: string;
|
|
3503
|
+
winner: string;
|
|
3504
|
+
loser: string;
|
|
3505
|
+
}>, "many">;
|
|
3506
|
+
omittedReferences: z.ZodArray<z.ZodObject<{
|
|
3507
|
+
ref: z.ZodString;
|
|
3508
|
+
reason: z.ZodString;
|
|
3509
|
+
}, "strict", z.ZodTypeAny, {
|
|
3510
|
+
reason: string;
|
|
3511
|
+
ref: string;
|
|
3512
|
+
}, {
|
|
3513
|
+
reason: string;
|
|
3514
|
+
ref: string;
|
|
3515
|
+
}>, "many">;
|
|
3516
|
+
diagnostics: z.ZodArray<z.ZodObject<{
|
|
3517
|
+
code: z.ZodString;
|
|
3518
|
+
severity: z.ZodEnum<["info", "warning", "blocking"]>;
|
|
3519
|
+
message: z.ZodString;
|
|
3520
|
+
}, "strict", z.ZodTypeAny, {
|
|
3521
|
+
code: string;
|
|
3522
|
+
message: string;
|
|
3523
|
+
severity: "info" | "warning" | "blocking";
|
|
3524
|
+
}, {
|
|
3525
|
+
code: string;
|
|
3526
|
+
message: string;
|
|
3527
|
+
severity: "info" | "warning" | "blocking";
|
|
3528
|
+
}>, "many">;
|
|
3529
|
+
budget: z.ZodObject<{
|
|
3530
|
+
maxBytes: z.ZodNumber;
|
|
3531
|
+
usedBytes: z.ZodNumber;
|
|
3532
|
+
}, "strict", z.ZodTypeAny, {
|
|
3533
|
+
maxBytes: number;
|
|
3534
|
+
usedBytes: number;
|
|
3535
|
+
}, {
|
|
3536
|
+
maxBytes: number;
|
|
3537
|
+
usedBytes: number;
|
|
3538
|
+
}>;
|
|
3539
|
+
hash: z.ZodString;
|
|
3540
|
+
}, "strict", z.ZodTypeAny, {
|
|
3541
|
+
schemaVersion: 1;
|
|
3542
|
+
rules: {
|
|
3543
|
+
id: string;
|
|
3544
|
+
kind: "default" | "invariant";
|
|
3545
|
+
scopeRoot: string;
|
|
3546
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
3547
|
+
depth: number;
|
|
3548
|
+
sourcePath: string;
|
|
3549
|
+
contentHash: string;
|
|
3550
|
+
appliesTo: string[];
|
|
3551
|
+
}[];
|
|
3552
|
+
scope: {
|
|
3553
|
+
files: string[];
|
|
3554
|
+
role: string;
|
|
3555
|
+
};
|
|
3556
|
+
profiles: unknown[];
|
|
3557
|
+
skills: {
|
|
3558
|
+
id: string;
|
|
3559
|
+
version: string;
|
|
3560
|
+
}[];
|
|
3561
|
+
overrides: {
|
|
3562
|
+
id: string;
|
|
3563
|
+
winner: string;
|
|
3564
|
+
loser: string;
|
|
3565
|
+
}[];
|
|
3566
|
+
omittedReferences: {
|
|
3567
|
+
reason: string;
|
|
3568
|
+
ref: string;
|
|
3569
|
+
}[];
|
|
3570
|
+
diagnostics: {
|
|
3571
|
+
code: string;
|
|
3572
|
+
message: string;
|
|
3573
|
+
severity: "info" | "warning" | "blocking";
|
|
3574
|
+
}[];
|
|
3575
|
+
budget: {
|
|
3576
|
+
maxBytes: number;
|
|
3577
|
+
usedBytes: number;
|
|
3578
|
+
};
|
|
3579
|
+
hash: string;
|
|
3580
|
+
}, {
|
|
3581
|
+
schemaVersion: 1;
|
|
3582
|
+
rules: {
|
|
3583
|
+
id: string;
|
|
3584
|
+
kind: "default" | "invariant";
|
|
3585
|
+
scopeRoot: string;
|
|
3586
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
3587
|
+
depth: number;
|
|
3588
|
+
sourcePath: string;
|
|
3589
|
+
contentHash: string;
|
|
3590
|
+
appliesTo: string[];
|
|
3591
|
+
}[];
|
|
3592
|
+
scope: {
|
|
3593
|
+
files: string[];
|
|
3594
|
+
role: string;
|
|
3595
|
+
};
|
|
3596
|
+
profiles: unknown[];
|
|
3597
|
+
skills: {
|
|
3598
|
+
id: string;
|
|
3599
|
+
version: string;
|
|
3600
|
+
}[];
|
|
3601
|
+
overrides: {
|
|
3602
|
+
id: string;
|
|
3603
|
+
winner: string;
|
|
3604
|
+
loser: string;
|
|
3605
|
+
}[];
|
|
3606
|
+
omittedReferences: {
|
|
3607
|
+
reason: string;
|
|
3608
|
+
ref: string;
|
|
3609
|
+
}[];
|
|
3610
|
+
diagnostics: {
|
|
3611
|
+
code: string;
|
|
3612
|
+
message: string;
|
|
3613
|
+
severity: "info" | "warning" | "blocking";
|
|
3614
|
+
}[];
|
|
3615
|
+
budget: {
|
|
3616
|
+
maxBytes: number;
|
|
3617
|
+
usedBytes: number;
|
|
3618
|
+
};
|
|
3619
|
+
hash: string;
|
|
3620
|
+
}>;
|
|
3621
|
+
view: z.ZodObject<{
|
|
3622
|
+
hash: z.ZodString;
|
|
3623
|
+
rules: z.ZodArray<z.ZodObject<{
|
|
3624
|
+
id: z.ZodString;
|
|
3625
|
+
kind: z.ZodEnum<["default", "invariant"]>;
|
|
3626
|
+
trigger: z.ZodString;
|
|
3627
|
+
action: z.ZodString;
|
|
3628
|
+
exceptions: z.ZodString;
|
|
3629
|
+
verify: z.ZodArray<z.ZodString, "many">;
|
|
3630
|
+
appliesTo: z.ZodArray<z.ZodEffects<z.ZodString, string, string>, "many">;
|
|
3631
|
+
source: z.ZodString;
|
|
3632
|
+
}, "strict", z.ZodTypeAny, {
|
|
3633
|
+
id: string;
|
|
3634
|
+
kind: "default" | "invariant";
|
|
3635
|
+
trigger: string;
|
|
3636
|
+
action: string;
|
|
3637
|
+
exceptions: string;
|
|
3638
|
+
appliesTo: string[];
|
|
3639
|
+
verify: string[];
|
|
3640
|
+
source: string;
|
|
3641
|
+
}, {
|
|
3642
|
+
id: string;
|
|
3643
|
+
kind: "default" | "invariant";
|
|
3644
|
+
trigger: string;
|
|
3645
|
+
action: string;
|
|
3646
|
+
exceptions: string;
|
|
3647
|
+
appliesTo: string[];
|
|
3648
|
+
verify: string[];
|
|
3649
|
+
source: string;
|
|
3650
|
+
}>, "many">;
|
|
3651
|
+
}, "strict", z.ZodTypeAny, {
|
|
3652
|
+
rules: {
|
|
3653
|
+
id: string;
|
|
3654
|
+
kind: "default" | "invariant";
|
|
3655
|
+
trigger: string;
|
|
3656
|
+
action: string;
|
|
3657
|
+
exceptions: string;
|
|
3658
|
+
appliesTo: string[];
|
|
3659
|
+
verify: string[];
|
|
3660
|
+
source: string;
|
|
3661
|
+
}[];
|
|
3662
|
+
hash: string;
|
|
3663
|
+
}, {
|
|
3664
|
+
rules: {
|
|
3665
|
+
id: string;
|
|
3666
|
+
kind: "default" | "invariant";
|
|
3667
|
+
trigger: string;
|
|
3668
|
+
action: string;
|
|
3669
|
+
exceptions: string;
|
|
3670
|
+
appliesTo: string[];
|
|
3671
|
+
verify: string[];
|
|
3672
|
+
source: string;
|
|
3673
|
+
}[];
|
|
3674
|
+
hash: string;
|
|
3675
|
+
}>;
|
|
3676
|
+
}, "strict", z.ZodTypeAny, {
|
|
3677
|
+
manifest: {
|
|
3678
|
+
schemaVersion: 1;
|
|
3679
|
+
rules: {
|
|
3680
|
+
id: string;
|
|
3681
|
+
kind: "default" | "invariant";
|
|
3682
|
+
scopeRoot: string;
|
|
3683
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
3684
|
+
depth: number;
|
|
3685
|
+
sourcePath: string;
|
|
3686
|
+
contentHash: string;
|
|
3687
|
+
appliesTo: string[];
|
|
3688
|
+
}[];
|
|
3689
|
+
scope: {
|
|
3690
|
+
files: string[];
|
|
3691
|
+
role: string;
|
|
3692
|
+
};
|
|
3693
|
+
profiles: unknown[];
|
|
3694
|
+
skills: {
|
|
3695
|
+
id: string;
|
|
3696
|
+
version: string;
|
|
3697
|
+
}[];
|
|
3698
|
+
overrides: {
|
|
3699
|
+
id: string;
|
|
3700
|
+
winner: string;
|
|
3701
|
+
loser: string;
|
|
3702
|
+
}[];
|
|
3703
|
+
omittedReferences: {
|
|
3704
|
+
reason: string;
|
|
3705
|
+
ref: string;
|
|
3706
|
+
}[];
|
|
3707
|
+
diagnostics: {
|
|
3708
|
+
code: string;
|
|
3709
|
+
message: string;
|
|
3710
|
+
severity: "info" | "warning" | "blocking";
|
|
3711
|
+
}[];
|
|
3712
|
+
budget: {
|
|
3713
|
+
maxBytes: number;
|
|
3714
|
+
usedBytes: number;
|
|
3715
|
+
};
|
|
3716
|
+
hash: string;
|
|
3717
|
+
};
|
|
3718
|
+
view: {
|
|
3719
|
+
rules: {
|
|
3720
|
+
id: string;
|
|
3721
|
+
kind: "default" | "invariant";
|
|
3722
|
+
trigger: string;
|
|
3723
|
+
action: string;
|
|
3724
|
+
exceptions: string;
|
|
3725
|
+
appliesTo: string[];
|
|
3726
|
+
verify: string[];
|
|
3727
|
+
source: string;
|
|
3728
|
+
}[];
|
|
3729
|
+
hash: string;
|
|
3730
|
+
};
|
|
3731
|
+
}, {
|
|
3732
|
+
manifest: {
|
|
3733
|
+
schemaVersion: 1;
|
|
3734
|
+
rules: {
|
|
3735
|
+
id: string;
|
|
3736
|
+
kind: "default" | "invariant";
|
|
3737
|
+
scopeRoot: string;
|
|
3738
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
3739
|
+
depth: number;
|
|
3740
|
+
sourcePath: string;
|
|
3741
|
+
contentHash: string;
|
|
3742
|
+
appliesTo: string[];
|
|
3743
|
+
}[];
|
|
3744
|
+
scope: {
|
|
3745
|
+
files: string[];
|
|
3746
|
+
role: string;
|
|
3747
|
+
};
|
|
3748
|
+
profiles: unknown[];
|
|
3749
|
+
skills: {
|
|
3750
|
+
id: string;
|
|
3751
|
+
version: string;
|
|
3752
|
+
}[];
|
|
3753
|
+
overrides: {
|
|
3754
|
+
id: string;
|
|
3755
|
+
winner: string;
|
|
3756
|
+
loser: string;
|
|
3757
|
+
}[];
|
|
3758
|
+
omittedReferences: {
|
|
3759
|
+
reason: string;
|
|
3760
|
+
ref: string;
|
|
3761
|
+
}[];
|
|
3762
|
+
diagnostics: {
|
|
3763
|
+
code: string;
|
|
3764
|
+
message: string;
|
|
3765
|
+
severity: "info" | "warning" | "blocking";
|
|
3766
|
+
}[];
|
|
3767
|
+
budget: {
|
|
3768
|
+
maxBytes: number;
|
|
3769
|
+
usedBytes: number;
|
|
3770
|
+
};
|
|
3771
|
+
hash: string;
|
|
3772
|
+
};
|
|
3773
|
+
view: {
|
|
3774
|
+
rules: {
|
|
3775
|
+
id: string;
|
|
3776
|
+
kind: "default" | "invariant";
|
|
3777
|
+
trigger: string;
|
|
3778
|
+
action: string;
|
|
3779
|
+
exceptions: string;
|
|
3780
|
+
appliesTo: string[];
|
|
3781
|
+
verify: string[];
|
|
3782
|
+
source: string;
|
|
3783
|
+
}[];
|
|
3784
|
+
hash: string;
|
|
3785
|
+
};
|
|
3786
|
+
}>>;
|
|
3180
3787
|
}, "strip", z.ZodTypeAny, {
|
|
3181
3788
|
project: {
|
|
3182
3789
|
name: string;
|
|
@@ -3250,10 +3857,10 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3250
3857
|
};
|
|
3251
3858
|
knowledge: Record<string, unknown>;
|
|
3252
3859
|
ast: {
|
|
3253
|
-
confidence: "low" | "medium" | "high";
|
|
3254
3860
|
source: "detect" | "graphify" | "manual" | "product-graph";
|
|
3255
|
-
|
|
3861
|
+
confidence: "low" | "medium" | "high";
|
|
3256
3862
|
rules?: string[] | undefined;
|
|
3863
|
+
domains?: unknown[] | undefined;
|
|
3257
3864
|
};
|
|
3258
3865
|
policies: {
|
|
3259
3866
|
architecture: string;
|
|
@@ -3262,6 +3869,62 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3262
3869
|
breakingChanges: string;
|
|
3263
3870
|
};
|
|
3264
3871
|
currentPhase?: string | undefined;
|
|
3872
|
+
scopedContext?: {
|
|
3873
|
+
manifest: {
|
|
3874
|
+
schemaVersion: 1;
|
|
3875
|
+
rules: {
|
|
3876
|
+
id: string;
|
|
3877
|
+
kind: "default" | "invariant";
|
|
3878
|
+
scopeRoot: string;
|
|
3879
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
3880
|
+
depth: number;
|
|
3881
|
+
sourcePath: string;
|
|
3882
|
+
contentHash: string;
|
|
3883
|
+
appliesTo: string[];
|
|
3884
|
+
}[];
|
|
3885
|
+
scope: {
|
|
3886
|
+
files: string[];
|
|
3887
|
+
role: string;
|
|
3888
|
+
};
|
|
3889
|
+
profiles: unknown[];
|
|
3890
|
+
skills: {
|
|
3891
|
+
id: string;
|
|
3892
|
+
version: string;
|
|
3893
|
+
}[];
|
|
3894
|
+
overrides: {
|
|
3895
|
+
id: string;
|
|
3896
|
+
winner: string;
|
|
3897
|
+
loser: string;
|
|
3898
|
+
}[];
|
|
3899
|
+
omittedReferences: {
|
|
3900
|
+
reason: string;
|
|
3901
|
+
ref: string;
|
|
3902
|
+
}[];
|
|
3903
|
+
diagnostics: {
|
|
3904
|
+
code: string;
|
|
3905
|
+
message: string;
|
|
3906
|
+
severity: "info" | "warning" | "blocking";
|
|
3907
|
+
}[];
|
|
3908
|
+
budget: {
|
|
3909
|
+
maxBytes: number;
|
|
3910
|
+
usedBytes: number;
|
|
3911
|
+
};
|
|
3912
|
+
hash: string;
|
|
3913
|
+
};
|
|
3914
|
+
view: {
|
|
3915
|
+
rules: {
|
|
3916
|
+
id: string;
|
|
3917
|
+
kind: "default" | "invariant";
|
|
3918
|
+
trigger: string;
|
|
3919
|
+
action: string;
|
|
3920
|
+
exceptions: string;
|
|
3921
|
+
appliesTo: string[];
|
|
3922
|
+
verify: string[];
|
|
3923
|
+
source: string;
|
|
3924
|
+
}[];
|
|
3925
|
+
hash: string;
|
|
3926
|
+
};
|
|
3927
|
+
} | undefined;
|
|
3265
3928
|
}, {
|
|
3266
3929
|
project: {
|
|
3267
3930
|
name: string;
|
|
@@ -3334,10 +3997,10 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3334
3997
|
operation?: string | undefined;
|
|
3335
3998
|
};
|
|
3336
3999
|
ast: {
|
|
3337
|
-
confidence: "low" | "medium" | "high";
|
|
3338
4000
|
source: "detect" | "graphify" | "manual" | "product-graph";
|
|
3339
|
-
|
|
4001
|
+
confidence: "low" | "medium" | "high";
|
|
3340
4002
|
rules?: string[] | undefined;
|
|
4003
|
+
domains?: unknown[] | undefined;
|
|
3341
4004
|
};
|
|
3342
4005
|
policies: {
|
|
3343
4006
|
architecture: string;
|
|
@@ -3347,6 +4010,62 @@ export declare const ExecutionContextSchema: z.ZodObject<{
|
|
|
3347
4010
|
};
|
|
3348
4011
|
knowledge?: Record<string, unknown> | undefined;
|
|
3349
4012
|
currentPhase?: string | undefined;
|
|
4013
|
+
scopedContext?: {
|
|
4014
|
+
manifest: {
|
|
4015
|
+
schemaVersion: 1;
|
|
4016
|
+
rules: {
|
|
4017
|
+
id: string;
|
|
4018
|
+
kind: "default" | "invariant";
|
|
4019
|
+
scopeRoot: string;
|
|
4020
|
+
originClass: "engine" | "stack" | "repository" | "task";
|
|
4021
|
+
depth: number;
|
|
4022
|
+
sourcePath: string;
|
|
4023
|
+
contentHash: string;
|
|
4024
|
+
appliesTo: string[];
|
|
4025
|
+
}[];
|
|
4026
|
+
scope: {
|
|
4027
|
+
files: string[];
|
|
4028
|
+
role: string;
|
|
4029
|
+
};
|
|
4030
|
+
profiles: unknown[];
|
|
4031
|
+
skills: {
|
|
4032
|
+
id: string;
|
|
4033
|
+
version: string;
|
|
4034
|
+
}[];
|
|
4035
|
+
overrides: {
|
|
4036
|
+
id: string;
|
|
4037
|
+
winner: string;
|
|
4038
|
+
loser: string;
|
|
4039
|
+
}[];
|
|
4040
|
+
omittedReferences: {
|
|
4041
|
+
reason: string;
|
|
4042
|
+
ref: string;
|
|
4043
|
+
}[];
|
|
4044
|
+
diagnostics: {
|
|
4045
|
+
code: string;
|
|
4046
|
+
message: string;
|
|
4047
|
+
severity: "info" | "warning" | "blocking";
|
|
4048
|
+
}[];
|
|
4049
|
+
budget: {
|
|
4050
|
+
maxBytes: number;
|
|
4051
|
+
usedBytes: number;
|
|
4052
|
+
};
|
|
4053
|
+
hash: string;
|
|
4054
|
+
};
|
|
4055
|
+
view: {
|
|
4056
|
+
rules: {
|
|
4057
|
+
id: string;
|
|
4058
|
+
kind: "default" | "invariant";
|
|
4059
|
+
trigger: string;
|
|
4060
|
+
action: string;
|
|
4061
|
+
exceptions: string;
|
|
4062
|
+
appliesTo: string[];
|
|
4063
|
+
verify: string[];
|
|
4064
|
+
source: string;
|
|
4065
|
+
}[];
|
|
4066
|
+
hash: string;
|
|
4067
|
+
};
|
|
4068
|
+
} | undefined;
|
|
3350
4069
|
}>;
|
|
3351
4070
|
export declare const PlannerOutputSchema: z.ZodObject<{
|
|
3352
4071
|
status: z.ZodEnum<["success", "needs_clarification"]>;
|
|
@@ -3359,12 +4078,12 @@ export declare const PlannerOutputSchema: z.ZodObject<{
|
|
|
3359
4078
|
severity: z.ZodEnum<["low", "medium", "high"]>;
|
|
3360
4079
|
}, "strip", z.ZodTypeAny, {
|
|
3361
4080
|
type: string;
|
|
3362
|
-
description: string;
|
|
3363
4081
|
severity: "low" | "medium" | "high";
|
|
4082
|
+
description: string;
|
|
3364
4083
|
}, {
|
|
3365
4084
|
type: string;
|
|
3366
|
-
description: string;
|
|
3367
4085
|
severity: "low" | "medium" | "high";
|
|
4086
|
+
description: string;
|
|
3368
4087
|
}>, "many">;
|
|
3369
4088
|
tasks: z.ZodArray<z.ZodObject<{
|
|
3370
4089
|
id: z.ZodString;
|
|
@@ -3399,8 +4118,8 @@ export declare const PlannerOutputSchema: z.ZodObject<{
|
|
|
3399
4118
|
}[];
|
|
3400
4119
|
risks: {
|
|
3401
4120
|
type: string;
|
|
3402
|
-
description: string;
|
|
3403
4121
|
severity: "low" | "medium" | "high";
|
|
4122
|
+
description: string;
|
|
3404
4123
|
}[];
|
|
3405
4124
|
goal: string;
|
|
3406
4125
|
assumptions: string[];
|
|
@@ -3418,8 +4137,8 @@ export declare const PlannerOutputSchema: z.ZodObject<{
|
|
|
3418
4137
|
}[];
|
|
3419
4138
|
risks: {
|
|
3420
4139
|
type: string;
|
|
3421
|
-
description: string;
|
|
3422
4140
|
severity: "low" | "medium" | "high";
|
|
4141
|
+
description: string;
|
|
3423
4142
|
}[];
|
|
3424
4143
|
goal: string;
|
|
3425
4144
|
assumptions: string[];
|
|
@@ -3667,21 +4386,61 @@ export declare const ReviewerOutputSchema: z.ZodObject<{
|
|
|
3667
4386
|
}[] | undefined;
|
|
3668
4387
|
next_actions?: string[] | undefined;
|
|
3669
4388
|
}>;
|
|
4389
|
+
export declare const EdgeCaseSchema: z.ZodObject<{
|
|
4390
|
+
scenario: z.ZodString;
|
|
4391
|
+
input: z.ZodString;
|
|
4392
|
+
expected: z.ZodString;
|
|
4393
|
+
}, "strip", z.ZodTypeAny, {
|
|
4394
|
+
expected: string;
|
|
4395
|
+
scenario: string;
|
|
4396
|
+
input: string;
|
|
4397
|
+
}, {
|
|
4398
|
+
expected: string;
|
|
4399
|
+
scenario: string;
|
|
4400
|
+
input: string;
|
|
4401
|
+
}>;
|
|
4402
|
+
export type EdgeCaseInput = z.infer<typeof EdgeCaseSchema>;
|
|
3670
4403
|
export declare const TechnicalPlanOutputSchema: z.ZodObject<{
|
|
3671
4404
|
approach: z.ZodString;
|
|
3672
4405
|
filesAffected: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3673
4406
|
risks: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
3674
4407
|
openQuestions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4408
|
+
edgeCases: z.ZodArray<z.ZodObject<{
|
|
4409
|
+
scenario: z.ZodString;
|
|
4410
|
+
input: z.ZodString;
|
|
4411
|
+
expected: z.ZodString;
|
|
4412
|
+
}, "strip", z.ZodTypeAny, {
|
|
4413
|
+
expected: string;
|
|
4414
|
+
scenario: string;
|
|
4415
|
+
input: string;
|
|
4416
|
+
}, {
|
|
4417
|
+
expected: string;
|
|
4418
|
+
scenario: string;
|
|
4419
|
+
input: string;
|
|
4420
|
+
}>, "many">;
|
|
4421
|
+
symbolsAffected: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
3675
4422
|
}, "strip", z.ZodTypeAny, {
|
|
3676
4423
|
risks: string[];
|
|
3677
4424
|
approach: string;
|
|
3678
4425
|
filesAffected: string[];
|
|
4426
|
+
edgeCases: {
|
|
4427
|
+
expected: string;
|
|
4428
|
+
scenario: string;
|
|
4429
|
+
input: string;
|
|
4430
|
+
}[];
|
|
4431
|
+
symbolsAffected: Record<string, string[]>;
|
|
3679
4432
|
openQuestions?: string[] | undefined;
|
|
3680
4433
|
}, {
|
|
3681
4434
|
approach: string;
|
|
4435
|
+
edgeCases: {
|
|
4436
|
+
expected: string;
|
|
4437
|
+
scenario: string;
|
|
4438
|
+
input: string;
|
|
4439
|
+
}[];
|
|
3682
4440
|
risks?: string[] | undefined;
|
|
3683
4441
|
filesAffected?: string[] | undefined;
|
|
3684
4442
|
openQuestions?: string[] | undefined;
|
|
4443
|
+
symbolsAffected?: Record<string, string[]> | undefined;
|
|
3685
4444
|
}>;
|
|
3686
4445
|
export declare const FixIntakeOutputSchema: z.ZodObject<{
|
|
3687
4446
|
actualBehavior: z.ZodString;
|
|
@@ -3779,8 +4538,8 @@ export declare const ScorecardRecordSchema: z.ZodObject<{
|
|
|
3779
4538
|
}[];
|
|
3780
4539
|
weightedScore: number;
|
|
3781
4540
|
createdAt: string;
|
|
3782
|
-
model?: string | undefined;
|
|
3783
4541
|
source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
|
|
4542
|
+
model?: string | undefined;
|
|
3784
4543
|
backlogId?: string | undefined;
|
|
3785
4544
|
evaluator?: string | undefined;
|
|
3786
4545
|
}, {
|
|
@@ -3800,9 +4559,9 @@ export declare const ScorecardRecordSchema: z.ZodObject<{
|
|
|
3800
4559
|
}[];
|
|
3801
4560
|
weightedScore: number;
|
|
3802
4561
|
createdAt: string;
|
|
4562
|
+
source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
|
|
3803
4563
|
model?: string | undefined;
|
|
3804
4564
|
findings?: string[] | undefined;
|
|
3805
|
-
source?: "review" | "openspec" | "manual" | "pipeline" | undefined;
|
|
3806
4565
|
backlogId?: string | undefined;
|
|
3807
4566
|
evaluator?: string | undefined;
|
|
3808
4567
|
}>;
|
|
@@ -3911,9 +4670,9 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
|
|
|
3911
4670
|
authorization: z.ZodOptional<z.ZodString>;
|
|
3912
4671
|
}, "strip", z.ZodTypeAny, {
|
|
3913
4672
|
id: string;
|
|
3914
|
-
context: string;
|
|
3915
4673
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
3916
4674
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
4675
|
+
context: string;
|
|
3917
4676
|
title: string;
|
|
3918
4677
|
risk: "low" | "medium" | "high";
|
|
3919
4678
|
objective: string;
|
|
@@ -3935,9 +4694,9 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
|
|
|
3935
4694
|
authorization?: string | undefined;
|
|
3936
4695
|
}, {
|
|
3937
4696
|
id: string;
|
|
3938
|
-
context: string;
|
|
3939
4697
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
3940
4698
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
4699
|
+
context: string;
|
|
3941
4700
|
title: string;
|
|
3942
4701
|
risk: "low" | "medium" | "high";
|
|
3943
4702
|
objective: string;
|
|
@@ -3981,18 +4740,18 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
|
|
|
3981
4740
|
}, "strip", z.ZodTypeAny, {
|
|
3982
4741
|
id: string;
|
|
3983
4742
|
version: 1;
|
|
4743
|
+
evidence: string[];
|
|
3984
4744
|
tasks: {
|
|
3985
4745
|
id: string;
|
|
3986
4746
|
status: "pending" | "done" | "blocked";
|
|
3987
4747
|
title: string;
|
|
3988
4748
|
}[];
|
|
3989
|
-
evidence: string[];
|
|
3990
4749
|
updatedAt: string;
|
|
3991
4750
|
taskCard: {
|
|
3992
4751
|
id: string;
|
|
3993
|
-
context: string;
|
|
3994
4752
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
3995
4753
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
4754
|
+
context: string;
|
|
3996
4755
|
title: string;
|
|
3997
4756
|
risk: "low" | "medium" | "high";
|
|
3998
4757
|
objective: string;
|
|
@@ -4021,18 +4780,18 @@ export declare const DeliveryLedgerSchema: z.ZodObject<{
|
|
|
4021
4780
|
}, {
|
|
4022
4781
|
id: string;
|
|
4023
4782
|
version: 1;
|
|
4783
|
+
evidence: string[];
|
|
4024
4784
|
tasks: {
|
|
4025
4785
|
id: string;
|
|
4026
4786
|
status: "pending" | "done" | "blocked";
|
|
4027
4787
|
title: string;
|
|
4028
4788
|
}[];
|
|
4029
|
-
evidence: string[];
|
|
4030
4789
|
updatedAt: string;
|
|
4031
4790
|
taskCard: {
|
|
4032
4791
|
id: string;
|
|
4033
|
-
context: string;
|
|
4034
4792
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
4035
4793
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
4794
|
+
context: string;
|
|
4036
4795
|
title: string;
|
|
4037
4796
|
risk: "low" | "medium" | "high";
|
|
4038
4797
|
objective: string;
|
|
@@ -4085,11 +4844,11 @@ export declare const HandoffEnvelopeSchema: z.ZodObject<{
|
|
|
4085
4844
|
constraints: z.ZodArray<z.ZodString, "many">;
|
|
4086
4845
|
unresolved: z.ZodArray<z.ZodString, "many">;
|
|
4087
4846
|
}, "strip", z.ZodTypeAny, {
|
|
4088
|
-
constraints: string[];
|
|
4089
4847
|
unresolved: string[];
|
|
4090
|
-
}, {
|
|
4091
4848
|
constraints: string[];
|
|
4849
|
+
}, {
|
|
4092
4850
|
unresolved: string[];
|
|
4851
|
+
constraints: string[];
|
|
4093
4852
|
}>;
|
|
4094
4853
|
scope: z.ZodObject<{
|
|
4095
4854
|
relevantFiles: z.ZodArray<z.ZodString, "many">;
|
|
@@ -4139,23 +4898,23 @@ export declare const HandoffEnvelopeSchema: z.ZodObject<{
|
|
|
4139
4898
|
technicalPlanPath?: string | undefined;
|
|
4140
4899
|
}>;
|
|
4141
4900
|
}, "strip", z.ZodTypeAny, {
|
|
4142
|
-
version: 1;
|
|
4143
4901
|
task: {
|
|
4144
4902
|
id: string;
|
|
4145
4903
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
4146
4904
|
objective: string;
|
|
4147
4905
|
acceptanceCriteria: string[];
|
|
4148
4906
|
};
|
|
4907
|
+
verification: {
|
|
4908
|
+
evidence: string[];
|
|
4909
|
+
};
|
|
4910
|
+
version: 1;
|
|
4149
4911
|
scope: {
|
|
4150
4912
|
boundaries: string[];
|
|
4151
4913
|
relevantFiles: string[];
|
|
4152
4914
|
};
|
|
4153
4915
|
decisions: {
|
|
4154
|
-
constraints: string[];
|
|
4155
4916
|
unresolved: string[];
|
|
4156
|
-
|
|
4157
|
-
verification: {
|
|
4158
|
-
evidence: string[];
|
|
4917
|
+
constraints: string[];
|
|
4159
4918
|
};
|
|
4160
4919
|
change: {
|
|
4161
4920
|
touchedFiles: string[];
|
|
@@ -4170,23 +4929,23 @@ export declare const HandoffEnvelopeSchema: z.ZodObject<{
|
|
|
4170
4929
|
technicalPlanPath?: string | undefined;
|
|
4171
4930
|
};
|
|
4172
4931
|
}, {
|
|
4173
|
-
version: 1;
|
|
4174
4932
|
task: {
|
|
4175
4933
|
id: string;
|
|
4176
4934
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
4177
4935
|
objective: string;
|
|
4178
4936
|
acceptanceCriteria: string[];
|
|
4179
4937
|
};
|
|
4938
|
+
verification: {
|
|
4939
|
+
evidence: string[];
|
|
4940
|
+
};
|
|
4941
|
+
version: 1;
|
|
4180
4942
|
scope: {
|
|
4181
4943
|
boundaries: string[];
|
|
4182
4944
|
relevantFiles: string[];
|
|
4183
4945
|
};
|
|
4184
4946
|
decisions: {
|
|
4185
|
-
constraints: string[];
|
|
4186
4947
|
unresolved: string[];
|
|
4187
|
-
|
|
4188
|
-
verification: {
|
|
4189
|
-
evidence: string[];
|
|
4948
|
+
constraints: string[];
|
|
4190
4949
|
};
|
|
4191
4950
|
change: {
|
|
4192
4951
|
touchedFiles: string[];
|
|
@@ -4231,9 +4990,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
|
|
|
4231
4990
|
authorization: z.ZodOptional<z.ZodString>;
|
|
4232
4991
|
}, "strip", z.ZodTypeAny, {
|
|
4233
4992
|
id: string;
|
|
4234
|
-
context: string;
|
|
4235
4993
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
4236
4994
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
4995
|
+
context: string;
|
|
4237
4996
|
title: string;
|
|
4238
4997
|
risk: "low" | "medium" | "high";
|
|
4239
4998
|
objective: string;
|
|
@@ -4255,9 +5014,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
|
|
|
4255
5014
|
authorization?: string | undefined;
|
|
4256
5015
|
}, {
|
|
4257
5016
|
id: string;
|
|
4258
|
-
context: string;
|
|
4259
5017
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
4260
5018
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
5019
|
+
context: string;
|
|
4261
5020
|
title: string;
|
|
4262
5021
|
risk: "low" | "medium" | "high";
|
|
4263
5022
|
objective: string;
|
|
@@ -4302,9 +5061,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
|
|
|
4302
5061
|
}[];
|
|
4303
5062
|
taskCard: {
|
|
4304
5063
|
id: string;
|
|
4305
|
-
context: string;
|
|
4306
5064
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
4307
5065
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
5066
|
+
context: string;
|
|
4308
5067
|
title: string;
|
|
4309
5068
|
risk: "low" | "medium" | "high";
|
|
4310
5069
|
objective: string;
|
|
@@ -4338,9 +5097,9 @@ export declare const DeliveryLedgerRequestSchema: z.ZodObject<{
|
|
|
4338
5097
|
}[];
|
|
4339
5098
|
taskCard: {
|
|
4340
5099
|
id: string;
|
|
4341
|
-
context: string;
|
|
4342
5100
|
status: "in-progress" | "done" | "blocked" | "draft" | "ready" | "review";
|
|
4343
5101
|
type: "feature" | "fix" | "refactor" | "test" | "docs" | "review";
|
|
5102
|
+
context: string;
|
|
4344
5103
|
title: string;
|
|
4345
5104
|
risk: "low" | "medium" | "high";
|
|
4346
5105
|
objective: string;
|
|
@@ -4434,12 +5193,20 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
4434
5193
|
contextBytes?: number | undefined;
|
|
4435
5194
|
handoffs?: number | undefined;
|
|
4436
5195
|
}>>;
|
|
5196
|
+
/** Optional telemetry fields fed by harness-telemetry/v1 task.end (M1). */
|
|
5197
|
+
cacheRead: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5198
|
+
cacheWrite: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5199
|
+
calls: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5200
|
+
iterations: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5201
|
+
retries: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
5202
|
+
usageSource: z.ZodOptional<z.ZodNullable<z.ZodEnum<["cc-json", "cc-otel", "cc-transcript", "openrouter-usage", "codex-json", "harness", "none"]>>>;
|
|
5203
|
+
pricingVersion: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
4437
5204
|
}, "strip", z.ZodTypeAny, {
|
|
4438
5205
|
id: string;
|
|
5206
|
+
source: "review" | "openspec" | "manual" | "pipeline";
|
|
4439
5207
|
model: string;
|
|
4440
5208
|
contractVersion: string;
|
|
4441
5209
|
timestamp: string;
|
|
4442
|
-
source: "review" | "openspec" | "manual" | "pipeline";
|
|
4443
5210
|
taskId: string;
|
|
4444
5211
|
agent: string;
|
|
4445
5212
|
status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
|
|
@@ -4470,12 +5237,19 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
4470
5237
|
contextBytes?: number | undefined;
|
|
4471
5238
|
handoffs?: number | undefined;
|
|
4472
5239
|
} | undefined;
|
|
5240
|
+
cacheRead?: number | null | undefined;
|
|
5241
|
+
cacheWrite?: number | null | undefined;
|
|
5242
|
+
calls?: number | null | undefined;
|
|
5243
|
+
iterations?: number | null | undefined;
|
|
5244
|
+
retries?: number | null | undefined;
|
|
5245
|
+
usageSource?: "cc-json" | "cc-otel" | "cc-transcript" | "openrouter-usage" | "codex-json" | "harness" | "none" | null | undefined;
|
|
5246
|
+
pricingVersion?: string | null | undefined;
|
|
4473
5247
|
}, {
|
|
4474
5248
|
id: string;
|
|
5249
|
+
source: "review" | "openspec" | "manual" | "pipeline";
|
|
4475
5250
|
model: string;
|
|
4476
5251
|
contractVersion: string;
|
|
4477
5252
|
timestamp: string;
|
|
4478
|
-
source: "review" | "openspec" | "manual" | "pipeline";
|
|
4479
5253
|
taskId: string;
|
|
4480
5254
|
agent: string;
|
|
4481
5255
|
status?: "reject" | "pass" | "phase_done" | "phase_failed" | "revise" | undefined;
|
|
@@ -4506,6 +5280,13 @@ export declare const TaskOutcomeSchema: z.ZodObject<{
|
|
|
4506
5280
|
contextBytes?: number | undefined;
|
|
4507
5281
|
handoffs?: number | undefined;
|
|
4508
5282
|
} | undefined;
|
|
5283
|
+
cacheRead?: number | null | undefined;
|
|
5284
|
+
cacheWrite?: number | null | undefined;
|
|
5285
|
+
calls?: number | null | undefined;
|
|
5286
|
+
iterations?: number | null | undefined;
|
|
5287
|
+
retries?: number | null | undefined;
|
|
5288
|
+
usageSource?: "cc-json" | "cc-otel" | "cc-transcript" | "openrouter-usage" | "codex-json" | "harness" | "none" | null | undefined;
|
|
5289
|
+
pricingVersion?: string | null | undefined;
|
|
4509
5290
|
}>;
|
|
4510
5291
|
export declare const HarnessComponentIdSchema: z.ZodEnum<["wayfinding", "intake", "design", "test_first", "review", "docs", "confirmation_gates", "compile_loop", "council", "product_graph"]>;
|
|
4511
5292
|
export declare const HarnessComponentLayerSchema: z.ZodEnum<["phase", "gate", "loop", "knowledge", "council"]>;
|
|
@@ -4658,7 +5439,7 @@ export declare const HarnessExperimentSchema: z.ZodObject<{
|
|
|
4658
5439
|
export declare const HarnessSuiteTaskSchema: z.ZodObject<{
|
|
4659
5440
|
id: z.ZodString;
|
|
4660
5441
|
title: z.ZodString;
|
|
4661
|
-
type: z.ZodEnum<["feature", "fix", "refactor"]>;
|
|
5442
|
+
type: z.ZodEnum<["feature", "fix", "refactor", "review"]>;
|
|
4662
5443
|
risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
4663
5444
|
prompt: z.ZodString;
|
|
4664
5445
|
scope: z.ZodString;
|
|
@@ -4666,19 +5447,19 @@ export declare const HarnessSuiteTaskSchema: z.ZodObject<{
|
|
|
4666
5447
|
testCommand: z.ZodOptional<z.ZodString>;
|
|
4667
5448
|
}, "strip", z.ZodTypeAny, {
|
|
4668
5449
|
id: string;
|
|
4669
|
-
type: "feature" | "fix" | "refactor";
|
|
5450
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5451
|
+
scope: string;
|
|
4670
5452
|
title: string;
|
|
4671
5453
|
risk: "low" | "medium" | "high";
|
|
4672
5454
|
acceptanceCriteria: string[];
|
|
4673
|
-
scope: string;
|
|
4674
5455
|
prompt: string;
|
|
4675
5456
|
testCommand?: string | undefined;
|
|
4676
5457
|
}, {
|
|
4677
5458
|
id: string;
|
|
4678
|
-
type: "feature" | "fix" | "refactor";
|
|
5459
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5460
|
+
scope: string;
|
|
4679
5461
|
title: string;
|
|
4680
5462
|
acceptanceCriteria: string[];
|
|
4681
|
-
scope: string;
|
|
4682
5463
|
prompt: string;
|
|
4683
5464
|
risk?: "low" | "medium" | "high" | undefined;
|
|
4684
5465
|
testCommand?: string | undefined;
|
|
@@ -4690,7 +5471,7 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
4690
5471
|
tasks: z.ZodArray<z.ZodObject<{
|
|
4691
5472
|
id: z.ZodString;
|
|
4692
5473
|
title: z.ZodString;
|
|
4693
|
-
type: z.ZodEnum<["feature", "fix", "refactor"]>;
|
|
5474
|
+
type: z.ZodEnum<["feature", "fix", "refactor", "review"]>;
|
|
4694
5475
|
risk: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
4695
5476
|
prompt: z.ZodString;
|
|
4696
5477
|
scope: z.ZodString;
|
|
@@ -4698,19 +5479,19 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
4698
5479
|
testCommand: z.ZodOptional<z.ZodString>;
|
|
4699
5480
|
}, "strip", z.ZodTypeAny, {
|
|
4700
5481
|
id: string;
|
|
4701
|
-
type: "feature" | "fix" | "refactor";
|
|
5482
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5483
|
+
scope: string;
|
|
4702
5484
|
title: string;
|
|
4703
5485
|
risk: "low" | "medium" | "high";
|
|
4704
5486
|
acceptanceCriteria: string[];
|
|
4705
|
-
scope: string;
|
|
4706
5487
|
prompt: string;
|
|
4707
5488
|
testCommand?: string | undefined;
|
|
4708
5489
|
}, {
|
|
4709
5490
|
id: string;
|
|
4710
|
-
type: "feature" | "fix" | "refactor";
|
|
5491
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5492
|
+
scope: string;
|
|
4711
5493
|
title: string;
|
|
4712
5494
|
acceptanceCriteria: string[];
|
|
4713
|
-
scope: string;
|
|
4714
5495
|
prompt: string;
|
|
4715
5496
|
risk?: "low" | "medium" | "high" | undefined;
|
|
4716
5497
|
testCommand?: string | undefined;
|
|
@@ -4720,11 +5501,11 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
4720
5501
|
version: number;
|
|
4721
5502
|
tasks: {
|
|
4722
5503
|
id: string;
|
|
4723
|
-
type: "feature" | "fix" | "refactor";
|
|
5504
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5505
|
+
scope: string;
|
|
4724
5506
|
title: string;
|
|
4725
5507
|
risk: "low" | "medium" | "high";
|
|
4726
5508
|
acceptanceCriteria: string[];
|
|
4727
|
-
scope: string;
|
|
4728
5509
|
prompt: string;
|
|
4729
5510
|
testCommand?: string | undefined;
|
|
4730
5511
|
}[];
|
|
@@ -4734,10 +5515,10 @@ export declare const HarnessSuiteSchema: z.ZodObject<{
|
|
|
4734
5515
|
version: number;
|
|
4735
5516
|
tasks: {
|
|
4736
5517
|
id: string;
|
|
4737
|
-
type: "feature" | "fix" | "refactor";
|
|
5518
|
+
type: "feature" | "fix" | "refactor" | "review";
|
|
5519
|
+
scope: string;
|
|
4738
5520
|
title: string;
|
|
4739
5521
|
acceptanceCriteria: string[];
|
|
4740
|
-
scope: string;
|
|
4741
5522
|
prompt: string;
|
|
4742
5523
|
risk?: "low" | "medium" | "high" | undefined;
|
|
4743
5524
|
testCommand?: string | undefined;
|
|
@@ -4770,17 +5551,17 @@ export declare const ExecutionProfileSchema: z.ZodObject<{
|
|
|
4770
5551
|
testerReviewer?: "primary" | "delegate" | undefined;
|
|
4771
5552
|
}>>;
|
|
4772
5553
|
}, "strip", z.ZodTypeAny, {
|
|
4773
|
-
profile: "balanced" | "quality" | "economical";
|
|
4774
5554
|
overrides: Record<string, string>;
|
|
5555
|
+
profile: "balanced" | "quality" | "economical";
|
|
4775
5556
|
target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse" | undefined;
|
|
4776
5557
|
subagentPolicy?: {
|
|
4777
5558
|
orchestrator?: "primary" | "delegate" | undefined;
|
|
4778
5559
|
testerReviewer?: "primary" | "delegate" | undefined;
|
|
4779
5560
|
} | undefined;
|
|
4780
5561
|
}, {
|
|
4781
|
-
profile?: "balanced" | "quality" | "economical" | undefined;
|
|
4782
|
-
target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse" | undefined;
|
|
4783
5562
|
overrides?: Record<string, string> | undefined;
|
|
5563
|
+
target?: "opencode" | "claude" | "codex" | "gemini" | "cursor" | "agy" | "pi" | "muse" | undefined;
|
|
5564
|
+
profile?: "balanced" | "quality" | "economical" | undefined;
|
|
4784
5565
|
subagentPolicy?: {
|
|
4785
5566
|
orchestrator?: "primary" | "delegate" | undefined;
|
|
4786
5567
|
testerReviewer?: "primary" | "delegate" | undefined;
|