@agentic-sdlc-kit/contracts 1.2.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/dist/agent/capability.d.ts +12 -1
  2. package/dist/agent/capability.d.ts.map +1 -1
  3. package/dist/agent/errors.d.ts +29 -11
  4. package/dist/agent/errors.d.ts.map +1 -1
  5. package/dist/agent/events.d.ts +42 -153
  6. package/dist/agent/events.d.ts.map +1 -1
  7. package/dist/agent/execution.d.ts +151 -415
  8. package/dist/agent/execution.d.ts.map +1 -1
  9. package/dist/agent/policy.d.ts +30 -92
  10. package/dist/agent/policy.d.ts.map +1 -1
  11. package/dist/agent/session.d.ts +1 -7
  12. package/dist/agent/session.d.ts.map +1 -1
  13. package/dist/agent-tools/index.d.ts +20 -58
  14. package/dist/agent-tools/index.d.ts.map +1 -1
  15. package/dist/application/application-context.d.ts +80 -582
  16. package/dist/application/application-context.d.ts.map +1 -1
  17. package/dist/application/application-persistence.d.ts +161 -924
  18. package/dist/application/application-persistence.d.ts.map +1 -1
  19. package/dist/application/application-state.d.ts +94 -70
  20. package/dist/application/application-state.d.ts.map +1 -1
  21. package/dist/architecture/api-contract.d.ts +56 -208
  22. package/dist/architecture/api-contract.d.ts.map +1 -1
  23. package/dist/architecture/architecture-approval.d.ts +2 -26
  24. package/dist/architecture/architecture-approval.d.ts.map +1 -1
  25. package/dist/architecture/architecture-options.d.ts +30 -82
  26. package/dist/architecture/architecture-options.d.ts.map +1 -1
  27. package/dist/architecture/component-map.d.ts +34 -60
  28. package/dist/architecture/component-map.d.ts.map +1 -1
  29. package/dist/architecture/data-model.d.ts +91 -205
  30. package/dist/architecture/data-model.d.ts.map +1 -1
  31. package/dist/architecture/operational-design.d.ts +48 -115
  32. package/dist/architecture/operational-design.d.ts.map +1 -1
  33. package/dist/architecture/security-design.d.ts +40 -90
  34. package/dist/architecture/security-design.d.ts.map +1 -1
  35. package/dist/benchmark/bench.d.ts +44 -263
  36. package/dist/benchmark/bench.d.ts.map +1 -1
  37. package/dist/common/identifier.d.ts +1 -1
  38. package/dist/common/identifier.d.ts.map +1 -1
  39. package/dist/constitution/cli-output.d.ts +58 -618
  40. package/dist/constitution/cli-output.d.ts.map +1 -1
  41. package/dist/constitution/result.d.ts +31 -84
  42. package/dist/constitution/result.d.ts.map +1 -1
  43. package/dist/constitution/rule.d.ts +97 -408
  44. package/dist/constitution/rule.d.ts.map +1 -1
  45. package/dist/context/project-context.d.ts +57 -227
  46. package/dist/context/project-context.d.ts.map +1 -1
  47. package/dist/evaluation/benchmark.d.ts +26 -66
  48. package/dist/evaluation/benchmark.d.ts.map +1 -1
  49. package/dist/evaluation/metrics.d.ts +15 -120
  50. package/dist/evaluation/metrics.d.ts.map +1 -1
  51. package/dist/evolution/experiment.d.ts +29 -51
  52. package/dist/evolution/experiment.d.ts.map +1 -1
  53. package/dist/evolution/improvement-hypothesis.d.ts +56 -78
  54. package/dist/evolution/improvement-hypothesis.d.ts.map +1 -1
  55. package/dist/execution/execution-profile.d.ts +25 -111
  56. package/dist/execution/execution-profile.d.ts.map +1 -1
  57. package/dist/improvement/config.d.ts +3 -17
  58. package/dist/improvement/config.d.ts.map +1 -1
  59. package/dist/improvement/config.js +1 -1
  60. package/dist/improvement/config.js.map +1 -1
  61. package/dist/improvement/finding.d.ts +24 -71
  62. package/dist/improvement/finding.d.ts.map +1 -1
  63. package/dist/improvement/issue.d.ts +10 -39
  64. package/dist/improvement/issue.d.ts.map +1 -1
  65. package/dist/improvement/kit-feedback.d.ts +45 -29
  66. package/dist/improvement/kit-feedback.d.ts.map +1 -1
  67. package/dist/improvement/review.d.ts +22 -28
  68. package/dist/improvement/review.d.ts.map +1 -1
  69. package/dist/installer/install-plan.d.ts +52 -137
  70. package/dist/installer/install-plan.d.ts.map +1 -1
  71. package/dist/installer/ownership-manifest.d.ts +7 -62
  72. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  73. package/dist/installer/package-manifest.d.ts +25 -40
  74. package/dist/installer/package-manifest.d.ts.map +1 -1
  75. package/dist/learning/engineering-lesson.d.ts +19 -65
  76. package/dist/learning/engineering-lesson.d.ts.map +1 -1
  77. package/dist/learning/engineering-memory.d.ts +32 -64
  78. package/dist/learning/engineering-memory.d.ts.map +1 -1
  79. package/dist/learning/experience-episode.d.ts +33 -141
  80. package/dist/learning/experience-episode.d.ts.map +1 -1
  81. package/dist/learning/experience.d.ts +16 -50
  82. package/dist/learning/experience.d.ts.map +1 -1
  83. package/dist/learning/hypothesis.d.ts +14 -39
  84. package/dist/learning/hypothesis.d.ts.map +1 -1
  85. package/dist/learning/learning-event.d.ts +32 -62
  86. package/dist/learning/learning-event.d.ts.map +1 -1
  87. package/dist/learning/memory.d.ts +12 -28
  88. package/dist/learning/memory.d.ts.map +1 -1
  89. package/dist/learning/promotion.d.ts +7 -20
  90. package/dist/learning/promotion.d.ts.map +1 -1
  91. package/dist/maintenance/bug-fix-workflow.d.ts +49 -30
  92. package/dist/maintenance/bug-fix-workflow.d.ts.map +1 -1
  93. package/dist/maintenance/bug-report.d.ts +39 -46
  94. package/dist/maintenance/bug-report.d.ts.map +1 -1
  95. package/dist/maintenance/performance-baseline.d.ts +18 -64
  96. package/dist/maintenance/performance-baseline.d.ts.map +1 -1
  97. package/dist/maintenance/refactor-contract.d.ts +47 -133
  98. package/dist/maintenance/refactor-contract.d.ts.map +1 -1
  99. package/dist/maintenance/refactor-workflow.d.ts +50 -51
  100. package/dist/maintenance/refactor-workflow.d.ts.map +1 -1
  101. package/dist/observer/event-schema.d.ts +31 -31
  102. package/dist/observer/event-schema.d.ts.map +1 -1
  103. package/dist/observer/journal.d.ts +32 -57
  104. package/dist/observer/journal.d.ts.map +1 -1
  105. package/dist/observer/journal.js +1 -1
  106. package/dist/observer/journal.js.map +1 -1
  107. package/dist/observer/retention.d.ts +2 -16
  108. package/dist/observer/retention.d.ts.map +1 -1
  109. package/dist/observer/run-summary.d.ts +45 -213
  110. package/dist/observer/run-summary.d.ts.map +1 -1
  111. package/dist/onboard/onboard-report.d.ts +85 -279
  112. package/dist/onboard/onboard-report.d.ts.map +1 -1
  113. package/dist/patterns/pattern.d.ts +28 -74
  114. package/dist/patterns/pattern.d.ts.map +1 -1
  115. package/dist/planning/task.d.ts +70 -149
  116. package/dist/planning/task.d.ts.map +1 -1
  117. package/dist/policy/policy.d.ts +61 -56
  118. package/dist/policy/policy.d.ts.map +1 -1
  119. package/dist/product/mvp-scope.d.ts +8 -18
  120. package/dist/product/mvp-scope.d.ts.map +1 -1
  121. package/dist/product/product-brief.d.ts +6 -74
  122. package/dist/product/product-brief.d.ts.map +1 -1
  123. package/dist/product/requirements.d.ts +99 -215
  124. package/dist/product/requirements.d.ts.map +1 -1
  125. package/dist/product/traceability.d.ts +7 -39
  126. package/dist/product/traceability.d.ts.map +1 -1
  127. package/dist/project/project-profile.d.ts +34 -146
  128. package/dist/project/project-profile.d.ts.map +1 -1
  129. package/dist/project/repository-scan.d.ts +8 -64
  130. package/dist/project/repository-scan.d.ts.map +1 -1
  131. package/dist/routing/capability-registry.d.ts +15 -67
  132. package/dist/routing/capability-registry.d.ts.map +1 -1
  133. package/dist/routing/escalation.d.ts +10 -17
  134. package/dist/routing/escalation.d.ts.map +1 -1
  135. package/dist/routing/measured-routing.d.ts +18 -28
  136. package/dist/routing/measured-routing.d.ts.map +1 -1
  137. package/dist/routing/routing-policy.d.ts +56 -84
  138. package/dist/routing/routing-policy.d.ts.map +1 -1
  139. package/dist/routing/routing-request.d.ts +50 -46
  140. package/dist/routing/routing-request.d.ts.map +1 -1
  141. package/dist/runtime-guard/action-classification.d.ts +66 -36
  142. package/dist/runtime-guard/action-classification.d.ts.map +1 -1
  143. package/dist/runtime-guard/action-classification.js +1 -1
  144. package/dist/runtime-guard/action-classification.js.map +1 -1
  145. package/dist/runtime-guard/audit-event.d.ts +45 -77
  146. package/dist/runtime-guard/audit-event.d.ts.map +1 -1
  147. package/dist/runtime-guard/policy-schema.d.ts +100 -116
  148. package/dist/runtime-guard/policy-schema.d.ts.map +1 -1
  149. package/dist/scaffolding/scaffold-contract.d.ts +46 -450
  150. package/dist/scaffolding/scaffold-contract.d.ts.map +1 -1
  151. package/dist/scaffolding/template-manifest.d.ts +5 -77
  152. package/dist/scaffolding/template-manifest.d.ts.map +1 -1
  153. package/dist/secret-guard/detection-rule.d.ts +25 -19
  154. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  155. package/dist/secret-guard/finding.d.ts +70 -69
  156. package/dist/secret-guard/finding.d.ts.map +1 -1
  157. package/dist/secret-guard/redaction-policy.d.ts +7 -17
  158. package/dist/secret-guard/redaction-policy.d.ts.map +1 -1
  159. package/dist/secret-guard/scanner-failure.d.ts +17 -45
  160. package/dist/secret-guard/scanner-failure.d.ts.map +1 -1
  161. package/dist/specification/specification.d.ts +48 -184
  162. package/dist/specification/specification.d.ts.map +1 -1
  163. package/dist/stack-pack/manifest.d.ts +19 -90
  164. package/dist/stack-pack/manifest.d.ts.map +1 -1
  165. package/dist/verification/report.d.ts +49 -164
  166. package/dist/verification/report.d.ts.map +1 -1
  167. package/dist/verification/strength.d.ts +62 -188
  168. package/dist/verification/strength.d.ts.map +1 -1
  169. package/dist/workflow/next-action.d.ts +55 -137
  170. package/dist/workflow/next-action.d.ts.map +1 -1
  171. package/dist/workflow/workflow.d.ts +50 -50
  172. package/dist/workflow/workflow.d.ts.map +1 -1
  173. package/package.json +4 -4
  174. package/src/improvement/config.ts +1 -1
  175. package/src/observer/journal.ts +1 -1
  176. package/src/runtime-guard/action-classification.ts +1 -1
  177. package/src/zod-defaults.test.ts +28 -0
