@agentic-sdlc-kit/contracts 1.2.1 → 1.3.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 +3 -3
  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
@@ -2,9 +2,25 @@ import { z } from 'zod';
2
2
  export declare const AGENT_EXECUTION_SCHEMA_VERSION: 2;
3
3
  export declare const AgentProviderIdSchema: z.ZodString;
4
4
  export type AgentProviderId = z.infer<typeof AgentProviderIdSchema>;
5
- export declare const AgentTaskKindSchema: z.ZodEnum<["requirements", "architecture", "planning", "test_authoring", "implementation", "debugging", "code_review", "documentation"]>;
5
+ export declare const AgentTaskKindSchema: z.ZodEnum<{
6
+ requirements: "requirements";
7
+ architecture: "architecture";
8
+ planning: "planning";
9
+ implementation: "implementation";
10
+ test_authoring: "test_authoring";
11
+ debugging: "debugging";
12
+ code_review: "code_review";
13
+ documentation: "documentation";
14
+ }>;
6
15
  export type AgentTaskKind = z.infer<typeof AgentTaskKindSchema>;
7
- export declare const AgentExecutionStatusSchema: z.ZodEnum<["completed", "failed", "cancelled", "timed_out", "interrupted", "needs_approval"]>;
16
+ export declare const AgentExecutionStatusSchema: z.ZodEnum<{
17
+ failed: "failed";
18
+ completed: "completed";
19
+ cancelled: "cancelled";
20
+ interrupted: "interrupted";
21
+ timed_out: "timed_out";
22
+ needs_approval: "needs_approval";
23
+ }>;
8
24
  export type AgentExecutionStatus = z.infer<typeof AgentExecutionStatusSchema>;
9
25
  /**
10
26
  * Statuses that mean "the agent produced no usable work." A workflow task
@@ -15,22 +31,31 @@ export type AgentExecutionStatus = z.infer<typeof AgentExecutionStatusSchema>;
15
31
  */
16
32
  export declare const AGENT_FAILURE_STATUSES: readonly AgentExecutionStatus[];
17
33
  export declare const AgentApprovalPolicySchema: z.ZodObject<{
18
- requireApprovalFor: z.ZodArray<z.ZodEnum<["repository.read", "repository.write", "git.read", "git.write", "process.test", "process.build", "process.lint", "process.typecheck", "network.access", "external.approval"]>, "many">;
34
+ requireApprovalFor: z.ZodArray<z.ZodEnum<{
35
+ "git.read": "git.read";
36
+ "repository.read": "repository.read";
37
+ "repository.write": "repository.write";
38
+ "git.write": "git.write";
39
+ "process.test": "process.test";
40
+ "process.build": "process.build";
41
+ "process.lint": "process.lint";
42
+ "process.typecheck": "process.typecheck";
43
+ "network.access": "network.access";
44
+ "external.approval": "external.approval";
45
+ }>>;
19
46
  allowAutonomousExecution: z.ZodBoolean;
20
- }, "strip", z.ZodTypeAny, {
21
- requireApprovalFor: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
22
- allowAutonomousExecution: boolean;
23
- }, {
24
- requireApprovalFor: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
25
- allowAutonomousExecution: boolean;
26
- }>;
47
+ }, z.core.$strip>;
27
48
  export type AgentApprovalPolicy = z.infer<typeof AgentApprovalPolicySchema>;
28
49
  /**
29
50
  * How a workspace is isolated (ADR-0020 §7). A git worktree isolates
30
51
  * repository changes; it is NOT an OS sandbox — provider processes must
31
52
  * additionally run with restricted host permissions or in a container.
32
53
  */
33
- export declare const ExecutionWorkspaceKindSchema: z.ZodEnum<["git-worktree", "container", "directory"]>;
54
+ export declare const ExecutionWorkspaceKindSchema: z.ZodEnum<{
55
+ "git-worktree": "git-worktree";
56
+ container: "container";
57
+ directory: "directory";
58
+ }>;
34
59
  export type ExecutionWorkspaceKind = z.infer<typeof ExecutionWorkspaceKindSchema>;
