@claudexor/schema 4.8.2 → 5.0.2

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 (195) hide show
  1. package/dist/account-resources.d.ts +325 -56
  2. package/dist/account-resources.d.ts.map +1 -1
  3. package/dist/account-resources.js +35 -5
  4. package/dist/account-resources.js.map +1 -1
  5. package/dist/account-routing-evidence.d.ts +253 -45
  6. package/dist/account-routing-evidence.d.ts.map +1 -1
  7. package/dist/account-target.d.ts +19 -5
  8. package/dist/account-target.d.ts.map +1 -1
  9. package/dist/account-target.js +14 -1
  10. package/dist/account-target.js.map +1 -1
  11. package/dist/agent-capabilities.d.ts +183 -0
  12. package/dist/agent-capabilities.d.ts.map +1 -1
  13. package/dist/agent-capabilities.js +2 -0
  14. package/dist/agent-capabilities.js.map +1 -1
  15. package/dist/budget.d.ts +3 -0
  16. package/dist/budget.d.ts.map +1 -1
  17. package/dist/budget.js +5 -1
  18. package/dist/budget.js.map +1 -1
  19. package/dist/capture-inventory.d.ts +60 -0
  20. package/dist/capture-inventory.d.ts.map +1 -0
  21. package/dist/capture-inventory.js +57 -0
  22. package/dist/capture-inventory.js.map +1 -0
  23. package/dist/control-harness-list.d.ts +102 -18
  24. package/dist/control-harness-list.d.ts.map +1 -1
  25. package/dist/control-harness-models.d.ts +299 -6
  26. package/dist/control-harness-models.d.ts.map +1 -1
  27. package/dist/control-harness-models.js +12 -3
  28. package/dist/control-harness-models.js.map +1 -1
  29. package/dist/control-operation-responses.d.ts +606 -23
  30. package/dist/control-operation-responses.d.ts.map +1 -1
  31. package/dist/control-operation-responses.js +3 -0
  32. package/dist/control-operation-responses.js.map +1 -1
  33. package/dist/control-run-detail.d.ts +1178 -72
  34. package/dist/control-run-detail.d.ts.map +1 -1
  35. package/dist/control-run-event-part.d.ts +3 -3
  36. package/dist/control-run-event-part.js +1 -1
  37. package/dist/control-run-event-part.js.map +1 -1
  38. package/dist/control-run-failure.d.ts +276 -12
  39. package/dist/control-run-failure.d.ts.map +1 -1
  40. package/dist/control-run-failure.js +54 -16
  41. package/dist/control-run-failure.js.map +1 -1
  42. package/dist/control-run-message.js +1 -1
  43. package/dist/control-run-message.js.map +1 -1
  44. package/dist/control-thread-apply.d.ts +165 -0
  45. package/dist/control-thread-apply.d.ts.map +1 -1
  46. package/dist/control-timeline.d.ts.map +1 -1
  47. package/dist/control-timeline.js +7 -3
  48. package/dist/control-timeline.js.map +1 -1
  49. package/dist/control.d.ts +383 -42
  50. package/dist/control.d.ts.map +1 -1
  51. package/dist/control.js +9 -5
  52. package/dist/control.js.map +1 -1
  53. package/dist/credential-profile-snapshot.d.ts +506 -90
  54. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  55. package/dist/decision.d.ts +9 -9
  56. package/dist/decision.d.ts.map +1 -1
  57. package/dist/decision.js +4 -0
  58. package/dist/decision.js.map +1 -1
  59. package/dist/delivery.d.ts +162 -0
  60. package/dist/delivery.d.ts.map +1 -1
  61. package/dist/delivery.js +32 -0
  62. package/dist/delivery.js.map +1 -1
  63. package/dist/events.d.ts +7 -6
  64. package/dist/events.d.ts.map +1 -1
  65. package/dist/events.js +15 -8
  66. package/dist/events.js.map +1 -1
  67. package/dist/git-result.d.ts +99 -0
  68. package/dist/git-result.d.ts.map +1 -0
  69. package/dist/git-result.js +80 -0
  70. package/dist/git-result.js.map +1 -0
  71. package/dist/harness-model.d.ts +89 -0
  72. package/dist/harness-model.d.ts.map +1 -1
  73. package/dist/harness-model.js +83 -0
  74. package/dist/harness-model.js.map +1 -1
  75. package/dist/harness.d.ts +353 -35
  76. package/dist/harness.d.ts.map +1 -1
  77. package/dist/harness.js +4 -19
  78. package/dist/harness.js.map +1 -1
  79. package/dist/index.d.ts +5 -0
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +5 -0
  82. package/dist/index.js.map +1 -1
  83. package/dist/mcp-run-result.d.ts +620 -51
  84. package/dist/mcp-run-result.d.ts.map +1 -1
  85. package/dist/mcp-run-result.js +45 -5
  86. package/dist/mcp-run-result.js.map +1 -1
  87. package/dist/mcp-run-wait.d.ts +7 -7
  88. package/dist/primitives.d.ts.map +1 -1
  89. package/dist/primitives.js +3 -2
  90. package/dist/primitives.js.map +1 -1
  91. package/dist/project.d.ts +45 -1
  92. package/dist/project.d.ts.map +1 -1
  93. package/dist/project.js +26 -1
  94. package/dist/project.js.map +1 -1
  95. package/dist/quota-read.d.ts +6 -3
  96. package/dist/quota-read.d.ts.map +1 -1
  97. package/dist/quota-read.js +7 -1
  98. package/dist/quota-read.js.map +1 -1
  99. package/dist/quota-scope.d.ts +29 -0
  100. package/dist/quota-scope.d.ts.map +1 -0
  101. package/dist/quota-scope.js +95 -0
  102. package/dist/quota-scope.js.map +1 -0
  103. package/dist/rate-limit.d.ts +3 -0
  104. package/dist/rate-limit.d.ts.map +1 -1
  105. package/dist/rate-limit.js +5 -1
  106. package/dist/rate-limit.js.map +1 -1
  107. package/dist/raw.d.ts +223 -1
  108. package/dist/raw.d.ts.map +1 -1
  109. package/dist/raw.js +86 -0
  110. package/dist/raw.js.map +1 -1
  111. package/dist/readiness.d.ts +87 -18
  112. package/dist/readiness.d.ts.map +1 -1
  113. package/dist/readiness.js +7 -6
  114. package/dist/readiness.js.map +1 -1
  115. package/dist/route-health.d.ts +303 -0
  116. package/dist/route-health.d.ts.map +1 -0
  117. package/dist/route-health.js +71 -0
  118. package/dist/route-health.js.map +1 -0
  119. package/dist/run-continuity.d.ts +3 -0
  120. package/dist/run-continuity.d.ts.map +1 -1
  121. package/dist/run-continuity.js +4 -0
  122. package/dist/run-continuity.js.map +1 -1
  123. package/dist/run-facts.d.ts +5 -5
  124. package/dist/run-facts.d.ts.map +1 -1
  125. package/dist/run-facts.js +1 -0
  126. package/dist/run-facts.js.map +1 -1
  127. package/dist/setup-login.d.ts +1 -1
  128. package/dist/setup-login.js +1 -1
  129. package/dist/setup.d.ts +1 -1
  130. package/dist/setup.js +1 -1
  131. package/dist/status-projection.d.ts.map +1 -1
  132. package/dist/status-projection.js +3 -0
  133. package/dist/status-projection.js.map +1 -1
  134. package/dist/telemetry.d.ts +239 -7
  135. package/dist/telemetry.d.ts.map +1 -1
  136. package/dist/telemetry.js +4 -2
  137. package/dist/telemetry.js.map +1 -1
  138. package/dist/thread-history.d.ts +1109 -161
  139. package/dist/thread-history.d.ts.map +1 -1
  140. package/dist/thread-history.js +1 -1
  141. package/dist/thread-history.js.map +1 -1
  142. package/dist/tool-ref.d.ts +94 -3
  143. package/dist/tool-ref.d.ts.map +1 -1
  144. package/dist/tool-ref.js +98 -6
  145. package/dist/tool-ref.js.map +1 -1
  146. package/dist/workspace-preparation.d.ts +54 -0
  147. package/dist/workspace-preparation.d.ts.map +1 -0
  148. package/dist/workspace-preparation.js +59 -0
  149. package/dist/workspace-preparation.js.map +1 -0
  150. package/generated/AgentCapabilityCatalog.schema.json +54 -0
  151. package/generated/BudgetObservation.schema.json +8 -1
  152. package/generated/ControlAccountResetResponse.schema.json +60 -1
  153. package/generated/ControlAccountResourcesFreshnessResponse.schema.json +46 -2
  154. package/generated/ControlAccountResourcesResponse.schema.json +46 -2
  155. package/generated/ControlApplyCheckResponse.schema.json +47 -0
  156. package/generated/ControlCredentialProfilesQueryResponse.schema.json +105 -4
  157. package/generated/ControlCredentialProfilesResourcesResponse.schema.json +105 -4
  158. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +59 -2
  159. package/generated/ControlDeliveryResponse.schema.json +154 -0
  160. package/generated/ControlHarnessAccountCatalog.schema.json +13 -0
  161. package/generated/ControlHarnessAccountModelsResponse.schema.json +13 -0
  162. package/generated/ControlHarnessListResponse.schema.json +59 -2
  163. package/generated/ControlHarnessModelsQueryResponse.schema.json +97 -51
  164. package/generated/ControlHarnessModelsResponse.schema.json +96 -0
  165. package/generated/ControlProjectRemoveReceipt.schema.json +36 -0
  166. package/generated/ControlQuotaQueryResponse.schema.json +46 -2
  167. package/generated/ControlQuotaReadRequest.schema.json +4 -0
  168. package/generated/ControlQuotaRefreshRequest.schema.json +12 -3
  169. package/generated/ControlRouteHealth.schema.json +202 -0
  170. package/generated/ControlRunDetail.schema.json +344 -5
  171. package/generated/ControlRunEventPart.schema.json +4 -2
  172. package/generated/ControlRunListResponse.schema.json +341 -2
  173. package/generated/ControlRunMessageRequest.schema.json +1 -1
  174. package/generated/ControlRunSummary.schema.json +341 -2
  175. package/generated/ControlThreadApplyResponse.schema.json +154 -0
  176. package/generated/ControlThreadDetail.schema.json +1 -0
  177. package/generated/DecisionRecord.schema.json +1 -0
  178. package/generated/HarnessEvent.schema.json +189 -5
  179. package/generated/HarnessManifest.schema.json +57 -0
  180. package/generated/HarnessModel.schema.json +13 -0
  181. package/generated/HarnessStatusDto.schema.json +59 -2
  182. package/generated/JournaledRunCreatedPayload.schema.json +2 -2
  183. package/generated/McpAccountsToolResult.schema.json +105 -4
  184. package/generated/McpRunHandleResult.schema.json +279 -2
  185. package/generated/McpRunToolResult.schema.json +269 -0
  186. package/generated/McpRunWaitResult.schema.json +3 -1
  187. package/generated/RawContextPacket.schema.json +98 -0
  188. package/generated/RunContinuityReceipt.schema.json +8 -0
  189. package/generated/RunEvent.schema.json +3 -1
  190. package/generated/RunFacts.schema.json +1 -0
  191. package/generated/RunFailure.schema.json +201 -0
  192. package/generated/RunTelemetry.schema.json +123 -2
  193. package/generated/ThreadHistoryPage.schema.json +203 -1
  194. package/generated/WorkspacePreparedPayload.schema.json +67 -0
  195. package/package.json +2 -2
