@claudexor/schema 3.10.4 → 3.11.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 (157) hide show
  1. package/dist/agent-capabilities.d.ts +24 -0
  2. package/dist/agent-capabilities.d.ts.map +1 -1
  3. package/dist/agent-capabilities.js +5 -0
  4. package/dist/agent-capabilities.js.map +1 -1
  5. package/dist/attempt-execution.d.ts +112 -0
  6. package/dist/attempt-execution.d.ts.map +1 -0
  7. package/dist/attempt-execution.js +15 -0
  8. package/dist/attempt-execution.js.map +1 -0
  9. package/dist/budget.d.ts +76 -0
  10. package/dist/budget.d.ts.map +1 -1
  11. package/dist/budget.js +12 -0
  12. package/dist/budget.js.map +1 -1
  13. package/dist/control-harness-list.d.ts +18 -0
  14. package/dist/control-harness-list.d.ts.map +1 -1
  15. package/dist/control-harness-models.d.ts +1042 -0
  16. package/dist/control-harness-models.d.ts.map +1 -0
  17. package/dist/control-harness-models.js +47 -0
  18. package/dist/control-harness-models.js.map +1 -0
  19. package/dist/control-operation-responses.d.ts +73 -21
  20. package/dist/control-operation-responses.d.ts.map +1 -1
  21. package/dist/control-operation-responses.js +6 -0
  22. package/dist/control-operation-responses.js.map +1 -1
  23. package/dist/control-run-detail.d.ts +270 -85
  24. package/dist/control-run-detail.d.ts.map +1 -1
  25. package/dist/control-run-detail.js +12 -1
  26. package/dist/control-run-detail.js.map +1 -1
  27. package/dist/control-run-execution.d.ts +6 -0
  28. package/dist/control-run-execution.d.ts.map +1 -1
  29. package/dist/control-run-execution.js +6 -0
  30. package/dist/control-run-execution.js.map +1 -1
  31. package/dist/control-thread-apply.d.ts +12 -0
  32. package/dist/control-thread-apply.d.ts.map +1 -1
  33. package/dist/control.d.ts +181 -146
  34. package/dist/control.d.ts.map +1 -1
  35. package/dist/control.js +25 -33
  36. package/dist/control.js.map +1 -1
  37. package/dist/credential-profile-snapshot.d.ts +36 -0
  38. package/dist/credential-profile-snapshot.d.ts.map +1 -1
  39. package/dist/decision.d.ts +16 -8
  40. package/dist/decision.d.ts.map +1 -1
  41. package/dist/decision.js +5 -0
  42. package/dist/decision.js.map +1 -1
  43. package/dist/delivery.d.ts +8 -0
  44. package/dist/delivery.d.ts.map +1 -1
  45. package/dist/delivery.js +1 -0
  46. package/dist/delivery.js.map +1 -1
  47. package/dist/files-manifest.d.ts +501 -0
  48. package/dist/files-manifest.d.ts.map +1 -0
  49. package/dist/files-manifest.js +77 -0
  50. package/dist/files-manifest.js.map +1 -0
  51. package/dist/harness-model.d.ts +86 -0
  52. package/dist/harness-model.d.ts.map +1 -0
  53. package/dist/harness-model.js +34 -0
  54. package/dist/harness-model.js.map +1 -0
  55. package/dist/harness.d.ts +183 -27
  56. package/dist/harness.d.ts.map +1 -1
  57. package/dist/harness.js +19 -31
  58. package/dist/harness.js.map +1 -1
  59. package/dist/index.d.ts +3 -0
  60. package/dist/index.d.ts.map +1 -1
  61. package/dist/index.js +3 -0
  62. package/dist/index.js.map +1 -1
  63. package/dist/mcp-run-result.d.ts +379 -56
  64. package/dist/mcp-run-result.d.ts.map +1 -1
  65. package/dist/mcp-run-result.js +3 -0
  66. package/dist/mcp-run-result.js.map +1 -1
  67. package/dist/model-operation.d.ts +1371 -0
  68. package/dist/model-operation.d.ts.map +1 -1
  69. package/dist/model-operation.js +36 -0
  70. package/dist/model-operation.js.map +1 -1
  71. package/dist/processing.d.ts +94 -0
  72. package/dist/processing.d.ts.map +1 -0
  73. package/dist/processing.js +45 -0
  74. package/dist/processing.js.map +1 -0
  75. package/dist/readiness.d.ts +14 -0
  76. package/dist/readiness.d.ts.map +1 -1
  77. package/dist/run-facts.d.ts +28 -28
  78. package/dist/run-facts.js +4 -4
  79. package/dist/run-facts.js.map +1 -1
  80. package/dist/run-strategy.d.ts +1 -0
  81. package/dist/run-strategy.d.ts.map +1 -1
  82. package/dist/run-strategy.js +2 -0
  83. package/dist/run-strategy.js.map +1 -1
  84. package/dist/status-projection.d.ts.map +1 -1
  85. package/dist/status-projection.js +3 -1
  86. package/dist/status-projection.js.map +1 -1
  87. package/dist/surface-run-controls.d.ts.map +1 -1
  88. package/dist/surface-run-controls.js +22 -1
  89. package/dist/surface-run-controls.js.map +1 -1
  90. package/dist/task.d.ts +9 -0
  91. package/dist/task.d.ts.map +1 -1
  92. package/dist/task.js +2 -0
  93. package/dist/task.js.map +1 -1
  94. package/dist/telemetry.d.ts +263 -41
  95. package/dist/telemetry.d.ts.map +1 -1
  96. package/dist/telemetry.js +5 -8
  97. package/dist/telemetry.js.map +1 -1
  98. package/dist/workproduct.d.ts +4 -4
  99. package/dist/workproduct.d.ts.map +1 -1
  100. package/dist/workproduct.js +4 -4
  101. package/dist/workproduct.js.map +1 -1
  102. package/dist/workspace.d.ts +14 -11
  103. package/dist/workspace.d.ts.map +1 -1
  104. package/dist/workspace.js +14 -9
  105. package/dist/workspace.js.map +1 -1
  106. package/generated/AgentCapabilityCatalog.schema.json +25 -0
  107. package/generated/AttemptExecutionEvidence.schema.json +187 -0
  108. package/generated/BudgetLease.schema.json +39 -0
  109. package/generated/ControlApplyCheckRequest.schema.json +7 -0
  110. package/generated/ControlApplyRequest.schema.json +7 -0
  111. package/generated/ControlCredentialProfilesQueryResponse.schema.json +25 -0
  112. package/generated/ControlCredentialProfilesSnapshotResponse.schema.json +25 -0
  113. package/generated/ControlDeliveryResponse.schema.json +10 -0
  114. package/generated/ControlHarnessAccountCatalog.schema.json +208 -0
  115. package/generated/ControlHarnessAccountModelsResponse.schema.json +320 -0
  116. package/generated/ControlHarnessListResponse.schema.json +25 -0
  117. package/generated/ControlHarnessModelsQueryResponse.schema.json +347 -0
  118. package/generated/ControlHarnessModelsResponse.schema.json +89 -0
  119. package/generated/ControlModelAccountCatalogResponse.schema.json +339 -0
  120. package/generated/ControlModelCatalogQueryResponse.schema.json +346 -0
  121. package/generated/ControlModelCatalogResponse.schema.json +86 -0
  122. package/generated/ControlModelOperationDetail.schema.json +39 -0
  123. package/generated/ControlModelSourcesAccountsResponse.schema.json +61 -0
  124. package/generated/ControlModelSourcesQueryResponse.schema.json +98 -0
  125. package/generated/ControlRunAgainDraft.schema.json +29 -0
  126. package/generated/ControlRunDecisionRequest.schema.json +4 -3
  127. package/generated/ControlRunDecisionResponse.schema.json +2 -1
  128. package/generated/ControlRunDetail.schema.json +234 -28
  129. package/generated/ControlRunListResponse.schema.json +18 -4
  130. package/generated/ControlRunStartRequest.schema.json +29 -0
  131. package/generated/ControlRunSummary.schema.json +18 -4
  132. package/generated/ControlThreadApplyResponse.schema.json +10 -0
  133. package/generated/ControlThreadDetail.schema.json +9 -4
  134. package/generated/ControlThreadTurnRequest.schema.json +45 -0
  135. package/generated/DecisionRecord.schema.json +8 -1
  136. package/generated/HarnessEvent.schema.json +146 -0
  137. package/generated/HarnessManifest.schema.json +25 -0
  138. package/generated/HarnessModel.schema.json +89 -0
  139. package/generated/HarnessStatusDto.schema.json +25 -0
  140. package/generated/McpRunHandleResult.schema.json +205 -9
  141. package/generated/McpRunToolResult.schema.json +196 -9
  142. package/generated/ModelCallRequest.schema.json +9 -0
  143. package/generated/ModelCallResult.schema.json +124 -0
  144. package/generated/ProcessingCapability.schema.json +95 -0
  145. package/generated/ProcessingCostBasis.schema.json +45 -0
  146. package/generated/ProcessingPreference.schema.json +15 -0
  147. package/generated/ProcessingReceipt.schema.json +94 -0
  148. package/generated/RunFacts.schema.json +6 -1
  149. package/generated/RunTelemetry.schema.json +168 -1
  150. package/generated/TaskContract.schema.json +9 -0
  151. package/generated/UsageCostBasis.schema.json +31 -0
  152. package/generated/UsageCostSummary.schema.json +44 -0
  153. package/generated/WorkProduct.schema.json +4 -3
  154. package/generated/WorkspaceEnvelope.schema.json +25 -5
  155. package/generated/WorkspaceFilesManifest.schema.json +160 -0
  156. package/generated/WorkspaceKind.schema.json +13 -0
  157. package/package.json +2 -2
