@claudexor/schema 2.1.3 → 3.0.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 (174) hide show
  1. package/dist/agent-capabilities.d.ts +32 -24
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +20 -11
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/apply-eligibility.d.ts +166 -0
  6. package/dist/apply-eligibility.d.ts.map +1 -1
  7. package/dist/apply-eligibility.js +63 -2
  8. package/dist/apply-eligibility.js.map +1 -1
  9. package/dist/attachment.d.ts +5 -5
  10. package/dist/budget.d.ts +4 -4
  11. package/dist/config.d.ts +59 -41
  12. package/dist/config.d.ts.map +1 -1
  13. package/dist/config.js +16 -6
  14. package/dist/config.js.map +1 -1
  15. package/dist/context.d.ts +6 -6
  16. package/dist/control-operation-responses.d.ts +190 -97
  17. package/dist/control-operation-responses.d.ts.map +1 -1
  18. package/dist/control-operation-responses.js +14 -1
  19. package/dist/control-operation-responses.js.map +1 -1
  20. package/dist/control-run-detail.d.ts +347 -215
  21. package/dist/control-run-detail.d.ts.map +1 -1
  22. package/dist/control-run-detail.js +34 -7
  23. package/dist/control-run-detail.js.map +1 -1
  24. package/dist/control-thread-apply.d.ts +5 -5
  25. package/dist/control-trust.d.ts +6 -6
  26. package/dist/control.d.ts +769 -306
  27. package/dist/control.d.ts.map +1 -1
  28. package/dist/control.js +164 -61
  29. package/dist/control.js.map +1 -1
  30. package/dist/credential-profile.d.ts +400 -1
  31. package/dist/credential-profile.d.ts.map +1 -1
  32. package/dist/credential-profile.js +109 -4
  33. package/dist/credential-profile.js.map +1 -1
  34. package/dist/decision.d.ts +78 -14
  35. package/dist/decision.d.ts.map +1 -1
  36. package/dist/decision.js +53 -20
  37. package/dist/decision.js.map +1 -1
  38. package/dist/delivery.d.ts +3 -3
  39. package/dist/delivery.js +1 -1
  40. package/dist/delivery.js.map +1 -1
  41. package/dist/events.d.ts +32 -6
  42. package/dist/events.d.ts.map +1 -1
  43. package/dist/events.js +45 -11
  44. package/dist/events.js.map +1 -1
  45. package/dist/gate.d.ts +4 -4
  46. package/dist/gate.d.ts.map +1 -1
  47. package/dist/gate.js +2 -2
  48. package/dist/gate.js.map +1 -1
  49. package/dist/harness.d.ts +137 -47
  50. package/dist/harness.d.ts.map +1 -1
  51. package/dist/harness.js +65 -16
  52. package/dist/harness.js.map +1 -1
  53. package/dist/index.d.ts +4 -3
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +4 -3
  56. package/dist/index.js.map +1 -1
  57. package/dist/operation.d.ts +66 -7
  58. package/dist/operation.d.ts.map +1 -1
  59. package/dist/operation.js +29 -2
  60. package/dist/operation.js.map +1 -1
  61. package/dist/output-schema.d.ts +40 -0
  62. package/dist/output-schema.d.ts.map +1 -0
  63. package/dist/output-schema.js +109 -0
  64. package/dist/output-schema.js.map +1 -0
  65. package/dist/plan.d.ts +206 -0
  66. package/dist/plan.d.ts.map +1 -0
  67. package/dist/plan.js +107 -0
  68. package/dist/plan.js.map +1 -0
  69. package/dist/primitives.d.ts +14 -10
  70. package/dist/primitives.d.ts.map +1 -1
  71. package/dist/primitives.js +14 -11
  72. package/dist/primitives.js.map +1 -1
  73. package/dist/project.d.ts +75 -0
  74. package/dist/project.d.ts.map +1 -1
  75. package/dist/project.js +17 -0
  76. package/dist/project.js.map +1 -1
  77. package/dist/quota.d.ts +119 -0
  78. package/dist/quota.d.ts.map +1 -1
  79. package/dist/quota.js +22 -0
  80. package/dist/quota.js.map +1 -1
  81. package/dist/raw.d.ts +4 -4
  82. package/dist/readiness.d.ts +14 -7
  83. package/dist/readiness.d.ts.map +1 -1
  84. package/dist/run-strategy.d.ts +17 -0
  85. package/dist/run-strategy.d.ts.map +1 -0
  86. package/dist/run-strategy.js +47 -0
  87. package/dist/run-strategy.js.map +1 -0
  88. package/dist/setup.d.ts +160 -160
  89. package/dist/status-projection.d.ts +78 -0
  90. package/dist/status-projection.d.ts.map +1 -0
  91. package/dist/status-projection.js +171 -0
  92. package/dist/status-projection.js.map +1 -0
  93. package/dist/task.d.ts +48 -316
  94. package/dist/task.d.ts.map +1 -1
  95. package/dist/task.js +3 -60
  96. package/dist/task.js.map +1 -1
  97. package/dist/telemetry.d.ts +89 -89
  98. package/dist/thread.d.ts +167 -32
  99. package/dist/thread.d.ts.map +1 -1
  100. package/dist/thread.js +92 -28
  101. package/dist/thread.js.map +1 -1
  102. package/dist/tool-ref.d.ts +1 -1
  103. package/generated/AgentCapabilityCatalog.schema.json +4 -6
  104. package/generated/ApplyEligibility.schema.json +1 -1
  105. package/generated/BudgetLease.schema.json +1 -2
  106. package/generated/ConformanceReport.schema.json +1 -2
  107. package/generated/ContinuityDisclosure.schema.json +74 -0
  108. package/generated/ControlApplyRequest.schema.json +1 -2
  109. package/generated/ControlCredentialProfileUpdateRequest.schema.json +20 -0
  110. package/generated/ControlCredentialProfileUpdateResponse.schema.json +142 -0
  111. package/generated/ControlCredentialProfilesResponse.schema.json +126 -2
  112. package/generated/ControlDeliveryResponse.schema.json +0 -1
  113. package/generated/ControlHandshakeResponse.schema.json +31 -3
  114. package/generated/ControlHarnessListResponse.schema.json +11 -6
  115. package/generated/ControlHarnessSettingsPatch.schema.json +4 -0
  116. package/generated/ControlOperationCatalog.schema.json +16 -1
  117. package/generated/ControlOperationDescriptor.schema.json +15 -0
  118. package/generated/ControlProject.schema.json +35 -0
  119. package/generated/ControlProjectListResponse.schema.json +35 -0
  120. package/generated/ControlProjectOutputsResponse.schema.json +57 -0
  121. package/generated/ControlQueuedRunInfo.schema.json +2 -11
  122. package/generated/ControlQuotaResponse.schema.json +42 -0
  123. package/generated/ControlRunAgainDraft.schema.json +37 -35
  124. package/generated/ControlRunDecisionRequest.schema.json +0 -1
  125. package/generated/ControlRunDetail.schema.json +292 -213
  126. package/generated/ControlRunListResponse.schema.json +88 -27
  127. package/generated/ControlRunStartRequest.schema.json +37 -35
  128. package/generated/ControlRunStartResponse.schema.json +2 -11
  129. package/generated/ControlRunSummary.schema.json +88 -27
  130. package/generated/ControlSettingsSnapshot.schema.json +6 -11
  131. package/generated/ControlSettingsUpdateRequest.schema.json +5 -10
  132. package/generated/ControlThread.schema.json +21 -3
  133. package/generated/ControlThreadApplyResponse.schema.json +0 -1
  134. package/generated/ControlThreadCreateRequest.schema.json +12 -3
  135. package/generated/ControlThreadDetail.schema.json +174 -16
  136. package/generated/ControlThreadListResponse.schema.json +60 -3
  137. package/generated/ControlThreadTurnRequest.schema.json +40 -34
  138. package/generated/ControlThreadUpdateRequest.schema.json +19 -0
  139. package/generated/DecisionRecord.schema.json +73 -33
  140. package/generated/GateResult.schema.json +1 -2
  141. package/generated/GlobalConfig.schema.json +7 -12
  142. package/generated/HarnessManifest.schema.json +11 -6
  143. package/generated/HarnessStatusDto.schema.json +11 -6
  144. package/generated/LaneCheckpoint.schema.json +59 -0
  145. package/generated/McpRunHandleResult.schema.json +234 -0
  146. package/generated/McpRunToolResult.schema.json +124 -2
  147. package/generated/RoutePrimaryDivergedPayload.schema.json +56 -0
  148. package/generated/RunEvent.schema.json +9 -5
  149. package/generated/RunTelemetry.schema.json +2 -4
  150. package/generated/TaskContract.schema.json +3 -135
  151. package/generated/Thread.schema.json +21 -3
  152. package/generated/ThreadTurn.schema.json +88 -0
  153. package/package.json +2 -2
  154. package/dist/control-spec.d.ts +0 -603
  155. package/dist/control-spec.d.ts.map +0 -1
  156. package/dist/control-spec.js +0 -87
  157. package/dist/control-spec.js.map +0 -1
  158. package/dist/orchestrate.d.ts +0 -556
  159. package/dist/orchestrate.d.ts.map +0 -1
  160. package/dist/orchestrate.js +0 -356
  161. package/dist/orchestrate.js.map +0 -1
  162. package/dist/spec.d.ts +0 -678
  163. package/dist/spec.d.ts.map +0 -1
  164. package/dist/spec.js +0 -186
  165. package/dist/spec.js.map +0 -1
  166. package/generated/ControlSpecAnswersRequest.schema.json +0 -74
  167. package/generated/ControlSpecQuestionsRequest.schema.json +0 -209
  168. package/generated/ControlSpecSession.schema.json +0 -261
  169. package/generated/ControlSpecSessionListResponse.schema.json +0 -273
  170. package/generated/OrchestrateContract.schema.json +0 -119
  171. package/generated/OrchestratePlan.schema.json +0 -264
  172. package/generated/OrchestratePlanProgress.schema.json +0 -164
  173. package/generated/SessionReboundLineage.schema.json +0 -73
  174. package/generated/SpecPack.schema.json +0 -483