@@ -39,6 +39,42 @@
39
39
  "type": "string",
40
40
  "const": "snapshot",
41
41
  "description": "How the live/queued-run fence was evaluated. Always 'snapshot': the daemon reads its in-process activity projection and removes the project in the same synchronous turn, with no await between the snapshot and registry/partition mutation."
42
+ },
43
+ "purgedThreads": {
44
+ "type": "array",
45
+ "items": {
46
+ "type": "object",
47
+ "properties": {
48
+ "threadId": {
49
+ "type": "string",
50
+ "minLength": 1,
51
+ "description": "The thread that was in the project's trash and is now purged."
52
+ },
53
+ "cleanup": {
54
+ "type": "string",
55
+ "enum": [
56
+ "completed",
57
+ "pending"
58
+ ],
59
+ "description": "completed: every directory the thread purge owns is deleted. pending: the purge is committed but that deletion did not finish; the engine retries it when the daemon next starts."
60
+ },
61
+ "cleanupError": {
62
+ "type": [
63
+ "string",
64
+ "null"
65
+ ],
66
+ "description": "Why the deletion did not finish; null when cleanup completed."
67
+ }
68
+ },
69
+ "required": [
70
+ "threadId",
71
+ "cleanup",
72
+ "cleanupError"
73
+ ],
74
+ "additionalProperties": false,
75
+ "description": "A trashed thread purged together with its project."
76
+ },
77
+ "description": "Present only when the request opted in with trashedThreads=purge: every thread that was in the project's trash, purged in the same store transaction that retired the project. Absent on a default removal."
42
78
  }