@@ -1,174 +1,95 @@
1
1
  import { z } from 'zod';
2
- export declare const TaskScopeSchema: z.ZodEnum<["xs", "s", "m", "l", "xl"]>;
3
- export declare const RiskLevelSchema: z.ZodEnum<["low", "medium", "high"]>;
4
- export declare const TaskVerificationSchema: z.ZodObject<{
5
- command: z.ZodArray<z.ZodString, "many">;
6
- expectedStatus: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
7
- }, "strip", z.ZodTypeAny, {
8
- command: string[];
9
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
10
- }, {
11
- command: string[];
12
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
2
+ export declare const TaskScopeSchema: z.ZodEnum<{
3
+ xs: "xs";
4
+ s: "s";
5
+ m: "m";
6
+ l: "l";
7
+ xl: "xl";
8
+ }>;
9
+ export declare const RiskLevelSchema: z.ZodEnum<{
10
+ low: "low";
11
+ medium: "medium";
12
+ high: "high";
13
13
  }>;
14
+ export declare const TaskVerificationSchema: z.ZodObject<{
15
+ command: z.ZodArray<z.ZodString>;
16
+ expectedStatus: z.ZodEnum<{
17
+ passed: "passed";
18
+ failed: "failed";
19
+ blocked: "blocked";
20
+ skipped: "skipped";
21
+ }>;
22
+ }, z.core.$strip>;
14
23
  export declare const TaskSchema: z.ZodObject<{
15
24
  id: z.ZodString;
16
25
  description: z.ZodString;
17
- acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
26
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
18
27
  verification: z.ZodObject<{
19
- command: z.ZodArray<z.ZodString, "many">;
20
- expectedStatus: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
21
- }, "strip", z.ZodTypeAny, {
22
- command: string[];
23
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
24
- }, {
25
- command: string[];
26
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
28
+ command: z.ZodArray<z.ZodString>;
29
+ expectedStatus: z.ZodEnum<{
30
+ passed: "passed";
31
+ failed: "failed";
32
+ blocked: "blocked";
33
+ skipped: "skipped";
34
+ }>;
35
+ }, z.core.$strip>;
36
+ dependencies: z.ZodArray<z.ZodString>;
37
+ likelyFiles: z.ZodArray<z.ZodString>;
38
+ estimatedScope: z.ZodEnum<{
39
+ xs: "xs";
40
+ s: "s";
41
+ m: "m";
42
+ l: "l";
43
+ xl: "xl";
27
44
  }>;
28
- dependencies: z.ZodArray<z.ZodString, "many">;
29
- likelyFiles: z.ZodArray<z.ZodString, "many">;
30
- estimatedScope: z.ZodEnum<["xs", "s", "m", "l", "xl"]>;
31
- risk: z.ZodEnum<["low", "medium", "high"]>;
32
- }, "strip", z.ZodTypeAny, {
33
- verification: {
34
- command: string[];
35
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
36
- };
37
- id: string;
38
- acceptanceCriteria: string[];
39
- dependencies: string[];
40
- description: string;
41
- likelyFiles: string[];
42
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
43
- risk: "low" | "medium" | "high";
44
- }, {
45
- verification: {
46
- command: string[];
47
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
48
- };
49
- id: string;
50
- acceptanceCriteria: string[];
51
- dependencies: string[];
52
- description: string;
53
- likelyFiles: string[];
54
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
55
- risk: "low" | "medium" | "high";
56
- }>;
45
+ risk: z.ZodEnum<{
46
+ low: "low";
47
+ medium: "medium";
48
+ high: "high";
49
+ }>;
50
+ }, z.core.$strip>;
57
51
  export declare const DependencyEdgeSchema: z.ZodObject<{
58
52
  from: z.ZodString;
59
53
  to: z.ZodString;
60
54
  reason: z.ZodString;
61
- }, "strip", z.ZodTypeAny, {
62
- from: string;
63
- reason: string;
64
- to: string;
65
- }, {
66
- from: string;
67
- reason: string;
68
- to: string;
69
- }>;
55
+ }, z.core.$strip>;
70
56
  export declare const ImplementationPlanSchema: z.ZodObject<{
71
57
  featureId: z.ZodString;
72
58
  tasks: z.ZodArray<z.ZodObject<{
73
59
  id: z.ZodString;
74
60
  description: z.ZodString;
75
- acceptanceCriteria: z.ZodArray<z.ZodString, "many">;
61
+ acceptanceCriteria: z.ZodArray<z.ZodString>;
76
62
  verification: z.ZodObject<{
77
- command: z.ZodArray<z.ZodString, "many">;
78
- expectedStatus: z.ZodEnum<["passed", "failed", "skipped", "blocked"]>;
79
- }, "strip", z.ZodTypeAny, {
80
- command: string[];
81
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
82
- }, {
83
- command: string[];
84
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
63
+ command: z.ZodArray<z.ZodString>;
64
+ expectedStatus: z.ZodEnum<{
65
+ passed: "passed";
66
+ failed: "failed";
67
+ blocked: "blocked";
68
+ skipped: "skipped";
69
+ }>;
70
+ }, z.core.$strip>;
71
+ dependencies: z.ZodArray<z.ZodString>;
72
+ likelyFiles: z.ZodArray<z.ZodString>;
73
+ estimatedScope: z.ZodEnum<{
74
+ xs: "xs";
75
+ s: "s";
76
+ m: "m";
77
+ l: "l";
78
+ xl: "xl";
85
79
  }>;
86
- dependencies: z.ZodArray<z.ZodString, "many">;
87
- likelyFiles: z.ZodArray<z.ZodString, "many">;
88
- estimatedScope: z.ZodEnum<["xs", "s", "m", "l", "xl"]>;
89
- risk: z.ZodEnum<["low", "medium", "high"]>;
90
- }, "strip", z.ZodTypeAny, {
91
- verification: {
92
- command: string[];
93
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
94
- };
95
- id: string;
96
- acceptanceCriteria: string[];
97
- dependencies: string[];
98
- description: string;
99
- likelyFiles: string[];
100
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
101
- risk: "low" | "medium" | "high";
102
- }, {
103
- verification: {
104
- command: string[];
105
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
106
- };
107
- id: string;
108
- acceptanceCriteria: string[];
109
- dependencies: string[];
110
- description: string;
111
- likelyFiles: string[];
112
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
113
- risk: "low" | "medium" | "high";
114
- }>, "many">;
80
+ risk: z.ZodEnum<{
81
+ low: "low";
82
+ medium: "medium";
83
+ high: "high";
84
+ }>;
85
+ }, z.core.$strip>>;
115
86
  edges: z.ZodArray<z.ZodObject<{
116
87
  from: z.ZodString;
117
88
  to: z.ZodString;
118
89
  reason: z.ZodString;
119
- }, "strip", z.ZodTypeAny, {
120
- from: string;
121
- reason: string;
122
- to: string;
123
- }, {
124
- from: string;
125
- reason: string;
126
- to: string;
127
- }>, "many">;
128
- verticalSlices: z.ZodArray<z.ZodArray<z.ZodString, "many">, "many">;
129
- }, "strip", z.ZodTypeAny, {
130
- featureId: string;
131
- tasks: {
132
- verification: {
133
- command: string[];
134
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
135
- };
136
- id: string;
137
- acceptanceCriteria: string[];
138
- dependencies: string[];
139
- description: string;
140
- likelyFiles: string[];
141
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
142
- risk: "low" | "medium" | "high";
143
- }[];
144
- edges: {
145
- from: string;
146
- reason: string;
147
- to: string;
148
- }[];
149
- verticalSlices: string[][];
150
- }, {
151
- featureId: string;
152
- tasks: {
153
- verification: {
154
- command: string[];
155
- expectedStatus: "passed" | "failed" | "blocked" | "skipped";
156
- };
157
- id: string;
158
- acceptanceCriteria: string[];
159
- dependencies: string[];
160
- description: string;
161
- likelyFiles: string[];
162
- estimatedScope: "xs" | "s" | "m" | "l" | "xl";
163
- risk: "low" | "medium" | "high";
164
- }[];
165
- edges: {
166
- from: string;
167
- reason: string;
168
- to: string;
169
- }[];
170
- verticalSlices: string[][];
171
- }>;
90
+ }, z.core.$strip>>;
91
+ verticalSlices: z.ZodArray<z.ZodArray<z.ZodString>>;
92
+ }, z.core.$strip>;
172
93
  export type Task = z.infer<typeof TaskSchema>;
