@claudexor/schema 2.1.3 → 3.0.1

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