@@ -0,0 +1,44 @@
1
+ {
2
+ "$ref": "#/definitions/UsageCostSummary",
3
+ "definitions": {
4
+ "UsageCostSummary": {
5
+ "type": "object",
6
+ "properties": {
7
+ "cashUsd": {
8
+ "type": "number",
9
+ "minimum": 0
10
+ },
11
+ "valuationUsd": {
12
+ "type": "number",
13
+ "minimum": 0
14
+ },
15
+ "unknownUsd": {
16
+ "type": "number",
17
+ "minimum": 0
18
+ },
19
+ "cashKnowledge": {
20
+ "type": "string",
21
+ "enum": [
22
+ "exact",
23
+ "estimated",
24
+ "unknown"
25
+ ],
26
+ "description": "Quality of incremental-cash cost evidence for an operation."
27
+ },
28
+ "valuationKnowledge": {
29
+ "$ref": "#/definitions/UsageCostSummary/properties/cashKnowledge"
30
+ }
31
+ },
32
+ "required": [
33
+ "cashUsd",
34
+ "valuationUsd",
35
+ "unknownUsd",
36
+ "cashKnowledge",
37
+ "valuationKnowledge"
38
+ ],
39
+ "additionalProperties": false,
40
+ "description": "Observed usage components. An amount of unknown meaning is not charged cash; separately proven included service can still establish exact zero incremental cash."
41
+ }
42
+ },
43
+ "$schema": "http://json-schema.org/draft-07/schema#"
44
+ }
@@ -14,9 +14,10 @@
14
14
  "enum": [
15
15
  "patch",
16
16
  "new_repo",
17
- "report"
17
+ "report",
18
+ "files"
18
19
  ],