35
60
  /**
36
61
  * The explicit execution environment (ADR-0019 v2, revision B). A request
@@ -39,42 +64,18 @@ export type ExecutionWorkspaceKind = z.infer<typeof ExecutionWorkspaceKindSchema
39
64
  * that kind) `branch` and `baseCommitSha` are required — the orchestrator
40
65
  * uses them to derive clean diffs for evidence.
41
66
  */
42
- export declare const ExecutionWorkspaceSchema: z.ZodEffects<z.ZodObject<{
67
+ export declare const ExecutionWorkspaceSchema: z.ZodObject<{
43
68
  id: z.ZodString;
44
- kind: z.ZodEnum<["git-worktree", "container", "directory"]>;
69
+ kind: z.ZodEnum<{
70
+ "git-worktree": "git-worktree";
71
+ container: "container";
72
+ directory: "directory";
73
+ }>;
45
74
  rootPath: z.ZodString;
46
75
  branch: z.ZodOptional<z.ZodString>;
47
76
  baseCommitSha: z.ZodOptional<z.ZodString>;
48
77
  createdAt: z.ZodString;
49
- }, "strip", z.ZodTypeAny, {
50
- kind: "git-worktree" | "container" | "directory";
51
- id: string;
52
- createdAt: string;
53
- rootPath: string;
54
- branch?: string | undefined;
55
- baseCommitSha?: string | undefined;
56
- }, {
57
- kind: "git-worktree" | "container" | "directory";
58
- id: string;
59
- createdAt: string;
60
- rootPath: string;
61
- branch?: string | undefined;
62
- baseCommitSha?: string | undefined;
63
- }>, {
64
- kind: "git-worktree" | "container" | "directory";
65
- id: string;
66
- createdAt: string;
67
- rootPath: string;
68
- branch?: string | undefined;
69
- baseCommitSha?: string | undefined;
70
- }, {
71
- kind: "git-worktree" | "container" | "directory";
72
- id: string;
73
- createdAt: string;
74
- rootPath: string;
75
- branch?: string | undefined;
76
- baseCommitSha?: string | undefined;
77
- }>;
78
+ }, z.core.$strip>;
78
79
  export type ExecutionWorkspace = z.infer<typeof ExecutionWorkspaceSchema>;
79
80
  /**
80
81
  * How honestly a budget limit is enforced (ADR-0020 §8, revision C).
@@ -88,7 +89,11 @@ export type ExecutionWorkspace = z.infer<typeof ExecutionWorkspaceSchema>;
88
89
  * Token or monetary cost enforcement is NEVER declared `provider-enforced`
89
90
  * where the provider does not expose reliable usage information.
90
91
  */
91
- export declare const BudgetEnforcementLevelSchema: z.ZodEnum<["provider-enforced", "gateway-enforced", "best-effort"]>;
92
+ export declare const BudgetEnforcementLevelSchema: z.ZodEnum<{
93
+ "provider-enforced": "provider-enforced";
94
+ "gateway-enforced": "gateway-enforced";
95
+ "best-effort": "best-effort";
96
+ }>;
92
97
  export type BudgetEnforcementLevel = z.infer<typeof BudgetEnforcementLevelSchema>;
