@claudexor/schema 3.20.1 → 3.22.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 (105) hide show
  1. package/dist/agent-capabilities.d.ts +1 -1
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +1 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/continuation-admission.d.ts +41 -0
  6. package/dist/continuation-admission.d.ts.map +1 -0
  7. package/dist/continuation-admission.js +136 -0
  8. package/dist/continuation-admission.js.map +1 -0
  9. package/dist/control-operation-responses.d.ts +352 -0
  10. package/dist/control-operation-responses.d.ts.map +1 -1
  11. package/dist/control-operation-responses.js +2 -0
  12. package/dist/control-operation-responses.js.map +1 -1
  13. package/dist/control-run-detail.d.ts +716 -0
  14. package/dist/control-run-detail.d.ts.map +1 -1
  15. package/dist/control.d.ts +315 -6
  16. package/dist/control.d.ts.map +1 -1
  17. package/dist/control.js +21 -3
  18. package/dist/control.js.map +1 -1
  19. package/dist/credential-profile-snapshot.d.ts +144 -0
  20. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  21. package/dist/credential-profile.d.ts +1 -1
  22. package/dist/credential-profile.js +1 -1
  23. package/dist/decision.d.ts +12 -0
  24. package/dist/decision.d.ts.map +1 -1
  25. package/dist/effort.d.ts +33 -12
  26. package/dist/effort.d.ts.map +1 -1
  27. package/dist/effort.js +43 -13
  28. package/dist/effort.js.map +1 -1
  29. package/dist/events.d.ts +4 -4
  30. package/dist/events.d.ts.map +1 -1
  31. package/dist/events.js +11 -0
  32. package/dist/events.js.map +1 -1
  33. package/dist/harness.d.ts +16 -9
  34. package/dist/harness.d.ts.map +1 -1
  35. package/dist/harness.js +3 -3
  36. package/dist/index.d.ts +3 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.js +3 -0
  39. package/dist/index.js.map +1 -1
  40. package/dist/mcp-run-result.d.ts +155 -0
  41. package/dist/mcp-run-result.d.ts.map +1 -1
  42. package/dist/mcp-run-result.js +38 -0
  43. package/dist/mcp-run-result.js.map +1 -1
  44. package/dist/quota.d.ts +252 -0
  45. package/dist/quota.d.ts.map +1 -1
  46. package/dist/quota.js +42 -17
  47. package/dist/quota.js.map +1 -1
  48. package/dist/raw.d.ts +1 -1
  49. package/dist/raw.d.ts.map +1 -1
  50. package/dist/raw.js +0 -1
  51. package/dist/raw.js.map +1 -1
  52. package/dist/run-continuation.d.ts +166 -0
  53. package/dist/run-continuation.d.ts.map +1 -0
  54. package/dist/run-continuation.js +65 -0
  55. package/dist/run-continuation.js.map +1 -0
  56. package/dist/run-continuity.d.ts +215 -0
  57. package/dist/run-continuity.d.ts.map +1 -0
  58. package/dist/run-continuity.js +170 -0
  59. package/dist/run-continuity.js.map +1 -0
  60. package/dist/run-facts.d.ts +7 -0
  61. package/dist/run-facts.d.ts.map +1 -1
  62. package/dist/status-projection.d.ts +8 -1
  63. package/dist/status-projection.d.ts.map +1 -1
  64. package/dist/status-projection.js +22 -1
  65. package/dist/status-projection.js.map +1 -1
  66. package/dist/telemetry.d.ts +33 -3
  67. package/dist/telemetry.d.ts.map +1 -1
  68. package/dist/telemetry.js +3 -3
  69. package/dist/telemetry.js.map +1 -1
  70. package/dist/work-report.d.ts +18 -4
  71. package/dist/work-report.d.ts.map +1 -1
  72. package/dist/work-report.js +26 -5
  73. package/dist/work-report.js.map +1 -1
  74. package/generated/AgentCapabilityCatalog.schema.json +1 -1
  75. package/generated/ControlCredentialProfilesQueryResponse.schema.json +21 -6
  76. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +21 -6
  77. package/generated/ControlHarnessListResponse.schema.json +1 -1
  78. package/generated/ControlHarnessSettingsPatch.schema.json +1 -1
  79. package/generated/ControlQuotaResponse.schema.json +20 -5
  80. package/generated/ControlRetainedEnvelope.schema.json +63 -0
  81. package/generated/ControlRunAgainDraft.schema.json +16 -0
  82. package/generated/ControlRunDetail.schema.json +398 -1
  83. package/generated/ControlRunListResponse.schema.json +398 -1
  84. package/generated/ControlRunStartRequest.schema.json +16 -0
  85. package/generated/ControlRunSummary.schema.json +398 -1
  86. package/generated/ControlSettingsSnapshot.schema.json +1 -1
  87. package/generated/ControlSettingsUpdateRequest.schema.json +1 -1
  88. package/generated/ControlThreadDetail.schema.json +14 -1
  89. package/generated/ControlThreadTurnRequest.schema.json +4 -0
  90. package/generated/DecisionRecord.schema.json +14 -1
  91. package/generated/EnvelopeCustody.schema.json +195 -0
  92. package/generated/GlobalConfig.schema.json +1 -1
  93. package/generated/HarnessEvent.schema.json +7 -2
  94. package/generated/HarnessManifest.schema.json +1 -1
  95. package/generated/HarnessStatusDto.schema.json +1 -1
  96. package/generated/McpRunHandleResult.schema.json +109 -1
  97. package/generated/McpRunToolResult.schema.json +14 -1
  98. package/generated/RunContinuityReceipt.schema.json +182 -0
  99. package/generated/RunEvent.schema.json +3 -1
  100. package/generated/RunFacts.schema.json +14 -1
  101. package/generated/RunResumable.schema.json +153 -0
  102. package/generated/RunTelemetry.schema.json +14 -1
  103. package/generated/SessionCapsule.schema.json +78 -0
  104. package/generated/TaskContract.schema.json +1 -1
  105. package/package.json +2 -2
