@agentic-sdlc-kit/contracts 0.8.0 → 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.
Files changed (198) hide show
  1. package/dist/agent/events.d.ts +18 -18
  2. package/dist/agent/execution.d.ts +22 -22
  3. package/dist/agent-tools/index.d.ts +85 -0
  4. package/dist/agent-tools/index.d.ts.map +1 -0
  5. package/dist/agent-tools/index.js +60 -0
  6. package/dist/agent-tools/index.js.map +1 -0
  7. package/dist/application/application-context.d.ts +194 -60
  8. package/dist/application/application-context.d.ts.map +1 -1
  9. package/dist/application/application-persistence.d.ts +276 -114
  10. package/dist/application/application-persistence.d.ts.map +1 -1
  11. package/dist/application/application-state.d.ts +18 -18
  12. package/dist/architecture/api-contract.d.ts +18 -18
  13. package/dist/architecture/architecture-options.d.ts +6 -6
  14. package/dist/architecture/component-map.d.ts +6 -6
  15. package/dist/architecture/data-model.d.ts +6 -6
  16. package/dist/architecture/operational-design.d.ts +6 -6
  17. package/dist/benchmark/bench.d.ts +330 -0
  18. package/dist/benchmark/bench.d.ts.map +1 -0
  19. package/dist/benchmark/bench.js +69 -0
  20. package/dist/benchmark/bench.js.map +1 -0
  21. package/dist/benchmark/index.d.ts +2 -0
  22. package/dist/benchmark/index.d.ts.map +1 -0
  23. package/dist/benchmark/index.js +2 -0
  24. package/dist/benchmark/index.js.map +1 -0
  25. package/dist/constitution/cli-output.d.ts +706 -0
  26. package/dist/constitution/cli-output.d.ts.map +1 -0
  27. package/dist/constitution/cli-output.js +37 -0
  28. package/dist/constitution/cli-output.js.map +1 -0
  29. package/dist/constitution/index.d.ts +4 -0
  30. package/dist/constitution/index.d.ts.map +1 -0
  31. package/dist/constitution/index.js +4 -0
  32. package/dist/constitution/index.js.map +1 -0
  33. package/dist/constitution/result.d.ts +112 -0
  34. package/dist/constitution/result.d.ts.map +1 -0
  35. package/dist/constitution/result.js +67 -0
  36. package/dist/constitution/result.js.map +1 -0
  37. package/dist/constitution/rule.d.ts +488 -0
  38. package/dist/constitution/rule.d.ts.map +1 -0
  39. package/dist/constitution/rule.js +164 -0
  40. package/dist/constitution/rule.js.map +1 -0
  41. package/dist/context/index.d.ts +2 -0
  42. package/dist/context/index.d.ts.map +1 -0
  43. package/dist/context/index.js +2 -0
  44. package/dist/context/index.js.map +1 -0
  45. package/dist/context/project-context.d.ts +275 -0
  46. package/dist/context/project-context.d.ts.map +1 -0
  47. package/dist/context/project-context.js +56 -0
  48. package/dist/context/project-context.js.map +1 -0
  49. package/dist/evaluation/benchmark.d.ts +12 -12
  50. package/dist/evaluation/metrics.d.ts +4 -4
  51. package/dist/evolution/improvement-hypothesis.d.ts +10 -10
  52. package/dist/execution/execution-profile.d.ts +130 -0
  53. package/dist/execution/execution-profile.d.ts.map +1 -0
  54. package/dist/execution/execution-profile.js +44 -0
  55. package/dist/execution/execution-profile.js.map +1 -0
  56. package/dist/execution/index.d.ts +2 -0
  57. package/dist/execution/index.d.ts.map +1 -0
  58. package/dist/execution/index.js +2 -0
  59. package/dist/execution/index.js.map +1 -0
  60. package/dist/index.d.ts +6 -0
  61. package/dist/index.d.ts.map +1 -1
  62. package/dist/index.js +11 -0
  63. package/dist/index.js.map +1 -1
  64. package/dist/installer/install-plan.d.ts +16 -16
  65. package/dist/installer/ownership-manifest.d.ts +10 -2
  66. package/dist/installer/ownership-manifest.d.ts.map +1 -1
  67. package/dist/installer/ownership-manifest.js +4 -0
  68. package/dist/installer/ownership-manifest.js.map +1 -1
  69. package/dist/installer/package-manifest.d.ts +6 -6
  70. package/dist/learning/engineering-lesson.d.ts +14 -14
  71. package/dist/learning/engineering-memory.d.ts +20 -2
  72. package/dist/learning/engineering-memory.d.ts.map +1 -1
  73. package/dist/learning/engineering-memory.js +2 -0
  74. package/dist/learning/engineering-memory.js.map +1 -1
  75. package/dist/learning/experience-episode.d.ts +14 -14
  76. package/dist/learning/experience.d.ts +8 -8
  77. package/dist/learning/index.d.ts +1 -0
  78. package/dist/learning/index.d.ts.map +1 -1
  79. package/dist/learning/index.js +1 -0
  80. package/dist/learning/index.js.map +1 -1
  81. package/dist/learning/learning-event.d.ts +78 -0
  82. package/dist/learning/learning-event.d.ts.map +1 -0
  83. package/dist/learning/learning-event.js +37 -0
  84. package/dist/learning/learning-event.js.map +1 -0
  85. package/dist/learning/memory.d.ts +2 -2
  86. package/dist/maintenance/bug-fix-workflow.d.ts +4 -4
  87. package/dist/maintenance/bug-report.d.ts +6 -6
  88. package/dist/maintenance/refactor-contract.d.ts +8 -8
  89. package/dist/maintenance/refactor-workflow.d.ts +4 -4
  90. package/dist/observer/event-schema.d.ts +6 -6
  91. package/dist/observer/journal.d.ts +10 -10
  92. package/dist/observer/journal.d.ts.map +1 -1
  93. package/dist/observer/journal.js +7 -0
  94. package/dist/observer/journal.js.map +1 -1
  95. package/dist/observer/run-summary.d.ts +12 -12
  96. package/dist/onboard/index.d.ts +2 -0
  97. package/dist/onboard/index.d.ts.map +1 -0
  98. package/dist/onboard/index.js +2 -0
  99. package/dist/onboard/index.js.map +1 -0
  100. package/dist/onboard/onboard-report.d.ts +349 -0
  101. package/dist/onboard/onboard-report.d.ts.map +1 -0
  102. package/dist/onboard/onboard-report.js +96 -0
  103. package/dist/onboard/onboard-report.js.map +1 -0
  104. package/dist/patterns/pattern.d.ts +2 -2
  105. package/dist/planning/task.d.ts +36 -36
  106. package/dist/policy/policy.d.ts +8 -8
  107. package/dist/product/product-brief.d.ts +6 -6
  108. package/dist/product/requirements.d.ts +48 -48
  109. package/dist/project/project-profile.d.ts +113 -2
  110. package/dist/project/project-profile.d.ts.map +1 -1
  111. package/dist/project/project-profile.js +17 -2
  112. package/dist/project/project-profile.js.map +1 -1
  113. package/dist/routing/index.d.ts +1 -0
  114. package/dist/routing/index.d.ts.map +1 -1
  115. package/dist/routing/index.js +1 -0
  116. package/dist/routing/index.js.map +1 -1
  117. package/dist/routing/measured-routing.d.ts +41 -0
  118. package/dist/routing/measured-routing.d.ts.map +1 -0
  119. package/dist/routing/measured-routing.js +24 -0
  120. package/dist/routing/measured-routing.js.map +1 -0
  121. package/dist/routing/routing-policy.d.ts +20 -20
  122. package/dist/routing/routing-request.d.ts +2 -2
  123. package/dist/runtime-guard/action-classification.d.ts +2 -2
  124. package/dist/runtime-guard/audit-event.d.ts +8 -8
  125. package/dist/runtime-guard/policy-schema.d.ts +4 -4
  126. package/dist/scaffolding/scaffold-contract.d.ts +59 -59
  127. package/dist/scaffolding/template-manifest.d.ts +15 -15
  128. package/dist/secret-guard/detection-rule.d.ts +5 -5
  129. package/dist/secret-guard/detection-rule.d.ts.map +1 -1
  130. package/dist/secret-guard/detection-rule.js +44 -0
  131. package/dist/secret-guard/detection-rule.js.map +1 -1
  132. package/dist/secret-guard/finding.d.ts +12 -12
  133. package/dist/secret-guard/finding.d.ts.map +1 -1
  134. package/dist/secret-guard/finding.js +2 -0
  135. package/dist/secret-guard/finding.js.map +1 -1
  136. package/dist/secret-guard/scanner-failure.d.ts +4 -4
  137. package/dist/specification/specification.d.ts +8 -8
  138. package/dist/stack-pack/manifest.d.ts +33 -4
  139. package/dist/stack-pack/manifest.d.ts.map +1 -1
  140. package/dist/stack-pack/manifest.js +22 -2
  141. package/dist/stack-pack/manifest.js.map +1 -1
  142. package/dist/verification/index.d.ts +1 -0
  143. package/dist/verification/index.d.ts.map +1 -1
  144. package/dist/verification/index.js +1 -0
  145. package/dist/verification/index.js.map +1 -1
  146. package/dist/verification/report.d.ts +118 -12
  147. package/dist/verification/report.d.ts.map +1 -1
  148. package/dist/verification/report.js +4 -0
  149. package/dist/verification/report.js.map +1 -1
  150. package/dist/verification/strength.d.ts +270 -0
  151. package/dist/verification/strength.d.ts.map +1 -0
  152. package/dist/verification/strength.js +168 -0
  153. package/dist/verification/strength.js.map +1 -0
  154. package/dist/workflow/next-action.d.ts +67 -6
  155. package/dist/workflow/next-action.d.ts.map +1 -1
  156. package/dist/workflow/next-action.js +23 -0
  157. package/dist/workflow/next-action.js.map +1 -1
  158. package/dist/workflow/workflow.d.ts +9 -8
  159. package/dist/workflow/workflow.d.ts.map +1 -1
  160. package/package.json +6 -1
  161. package/src/agent-tools/index.ts +81 -0
  162. package/src/benchmark/bench.ts +83 -0
  163. package/src/benchmark/index.ts +1 -0
  164. package/src/constitution/cli-output.ts +44 -0
  165. package/src/constitution/index.ts +3 -0
  166. package/src/constitution/result.test.ts +69 -0
  167. package/src/constitution/result.ts +74 -0
  168. package/src/constitution/rule-origin.test.ts +36 -0
  169. package/src/constitution/rule-path.test.ts +15 -0
  170. package/src/constitution/rule.test.ts +209 -0
  171. package/src/constitution/rule.ts +192 -0
  172. package/src/context/index.ts +1 -0
  173. package/src/context/project-context.ts +63 -0
  174. package/src/execution/execution-profile.ts +50 -0
  175. package/src/execution/index.ts +1 -0
  176. package/src/index.ts +16 -0
  177. package/src/installer/ownership-manifest.ts +4 -0
  178. package/src/learning/engineering-memory.ts +2 -0
  179. package/src/learning/index.ts +1 -0
  180. package/src/learning/learning-event.ts +42 -0
  181. package/src/observer/journal.ts +7 -0
  182. package/src/onboard/index.ts +1 -0
  183. package/src/onboard/onboard-report.test.ts +92 -0
  184. package/src/onboard/onboard-report.ts +115 -0
  185. package/src/project/project-profile.ts +19 -2
  186. package/src/routing/index.ts +1 -0
  187. package/src/routing/measured-routing.ts +27 -0
  188. package/src/secret-guard/detection-rule.ts +53 -0
  189. package/src/secret-guard/finding.ts +2 -0
  190. package/src/stack-pack/manifest.test.ts +45 -0
  191. package/src/stack-pack/manifest.ts +24 -2
  192. package/src/verification/index.ts +1 -0
  193. package/src/verification/report.ts +4 -0
  194. package/src/verification/strength.test.ts +160 -0
  195. package/src/verification/strength.ts +189 -0
  196. package/src/workflow/next-action.test.ts +25 -0
  197. package/src/workflow/next-action.ts +25 -0
  198. package/src/workflow/workflow.ts +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measured-routing.d.ts","sourceRoot":"","sources":["../../src/routing/measured-routing.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,kCAAkC,EAAG,CAAU,CAAC;AAE7D,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAclC,CAAC;AACZ,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ // packages/contracts/src/routing/measured-routing.ts