93
98
  /**
94
99
  * Execution budget (ADR-0019 v2, revision C). Duration and tool calls are
@@ -106,109 +111,61 @@ export declare const ExecutionBudgetSchema: z.ZodObject<{
106
111
  maxEstimatedCost: z.ZodOptional<z.ZodObject<{
107
112
  amount: z.ZodNumber;
108
113
  currency: z.ZodString;
109
- }, "strip", z.ZodTypeAny, {
110
- amount: number;
111
- currency: string;
112
- }, {
113
- amount: number;
114
- currency: string;
115
- }>>;
116
- }, "strip", z.ZodTypeAny, {
117
- maxDurationMs: number;
118
- maxToolCalls: number;
119
- maxInputTokens?: number | undefined;
120
- maxOutputTokens?: number | undefined;
121
- maxTotalTokens?: number | undefined;
122
- maxEstimatedCost?: {
123
- amount: number;
124
- currency: string;
125
- } | undefined;
126
- }, {
127
- maxDurationMs: number;
128
- maxToolCalls: number;
129
- maxInputTokens?: number | undefined;
130
- maxOutputTokens?: number | undefined;
131
- maxTotalTokens?: number | undefined;
132
- maxEstimatedCost?: {
133
- amount: number;
134
- currency: string;
135
- } | undefined;
136
- }>;
114
+ }, z.core.$strip>>;
115
+ }, z.core.$strip>;
137
116
  export type ExecutionBudget = z.infer<typeof ExecutionBudgetSchema>;
138
117
  export declare const AgentExecutionRequestSchema: z.ZodObject<{
139
118
  schemaVersion: z.ZodLiteral<2>;
140
119
  executionId: z.ZodString;
141
- workflowRunId: z.ZodUnion<[z.ZodString, z.ZodString]>;
142
- taskId: z.ZodUnion<[z.ZodString, z.ZodString]>;
120
+ workflowRunId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
121
+ taskId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
143
122
  providerId: z.ZodString;
144
- taskKind: z.ZodEnum<["requirements", "architecture", "planning", "test_authoring", "implementation", "debugging", "code_review", "documentation"]>;
123
+ taskKind: z.ZodEnum<{
124
+ requirements: "requirements";
125
+ architecture: "architecture";
126
+ planning: "planning";
127
+ implementation: "implementation";
128
+ test_authoring: "test_authoring";
129
+ debugging: "debugging";
130
+ code_review: "code_review";
131
+ documentation: "documentation";
132
+ }>;
145
133
  policyHash: z.ZodString;
146
- workspace: z.ZodEffects<z.ZodObject<{
134
+ workspace: z.ZodObject<{
147
135
  id: z.ZodString;
148
- kind: z.ZodEnum<["git-worktree", "container", "directory"]>;
136
+ kind: z.ZodEnum<{
137
+ "git-worktree": "git-worktree";
138
+ container: "container";
139
+ directory: "directory";
140
+ }>;
149
141
  rootPath: z.ZodString;
150
142
  branch: z.ZodOptional<z.ZodString>;
151
143
  baseCommitSha: z.ZodOptional<z.ZodString>;
152
144
  createdAt: z.ZodString;
153
- }, "strip", z.ZodTypeAny, {
154
- kind: "git-worktree" | "container" | "directory";
155
- id: string;
156
- createdAt: string;
157
- rootPath: string;
158
- branch?: string | undefined;
159
- baseCommitSha?: string | undefined;
160
- }, {
161
- kind: "git-worktree" | "container" | "directory";
162
- id: string;
163
- createdAt: string;
164
- rootPath: string;
165
- branch?: string | undefined;
166
- baseCommitSha?: string | undefined;
167
- }>, {
168
- kind: "git-worktree" | "container" | "directory";
169
- id: string;
170
- createdAt: string;
171
- rootPath: string;
172
- branch?: string | undefined;
173
- baseCommitSha?: string | undefined;
174
- }, {
175
- kind: "git-worktree" | "container" | "directory";
176
- id: string;
177
- createdAt: string;
178
- rootPath: string;
179
- branch?: string | undefined;
180
- baseCommitSha?: string | undefined;
181
- }>;
145
+ }, z.core.$strip>;
182
146
  instructions: z.ZodString;
183
147
  context: z.ZodObject<{
184
148
  specificationRef: z.ZodOptional<z.ZodString>;
185
149
  planRef: z.ZodOptional<z.ZodString>;
186
- relevantFiles: z.ZodArray<z.ZodString, "many">;
187
- constraints: z.ZodArray<z.ZodString, "many">;
188
- }, "strip", z.ZodTypeAny, {
189
- constraints: string[];
190
- relevantFiles: string[];
191
- specificationRef?: string | undefined;
192
- planRef?: string | undefined;
193
- }, {
194
- constraints: string[];
195
- relevantFiles: string[];
196
- specificationRef?: string | undefined;
197
- planRef?: string | undefined;
198
- }>;
150
+ relevantFiles: z.ZodArray<z.ZodString>;
151
+ constraints: z.ZodArray<z.ZodString>;
152
+ }, z.core.$strip>;
199
153
  permissions: z.ZodObject<{
200
- capabilities: z.ZodArray<z.ZodEnum<["repository.read", "repository.write", "git.read", "git.write", "process.test", "process.build", "process.lint", "process.typecheck", "network.access", "external.approval"]>, "many">;
201
- writablePaths: z.ZodArray<z.ZodString, "many">;
154
+ capabilities: z.ZodArray<z.ZodEnum<{
155
+ "git.read": "git.read";
156
+ "repository.read": "repository.read";
157
+ "repository.write": "repository.write";
158
+ "git.write": "git.write";
159
+ "process.test": "process.test";
160
+ "process.build": "process.build";
161
+ "process.lint": "process.lint";
162
+ "process.typecheck": "process.typecheck";
163
+ "network.access": "network.access";
164
+ "external.approval": "external.approval";
165
+ }>>;
166
+ writablePaths: z.ZodArray<z.ZodString>;
202
167
  networkAllowed: z.ZodBoolean;
203
- }, "strip", z.ZodTypeAny, {
204
- capabilities: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
205
- writablePaths: string[];
206
- networkAllowed: boolean;
207
- }, {
208
- capabilities: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
209
- writablePaths: string[];
210
- networkAllowed: boolean;
211
- }>;
168
+ }, z.core.$strip>;
212
169
  budget: z.ZodObject<{
213
170
  maxDurationMs: z.ZodNumber;
214
171
  maxToolCalls: z.ZodNumber;
@@ -218,176 +175,49 @@ export declare const AgentExecutionRequestSchema: z.ZodObject<{
218
175
  maxEstimatedCost: z.ZodOptional<z.ZodObject<{
219
176
  amount: z.ZodNumber;
220
177
  currency: z.ZodString;
221
- }, "strip", z.ZodTypeAny, {
222
- amount: number;
223
- currency: string;
224
- }, {
225
- amount: number;
226
- currency: string;
227
- }>>;
228
- }, "strip", z.ZodTypeAny, {
229
- maxDurationMs: number;
230
- maxToolCalls: number;
231
- maxInputTokens?: number | undefined;
232
- maxOutputTokens?: number | undefined;
233
- maxTotalTokens?: number | undefined;
234
- maxEstimatedCost?: {
235
- amount: number;
236
- currency: string;
237
- } | undefined;
238
- }, {
239
- maxDurationMs: number;
240
- maxToolCalls: number;
241
- maxInputTokens?: number | undefined;
242
- maxOutputTokens?: number | undefined;
243
- maxTotalTokens?: number | undefined;
244
- maxEstimatedCost?: {
245
- amount: number;
246
- currency: string;
247
- } | undefined;
248
- }>;
178
+ }, z.core.$strip>>;
179
+ }, z.core.$strip>;
249
180
  session: z.ZodOptional<z.ZodObject<{
250
181
  sessionId: z.ZodString;
251
182
  resumeToken: z.ZodOptional<z.ZodString>;
252
- }, "strip", z.ZodTypeAny, {
253
- sessionId: string;
254
- resumeToken?: string | undefined;
255
- }, {
256
- sessionId: string;
257
- resumeToken?: string | undefined;
258
- }>>;
183
+ }, z.core.$strip>>;
259
184
  approvalPolicy: z.ZodObject<{
260
- requireApprovalFor: z.ZodArray<z.ZodEnum<["repository.read", "repository.write", "git.read", "git.write", "process.test", "process.build", "process.lint", "process.typecheck", "network.access", "external.approval"]>, "many">;
185
+ requireApprovalFor: z.ZodArray<z.ZodEnum<{
186
+ "git.read": "git.read";
187
+ "repository.read": "repository.read";
188
+ "repository.write": "repository.write";
189
+ "git.write": "git.write";
190
+ "process.test": "process.test";
191
+ "process.build": "process.build";
192
+ "process.lint": "process.lint";
193
+ "process.typecheck": "process.typecheck";
194
+ "network.access": "network.access";
195
+ "external.approval": "external.approval";
196
+ }>>;
261
197
  allowAutonomousExecution: z.ZodBoolean;
262
- }, "strip", z.ZodTypeAny, {
263
- requireApprovalFor: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
264
- allowAutonomousExecution: boolean;
265
- }, {
266
- requireApprovalFor: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
267
- allowAutonomousExecution: boolean;
268
- }>;
269
- }, "strip", z.ZodTypeAny, {
270
- schemaVersion: 2;
271
- taskId: string;
272
- context: {
273
- constraints: string[];
274
- relevantFiles: string[];
275
- specificationRef?: string | undefined;
276
- planRef?: string | undefined;
277
- };
278
- executionId: string;
279
- policyHash: string;
280
- workflowRunId: string;
281
- providerId: string;
282
- taskKind: "requirements" | "architecture" | "planning" | "implementation" | "test_authoring" | "debugging" | "code_review" | "documentation";
283
- workspace: {
284
- kind: "git-worktree" | "container" | "directory";
285
- id: string;
286
- createdAt: string;
287
- rootPath: string;
288
- branch?: string | undefined;
289
- baseCommitSha?: string | undefined;
290
- };
291
- instructions: string;
292
- permissions: {
293
- capabilities: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
294
- writablePaths: string[];
295
- networkAllowed: boolean;
296
- };
297
- budget: {
298
- maxDurationMs: number;
299
- maxToolCalls: number;
300
- maxInputTokens?: number | undefined;
301
- maxOutputTokens?: number | undefined;
302
- maxTotalTokens?: number | undefined;
303
- maxEstimatedCost?: {
304
- amount: number;
305
- currency: string;
306
- } | undefined;
307
- };
308
- approvalPolicy: {
309
- requireApprovalFor: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
310
- allowAutonomousExecution: boolean;
311
- };
312
- session?: {
313
- sessionId: string;
314
- resumeToken?: string | undefined;
315
- } | undefined;
316
- }, {
317
- schemaVersion: 2;
318
- taskId: string;
319
- context: {
320
- constraints: string[];
321
- relevantFiles: string[];
322
- specificationRef?: string | undefined;
323
- planRef?: string | undefined;
324
- };
325
- executionId: string;
326
- policyHash: string;
327
- workflowRunId: string;
328
- providerId: string;
329
- taskKind: "requirements" | "architecture" | "planning" | "implementation" | "test_authoring" | "debugging" | "code_review" | "documentation";
330
- workspace: {
331
- kind: "git-worktree" | "container" | "directory";
332
- id: string;
333
- createdAt: string;
334
- rootPath: string;
335
- branch?: string | undefined;
336
- baseCommitSha?: string | undefined;
337
- };
338
- instructions: string;
339
- permissions: {
340
- capabilities: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
341
- writablePaths: string[];
342
- networkAllowed: boolean;
343
- };
344
- budget: {
345
- maxDurationMs: number;
346
- maxToolCalls: number;
347
- maxInputTokens?: number | undefined;
348
- maxOutputTokens?: number | undefined;
349
- maxTotalTokens?: number | undefined;
350
- maxEstimatedCost?: {
351
- amount: number;
352
- currency: string;
353
- } | undefined;
354
- };
355
- approvalPolicy: {
356
- requireApprovalFor: ("git.read" | "repository.read" | "repository.write" | "git.write" | "process.test" | "process.build" | "process.lint" | "process.typecheck" | "network.access" | "external.approval")[];
357
- allowAutonomousExecution: boolean;
358
- };
359
- session?: {
360
- sessionId: string;
361
- resumeToken?: string | undefined;
362
- } | undefined;
363
- }>;
198
+ }, z.core.$strip>;
199
+ }, z.core.$strip>;
364
200
  export type AgentExecutionRequest = z.infer<typeof AgentExecutionRequestSchema>;
365
- export declare const AgentArtifactOperationSchema: z.ZodEnum<["create", "update", "delete"]>;
201
+ export declare const AgentArtifactOperationSchema: z.ZodEnum<{
202
+ create: "create";
203
+ update: "update";
204
+ delete: "delete";
205
+ }>;
366
206
  export type AgentArtifactOperation = z.infer<typeof AgentArtifactOperationSchema>;
367
207
  export declare const AgentProposedArtifactSchema: z.ZodObject<{
368
208
  path: z.ZodString;
369
- operation: z.ZodEnum<["create", "update", "delete"]>;
370
- }, "strip", z.ZodTypeAny, {
371
- path: string;
372
- operation: "create" | "update" | "delete";
373
- }, {
374
- path: string;
375
- operation: "create" | "update" | "delete";
376
- }>;
209
+ operation: z.ZodEnum<{
210
+ create: "create";
211
+ update: "update";
212
+ delete: "delete";
213
+ }>;
214
+ }, z.core.$strip>;
377
215
  export type AgentProposedArtifact = z.infer<typeof AgentProposedArtifactSchema>;
378
216
  export declare const AgentApprovalRequestSchema: z.ZodObject<{
379
217
  approvalId: z.ZodString;
380
218
  action: z.ZodString;
381
219
  reason: z.ZodString;
382
- }, "strip", z.ZodTypeAny, {
383
- action: string;
384
- reason: string;
385
- approvalId: string;
386
- }, {
387
- action: string;
388
- reason: string;
389
- approvalId: string;
390
- }>;
220
+ }, z.core.$strip>;
391
221
  export type AgentApprovalRequest = z.infer<typeof AgentApprovalRequestSchema>;
392
222
  export declare const AgentUsageSchema: z.ZodObject<{
393
223
  inputTokens: z.ZodOptional<z.ZodNumber>;
@@ -395,159 +225,65 @@ export declare const AgentUsageSchema: z.ZodObject<{
395
225
  durationMs: z.ZodNumber;
396
226
  estimatedCost: z.ZodOptional<z.ZodNumber>;
397
227
  currency: z.ZodOptional<z.ZodString>;
398
- }, "strip", z.ZodTypeAny, {
399
- durationMs: number;
400
- estimatedCost?: number | undefined;
401
- currency?: string | undefined;
402
- inputTokens?: number | undefined;
403
- outputTokens?: number | undefined;
404
- }, {
405
- durationMs: number;
406
- estimatedCost?: number | undefined;
407
- currency?: string | undefined;
408
- inputTokens?: number | undefined;
409
- outputTokens?: number | undefined;
410
- }>;
228
+ }, z.core.$strip>;
411
229
  export type AgentUsage = z.infer<typeof AgentUsageSchema>;
412
230
  export declare const AgentExecutionResultSchema: z.ZodObject<{
413
231
  schemaVersion: z.ZodLiteral<2>;
414
232
  executionId: z.ZodString;
415
- workflowRunId: z.ZodUnion<[z.ZodString, z.ZodString]>;
416
- taskId: z.ZodUnion<[z.ZodString, z.ZodString]>;
233
+ workflowRunId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
234
+ taskId: z.ZodUnion<readonly [z.ZodString, z.ZodString]>;
417
235
  providerId: z.ZodString;
418
- status: z.ZodEnum<["completed", "failed", "cancelled", "timed_out", "interrupted", "needs_approval"]>;
236
+ status: z.ZodEnum<{
237
+ failed: "failed";
238
+ completed: "completed";
239
+ cancelled: "cancelled";
240
+ interrupted: "interrupted";
241
+ timed_out: "timed_out";
242
+ needs_approval: "needs_approval";
243
+ }>;
419
244
  session: z.ZodOptional<z.ZodObject<{
420
245
  sessionId: z.ZodString;
421
246
  resumeToken: z.ZodOptional<z.ZodString>;
422
- }, "strip", z.ZodTypeAny, {
423
- sessionId: string;
424
- resumeToken?: string | undefined;
425
- }, {
426
- sessionId: string;
427
- resumeToken?: string | undefined;
428
- }>>;
247
+ }, z.core.$strip>>;
429
248
  summary: z.ZodString;
430
249
  proposedArtifacts: z.ZodArray<z.ZodObject<{
431
250
  path: z.ZodString;
432
- operation: z.ZodEnum<["create", "update", "delete"]>;
433
- }, "strip", z.ZodTypeAny, {
434
- path: string;
435
- operation: "create" | "update" | "delete";
436
- }, {
437
- path: string;
438
- operation: "create" | "update" | "delete";
439
- }>, "many">;
251
+ operation: z.ZodEnum<{
252
+ create: "create";
253
+ update: "update";
254
+ delete: "delete";
255
+ }>;
256
+ }, z.core.$strip>>;
440
257
  requestedApprovals: z.ZodArray<z.ZodObject<{
441
258
  approvalId: z.ZodString;
442
259
  action: z.ZodString;
443
260
  reason: z.ZodString;
444
- }, "strip", z.ZodTypeAny, {
445
- action: string;
446
- reason: string;
447
- approvalId: string;
448
- }, {
449
- action: string;
450
- reason: string;
451
- approvalId: string;
452
- }>, "many">;
261
+ }, z.core.$strip>>;
453
262
  usage: z.ZodOptional<z.ZodObject<{
454
263
  inputTokens: z.ZodOptional<z.ZodNumber>;
455
264
  outputTokens: z.ZodOptional<z.ZodNumber>;
456
265
  durationMs: z.ZodNumber;
457
266
  estimatedCost: z.ZodOptional<z.ZodNumber>;
458
267
  currency: z.ZodOptional<z.ZodString>;
459
- }, "strip", z.ZodTypeAny, {
460
- durationMs: number;
461
- estimatedCost?: number | undefined;
462
- currency?: string | undefined;
463
- inputTokens?: number | undefined;
464
- outputTokens?: number | undefined;
465
- }, {
466
- durationMs: number;
467
- estimatedCost?: number | undefined;
468
- currency?: string | undefined;
469
- inputTokens?: number | undefined;
470
- outputTokens?: number | undefined;
471
- }>>;
268
+ }, z.core.$strip>>;
472
269
  errors: z.ZodArray<z.ZodObject<{
473
- code: z.ZodEnum<["PROVIDER_UNREACHABLE", "PROVIDER_RATE_LIMITED", "PROVIDER_INTERNAL", "CAPABILITY_DENIED", "APPROVAL_REQUIRED", "APPROVAL_REJECTED", "REQUEST_INVALID", "BUDGET_EXCEEDED", "SESSION_EXPIRED", "PROVIDER_TIMEOUT", "CANCELLED", "UNKNOWN"]>;
270
+ code: z.ZodEnum<{
271
+ APPROVAL_REQUIRED: "APPROVAL_REQUIRED";
272
+ PROVIDER_UNREACHABLE: "PROVIDER_UNREACHABLE";
273
+ PROVIDER_RATE_LIMITED: "PROVIDER_RATE_LIMITED";
274
+ PROVIDER_INTERNAL: "PROVIDER_INTERNAL";
275
+ CAPABILITY_DENIED: "CAPABILITY_DENIED";
276
+ APPROVAL_REJECTED: "APPROVAL_REJECTED";
277
+ REQUEST_INVALID: "REQUEST_INVALID";
278
+ BUDGET_EXCEEDED: "BUDGET_EXCEEDED";
279
+ SESSION_EXPIRED: "SESSION_EXPIRED";
280
+ PROVIDER_TIMEOUT: "PROVIDER_TIMEOUT";
281
+ CANCELLED: "CANCELLED";
282
+ UNKNOWN: "UNKNOWN";
283
+ }>;
474
284
  message: z.ZodString;
475
285
  retryable: z.ZodBoolean;
476
- }, "strip", z.ZodTypeAny, {
477
- code: "APPROVAL_REQUIRED" | "PROVIDER_UNREACHABLE" | "PROVIDER_RATE_LIMITED" | "PROVIDER_INTERNAL" | "CAPABILITY_DENIED" | "APPROVAL_REJECTED" | "REQUEST_INVALID" | "BUDGET_EXCEEDED" | "SESSION_EXPIRED" | "PROVIDER_TIMEOUT" | "CANCELLED" | "UNKNOWN";
478
- message: string;
479
- retryable: boolean;
480
- }, {
481
- code: "APPROVAL_REQUIRED" | "PROVIDER_UNREACHABLE" | "PROVIDER_RATE_LIMITED" | "PROVIDER_INTERNAL" | "CAPABILITY_DENIED" | "APPROVAL_REJECTED" | "REQUEST_INVALID" | "BUDGET_EXCEEDED" | "SESSION_EXPIRED" | "PROVIDER_TIMEOUT" | "CANCELLED" | "UNKNOWN";
482
- message: string;
483
- retryable: boolean;
484
- }>, "many">;
485
- }, "strip", z.ZodTypeAny, {
486
- status: "failed" | "completed" | "cancelled" | "interrupted" | "timed_out" | "needs_approval";
487
- schemaVersion: 2;
488
- taskId: string;
489
- summary: string;
490
- errors: {
491
- code: "APPROVAL_REQUIRED" | "PROVIDER_UNREACHABLE" | "PROVIDER_RATE_LIMITED" | "PROVIDER_INTERNAL" | "CAPABILITY_DENIED" | "APPROVAL_REJECTED" | "REQUEST_INVALID" | "BUDGET_EXCEEDED" | "SESSION_EXPIRED" | "PROVIDER_TIMEOUT" | "CANCELLED" | "UNKNOWN";
492
- message: string;
493
- retryable: boolean;
494
- }[];
495
- executionId: string;
496
- workflowRunId: string;
497
- providerId: string;
498
- proposedArtifacts: {
499
- path: string;
500
- operation: "create" | "update" | "delete";
501
- }[];
502
- requestedApprovals: {
503
- action: string;
504
- reason: string;
505
- approvalId: string;
506
- }[];
507
- session?: {
508
- sessionId: string;
509
- resumeToken?: string | undefined;
510
- } | undefined;
511
- usage?: {
512
- durationMs: number;
513
- estimatedCost?: number | undefined;
514
- currency?: string | undefined;
515
- inputTokens?: number | undefined;
516
- outputTokens?: number | undefined;
517
- } | undefined;
518
- }, {
519
- status: "failed" | "completed" | "cancelled" | "interrupted" | "timed_out" | "needs_approval";
520
- schemaVersion: 2;
521
- taskId: string;
522
- summary: string;
523
- errors: {
524
- code: "APPROVAL_REQUIRED" | "PROVIDER_UNREACHABLE" | "PROVIDER_RATE_LIMITED" | "PROVIDER_INTERNAL" | "CAPABILITY_DENIED" | "APPROVAL_REJECTED" | "REQUEST_INVALID" | "BUDGET_EXCEEDED" | "SESSION_EXPIRED" | "PROVIDER_TIMEOUT" | "CANCELLED" | "UNKNOWN";
525
- message: string;
526
- retryable: boolean;
527
- }[];
528
- executionId: string;
529
- workflowRunId: string;
530
- providerId: string;
531
- proposedArtifacts: {
532
- path: string;
533
- operation: "create" | "update" | "delete";
534
- }[];
535
- requestedApprovals: {
536
- action: string;
537
- reason: string;
538
- approvalId: string;
539
- }[];
540
- session?: {
541
- sessionId: string;
542
- resumeToken?: string | undefined;
543
- } | undefined;
544
- usage?: {
545
- durationMs: number;
546
- estimatedCost?: number | undefined;
547
- currency?: string | undefined;
548
- inputTokens?: number | undefined;
549
- outputTokens?: number | undefined;
550
- } | undefined;
551
- }>;
286
+ }, z.core.$strip>>;
287
+ }, z.core.$strip>;
552
288
  export type AgentExecutionResult = z.infer<typeof AgentExecutionResultSchema>;
553
289
  //# sourceMappingURL=execution.d.ts.map