package/dist/spec.d.ts DELETED
@@ -1,678 +0,0 @@
1
- import { z } from "zod";
2
- /**
3
- * SpecPack — the frozen, versioned, diffable specification produced by the
4
- * spec interview (the hierarchical clarify-quiz). It is the SSOT a run is held
5
- * to: a SpecPack maps deterministically into a TaskContract. Unlike spec-first
6
- * tools that regenerate an opaque blob, this is spec-anchored: versioned with
7
- * section-level diffs across revisions.
8
- */
9
- export declare const InterviewQuestionKind: z.ZodEnum<["single", "multi", "text"]>;
10
- export type InterviewQuestionKind = z.infer<typeof InterviewQuestionKind>;
11
- export declare const InterviewOption: z.ZodObject<{
12
- id: z.ZodString;
13
- label: z.ZodString;
14
- }, "strip", z.ZodTypeAny, {
15
- id: string;
16
- label: string;
17
- }, {
18
- id: string;
19
- label: string;
20
- }>;
21
- export type InterviewOption = z.infer<typeof InterviewOption>;
22
- /** One quiz card. `tier` expresses the hierarchical depth (0 = foundational). */
23
- export declare const InterviewQuestion: z.ZodObject<{
24
- id: z.ZodString;
25
- tier: z.ZodDefault<z.ZodNumber>;
26
- prompt: z.ZodString;
27
- kind: z.ZodDefault<z.ZodEnum<["single", "multi", "text"]>>;
28
- options: z.ZodDefault<z.ZodArray<z.ZodObject<{
29
- id: z.ZodString;
30
- label: z.ZodString;
31
- }, "strip", z.ZodTypeAny, {
32
- id: string;
33
- label: string;
34
- }, {
35
- id: string;
36
- label: string;
37
- }>, "many">>;
38
- /** Whether free-text is accepted in addition to / instead of options. */
39
- allow_text: z.ZodDefault<z.ZodBoolean>;
40
- rationale: z.ZodOptional<z.ZodString>;
41
- }, "strip", z.ZodTypeAny, {
42
- options: {
43
- id: string;
44
- label: string;
45
- }[];
46
- kind: "text" | "single" | "multi";
47
- id: string;
48
- prompt: string;
49
- tier: number;
50
- allow_text: boolean;
51
- rationale?: string | undefined;
52
- }, {
53
- id: string;
54
- prompt: string;
55
- options?: {
56
- id: string;
57
- label: string;
58
- }[] | undefined;
59
- kind?: "text" | "single" | "multi" | undefined;
60
- tier?: number | undefined;
61
- allow_text?: boolean | undefined;
62
- rationale?: string | undefined;
63
- }>;
64
- export type InterviewQuestion = z.infer<typeof InterviewQuestion>;
65
- export declare const InterviewAnswer: z.ZodObject<{
66
- question_id: z.ZodString;
67
- option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
68
- text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
69
- }, "strip", z.ZodTypeAny, {
70
- question_id: string;
71
- text: string | null;
72
- option_ids: string[];
73
- }, {
74
- question_id: string;
75
- text?: string | null | undefined;
76
- option_ids?: string[] | undefined;
77
- }>;
78
- export type InterviewAnswer = z.infer<typeof InterviewAnswer>;
79
- /**
80
- * An explicit unresolved ambiguity (NEEDS_CLARIFICATION). The interview refuses
81
- * to freeze while any of these are `open` — nothing is silently guessed.
82
- */
83
- export declare const ClarificationItem: z.ZodObject<{
84
- id: z.ZodString;
85
- claim: z.ZodString;
86
- status: z.ZodDefault<z.ZodEnum<["open", "resolved"]>>;
87
- resolution: z.ZodDefault<z.ZodNullable<z.ZodString>>;
88
- }, "strip", z.ZodTypeAny, {
89
- status: "open" | "resolved";
90
- id: string;
91
- claim: string;
92
- resolution: string | null;
93
- }, {
94
- id: string;
95
- claim: string;
96
- status?: "open" | "resolved" | undefined;
97
- resolution?: string | null | undefined;
98
- }>;
99
- export type ClarificationItem = z.infer<typeof ClarificationItem>;
100
- /** Acceptance criterion in EARS style ("WHEN <cond>, THE SYSTEM SHALL <behavior>"). */
101
- export declare const SpecAcceptanceCriterion: z.ZodObject<{
102
- id: z.ZodString;
103
- behavior: z.ZodString;
104
- required: z.ZodDefault<z.ZodBoolean>;
105
- }, "strip", z.ZodTypeAny, {
106
- id: string;
107
- required: boolean;
108
- behavior: string;
109
- }, {
110
- id: string;
111
- behavior: string;
112
- required?: boolean | undefined;
113
- }>;
114
- export type SpecAcceptanceCriterion = z.infer<typeof SpecAcceptanceCriterion>;
115
- /** A dependency-ordered task in the implementation checklist. */
116
- export declare const SpecTask: z.ZodObject<{
117
- id: z.ZodString;
118
- title: z.ZodString;
119
- depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
120
- done: z.ZodDefault<z.ZodBoolean>;
121
- }, "strip", z.ZodTypeAny, {
122
- id: string;
123
- title: string;
124
- depends_on: string[];
125
- done: boolean;
126
- }, {
127
- id: string;
128
- title: string;
129
- depends_on?: string[] | undefined;
130
- done?: boolean | undefined;
131
- }>;
132
- export type SpecTask = z.infer<typeof SpecTask>;
133
- export declare const SpecConstraints: z.ZodObject<{
134
- /** Spec-owned protected paths can raise review risk; per-run approvals cannot be frozen into a spec. */
135
- protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
136
- }, "strict", z.ZodTypeAny, {
137
- protected_paths: string[];
138
- }, {
139
- protected_paths?: string[] | undefined;
140
- }>;
141
- export type SpecConstraints = z.infer<typeof SpecConstraints>;
142
- /**
143
- * Schema-level invariants (SSOT, enforced on every parse — even when loaded from
144
- * disk, not just via the engine): a frozen spec cannot carry open clarifications,
145
- * and a "resolved" clarification must record a non-empty resolution. This makes a
146
- * frozen-but-ambiguous SpecPack unrepresentable — no silent guessing.
147
- */
148
- export declare const SpecPack: z.ZodEffects<z.ZodObject<{
149
- schema_version: z.ZodLiteral<2>;
150
- id: z.ZodString;
151
- created_at: z.ZodString;
152
- /** Monotonic revision; each freeze increments it (spec-anchored history). */
153
- version: z.ZodDefault<z.ZodNumber>;
154
- frozen: z.ZodDefault<z.ZodBoolean>;
155
- intent: z.ZodObject<{
156
- raw: z.ZodString;
157
- normalized: z.ZodOptional<z.ZodString>;
158
- }, "strip", z.ZodTypeAny, {
159
- raw: string;
160
- normalized?: string | undefined;
161
- }, {
162
- raw: string;
163
- normalized?: string | undefined;
164
- }>;
165
- summary: z.ZodDefault<z.ZodString>;
166
- success_criteria: z.ZodDefault<z.ZodArray<z.ZodObject<{
167
- id: z.ZodString;
168
- behavior: z.ZodString;
169
- required: z.ZodDefault<z.ZodBoolean>;
170
- }, "strip", z.ZodTypeAny, {
171
- id: string;
172
- required: boolean;
173
- behavior: string;
174
- }, {
175
- id: string;
176
- behavior: string;
177
- required?: boolean | undefined;
178
- }>, "many">>;
179
- non_goals: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
180
- forbidden_approaches: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
181
- decided_tradeoffs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
182
- constraints: z.ZodDefault<z.ZodObject<{
183
- /** Spec-owned protected paths can raise review risk; per-run approvals cannot be frozen into a spec. */
184
- protected_paths: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
185
- }, "strict", z.ZodTypeAny, {
186
- protected_paths: string[];
187
- }, {
188
- protected_paths?: string[] | undefined;
189
- }>>;
190
- tests: z.ZodDefault<z.ZodArray<z.ZodObject<{
191
- program: z.ZodString;
192
- args: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
193
- cwd: z.ZodOptional<z.ZodString>;
194
- envAllowlist: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
195
- } & {
196
- id: z.ZodString;
197
- required: z.ZodDefault<z.ZodBoolean>;
198
- trust_required: z.ZodDefault<z.ZodBoolean>;
199
- trust_grant: z.ZodDefault<z.ZodNullable<z.ZodObject<{
200
- projectDigest: z.ZodString;
201
- configDigest: z.ZodString;
202
- commandDigest: z.ZodString;
203
- executablePath: z.ZodString;
204
- executableDigest: z.ZodString;
205
- scriptPath: z.ZodDefault<z.ZodNullable<z.ZodString>>;
206
- scriptDigest: z.ZodDefault<z.ZodNullable<z.ZodString>>;
207
- accessProfile: z.ZodEnum<["readonly", "workspace_write", "full", "external_sandbox_full", "inherit_native"]>;
208
- }, "strict", z.ZodTypeAny, {
209
- projectDigest: string;
210
- configDigest: string;
211
- commandDigest: string;
212
- executablePath: string;
213
- executableDigest: string;
214
- scriptPath: string | null;
215
- scriptDigest: string | null;
216
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
217
- }, {
218
- projectDigest: string;
219
- configDigest: string;
220
- commandDigest: string;
221
- executablePath: string;
222
- executableDigest: string;
223
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
224
- scriptPath?: string | null | undefined;
225
- scriptDigest?: string | null | undefined;
226
- }>>>;
227
- }, "strict", z.ZodTypeAny, {
228
- id: string;
229
- required: boolean;
230
- program: string;
231
- args: string[];
232
- envAllowlist: string[];
233
- trust_required: boolean;
234
- trust_grant: {
235
- projectDigest: string;
236
- configDigest: string;
237
- commandDigest: string;
238
- executablePath: string;
239
- executableDigest: string;
240
- scriptPath: string | null;
241
- scriptDigest: string | null;
242
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
243
- } | null;
244
- cwd?: string | undefined;
245
- }, {
246
- id: string;
247
- program: string;
248
- cwd?: string | undefined;
249
- required?: boolean | undefined;
250
- args?: string[] | undefined;
251
- envAllowlist?: string[] | undefined;
252
- trust_required?: boolean | undefined;
253
- trust_grant?: {
254
- projectDigest: string;
255
- configDigest: string;
256
- commandDigest: string;
257
- executablePath: string;
258
- executableDigest: string;
259
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
260
- scriptPath?: string | null | undefined;
261
- scriptDigest?: string | null | undefined;
262
- } | null | undefined;
263
- }>, "many">>;
264
- tasks: z.ZodDefault<z.ZodArray<z.ZodObject<{
265
- id: z.ZodString;
266
- title: z.ZodString;
267
- depends_on: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
268
- done: z.ZodDefault<z.ZodBoolean>;
269
- }, "strip", z.ZodTypeAny, {
270
- id: string;
271
- title: string;
272
- depends_on: string[];
273
- done: boolean;
274
- }, {
275
- id: string;
276
- title: string;
277
- depends_on?: string[] | undefined;
278
- done?: boolean | undefined;
279
- }>, "many">>;
280
- open_questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
281
- id: z.ZodString;
282
- claim: z.ZodString;
283
- status: z.ZodDefault<z.ZodEnum<["open", "resolved"]>>;
284
- resolution: z.ZodDefault<z.ZodNullable<z.ZodString>>;
285
- }, "strip", z.ZodTypeAny, {
286
- status: "open" | "resolved";
287
- id: string;
288
- claim: string;
289
- resolution: string | null;
290
- }, {
291
- id: string;
292
- claim: string;
293
- status?: "open" | "resolved" | undefined;
294
- resolution?: string | null | undefined;
295
- }>, "many">>;
296
- interview: z.ZodDefault<z.ZodObject<{
297
- questions: z.ZodDefault<z.ZodArray<z.ZodObject<{
298
- id: z.ZodString;
299
- tier: z.ZodDefault<z.ZodNumber>;
300
- prompt: z.ZodString;
301
- kind: z.ZodDefault<z.ZodEnum<["single", "multi", "text"]>>;
302
- options: z.ZodDefault<z.ZodArray<z.ZodObject<{
303
- id: z.ZodString;
304
- label: z.ZodString;
305
- }, "strip", z.ZodTypeAny, {
306
- id: string;
307
- label: string;
308
- }, {
309
- id: string;
310
- label: string;
311
- }>, "many">>;
312
- /** Whether free-text is accepted in addition to / instead of options. */
313
- allow_text: z.ZodDefault<z.ZodBoolean>;
314
- rationale: z.ZodOptional<z.ZodString>;
315
- }, "strip", z.ZodTypeAny, {
316
- options: {
317
- id: string;
318
- label: string;
319
- }[];
320
- kind: "text" | "single" | "multi";
321
- id: string;
322
- prompt: string;
323
- tier: number;
324
- allow_text: boolean;
325
- rationale?: string | undefined;
326
- }, {
327
- id: string;
328
- prompt: string;
329
- options?: {
330
- id: string;
331
- label: string;
332
- }[] | undefined;
333
- kind?: "text" | "single" | "multi" | undefined;
334
- tier?: number | undefined;
335
- allow_text?: boolean | undefined;
336
- rationale?: string | undefined;
337
- }>, "many">>;
338
- answers: z.ZodDefault<z.ZodArray<z.ZodObject<{
339
- question_id: z.ZodString;
340
- option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
341
- text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
342
- }, "strip", z.ZodTypeAny, {
343
- question_id: string;
344
- text: string | null;
345
- option_ids: string[];
346
- }, {
347
- question_id: string;
348
- text?: string | null | undefined;
349
- option_ids?: string[] | undefined;
350
- }>, "many">>;
351
- }, "strip", z.ZodTypeAny, {
352
- questions: {
353
- options: {
354
- id: string;
355
- label: string;
356
- }[];
357
- kind: "text" | "single" | "multi";
358
- id: string;
359
- prompt: string;
360
- tier: number;
361
- allow_text: boolean;
362
- rationale?: string | undefined;
363
- }[];
364
- answers: {
365
- question_id: string;
366
- text: string | null;
367
- option_ids: string[];
368
- }[];
369
- }, {
370
- questions?: {
371
- id: string;
372
- prompt: string;
373
- options?: {
374
- id: string;
375
- label: string;
376
- }[] | undefined;
377
- kind?: "text" | "single" | "multi" | undefined;
378
- tier?: number | undefined;
379
- allow_text?: boolean | undefined;
380
- rationale?: string | undefined;
381
- }[] | undefined;
382
- answers?: {
383
- question_id: string;
384
- text?: string | null | undefined;
385
- option_ids?: string[] | undefined;
386
- }[] | undefined;
387
- }>>;
388
- }, "strip", z.ZodTypeAny, {
389
- created_at: string;
390
- summary: string;
391
- schema_version: 2;
392
- id: string;
393
- constraints: {
394
- protected_paths: string[];
395
- };
396
- version: number;
397
- intent: {
398
- raw: string;
399
- normalized?: string | undefined;
400
- };
401
- success_criteria: {
402
- id: string;
403
- required: boolean;
404
- behavior: string;
405
- }[];
406
- non_goals: string[];
407
- forbidden_approaches: string[];
408
- decided_tradeoffs: string[];
409
- tests: {
410
- id: string;
411
- required: boolean;
412
- program: string;
413
- args: string[];
414
- envAllowlist: string[];
415
- trust_required: boolean;
416
- trust_grant: {
417
- projectDigest: string;
418
- configDigest: string;
419
- commandDigest: string;
420
- executablePath: string;
421
- executableDigest: string;
422
- scriptPath: string | null;
423
- scriptDigest: string | null;
424
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
425
- } | null;
426
- cwd?: string | undefined;
427
- }[];
428
- frozen: boolean;
429
- tasks: {
430
- id: string;
431
- title: string;
432
- depends_on: string[];
433
- done: boolean;
434
- }[];
435
- open_questions: {
436
- status: "open" | "resolved";
437
- id: string;
438
- claim: string;
439
- resolution: string | null;
440
- }[];
441
- interview: {
442
- questions: {
443
- options: {
444
- id: string;
445
- label: string;
446
- }[];
447
- kind: "text" | "single" | "multi";
448
- id: string;
449
- prompt: string;
450
- tier: number;
451
- allow_text: boolean;
452
- rationale?: string | undefined;
453
- }[];
454
- answers: {
455
- question_id: string;
456
- text: string | null;
457
- option_ids: string[];
458
- }[];
459
- };
460
- }, {
461
- created_at: string;
462
- schema_version: 2;
463
- id: string;
464
- intent: {
465
- raw: string;
466
- normalized?: string | undefined;
467
- };
468
- summary?: string | undefined;
469
- constraints?: {
470
- protected_paths?: string[] | undefined;
471
- } | undefined;
472
- version?: number | undefined;
473
- success_criteria?: {
474
- id: string;
475
- behavior: string;
476
- required?: boolean | undefined;
477
- }[] | undefined;
478
- non_goals?: string[] | undefined;
479
- forbidden_approaches?: string[] | undefined;
480
- decided_tradeoffs?: string[] | undefined;
481
- tests?: {
482
- id: string;
483
- program: string;
484
- cwd?: string | undefined;
485
- required?: boolean | undefined;
486
- args?: string[] | undefined;
487
- envAllowlist?: string[] | undefined;
488
- trust_required?: boolean | undefined;
489
- trust_grant?: {
490
- projectDigest: string;
491
- configDigest: string;
492
- commandDigest: string;
493
- executablePath: string;
494
- executableDigest: string;
495
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
496
- scriptPath?: string | null | undefined;
497
- scriptDigest?: string | null | undefined;
498
- } | null | undefined;
499
- }[] | undefined;
500
- frozen?: boolean | undefined;
501
- tasks?: {
502
- id: string;
503
- title: string;
504
- depends_on?: string[] | undefined;
505
- done?: boolean | undefined;
506
- }[] | undefined;
507
- open_questions?: {
508
- id: string;
509
- claim: string;
510
- status?: "open" | "resolved" | undefined;
511
- resolution?: string | null | undefined;
512
- }[] | undefined;
513
- interview?: {
514
- questions?: {
515
- id: string;
516
- prompt: string;
517
- options?: {
518
- id: string;
519
- label: string;
520
- }[] | undefined;
521
- kind?: "text" | "single" | "multi" | undefined;
522
- tier?: number | undefined;
523
- allow_text?: boolean | undefined;
524
- rationale?: string | undefined;
525
- }[] | undefined;
526
- answers?: {
527
- question_id: string;
528
- text?: string | null | undefined;
529
- option_ids?: string[] | undefined;
530
- }[] | undefined;
531
- } | undefined;
532
- }>, {
533
- created_at: string;
534
- summary: string;
535
- schema_version: 2;
536
- id: string;
537
- constraints: {
538
- protected_paths: string[];
539
- };
540
- version: number;
541
- intent: {
542
- raw: string;
543
- normalized?: string | undefined;
544
- };
545
- success_criteria: {
546
- id: string;
547
- required: boolean;
548
- behavior: string;
549
- }[];
550
- non_goals: string[];
551
- forbidden_approaches: string[];
552
- decided_tradeoffs: string[];
553
- tests: {
554
- id: string;
555
- required: boolean;
556
- program: string;
557
- args: string[];
558
- envAllowlist: string[];
559
- trust_required: boolean;
560
- trust_grant: {
561
- projectDigest: string;
562
- configDigest: string;
563
- commandDigest: string;
564
- executablePath: string;
565
- executableDigest: string;
566
- scriptPath: string | null;
567
- scriptDigest: string | null;
568
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
569
- } | null;
570
- cwd?: string | undefined;
571
- }[];
572
- frozen: boolean;
573
- tasks: {
574
- id: string;
575
- title: string;
576
- depends_on: string[];
577
- done: boolean;
578
- }[];
579
- open_questions: {
580
- status: "open" | "resolved";
581
- id: string;
582
- claim: string;
583
- resolution: string | null;
584
- }[];
585
- interview: {
586
- questions: {
587
- options: {
588
- id: string;
589
- label: string;
590
- }[];
591
- kind: "text" | "single" | "multi";
592
- id: string;
593
- prompt: string;
594
- tier: number;
595
- allow_text: boolean;
596
- rationale?: string | undefined;
597
- }[];
598
- answers: {
599
- question_id: string;
600
- text: string | null;
601
- option_ids: string[];
602
- }[];
603
- };
604
- }, {
605
- created_at: string;
606
- schema_version: 2;
607
- id: string;
608
- intent: {
609
- raw: string;
610
- normalized?: string | undefined;
611
- };
612
- summary?: string | undefined;
613
- constraints?: {
614
- protected_paths?: string[] | undefined;
615
- } | undefined;
616
- version?: number | undefined;
617
- success_criteria?: {
618
- id: string;
619
- behavior: string;
620
- required?: boolean | undefined;
621
- }[] | undefined;
622
- non_goals?: string[] | undefined;
623
- forbidden_approaches?: string[] | undefined;
624
- decided_tradeoffs?: string[] | undefined;
625
- tests?: {
626
- id: string;
627
- program: string;
628
- cwd?: string | undefined;
629
- required?: boolean | undefined;
630
- args?: string[] | undefined;
631
- envAllowlist?: string[] | undefined;
632
- trust_required?: boolean | undefined;
633
- trust_grant?: {
634
- projectDigest: string;
635
- configDigest: string;
636
- commandDigest: string;
637
- executablePath: string;
638
- executableDigest: string;
639
- accessProfile: "readonly" | "workspace_write" | "full" | "external_sandbox_full" | "inherit_native";
640
- scriptPath?: string | null | undefined;
641
- scriptDigest?: string | null | undefined;
642
- } | null | undefined;
643
- }[] | undefined;
644
- frozen?: boolean | undefined;
645
- tasks?: {
646
- id: string;
647
- title: string;
648
- depends_on?: string[] | undefined;
649
- done?: boolean | undefined;
650
- }[] | undefined;
651
- open_questions?: {
652
- id: string;
653
- claim: string;
654
- status?: "open" | "resolved" | undefined;
655
- resolution?: string | null | undefined;
656
- }[] | undefined;
657
- interview?: {
658
- questions?: {
659
- id: string;
660
- prompt: string;
661
- options?: {
662
- id: string;
663
- label: string;
664
- }[] | undefined;
665
- kind?: "text" | "single" | "multi" | undefined;
666
- tier?: number | undefined;
667
- allow_text?: boolean | undefined;
668
- rationale?: string | undefined;
669
- }[] | undefined;
670
- answers?: {
671
- question_id: string;
672
- text?: string | null | undefined;
673
- option_ids?: string[] | undefined;
674
- }[] | undefined;
675
- } | undefined;
676
- }>;
677
- export type SpecPack = z.infer<typeof SpecPack>;
678
- //# sourceMappingURL=spec.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