173
94
  export type TaskVerification = z.infer<typeof TaskVerificationSchema>;
174
95
  export type DependencyEdge = z.infer<typeof DependencyEdgeSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"task.d.ts","sourceRoot":"","sources":["../../src/planning/task.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe,wCAAsC,CAAC;AACnE,eAAO,MAAM,eAAe,sCAAoC,CAAC;AAEjE,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;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AC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAC9C,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAC1E,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AACxD,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC"}
@@ -1,65 +1,78 @@
1
1
  import { z } from 'zod';
2
- export declare const PolicyActionSchema: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
2
+ export declare const PolicyActionSchema: z.ZodEnum<{
3
+ "file.delete": "file.delete";
4
+ "file.bulk-modify": "file.bulk-modify";
5
+ "db.migrate": "db.migrate";
6
+ "db.production-mutate": "db.production-mutate";
7
+ "git.force-push": "git.force-push";
8
+ "release.deploy": "release.deploy";
9
+ "secret.modify": "secret.modify";
10
+ "dependency.remove": "dependency.remove";
11
+ }>;
3
12
  export type PolicyAction = z.infer<typeof PolicyActionSchema>;
4
- export declare const VerdictSchema: z.ZodEnum<["allow", "deny", "require-approval"]>;
13
+ export declare const VerdictSchema: z.ZodEnum<{
14
+ allow: "allow";
15
+ deny: "deny";
16
+ "require-approval": "require-approval";
17
+ }>;
5
18
  export type Verdict = z.infer<typeof VerdictSchema>;
