@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,264 +0,0 @@
1
- {
2
- "$ref": "#/definitions/OrchestratePlan",
3
- "definitions": {
4
- "OrchestratePlan": {
5
- "type": "object",
6
- "properties": {
7
- "tool_calls": {
8
- "type": "array",
9
- "items": {
10
- "anyOf": [
11
- {
12
- "type": "object",
13
- "properties": {
14
- "required": {
15
- "type": "boolean",
16
- "default": true,
17
- "description": "Whether parent success requires this step to succeed."
18
- },
19
- "tool": {
20
- "type": "string",
21
- "const": "start_run"
22
- },
23
- "prompt": {
24
- "type": "string",
25
- "minLength": 1,
26
- "description": "Prompt for the sub-run."
27
- },
28
- "mode": {
29
- "type": "string",
30
- "enum": [
31
- "ask",
32
- "plan",
33
- "audit",
34
- "agent",
35
- "orchestrate"
36
- ],
37
- "description": "Mode for the sub-run.",
38
- "default": "agent"
39
- },
40
- "harness": {
41
- "type": "string",
42
- "description": "Harness to run on; omitted = engine routing."
43
- },
44
- "why": {
45
- "type": "string",
46
- "default": "",
47
- "description": "Planner's reason for this step."
48
- }
49
- },
50
- "required": [
51
- "tool",
52
- "prompt"
53
- ],
54
- "additionalProperties": false,
55
- "description": "Start one isolated sub-run."
56
- },
57
- {
58
- "type": "object",
59
- "properties": {
60
- "required": {
61
- "$ref": "#/definitions/OrchestratePlan/properties/tool_calls/items/anyOf/0/properties/required"
62
- },
63
- "tool": {
64
- "type": "string",
65
- "const": "race"
66
- },
67
- "prompt": {
68
- "type": "string",
69
- "minLength": 1,
70
- "description": "Prompt raced across harnesses."
71
- },
72
- "n": {
73
- "type": "integer",
74
- "minimum": 2,
75
- "default": 2,
76
- "description": "Number of race candidates (one per harness)."
77
- },
78
- "why": {
79
- "type": "string",
80
- "default": "",
81
- "description": "Planner's reason for this step."
82
- }
83
- },
84
- "required": [
85
- "tool",
86
- "prompt"
87
- ],
88
- "additionalProperties": false,
89
- "description": "Race the prompt as a best-of-N run."
90
- },
91
- {
92
- "type": "object",
93
- "properties": {
94
- "required": {
95
- "$ref": "#/definitions/OrchestratePlan/properties/tool_calls/items/anyOf/0/properties/required"
96
- },
97
- "tool": {
98
- "type": "string",
99
- "const": "review"
100
- },
101
- "run_id": {
102
- "type": "string",
103
- "minLength": 1,
104
- "description": "Run to review."
105
- },
106
- "why": {
107
- "type": "string",
108
- "default": "",
109
- "description": "Planner's reason for this step."
110
- }
111
- },
112
- "required": [
113
- "tool",
114
- "run_id"
115
- ],
116
- "additionalProperties": false,
117
- "description": "Review an existing run."
118
- },
119
- {
120
- "type": "object",
121
- "properties": {
122
- "required": {
123
- "$ref": "#/definitions/OrchestratePlan/properties/tool_calls/items/anyOf/0/properties/required"
124
- },
125
- "tool": {
126
- "type": "string",
127
- "const": "status"
128
- },
129
- "run_id": {
130
- "type": "string",
131
- "minLength": 1,
132
- "description": "Run to inspect."
133
- },
134
- "why": {
135
- "type": "string",
136
- "default": "",
137
- "description": "Planner's reason for this step."
138
- }
139
- },
140
- "required": [
141
- "tool",
142
- "run_id"
143
- ],
144
- "additionalProperties": false,
145
- "description": "Read the status of an existing run."
146
- },
147
- {
148
- "type": "object",
149
- "properties": {
150
- "required": {
151
- "$ref": "#/definitions/OrchestratePlan/properties/tool_calls/items/anyOf/0/properties/required"
152
- },
153
- "tool": {
154
- "type": "string",
155
- "const": "answer_question"
156
- },
157
- "interaction_id": {
158
- "type": "string",
159
- "minLength": 1,
160
- "description": "Pending interaction to answer."
161
- },
162
- "answers": {
163
- "type": "array",
164
- "items": {
165
- "type": "object",
166
- "properties": {
167
- "question_id": {
168
- "type": "string",
169
- "minLength": 1,
170
- "description": "Id of the question being answered."
171
- },
172
- "selected_labels": {
173
- "type": "array",
174
- "items": {
175
- "type": "string"
176
- },
177
- "default": [],
178
- "description": "Labels of the selected options."
179
- },
180
- "free_text": {
181
- "type": [
182
- "string",
183
- "null"
184
- ],
185
- "default": null,
186
- "description": "Free-text answer; null when only options were selected."
187
- }
188
- },
189
- "required": [
190
- "question_id"
191
- ],
192
- "additionalProperties": false
193
- },
194
- "default": [],
195
- "description": "Answers, one per question."
196
- },
197
- "why": {
198
- "type": "string",
199
- "default": "",
200
- "description": "Planner's reason for this step."
201
- }
202
- },
203
- "required": [
204
- "tool",
205
- "interaction_id"
206
- ],
207
- "additionalProperties": false,
208
- "description": "Answer a pending interactive question of a sub-run."
209
- },
210
- {
211
- "type": "object",
212
- "properties": {
213
- "required": {
214
- "$ref": "#/definitions/OrchestratePlan/properties/tool_calls/items/anyOf/0/properties/required"
215
- },
216
- "tool": {
217
- "type": "string",
218
- "const": "apply"
219
- },
220
- "run_id": {
221
- "type": "string",
222
- "minLength": 1,
223
- "description": "Run whose work product to deliver."
224
- },
225
- "mode": {
226
- "type": "string",
227
- "enum": [
228
- "apply",
229
- "branch",
230
- "commit",
231
- "pr"
232
- ],
233
- "default": "apply",
234
- "description": "Delivery mode: apply to the tree, or as a branch, commit, or PR."
235
- },
236
- "why": {
237
- "type": "string",
238
- "default": "",
239
- "description": "Planner's reason for this step."
240
- }
241
- },
242
- "required": [
243
- "tool",
244
- "run_id"
245
- ],
246
- "additionalProperties": false,
247
- "description": "Deliver a run's work product to the project (the only live-tree-mutating tool)."
248
- }
249
- ],
250
- "description": "One concrete tool invocation in a planner plan, with per-tool typed args discriminated on `tool`."
251
- },
252
- "minItems": 1,
253
- "description": "Ordered tool invocations of the plan."
254
- }
255
- },
256
- "required": [
257
- "tool_calls"
258
- ],
259
- "additionalProperties": false,
260
- "description": "The typed orchestration plan extracted from the planner's report; persisted as final/orchestration.yaml."
261
- }
262
- },
263
- "$schema": "http://json-schema.org/draft-07/schema#"
264
- }
@@ -1,164 +0,0 @@
1
- {
2
- "$ref": "#/definitions/OrchestratePlanProgress",
3
- "definitions": {
4
- "OrchestratePlanProgress": {
5
- "type": "object",
6
- "properties": {
7
- "steps": {
8
- "type": "array",
9
- "items": {
10
- "type": "object",
11
- "properties": {
12
- "index": {
13
- "type": "integer",
14
- "minimum": 0,
15
- "description": "Position of the step in the plan."
16
- },
17
- "tool": {
18
- "type": "string",
19
- "enum": [
20
- "start_run",
21
- "race",
22
- "status",
23
- "answer_question",
24
- "apply",
25
- "review"
26
- ],
27
- "description": "Tool in the orchestrate planner's belt, mapping 1:1 onto engine entry points: start_run, race (best-of-N), status, answer_question, apply, and review."
28
- },
29
- "risk": {
30
- "type": "string",
31
- "enum": [
32
- "safe",
33
- "risky"
34
- ],
35
- "description": "Risk class of the step: safe (no live-tree mutation) or risky."
36
- },
37
- "status": {
38
- "type": "string",
39
- "enum": [
40
- "pending",
41
- "running",
42
- "done",
43
- "skipped",
44
- "blocked",
45
- "failed"
46
- ],
47
- "description": "Executor status of one plan step: pending, running, done, skipped, blocked (risky step awaiting a human), or failed."
48
- },
49
- "required": {
50
- "type": "boolean",
51
- "default": true
52
- },
53
- "terminal_status": {
54
- "anyOf": [
55
- {
56
- "type": "string",
57
- "enum": [
58
- "success",
59
- "no_op",
60
- "ungated",
61
- "review_not_run",
62
- "blocked",
63
- "failed",
64
- "interrupted_unknown",
65
- "cost_unverifiable",
66
- "exhausted_overshoot",
67
- "exhausted",
68
- "not_converged",
69
- "stuck_no_progress",
70
- "cancelled"
71
- ],
72
- "description": "Terminal status of a run, including truthful blocked, interrupted-unknown, cost-unverifiable, overshoot, exhaustion, non-convergence, failure, and cancellation outcomes."
73
- },
74
- {
75
- "type": "null"
76
- }
77
- ],
78
- "description": "Actual child/delivery terminal used by the parent outcome reducer.",
79
- "default": null
80
- },
81
- "terminal_source": {
82
- "anyOf": [
83
- {
84
- "type": "string",
85
- "enum": [
86
- "executor",
87
- "subrun",
88
- "review",
89
- "delivery",
90
- "policy",
91
- "budget"
92
- ]
93
- },
94
- {
95
- "type": "null"
96
- }
97
- ],
98
- "default": null,
99
- "description": "Authority that produced terminal_status."
100
- },
101
- "evidence_refs": {
102
- "type": "array",
103
- "items": {
104
- "type": "string",
105
- "minLength": 1
106
- },
107
- "default": [],
108
- "description": "Immutable run artifact or delivery receipt references."
109
- },
110
- "run_id": {
111
- "type": [
112
- "string",
113
- "null"
114
- ],
115
- "default": null,
116
- "description": "Sub-run id this step started/targeted, when known."
117
- },
118
- "detail": {
119
- "type": [
120
- "string",
121
- "null"
122
- ],
123
- "default": null,
124
- "description": "Human-readable step detail."
125
- }
126
- },
127
- "required": [
128
- "index",
129
- "tool",
130
- "risk",
131
- "status"
132
- ],
133
- "additionalProperties": false
134
- },
135
- "default": [],
136
- "description": "Per-step outcomes, in plan order."
137
- },
138
- "autonomy": {
139
- "type": "string",
140
- "enum": [
141
- "suggest",
142
- "auto_safe",
143
- "auto_full"
144
- ],
145
- "description": "How much the orchestrate planner may act without confirmation: suggest (user executes the plan), auto_safe (auto-runs only provably safe steps), auto_full (auto-runs everything)."
146
- },
147
- "stopped_reason": {
148
- "type": [
149
- "string",
150
- "null"
151
- ],
152
- "default": null,
153
- "description": "Set when the executor stopped early (first risky step under auto_safe, budget, abort)."
154
- }
155
- },
156
- "required": [
157
- "autonomy"
158
- ],
159
- "additionalProperties": false,
160
- "description": "Typed executor progress over a plan's tool calls, persisted as final/orchestration_progress.yaml and projected into run detail."
161
- }
162
- },
163
- "$schema": "http://json-schema.org/draft-07/schema#"
164
- }
@@ -1,73 +0,0 @@
1
- {
2
- "$ref": "#/definitions/SessionReboundLineage",
3
- "definitions": {
4
- "SessionReboundLineage": {
5
- "type": "object",
6
- "properties": {
7
- "thread_id": {
8
- "type": "string",
9
- "minLength": 1,
10
- "description": "Thread whose session was re-hosted."
11
- },
12
- "harness_id": {
13
- "type": "string",
14
- "minLength": 1,
15
- "description": "Harness the new session runs on."
16
- },
17
- "from_native_session_id": {
18
- "type": [
19
- "string",
20
- "null"
21
- ],
22
- "default": null,
23
- "description": "The vendor native session id being left behind (not a Claudexor id); null when none existed."
24
- },
25
- "to_session_id": {
26
- "anyOf": [
27
- {
28
- "type": "string",
29
- "minLength": 1,
30
- "description": "Non-empty identifier string."
31
- },
32
- {
33
- "type": "null"
34
- }
35
- ],
36
- "description": "New Claudexor session id; null when no new session was created.",
37
- "default": null
38
- },
39
- "summary": {
40
- "type": "string",
41
- "default": "",
42
- "description": "Carried-over conversation summary injected into the new session."
43
- },
44
- "reason": {
45
- "type": "string",
46
- "enum": [
47
- "quota_exhausted",
48
- "money_exhausted",
49
- "subscription_exhausted",
50
- "rate_limited",
51
- "harness_error",
52
- "stall",
53
- "web_evidence_unsatisfied",
54
- "fallback_model",
55
- "not_portable",
56
- "auth_unavailable",
57
- "readiness_preferred",
58
- "manual"
59
- ],
60
- "description": "Typed reason an auto-fallback (route/auth switch) or session re-host happened, driven by typed budget/quota signals and events, never by regex over prose.",
61
- "default": "not_portable"
62
- }
63
- },
64
- "required": [
65
- "thread_id",
66
- "harness_id"
67
- ],
68
- "additionalProperties": false,
69
- "description": "The lossy payload serialized when a turn cannot resume the native session in place (isolated candidates or re-hosting onto a different harness); carried by the session.rebound event."
70
- }
71
- },
72
- "$schema": "http://json-schema.org/draft-07/schema#"
73
- }