19
- "description": "Kind of work product a run produces: a patch against the base tree, a newly created repository, or a report document."
20
+ "description": "Kind of work product: Git patch, new repository, report, or complete directory file manifest with retained bytes."
20
21
  },
21
22
  "source_task_id": {
22
23
  "type": "string",
@@ -49,7 +50,7 @@
49
50
  "source_task_id"
50
51
  ],
51
52
  "additionalProperties": false,
52
- "description": "The deliverable a run produced (patch, new repo, or report), referenced by apply/delivery verbs."
53
+ "description": "The deliverable a run produced, referenced by apply/delivery verbs; files uses files.manifest and meta.manifest_sha256."
53
54
  }
54
55
  },
55
56
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -24,8 +24,11 @@
24
24
  "description": "Absolute path of the source repository root."
25
25
  },
26
26
  "base_ref": {
27
- "type": "string",
28
- "description": "Git ref the checkout was created from."
27
+ "type": [
28
+ "string",
29
+ "null"
30
+ ],
31
+ "description": "Git base ref; null for directory execution."
29
32
  },
30
33
  "base_sha": {
31
34
  "type": [
@@ -37,11 +40,28 @@
37
40
  },
38
41
  "worktree_path": {
39
42
  "type": "string",
40
- "description": "Absolute path of the isolated Git checkout."
43
+ "description": "Absolute actual execution directory, whether Git-backed or plain."
41
44
  },
42
45
  "branch_name": {
46
+ "type": [
47
+ "string",
48
+ "null"
49
+ ],
50
+ "description": "Clone-local branch; null for directory execution."
51
+ },
52
+ "workspace_kind": {
43
53
  "type": "string",
44
- "description": "Clone-local branch created for the checkout."
54
+ "enum": [
55
+ "git",
56
+ "directory"
57
+ ]
58
+ },
59
+ "scope_paths": {
60
+ "type": "array",
61
+ "items": {
62
+ "type": "string",
63
+ "minLength": 1
64
+ }
45
65
  },
46
66
  "home_dir": {
47
67
  "type": "string",
@@ -87,7 +107,7 @@
87
107
  "created_at"
88
108
  ],
89
109
  "additionalProperties": false,
90
- "description": "An isolated execution envelope: a private Git checkout plus scoped env/HOME/harness-config isolation."
110
+ "description": "Execution directory and scoped HOME/configs. Git checkouts retain their Git identity; directory execution uses a selected copy or the live source without Git initialization."
91
111
  }
92
112
  },
93
113
  "$schema": "http://json-schema.org/draft-07/schema#"