2
+ //
3
+ // Empirical routing (roadmap Phase 7, issue #48). One observed run, with no free text: a prompt, a
4
+ // model reply or a source excerpt cannot be represented. Measured evidence can only refine the
5
+ // static M12 policy, never replace an explicit user model.
6
+ import { z } from 'zod';
7
+ import { LearningTaskTypeSchema } from '../learning/learning-event.js';
8
+ export const ROUTING_OBSERVATION_SCHEMA_VERSION = 1;
9
+ export const MeasuredRoutingObservationSchema = z
10
+ .object({
11
+ schemaVersion: z.literal(ROUTING_OBSERVATION_SCHEMA_VERSION),
12
+ id: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9_.-]{0,95}$/),
13
+ occurredAt: z.string().datetime(),
14
+ taskType: LearningTaskTypeSchema,
15
+ model: z.string().regex(/^[A-Za-z0-9][A-Za-z0-9._:/-]{0,79}$/, 'model must be an identifier'),
16
+ effort: z.enum(['low', 'medium', 'high']),
17
+ verdict: z.enum(['passed', 'failed', 'blocked']),
18
+ tokensIn: z.number().int().nonnegative(),
19
+ tokensOut: z.number().int().nonnegative(),
20
+ costUnits: z.number().nonnegative(),
21
+ latencyMs: z.number().int().nonnegative(),
22
+ })
23
+ .strict();
24
+ //# sourceMappingURL=measured-routing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"measured-routing.js","sourceRoot":"","sources":["../../src/routing/measured-routing.ts"],"names":[],"mappings":"AAAA,qDAAqD;AACrD,EAAE;AACF,mGAAmG;AACnG,+FAA+F;AAC/F,2DAA2D;AAE3D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAU,CAAC;AAE7D,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,kCAAkC,CAAC;IAC5D,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,mCAAmC,CAAC;IACzD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,QAAQ,EAAE,sBAAsB;IAChC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qCAAqC,EAAE,6BAA6B,CAAC;IAC7F,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;IACzC,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAChD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACxC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACzC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,WAAW,EAAE;IACnC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;CAC1C,CAAC;KACD,MAAM,EAAE,CAAC"}
@@ -10,21 +10,21 @@ export declare const RoutingRuleSchema: z.ZodObject<{
10
10
  verification: z.ZodEnum<["none", "structural", "tests", "independent-review", "mandatory-security"]>;
11
11
  reason: z.ZodString;
12
12
  }, "strip", z.ZodTypeAny, {
13
- id: string;
14
13
  verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
15
- risk: "low" | "medium" | "high" | "critical" | "*";
14
+ id: string;
16
15
  reason: string;
17
- model: string;
18
16
  taskType: string;
17
+ risk: "low" | "medium" | "high" | "critical" | "*";
18
+ model: string;
19
19
  complexity: "low" | "medium" | "high" | "*";
20
20
  effort: "low" | "medium" | "high";
21
21
  }, {
22
- id: string;
23
22
  verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
24
- risk: "low" | "medium" | "high" | "critical" | "*";
23
+ id: string;
25
24
  reason: string;
26
- model: string;
27
25
  taskType: string;
26
+ risk: "low" | "medium" | "high" | "critical" | "*";
27
+ model: string;
28
28
  complexity: "low" | "medium" | "high" | "*";
29
29
  effort: "low" | "medium" | "high";
30
30
  }>;
