@claudexor/schema 4.8.1 → 4.8.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 (51) hide show
  1. package/dist/control-gc.d.ts +377 -0
  2. package/dist/control-gc.d.ts.map +1 -1
  3. package/dist/control-gc.js +74 -1
  4. package/dist/control-gc.js.map +1 -1
  5. package/dist/control-run-detail.d.ts +15 -0
  6. package/dist/control-run-detail.d.ts.map +1 -1
  7. package/dist/control-timeline.d.ts +9 -0
  8. package/dist/control-timeline.d.ts.map +1 -1
  9. package/dist/control-timeline.js +13 -0
  10. package/dist/control-timeline.js.map +1 -1
  11. package/dist/control.d.ts +9 -0
  12. package/dist/control.d.ts.map +1 -1
  13. package/dist/control.js +5 -3
  14. package/dist/control.js.map +1 -1
  15. package/dist/daemon-status.d.ts +492 -0
  16. package/dist/daemon-status.d.ts.map +1 -1
  17. package/dist/daemon-status.js +22 -0
  18. package/dist/daemon-status.js.map +1 -1
  19. package/dist/harness-speech.d.ts +36 -0
  20. package/dist/harness-speech.d.ts.map +1 -0
  21. package/dist/harness-speech.js +27 -0
  22. package/dist/harness-speech.js.map +1 -0
  23. package/dist/harness.d.ts +18 -0
  24. package/dist/harness.d.ts.map +1 -1
  25. package/dist/harness.js +3 -2
  26. package/dist/harness.js.map +1 -1
  27. package/dist/index.d.ts +1 -0
  28. package/dist/index.d.ts.map +1 -1
  29. package/dist/index.js +1 -0
  30. package/dist/index.js.map +1 -1
  31. package/dist/run-observation.d.ts +6 -6
  32. package/dist/run-observation.d.ts.map +1 -1
  33. package/dist/run-observation.js +7 -1
  34. package/dist/run-observation.js.map +1 -1
  35. package/dist/task-group-runs.d.ts +1 -0
  36. package/dist/task-group-runs.d.ts.map +1 -1
  37. package/dist/task-group-runs.js +6 -3
  38. package/dist/task-group-runs.js.map +1 -1
  39. package/generated/ControlDaemonStatus.schema.json +112 -43
  40. package/generated/ControlGcLastResponse.schema.json +184 -0
  41. package/generated/ControlGcReceipt.schema.json +60 -1
  42. package/generated/ControlGcRequest.schema.json +4 -0
  43. package/generated/ControlRunDecisionResponse.schema.json +14 -0
  44. package/generated/ControlRunDetail.schema.json +32 -1
  45. package/generated/ControlRunListResponse.schema.json +1 -1
  46. package/generated/ControlRunSummary.schema.json +1 -1
  47. package/generated/ControlThreadDetail.schema.json +1 -1
  48. package/generated/HarnessEvent.schema.json +25 -0
  49. package/generated/RunWaitManyInput.schema.json +11 -4
  50. package/generated/ThreadHistoryPage.schema.json +1 -1
  51. package/package.json +2 -2
