@claudexor/schema 2.1.2 → 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 +380 -215
  21. package/dist/control-run-detail.d.ts.map +1 -1
  22. package/dist/control-run-detail.js +54 -8
  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 -323
  27. package/dist/control.d.ts.map +1 -1
  28. package/dist/control.js +164 -71
  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 +46 -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 +305 -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 +10 -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 -592
  155. package/dist/control-spec.d.ts.map +0 -1
  156. package/dist/control-spec.js +0 -85
  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 -206
  168. package/generated/ControlSpecSession.schema.json +0 -249
  169. package/generated/ControlSpecSessionListResponse.schema.json +0 -261
  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
@@ -1,592 +0,0 @@
1
- import { z } from "zod";
2
- export declare const ControlSpecPriorDecision: z.ZodObject<{
3
- question: z.ZodString;
4
- answer: z.ZodString;
5
- }, "strict", z.ZodTypeAny, {
6
- question: string;
7
- answer: string;
8
- }, {
9
- question: string;
10
- answer: string;
11
- }>;
12
- export declare const ControlSpecQuestionsRequest: z.ZodObject<{
13
- prompt: z.ZodString;
14
- scope: z.ZodObject<{
15
- kind: z.ZodLiteral<"project">;
16
- root: z.ZodString;
17
- context: z.ZodDefault<z.ZodEnum<["auto"]>>;
18
- }, "strict", z.ZodTypeAny, {
19
- kind: "project";
20
- root: string;
21
- context: "auto";
22
- }, {
23
- kind: "project";
24
- root: string;
25
- context?: "auto" | undefined;
26
- }>;
27
- harnesses: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
28
- n: z.ZodOptional<z.ZodNumber>;
29
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
30
- paidBudget: z.ZodOptional<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
31
- kind: z.ZodLiteral<"unlimited">;
32
- }, "strict", z.ZodTypeAny, {
33
- kind: "unlimited";
34
- }, {
35
- kind: "unlimited";
36
- }>, z.ZodObject<{
37
- kind: z.ZodLiteral<"finite">;
38
- maxUsd: z.ZodNumber;
39
- }, "strict", z.ZodTypeAny, {
40
- kind: "finite";
41
- maxUsd: number;
42
- }, {
43
- kind: "finite";
44
- maxUsd: number;
45
- }>]>>;
46
- web: z.ZodOptional<z.ZodEnum<["off", "auto", "cached", "live"]>>;
47
- reviewerModels: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodString>>;
48
- reviewerEfforts: z.ZodOptional<z.ZodRecord<z.ZodEnum<["openai", "anthropic", "google", "cursor", "opencode", "xai", "local", "unknown"]>, z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>>;
49
- reviewerPanel: z.ZodOptional<z.ZodArray<z.ZodObject<{
50
- harness: z.ZodString;
51
- model: z.ZodOptional<z.ZodString>;
52
- effort: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "xhigh", "max"]>>;
53
- }, "strict", z.ZodTypeAny, {
54
- harness: string;
55
- model?: string | undefined;
56
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
57
- }, {
58
- harness: string;
59
- model?: string | undefined;
60
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
61
- }>, "many">>;
62
- priorDecisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
63
- question: z.ZodString;
64
- answer: z.ZodString;
65
- }, "strict", z.ZodTypeAny, {
66
- question: string;
67
- answer: string;
68
- }, {
69
- question: string;
70
- answer: string;
71
- }>, "many">>;
72
- }, "strict", z.ZodTypeAny, {
73
- prompt: string;
74
- scope: {
75
- kind: "project";
76
- root: string;
77
- context: "auto";
78
- };
79
- web?: "off" | "auto" | "cached" | "live" | undefined;
80
- harnesses?: string[] | undefined;
81
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
82
- n?: number | undefined;
83
- reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
84
- reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
85
- paidBudget?: {
86
- kind: "unlimited";
87
- } | {
88
- kind: "finite";
89
- maxUsd: number;
90
- } | undefined;
91
- reviewerPanel?: {
92
- harness: string;
93
- model?: string | undefined;
94
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
95
- }[] | undefined;
96
- priorDecisions?: {
97
- question: string;
98
- answer: string;
99
- }[] | undefined;
100
- }, {
101
- prompt: string;
102
- scope: {
103
- kind: "project";
104
- root: string;
105
- context?: "auto" | undefined;
106
- };
107
- web?: "off" | "auto" | "cached" | "live" | undefined;
108
- harnesses?: string[] | undefined;
109
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
110
- n?: number | undefined;
111
- reviewerModels?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", string>> | undefined;
112
- reviewerEfforts?: Partial<Record<"openai" | "anthropic" | "google" | "cursor" | "opencode" | "xai" | "local" | "unknown", "low" | "medium" | "high" | "xhigh" | "max">> | undefined;
113
- paidBudget?: {
114
- kind: "unlimited";
115
- } | {
116
- kind: "finite";
117
- maxUsd: number;
118
- } | undefined;
119
- reviewerPanel?: {
120
- harness: string;
121
- model?: string | undefined;
122
- effort?: "low" | "medium" | "high" | "xhigh" | "max" | undefined;
123
- }[] | undefined;
124
- priorDecisions?: {
125
- question: string;
126
- answer: string;
127
- }[] | undefined;
128
- }>;
129
- export type ControlSpecQuestionsRequest = z.infer<typeof ControlSpecQuestionsRequest>;
130
- export declare const ControlSpecAnswersRequest: z.ZodObject<{
131
- answers: z.ZodArray<z.ZodObject<{
132
- question_id: z.ZodString;
133
- option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
134
- text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
135
- }, "strip", z.ZodTypeAny, {
136
- question_id: string;
137
- text: string | null;
138
- option_ids: string[];
139
- }, {
140
- question_id: string;
141
- text?: string | null | undefined;
142
- option_ids?: string[] | undefined;
143
- }>, "many">;
144
- priorDecisions: z.ZodOptional<z.ZodArray<z.ZodObject<{
145
- question: z.ZodString;
146
- answer: z.ZodString;
147
- }, "strict", z.ZodTypeAny, {
148
- question: string;
149
- answer: string;
150
- }, {
151
- question: string;
152
- answer: string;
153
- }>, "many">>;
154
- }, "strict", z.ZodTypeAny, {
155
- answers: {
156
- question_id: string;
157
- text: string | null;
158
- option_ids: string[];
159
- }[];
160
- priorDecisions?: {
161
- question: string;
162
- answer: string;
163
- }[] | undefined;
164
- }, {
165
- answers: {
166
- question_id: string;
167
- text?: string | null | undefined;
168
- option_ids?: string[] | undefined;
169
- }[];
170
- priorDecisions?: {
171
- question: string;
172
- answer: string;
173
- }[] | undefined;
174
- }>;
175
- export type ControlSpecAnswersRequest = z.infer<typeof ControlSpecAnswersRequest>;
176
- export declare const ControlSpecSessionState: z.ZodEnum<["grounding", "questions", "answered", "freezing", "frozen", "cancelled", "failed", "interrupted_unknown"]>;
177
- export type ControlSpecSessionState = z.infer<typeof ControlSpecSessionState>;
178
- export declare const ControlSpecSession: z.ZodObject<{
179
- sessionId: z.ZodString;
180
- prompt: z.ZodString;
181
- scope: z.ZodObject<{
182
- kind: z.ZodLiteral<"project">;
183
- root: z.ZodString;
184
- context: z.ZodEnum<["auto"]>;
185
- }, "strict", z.ZodTypeAny, {
186
- kind: "project";
187
- root: string;
188
- context: "auto";
189
- }, {
190
- kind: "project";
191
- root: string;
192
- context: "auto";
193
- }>;
194
- state: z.ZodEnum<["grounding", "questions", "answered", "freezing", "frozen", "cancelled", "failed", "interrupted_unknown"]>;
195
- planRunId: z.ZodNullable<z.ZodString>;
196
- questions: z.ZodArray<z.ZodObject<{
197
- id: z.ZodString;
198
- tier: z.ZodDefault<z.ZodNumber>;
199
- prompt: z.ZodString;
200
- kind: z.ZodDefault<z.ZodEnum<["single", "multi", "text"]>>;
201
- options: z.ZodDefault<z.ZodArray<z.ZodObject<{
202
- id: z.ZodString;
203
- label: z.ZodString;
204
- }, "strip", z.ZodTypeAny, {
205
- id: string;
206
- label: string;
207
- }, {
208
- id: string;
209
- label: string;
210
- }>, "many">>;
211
- allow_text: z.ZodDefault<z.ZodBoolean>;
212
- rationale: z.ZodOptional<z.ZodString>;
213
- }, "strip", z.ZodTypeAny, {
214
- options: {
215
- id: string;
216
- label: string;
217
- }[];
218
- kind: "text" | "single" | "multi";
219
- id: string;
220
- prompt: string;
221
- tier: number;
222
- allow_text: boolean;
223
- rationale?: string | undefined;
224
- }, {
225
- id: string;
226
- prompt: string;
227
- options?: {
228
- id: string;
229
- label: string;
230
- }[] | undefined;
231
- kind?: "text" | "single" | "multi" | undefined;
232
- tier?: number | undefined;
233
- allow_text?: boolean | undefined;
234
- rationale?: string | undefined;
235
- }>, "many">;
236
- answers: z.ZodArray<z.ZodObject<{
237
- question_id: z.ZodString;
238
- option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
239
- text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
240
- }, "strip", z.ZodTypeAny, {
241
- question_id: string;
242
- text: string | null;
243
- option_ids: string[];
244
- }, {
245
- question_id: string;
246
- text?: string | null | undefined;
247
- option_ids?: string[] | undefined;
248
- }>, "many">;
249
- priorDecisions: z.ZodArray<z.ZodObject<{
250
- question: z.ZodString;
251
- answer: z.ZodString;
252
- }, "strict", z.ZodTypeAny, {
253
- question: string;
254
- answer: string;
255
- }, {
256
- question: string;
257
- answer: string;
258
- }>, "many">;
259
- specId: z.ZodNullable<z.ZodString>;
260
- specDir: z.ZodNullable<z.ZodString>;
261
- specPath: z.ZodNullable<z.ZodString>;
262
- specHash: z.ZodNullable<z.ZodString>;
263
- error: z.ZodNullable<z.ZodString>;
264
- createdAt: z.ZodString;
265
- updatedAt: z.ZodString;
266
- }, "strict", z.ZodTypeAny, {
267
- state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
268
- error: string | null;
269
- createdAt: string;
270
- prompt: string;
271
- questions: {
272
- options: {
273
- id: string;
274
- label: string;
275
- }[];
276
- kind: "text" | "single" | "multi";
277
- id: string;
278
- prompt: string;
279
- tier: number;
280
- allow_text: boolean;
281
- rationale?: string | undefined;
282
- }[];
283
- answers: {
284
- question_id: string;
285
- text: string | null;
286
- option_ids: string[];
287
- }[];
288
- planRunId: string | null;
289
- scope: {
290
- kind: "project";
291
- root: string;
292
- context: "auto";
293
- };
294
- specPath: string | null;
295
- specId: string | null;
296
- specHash: string | null;
297
- sessionId: string;
298
- updatedAt: string;
299
- priorDecisions: {
300
- question: string;
301
- answer: string;
302
- }[];
303
- specDir: string | null;
304
- }, {
305
- state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
306
- error: string | null;
307
- createdAt: string;
308
- prompt: string;
309
- questions: {
310
- id: string;
311
- prompt: string;
312
- options?: {
313
- id: string;
314
- label: string;
315
- }[] | undefined;
316
- kind?: "text" | "single" | "multi" | undefined;
317
- tier?: number | undefined;
318
- allow_text?: boolean | undefined;
319
- rationale?: string | undefined;
320
- }[];
321
- answers: {
322
- question_id: string;
323
- text?: string | null | undefined;
324
- option_ids?: string[] | undefined;
325
- }[];
326
- planRunId: string | null;
327
- scope: {
328
- kind: "project";
329
- root: string;
330
- context: "auto";
331
- };
332
- specPath: string | null;
333
- specId: string | null;
334
- specHash: string | null;
335
- sessionId: string;
336
- updatedAt: string;
337
- priorDecisions: {
338
- question: string;
339
- answer: string;
340
- }[];
341
- specDir: string | null;
342
- }>;
343
- export type ControlSpecSession = z.infer<typeof ControlSpecSession>;
344
- export declare const ControlSpecSessionListResponse: z.ZodObject<{
345
- sessions: z.ZodArray<z.ZodObject<{
346
- sessionId: z.ZodString;
347
- prompt: z.ZodString;
348
- scope: z.ZodObject<{
349
- kind: z.ZodLiteral<"project">;
350
- root: z.ZodString;
351
- context: z.ZodEnum<["auto"]>;
352
- }, "strict", z.ZodTypeAny, {
353
- kind: "project";
354
- root: string;
355
- context: "auto";
356
- }, {
357
- kind: "project";
358
- root: string;
359
- context: "auto";
360
- }>;
361
- state: z.ZodEnum<["grounding", "questions", "answered", "freezing", "frozen", "cancelled", "failed", "interrupted_unknown"]>;
362
- planRunId: z.ZodNullable<z.ZodString>;
363
- questions: z.ZodArray<z.ZodObject<{
364
- id: z.ZodString;
365
- tier: z.ZodDefault<z.ZodNumber>;
366
- prompt: z.ZodString;
367
- kind: z.ZodDefault<z.ZodEnum<["single", "multi", "text"]>>;
368
- options: z.ZodDefault<z.ZodArray<z.ZodObject<{
369
- id: z.ZodString;
370
- label: z.ZodString;
371
- }, "strip", z.ZodTypeAny, {
372
- id: string;
373
- label: string;
374
- }, {
375
- id: string;
376
- label: string;
377
- }>, "many">>;
378
- allow_text: z.ZodDefault<z.ZodBoolean>;
379
- rationale: z.ZodOptional<z.ZodString>;
380
- }, "strip", z.ZodTypeAny, {
381
- options: {
382
- id: string;
383
- label: string;
384
- }[];
385
- kind: "text" | "single" | "multi";
386
- id: string;
387
- prompt: string;
388
- tier: number;
389
- allow_text: boolean;
390
- rationale?: string | undefined;
391
- }, {
392
- id: string;
393
- prompt: string;
394
- options?: {
395
- id: string;
396
- label: string;
397
- }[] | undefined;
398
- kind?: "text" | "single" | "multi" | undefined;
399
- tier?: number | undefined;
400
- allow_text?: boolean | undefined;
401
- rationale?: string | undefined;
402
- }>, "many">;
403
- answers: z.ZodArray<z.ZodObject<{
404
- question_id: z.ZodString;
405
- option_ids: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
406
- text: z.ZodDefault<z.ZodNullable<z.ZodString>>;
407
- }, "strip", z.ZodTypeAny, {
408
- question_id: string;
409
- text: string | null;
410
- option_ids: string[];
411
- }, {
412
- question_id: string;
413
- text?: string | null | undefined;
414
- option_ids?: string[] | undefined;
415
- }>, "many">;
416
- priorDecisions: z.ZodArray<z.ZodObject<{
417
- question: z.ZodString;
418
- answer: z.ZodString;
419
- }, "strict", z.ZodTypeAny, {
420
- question: string;
421
- answer: string;
422
- }, {
423
- question: string;
424
- answer: string;
425
- }>, "many">;
426
- specId: z.ZodNullable<z.ZodString>;
427
- specDir: z.ZodNullable<z.ZodString>;
428
- specPath: z.ZodNullable<z.ZodString>;
429
- specHash: z.ZodNullable<z.ZodString>;
430
- error: z.ZodNullable<z.ZodString>;
431
- createdAt: z.ZodString;
432
- updatedAt: z.ZodString;
433
- }, "strict", z.ZodTypeAny, {
434
- state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
435
- error: string | null;
436
- createdAt: string;
437
- prompt: string;
438
- questions: {
439
- options: {
440
- id: string;
441
- label: string;
442
- }[];
443
- kind: "text" | "single" | "multi";
444
- id: string;
445
- prompt: string;
446
- tier: number;
447
- allow_text: boolean;
448
- rationale?: string | undefined;
449
- }[];
450
- answers: {
451
- question_id: string;
452
- text: string | null;
453
- option_ids: string[];
454
- }[];
455
- planRunId: string | null;
456
- scope: {
457
- kind: "project";
458
- root: string;
459
- context: "auto";
460
- };
461
- specPath: string | null;
462
- specId: string | null;
463
- specHash: string | null;
464
- sessionId: string;
465
- updatedAt: string;
466
- priorDecisions: {
467
- question: string;
468
- answer: string;
469
- }[];
470
- specDir: string | null;
471
- }, {
472
- state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
473
- error: string | null;
474
- createdAt: string;
475
- prompt: string;
476
- questions: {
477
- id: string;
478
- prompt: string;
479
- options?: {
480
- id: string;
481
- label: string;
482
- }[] | undefined;
483
- kind?: "text" | "single" | "multi" | undefined;
484
- tier?: number | undefined;
485
- allow_text?: boolean | undefined;
486
- rationale?: string | undefined;
487
- }[];
488
- answers: {
489
- question_id: string;
490
- text?: string | null | undefined;
491
- option_ids?: string[] | undefined;
492
- }[];
493
- planRunId: string | null;
494
- scope: {
495
- kind: "project";
496
- root: string;
497
- context: "auto";
498
- };
499
- specPath: string | null;
500
- specId: string | null;
501
- specHash: string | null;
502
- sessionId: string;
503
- updatedAt: string;
504
- priorDecisions: {
505
- question: string;
506
- answer: string;
507
- }[];
508
- specDir: string | null;
509
- }>, "many">;
510
- }, "strict", z.ZodTypeAny, {
511
- sessions: {
512
- state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
513
- error: string | null;
514
- createdAt: string;
515
- prompt: string;
516
- questions: {
517
- options: {
518
- id: string;
519
- label: string;
520
- }[];
521
- kind: "text" | "single" | "multi";
522
- id: string;
523
- prompt: string;
524
- tier: number;
525
- allow_text: boolean;
526
- rationale?: string | undefined;
527
- }[];
528
- answers: {
529
- question_id: string;
530
- text: string | null;
531
- option_ids: string[];
532
- }[];
533
- planRunId: string | null;
534
- scope: {
535
- kind: "project";
536
- root: string;
537
- context: "auto";
538
- };
539
- specPath: string | null;
540
- specId: string | null;
541
- specHash: string | null;
542
- sessionId: string;
543
- updatedAt: string;
544
- priorDecisions: {
545
- question: string;
546
- answer: string;
547
- }[];
548
- specDir: string | null;
549
- }[];
550
- }, {
551
- sessions: {
552
- state: "failed" | "cancelled" | "interrupted_unknown" | "questions" | "frozen" | "grounding" | "answered" | "freezing";
553
- error: string | null;
554
- createdAt: string;
555
- prompt: string;
556
- questions: {
557
- id: string;
558
- prompt: string;
559
- options?: {
560
- id: string;
561
- label: string;
562
- }[] | undefined;
563
- kind?: "text" | "single" | "multi" | undefined;
564
- tier?: number | undefined;
565
- allow_text?: boolean | undefined;
566
- rationale?: string | undefined;
567
- }[];
568
- answers: {
569
- question_id: string;
570
- text?: string | null | undefined;
571
- option_ids?: string[] | undefined;
572
- }[];
573
- planRunId: string | null;
574
- scope: {
575
- kind: "project";
576
- root: string;
577
- context: "auto";
578
- };
579
- specPath: string | null;
580
- specId: string | null;
581
- specHash: string | null;
582
- sessionId: string;
583
- updatedAt: string;
584
- priorDecisions: {
585
- question: string;
586
- answer: string;
587
- }[];
588
- specDir: string | null;
589
- }[];
590
- }>;
591
- export type ControlSpecSessionListResponse = z.infer<typeof ControlSpecSessionListResponse>;
592
- //# sourceMappingURL=control-spec.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"control-spec.d.ts","sourceRoot":"","sources":["../src/control-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC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;;;;;;;;;;;;;;;;;;;;EAEhC,CAAC;AACZ,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,8BAA8B,CAAC,CAAC"}
@@ -1,85 +0,0 @@
1
- import { z } from "zod";
2
- import { InterviewAnswer, InterviewQuestion } from "./spec.js";
3
- import { ExternalContextPolicy, NonBlankString, ProviderFamily } from "./primitives.js";
4
- import { EffortHint } from "./harness.js";
5
- import { ControlReviewerPanelEntry } from "./control.js";
6
- import { RunScopeContext } from "./control-run-scope.js";
7
- import { PaidBudget } from "./budget.js";
8
- export const ControlSpecPriorDecision = z
9
- .object({
10
- question: z.string().describe("Question asked in a prior tier."),
11
- answer: z.string().describe("The user's answer."),
12
- })
13
- .strict();
14
- export const ControlSpecQuestionsRequest = z
15
- .object({
16
- prompt: z.string().min(1).describe("The user's request the interview is clarifying."),
17
- scope: z
18
- .object({
19
- kind: z.literal("project"),
20
- root: z.string().describe("Absolute path of the project root."),
21
- context: RunScopeContext.default("auto"),
22
- })
23
- .strict()
24
- .describe("Project the spec is about."),
25
- harnesses: z
26
- .array(NonBlankString)
27
- .optional()
28
- .describe("Harnesses eligible to generate the questions."),
29
- n: z.number().int().positive().optional(),
30
- effort: EffortHint.optional(),
31
- paidBudget: PaidBudget.optional(),
32
- web: ExternalContextPolicy.optional(),
33
- reviewerModels: z.record(ProviderFamily, NonBlankString).optional(),
34
- reviewerEfforts: z.record(ProviderFamily, EffortHint).optional(),
35
- reviewerPanel: z.array(ControlReviewerPanelEntry).min(1).optional(),
36
- priorDecisions: z
37
- .array(ControlSpecPriorDecision)
38
- .optional()
39
- .describe("Prior-tier decisions carried into the next interview tier."),
40
- })
41
- .strict()
42
- .describe("Request to create a durable spec interview session.");
43
- export const ControlSpecAnswersRequest = z
44
- .object({
45
- answers: z.array(InterviewAnswer).describe("Answers for the current interview tier."),
46
- priorDecisions: z.array(ControlSpecPriorDecision).optional(),
47
- })
48
- .strict()
49
- .describe("Answers recorded against a durable spec session.");
50
- export const ControlSpecSessionState = z.enum([
51
- "grounding",
52
- "questions",
53
- "answered",
54
- "freezing",
55
- "frozen",
56
- "cancelled",
57
- "failed",
58
- "interrupted_unknown",
59
- ]);
60
- export const ControlSpecSession = z
61
- .object({
62
- sessionId: NonBlankString,
63
- prompt: z.string(),
64
- scope: z
65
- .object({ kind: z.literal("project"), root: z.string(), context: RunScopeContext })
66
- .strict(),
67
- state: ControlSpecSessionState,
68
- planRunId: z.string().nullable(),
69
- questions: z.array(InterviewQuestion),
70
- answers: z.array(InterviewAnswer),
71
- priorDecisions: z.array(ControlSpecPriorDecision),
72
- specId: z.string().nullable(),
73
- specDir: z.string().nullable(),
74
- specPath: z.string().nullable(),
75
- specHash: z.string().nullable(),
76
- error: z.string().nullable(),
77
- createdAt: z.string(),
78
- updatedAt: z.string(),
79
- })
80
- .strict()
81
- .describe("Durable public projection of a spec interview session.");
82
- export const ControlSpecSessionListResponse = z
83
- .object({ sessions: z.array(ControlSpecSession) })
84
- .strict();
85
- //# sourceMappingURL=control-spec.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"control-spec.js","sourceRoot":"","sources":["../src/control-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC;KACtC,MAAM,CAAC;IACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,Q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