@claudexor/schema 1.0.1 → 2.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.
- package/dist/agent-capabilities.d.ts +88 -16
- package/dist/agent-capabilities.d.ts.map +1 -1
- package/dist/agent-capabilities.js +49 -18
- package/dist/agent-capabilities.js.map +1 -1
- package/dist/apply-eligibility.d.ts.map +1 -1
- package/dist/apply-eligibility.js +22 -6
- package/dist/apply-eligibility.js.map +1 -1
- package/dist/attachment.d.ts +113 -48
- package/dist/attachment.d.ts.map +1 -1
- package/dist/attachment.js +60 -45
- package/dist/attachment.js.map +1 -1
- package/dist/auth.d.ts +1423 -0
- package/dist/auth.d.ts.map +1 -0
- package/dist/auth.js +317 -0
- package/dist/auth.js.map +1 -0
- package/dist/budget.d.ts +133 -16
- package/dist/budget.d.ts.map +1 -1
- package/dist/budget.js +65 -22
- package/dist/budget.js.map +1 -1
- package/dist/config.d.ts +449 -115
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +114 -41
- package/dist/config.js.map +1 -1
- package/dist/context.d.ts +6 -6
- package/dist/context.d.ts.map +1 -1
- package/dist/context.js +31 -7
- package/dist/context.js.map +1 -1
- package/dist/control-operation-responses.d.ts +1172 -0
- package/dist/control-operation-responses.d.ts.map +1 -0
- package/dist/control-operation-responses.js +35 -0
- package/dist/control-operation-responses.js.map +1 -0
- package/dist/control-run-detail.d.ts +443 -242
- package/dist/control-run-detail.d.ts.map +1 -1
- package/dist/control-run-detail.js +72 -17
- package/dist/control-run-detail.js.map +1 -1
- package/dist/control-run-retry.d.ts +88 -0
- package/dist/control-run-retry.d.ts.map +1 -0
- package/dist/control-run-retry.js +40 -0
- package/dist/control-run-retry.js.map +1 -0
- package/dist/control-run-scope.d.ts +25 -0
- package/dist/control-run-scope.d.ts.map +1 -0
- package/dist/control-run-scope.js +22 -0
- package/dist/control-run-scope.js.map +1 -0
- package/dist/control-secret.d.ts +90 -0
- package/dist/control-secret.d.ts.map +1 -0
- package/dist/control-secret.js +35 -0
- package/dist/control-secret.js.map +1 -0
- package/dist/control-spec.d.ts +592 -0
- package/dist/control-spec.d.ts.map +1 -0
- package/dist/control-spec.js +85 -0
- package/dist/control-spec.js.map +1 -0
- package/dist/control-thread-apply.d.ts +175 -0
- package/dist/control-thread-apply.d.ts.map +1 -0
- package/dist/control-thread-apply.js +31 -0
- package/dist/control-thread-apply.js.map +1 -0
- package/dist/control-trust.d.ts +74 -10
- package/dist/control-trust.d.ts.map +1 -1
- package/dist/control-trust.js +31 -11
- package/dist/control-trust.js.map +1 -1
- package/dist/control.d.ts +1391 -878
- package/dist/control.d.ts.map +1 -1
- package/dist/control.js +468 -310
- package/dist/control.js.map +1 -1
- package/dist/decision.d.ts +10 -10
- package/dist/decision.d.ts.map +1 -1
- package/dist/decision.js +62 -15
- package/dist/decision.js.map +1 -1
- package/dist/delivery.d.ts +99 -0
- package/dist/delivery.d.ts.map +1 -0
- package/dist/delivery.js +19 -0
- package/dist/delivery.js.map +1 -0
- package/dist/events.d.ts +25 -2
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +25 -4
- package/dist/events.js.map +1 -1
- package/dist/gate.d.ts +2 -2
- package/dist/gate.d.ts.map +1 -1
- package/dist/gate.js +25 -5
- package/dist/gate.js.map +1 -1
- package/dist/harness.d.ts +558 -175
- package/dist/harness.d.ts.map +1 -1
- package/dist/harness.js +207 -82
- package/dist/harness.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -1
- package/dist/operation.d.ts +185 -0
- package/dist/operation.d.ts.map +1 -0
- package/dist/operation.js +50 -0
- package/dist/operation.js.map +1 -0
- package/dist/orchestrate.d.ts +127 -22
- package/dist/orchestrate.d.ts.map +1 -1
- package/dist/orchestrate.js +61 -7
- package/dist/orchestrate.js.map +1 -1
- package/dist/primitives.d.ts.map +1 -1
- package/dist/primitives.js +4 -1
- package/dist/primitives.js.map +1 -1
- package/dist/problem.d.ts +29 -0
- package/dist/problem.d.ts.map +1 -0
- package/dist/problem.js +17 -0
- package/dist/problem.js.map +1 -0
- package/dist/project.d.ts +97 -0
- package/dist/project.d.ts.map +1 -0
- package/dist/project.js +27 -0
- package/dist/project.js.map +1 -0
- package/dist/quota.d.ts +251 -0
- package/dist/quota.d.ts.map +1 -0
- package/dist/quota.js +46 -0
- package/dist/quota.js.map +1 -0
- package/dist/raw.d.ts +195 -0
- package/dist/raw.d.ts.map +1 -0
- package/dist/raw.js +58 -0
- package/dist/raw.js.map +1 -0
- package/dist/recovery.d.ts +515 -0
- package/dist/recovery.d.ts.map +1 -0
- package/dist/recovery.js +93 -0
- package/dist/recovery.js.map +1 -0
- package/dist/request-requirements.d.ts +36 -0
- package/dist/request-requirements.d.ts.map +1 -0
- package/dist/request-requirements.js +26 -0
- package/dist/request-requirements.js.map +1 -0
- package/dist/review.d.ts +26 -26
- package/dist/review.d.ts.map +1 -1
- package/dist/review.js +50 -10
- package/dist/review.js.map +1 -1
- package/dist/route.d.ts +10 -10
- package/dist/route.d.ts.map +1 -1
- package/dist/route.js +19 -4
- package/dist/route.js.map +1 -1
- package/dist/setup.d.ts +9766 -0
- package/dist/setup.d.ts.map +1 -0
- package/dist/setup.js +450 -0
- package/dist/setup.js.map +1 -0
- package/dist/spec.d.ts +174 -57
- package/dist/spec.d.ts.map +1 -1
- package/dist/spec.js +69 -16
- package/dist/spec.js.map +1 -1
- package/dist/surface-run-controls.d.ts.map +1 -1
- package/dist/surface-run-controls.js +25 -21
- package/dist/surface-run-controls.js.map +1 -1
- package/dist/task.d.ts +1560 -58
- package/dist/task.d.ts.map +1 -1
- package/dist/task.js +97 -18
- package/dist/task.js.map +1 -1
- package/dist/telemetry.d.ts +233 -60
- package/dist/telemetry.d.ts.map +1 -1
- package/dist/telemetry.js +97 -15
- package/dist/telemetry.js.map +1 -1
- package/dist/thread.d.ts +68 -41
- package/dist/thread.d.ts.map +1 -1
- package/dist/thread.js +45 -11
- package/dist/thread.js.map +1 -1
- package/dist/workproduct.d.ts +3 -3
- package/dist/workproduct.d.ts.map +1 -1
- package/dist/workproduct.js.map +1 -1
- package/dist/workspace.d.ts +1 -1
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +12 -3
- package/dist/workspace.js.map +1 -1
- package/generated/AgentCapabilityCatalog.schema.json +53 -11
- package/generated/BudgetLease.schema.json +55 -6
- package/generated/BudgetObservation.schema.json +28 -7
- package/generated/ConformanceReport.schema.json +49 -0
- package/generated/ControlApplyCheckResponse.schema.json +34 -0
- package/generated/ControlArtifactListResponse.schema.json +57 -0
- package/generated/ControlAuthReadinessRefreshRequest.schema.json +38 -0
- package/generated/ControlAuthReadinessRefreshResponse.schema.json +85 -0
- package/generated/ControlDeliveryResponse.schema.json +136 -0
- package/generated/ControlHandshakeRequest.schema.json +26 -0
- package/generated/ControlHandshakeResponse.schema.json +30 -0
- package/generated/ControlHarnessListResponse.schema.json +103 -12
- package/generated/ControlHarnessSettingsPatch.schema.json +0 -12
- package/generated/ControlJournalEvent.schema.json +42 -0
- package/generated/ControlJournalExportReceipt.schema.json +49 -0
- package/generated/ControlJournalInspection.schema.json +149 -0
- package/generated/ControlJournalQuarantineReceipt.schema.json +55 -0
- package/generated/ControlJournalQuarantineRequest.schema.json +24 -0
- package/generated/ControlJournalValidation.schema.json +181 -0
- package/generated/ControlOperationCatalog.schema.json +128 -0
- package/generated/ControlOperationDescriptor.schema.json +110 -0
- package/generated/ControlProblem.schema.json +59 -0
- package/generated/ControlProject.schema.json +42 -0
- package/generated/ControlProjectListResponse.schema.json +54 -0
- package/generated/ControlProjectRegisterRequest.schema.json +19 -0
- package/generated/ControlProjectRelinkRequest.schema.json +19 -0
- package/generated/ControlQueuedRunInfo.schema.json +4 -2
- package/generated/ControlQuotaResponse.schema.json +176 -0
- package/generated/ControlResource.schema.json +59 -0
- package/generated/ControlRunAgainDraft.schema.json +499 -0
- package/generated/ControlRunDetail.schema.json +197 -30
- package/generated/ControlRunListResponse.schema.json +797 -0
- package/generated/ControlRunRetryResponse.schema.json +54 -0
- package/generated/ControlRunStartRequest.schema.json +83 -55
- package/generated/ControlRunStartResponse.schema.json +78 -0
- package/generated/ControlRunSummary.schema.json +140 -20
- package/generated/ControlSecretListResponse.schema.json +8 -14
- package/generated/ControlSecretMutationResponse.schema.json +32 -0
- package/generated/ControlSecretSetRequest.schema.json +27 -0
- package/generated/ControlSettingsSnapshot.schema.json +118 -44
- package/generated/ControlSettingsUpdateRequest.schema.json +110 -40
- package/generated/ControlSetupJob.schema.json +763 -65
- package/generated/ControlSetupJobCreateRequest.schema.json +11 -13
- package/generated/ControlSetupJobEvent.schema.json +861 -5
- package/generated/ControlSetupJobListFilter.schema.json +35 -0
- package/generated/ControlSetupJobListResponse.schema.json +763 -65
- package/generated/ControlSetupJobSnapshot.schema.json +870 -0
- package/generated/ControlSpecAnswersRequest.schema.json +74 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +128 -2
- package/generated/ControlSpecSession.schema.json +249 -0
- package/generated/ControlSpecSessionListResponse.schema.json +261 -0
- package/generated/ControlThread.schema.json +20 -2
- package/generated/ControlThreadApplyResponse.schema.json +139 -0
- package/generated/ControlThreadDetail.schema.json +32 -4
- package/generated/ControlThreadListResponse.schema.json +20 -2
- package/generated/ControlThreadTurnRequest.schema.json +373 -0
- package/generated/ControlThreadTurnResponse.schema.json +73 -0
- package/generated/ControlThreadUpdateRequest.schema.json +1 -1
- package/generated/ControlTrustListResponse.schema.json +6 -0
- package/generated/ControlTrustState.schema.json +6 -0
- package/generated/ControlTrustUpdateRequest.schema.json +65 -3
- package/generated/ControlUploadCreateRequest.schema.json +37 -0
- package/generated/ControlUploadFinalizeRequest.schema.json +17 -0
- package/generated/ControlUploadStatus.schema.json +40 -0
- package/generated/DecisionRecord.schema.json +6 -3
- package/generated/GlobalConfig.schema.json +105 -58
- package/generated/HarnessEvent.schema.json +201 -10
- package/generated/HarnessManifest.schema.json +63 -12
- package/generated/HarnessStatusDto.schema.json +103 -12
- package/generated/OrchestrateContract.schema.json +32 -6
- package/generated/OrchestratePlan.schema.json +20 -0
- package/generated/OrchestratePlanProgress.schema.json +61 -0
- package/generated/PaidBudget.schema.json +42 -0
- package/generated/Project.schema.json +45 -0
- package/generated/ProjectConfig.schema.json +45 -18
- package/generated/RawContextPacket.schema.json +184 -0
- package/generated/RawGitPatchEnvelope.schema.json +70 -0
- package/generated/RunTelemetry.schema.json +80 -0
- package/generated/SecretMetadata.schema.json +4 -7
- package/generated/SpecPack.schema.json +118 -7
- package/generated/TaskContract.schema.json +159 -26
- package/generated/TestCommandInvocation.schema.json +45 -0
- package/generated/Thread.schema.json +62 -6
- package/generated/ThreadTurn.schema.json +24 -11
- package/generated/TrustConfig.schema.json +77 -0
- package/package.json +1 -1
- package/generated/ControlSetupJobConfirmRequest.schema.json +0 -18
- package/generated/ControlSpecFreezeRequest.schema.json +0 -83
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlRunRetryResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlRunRetryResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"retryOf": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Non-empty identifier string."
|
|
11
|
+
},
|
|
12
|
+
"jobId": {
|
|
13
|
+
"$ref": "#/definitions/ControlRunRetryResponse/properties/retryOf"
|
|
14
|
+
},
|
|
15
|
+
"runId": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"$ref": "#/definitions/ControlRunRetryResponse/properties/retryOf"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"type": "null"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
"description": "Non-empty identifier string.",
|
|
25
|
+
"default": null
|
|
26
|
+
},
|
|
27
|
+
"turnId": {
|
|
28
|
+
"anyOf": [
|
|
29
|
+
{
|
|
30
|
+
"$ref": "#/definitions/ControlRunRetryResponse/properties/retryOf"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"type": "null"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"description": "Non-empty identifier string.",
|
|
37
|
+
"default": null
|
|
38
|
+
},
|
|
39
|
+
"state": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"minLength": 1
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"retryOf",
|
|
46
|
+
"jobId",
|
|
47
|
+
"state"
|
|
48
|
+
],
|
|
49
|
+
"additionalProperties": false,
|
|
50
|
+
"description": "Durable handle returned by Exact Retry for a fresh command attempt."
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
54
|
+
}
|
|
@@ -14,46 +14,19 @@
|
|
|
14
14
|
"items": {
|
|
15
15
|
"type": "object",
|
|
16
16
|
"properties": {
|
|
17
|
-
"
|
|
17
|
+
"resourceId": {
|
|
18
18
|
"type": "string",
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
"file"
|
|
22
|
-
],
|
|
23
|
-
"description": "Kind of attachment: image (vision input) or file (generic bytes).",
|
|
24
|
-
"default": "file"
|
|
25
|
-
},
|
|
26
|
-
"mime": {
|
|
27
|
-
"type": "string",
|
|
28
|
-
"default": "application/octet-stream",
|
|
29
|
-
"description": "MIME type of the attachment content."
|
|
30
|
-
},
|
|
31
|
-
"name": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"default": "",
|
|
34
|
-
"description": "Original file name for the attachment."
|
|
35
|
-
},
|
|
36
|
-
"data": {
|
|
37
|
-
"type": [
|
|
38
|
-
"string",
|
|
39
|
-
"null"
|
|
40
|
-
],
|
|
41
|
-
"default": null,
|
|
42
|
-
"description": "Base64-inline attachment bytes for a fresh upload; null when path is used instead."
|
|
43
|
-
},
|
|
44
|
-
"path": {
|
|
45
|
-
"type": [
|
|
46
|
-
"string",
|
|
47
|
-
"null"
|
|
48
|
-
],
|
|
49
|
-
"default": null,
|
|
50
|
-
"description": "Absolute existing file path to read bytes from; null when data is used instead."
|
|
19
|
+
"minLength": 1,
|
|
20
|
+
"description": "Immutable daemon resource id returned by upload finalize."
|
|
51
21
|
}
|
|
52
22
|
},
|
|
23
|
+
"required": [
|
|
24
|
+
"resourceId"
|
|
25
|
+
],
|
|
53
26
|
"additionalProperties": false,
|
|
54
|
-
"description": "
|
|
27
|
+
"description": "Reference to an immutable daemon-owned uploaded resource."
|
|
55
28
|
},
|
|
56
|
-
"description": "
|
|
29
|
+
"description": "Immutable daemon resource ids returned by upload finalize; paths and inline bytes are not accepted."
|
|
57
30
|
},
|
|
58
31
|
"mode": {
|
|
59
32
|
"type": "string",
|
|
@@ -126,7 +99,7 @@
|
|
|
126
99
|
"live"
|
|
127
100
|
],
|
|
128
101
|
"default": "envelope",
|
|
129
|
-
"description": "Run isolation: envelope (isolated worktree
|
|
102
|
+
"description": "Run isolation: envelope (isolated worktree in the external per-project runtime namespace, the default) or live (the project tree itself)."
|
|
130
103
|
}
|
|
131
104
|
},
|
|
132
105
|
"additionalProperties": false,
|
|
@@ -149,20 +122,14 @@
|
|
|
149
122
|
"$ref": "#/definitions/ControlRunStartRequest/properties/harnesses/items",
|
|
150
123
|
"description": "Primary harness the run should prefer."
|
|
151
124
|
},
|
|
152
|
-
"
|
|
125
|
+
"routingGoal": {
|
|
153
126
|
"type": "string",
|
|
154
127
|
"enum": [
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
158
|
-
"strongest",
|
|
159
|
-
"burn",
|
|
160
|
-
"subscription-first",
|
|
161
|
-
"api-overflow",
|
|
162
|
-
"conserve-claude",
|
|
163
|
-
"conserve-codex"
|
|
128
|
+
"auto",
|
|
129
|
+
"quality",
|
|
130
|
+
"economy"
|
|
164
131
|
],
|
|
165
|
-
"description": "
|
|
132
|
+
"description": "Routing objective: pace expiring quota, choose the highest declared quality tier, or minimize incremental paid spend."
|
|
166
133
|
},
|
|
167
134
|
"model": {
|
|
168
135
|
"$ref": "#/definitions/ControlRunStartRequest/properties/harnesses/items",
|
|
@@ -266,17 +233,41 @@
|
|
|
266
233
|
],
|
|
267
234
|
"description": "Best-of-N synthesis policy: auto only synthesizes an extra candidate when n>=3 and candidates genuinely complement; always/never force it."
|
|
268
235
|
},
|
|
269
|
-
"
|
|
236
|
+
"paidBudget": {
|
|
270
237
|
"anyOf": [
|
|
271
238
|
{
|
|
272
|
-
"type": "
|
|
273
|
-
"
|
|
239
|
+
"type": "object",
|
|
240
|
+
"properties": {
|
|
241
|
+
"kind": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"const": "unlimited"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
"required": [
|
|
247
|
+
"kind"
|
|
248
|
+
],
|
|
249
|
+
"additionalProperties": false
|
|
274
250
|
},
|
|
275
251
|
{
|
|
276
|
-
"type": "
|
|
252
|
+
"type": "object",
|
|
253
|
+
"properties": {
|
|
254
|
+
"kind": {
|
|
255
|
+
"type": "string",
|
|
256
|
+
"const": "finite"
|
|
257
|
+
},
|
|
258
|
+
"maxUsd": {
|
|
259
|
+
"type": "number",
|
|
260
|
+
"minimum": 0
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"required": [
|
|
264
|
+
"kind",
|
|
265
|
+
"maxUsd"
|
|
266
|
+
],
|
|
267
|
+
"additionalProperties": false
|
|
277
268
|
}
|
|
278
269
|
],
|
|
279
|
-
"description": "
|
|
270
|
+
"description": "Explicit incremental-cash budget for the run."
|
|
280
271
|
},
|
|
281
272
|
"access": {
|
|
282
273
|
"type": "string",
|
|
@@ -305,14 +296,47 @@
|
|
|
305
296
|
},
|
|
306
297
|
"browser": {
|
|
307
298
|
"type": "boolean",
|
|
308
|
-
"description": "
|
|
299
|
+
"description": "Request the agent-driven browser; preflight records per-lane effectiveness and refuses when no selected lane can receive it."
|
|
309
300
|
},
|
|
310
301
|
"tests": {
|
|
311
302
|
"type": "array",
|
|
312
303
|
"items": {
|
|
313
|
-
"
|
|
304
|
+
"type": "object",
|
|
305
|
+
"properties": {
|
|
306
|
+
"program": {
|
|
307
|
+
"type": "string",
|
|
308
|
+
"minLength": 1,
|
|
309
|
+
"pattern": "\\S",
|
|
310
|
+
"description": "Executable invoked directly without an implicit shell."
|
|
311
|
+
},
|
|
312
|
+
"args": {
|
|
313
|
+
"type": "array",
|
|
314
|
+
"items": {
|
|
315
|
+
"type": "string"
|
|
316
|
+
},
|
|
317
|
+
"default": [],
|
|
318
|
+
"description": "Exact argv passed to the executable."
|
|
319
|
+
},
|
|
320
|
+
"cwd": {
|
|
321
|
+
"type": "string",
|
|
322
|
+
"description": "Optional project-relative working directory for the command."
|
|
323
|
+
},
|
|
324
|
+
"envAllowlist": {
|
|
325
|
+
"type": "array",
|
|
326
|
+
"items": {
|
|
327
|
+
"$ref": "#/definitions/ControlRunStartRequest/properties/harnesses/items"
|
|
328
|
+
},
|
|
329
|
+
"default": [],
|
|
330
|
+
"description": "Non-secret parent environment names explicitly forwarded to the command."
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"required": [
|
|
334
|
+
"program"
|
|
335
|
+
],
|
|
336
|
+
"additionalProperties": false,
|
|
337
|
+
"description": "Canonical deterministic command invocation; no implicit shell parsing."
|
|
314
338
|
},
|
|
315
|
-
"description": "
|
|
339
|
+
"description": "Typed-argv commands to run as deterministic gates."
|
|
316
340
|
},
|
|
317
341
|
"protectedPathApprovals": {
|
|
318
342
|
"type": "array",
|
|
@@ -364,6 +388,10 @@
|
|
|
364
388
|
"$ref": "#/definitions/ControlRunStartRequest/properties/threadId",
|
|
365
389
|
"description": "Run this turn follows up on."
|
|
366
390
|
},
|
|
391
|
+
"retryOf": {
|
|
392
|
+
"$ref": "#/definitions/ControlRunStartRequest/properties/threadId",
|
|
393
|
+
"description": "Server-owned Exact Retry lineage; direct POST /runs rejects it."
|
|
394
|
+
},
|
|
367
395
|
"planRunId": {
|
|
368
396
|
"$ref": "#/definitions/ControlRunStartRequest/properties/threadId",
|
|
369
397
|
"description": "Internal daemon handoff only; rejected (400) on POST /runs. When set, the turn implements an approved plan from that run."
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlRunStartResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlRunStartResponse": {
|
|
5
|
+
"anyOf": [
|
|
6
|
+
{
|
|
7
|
+
"type": "object",
|
|
8
|
+
"properties": {
|
|
9
|
+
"jobId": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"description": "Daemon job id backing the run."
|
|
12
|
+
},
|
|
13
|
+
"runId": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Run id."
|
|
16
|
+
},
|
|
17
|
+
"taskId": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Task id, when already allocated."
|
|
20
|
+
},
|
|
21
|
+
"runDir": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"description": "On-disk run artifact directory."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"runId",
|
|
28
|
+
"runDir"
|
|
29
|
+
],
|
|
30
|
+
"additionalProperties": false,
|
|
31
|
+
"description": "Response for a successfully enqueued run."
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"type": "object",
|
|
35
|
+
"properties": {
|
|
36
|
+
"jobId": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Daemon job id."
|
|
39
|
+
},
|
|
40
|
+
"state": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"enum": [
|
|
43
|
+
"queued",
|
|
44
|
+
"running",
|
|
45
|
+
"blocked",
|
|
46
|
+
"succeeded",
|
|
47
|
+
"no_op",
|
|
48
|
+
"ungated",
|
|
49
|
+
"review_not_run",
|
|
50
|
+
"failed",
|
|
51
|
+
"cancelled",
|
|
52
|
+
"interrupted_unknown",
|
|
53
|
+
"cost_unverifiable",
|
|
54
|
+
"exhausted_overshoot",
|
|
55
|
+
"exhausted",
|
|
56
|
+
"not_converged",
|
|
57
|
+
"stuck_no_progress"
|
|
58
|
+
],
|
|
59
|
+
"description": "Control-plane run state: queued/running while live, then an honest success, block, failure, interruption, cost, exhaustion, non-convergence, or cancellation terminal."
|
|
60
|
+
},
|
|
61
|
+
"error": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"description": "Error message, when the job failed."
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"required": [
|
|
67
|
+
"jobId",
|
|
68
|
+
"state"
|
|
69
|
+
],
|
|
70
|
+
"additionalProperties": false,
|
|
71
|
+
"description": "Compact state of a queued/running daemon job."
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"description": "Immediate or queued durable handle returned by POST /runs."
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
78
|
+
}
|
|
@@ -28,12 +28,14 @@
|
|
|
28
28
|
"review_not_run",
|
|
29
29
|
"failed",
|
|
30
30
|
"cancelled",
|
|
31
|
-
"
|
|
31
|
+
"interrupted_unknown",
|
|
32
|
+
"cost_unverifiable",
|
|
33
|
+
"exhausted_overshoot",
|
|
32
34
|
"exhausted",
|
|
33
35
|
"not_converged",
|
|
34
36
|
"stuck_no_progress"
|
|
35
37
|
],
|
|
36
|
-
"description": "Control-plane run state: queued/running while live
|
|
38
|
+
"description": "Control-plane run state: queued/running while live, then an honest success, block, failure, interruption, cost, exhaustion, non-convergence, or cancellation terminal."
|
|
37
39
|
},
|
|
38
40
|
"runDir": {
|
|
39
41
|
"type": "string",
|
|
@@ -230,20 +232,14 @@
|
|
|
230
232
|
"type": "string",
|
|
231
233
|
"description": "Primary harness the run preferred."
|
|
232
234
|
},
|
|
233
|
-
"
|
|
235
|
+
"routingGoal": {
|
|
234
236
|
"type": "string",
|
|
235
237
|
"enum": [
|
|
236
|
-
"
|
|
237
|
-
"
|
|
238
|
-
"
|
|
239
|
-
"strongest",
|
|
240
|
-
"burn",
|
|
241
|
-
"subscription-first",
|
|
242
|
-
"api-overflow",
|
|
243
|
-
"conserve-claude",
|
|
244
|
-
"conserve-codex"
|
|
238
|
+
"auto",
|
|
239
|
+
"quality",
|
|
240
|
+
"economy"
|
|
245
241
|
],
|
|
246
|
-
"description": "
|
|
242
|
+
"description": "Routing objective: pace expiring quota, choose the highest declared quality tier, or minimize incremental paid spend."
|
|
247
243
|
},
|
|
248
244
|
"model": {
|
|
249
245
|
"type": "string",
|
|
@@ -314,12 +310,41 @@
|
|
|
314
310
|
"type": "integer",
|
|
315
311
|
"description": "Race width, when the run was a race."
|
|
316
312
|
},
|
|
317
|
-
"
|
|
318
|
-
"
|
|
319
|
-
|
|
320
|
-
|
|
313
|
+
"paidBudget": {
|
|
314
|
+
"anyOf": [
|
|
315
|
+
{
|
|
316
|
+
"type": "object",
|
|
317
|
+
"properties": {
|
|
318
|
+
"kind": {
|
|
319
|
+
"type": "string",
|
|
320
|
+
"const": "unlimited"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"required": [
|
|
324
|
+
"kind"
|
|
325
|
+
],
|
|
326
|
+
"additionalProperties": false
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"type": "object",
|
|
330
|
+
"properties": {
|
|
331
|
+
"kind": {
|
|
332
|
+
"type": "string",
|
|
333
|
+
"const": "finite"
|
|
334
|
+
},
|
|
335
|
+
"maxUsd": {
|
|
336
|
+
"type": "number",
|
|
337
|
+
"minimum": 0
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"required": [
|
|
341
|
+
"kind",
|
|
342
|
+
"maxUsd"
|
|
343
|
+
],
|
|
344
|
+
"additionalProperties": false
|
|
345
|
+
}
|
|
321
346
|
],
|
|
322
|
-
"description": "
|
|
347
|
+
"description": "Explicit incremental-cash budget for the run."
|
|
323
348
|
},
|
|
324
349
|
"spendUsd": {
|
|
325
350
|
"type": [
|
|
@@ -451,6 +476,60 @@
|
|
|
451
476
|
"description": "Web evidence projected onto a run summary from the telemetry artifact.",
|
|
452
477
|
"default": {}
|
|
453
478
|
},
|
|
479
|
+
"requestRequirements": {
|
|
480
|
+
"type": "array",
|
|
481
|
+
"items": {
|
|
482
|
+
"type": "object",
|
|
483
|
+
"properties": {
|
|
484
|
+
"capability": {
|
|
485
|
+
"type": "string",
|
|
486
|
+
"const": "browser"
|
|
487
|
+
},
|
|
488
|
+
"harness_id": {
|
|
489
|
+
"type": "string",
|
|
490
|
+
"minLength": 1
|
|
491
|
+
},
|
|
492
|
+
"eligible": {
|
|
493
|
+
"type": "boolean"
|
|
494
|
+
},
|
|
495
|
+
"requested": {
|
|
496
|
+
"type": "boolean"
|
|
497
|
+
},
|
|
498
|
+
"effective": {
|
|
499
|
+
"type": "boolean"
|
|
500
|
+
},
|
|
501
|
+
"reason": {
|
|
502
|
+
"type": "string",
|
|
503
|
+
"enum": [
|
|
504
|
+
"not_requested",
|
|
505
|
+
"effective",
|
|
506
|
+
"manifest_unsupported",
|
|
507
|
+
"web_policy_off",
|
|
508
|
+
"access_profile_incompatible"
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
"evidence_refs": {
|
|
512
|
+
"type": "array",
|
|
513
|
+
"items": {
|
|
514
|
+
"type": "string"
|
|
515
|
+
},
|
|
516
|
+
"default": []
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"required": [
|
|
520
|
+
"capability",
|
|
521
|
+
"harness_id",
|
|
522
|
+
"eligible",
|
|
523
|
+
"requested",
|
|
524
|
+
"effective",
|
|
525
|
+
"reason"
|
|
526
|
+
],
|
|
527
|
+
"additionalProperties": false,
|
|
528
|
+
"description": "Preflight resolution of one requested capability on one selected harness lane."
|
|
529
|
+
},
|
|
530
|
+
"default": [],
|
|
531
|
+
"description": "Engine-computed requested/effective capability receipts for selected harness lanes."
|
|
532
|
+
},
|
|
454
533
|
"toolPermissionPolicy": {
|
|
455
534
|
"type": "object",
|
|
456
535
|
"additionalProperties": {},
|
|
@@ -564,6 +643,14 @@
|
|
|
564
643
|
"default": null,
|
|
565
644
|
"description": "Tree SHA right after this turn's mutation; revert refuses if the working tree has diverged from this since."
|
|
566
645
|
},
|
|
646
|
+
"revertAnchorId": {
|
|
647
|
+
"type": [
|
|
648
|
+
"string",
|
|
649
|
+
"null"
|
|
650
|
+
],
|
|
651
|
+
"default": null,
|
|
652
|
+
"description": "GC-independent revert anchor."
|
|
653
|
+
},
|
|
567
654
|
"revertable": {
|
|
568
655
|
"type": "boolean",
|
|
569
656
|
"default": false,
|
|
@@ -627,9 +714,42 @@
|
|
|
627
714
|
"tests": {
|
|
628
715
|
"type": "array",
|
|
629
716
|
"items": {
|
|
630
|
-
"type": "
|
|
717
|
+
"type": "object",
|
|
718
|
+
"properties": {
|
|
719
|
+
"program": {
|
|
720
|
+
"type": "string",
|
|
721
|
+
"minLength": 1,
|
|
722
|
+
"pattern": "\\S",
|
|
723
|
+
"description": "Executable invoked directly without an implicit shell."
|
|
724
|
+
},
|
|
725
|
+
"args": {
|
|
726
|
+
"type": "array",
|
|
727
|
+
"items": {
|
|
728
|
+
"type": "string"
|
|
729
|
+
},
|
|
730
|
+
"default": [],
|
|
731
|
+
"description": "Exact argv passed to the executable."
|
|
732
|
+
},
|
|
733
|
+
"cwd": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"description": "Optional project-relative working directory for the command."
|
|
736
|
+
},
|
|
737
|
+
"envAllowlist": {
|
|
738
|
+
"type": "array",
|
|
739
|
+
"items": {
|
|
740
|
+
"$ref": "#/definitions/ControlRunSummary/properties/reviewerPanel/items/properties/model"
|
|
741
|
+
},
|
|
742
|
+
"default": [],
|
|
743
|
+
"description": "Non-secret parent environment names explicitly forwarded to the command."
|
|
744
|
+
}
|
|
745
|
+
},
|
|
746
|
+
"required": [
|
|
747
|
+
"program"
|
|
748
|
+
],
|
|
749
|
+
"additionalProperties": false,
|
|
750
|
+
"description": "Canonical deterministic command invocation; no implicit shell parsing."
|
|
631
751
|
},
|
|
632
|
-
"description": "
|
|
752
|
+
"description": "Typed argv gates."
|
|
633
753
|
},
|
|
634
754
|
"specId": {
|
|
635
755
|
"type": "string",
|
|
@@ -6,11 +6,8 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"backend": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
"file"
|
|
12
|
-
],
|
|
13
|
-
"description": "Active secret store backend."
|
|
9
|
+
"const": "file",
|
|
10
|
+
"description": "Active Claudexor v2 file secret store."
|
|
14
11
|
},
|
|
15
12
|
"secrets": {
|
|
16
13
|
"type": "array",
|
|
@@ -23,16 +20,13 @@
|
|
|
23
20
|
},
|
|
24
21
|
"backend": {
|
|
25
22
|
"type": "string",
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
"file"
|
|
29
|
-
],
|
|
30
|
-
"description": "Where the secret is stored: the OS keychain or a file store."
|
|
23
|
+
"const": "file",
|
|
24
|
+
"description": "Claudexor v2 file secret store."
|
|
31
25
|
},
|
|
32
26
|
"present": {
|
|
33
27
|
"type": "boolean",
|
|
34
28
|
"default": true,
|
|
35
|
-
"description": "Whether a value is
|
|
29
|
+
"description": "Whether a value is stored."
|
|
36
30
|
}
|
|
37
31
|
},
|
|
38
32
|
"required": [
|
|
@@ -40,17 +34,17 @@
|
|
|
40
34
|
"backend"
|
|
41
35
|
],
|
|
42
36
|
"additionalProperties": false,
|
|
43
|
-
"description": "Secret
|
|
37
|
+
"description": "Secret metadata; never the value."
|
|
44
38
|
},
|
|
45
39
|
"default": [],
|
|
46
|
-
"description": "Stored
|
|
40
|
+
"description": "Stored secret metadata."
|
|
47
41
|
}
|
|
48
42
|
},
|
|
49
43
|
"required": [
|
|
50
44
|
"backend"
|
|
51
45
|
],
|
|
52
46
|
"additionalProperties": false,
|
|
53
|
-
"description": "
|
|
47
|
+
"description": "Metadata-only response for listing stored secrets."
|
|
54
48
|
}
|
|
55
49
|
},
|
|
56
50
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSecretMutationResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSecretMutationResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string"
|
|
9
|
+
},
|
|
10
|
+
"backend": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"const": "file"
|
|
13
|
+
},
|
|
14
|
+
"stored": {
|
|
15
|
+
"type": "boolean"
|
|
16
|
+
},
|
|
17
|
+
"deleted": {
|
|
18
|
+
"type": "boolean"
|
|
19
|
+
},
|
|
20
|
+
"warning": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": [
|
|
25
|
+
"name"
|
|
26
|
+
],
|
|
27
|
+
"additionalProperties": false,
|
|
28
|
+
"description": "Managed-secret mutation receipt; never contains the value."
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
32
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSecretSetRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSecretSetRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Managed secret reference name."
|
|
11
|
+
},
|
|
12
|
+
"value": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "Value accepted only by the non-journaled secret route."
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": [
|
|
19
|
+
"name",
|
|
20
|
+
"value"
|
|
21
|
+
],
|
|
22
|
+
"additionalProperties": false,
|
|
23
|
+
"description": "Write one managed secret through the daemon-owned store."
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
27
|
+
}
|