6
- export declare const PolicyDecisionSchema: z.ZodDiscriminatedUnion<"verdict", [z.ZodObject<{
7
- action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
19
+ export declare const PolicyDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
20
+ action: z.ZodEnum<{
21
+ "file.delete": "file.delete";
22
+ "file.bulk-modify": "file.bulk-modify";
23
+ "db.migrate": "db.migrate";
24
+ "db.production-mutate": "db.production-mutate";
25
+ "git.force-push": "git.force-push";
26
+ "release.deploy": "release.deploy";
27
+ "secret.modify": "secret.modify";
28
+ "dependency.remove": "dependency.remove";
29
+ }>;
8
30
  verdict: z.ZodLiteral<"allow">;
9
31
  reason: z.ZodString;
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";
12
- reason: string;
13
- verdict: "allow";
14
- }, {
15
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
16
- reason: string;
17
- verdict: "allow";
18
- }>, z.ZodObject<{
19
- action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
32
+ }, z.core.$strip>, z.ZodObject<{
33
+ action: z.ZodEnum<{
34
+ "file.delete": "file.delete";
35
+ "file.bulk-modify": "file.bulk-modify";
36
+ "db.migrate": "db.migrate";
37
+ "db.production-mutate": "db.production-mutate";
38
+ "git.force-push": "git.force-push";
39
+ "release.deploy": "release.deploy";
40
+ "secret.modify": "secret.modify";
41
+ "dependency.remove": "dependency.remove";
42
+ }>;
20
43
  verdict: z.ZodLiteral<"deny">;
21
44
  reason: z.ZodString;
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";
24
- reason: string;
25
- verdict: "deny";
26
- }, {
27
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
28
- reason: string;
29
- verdict: "deny";
30
- }>, z.ZodObject<{
31
- action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
45
+ }, z.core.$strip>, z.ZodObject<{
46
+ action: z.ZodEnum<{
47
+ "file.delete": "file.delete";
48
+ "file.bulk-modify": "file.bulk-modify";
49
+ "db.migrate": "db.migrate";
50
+ "db.production-mutate": "db.production-mutate";
51
+ "git.force-push": "git.force-push";
52
+ "release.deploy": "release.deploy";
53
+ "secret.modify": "secret.modify";
54
+ "dependency.remove": "dependency.remove";
55
+ }>;
32
56
  verdict: z.ZodLiteral<"require-approval">;
33
57
  reason: z.ZodString;
34
58
  approver: z.ZodString;
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";
37
- reason: string;
38
- verdict: "require-approval";
39
- approver: string;
40
- }, {
41
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
42
- reason: string;
43
- verdict: "require-approval";
44
- approver: string;
45
- }>]>;
59
+ }, z.core.$strip>], "verdict">;
46
60
  export type PolicyDecision = z.infer<typeof PolicyDecisionSchema>;