@@ -0,0 +1,153 @@
1
+ {
2
+ "$ref": "#/definitions/RunResumable",
3
+ "definitions": {
4
+ "RunResumable": {
5
+ "type": "object",
6
+ "properties": {
7
+ "cause": {
8
+ "type": "string",
9
+ "enum": [
10
+ "vendor_limit",
11
+ "pool_exhausted",
12
+ "pinned_limit",
13
+ "transport",
14
+ "context_exhausted",
15
+ "wall_clock",
16
+ "cancelled",
17
+ "host_restart",
18
+ "input_required",
19
+ "other"
20
+ ],
21
+ "description": "Typed reason the previous process stopped: a vendor limit (next account eligible), the whole pool spent, a pinned account's limit, a transport death (crash, timeout, watchdog), context exhaustion, the wall-clock deadline, a cancel, a daemon/host restart, a model that asked for input, or another typed cause."
22
+ },
23
+ "resetsAt": {
24
+ "type": [
25
+ "string",
26
+ "null"
27
+ ],
28
+ "description": "When the spent vendor window reopens, only from a vendor signal; never fabricated."
29
+ },
30
+ "limitWindow": {
31
+ "type": [
32
+ "string",
33
+ "null"
34
+ ],
35
+ "description": "The vendor's own name for the spent window (e.g. five_hour, seven_day_opus), when known."
36
+ },
37
+ "limitEvidence": {
38
+ "anyOf": [
39
+ {
40
+ "type": "string",
41
+ "enum": [
42
+ "window",
43
+ "unspecified"
44
+ ],
45
+ "description": "window: the vendor named the spent window (a reset instant or a constraint id); unspecified: a typed limit without a window — a bare backoff frame is transport, not a limit."
46
+ },
47
+ {
48
+ "type": "null"
49
+ }
50
+ ],
51
+ "description": "window: the vendor named the spent window (a reset instant or a constraint id); unspecified: a typed limit without a window — a bare backoff frame is transport, not a limit."
52
+ },
53
+ "carriers": {
54
+ "type": "array",
55
+ "items": {
56
+ "type": "string",
57
+ "enum": [
58
+ "native",
59
+ "native_moved",
60
+ "packet"
61
+ ],
62
+ "description": "A continuity representation still available for a stopped run."
63
+ },
64
+ "description": "Continuity representations still available (NOT quota readiness; readiness is described by the limit facts)."
65
+ },
66
+ "limitCode": {
67
+ "type": [
68
+ "string",
69
+ "null"
70
+ ],
71
+ "description": "The typed vendor limit code that ended the work, when any."
72
+ },
73
+ "session": {
74
+ "anyOf": [
75
+ {
76
+ "type": "object",
77
+ "properties": {
78
+ "harness": {
79
+ "type": "string",
80
+ "minLength": 1,
81
+ "description": "Non-empty identifier string."
82
+ },
83
+ "nativeSessionId": {
84
+ "type": "string",
85
+ "minLength": 1
86
+ },
87
+ "holderProfileId": {
88
+ "anyOf": [
89
+ {
90
+ "$ref": "#/definitions/RunResumable/properties/session/anyOf/0/properties/harness"
91
+ },
92
+ {
93
+ "type": "null"
94
+ }
95
+ ],
96
+ "description": "Non-empty identifier string."
97
+ }
98
+ },
99
+ "required": [
100
+ "harness",
101
+ "nativeSessionId",
102
+ "holderProfileId"
103
+ ],
104
+ "additionalProperties": false
105
+ },
106
+ {
107
+ "type": "null"
108
+ }
109
+ ],
110
+ "description": "The native session a continuation can resume, when one exists."
111
+ },
112
+ "workspace": {
113
+ "type": "object",
114
+ "properties": {
115
+ "kind": {
116
+ "type": "string",
117
+ "enum": [
118
+ "in_place",
119
+ "retained_envelope",
120
+ "none"
121
+ ]
122
+ },
123
+ "root": {
124
+ "type": [
125
+ "string",
126
+ "null"
127
+ ]
128
+ }
129
+ },
130
+ "required": [
131
+ "kind",
132
+ "root"
133
+ ],
134
+ "additionalProperties": false,
135
+ "description": "Where the stopped work's tree is: the live root, a retained envelope, or gone."
136
+ }
137
+ },
138
+ "required": [
139
+ "cause",
140
+ "resetsAt",
141
+ "limitWindow",
142
+ "limitEvidence",
143
+ "carriers",
144
+ "limitCode",
145
+ "session",
146
+ "workspace"
147
+ ],
148
+ "additionalProperties": false,
149
+ "description": "Terminal facts of a stopped run that can be continued: cause, limit evidence, available carriers, the native session and the workspace."
150
+ }
151
+ },
152
+ "$schema": "http://json-schema.org/draft-07/schema#"
153
+ }
@@ -942,7 +942,7 @@
942
942
  "incomplete",