@@ -0,0 +1,184 @@
1
+ {
2
+ "$ref": "#/definitions/ControlGcLastResponse",
3
+ "definitions": {
4
+ "ControlGcLastResponse": {
5
+ "type": "object",
6
+ "properties": {
7
+ "last": {
8
+ "anyOf": [
9
+ {
10
+ "type": "object",
11
+ "properties": {
12
+ "outcome": {
13
+ "type": "string",
14
+ "enum": [
15
+ "completed",
16
+ "held",
17
+ "truncated",
18
+ "failed"
19
+ ]
20
+ },
21
+ "started_at": {
22
+ "type": "string"
23
+ },
24
+ "finished_at": {
25
+ "type": "string"
26
+ },
27
+ "freed_bytes": {
28
+ "type": "integer",
29
+ "minimum": 0
30
+ },
31
+ "kept": {
32
+ "type": "object",
33
+ "properties": {
34
+ "active": {
35
+ "type": "integer",
36
+ "minimum": 0,
37
+ "default": 0
38
+ },
39
+ "recent": {
40
+ "type": "integer",
41
+ "minimum": 0,
42
+ "default": 0
43
+ },
44
+ "young": {
45
+ "type": "integer",
46
+ "minimum": 0,
47
+ "default": 0
48
+ },
49
+ "referenced": {
50
+ "type": "integer",
51
+ "minimum": 0,
52
+ "default": 0
53
+ },
54
+ "actionable": {
55
+ "type": "integer",
56
+ "minimum": 0,
57
+ "default": 0
58
+ },
59
+ "unknown_state": {
60
+ "type": "integer",
61
+ "minimum": 0,
62
+ "default": 0
63
+ }
64
+ },
65
+ "additionalProperties": false,
66
+ "description": "Survivor counts per keep reason."
67
+ },
68
+ "held": {
69
+ "type": "object",
70
+ "properties": {
71
+ "roots": {
72
+ "type": "integer",
73
+ "minimum": 0,
74
+ "default": 0
75
+ },
76
+ "native_homes": {
77
+ "type": "integer",
78
+ "minimum": 0,
79
+ "default": 0,
80
+ "description": "Vetoed native homes only; unsupported adapters and unknown native entries are informational."
81
+ }
82
+ },
83
+ "additionalProperties": false,
84
+ "description": "Held project roots and vetoed native homes, separate from run counts."
85
+ },
86
+ "holds": {
87
+ "type": "array",
88
+ "items": {
89
+ "type": "object",
90
+ "properties": {
91
+ "class": {
92
+ "type": "string",
93
+ "enum": [
94
+ "missing_partition",
95
+ "unbound_active_registration",
96
+ "recovery_pending",
97
+ "namespace_unreadable",
98
+ "anchor_references_unreadable",
99
+ "references_changed",
100
+ "native_home_veto",
101
+ "cleanup_suppressed"
102
+ ]
103
+ },
104
+ "count": {
105
+ "type": "integer",
106
+ "exclusiveMinimum": 0
107
+ },
108
+ "example": {
109
+ "type": "string",
110
+ "maxLength": 160
111
+ },
112
+ "since": {
113
+ "type": "string"
114
+ }
115
+ },
116
+ "required": [
117
+ "class",
118
+ "count",
119
+ "example",
120
+ "since"
121
+ ],
122
+ "additionalProperties": false
123
+ },
124
+ "maxItems": 8
125
+ },
126
+ "errors": {
127
+ "type": "object",
128
+ "properties": {
129
+ "count": {
130
+ "type": "integer",
131
+ "minimum": 0
132
+ },
133
+ "first": {
134
+ "anyOf": [
135
+ {
136
+ "type": "string",
137
+ "maxLength": 512
138
+ },
139
+ {
140
+ "type": "null"
141
+ }
142
+ ]
143
+ }
144
+ },
145
+ "required": [
146
+ "count",
147
+ "first"
148
+ ],
149
+ "additionalProperties": false
150
+ }
151
+ },
152
+ "required": [
153
+ "outcome",
154
+ "started_at",
155
+ "finished_at",
156
+ "freed_bytes",
157
+ "kept",
158
+ "held",
159
+ "holds",
160
+ "errors"
161
+ ],
162
+ "additionalProperties": false,
163
+ "description": "One durable non-preview pass summary (at most 16 KiB), including outer cleanup failures."
164
+ },
165
+ {
166
+ "type": "null"
167
+ }
168
+ ],
169
+ "description": "Null when no readable non-preview pass has been recorded; reading never starts GC."
170
+ },
171
+ "diagnostic": {
172
+ "type": "string",
173
+ "maxLength": 512,
174
+ "description": "Why the stored summary could not be read; absent when no record exists or it is valid."
175
+ }
176
+ },
177
+ "required": [
178
+ "last"
179
+ ],
180
+ "additionalProperties": false
181
+ }
182
+ },
183
+ "$schema": "http://json-schema.org/draft-07/schema#"
184
+ }
@@ -116,6 +116,64 @@
116
116
  "additionalProperties": false,
117
117
  "description": "Why every surviving candidate survived."
118
118
  },