47
61
  export declare const ApprovalSchema: z.ZodObject<{
48
- action: z.ZodEnum<["file.delete", "file.bulk-modify", "db.migrate", "db.production-mutate", "git.force-push", "release.deploy", "secret.modify", "dependency.remove"]>;
62
+ action: z.ZodEnum<{
63
+ "file.delete": "file.delete";
64
+ "file.bulk-modify": "file.bulk-modify";
65
+ "db.migrate": "db.migrate";
66
+ "db.production-mutate": "db.production-mutate";
67
+ "git.force-push": "git.force-push";
68
+ "release.deploy": "release.deploy";
69
+ "secret.modify": "secret.modify";
70
+ "dependency.remove": "dependency.remove";
71
+ }>;
49
72
  approver: z.ZodString;
50
73
  grantedAt: z.ZodString;
51
74
  rationale: z.ZodString;
52
- }, "strip", z.ZodTypeAny, {
53
- rationale: string;
54
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
55
- approver: string;
56
- grantedAt: string;
57
- }, {
58
- rationale: string;
59
- action: "file.delete" | "file.bulk-modify" | "db.migrate" | "db.production-mutate" | "git.force-push" | "release.deploy" | "secret.modify" | "dependency.remove";
60
- approver: string;
61
- grantedAt: string;
62
- }>;
75
+ }, z.core.$strip>;
63
76
  export type Approval = z.infer<typeof ApprovalSchema>;