43
79
  },
44
80
  "required": [
@@ -406,8 +406,16 @@
406
406
  "minLength": 1
407
407
  },
408
408
  "profile_id": {
409
- "type": "string",
410
- "minLength": 1
409
+ "anyOf": [
410
+ {
411
+ "type": "string",
412
+ "minLength": 1
413
+ },
414
+ {
415
+ "type": "null"
416
+ }
417
+ ],
418
+ "description": "Registered account id; null names the harness's default API-key route, which is not an account."
411
419
  }
412
420
  },
413
421
  "required": [
@@ -416,6 +424,11 @@
416
424
  ],
417
425
  "additionalProperties": false
418
426
  },
427
+ "credential_fingerprint": {
428
+ "type": "string",
429
+ "pattern": "^[0-9a-f]{16}$",
430
+ "description": "Non-secret identity of the API key this row was read with. Present only on API-key rows; a row is published only while it matches the key requests would send now."
431
+ },
419
432
  "balances": {
420
433
  "type": "object",
421
434
  "properties": {
@@ -647,6 +660,37 @@
647
660
  "string",
648
661
  "null"
649
662
  ]
663
+ },
664
+ "capped": {
665
+ "type": [
666
+ "boolean",
667
+ "null"
668
+ ],
669
+ "description": "true: the provider reports a cap in limit; false: it reports no cap, so a null limit is not unknown and not unlimited money; null or absent: not established."
670
+ },
671
+ "remaining": {
672
+ "type": [
673
+ "string",
674
+ "null"
675
+ ],
676
+ "description": "Provider-reported amount left under limit in the current window, with its sign; null when not reported."
677
+ },
678
+ "window": {
679
+ "anyOf": [
680
+ {
681
+ "type": "string",
682
+ "enum": [
683
+ "day",
684
+ "week",
685
+ "month",
686
+ "lifetime"
687
+ ]
688
+ },
689
+ {
690
+ "type": "null"
691
+ }
692
+ ],
693
+ "description": "Provider calendar window that used counts (UTC); when capped, limit resets at its end and lifetime never resets. resets_at is set only from a provider-reported instant."
650
694
  }