@@ -0,0 +1,160 @@
1
+ {
2
+ "$ref": "#/definitions/WorkspaceFilesManifest",
3
+ "definitions": {
4
+ "WorkspaceFilesManifest": {
5
+ "type": "object",
6
+ "properties": {
7
+ "version": {
8
+ "type": "number",
9
+ "const": 1
10
+ },
11
+ "sourceRoot": {
12
+ "type": "string",
13
+ "minLength": 1
14
+ },
15
+ "executionRoot": {
16
+ "type": "string",
17
+ "minLength": 1
18
+ },
19
+ "isolation": {
20
+ "type": "string",
21
+ "enum": [
22
+ "live",
23
+ "envelope"
24
+ ]
25
+ },
26
+ "scopePaths": {
27
+ "type": "array",
28
+ "items": {
29
+ "type": "string",
30
+ "minLength": 1
31
+ }
32
+ },
33
+ "complete": {
34
+ "type": "boolean",
35
+ "description": "Complete bytes for the declared footprint, not a whole-source-tree claim."
36
+ },
37
+ "entries": {
38
+ "type": "array",
39
+ "items": {
40
+ "type": "object",
41
+ "properties": {
42
+ "path": {
43
+ "$ref": "#/definitions/WorkspaceFilesManifest/properties/scopePaths/items"
44
+ },
45
+ "before": {
46
+ "anyOf": [
47
+ {
48
+ "anyOf": [
49
+ {
50
+ "type": "object",
51
+ "properties": {
52
+ "kind": {
53
+ "type": "string",
54
+ "const": "file"
55
+ },
56
+ "sha256": {
57
+ "type": "string",
58
+ "pattern": "^sha256:[a-f0-9]{64}$"
59
+ },
60
+ "sizeBytes": {
61
+ "type": "integer",
62
+ "minimum": 0
63
+ },
64
+ "mode": {
65
+ "type": "integer",
66
+ "minimum": 0
67
+ },
68
+ "artifactPath": {
69
+ "$ref": "#/definitions/WorkspaceFilesManifest/properties/entries/items/properties/path"
70
+ }
71
+ },
72
+ "required": [
73
+ "kind",
74
+ "sha256",
75
+ "sizeBytes",
76
+ "mode"
77
+ ],
78
+ "additionalProperties": false
79
+ },
80
+ {
81
+ "type": "object",
82
+ "properties": {
83
+ "kind": {
84
+ "type": "string",
85
+ "const": "directory"
86
+ },
87
+ "mode": {
88
+ "type": "integer",
89
+ "minimum": 0
90
+ }
91
+ },
92
+ "required": [
93
+ "kind",
94
+ "mode"
95
+ ],
96
+ "additionalProperties": false
97
+ },
98
+ {
99
+ "type": "object",
100
+ "properties": {
101
+ "kind": {
102
+ "type": "string",
103
+ "const": "symlink"
104
+ },
105
+ "target": {
106
+ "type": "string"
107
+ }
108
+ },
109
+ "required": [
110
+ "kind",
111
+ "target"
112
+ ],
113
+ "additionalProperties": false
114
+ }
115
+ ]
116
+ },
117
+ {
118
+ "type": "null"
119
+ },
120
+ {
121
+ "type": "string",
122
+ "const": "unknown"
123
+ }
124
+ ],
125
+ "description": "Null proves absence; unknown means this path has no captured application preimage."
126
+ },
127
+ "after": {
128
+ "anyOf": [
129
+ {
130
+ "$ref": "#/definitions/WorkspaceFilesManifest/properties/entries/items/properties/before/anyOf/0"
131
+ },
132
+ {
133
+ "type": "null"
134
+ }
135
+ ]
136
+ }
137
+ },
138
+ "required": [
139
+ "path",
140
+ "before",
141
+ "after"
142
+ ],
143
+ "additionalProperties": false
144
+ }
145
+ }
146
+ },
147
+ "required": [
148
+ "version",
149
+ "sourceRoot",
150
+ "executionRoot",
151
+ "isolation",
152
+ "scopePaths",
153
+ "complete",
154
+ "entries"
155
+ ],
156
+ "additionalProperties": false
157
+ }
158
+ },
159
+ "$schema": "http://json-schema.org/draft-07/schema#"
160
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$ref": "#/definitions/WorkspaceKind",
3
+ "definitions": {
4
+ "WorkspaceKind": {
5
+ "type": "string",
6
+ "enum": [
7
+ "git",
8
+ "directory"
9
+ ]
10
+ }
11
+ },
12
+ "$schema": "http://json-schema.org/draft-07/schema#"
13
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudexor/schema",
3
- "version": "3.10.4",
3
+ "version": "3.11.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.4.3",
22
22
  "zod-to-json-schema": "^3.24.1",
23
- "@claudexor/util": "3.10.4"
23
+ "@claudexor/util": "3.11.0"
24
24
  },
25
25
  "repository": {
26
26
  "type": "git",