64
77
  /**
65
78
  * Context passed to the policy evaluator. M1 only carries the fields
@@ -70,14 +83,6 @@ export declare const PolicyContextSchema: z.ZodObject<{
70
83
  interactive: z.ZodBoolean;
71
84
  scopeFileCount: z.ZodOptional<z.ZodNumber>;
72
85
  isProduction: z.ZodOptional<z.ZodBoolean>;
73
- }, "strip", z.ZodTypeAny, {
74
- interactive: boolean;
75
- scopeFileCount?: number | undefined;
76
- isProduction?: boolean | undefined;
77
- }, {
78
- interactive: boolean;
79
- scopeFileCount?: number | undefined;
80
- isProduction?: boolean | undefined;
81
- }>;
86
+ }, z.core.$strip>;
82
87
  export type PolicyContext = z.infer<typeof PolicyContextSchema>;
83
88
  //# sourceMappingURL=policy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["../../src/policy/policy.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB,gKAS7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa,kDAAgD,CAAC;AAC3E,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,oBAAoB;;;;;;;;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-2,24 +2,14 @@ import { z } from 'zod';
2
2
  export declare const MvpScopeSchema: z.ZodObject<{
3
3
  schemaVersion: z.ZodLiteral<1>;
4
4
  briefId: z.ZodString;
5
- inScopeRequirementIds: z.ZodArray<z.ZodString, "many">;
6
- outOfScopeRequirementIds: z.ZodArray<z.ZodString, "many">;
7
- releaseBoundary: z.ZodEnum<["mvp", "post-mvp", "future"]>;
5
+ inScopeRequirementIds: z.ZodArray<z.ZodString>;
6
+ outOfScopeRequirementIds: z.ZodArray<z.ZodString>;
7
+ releaseBoundary: z.ZodEnum<{
8
+ mvp: "mvp";
9
+ "post-mvp": "post-mvp";
10
+ future: "future";
11
+ }>;
8
12
  rationale: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- schemaVersion: 1;
11
- rationale: string;
12
- briefId: string;
13
- inScopeRequirementIds: string[];
14
- outOfScopeRequirementIds: string[];
15
- releaseBoundary: "mvp" | "post-mvp" | "future";
16
- }, {
17
- schemaVersion: 1;
18
- rationale: string;
19
- briefId: string;
20
- inScopeRequirementIds: string[];
21
- outOfScopeRequirementIds: string[];
22
- releaseBoundary: "mvp" | "post-mvp" | "future";
23
- }>;
13
+ }, z.core.$strip>;
24
14
  export type MvpScope = z.infer<typeof MvpScopeSchema>;
25
15
  //# sourceMappingURL=mvp-scope.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mvp-scope.d.ts","sourceRoot":"","sources":["../../src/product/mvp-scope.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;EAOzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
1
+ {"version":3,"file":"mvp-scope.d.ts","sourceRoot":"","sources":["../../src/product/mvp-scope.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;iBAOzB,CAAC;AAEH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC"}
@@ -8,87 +8,19 @@ export declare const ProductBriefSchema: z.ZodObject<{
8
8
  name: z.ZodString;
9
9
  role: z.ZodString;
10
10
  need: z.ZodString;
11
- }, "strip", z.ZodTypeAny, {
12
- name: string;
13
- role: string;
14
- need: string;
15
- }, {
16
- name: string;
17
- role: string;
18
- need: string;
19
- }>, "many">;
20
- businessGoals: z.ZodArray<z.ZodString, "many">;
11
+ }, z.core.$strip>>;
12
+ businessGoals: z.ZodArray<z.ZodString>;
21
13
  assumptions: z.ZodDefault<z.ZodArray<z.ZodObject<{
22
14
  id: z.ZodString;
23
15
  assumption: z.ZodString;
24
16
  requiresApproval: z.ZodBoolean;
25
- }, "strip", z.ZodTypeAny, {
26
- id: string;
27
- assumption: string;
28
- requiresApproval: boolean;
29
- }, {
30
- id: string;
31
- assumption: string;
32
- requiresApproval: boolean;
33
- }>, "many">>;
17
+ }, z.core.$strip>>>;
34
18
  unresolvedDecisions: z.ZodDefault<z.ZodArray<z.ZodObject<{
35
19
  id: z.ZodString;
36
20
  question: z.ZodString;
37
21
  blocking: z.ZodBoolean;
38
- }, "strip", z.ZodTypeAny, {
39
- blocking: boolean;
40
- id: string;
41
- question: string;
42
- }, {
43
- blocking: boolean;
44
- id: string;
45
- question: string;
46
- }>, "many">>;
47
- outOfScope: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
48
- }, "strict", z.ZodTypeAny, {
49
- id: string;
50
- title: string;
51
- description: string;
52
- problemStatement: string;
53
- targetUsers: {
54
- name: string;
55
- role: string;
56
- need: string;
57
- }[];
58
- businessGoals: string[];
59
- assumptions: {
60
- id: string;
61
- assumption: string;
62
- requiresApproval: boolean;
63
- }[];
64
- unresolvedDecisions: {
65
- blocking: boolean;
66
- id: string;
67
- question: string;
68
- }[];
69
- outOfScope: string[];
70
- }, {
71
- id: string;
72
- title: string;
73
- description: string;
74
- problemStatement: string;
75
- targetUsers: {
76
- name: string;
77
- role: string;
78
- need: string;
79
- }[];
80
- businessGoals: string[];
81
- assumptions?: {
82
- id: string;
83
- assumption: string;
84
- requiresApproval: boolean;
85
- }[] | undefined;
86
- unresolvedDecisions?: {
87
- blocking: boolean;
88
- id: string;
89
- question: string;
90
- }[] | undefined;
91
- outOfScope?: string[] | undefined;
92
- }>;
22
+ }, z.core.$strip>>>;
23
+ outOfScope: z.ZodDefault<z.ZodArray<z.ZodString>>;
24
+ }, z.core.$strict>;
93
25
  export type ProductBrief = z.infer<typeof ProductBriefSchema>;
94
26
  //# sourceMappingURL=product-brief.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-brief.d.ts","sourceRoot":"","sources":["../../src/product/product-brief.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCpB,CAAC;AAEZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
1
+ {"version":3,"file":"product-brief.d.ts","sourceRoot":"","sources":["../../src/product/product-brief.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;kBAoCpB,CAAC;AAEZ,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}