651
695
  },
652
696
  "required": [
@@ -24,6 +24,10 @@
24
24
  "constraint_freshness",
25
25
  "resources_freshness"
26
26
  ]
27
+ },
28
+ "includeApiKeys": {
29
+ "type": "boolean",
30
+ "description": "With a resources view, add API-key rows: registered API-key accounts and each harness's default API-key route (target.profile_id null)."
27
31
  }
28
32
  },
29
33
  "additionalProperties": false,
@@ -12,15 +12,24 @@
12
12
  "minLength": 1
13
13
  },
14
14
  "profile_id": {
15
- "type": "string",
16
- "minLength": 1
15
+ "anyOf": [
16
+ {
17
+ "type": "string",
18
+ "minLength": 1
19
+ },
20
+ {
21
+ "type": "null"
22
+ }
23
+ ],
24
+ "description": "Registered account id; null names the harness's default API-key route, which is not an account."
17
25
  }
18
26
  },
19
27
  "required": [
20
28
  "harness",
21
29
  "profile_id"
22
30
  ],
23
- "additionalProperties": false
31
+ "additionalProperties": false,
32
+ "description": "Exact refresh subject. A null profile_id (the default API-key route) and registered API-key accounts require includeApiKeys=true."
24
33
  },
25
34
  "requestKind": {
26
35
  "type": "string",
@@ -0,0 +1,202 @@
1
+ {
2
+ "$ref": "#/definitions/ControlRouteHealth",
3
+ "definitions": {
4
+ "ControlRouteHealth": {
5
+ "type": "object",
6
+ "properties": {
7
+ "windowDays": {
8
+ "type": "number",
9
+ "const": 7,
10
+ "description": "Length of the fixed window in days."
11
+ },
12
+ "from": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "Start of the window: generatedAt minus windowDays. The window holds the terminal product runs created at or after it."
16
+ },
17
+ "generatedAt": {
18
+ "type": "string",
19
+ "minLength": 1,
20
+ "description": "When the daemon computed this answer; nothing is stored."
21
+ },
22
+ "scannedRuns": {
23
+ "type": "integer",
24
+ "minimum": 0,
25
+ "description": "Terminal product runs read inside the window; the sum of every route's runs."
26
+ },
27
+ "complete": {
28
+ "type": "boolean",
29
+ "description": "True when the scan reached the window start or the end of the retained run records (the engine keeps terminal records for at least thirty days, longer than the window); false when it stopped early."
30
+ },
31
+ "incompleteReason": {
32
+ "anyOf": [
33
+ {
34
+ "type": "string",
35
+ "enum": [
36
+ "scan_bound"
37
+ ]
38
+ },
39
+ {
40
+ "type": "null"
41
+ }
42
+ ],
43
+ "description": "Why the scan stopped early: scan_bound means the fixed newest-first record bound was reached inside the window, so older runs of the window are not counted. Null when complete."
44
+ },
45
+ "routes": {
46
+ "type": "array",
47
+ "items": {
48
+ "type": "object",
49
+ "properties": {
50
+ "harnessId": {
51
+ "type": "string",
52
+ "minLength": 1,
53
+ "description": "Harness of the route: the run's settled route harness, else its failure's harness, else its primary harness, else unknown."
54
+ },
55
+ "access": {
56
+ "type": "string",
57
+ "enum": [
58
+ "readonly",
59
+ "workspace_write",
60
+ "full",
61
+ "inherit_native",
62
+ "unknown"
63
+ ],
64
+ "description": "Effective access profile the engine enforced; unknown when the run recorded none. The retired external_sandbox_full counts as full."
65
+ },
66
+ "runs": {
67
+ "type": "integer",
68
+ "minimum": 0,
69
+ "description": "Terminal product runs of the route created inside the window; always succeeded + failed + cancelled + other."
70
+ },
71
+ "succeeded": {
72
+ "type": "integer",
73
+ "minimum": 0,
74
+ "description": "Runs whose lifecycle ended succeeded."
75
+ },
76
+ "failed": {
77
+ "type": "integer",
78
+ "minimum": 0,
79
+ "description": "Runs whose lifecycle ended failed."
80
+ },
81
+ "cancelled": {
82
+ "type": "integer",
83
+ "minimum": 0,
84
+ "description": "Runs whose lifecycle ended cancelled or interrupted."
85
+ },
86
+ "other": {
87
+ "type": "integer",
88
+ "minimum": 0,
89
+ "description": "Runs in any other terminal lifecycle."
90
+ },
91
+ "topFailures": {
92
+ "type": "array",
93
+ "items": {
94
+ "type": "object",
95
+ "properties": {
96
+ "category": {
97
+ "type": "string",
98
+ "enum": [
99
+ "validation",
100
+ "project",
101
+ "auth",
102
+ "harness_unavailable",
103
+ "harness_error",
104
+ "config_error",
105
+ "budget",
106
+ "policy",
107
+ "cancelled",
108
+ "internal",
109
+ "unknown"
110
+ ],
111
+ "description": "Typed failure category shared by every run in the group; unknown when the run left no typed failure record."
112
+ },
113
+ "code": {
114
+ "anyOf": [
115
+ {
116
+ "type": "string",
117
+ "enum": [
118
+ "finite_zero",
119
+ "hard_cap",
120
+ "estimate_headroom",
121
+ "unknown_paid_in_flight",
122
+ "budget_overshoot",
123
+ "cost_unverifiable",
124
+ "delegation_child_drain_timeout",
125
+ "subscription_window_exhausted",
126
+ "credential_pool_exhausted",
127
+ "input_too_large",
128
+ "raw_context_mandatory_unavailable",
129
+ "raw_context_exceeds_window",
130
+ "model_catalog_unavailable",
131
+ "vendor_cli_too_old",
132
+ "credential_source_unconfirmed",
133
+ "delegated_home_unavailable",
134
+ "delegated_confinement_unavailable",
135
+ "delegated_evidence_incomplete",
136
+ "access_profile_incompatible",
137
+ "auxiliary_writable_roots_unsupported",
138
+ "retired_access_profile"
139
+ ],
140
+ "description": "Machine-readable failure sub-code within a RunFailure category, including historical delegated-run failures and active access-profile refusals."
141
+ },
142
+ {
143
+ "type": "null"
144
+ }
145
+ ],
146
+ "description": "Failure sub-code shared by the group; null when the failures carried none."
147
+ },
148
+ "message": {
149
+ "type": "string",
150
+ "maxLength": 160,
151
+ "description": "First line of the failures' display-safe message, redacted and cut to 160 characters; empty when the run left no message."
152
+ },
153
+ "count": {
154
+ "type": "integer",
155
+ "exclusiveMinimum": 0,
156
+ "description": "Failed runs of the route in this group."
157
+ }
158
+ },
159
+ "required": [
160
+ "category",
161
+ "code",
162
+ "message",
163
+ "count"
164
+ ],
165
+ "additionalProperties": false,
166
+ "description": "One group of a route's failed runs, keyed by category, code and message."
167
+ },
168
+ "maxItems": 3,
169
+ "description": "At most three groups of the route's failed runs, most frequent first."
170
+ }
171
+ },
172
+ "required": [
173
+ "harnessId",
174
+ "access",
175
+ "runs",
176
+ "succeeded",
177
+ "failed",
178
+ "cancelled",
179
+ "other",
180
+ "topFailures"
181
+ ],
182
+ "additionalProperties": false,
183
+ "description": "Outcome counts of one route (harness x effective access) inside the window."
184
+ },
185
+ "description": "Every route with at least one run in the window, sorted by harnessId, then access."
186
+ }
187
+ },
188
+ "required": [
189
+ "windowDays",
190
+ "from",
191
+ "generatedAt",
192
+ "scannedRuns",
193
+ "complete",
194
+ "incompleteReason",
195
+ "routes"
196
+ ],
197
+ "additionalProperties": false,
198
+ "description": "Per-route run outcomes over the last seven days, computed on demand from retained run records. Facts only: no thresholds, no alarms."
199
+ }
200
+ },
201
+ "$schema": "http://json-schema.org/draft-07/schema#"
202
+ }