@claudexor/schema 1.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/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/agent-capabilities.d.ts +366 -0
- package/dist/agent-capabilities.d.ts.map +1 -0
- package/dist/agent-capabilities.js +125 -0
- package/dist/agent-capabilities.js.map +1 -0
- package/dist/apply-eligibility.d.ts +76 -0
- package/dist/apply-eligibility.d.ts.map +1 -0
- package/dist/apply-eligibility.js +37 -0
- package/dist/apply-eligibility.js.map +1 -0
- package/dist/attachment.d.ts +69 -0
- package/dist/attachment.d.ts.map +1 -0
- package/dist/attachment.js +54 -0
- package/dist/attachment.js.map +1 -0
- package/dist/budget.d.ts +75 -0
- package/dist/budget.d.ts.map +1 -0
- package/dist/budget.js +54 -0
- package/dist/budget.js.map +1 -0
- package/dist/config.d.ts +743 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +194 -0
- package/dist/config.js.map +1 -0
- package/dist/context.d.ts +222 -0
- package/dist/context.d.ts.map +1 -0
- package/dist/context.js +70 -0
- package/dist/context.js.map +1 -0
- package/dist/control-run-detail.d.ts +1686 -0
- package/dist/control-run-detail.d.ts.map +1 -0
- package/dist/control-run-detail.js +107 -0
- package/dist/control-run-detail.js.map +1 -0
- package/dist/control-trust.d.ts +79 -0
- package/dist/control-trust.d.ts.map +1 -0
- package/dist/control-trust.js +39 -0
- package/dist/control-trust.js.map +1 -0
- package/dist/control.d.ts +4226 -0
- package/dist/control.d.ts.map +1 -0
- package/dist/control.js +1022 -0
- package/dist/control.js.map +1 -0
- package/dist/decision.d.ts +208 -0
- package/dist/decision.d.ts.map +1 -0
- package/dist/decision.js +98 -0
- package/dist/decision.js.map +1 -0
- package/dist/events.d.ts +70 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +105 -0
- package/dist/events.js.map +1 -0
- package/dist/gate.d.ts +37 -0
- package/dist/gate.d.ts.map +1 -0
- package/dist/gate.js +20 -0
- package/dist/gate.js.map +1 -0
- package/dist/harness.d.ts +1418 -0
- package/dist/harness.d.ts.map +1 -0
- package/dist/harness.js +552 -0
- package/dist/harness.js.map +1 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/orchestrate.d.ts +428 -0
- package/dist/orchestrate.d.ts.map +1 -0
- package/dist/orchestrate.js +246 -0
- package/dist/orchestrate.js.map +1 -0
- package/dist/primitives.d.ts +71 -0
- package/dist/primitives.d.ts.map +1 -0
- package/dist/primitives.js +114 -0
- package/dist/primitives.js.map +1 -0
- package/dist/review.d.ts +220 -0
- package/dist/review.d.ts.map +1 -0
- package/dist/review.js +91 -0
- package/dist/review.js.map +1 -0
- package/dist/route.d.ts +67 -0
- package/dist/route.d.ts.map +1 -0
- package/dist/route.js +33 -0
- package/dist/route.js.map +1 -0
- package/dist/spec.d.ts +561 -0
- package/dist/spec.d.ts.map +1 -0
- package/dist/spec.js +133 -0
- package/dist/spec.js.map +1 -0
- package/dist/surface-run-controls.d.ts +14 -0
- package/dist/surface-run-controls.d.ts.map +1 -0
- package/dist/surface-run-controls.js +142 -0
- package/dist/surface-run-controls.js.map +1 -0
- package/dist/task.d.ts +565 -0
- package/dist/task.d.ts.map +1 -0
- package/dist/task.js +186 -0
- package/dist/task.js.map +1 -0
- package/dist/telemetry.d.ts +660 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +140 -0
- package/dist/telemetry.js.map +1 -0
- package/dist/thread.d.ts +348 -0
- package/dist/thread.d.ts.map +1 -0
- package/dist/thread.js +194 -0
- package/dist/thread.js.map +1 -0
- package/dist/workproduct.d.ts +31 -0
- package/dist/workproduct.d.ts.map +1 -0
- package/dist/workproduct.js +25 -0
- package/dist/workproduct.js.map +1 -0
- package/dist/workspace.d.ts +53 -0
- package/dist/workspace.d.ts.map +1 -0
- package/dist/workspace.js +30 -0
- package/dist/workspace.js.map +1 -0
- package/generated/AgentCapabilityCatalog.schema.json +389 -0
- package/generated/ApplyEligibility.schema.json +44 -0
- package/generated/BudgetLease.schema.json +95 -0
- package/generated/BudgetObservation.schema.json +76 -0
- package/generated/ConformanceReport.schema.json +107 -0
- package/generated/ContextPack.schema.json +186 -0
- package/generated/ControlApplyCheckRequest.schema.json +54 -0
- package/generated/ControlApplyRequest.schema.json +74 -0
- package/generated/ControlHarnessListResponse.schema.json +498 -0
- package/generated/ControlHarnessModelsResponse.schema.json +78 -0
- package/generated/ControlHarnessSettingsPatch.schema.json +130 -0
- package/generated/ControlInteractionAnswerRequest.schema.json +48 -0
- package/generated/ControlInteractionAnswerResponse.schema.json +35 -0
- package/generated/ControlPendingInteraction.schema.json +129 -0
- package/generated/ControlQueuedRunInfo.schema.json +44 -0
- package/generated/ControlRunControlRequest.schema.json +61 -0
- package/generated/ControlRunControlResponse.schema.json +40 -0
- package/generated/ControlRunDecisionRequest.schema.json +98 -0
- package/generated/ControlRunDecisionResponse.schema.json +40 -0
- package/generated/ControlRunDetail.schema.json +1925 -0
- package/generated/ControlRunStartInfo.schema.json +33 -0
- package/generated/ControlRunStartRequest.schema.json +429 -0
- package/generated/ControlRunSummary.schema.json +666 -0
- package/generated/ControlSecretListResponse.schema.json +57 -0
- package/generated/ControlSettingsSnapshot.schema.json +281 -0
- package/generated/ControlSettingsUpdateRequest.schema.json +212 -0
- package/generated/ControlSetupJob.schema.json +148 -0
- package/generated/ControlSetupJobConfirmRequest.schema.json +18 -0
- package/generated/ControlSetupJobCreateRequest.schema.json +38 -0
- package/generated/ControlSetupJobEvent.schema.json +58 -0
- package/generated/ControlSetupJobListResponse.schema.json +162 -0
- package/generated/ControlSpecFreezeRequest.schema.json +83 -0
- package/generated/ControlSpecQuestionsRequest.schema.json +80 -0
- package/generated/ControlThread.schema.json +129 -0
- package/generated/ControlThreadApplyRequest.schema.json +32 -0
- package/generated/ControlThreadApplyResponse.schema.json +47 -0
- package/generated/ControlThreadCreateRequest.schema.json +107 -0
- package/generated/ControlThreadDetail.schema.json +515 -0
- package/generated/ControlThreadListResponse.schema.json +141 -0
- package/generated/ControlThreadUpdateRequest.schema.json +46 -0
- package/generated/ControlTrustListResponse.schema.json +59 -0
- package/generated/ControlTrustState.schema.json +45 -0
- package/generated/ControlTrustUpdateRequest.schema.json +26 -0
- package/generated/DecisionRecord.schema.json +232 -0
- package/generated/GateResult.schema.json +81 -0
- package/generated/GlobalConfig.schema.json +313 -0
- package/generated/HarnessEvent.schema.json +360 -0
- package/generated/HarnessManifest.schema.json +350 -0
- package/generated/HarnessModel.schema.json +41 -0
- package/generated/HarnessStatusDto.schema.json +486 -0
- package/generated/McpRunToolResult.schema.json +91 -0
- package/generated/OrchestrateContract.schema.json +93 -0
- package/generated/OrchestratePlan.schema.json +244 -0
- package/generated/OrchestratePlanProgress.schema.json +103 -0
- package/generated/ProjectConfig.schema.json +95 -0
- package/generated/ReviewFinding.schema.json +226 -0
- package/generated/RouteFallbackPayload.schema.json +79 -0
- package/generated/RouteProof.schema.json +111 -0
- package/generated/RunControl.schema.json +51 -0
- package/generated/RunEvent.schema.json +103 -0
- package/generated/RunFailure.schema.json +98 -0
- package/generated/RunTelemetry.schema.json +433 -0
- package/generated/SecretMetadata.schema.json +34 -0
- package/generated/Session.schema.json +80 -0
- package/generated/SessionReboundLineage.schema.json +73 -0
- package/generated/SpecPack.schema.json +372 -0
- package/generated/TaskContract.schema.json +501 -0
- package/generated/Thread.schema.json +176 -0
- package/generated/ThreadTurn.schema.json +172 -0
- package/generated/TrustConfig.schema.json +44 -0
- package/generated/WorkProduct.schema.json +60 -0
- package/generated/WorkspaceEnvelope.schema.json +94 -0
- package/package.json +43 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSetupJob",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSetupJob": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"jobId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Setup job id."
|
|
11
|
+
},
|
|
12
|
+
"harness": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"codex",
|
|
16
|
+
"claude",
|
|
17
|
+
"cursor",
|
|
18
|
+
"opencode",
|
|
19
|
+
"raw"
|
|
20
|
+
],
|
|
21
|
+
"description": "Harness ids that have a managed setup flow."
|
|
22
|
+
},
|
|
23
|
+
"action": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"install",
|
|
27
|
+
"login",
|
|
28
|
+
"doctor",
|
|
29
|
+
"store_key"
|
|
30
|
+
],
|
|
31
|
+
"description": "Setup action to perform: install the vendor CLI, log in, run the doctor, or store an API key."
|
|
32
|
+
},
|
|
33
|
+
"state": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"enum": [
|
|
36
|
+
"queued",
|
|
37
|
+
"running",
|
|
38
|
+
"waiting_for_input",
|
|
39
|
+
"succeeded",
|
|
40
|
+
"failed",
|
|
41
|
+
"cancelled",
|
|
42
|
+
"not_supported"
|
|
43
|
+
],
|
|
44
|
+
"description": "Lifecycle state of a setup job, including waiting_for_input (needs user confirmation/input) and not_supported."
|
|
45
|
+
},
|
|
46
|
+
"command": {
|
|
47
|
+
"type": [
|
|
48
|
+
"string",
|
|
49
|
+
"null"
|
|
50
|
+
],
|
|
51
|
+
"default": null,
|
|
52
|
+
"description": "Shell command the job runs, when applicable."
|
|
53
|
+
},
|
|
54
|
+
"guideUrl": {
|
|
55
|
+
"anyOf": [
|
|
56
|
+
{
|
|
57
|
+
"type": "string",
|
|
58
|
+
"format": "uri"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"type": "null"
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
"default": null,
|
|
65
|
+
"description": "Vendor guide URL for manual steps, when applicable."
|
|
66
|
+
},
|
|
67
|
+
"logPath": {
|
|
68
|
+
"type": [
|
|
69
|
+
"string",
|
|
70
|
+
"null"
|
|
71
|
+
],
|
|
72
|
+
"default": null,
|
|
73
|
+
"description": "On-disk log path for the job's output."
|
|
74
|
+
},
|
|
75
|
+
"message": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"description": "Human-readable status message."
|
|
78
|
+
},
|
|
79
|
+
"riskFlags": {
|
|
80
|
+
"type": "array",
|
|
81
|
+
"items": {
|
|
82
|
+
"type": "string"
|
|
83
|
+
},
|
|
84
|
+
"default": [],
|
|
85
|
+
"description": "Risk flags for the action (e.g. network_download, shell_pipe), surfaced before confirmation."
|
|
86
|
+
},
|
|
87
|
+
"requiresConfirmation": {
|
|
88
|
+
"type": "boolean",
|
|
89
|
+
"default": false,
|
|
90
|
+
"description": "Whether the job waits for explicit user confirmation before running."
|
|
91
|
+
},
|
|
92
|
+
"createdAt": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"description": "When the job was created."
|
|
95
|
+
},
|
|
96
|
+
"startedAt": {
|
|
97
|
+
"type": [
|
|
98
|
+
"string",
|
|
99
|
+
"null"
|
|
100
|
+
],
|
|
101
|
+
"default": null,
|
|
102
|
+
"description": "When the job started running."
|
|
103
|
+
},
|
|
104
|
+
"firstOutputAt": {
|
|
105
|
+
"type": [
|
|
106
|
+
"string",
|
|
107
|
+
"null"
|
|
108
|
+
],
|
|
109
|
+
"default": null,
|
|
110
|
+
"description": "When the job produced its first output."
|
|
111
|
+
},
|
|
112
|
+
"lastOutputAt": {
|
|
113
|
+
"type": [
|
|
114
|
+
"string",
|
|
115
|
+
"null"
|
|
116
|
+
],
|
|
117
|
+
"default": null,
|
|
118
|
+
"description": "When the job last produced output."
|
|
119
|
+
},
|
|
120
|
+
"finishedAt": {
|
|
121
|
+
"type": [
|
|
122
|
+
"string",
|
|
123
|
+
"null"
|
|
124
|
+
],
|
|
125
|
+
"default": null,
|
|
126
|
+
"description": "When the job finished."
|
|
127
|
+
},
|
|
128
|
+
"retryCount": {
|
|
129
|
+
"type": "integer",
|
|
130
|
+
"minimum": 0,
|
|
131
|
+
"default": 0,
|
|
132
|
+
"description": "How many times the job was retried."
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"required": [
|
|
136
|
+
"jobId",
|
|
137
|
+
"harness",
|
|
138
|
+
"action",
|
|
139
|
+
"state",
|
|
140
|
+
"message",
|
|
141
|
+
"createdAt"
|
|
142
|
+
],
|
|
143
|
+
"additionalProperties": false,
|
|
144
|
+
"description": "One managed harness setup job (install/login/doctor/store_key) with its lifecycle timestamps."
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
148
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSetupJobConfirmRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSetupJobConfirmRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"confirmed": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": true,
|
|
10
|
+
"description": "Whether the user confirmed the pending action."
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"additionalProperties": false,
|
|
14
|
+
"description": "Request body confirming a setup job that waits for user confirmation."
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
18
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSetupJobCreateRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSetupJobCreateRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"harness": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"enum": [
|
|
10
|
+
"codex",
|
|
11
|
+
"claude",
|
|
12
|
+
"cursor",
|
|
13
|
+
"opencode",
|
|
14
|
+
"raw"
|
|
15
|
+
],
|
|
16
|
+
"description": "Harness ids that have a managed setup flow."
|
|
17
|
+
},
|
|
18
|
+
"action": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"enum": [
|
|
21
|
+
"install",
|
|
22
|
+
"login",
|
|
23
|
+
"doctor",
|
|
24
|
+
"store_key"
|
|
25
|
+
],
|
|
26
|
+
"description": "Setup action to perform: install the vendor CLI, log in, run the doctor, or store an API key."
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": [
|
|
30
|
+
"harness",
|
|
31
|
+
"action"
|
|
32
|
+
],
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"description": "Request body to create a harness setup job."
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
38
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSetupJobEvent",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSetupJobEvent": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"jobId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"minLength": 1,
|
|
10
|
+
"description": "Setup job the event belongs to."
|
|
11
|
+
},
|
|
12
|
+
"seq": {
|
|
13
|
+
"type": "integer",
|
|
14
|
+
"minimum": 0,
|
|
15
|
+
"description": "Monotonic event sequence within the job."
|
|
16
|
+
},
|
|
17
|
+
"time": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "Event timestamp."
|
|
20
|
+
},
|
|
21
|
+
"kind": {
|
|
22
|
+
"type": "string",
|
|
23
|
+
"enum": [
|
|
24
|
+
"status"
|
|
25
|
+
],
|
|
26
|
+
"description": "Event kind; only status is ever produced."
|
|
27
|
+
},
|
|
28
|
+
"state": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": [
|
|
31
|
+
"queued",
|
|
32
|
+
"running",
|
|
33
|
+
"waiting_for_input",
|
|
34
|
+
"succeeded",
|
|
35
|
+
"failed",
|
|
36
|
+
"cancelled",
|
|
37
|
+
"not_supported"
|
|
38
|
+
],
|
|
39
|
+
"description": "Lifecycle state of a setup job, including waiting_for_input (needs user confirmation/input) and not_supported."
|
|
40
|
+
},
|
|
41
|
+
"message": {
|
|
42
|
+
"type": "string",
|
|
43
|
+
"description": "Human-readable status message."
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": [
|
|
47
|
+
"jobId",
|
|
48
|
+
"seq",
|
|
49
|
+
"time",
|
|
50
|
+
"kind",
|
|
51
|
+
"message"
|
|
52
|
+
],
|
|
53
|
+
"additionalProperties": false,
|
|
54
|
+
"description": "Status event on a setup job's event stream."
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
58
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSetupJobListResponse",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSetupJobListResponse": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"jobs": {
|
|
8
|
+
"type": "array",
|
|
9
|
+
"items": {
|
|
10
|
+
"type": "object",
|
|
11
|
+
"properties": {
|
|
12
|
+
"jobId": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"minLength": 1,
|
|
15
|
+
"description": "Setup job id."
|
|
16
|
+
},
|
|
17
|
+
"harness": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": [
|
|
20
|
+
"codex",
|
|
21
|
+
"claude",
|
|
22
|
+
"cursor",
|
|
23
|
+
"opencode",
|
|
24
|
+
"raw"
|
|
25
|
+
],
|
|
26
|
+
"description": "Harness ids that have a managed setup flow."
|
|
27
|
+
},
|
|
28
|
+
"action": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"enum": [
|
|
31
|
+
"install",
|
|
32
|
+
"login",
|
|
33
|
+
"doctor",
|
|
34
|
+
"store_key"
|
|
35
|
+
],
|
|
36
|
+
"description": "Setup action to perform: install the vendor CLI, log in, run the doctor, or store an API key."
|
|
37
|
+
},
|
|
38
|
+
"state": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"enum": [
|
|
41
|
+
"queued",
|
|
42
|
+
"running",
|
|
43
|
+
"waiting_for_input",
|
|
44
|
+
"succeeded",
|
|
45
|
+
"failed",
|
|
46
|
+
"cancelled",
|
|
47
|
+
"not_supported"
|
|
48
|
+
],
|
|
49
|
+
"description": "Lifecycle state of a setup job, including waiting_for_input (needs user confirmation/input) and not_supported."
|
|
50
|
+
},
|
|
51
|
+
"command": {
|
|
52
|
+
"type": [
|
|
53
|
+
"string",
|
|
54
|
+
"null"
|
|
55
|
+
],
|
|
56
|
+
"default": null,
|
|
57
|
+
"description": "Shell command the job runs, when applicable."
|
|
58
|
+
},
|
|
59
|
+
"guideUrl": {
|
|
60
|
+
"anyOf": [
|
|
61
|
+
{
|
|
62
|
+
"type": "string",
|
|
63
|
+
"format": "uri"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
68
|
+
],
|
|
69
|
+
"default": null,
|
|
70
|
+
"description": "Vendor guide URL for manual steps, when applicable."
|
|
71
|
+
},
|
|
72
|
+
"logPath": {
|
|
73
|
+
"type": [
|
|
74
|
+
"string",
|
|
75
|
+
"null"
|
|
76
|
+
],
|
|
77
|
+
"default": null,
|
|
78
|
+
"description": "On-disk log path for the job's output."
|
|
79
|
+
},
|
|
80
|
+
"message": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "Human-readable status message."
|
|
83
|
+
},
|
|
84
|
+
"riskFlags": {
|
|
85
|
+
"type": "array",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"default": [],
|
|
90
|
+
"description": "Risk flags for the action (e.g. network_download, shell_pipe), surfaced before confirmation."
|
|
91
|
+
},
|
|
92
|
+
"requiresConfirmation": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"default": false,
|
|
95
|
+
"description": "Whether the job waits for explicit user confirmation before running."
|
|
96
|
+
},
|
|
97
|
+
"createdAt": {
|
|
98
|
+
"type": "string",
|
|
99
|
+
"description": "When the job was created."
|
|
100
|
+
},
|
|
101
|
+
"startedAt": {
|
|
102
|
+
"type": [
|
|
103
|
+
"string",
|
|
104
|
+
"null"
|
|
105
|
+
],
|
|
106
|
+
"default": null,
|
|
107
|
+
"description": "When the job started running."
|
|
108
|
+
},
|
|
109
|
+
"firstOutputAt": {
|
|
110
|
+
"type": [
|
|
111
|
+
"string",
|
|
112
|
+
"null"
|
|
113
|
+
],
|
|
114
|
+
"default": null,
|
|
115
|
+
"description": "When the job produced its first output."
|
|
116
|
+
},
|
|
117
|
+
"lastOutputAt": {
|
|
118
|
+
"type": [
|
|
119
|
+
"string",
|
|
120
|
+
"null"
|
|
121
|
+
],
|
|
122
|
+
"default": null,
|
|
123
|
+
"description": "When the job last produced output."
|
|
124
|
+
},
|
|
125
|
+
"finishedAt": {
|
|
126
|
+
"type": [
|
|
127
|
+
"string",
|
|
128
|
+
"null"
|
|
129
|
+
],
|
|
130
|
+
"default": null,
|
|
131
|
+
"description": "When the job finished."
|
|
132
|
+
},
|
|
133
|
+
"retryCount": {
|
|
134
|
+
"type": "integer",
|
|
135
|
+
"minimum": 0,
|
|
136
|
+
"default": 0,
|
|
137
|
+
"description": "How many times the job was retried."
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
"required": [
|
|
141
|
+
"jobId",
|
|
142
|
+
"harness",
|
|
143
|
+
"action",
|
|
144
|
+
"state",
|
|
145
|
+
"message",
|
|
146
|
+
"createdAt"
|
|
147
|
+
],
|
|
148
|
+
"additionalProperties": false,
|
|
149
|
+
"description": "One managed harness setup job (install/login/doctor/store_key) with its lifecycle timestamps."
|
|
150
|
+
},
|
|
151
|
+
"description": "All known setup jobs."
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"required": [
|
|
155
|
+
"jobs"
|
|
156
|
+
],
|
|
157
|
+
"additionalProperties": false,
|
|
158
|
+
"description": "Response for listing setup jobs."
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
162
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSpecFreezeRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSpecFreezeRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"prompt": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The user's request the spec captures."
|
|
10
|
+
},
|
|
11
|
+
"scope": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"kind": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "project"
|
|
17
|
+
},
|
|
18
|
+
"root": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Absolute path of the project root."
|
|
21
|
+
},
|
|
22
|
+
"context": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"auto"
|
|
26
|
+
],
|
|
27
|
+
"description": "Project context depth; auto is the only mode.",
|
|
28
|
+
"default": "auto"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"kind",
|
|
33
|
+
"root"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"description": "Project the spec is about."
|
|
37
|
+
},
|
|
38
|
+
"planDir": {
|
|
39
|
+
"type": "string",
|
|
40
|
+
"description": "Directory to write the frozen spec artifacts into."
|
|
41
|
+
},
|
|
42
|
+
"plan": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Plan text to fold into the spec."
|
|
45
|
+
},
|
|
46
|
+
"answers": {
|
|
47
|
+
"type": "array",
|
|
48
|
+
"items": {},
|
|
49
|
+
"description": "Interview answers for the current tier."
|
|
50
|
+
},
|
|
51
|
+
"priorDecisions": {
|
|
52
|
+
"type": "array",
|
|
53
|
+
"items": {
|
|
54
|
+
"type": "object",
|
|
55
|
+
"properties": {
|
|
56
|
+
"question": {
|
|
57
|
+
"type": "string",
|
|
58
|
+
"description": "Question asked in a prior tier."
|
|
59
|
+
},
|
|
60
|
+
"answer": {
|
|
61
|
+
"type": "string",
|
|
62
|
+
"description": "The user's answer."
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"required": [
|
|
66
|
+
"question",
|
|
67
|
+
"answer"
|
|
68
|
+
],
|
|
69
|
+
"additionalProperties": false
|
|
70
|
+
},
|
|
71
|
+
"description": "Accumulated prior-tier interview decisions, folded into the frozen SpecPack's decided tradeoffs."
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"prompt",
|
|
76
|
+
"scope"
|
|
77
|
+
],
|
|
78
|
+
"additionalProperties": false,
|
|
79
|
+
"description": "Request body to freeze a SpecPack from the interview."
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
83
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/ControlSpecQuestionsRequest",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"ControlSpecQuestionsRequest": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"prompt": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The user's request the interview is clarifying."
|
|
10
|
+
},
|
|
11
|
+
"scope": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"properties": {
|
|
14
|
+
"kind": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"const": "project"
|
|
17
|
+
},
|
|
18
|
+
"root": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Absolute path of the project root."
|
|
21
|
+
},
|
|
22
|
+
"context": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"enum": [
|
|
25
|
+
"auto"
|
|
26
|
+
],
|
|
27
|
+
"description": "Project context depth; auto is the only mode.",
|
|
28
|
+
"default": "auto"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"kind",
|
|
33
|
+
"root"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"description": "Project the spec is about."
|
|
37
|
+
},
|
|
38
|
+
"harnesses": {
|
|
39
|
+
"type": "array",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 1,
|
|
43
|
+
"pattern": "\\S",
|
|
44
|
+
"description": "User-supplied string that must contain visible content, not just whitespace."
|
|
45
|
+
},
|
|
46
|
+
"description": "Harnesses eligible to generate the questions."
|
|
47
|
+
},
|
|
48
|
+
"priorDecisions": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"question": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"description": "Question asked in a prior tier."
|
|
56
|
+
},
|
|
57
|
+
"answer": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"description": "The user's answer."
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": [
|
|
63
|
+
"question",
|
|
64
|
+
"answer"
|
|
65
|
+
],
|
|
66
|
+
"additionalProperties": false
|
|
67
|
+
},
|
|
68
|
+
"description": "Already-answered decisions from prior tiers, carried so each round goes deeper instead of re-asking."
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"prompt",
|
|
73
|
+
"scope"
|
|
74
|
+
],
|
|
75
|
+
"additionalProperties": false,
|
|
76
|
+
"description": "Request body to generate the next tier of spec interview questions."
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
80
|
+
}
|