@@ -42,21 +42,21 @@ export declare const RoutingPolicySchema: z.ZodObject<{
42
42
  verification: z.ZodEnum<["none", "structural", "tests", "independent-review", "mandatory-security"]>;
43
43
  reason: z.ZodString;
44
44
  }, "strip", z.ZodTypeAny, {
45
- id: string;
46
45
  verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
47
- risk: "low" | "medium" | "high" | "critical" | "*";
46
+ id: string;
48
47
  reason: string;
49
- model: string;
50
48
  taskType: string;
49
+ risk: "low" | "medium" | "high" | "critical" | "*";
50
+ model: string;
51
51
  complexity: "low" | "medium" | "high" | "*";
52
52
  effort: "low" | "medium" | "high";
53
53
  }, {
54
- id: string;
55
54
  verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
56
- risk: "low" | "medium" | "high" | "critical" | "*";
55
+ id: string;
57
56
  reason: string;
58
- model: string;
59
57
  taskType: string;
58
+ risk: "low" | "medium" | "high" | "critical" | "*";
59
+ model: string;
60
60
  complexity: "low" | "medium" | "high" | "*";
61
61
  effort: "low" | "medium" | "high";
62
62
  }>, "many">;
@@ -66,34 +66,34 @@ export declare const RoutingPolicySchema: z.ZodObject<{
66
66
  }, "strip", z.ZodTypeAny, {
67
67
  schemaVersion: 1;
68
68
  id: string;
69
- version: string;
70
69
  rules: {
71
- id: string;
72
70
  verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
73
- risk: "low" | "medium" | "high" | "critical" | "*";
71
+ id: string;
74
72
  reason: string;
75
- model: string;
76
73
  taskType: string;
74
+ risk: "low" | "medium" | "high" | "critical" | "*";
75
+ model: string;
77
76
  complexity: "low" | "medium" | "high" | "*";
78
77
  effort: "low" | "medium" | "high";
79
78
  }[];
79
+ version: string;
80
80
  defaultModel: string;
81
81
  defaultEffort: "low" | "medium" | "high";
82
82
  suggestOnly: boolean;
83
83
  }, {
84
84
  schemaVersion: 1;
85
85
  id: string;
86
- version: string;
87
86
  rules: {
88
- id: string;
89
87
  verification: "none" | "structural" | "tests" | "independent-review" | "mandatory-security";
90
- risk: "low" | "medium" | "high" | "critical" | "*";
88
+ id: string;
91
89
  reason: string;
92
- model: string;
93
90
  taskType: string;
91
+ risk: "low" | "medium" | "high" | "critical" | "*";
92
+ model: string;
94
93
  complexity: "low" | "medium" | "high" | "*";
95
94
  effort: "low" | "medium" | "high";
96
95
  }[];
96
+ version: string;
97
97
  defaultModel: string;
98
98
  defaultEffort: "low" | "medium" | "high";
99
99
  suggestOnly?: boolean | undefined;
@@ -14,8 +14,8 @@ export declare const RoutingContextSchema: z.ZodObject<{
14
14
  previousOutcome: z.ZodDefault<z.ZodEnum<["none", "passed", "failed-verification", "failed-review"]>>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  scope: "main-turn" | "subagent";
17
- risk: "low" | "medium" | "high" | "critical";
18
17
  taskType: string;
18
+ risk: "low" | "medium" | "high" | "critical";
19
19
  complexity: "low" | "medium" | "high";
20
20
  requiredCapabilities: string[];
21
21
  previousOutcome: "passed" | "none" | "failed-verification" | "failed-review";
@@ -24,8 +24,8 @@ export declare const RoutingContextSchema: z.ZodObject<{
24
24
  explicitUserEffort?: "low" | "medium" | "high" | undefined;
25
25
  }, {
26
26
  scope: "main-turn" | "subagent";
27
- risk: "low" | "medium" | "high" | "critical";
28
27
  taskType: string;
28
+ risk: "low" | "medium" | "high" | "critical";
29
29
  complexity: "low" | "medium" | "high";
30
30
  contextTokens?: number | undefined;
31
31
  requiredCapabilities?: string[] | undefined;
@@ -16,9 +16,9 @@ export declare const ClassifiedActionSchema: z.ZodObject<{
16
16
  fileCount?: number | undefined;
17
17
  }, {
18
18
  branch?: string | undefined;
19
+ paths?: string[] | undefined;
19
20
  environment?: string | undefined;
20
21
  fileCount?: number | undefined;
21
- paths?: string[] | undefined;
22
22
  }>>;
23
23
  }, "strip", z.ZodTypeAny, {
24
24
  scope: {
@@ -34,9 +34,9 @@ export declare const ClassifiedActionSchema: z.ZodObject<{
34
34
  impact: "none" | "local" | "shared-branch" | "production";
35
35
  scope?: {
36
36
  branch?: string | undefined;
37
+ paths?: string[] | undefined;
37
38
  environment?: string | undefined;
38
39
  fileCount?: number | undefined;
39
- paths?: string[] | undefined;
40
40
  } | undefined;
41
41
  }>;
42
42
  export type ActionCategory = z.infer<typeof ActionCategorySchema>;
@@ -25,13 +25,13 @@ export declare const AuditEventSchema: z.ZodObject<{
25
25
  grantedAt: z.ZodString;
26
26
  rationale: z.ZodString;
27
27
  }, "strip", z.ZodTypeAny, {
28
+ rationale: string;
28
29
  approver: string;
29
30
  grantedAt: string;
30
- rationale: string;
31
31
  }, {
32
+ rationale: string;
32
33
  approver: string;
33
34
  grantedAt: string;
34
- rationale: string;
35
35
  }>>;
36
36
  bypass: z.ZodOptional<z.ZodObject<{
37
37
  flag: z.ZodString;
@@ -51,19 +51,19 @@ export declare const AuditEventSchema: z.ZodObject<{
51
51
  at: string;
52
52
  schemaVersion: 1;
53
53
  id: string;
54
- verdict: "allow" | "deny" | "require-approval";
54
+ outcome: "interrupted" | "executed" | "denied" | "deferred";
55
55
  action: {
56
56
  category: "file.delete" | "file.bulk-modify" | "db.migrate" | "git.force-push" | "release.deploy" | "dependency.remove" | "file.read" | "file.create" | "file.modify" | "file.sensitive-modify" | "db.read" | "db.mutate-dev" | "db.mutate-production" | "git.read" | "git.commit" | "git.push" | "git.rebase" | "dependency.add" | "dependency.upgrade" | "release.tag" | "release.publish" | "network.fetch" | "network.mcp-call";
57
57
  impact: "none" | "local" | "shared-branch" | "production";
58
58
  scopeSummary: string;
59
59
  };
60
- outcome: "interrupted" | "executed" | "denied" | "deferred";
60
+ verdict: "allow" | "deny" | "require-approval";
61
61
  runId?: string | undefined;
62
62
  matchedRuleId?: string | undefined;
63
63
  approval?: {
64
+ rationale: string;
64
65
  approver: string;
65
66
  grantedAt: string;
66
- rationale: string;
67
67
  } | undefined;
68
68
  bypass?: {
69
69
  scope: string;
@@ -74,19 +74,19 @@ export declare const AuditEventSchema: z.ZodObject<{
74
74
  at: string;
75
75
  schemaVersion: 1;
76
76
  id: string;
77
- verdict: "allow" | "deny" | "require-approval";
77
+ outcome: "interrupted" | "executed" | "denied" | "deferred";
78
78
  action: {
79
79
  category: "file.delete" | "file.bulk-modify" | "db.migrate" | "git.force-push" | "release.deploy" | "dependency.remove" | "file.read" | "file.create" | "file.modify" | "file.sensitive-modify" | "db.read" | "db.mutate-dev" | "db.mutate-production" | "git.read" | "git.commit" | "git.push" | "git.rebase" | "dependency.add" | "dependency.upgrade" | "release.tag" | "release.publish" | "network.fetch" | "network.mcp-call";
80
80
  impact: "none" | "local" | "shared-branch" | "production";
81
81
  scopeSummary: string;
82
82
  };
83
- outcome: "interrupted" | "executed" | "denied" | "deferred";
83
+ verdict: "allow" | "deny" | "require-approval";
84
84
  runId?: string | undefined;
85
85
  matchedRuleId?: string | undefined;
86
86
  approval?: {
87
+ rationale: string;
87
88
  approver: string;
88
89
  grantedAt: string;
89
- rationale: string;
90
90
  } | undefined;
91
91
  bypass?: {
92
92
  scope: string;
@@ -97,8 +97,6 @@ export declare const PolicyPackSchema: z.ZodObject<{
97
97
  schemaVersion: 1;
98
98
  name: string;
99
99
  id: string;
100
- description: string;
101
- version: string;
102
100
  rules: {
103
101
  id: string;
104
102
  reason: string;
@@ -111,14 +109,14 @@ export declare const PolicyPackSchema: z.ZodObject<{
111
109
  op: "gt" | "gte" | "lt" | "lte";
112
110
  } | undefined;
113
111
  }[];
112
+ description: string;
113
+ version: string;
114
114
  defaultVerdict: "allow" | "deny" | "require-approval";
115
115
  appliesNonInteractive: boolean;
116
116
  }, {
117
117
  schemaVersion: 1;
118
118
  name: string;
119
119
  id: string;
120
- description: string;
121
- version: string;
122
120
  rules: {
123
121
  id: string;
124
122
  reason: string;
@@ -131,6 +129,8 @@ export declare const PolicyPackSchema: z.ZodObject<{
131
129
  op: "gt" | "gte" | "lt" | "lte";
132
130
  } | undefined;
133
131
  }[];
132
+ description: string;
133
+ version: string;
134
134
  defaultVerdict?: "allow" | "deny" | "require-approval" | undefined;
135
135
  appliesNonInteractive?: boolean | undefined;
136
136
  }>;
@@ -68,14 +68,14 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
68
68
  defaultValue: z.ZodOptional<z.ZodString>;
69
69
  }, "strip", z.ZodTypeAny, {
70
70
  name: string;
71
- description: string;
72
71
  required: boolean;
72
+ description: string;
73
73
  defaultValue?: string | undefined;
74
74
  pattern?: string | undefined;
75
75
  }, {
76
76
  name: string;
77
- description: string;
78
77
  required: boolean;
78
+ description: string;
79
79
  defaultValue?: string | undefined;
80
80
  pattern?: string | undefined;
81
81
  }>, "many">>;
@@ -96,40 +96,40 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
96
96
  }, "strip", z.ZodTypeAny, {
97
97
  schemaVersion: 1;
98
98
  name: string;
99
+ stacks: string[];
99
100
  id: string;
101
+ files: {
102
+ path: string;
103
+ templated: boolean;
104
+ preserve: boolean;
105
+ }[];
100
106
  description: string;
101
107
  variables: {
102
108
  name: string;
103
- description: string;
104
109
  required: boolean;
110
+ description: string;
105
111
  defaultValue?: string | undefined;
106
112
  pattern?: string | undefined;
107
113
  }[];
108
114
  version: string;
109
- stacks: string[];
110
- files: {
111
- path: string;
112
- templated: boolean;
113
- preserve: boolean;
114
- }[];
115
115
  kitCompatibility: string;
116
116
  }, {
117
117
  schemaVersion: 1;
118
118
  name: string;
119
- id: string;
120
- description: string;
121
- version: string;
122
119
  stacks: string[];
120
+ id: string;
123
121
  files: {
124
122
  path: string;
125
123
  templated: boolean;
126
124
  preserve?: boolean | undefined;
127
125
  }[];
126
+ description: string;
127
+ version: string;
128
128
  kitCompatibility: string;
129
129
  variables?: {
130
130
  name: string;
131
- description: string;
132
131
  required: boolean;
132
+ description: string;
133
133
  defaultValue?: string | undefined;
134
134
  pattern?: string | undefined;
135
135
  }[] | undefined;
@@ -160,22 +160,22 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
160
160
  template: {
161
161
  schemaVersion: 1;
162
162
  name: string;
163
+ stacks: string[];
163
164
  id: string;
165
+ files: {
166
+ path: string;
167
+ templated: boolean;
168
+ preserve: boolean;
169
+ }[];
164
170
  description: string;
165
171
  variables: {
166
172
  name: string;
167
- description: string;
168
173
  required: boolean;
174
+ description: string;
169
175
  defaultValue?: string | undefined;
170
176
  pattern?: string | undefined;
171
177
  }[];
172
178
  version: string;
173
- stacks: string[];
174
- files: {
175
- path: string;
176
- templated: boolean;
177
- preserve: boolean;
178
- }[];
179
179
  kitCompatibility: string;
180
180
  };
181
181
  plannedOperations: {
@@ -196,20 +196,20 @@ export declare const ScaffoldPlanSchema: z.ZodObject<{
196
196
  template: {
197
197
  schemaVersion: 1;
198
198
  name: string;
199
- id: string;
200
- description: string;
201
- version: string;
202
199
  stacks: string[];
200
+ id: string;
203
201
  files: {
204
202
  path: string;
205
203
  templated: boolean;
206
204
  preserve?: boolean | undefined;
207
205
  }[];
206
+ description: string;
207
+ version: string;
208
208
  kitCompatibility: string;
209
209
  variables?: {
210
210
  name: string;
211
- description: string;
212
211
  required: boolean;
212
+ description: string;
213
213
  defaultValue?: string | undefined;
214
214
  pattern?: string | undefined;
215
215
  }[] | undefined;
@@ -259,14 +259,14 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
259
259
  defaultValue: z.ZodOptional<z.ZodString>;
260
260
  }, "strip", z.ZodTypeAny, {
261
261
  name: string;
262
- description: string;
263
262
  required: boolean;
263
+ description: string;
264
264
  defaultValue?: string | undefined;
265
265
  pattern?: string | undefined;
266
266
  }, {
267
267
  name: string;
268
- description: string;
269
268
  required: boolean;
269
+ description: string;
270
270
  defaultValue?: string | undefined;
271
271
  pattern?: string | undefined;
272
272
  }>, "many">>;
@@ -287,40 +287,40 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
287
287
  }, "strip", z.ZodTypeAny, {
288
288
  schemaVersion: 1;
289
289
  name: string;
290
+ stacks: string[];
290
291
  id: string;
292
+ files: {
293
+ path: string;
294
+ templated: boolean;
295
+ preserve: boolean;
296
+ }[];
291
297
  description: string;
292
298
  variables: {
293
299
  name: string;
294
- description: string;
295
300
  required: boolean;
301
+ description: string;
296
302
  defaultValue?: string | undefined;
297
303
  pattern?: string | undefined;
298
304
  }[];
299
305
  version: string;
300
- stacks: string[];
301
- files: {
302
- path: string;
303
- templated: boolean;
304
- preserve: boolean;
305
- }[];
306
306
  kitCompatibility: string;
307
307
  }, {
308
308
  schemaVersion: 1;
309
309
  name: string;
310
- id: string;
311
- description: string;
312
- version: string;
313
310
  stacks: string[];
311
+ id: string;
314
312
  files: {
315
313
  path: string;
316
314
  templated: boolean;
317
315
  preserve?: boolean | undefined;
318
316
  }[];
317
+ description: string;
318
+ version: string;
319
319
  kitCompatibility: string;
320
320
  variables?: {
321
321
  name: string;
322
- description: string;
323
322
  required: boolean;
323
+ description: string;
324
324
  defaultValue?: string | undefined;
325
325
  pattern?: string | undefined;
326
326
  }[] | undefined;
@@ -351,22 +351,22 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
351
351
  template: {
352
352
  schemaVersion: 1;
353
353
  name: string;
354
+ stacks: string[];
354
355
  id: string;
356
+ files: {
357
+ path: string;
358
+ templated: boolean;
359
+ preserve: boolean;
360
+ }[];
355
361
  description: string;
356
362
  variables: {
357
363
  name: string;
358
- description: string;
359
364
  required: boolean;
365
+ description: string;
360
366
  defaultValue?: string | undefined;
361
367
  pattern?: string | undefined;
362
368
  }[];
363
369
  version: string;
364
- stacks: string[];
365
- files: {
366
- path: string;
367
- templated: boolean;
368
- preserve: boolean;
369
- }[];
370
370
  kitCompatibility: string;
371
371
  };
372
372
  plannedOperations: {
@@ -387,20 +387,20 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
387
387
  template: {
388
388
  schemaVersion: 1;
389
389
  name: string;
390
- id: string;
391
- description: string;
392
- version: string;
393
390
  stacks: string[];
391
+ id: string;
394
392
  files: {
395
393
  path: string;
396
394
  templated: boolean;
397
395
  preserve?: boolean | undefined;
398
396
  }[];
397
+ description: string;
398
+ version: string;
399
399
  kitCompatibility: string;
400
400
  variables?: {
401
401
  name: string;
402
- description: string;
403
402
  required: boolean;
403
+ description: string;
404
404
  defaultValue?: string | undefined;
405
405
  pattern?: string | undefined;
406
406
  }[] | undefined;
@@ -441,22 +441,22 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
441
441
  template: {
442
442
  schemaVersion: 1;
443
443
  name: string;
444
+ stacks: string[];
444
445
  id: string;
446
+ files: {
447
+ path: string;
448
+ templated: boolean;
449
+ preserve: boolean;
450
+ }[];
445
451
  description: string;
446
452
  variables: {
447
453
  name: string;
448
- description: string;
449
454
  required: boolean;
455
+ description: string;
450
456
  defaultValue?: string | undefined;
451
457
  pattern?: string | undefined;
452
458
  }[];
453
459
  version: string;
454
- stacks: string[];
455
- files: {
456
- path: string;
457
- templated: boolean;
458
- preserve: boolean;
459
- }[];
460
460
  kitCompatibility: string;
461
461
  };
462
462
  plannedOperations: {
@@ -487,20 +487,20 @@ export declare const ScaffoldResultSchema: z.ZodObject<{
487
487
  template: {
488
488
  schemaVersion: 1;
489
489
  name: string;
490
- id: string;
491
- description: string;
492
- version: string;
493
490
  stacks: string[];
491
+ id: string;
494
492
  files: {
495
493
  path: string;
496
494
  templated: boolean;
497
495
  preserve?: boolean | undefined;
498
496
  }[];
497
+ description: string;
498
+ version: string;
499
499
  kitCompatibility: string;
500
500
  variables?: {
501
501
  name: string;
502
- description: string;
503
502
  required: boolean;
503
+ description: string;
504
504
  defaultValue?: string | undefined;
505
505
  pattern?: string | undefined;
506
506
  }[] | undefined;
@@ -8,14 +8,14 @@ export declare const TemplateVariableSchema: z.ZodObject<{
8
8
  defaultValue: z.ZodOptional<z.ZodString>;
9
9
  }, "strip", z.ZodTypeAny, {
10
10
  name: string;
11
- description: string;
12
11
  required: boolean;
12
+ description: string;
13
13
  defaultValue?: string | undefined;
14
14
  pattern?: string | undefined;
15
15
  }, {
16
16
  name: string;
17
- description: string;
18
17
  required: boolean;
18
+ description: string;
19
19
  defaultValue?: string | undefined;
20
20
  pattern?: string | undefined;
21
21
  }>;
@@ -34,14 +34,14 @@ export declare const TemplateManifestSchema: z.ZodObject<{
34
34
  defaultValue: z.ZodOptional<z.ZodString>;
35
35
  }, "strip", z.ZodTypeAny, {
36
36
  name: string;
37
- description: string;
38
37
  required: boolean;
38
+ description: string;
39
39
  defaultValue?: string | undefined;
40
40
  pattern?: string | undefined;
41
41
  }, {
42
42
  name: string;
43
- description: string;
44
43
  required: boolean;
44
+ description: string;
45
45
  defaultValue?: string | undefined;
46
46
  pattern?: string | undefined;
47
47
  }>, "many">>;
@@ -62,40 +62,40 @@ export declare const TemplateManifestSchema: z.ZodObject<{
62
62
  }, "strip", z.ZodTypeAny, {
63
63
  schemaVersion: 1;
64
64
  name: string;
65
+ stacks: string[];
65
66
  id: string;
67
+ files: {
68
+ path: string;
69
+ templated: boolean;
70
+ preserve: boolean;
71
+ }[];
66
72
  description: string;
67
73
  variables: {
68
74
  name: string;
69
- description: string;
70
75
  required: boolean;
76
+ description: string;
71
77
  defaultValue?: string | undefined;
72
78
  pattern?: string | undefined;
73
79
  }[];
74
80
  version: string;
75
- stacks: string[];
76
- files: {
77
- path: string;
78
- templated: boolean;
79
- preserve: boolean;
80
- }[];
81
81
  kitCompatibility: string;
82
82
  }, {
83
83
  schemaVersion: 1;
84
84
  name: string;
85
- id: string;
86
- description: string;
87
- version: string;
88
85
  stacks: string[];
86
+ id: string;
89
87
  files: {
90
88
  path: string;
91
89
  templated: boolean;
92
90
  preserve?: boolean | undefined;
93
91
  }[];
92
+ description: string;
93
+ version: string;
94
94
  kitCompatibility: string;
95
95
  variables?: {
96
96
  name: string;
97
- description: string;
98
97
  required: boolean;
98
+ description: string;
99
99
  defaultValue?: string | undefined;
100
100
  pattern?: string | undefined;
101
101
  }[] | undefined;