943
943
  "unverified"
944
944
  ],
945
- "description": "Folded work state: the WorkReport state, or unverified when no report was obtainable (transport unsupported / lane gated)."
945
+ "description": "Folded work state: the WorkReport state, or unverified when no valid report was obtained (transport unsupported / lane gated, or an instructed footer missing or broken)."
946
946
  },
947
947
  "source": {
948
948
  "type": "string",
@@ -998,6 +998,19 @@
998
998
  },
999
999
  "maxItems": 16,
1000
1000
  "description": "Carried through from a needs_input/incomplete WorkReport for honest disclosure."
1001
+ },
1002
+ "unverified_reason": {
1003
+ "type": "string",
1004
+ "enum": [
1005
+ "footer_missing",
1006
+ "footer_not_json",
1007
+ "footer_not_object",
1008
+ "report_missing",
1009
+ "report_malformed",
1010
+ "report_contradictory",
1011
+ "legacy_output_invalid"
1012
+ ],
1013
+ "description": "Present only with state unverified on a validated (instructed footer) source: the disclosed cause of the missing report."
1001
1014
  }
1002
1015
  },
1003
1016
  "required": [
@@ -0,0 +1,78 @@
1
+ {
2
+ "$ref": "#/definitions/SessionCapsule",
3
+ "definitions": {
4
+ "SessionCapsule": {
5
+ "type": "object",
6
+ "properties": {
7
+ "harness": {
8
+ "type": "string",
9
+ "minLength": 1,
10
+ "description": "Harness that owns the session."
11
+ },
12
+ "nativeSessionId": {
13
+ "type": "string",
14
+ "minLength": 1,
15
+ "description": "The vendor's own session/thread id."
16
+ },
17
+ "holderProfileId": {
18
+ "anyOf": [
19
+ {
20
+ "type": "string",
21
+ "minLength": 1,
22
+ "description": "Non-empty identifier string."
23
+ },
24
+ {
25
+ "type": "null"
26
+ }
27
+ ],
28
+ "description": "Credential profile whose store currently holds the session; null = the harness default store."
29
+ },
30
+ "file": {
31
+ "type": [
32
+ "string",
33
+ "null"
34
+ ],
35
+ "description": "Absolute path of the located history file (the holder); null until located."
36
+ },
37
+ "mtimeMs": {
38
+ "type": [
39
+ "number",
40
+ "null"
41
+ ],
42
+ "description": "Modification time of the located file (newest wins on a tie); null until located."
43
+ },
44
+ "sidecars": {
45
+ "type": "array",
46
+ "items": {
47
+ "type": "string"
48
+ },
49
+ "default": [],
50
+ "description": "Absolute paths of sibling state a move must carry (claude `<sid>/` tool-results and subagents; codex rollout parts)."
51
+ },
52
+ "cwd": {
53
+ "type": "string",
54
+ "description": "Working directory the session was created under."
55
+ },
56
+ "requestedModel": {
57
+ "type": [
58
+ "string",
59
+ "null"
60
+ ],
61
+ "description": "The model the spec requested; null = the harness default."
62
+ }
63
+ },
64
+ "required": [
65
+ "harness",
66
+ "nativeSessionId",
67
+ "holderProfileId",
68
+ "file",
69
+ "mtimeMs",
70
+ "cwd",
71
+ "requestedModel"
72
+ ],
73
+ "additionalProperties": false,
74
+ "description": "Durable per-attempt record of the native vendor session and its holder file."
75
+ }
76
+ },
77
+ "$schema": "http://json-schema.org/draft-07/schema#"
78
+ }
@@ -568,7 +568,7 @@
568
568
  "minLength": 1,
569
569
  "maxLength": 32,
570
570
  "pattern": "^[a-z0-9]+(?:[_-][a-z0-9]+)*$",
571
- "description": "Cross-harness reasoning-effort level as a lowercase slug (open vocabulary, mirroring the vendor contract); adapters advertise the levels they accept per model, ordered weakest to strongest by the vendor itself, and a shared normalizer passes advertised levels through, clamps inside the vendor order, and refuses levels the advertised ladder has never seen."
571
+ "description": "Cross-harness reasoning-effort level as a lowercase slug (open vocabulary, mirroring the vendor contract); adapters advertise the levels they accept per model, ordered weakest to strongest by the vendor itself, and a shared normalizer passes advertised levels through, clamps inside the vendor order, places a word the vendor order lacks by the shared preference order (none < minimal < low < medium < high < xhigh < max < ultra) onto an advertised level, and refuses words neither order places."
572
572
  },
573
573
  "default": {},
574
574
  "description": "Resolved harness-scoped reasoning-effort map for this run (harness id to effort), frozen so an Exact Retry replays the same effort instead of re-resolving current settings."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/schema",
3
- "version": "3.20.1",
3
+ "version": "3.22.0",
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": "3.20.1"
23
+ "@claudexor/util": "3.22.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",