@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,483 +0,0 @@
1
- {
2
- "$ref": "#/definitions/SpecPack",
3
- "definitions": {
4
- "SpecPack": {
5
- "type": "object",
6
- "properties": {
7
- "schema_version": {
8
- "type": "number",
9
- "const": 2,
10
- "description": "Schema version of the artifact; bumped on breaking ABI changes."
11
- },
12
- "id": {
13
- "type": "string",
14
- "minLength": 1,
15
- "description": "SpecPack id."
16
- },
17
- "created_at": {
18
- "type": "string",
19
- "minLength": 1,
20
- "description": "When this SpecPack revision was created."
21
- },
22
- "version": {
23
- "type": "integer",
24
- "exclusiveMinimum": 0,
25
- "default": 1,
26
- "description": "Monotonic revision; each freeze increments it."
27
- },
28
- "frozen": {
29
- "type": "boolean",
30
- "default": false,
31
- "description": "Whether the spec is frozen (immutable and runnable)."
32
- },
33
- "intent": {
34
- "type": "object",
35
- "properties": {
36
- "raw": {
37
- "type": "string",
38
- "description": "The user's original request, verbatim."
39
- },
40
- "normalized": {
41
- "type": "string",
42
- "description": "Optional normalized restatement of the request."
43
- }
44
- },
45
- "required": [
46
- "raw"
47
- ],
48
- "additionalProperties": false,
49
- "description": "The user intent this spec captures."
50
- },
51
- "summary": {
52
- "type": "string",
53
- "default": "",
54
- "description": "Short human-readable summary of the spec."
55
- },
56
- "success_criteria": {
57
- "type": "array",
58
- "items": {
59
- "type": "object",
60
- "properties": {
61
- "id": {
62
- "type": "string",
63
- "minLength": 1,
64
- "description": "Criterion id."
65
- },
66
- "behavior": {
67
- "type": "string",
68
- "description": "Required behavior, EARS style (WHEN <condition>, THE SYSTEM SHALL <behavior>)."
69
- },
70
- "required": {
71
- "type": "boolean",
72
- "default": true,
73
- "description": "Whether this criterion is required (vs advisory)."
74
- }
75
- },
76
- "required": [
77
- "id",
78
- "behavior"
79
- ],
80
- "additionalProperties": false,
81
- "description": "Acceptance criterion in EARS style."
82
- },
83
- "default": [],
84
- "description": "Acceptance criteria the implementation is held to."
85
- },
86
- "non_goals": {
87
- "type": "array",
88
- "items": {
89
- "type": "string"
90
- },
91
- "default": [],
92
- "description": "Explicitly out-of-scope outcomes."
93
- },
94
- "forbidden_approaches": {
95
- "type": "array",
96
- "items": {
97
- "type": "string"
98
- },
99
- "default": [],
100
- "description": "Approaches the implementation must not take."
101
- },
102
- "decided_tradeoffs": {
103
- "type": "array",
104
- "items": {
105
- "type": "string"
106
- },
107
- "default": [],
108
- "description": "Tradeoffs already decided during the interview."
109
- },
110
- "constraints": {
111
- "type": "object",
112
- "properties": {
113
- "protected_paths": {
114
- "type": "array",
115
- "items": {
116
- "type": "string"
117
- },
118
- "default": [],
119
- "description": "Spec-owned protected path globs that raise review risk; per-run approvals cannot be frozen into a spec."
120
- }
121
- },
122
- "additionalProperties": false,
123
- "description": "Constraints frozen into the spec.",
124
- "default": {}
125
- },
126
- "tests": {
127
- "type": "array",
128
- "items": {
129
- "type": "object",
130
- "properties": {
131
- "program": {
132
- "type": "string",
133
- "minLength": 1,
134
- "pattern": "\\S",
135
- "description": "Executable invoked directly without an implicit shell."
136
- },
137
- "args": {
138
- "type": "array",
139
- "items": {
140
- "type": "string"
141
- },
142
- "default": [],
143
- "description": "Exact argv passed to the executable."
144
- },
145
- "cwd": {
146
- "type": "string",
147
- "description": "Optional project-relative working directory for the command."
148
- },
149
- "envAllowlist": {
150
- "type": "array",
151
- "items": {
152
- "type": "string",
153
- "minLength": 1,
154
- "pattern": "\\S",
155
- "description": "User-supplied string that must contain visible content, not just whitespace."
156
- },
157
- "default": [],
158
- "description": "Non-secret parent environment names explicitly forwarded to the command."
159
- },
160
- "id": {
161
- "type": "string",
162
- "minLength": 1,
163
- "description": "Test command id."
164
- },
165
- "required": {
166
- "type": "boolean",
167
- "default": true,
168
- "description": "Whether this test must pass (vs advisory)."
169
- },
170
- "trust_required": {
171
- "type": "boolean",
172
- "default": false,
173
- "description": "Whether this command originated in versioned project config."
174
- },
175
- "trust_grant": {
176
- "anyOf": [
177
- {
178
- "type": "object",
179
- "properties": {
180
- "projectDigest": {
181
- "type": "string",
182
- "minLength": 1,
183
- "description": "Digest of the canonical project identity."
184
- },
185
- "configDigest": {
186
- "type": "string",
187
- "minLength": 1,
188
- "description": "Digest of the parsed versioned project config blob."
189
- },
190
- "commandDigest": {
191
- "type": "string",
192
- "minLength": 1,
193
- "description": "Digest of the canonical command invocation."
194
- },
195
- "executablePath": {
196
- "type": "string",
197
- "description": "Resolved executable path approved by the operator."
198
- },
199
- "executableDigest": {
200
- "type": "string",
201
- "minLength": 1,
202
- "description": "Digest of the resolved executable bytes."
203
- },
204
- "scriptPath": {
205
- "type": [
206
- "string",
207
- "null"
208
- ],
209
- "default": null,
210
- "description": "Resolved script path, when any."
211
- },
212
- "scriptDigest": {
213
- "anyOf": [
214
- {
215
- "type": "string",
216
- "minLength": 1,
217
- "description": "Content hash in algo:hex form, e.g. \"sha256:abcd...\"."
218
- },
219
- {
220
- "type": "null"
221
- }
222
- ],
223
- "description": "Digest of the script bytes.",
224
- "default": null
225
- },
226
- "accessProfile": {
227
- "type": "string",
228
- "enum": [
229
- "readonly",
230
- "workspace_write",
231
- "full",
232
- "external_sandbox_full",
233
- "inherit_native"
234
- ],
235
- "description": "Effective access profile covered by this grant."
236
- }
237
- },
238
- "required": [
239
- "projectDigest",
240
- "configDigest",
241
- "commandDigest",
242
- "executablePath",
243
- "executableDigest",
244
- "accessProfile"
245
- ],
246
- "additionalProperties": false,
247
- "description": "External exact grant for one versioned project test command."
248
- },
249
- {
250
- "type": "null"
251
- }
252
- ],
253
- "description": "Matching external grant; null when none was found.",
254
- "default": null
255
- }
256
- },
257
- "required": [
258
- "program",
259
- "id"
260
- ],
261
- "additionalProperties": false,
262
- "description": "A deterministic typed-argv test command used as a verification gate."
263
- },
264
- "default": [],
265
- "description": "Deterministic test commands frozen into the spec."
266
- },
267
- "tasks": {
268
- "type": "array",
269
- "items": {
270
- "type": "object",
271
- "properties": {
272
- "id": {
273
- "type": "string",
274
- "minLength": 1,
275
- "description": "Task id."
276
- },
277
- "title": {
278
- "type": "string",
279
- "description": "Human-readable task title."
280
- },
281
- "depends_on": {
282
- "type": "array",
283
- "items": {
284
- "type": "string",
285
- "minLength": 1,
286
- "description": "Non-empty identifier string."
287
- },
288
- "default": [],
289
- "description": "Ids of tasks that must complete first."
290
- },
291
- "done": {
292
- "type": "boolean",
293
- "default": false,
294
- "description": "Whether the task has been completed."
295
- }
296
- },
297
- "required": [
298
- "id",
299
- "title"
300
- ],
301
- "additionalProperties": false,
302
- "description": "A dependency-ordered task in the implementation checklist."
303
- },
304
- "default": [],
305
- "description": "Dependency-ordered implementation checklist."
306
- },
307
- "open_questions": {
308
- "type": "array",
309
- "items": {
310
- "type": "object",
311
- "properties": {
312
- "id": {
313
- "type": "string",
314
- "minLength": 1,
315
- "description": "Clarification id."
316
- },
317
- "claim": {
318
- "type": "string",
319
- "description": "The ambiguous claim or open question that needs resolution."
320
- },
321
- "status": {
322
- "type": "string",
323
- "enum": [
324
- "open",
325
- "resolved"
326
- ],
327
- "default": "open",
328
- "description": "Whether the ambiguity is still open or has been resolved."
329
- },
330
- "resolution": {
331
- "type": [
332
- "string",
333
- "null"
334
- ],
335
- "default": null,
336
- "description": "How the ambiguity was resolved; null while open."
337
- }
338
- },
339
- "required": [
340
- "id",
341
- "claim"
342
- ],
343
- "additionalProperties": false,
344
- "description": "An explicit unresolved ambiguity (NEEDS_CLARIFICATION); the interview refuses to freeze while any is open."
345
- },
346
- "default": [],
347
- "description": "Unresolved ambiguities; must all be resolved before freezing."
348
- },
349
- "interview": {
350
- "type": "object",
351
- "properties": {
352
- "questions": {
353
- "type": "array",
354
- "items": {
355
- "type": "object",
356
- "properties": {
357
- "id": {
358
- "type": "string",
359
- "minLength": 1,
360
- "description": "Question id."
361
- },
362
- "tier": {
363
- "type": "integer",
364
- "minimum": 0,
365
- "default": 0,
366
- "description": "Hierarchical depth of the question (0 = foundational)."
367
- },
368
- "prompt": {
369
- "type": "string",
370
- "description": "The question text shown to the user."
371
- },
372
- "kind": {
373
- "type": "string",
374
- "enum": [
375
- "single",
376
- "multi",
377
- "text"
378
- ],
379
- "description": "Answer shape of an interview question: single choice, multiple choice, or free text.",
380
- "default": "single"
381
- },
382
- "options": {
383
- "type": "array",
384
- "items": {
385
- "type": "object",
386
- "properties": {
387
- "id": {
388
- "type": "string",
389
- "minLength": 1,
390
- "description": "Option id."
391
- },
392
- "label": {
393
- "type": "string",
394
- "description": "Human-readable option label."
395
- }
396
- },
397
- "required": [
398
- "id",
399
- "label"
400
- ],
401
- "additionalProperties": false,
402
- "description": "One selectable option of an interview question."
403
- },
404
- "default": [],
405
- "description": "Selectable options; empty for pure free-text questions."
406
- },
407
- "allow_text": {
408
- "type": "boolean",
409
- "default": false,
410
- "description": "Whether free-text is accepted in addition to or instead of options."
411
- },
412
- "rationale": {
413
- "type": "string",
414
- "description": "Why this question matters for the spec."
415
- }
416
- },
417
- "required": [
418
- "id",
419
- "prompt"
420
- ],
421
- "additionalProperties": false,
422
- "description": "One quiz card of the spec interview."
423
- },
424
- "default": [],
425
- "description": "Questions asked during the interview."
426
- },
427
- "answers": {
428
- "type": "array",
429
- "items": {
430
- "type": "object",
431
- "properties": {
432
- "question_id": {
433
- "type": "string",
434
- "minLength": 1,
435
- "description": "Id of the question being answered."
436
- },
437
- "option_ids": {
438
- "type": "array",
439
- "items": {
440
- "$ref": "#/definitions/SpecPack/properties/tasks/items/properties/depends_on/items"
441
- },
442
- "default": [],
443
- "description": "Ids of the selected options."
444
- },
445
- "text": {
446
- "type": [
447
- "string",
448
- "null"
449
- ],
450
- "default": null,
451
- "description": "Free-text answer; null when only options were selected."
452
- }
453
- },
454
- "required": [
455
- "question_id"
456
- ],
457
- "additionalProperties": false,
458
- "description": "The user's answer to one interview question."
459
- },
460
- "default": [],
461
- "description": "The user's answers."
462
- }
463
- },
464
- "additionalProperties": false,
465
- "default": {
466
- "questions": [],
467
- "answers": []
468
- },
469
- "description": "The clarify-quiz transcript this spec was built from."
470
- }
471
- },
472
- "required": [
473
- "schema_version",
474
- "id",
475
- "created_at",
476
- "intent"
477
- ],
478
- "additionalProperties": false,
479
- "description": "The frozen, versioned, diffable specification produced by the spec interview; the SSOT a run is held to, mapping deterministically into a TaskContract."
480
- }
481
- },
482
- "$schema": "http://json-schema.org/draft-07/schema#"
483
- }