119
+ "held": {
120
+ "type": "object",
121
+ "properties": {
122
+ "roots": {
123
+ "type": "integer",
124
+ "minimum": 0,
125
+ "default": 0
126
+ },
127
+ "native_homes": {
128
+ "type": "integer",
129
+ "minimum": 0,
130
+ "default": 0,
131
+ "description": "Vetoed native homes only; unsupported adapters and unknown native entries are informational."
132
+ }
133
+ },
134
+ "additionalProperties": false,
135
+ "description": "Held project roots and vetoed native homes, separate from run counts.",
136
+ "default": {}
137
+ },
138
+ "holds": {
139
+ "type": "array",
140
+ "items": {
141
+ "type": "object",
142
+ "properties": {
143
+ "class": {
144
+ "type": "string",
145
+ "enum": [
146
+ "missing_partition",
147
+ "unbound_active_registration",
148
+ "recovery_pending",
149
+ "namespace_unreadable",
150
+ "anchor_references_unreadable",
151
+ "references_changed",
152
+ "native_home_veto",
153
+ "cleanup_suppressed"
154
+ ]
155
+ },
156
+ "count": {
157
+ "type": "integer",
158
+ "exclusiveMinimum": 0
159
+ },
160
+ "example": {
161
+ "type": "string"
162
+ }
163
+ },
164
+ "required": [
165
+ "class",
166
+ "count",
167
+ "example"
168
+ ],
169
+ "additionalProperties": false
170
+ },
171
+ "default": []
172
+ },
173
+ "truncated": {
174
+ "type": "boolean",
175
+ "default": false
176
+ },
119
177
  "deleted_reviews": {
120
178
  "type": "array",
121
179
  "items": {
@@ -215,7 +273,8 @@
215
273
  },
216
274
  "kept_unknown": {
217
275
  "type": "integer",
218
- "minimum": 0
276
+ "minimum": 0,
277
+ "description": "Unknown native entries preserved without a hold; informational only."
219
278
  },
220
279
  "truncated": {
221
280
  "type": "boolean"
@@ -9,6 +9,10 @@
9
9
  "default": false,
10
10
  "description": "Report what WOULD be deleted without touching disk."
11
11
  },
12
+ "retention_report": {
13
+ "type": "boolean",
14
+ "description": "Include typed holds, root/home counts and truncation; lockstep clients only."
15
+ },
12
16
  "model_payload_report": {
13
17
  "type": "boolean",
14
18
  "description": "Include exact model-purpose resource cleanup outcomes. Cleanup itself always runs; opt-in keeps older strict receipt readers compatible."
@@ -24,6 +24,20 @@
24
24
  "minLength": 1,
25
25
  "description": "New run id when the decision re-enqueues a turn (rerun_with_feedback)."
26
26
  },
27
+ "newJobId": {
28
+ "$ref": "#/definitions/ControlRunDecisionResponse/properties/newRunId",
29
+ "description": "Accepted job handle of the re-enqueued work, present even before its run binds."
30
+ },
31
+ "taskGroupId": {
32
+ "type": "string",
33
+ "format": "uuid",
34
+ "description": "Caller-generated UUID saved before launching the first member. Each job still needs its own idempotency key; the group grants no execution authority."
35
+ },
36
+ "storeId": {
37
+ "type": "string",
38
+ "minLength": 1,
39
+ "description": "Identity of the durable engine store that accepted this group member, stable across restarts."
40
+ },
27
41
  "message": {
28
42
  "type": "string",
29
43
  "description": "Human-readable detail."
@@ -1939,7 +1939,7 @@
1939
1939
  "null"
1940
1940
  ],
1941
1941
  "default": null,
1942
- "description": "GC-independent revert anchor."
1942
+ "description": "Run-owned revert anchor."
1943
1943
  },
1944
1944
  "revertable": {
1945
1945
  "type": "boolean",
@@ -3206,6 +3206,37 @@
3206
3206
  "default": false,
3207
3207
  "description": "True only for adapter-declared text fragments. Consecutive deltas of the same textKind and attempt may be concatenated verbatim; complete messages and other events remain separate."
3208
3208
  },
