@agentic-sdlc-kit/contracts 0.9.1 → 1.0.1
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/agent/events.d.ts +18 -18
- package/dist/agent/execution.d.ts +22 -22
- package/dist/agent-tools/index.d.ts +85 -0
- package/dist/agent-tools/index.d.ts.map +1 -0
- package/dist/agent-tools/index.js +60 -0
- package/dist/agent-tools/index.js.map +1 -0
- package/dist/application/application-context.d.ts +194 -60
- package/dist/application/application-context.d.ts.map +1 -1
- package/dist/application/application-persistence.d.ts +276 -114
- package/dist/application/application-persistence.d.ts.map +1 -1
- package/dist/application/application-state.d.ts +18 -18
- package/dist/architecture/api-contract.d.ts +18 -18
- package/dist/architecture/architecture-options.d.ts +6 -6
- package/dist/architecture/component-map.d.ts +6 -6
- package/dist/architecture/data-model.d.ts +6 -6
- package/dist/architecture/operational-design.d.ts +6 -6
- package/dist/benchmark/bench.d.ts +330 -0
- package/dist/benchmark/bench.d.ts.map +1 -0
- package/dist/benchmark/bench.js +69 -0
- package/dist/benchmark/bench.js.map +1 -0
- package/dist/benchmark/index.d.ts +2 -0
- package/dist/benchmark/index.d.ts.map +1 -0
- package/dist/benchmark/index.js +2 -0
- package/dist/benchmark/index.js.map +1 -0
- package/dist/constitution/cli-output.d.ts +706 -0
- package/dist/constitution/cli-output.d.ts.map +1 -0
- package/dist/constitution/cli-output.js +37 -0
- package/dist/constitution/cli-output.js.map +1 -0
- package/dist/constitution/index.d.ts +4 -0
- package/dist/constitution/index.d.ts.map +1 -0
- package/dist/constitution/index.js +4 -0
- package/dist/constitution/index.js.map +1 -0
- package/dist/constitution/result.d.ts +112 -0
- package/dist/constitution/result.d.ts.map +1 -0
- package/dist/constitution/result.js +67 -0
- package/dist/constitution/result.js.map +1 -0
- package/dist/constitution/rule.d.ts +488 -0
- package/dist/constitution/rule.d.ts.map +1 -0
- package/dist/constitution/rule.js +164 -0
- package/dist/constitution/rule.js.map +1 -0
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +2 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/project-context.d.ts +275 -0
- package/dist/context/project-context.d.ts.map +1 -0
- package/dist/context/project-context.js +56 -0
- package/dist/context/project-context.js.map +1 -0
- package/dist/evaluation/benchmark.d.ts +12 -12
- package/dist/evaluation/metrics.d.ts +4 -4
- package/dist/evolution/improvement-hypothesis.d.ts +10 -10
- package/dist/execution/execution-profile.d.ts +130 -0
- package/dist/execution/execution-profile.d.ts.map +1 -0
- package/dist/execution/execution-profile.js +44 -0
- package/dist/execution/execution-profile.js.map +1 -0
- package/dist/execution/index.d.ts +2 -0
- package/dist/execution/index.d.ts.map +1 -0
- package/dist/execution/index.js +2 -0
- package/dist/execution/index.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -0
- package/dist/index.js.map +1 -1
- package/dist/installer/install-plan.d.ts +16 -16
- package/dist/installer/ownership-manifest.d.ts +2 -2
- package/dist/installer/package-manifest.d.ts +6 -6
- package/dist/learning/engineering-lesson.d.ts +14 -14
- package/dist/learning/engineering-memory.d.ts +20 -2
- package/dist/learning/engineering-memory.d.ts.map +1 -1
- package/dist/learning/engineering-memory.js +2 -0
- package/dist/learning/engineering-memory.js.map +1 -1
- package/dist/learning/experience-episode.d.ts +14 -14
- package/dist/learning/experience.d.ts +8 -8
- package/dist/learning/index.d.ts +1 -0
- package/dist/learning/index.d.ts.map +1 -1
- package/dist/learning/index.js +1 -0
- package/dist/learning/index.js.map +1 -1
- package/dist/learning/learning-event.d.ts +78 -0
- package/dist/learning/learning-event.d.ts.map +1 -0
- package/dist/learning/learning-event.js +37 -0
- package/dist/learning/learning-event.js.map +1 -0
- package/dist/learning/memory.d.ts +2 -2
- package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
- package/dist/maintenance/bug-report.d.ts +6 -6
- package/dist/maintenance/refactor-contract.d.ts +8 -8
- package/dist/maintenance/refactor-workflow.d.ts +4 -4
- package/dist/observer/event-schema.d.ts +6 -6
- package/dist/observer/journal.d.ts +10 -10
- package/dist/observer/journal.d.ts.map +1 -1
- package/dist/observer/journal.js +7 -0
- package/dist/observer/journal.js.map +1 -1
- package/dist/observer/run-summary.d.ts +12 -12
- package/dist/onboard/index.d.ts +2 -0
- package/dist/onboard/index.d.ts.map +1 -0
- package/dist/onboard/index.js +2 -0
- package/dist/onboard/index.js.map +1 -0
- package/dist/onboard/onboard-report.d.ts +349 -0
- package/dist/onboard/onboard-report.d.ts.map +1 -0
- package/dist/onboard/onboard-report.js +96 -0
- package/dist/onboard/onboard-report.js.map +1 -0
- package/dist/patterns/pattern.d.ts +2 -2
- package/dist/planning/task.d.ts +36 -36
- package/dist/policy/policy.d.ts +8 -8
- package/dist/product/product-brief.d.ts +6 -6
- package/dist/product/requirements.d.ts +48 -48
- package/dist/project/project-profile.d.ts +113 -2
- package/dist/project/project-profile.d.ts.map +1 -1
- package/dist/project/project-profile.js +17 -2
- package/dist/project/project-profile.js.map +1 -1
- package/dist/routing/index.d.ts +1 -0
- package/dist/routing/index.d.ts.map +1 -1
- package/dist/routing/index.js +1 -0
- package/dist/routing/index.js.map +1 -1
- package/dist/routing/measured-routing.d.ts +41 -0
- package/dist/routing/measured-routing.d.ts.map +1 -0
- package/dist/routing/measured-routing.js +24 -0
- package/dist/routing/measured-routing.js.map +1 -0
- package/dist/routing/routing-policy.d.ts +20 -20
- package/dist/routing/routing-request.d.ts +2 -2
- package/dist/runtime-guard/action-classification.d.ts +2 -2
- package/dist/runtime-guard/audit-event.d.ts +8 -8
- package/dist/runtime-guard/policy-schema.d.ts +4 -4
- package/dist/scaffolding/scaffold-contract.d.ts +59 -59
- package/dist/scaffolding/template-manifest.d.ts +15 -15
- package/dist/secret-guard/detection-rule.d.ts +4 -4
- package/dist/secret-guard/finding.d.ts +10 -10
- package/dist/secret-guard/scanner-failure.d.ts +4 -4
- package/dist/specification/specification.d.ts +8 -8
- package/dist/stack-pack/manifest.d.ts +33 -4
- package/dist/stack-pack/manifest.d.ts.map +1 -1
- package/dist/stack-pack/manifest.js +22 -2
- package/dist/stack-pack/manifest.js.map +1 -1
- package/dist/verification/index.d.ts +1 -0
- package/dist/verification/index.d.ts.map +1 -1
- package/dist/verification/index.js +1 -0
- package/dist/verification/index.js.map +1 -1
- package/dist/verification/report.d.ts +118 -12
- package/dist/verification/report.d.ts.map +1 -1
- package/dist/verification/report.js +4 -0
- package/dist/verification/report.js.map +1 -1
- package/dist/verification/strength.d.ts +270 -0
- package/dist/verification/strength.d.ts.map +1 -0
- package/dist/verification/strength.js +168 -0
- package/dist/verification/strength.js.map +1 -0
- package/dist/workflow/next-action.d.ts +67 -6
- package/dist/workflow/next-action.d.ts.map +1 -1
- package/dist/workflow/next-action.js +23 -0
- package/dist/workflow/next-action.js.map +1 -1
- package/dist/workflow/workflow.d.ts +9 -8
- package/dist/workflow/workflow.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/agent-tools/index.ts +81 -0
- package/src/benchmark/bench.ts +83 -0
- package/src/benchmark/index.ts +1 -0
- package/src/constitution/cli-output.ts +44 -0
- package/src/constitution/index.ts +3 -0
- package/src/constitution/result.test.ts +69 -0
- package/src/constitution/result.ts +74 -0
- package/src/constitution/rule-origin.test.ts +36 -0
- package/src/constitution/rule-path.test.ts +15 -0
- package/src/constitution/rule.test.ts +209 -0
- package/src/constitution/rule.ts +192 -0
- package/src/context/index.ts +1 -0
- package/src/context/project-context.ts +63 -0
- package/src/execution/execution-profile.ts +50 -0
- package/src/execution/index.ts +1 -0
- package/src/index.ts +16 -0
- package/src/learning/engineering-memory.ts +2 -0
- package/src/learning/index.ts +1 -0
- package/src/learning/learning-event.ts +42 -0
- package/src/observer/journal.ts +7 -0
- package/src/onboard/index.ts +1 -0
- package/src/onboard/onboard-report.test.ts +92 -0
- package/src/onboard/onboard-report.ts +115 -0
- package/src/project/project-profile.ts +19 -2
- package/src/routing/index.ts +1 -0
- package/src/routing/measured-routing.ts +27 -0
- package/src/stack-pack/manifest.test.ts +45 -0
- package/src/stack-pack/manifest.ts +24 -2
- package/src/verification/index.ts +1 -0
- package/src/verification/report.ts +4 -0
- package/src/verification/strength.test.ts +160 -0
- package/src/verification/strength.ts +189 -0
- package/src/workflow/next-action.test.ts +25 -0
- package/src/workflow/next-action.ts +25 -0
- package/src/workflow/workflow.ts +1 -0
package/dist/policy/policy.d.ts
CHANGED
|
@@ -8,39 +8,39 @@ export declare const PolicyDecisionSchema: z.ZodDiscriminatedUnion<"verdict", [z
|
|
|
8
8
|
verdict: z.ZodLiteral<"allow">;
|
|
9
9
|
reason: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
11
12
|
reason: string;
|
|
12
13
|
verdict: "allow";
|
|
13
|
-
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
14
14
|
}, {
|
|
15
|
+
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
15
16
|
reason: string;
|
|
16
17
|
verdict: "allow";
|
|
17
|
-
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
18
18
|
}>, z.ZodObject<{
|
|
19
19
|
action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
|
|
20
20
|
verdict: z.ZodLiteral<"deny">;
|
|
21
21
|
reason: z.ZodString;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
23
24
|
reason: string;
|
|
24
25
|
verdict: "deny";
|
|
25
|
-
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
26
26
|
}, {
|
|
27
|
+
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
27
28
|
reason: string;
|
|
28
29
|
verdict: "deny";
|
|
29
|
-
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
30
30
|
}>, z.ZodObject<{
|
|
31
31
|
action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
|
|
32
32
|
verdict: z.ZodLiteral<"require-approval">;
|
|
33
33
|
reason: z.ZodString;
|
|
34
34
|
approver: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
36
37
|
reason: string;
|
|
37
38
|
verdict: "require-approval";
|
|
38
|
-
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
39
39
|
approver: string;
|
|
40
40
|
}, {
|
|
41
|
+
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
41
42
|
reason: string;
|
|
42
43
|
verdict: "require-approval";
|
|
43
|
-
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
44
44
|
approver: string;
|
|
45
45
|
}>]>;
|
|
46
46
|
export type PolicyDecision = z.infer<typeof PolicyDecisionSchema>;
|
|
@@ -50,15 +50,15 @@ export declare const ApprovalSchema: z.ZodObject<{
|
|
|
50
50
|
grantedAt: z.ZodString;
|
|
51
51
|
rationale: z.ZodString;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
rationale: string;
|
|
53
54
|
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
54
55
|
approver: string;
|
|
55
56
|
grantedAt: string;
|
|
56
|
-
rationale: string;
|
|
57
57
|
}, {
|
|
58
|
+
rationale: string;
|
|
58
59
|
action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
|
|
59
60
|
approver: string;
|
|
60
61
|
grantedAt: string;
|
|
61
|
-
rationale: string;
|
|
62
62
|
}>;
|
|
63
63
|
export type Approval = z.infer<typeof ApprovalSchema>;
|
|
64
64
|
/**
|
|
@@ -36,19 +36,19 @@ export declare const ProductBriefSchema: z.ZodObject<{
|
|
|
36
36
|
question: z.ZodString;
|
|
37
37
|
blocking: z.ZodBoolean;
|
|
38
38
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
+
blocking: boolean;
|
|
39
40
|
id: string;
|
|
40
41
|
question: string;
|
|
41
|
-
blocking: boolean;
|
|
42
42
|
}, {
|
|
43
|
+
blocking: boolean;
|
|
43
44
|
id: string;
|
|
44
45
|
question: string;
|
|
45
|
-
blocking: boolean;
|
|
46
46
|
}>, "many">>;
|
|
47
47
|
outOfScope: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
48
48
|
}, "strict", z.ZodTypeAny, {
|
|
49
49
|
id: string;
|
|
50
|
-
description: string;
|
|
51
50
|
title: string;
|
|
51
|
+
description: string;
|
|
52
52
|
problemStatement: string;
|
|
53
53
|
targetUsers: {
|
|
54
54
|
name: string;
|
|
@@ -62,15 +62,15 @@ export declare const ProductBriefSchema: z.ZodObject<{
|
|
|
62
62
|
requiresApproval: boolean;
|
|
63
63
|
}[];
|
|
64
64
|
unresolvedDecisions: {
|
|
65
|
+
blocking: boolean;
|
|
65
66
|
id: string;
|
|
66
67
|
question: string;
|
|
67
|
-
blocking: boolean;
|
|
68
68
|
}[];
|
|
69
69
|
outOfScope: string[];
|
|
70
70
|
}, {
|
|
71
71
|
id: string;
|
|
72
|
-
description: string;
|
|
73
72
|
title: string;
|
|
73
|
+
description: string;
|
|
74
74
|
problemStatement: string;
|
|
75
75
|
targetUsers: {
|
|
76
76
|
name: string;
|
|
@@ -84,9 +84,9 @@ export declare const ProductBriefSchema: z.ZodObject<{
|
|
|
84
84
|
requiresApproval: boolean;
|
|
85
85
|
}[] | undefined;
|
|
86
86
|
unresolvedDecisions?: {
|
|
87
|
+
blocking: boolean;
|
|
87
88
|
id: string;
|
|
88
89
|
question: string;
|
|
89
|
-
blocking: boolean;
|
|
90
90
|
}[] | undefined;
|
|
91
91
|
outOfScope?: string[] | undefined;
|
|
92
92
|
}>;
|
|
@@ -8,18 +8,18 @@ export declare const ProductRequirementSchema: z.ZodObject<{
|
|
|
8
8
|
source: z.ZodString;
|
|
9
9
|
acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
11
12
|
id: string;
|
|
12
13
|
statement: string;
|
|
13
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
14
|
-
priority: "must" | "should" | "could" | "wont";
|
|
15
14
|
source: string;
|
|
15
|
+
priority: "must" | "should" | "could" | "wont";
|
|
16
16
|
acceptanceCriterionIds: string[];
|
|
17
17
|
}, {
|
|
18
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
18
19
|
id: string;
|
|
19
20
|
statement: string;
|
|
20
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
21
|
-
priority: "must" | "should" | "could" | "wont";
|
|
22
21
|
source: string;
|
|
22
|
+
priority: "must" | "should" | "could" | "wont";
|
|
23
23
|
acceptanceCriterionIds: string[];
|
|
24
24
|
}>;
|
|
25
25
|
export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
@@ -33,18 +33,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
33
33
|
source: z.ZodString;
|
|
34
34
|
acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
36
37
|
id: string;
|
|
37
38
|
statement: string;
|
|
38
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
39
|
-
priority: "must" | "should" | "could" | "wont";
|
|
40
39
|
source: string;
|
|
40
|
+
priority: "must" | "should" | "could" | "wont";
|
|
41
41
|
acceptanceCriterionIds: string[];
|
|
42
42
|
}, {
|
|
43
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
43
44
|
id: string;
|
|
44
45
|
statement: string;
|
|
45
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
46
|
-
priority: "must" | "should" | "could" | "wont";
|
|
47
46
|
source: string;
|
|
47
|
+
priority: "must" | "should" | "could" | "wont";
|
|
48
48
|
acceptanceCriterionIds: string[];
|
|
49
49
|
}>, "many">;
|
|
50
50
|
nonFunctional: z.ZodArray<z.ZodObject<{
|
|
@@ -55,18 +55,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
55
55
|
source: z.ZodString;
|
|
56
56
|
acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
|
|
57
57
|
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
58
59
|
id: string;
|
|
59
60
|
statement: string;
|
|
60
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
61
|
-
priority: "must" | "should" | "could" | "wont";
|
|
62
61
|
source: string;
|
|
62
|
+
priority: "must" | "should" | "could" | "wont";
|
|
63
63
|
acceptanceCriterionIds: string[];
|
|
64
64
|
}, {
|
|
65
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
65
66
|
id: string;
|
|
66
67
|
statement: string;
|
|
67
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
68
|
-
priority: "must" | "should" | "could" | "wont";
|
|
69
68
|
source: string;
|
|
69
|
+
priority: "must" | "should" | "could" | "wont";
|
|
70
70
|
acceptanceCriterionIds: string[];
|
|
71
71
|
}>, "many">;
|
|
72
72
|
business: z.ZodArray<z.ZodObject<{
|
|
@@ -77,18 +77,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
77
77
|
source: z.ZodString;
|
|
78
78
|
acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
|
|
79
79
|
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
80
81
|
id: string;
|
|
81
82
|
statement: string;
|
|
82
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
83
|
-
priority: "must" | "should" | "could" | "wont";
|
|
84
83
|
source: string;
|
|
84
|
+
priority: "must" | "should" | "could" | "wont";
|
|
85
85
|
acceptanceCriterionIds: string[];
|
|
86
86
|
}, {
|
|
87
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
87
88
|
id: string;
|
|
88
89
|
statement: string;
|
|
89
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
90
|
-
priority: "must" | "should" | "could" | "wont";
|
|
91
90
|
source: string;
|
|
91
|
+
priority: "must" | "should" | "could" | "wont";
|
|
92
92
|
acceptanceCriterionIds: string[];
|
|
93
93
|
}>, "many">;
|
|
94
94
|
technicalConstraints: z.ZodArray<z.ZodObject<{
|
|
@@ -99,18 +99,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
99
99
|
source: z.ZodString;
|
|
100
100
|
acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
|
|
101
101
|
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
102
103
|
id: string;
|
|
103
104
|
statement: string;
|
|
104
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
105
|
-
priority: "must" | "should" | "could" | "wont";
|
|
106
105
|
source: string;
|
|
106
|
+
priority: "must" | "should" | "could" | "wont";
|
|
107
107
|
acceptanceCriterionIds: string[];
|
|
108
108
|
}, {
|
|
109
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
109
110
|
id: string;
|
|
110
111
|
statement: string;
|
|
111
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
112
|
-
priority: "must" | "should" | "could" | "wont";
|
|
113
112
|
source: string;
|
|
113
|
+
priority: "must" | "should" | "could" | "wont";
|
|
114
114
|
acceptanceCriterionIds: string[];
|
|
115
115
|
}>, "many">;
|
|
116
116
|
assumptions: z.ZodArray<z.ZodObject<{
|
|
@@ -121,18 +121,18 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
121
121
|
source: z.ZodString;
|
|
122
122
|
acceptanceCriterionIds: z.ZodArray<z.ZodString, "many">;
|
|
123
123
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
124
125
|
id: string;
|
|
125
126
|
statement: string;
|
|
126
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
127
|
-
priority: "must" | "should" | "could" | "wont";
|
|
128
127
|
source: string;
|
|
128
|
+
priority: "must" | "should" | "could" | "wont";
|
|
129
129
|
acceptanceCriterionIds: string[];
|
|
130
130
|
}, {
|
|
131
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
131
132
|
id: string;
|
|
132
133
|
statement: string;
|
|
133
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
134
|
-
priority: "must" | "should" | "could" | "wont";
|
|
135
134
|
source: string;
|
|
135
|
+
priority: "must" | "should" | "could" | "wont";
|
|
136
136
|
acceptanceCriterionIds: string[];
|
|
137
137
|
}>, "many">;
|
|
138
138
|
unresolvedDecisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -140,109 +140,109 @@ export declare const RequirementsDocumentSchema: z.ZodObject<{
|
|
|
140
140
|
question: z.ZodString;
|
|
141
141
|
blocking: z.ZodBoolean;
|
|
142
142
|
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
blocking: boolean;
|
|
143
144
|
id: string;
|
|
144
145
|
question: string;
|
|
145
|
-
blocking: boolean;
|
|
146
146
|
}, {
|
|
147
|
+
blocking: boolean;
|
|
147
148
|
id: string;
|
|
148
149
|
question: string;
|
|
149
|
-
blocking: boolean;
|
|
150
150
|
}>, "many">>;
|
|
151
151
|
}, "strict", z.ZodTypeAny, {
|
|
152
152
|
schemaVersion: 1;
|
|
153
153
|
assumptions: {
|
|
154
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
154
155
|
id: string;
|
|
155
156
|
statement: string;
|
|
156
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
157
|
-
priority: "must" | "should" | "could" | "wont";
|
|
158
157
|
source: string;
|
|
158
|
+
priority: "must" | "should" | "could" | "wont";
|
|
159
159
|
acceptanceCriterionIds: string[];
|
|
160
160
|
}[];
|
|
161
161
|
unresolvedDecisions: {
|
|
162
|
+
blocking: boolean;
|
|
162
163
|
id: string;
|
|
163
164
|
question: string;
|
|
164
|
-
blocking: boolean;
|
|
165
165
|
}[];
|
|
166
166
|
business: {
|
|
167
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
167
168
|
id: string;
|
|
168
169
|
statement: string;
|
|
169
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
170
|
-
priority: "must" | "should" | "could" | "wont";
|
|
171
170
|
source: string;
|
|
171
|
+
priority: "must" | "should" | "could" | "wont";
|
|
172
172
|
acceptanceCriterionIds: string[];
|
|
173
173
|
}[];
|
|
174
174
|
functional: {
|
|
175
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
175
176
|
id: string;
|
|
176
177
|
statement: string;
|
|
177
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
178
|
-
priority: "must" | "should" | "could" | "wont";
|
|
179
178
|
source: string;
|
|
179
|
+
priority: "must" | "should" | "could" | "wont";
|
|
180
180
|
acceptanceCriterionIds: string[];
|
|
181
181
|
}[];
|
|
182
182
|
briefId: string;
|
|
183
183
|
nonFunctional: {
|
|
184
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
184
185
|
id: string;
|
|
185
186
|
statement: string;
|
|
186
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
187
|
-
priority: "must" | "should" | "could" | "wont";
|
|
188
187
|
source: string;
|
|
188
|
+
priority: "must" | "should" | "could" | "wont";
|
|
189
189
|
acceptanceCriterionIds: string[];
|
|
190
190
|
}[];
|
|
191
191
|
technicalConstraints: {
|
|
192
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
192
193
|
id: string;
|
|
193
194
|
statement: string;
|
|
194
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
195
|
-
priority: "must" | "should" | "could" | "wont";
|
|
196
195
|
source: string;
|
|
196
|
+
priority: "must" | "should" | "could" | "wont";
|
|
197
197
|
acceptanceCriterionIds: string[];
|
|
198
198
|
}[];
|
|
199
199
|
}, {
|
|
200
200
|
schemaVersion: 1;
|
|
201
201
|
assumptions: {
|
|
202
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
202
203
|
id: string;
|
|
203
204
|
statement: string;
|
|
204
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
205
|
-
priority: "must" | "should" | "could" | "wont";
|
|
206
205
|
source: string;
|
|
206
|
+
priority: "must" | "should" | "could" | "wont";
|
|
207
207
|
acceptanceCriterionIds: string[];
|
|
208
208
|
}[];
|
|
209
209
|
business: {
|
|
210
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
210
211
|
id: string;
|
|
211
212
|
statement: string;
|
|
212
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
213
|
-
priority: "must" | "should" | "could" | "wont";
|
|
214
213
|
source: string;
|
|
214
|
+
priority: "must" | "should" | "could" | "wont";
|
|
215
215
|
acceptanceCriterionIds: string[];
|
|
216
216
|
}[];
|
|
217
217
|
functional: {
|
|
218
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
218
219
|
id: string;
|
|
219
220
|
statement: string;
|
|
220
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
221
|
-
priority: "must" | "should" | "could" | "wont";
|
|
222
221
|
source: string;
|
|
222
|
+
priority: "must" | "should" | "could" | "wont";
|
|
223
223
|
acceptanceCriterionIds: string[];
|
|
224
224
|
}[];
|
|
225
225
|
briefId: string;
|
|
226
226
|
nonFunctional: {
|
|
227
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
227
228
|
id: string;
|
|
228
229
|
statement: string;
|
|
229
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
230
|
-
priority: "must" | "should" | "could" | "wont";
|
|
231
230
|
source: string;
|
|
231
|
+
priority: "must" | "should" | "could" | "wont";
|
|
232
232
|
acceptanceCriterionIds: string[];
|
|
233
233
|
}[];
|
|
234
234
|
technicalConstraints: {
|
|
235
|
+
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
235
236
|
id: string;
|
|
236
237
|
statement: string;
|
|
237
|
-
kind: "assumption" | "business" | "functional" | "non-functional" | "technical-constraint";
|
|
238
|
-
priority: "must" | "should" | "could" | "wont";
|
|
239
238
|
source: string;
|
|
239
|
+
priority: "must" | "should" | "could" | "wont";
|
|
240
240
|
acceptanceCriterionIds: string[];
|
|
241
241
|
}[];
|
|
242
242
|
unresolvedDecisions?: {
|
|
243
|
+
blocking: boolean;
|
|
243
244
|
id: string;
|
|
244
245
|
question: string;
|
|
245
|
-
blocking: boolean;
|
|
246
246
|
}[] | undefined;
|
|
247
247
|
}>;
|
|
248
248
|
export type RequirementKind = z.infer<typeof RequirementKindSchema>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* Schema version for the ProjectProfile contract. Bumped on breaking
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
* changes; requires an ADR and a migration function in
|
|
5
|
+
* core/artifacts/migrations/.
|
|
6
6
|
*/
|
|
7
7
|
export declare const PROJECT_PROFILE_SCHEMA_VERSION: 1;
|
|
8
8
|
/**
|
|
@@ -26,6 +26,49 @@ export declare const CommandsMapSchema: z.ZodObject<{
|
|
|
26
26
|
typecheck?: string[][] | undefined;
|
|
27
27
|
build?: string[][] | undefined;
|
|
28
28
|
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Verification settings overlay (ADR-0022). Optional, absent by
|
|
31
|
+
* default: a profile without a `verification` section keeps the exact
|
|
32
|
+
* pre-ADR-0022 behavior — strength evidence is opt-in.
|
|
33
|
+
*/
|
|
34
|
+
export declare const VerificationSettingsSectionSchema: z.ZodObject<{
|
|
35
|
+
strength: z.ZodOptional<z.ZodObject<{
|
|
36
|
+
enabled: z.ZodBoolean;
|
|
37
|
+
threshold: z.ZodNumber;
|
|
38
|
+
budgetMs: z.ZodNumber;
|
|
39
|
+
scope: z.ZodEnum<["diff", "suite"]>;
|
|
40
|
+
gateMode: z.ZodEnum<["warn", "enforce"]>;
|
|
41
|
+
}, "strict", z.ZodTypeAny, {
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
threshold: number;
|
|
44
|
+
budgetMs: number;
|
|
45
|
+
scope: "diff" | "suite";
|
|
46
|
+
gateMode: "warn" | "enforce";
|
|
47
|
+
}, {
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
threshold: number;
|
|
50
|
+
budgetMs: number;
|
|
51
|
+
scope: "diff" | "suite";
|
|
52
|
+
gateMode: "warn" | "enforce";
|
|
53
|
+
}>>;
|
|
54
|
+
}, "strict", z.ZodTypeAny, {
|
|
55
|
+
strength?: {
|
|
56
|
+
enabled: boolean;
|
|
57
|
+
threshold: number;
|
|
58
|
+
budgetMs: number;
|
|
59
|
+
scope: "diff" | "suite";
|
|
60
|
+
gateMode: "warn" | "enforce";
|
|
61
|
+
} | undefined;
|
|
62
|
+
}, {
|
|
63
|
+
strength?: {
|
|
64
|
+
enabled: boolean;
|
|
65
|
+
threshold: number;
|
|
66
|
+
budgetMs: number;
|
|
67
|
+
scope: "diff" | "suite";
|
|
68
|
+
gateMode: "warn" | "enforce";
|
|
69
|
+
} | undefined;
|
|
70
|
+
}>;
|
|
71
|
+
export type VerificationSettingsSection = z.infer<typeof VerificationSettingsSectionSchema>;
|
|
29
72
|
export declare const ProjectProfileSchema: z.ZodObject<{
|
|
30
73
|
schemaVersion: z.ZodLiteral<1>;
|
|
31
74
|
name: z.ZodString;
|
|
@@ -46,6 +89,50 @@ export declare const ProjectProfileSchema: z.ZodObject<{
|
|
|
46
89
|
typecheck?: string[][] | undefined;
|
|
47
90
|
build?: string[][] | undefined;
|
|
48
91
|
}>;
|
|
92
|
+
verification: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
strength: z.ZodOptional<z.ZodObject<{
|
|
94
|
+
enabled: z.ZodBoolean;
|
|
95
|
+
threshold: z.ZodNumber;
|
|
96
|
+
budgetMs: z.ZodNumber;
|
|
97
|
+
scope: z.ZodEnum<["diff", "suite"]>;
|
|
98
|
+
gateMode: z.ZodEnum<["warn", "enforce"]>;
|
|
99
|
+
}, "strict", z.ZodTypeAny, {
|
|
100
|
+
enabled: boolean;
|
|
101
|
+
threshold: number;
|
|
102
|
+
budgetMs: number;
|
|
103
|
+
scope: "diff" | "suite";
|
|
104
|
+
gateMode: "warn" | "enforce";
|
|
105
|
+
}, {
|
|
106
|
+
enabled: boolean;
|
|
107
|
+
threshold: number;
|
|
108
|
+
budgetMs: number;
|
|
109
|
+
scope: "diff" | "suite";
|
|
110
|
+
gateMode: "warn" | "enforce";
|
|
111
|
+
}>>;
|
|
112
|
+
}, "strict", z.ZodTypeAny, {
|
|
113
|
+
strength?: {
|
|
114
|
+
enabled: boolean;
|
|
115
|
+
threshold: number;
|
|
116
|
+
budgetMs: number;
|
|
117
|
+
scope: "diff" | "suite";
|
|
118
|
+
gateMode: "warn" | "enforce";
|
|
119
|
+
} | undefined;
|
|
120
|
+
}, {
|
|
121
|
+
strength?: {
|
|
122
|
+
enabled: boolean;
|
|
123
|
+
threshold: number;
|
|
124
|
+
budgetMs: number;
|
|
125
|
+
scope: "diff" | "suite";
|
|
126
|
+
gateMode: "warn" | "enforce";
|
|
127
|
+
} | undefined;
|
|
128
|
+
}>>;
|
|
129
|
+
constitution: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
required: z.ZodBoolean;
|
|
131
|
+
}, "strict", z.ZodTypeAny, {
|
|
132
|
+
required: boolean;
|
|
133
|
+
}, {
|
|
134
|
+
required: boolean;
|
|
135
|
+
}>>;
|
|
49
136
|
}, "strict", z.ZodTypeAny, {
|
|
50
137
|
schemaVersion: 1;
|
|
51
138
|
name: string;
|
|
@@ -56,6 +143,18 @@ export declare const ProjectProfileSchema: z.ZodObject<{
|
|
|
56
143
|
typecheck?: string[][] | undefined;
|
|
57
144
|
build?: string[][] | undefined;
|
|
58
145
|
};
|
|
146
|
+
verification?: {
|
|
147
|
+
strength?: {
|
|
148
|
+
enabled: boolean;
|
|
149
|
+
threshold: number;
|
|
150
|
+
budgetMs: number;
|
|
151
|
+
scope: "diff" | "suite";
|
|
152
|
+
gateMode: "warn" | "enforce";
|
|
153
|
+
} | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
constitution?: {
|
|
156
|
+
required: boolean;
|
|
157
|
+
} | undefined;
|
|
59
158
|
}, {
|
|
60
159
|
schemaVersion: 1;
|
|
61
160
|
name: string;
|
|
@@ -66,6 +165,18 @@ export declare const ProjectProfileSchema: z.ZodObject<{
|
|
|
66
165
|
typecheck?: string[][] | undefined;
|
|
67
166
|
build?: string[][] | undefined;
|
|
68
167
|
};
|
|
168
|
+
verification?: {
|
|
169
|
+
strength?: {
|
|
170
|
+
enabled: boolean;
|
|
171
|
+
threshold: number;
|
|
172
|
+
budgetMs: number;
|
|
173
|
+
scope: "diff" | "suite";
|
|
174
|
+
gateMode: "warn" | "enforce";
|
|
175
|
+
} | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
constitution?: {
|
|
178
|
+
required: boolean;
|
|
179
|
+
} | undefined;
|
|
69
180
|
}>;
|
|
70
181
|
export type ProjectProfile = z.infer<typeof ProjectProfileSchema>;
|
|
71
182
|
export type CommandsMap = z.infer<typeof CommandsMapSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-profile.d.ts","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"project-profile.d.ts","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;GAIG;AACH,eAAO,MAAM,8BAA8B,EAAG,CAAU,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,aAAa,iCAEiC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;EAOnB,CAAC;AAEZ;;;;GAIG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AACZ,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAE5F,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAC5D,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,eAAe,CAAC,GAAG,cAAc,CAExF"}
|
|
@@ -7,10 +7,11 @@
|
|
|
7
7
|
//
|
|
8
8
|
// See docs/contracts/CONTRACTS.md §2 and ADR-0008.
|
|
9
9
|
import { z } from 'zod';
|
|
10
|
+
import { StrengthSettingsSchema } from '../verification/strength.js';
|
|
10
11
|
/**
|
|
11
12
|
* Schema version for the ProjectProfile contract. Bumped on breaking
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
* changes; requires an ADR and a migration function in
|
|
14
|
+
* core/artifacts/migrations/.
|
|
14
15
|
*/
|
|
15
16
|
export const PROJECT_PROFILE_SCHEMA_VERSION = 1;
|
|
16
17
|
/**
|
|
@@ -28,6 +29,16 @@ export const CommandsMapSchema = z
|
|
|
28
29
|
build: z.array(CommandSchema).optional(),
|
|
29
30
|
})
|
|
30
31
|
.strict();
|
|
32
|
+
/**
|
|
33
|
+
* Verification settings overlay (ADR-0022). Optional, absent by
|
|
34
|
+
* default: a profile without a `verification` section keeps the exact
|
|
35
|
+
* pre-ADR-0022 behavior — strength evidence is opt-in.
|
|
36
|
+
*/
|
|
37
|
+
export const VerificationSettingsSectionSchema = z
|
|
38
|
+
.object({
|
|
39
|
+
strength: StrengthSettingsSchema.optional(),
|
|
40
|
+
})
|
|
41
|
+
.strict();
|
|
31
42
|
export const ProjectProfileSchema = z
|
|
32
43
|
.object({
|
|
33
44
|
schemaVersion: z.literal(PROJECT_PROFILE_SCHEMA_VERSION),
|
|
@@ -40,6 +51,10 @@ export const ProjectProfileSchema = z
|
|
|
40
51
|
.regex(/^[a-z][a-z0-9-]*$/, 'stack entry must be lowercase kebab-case'))
|
|
41
52
|
.min(1, 'stack must contain at least one entry'),
|
|
42
53
|
commands: CommandsMapSchema,
|
|
54
|
+
verification: VerificationSettingsSectionSchema.optional(),
|
|
55
|
+
// Engineering constitution policy (ADR-0023). required: true means a failed
|
|
56
|
+
// or unavailable constitution must never be reported as passing.
|
|
57
|
+
constitution: z.object({ required: z.boolean() }).strict().optional(),
|
|
43
58
|
})
|
|
44
59
|
.strict();
|
|
45
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-profile.js","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,uEAAuE;AACvE,EAAE;AACF,0EAA0E;AAC1E,oEAAoE;AACpE,EAAE;AACF,mDAAmD;AAEnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"project-profile.js","sourceRoot":"","sources":["../../src/project/project-profile.ts"],"names":[],"mappings":"AAAA,oDAAoD;AACpD,EAAE;AACF,uEAAuE;AACvE,EAAE;AACF,0EAA0E;AAC1E,oEAAoE;AACpE,EAAE;AACF,mDAAmD;AAEnD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAErE;;;;GAIG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG,CAAU,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC;KAC3B,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACxB,GAAG,CAAC,CAAC,EAAE,gDAAgD,CAAC,CAAC;AAE5D,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC;KAC/B,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IACvC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;IAC5C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC;KACD,MAAM,EAAE,CAAC;AAEZ;;;;GAIG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC;KAC/C,MAAM,CAAC;IACN,QAAQ,EAAE,sBAAsB,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,MAAM,EAAE,CAAC;AAGZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,8BAA8B,CAAC;IACxD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,EAAE,0BAA0B,CAAC;IAC5D,KAAK,EAAE,CAAC;SACL,KAAK,CACJ,CAAC;SACE,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,KAAK,CAAC,mBAAmB,EAAE,0CAA0C,CAAC,CAC1E;SACA,GAAG,CAAC,CAAC,EAAE,uCAAuC,CAAC;IAClD,QAAQ,EAAE,iBAAiB;IAC3B,YAAY,EAAE,iCAAiC,CAAC,QAAQ,EAAE;IAC1D,4EAA4E;IAC5E,iEAAiE;IACjE,YAAY,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtE,CAAC;KACD,MAAM,EAAE,CAAC;AAOZ;;;;GAIG;AACH,MAAM,UAAU,WAAW,CAAC,KAA4C;IACtE,OAAO,oBAAoB,CAAC,KAAK,CAAC,EAAE,GAAG,KAAK,EAAE,aAAa,EAAE,8BAA8B,EAAE,CAAC,CAAC;AACjG,CAAC"}
|
package/dist/routing/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AACA,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
package/dist/routing/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/routing/index.ts"],"names":[],"mappings":"AAAA,0CAA0C;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ROUTING_OBSERVATION_SCHEMA_VERSION: 1;
|
|
3
|
+
export declare const MeasuredRoutingObservationSchema: z.ZodObject<{
|
|
4
|
+
schemaVersion: z.ZodLiteral<1>;
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
occurredAt: z.ZodString;
|
|
7
|
+
taskType: z.ZodEnum<["feature", "fix", "refactor", "review", "verify"]>;
|
|
8
|
+
model: z.ZodString;
|
|
9
|
+
effort: z.ZodEnum<["low", "medium", "high"]>;
|
|
10
|
+
verdict: z.ZodEnum<["passed", "failed", "blocked"]>;
|
|
11
|
+
tokensIn: z.ZodNumber;
|
|
12
|
+
tokensOut: z.ZodNumber;
|
|
13
|
+
costUnits: z.ZodNumber;
|
|
14
|
+
latencyMs: z.ZodNumber;
|
|
15
|
+
}, "strict", z.ZodTypeAny, {
|
|
16
|
+
schemaVersion: 1;
|
|
17
|
+
id: string;
|
|
18
|
+
occurredAt: string;
|
|
19
|
+
taskType: "review" | "feature" | "fix" | "refactor" | "verify";
|
|
20
|
+
verdict: "passed" | "failed" | "blocked";
|
|
21
|
+
model: string;
|
|
22
|
+
effort: "low" | "medium" | "high";
|
|
23
|
+
tokensIn: number;
|
|
24
|
+
tokensOut: number;
|
|
25
|
+
costUnits: number;
|
|
26
|
+
latencyMs: number;
|
|
27
|
+
}, {
|
|
28
|
+
schemaVersion: 1;
|
|
29
|
+
id: string;
|
|
30
|
+
occurredAt: string;
|
|
31
|
+
taskType: "review" | "feature" | "fix" | "refactor" | "verify";
|
|
32
|
+
verdict: "passed" | "failed" | "blocked";
|
|
33
|
+
model: string;
|
|
34
|
+
effort: "low" | "medium" | "high";
|
|
35
|
+
tokensIn: number;
|
|
36
|
+
tokensOut: number;
|
|
37
|
+
costUnits: number;
|
|
38
|
+
latencyMs: number;
|
|
39
|
+
}>;
|
|
40
|
+
export type MeasuredRoutingObservation = z.infer<typeof MeasuredRoutingObservationSchema>;
|
|
41
|
+
//# sourceMappingURL=measured-routing.d.ts.map
|