3209
+ "speechKey": {
3210
+ "type": [
3211
+ "string",
3212
+ "null"
3213
+ ],
3214
+ "default": null,
3215
+ "description": "Adapter-issued key of the observed text block this row belongs to (the harness event's speech.key); compare by equality only. Null when no block lifecycle was exactly observed; such rows stay separate."
3216
+ },
3217
+ "speechOp": {
3218
+ "anyOf": [
3219
+ {
3220
+ "type": "string",
3221
+ "enum": [
3222
+ "fragment",
3223
+ "complete",
3224
+ "abandoned"
3225
+ ],
3226
+ "description": "fragment: a verbatim streamed piece of the keyed text block; complete: the harness's complete text of that block (at most once per key); abandoned: the harness stated the block will never be completed (partial fragments stay as emitted)."
3227
+ },
3228
+ {
3229
+ "type": "null"
3230
+ }
3231
+ ],
3232
+ "description": "The harness event's speech.op on keyed rows; null otherwise.",
3233
+ "default": null
3234
+ },
3235
+ "textFinal": {
3236
+ "type": "boolean",
3237
+ "default": false,
3238
+ "description": "True only on the harness's typed final-answer text row (the harness event's final flag). It carries a speech key only when the adapter proved the link; otherwise it is a separate terminal result."
3239
+ },
3209
3240
  "severity": {
3210
3241
  "type": "string",
3211
3242
  "enum": [
@@ -1761,7 +1761,7 @@
1761
1761
  "null"
1762
1762
  ],
1763
1763
  "default": null,
1764
- "description": "GC-independent revert anchor."
1764
+ "description": "Run-owned revert anchor."
1765
1765
  },
1766
1766
  "revertable": {
1767
1767
  "type": "boolean",
@@ -1756,7 +1756,7 @@
1756
1756
  "null"
1757
1757
  ],
1758
1758
  "default": null,
1759
- "description": "GC-independent revert anchor."
1759
+ "description": "Run-owned revert anchor."
1760
1760
  },
1761
1761
  "revertable": {
1762
1762
  "type": "boolean",
@@ -502,7 +502,7 @@
502
502
  "null"
503
503
  ],
504
504
  "default": null,
505
- "description": "GC-independent revert anchor."
505
+ "description": "Run-owned revert anchor."
506
506
  },
507
507
  "revertable": {
508
508
  "type": "boolean",
@@ -492,6 +492,31 @@
492
492
  "type": "boolean",
493
493
  "description": "True on the harness's typed final-answer message (vendor terminal result); mid-run narration never sets it."
494
494
  },
495
+ "speech": {
496
+ "type": "object",
497
+ "properties": {
498
+ "key": {
499
+ "type": "string",
500
+ "minLength": 1,
501
+ "description": "Opaque adapter-issued key of one observed text block; equality only."
502
+ },
503
+ "op": {
504
+ "type": "string",
505
+ "enum": [
506
+ "fragment",
507
+ "complete",
508
+ "abandoned"
509
+ ],
510
+ "description": "fragment: a verbatim streamed piece of the keyed text block; complete: the harness's complete text of that block (at most once per key); abandoned: the harness stated the block will never be completed (partial fragments stay as emitted)."
511
+ }
512
+ },
513
+ "required": [
514
+ "key",
515
+ "op"
516
+ ],
517
+ "additionalProperties": false,
518
+ "description": "Adapter-issued speech identity of a text event (fragment/complete on messages, abandoned on a status event); absent when no block lifecycle was exactly observed. A typed final never carries it unless the adapter proves the link."
519
+ },
495
520
  "tool": {
496
521
  "type": "object",
497
522
  "properties": {
@@ -15,10 +15,17 @@
15
15
  "maxLength": 256
16
16
  },
17
17
  "seen": {
18
- "type": "string",
19
- "minLength": 43,
20
- "maxLength": 43,
21
- "pattern": "^[A-Za-z0-9_-]{43}$"
18
+ "anyOf": [
19
+ {
20
+ "type": "string",
21
+ "minLength": 43,
22
+ "maxLength": 43,
23
+ "pattern": "^[A-Za-z0-9_-]{43}$"
24
+ },
25
+ {
26
+ "type": "null"
27
+ }
28
+ ]
22
29
  }
23
30
  },
24
31
  "required": [
@@ -518,7 +518,7 @@
518
518
  "null"
519
519
  ],
520
520
  "default": null,
521
- "description": "GC-independent revert anchor."
521
+ "description": "Run-owned revert anchor."
522
522
  },
523
523
  "revertable": {
524
524
  "type": "boolean",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/schema",
3
- "version": "4.8.1",
3
+ "version": "4.8.2",
4
4
  "license": "MIT",
5
5
  "description": "Single source of truth for all Claudexor data shapes (Zod + generated JSON Schema).",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "dependencies": {
21
21
  "zod": "^4.6.5",
22
22
  "zod-to-json-schema": "^3.24.1",
23
- "@claudexor/util": "4.8.1"
23
+ "@claudexor/util": "4.8.2"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",