@h-rig/contracts 0.0.6-alpha.9 → 0.0.6-alpha.90
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/index.cjs +5277 -0
- package/dist/index.mjs +5234 -0
- package/dist/src/artifact.d.ts +13 -0
- package/dist/src/baseSchemas.d.ts +57 -0
- package/dist/src/cli-output.d.ts +234 -0
- package/dist/src/cli-output.js +154 -0
- package/dist/src/config.d.ts +316 -0
- package/dist/src/config.js +14 -2
- package/dist/src/conversation.d.ts +50 -0
- package/dist/src/editor.d.ts +25 -0
- package/dist/src/engine.d.ts +2789 -0
- package/dist/src/engine.js +4 -2
- package/dist/src/git.d.ts +144 -0
- package/dist/src/graph.d.ts +39 -0
- package/dist/src/index.d.ts +33 -0
- package/dist/src/index.js +1906 -1219
- package/dist/src/ipc.d.ts +247 -0
- package/dist/src/keybindings.d.ts +71 -0
- package/dist/src/model.d.ts +77 -0
- package/dist/src/orchestration.d.ts +3695 -0
- package/dist/src/pi-session.d.ts +113 -0
- package/dist/src/pi-session.js +1 -0
- package/dist/src/plugin-hooks.d.ts +51 -0
- package/dist/src/plugin-hooks.js +112 -0
- package/dist/src/plugin.d.ts +230 -0
- package/dist/src/policy.d.ts +16 -0
- package/dist/src/project.d.ts +71 -0
- package/dist/src/protocol-version.d.ts +21 -0
- package/dist/src/protocol-version.js +6 -0
- package/dist/src/provider.d.ts +105 -0
- package/dist/src/providerRuntime.d.ts +3949 -0
- package/dist/src/remote.d.ts +326 -0
- package/dist/src/remote.js +4 -2
- package/dist/src/review.d.ts +18 -0
- package/dist/src/rig.d.ts +753 -0
- package/dist/src/rig.js +32 -4
- package/dist/src/run-journal.d.ts +763 -0
- package/dist/src/run-journal.js +1506 -0
- package/dist/src/runtime.d.ts +103 -0
- package/dist/src/runtime.js +4 -2
- package/dist/src/server.d.ts +106 -0
- package/dist/src/serviceFabric.d.ts +62 -0
- package/dist/src/task-source.d.ts +28 -0
- package/dist/src/terminal.d.ts +130 -0
- package/dist/src/validation.d.ts +14 -0
- package/dist/src/workspace.d.ts +204 -0
- package/dist/src/ws.d.ts +733 -0
- package/dist/src/ws.js +27 -3
- package/package.json +6 -3
|
@@ -0,0 +1,753 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const RIG_WS_METHODS: {
|
|
3
|
+
readonly getSnapshot: "rig.getSnapshot";
|
|
4
|
+
readonly replayEvents: "rig.replayEvents";
|
|
5
|
+
readonly listWorkspaces: "rig.listWorkspaces";
|
|
6
|
+
readonly getWorkspace: "rig.getWorkspace";
|
|
7
|
+
readonly getRunLogs: "rig.getRunLogs";
|
|
8
|
+
readonly createAdhocRun: "rig.createAdhocRun";
|
|
9
|
+
readonly createTaskRun: "rig.createTaskRun";
|
|
10
|
+
readonly deleteRun: "rig.deleteRun";
|
|
11
|
+
readonly enqueueTask: "rig.enqueueTask";
|
|
12
|
+
readonly resumeRun: "rig.resumeRun";
|
|
13
|
+
readonly submitRunMessage: "rig.submitRunMessage";
|
|
14
|
+
readonly interruptRun: "rig.interruptRun";
|
|
15
|
+
readonly stopRun: "rig.stopRun";
|
|
16
|
+
readonly resolveApproval: "rig.resolveApproval";
|
|
17
|
+
readonly resolveUserInput: "rig.resolveUserInput";
|
|
18
|
+
readonly getTaskArtifacts: "rig.getTaskArtifacts";
|
|
19
|
+
readonly ackRunSteering: "rig.ackRunSteering";
|
|
20
|
+
};
|
|
21
|
+
export declare const RIG_WS_CHANNELS: {
|
|
22
|
+
readonly snapshotInvalidated: "rig.snapshotInvalidated";
|
|
23
|
+
readonly event: "rig.event";
|
|
24
|
+
readonly runLogAppended: "rig.runLogAppended";
|
|
25
|
+
readonly runSteering: "rig.runSteering";
|
|
26
|
+
};
|
|
27
|
+
export declare const RigSnapshotInvalidatedPayload: Schema.Struct<{
|
|
28
|
+
readonly sequence: Schema.Int;
|
|
29
|
+
readonly updatedAt: Schema.String;
|
|
30
|
+
readonly reason: Schema.optional<Schema.Trim>;
|
|
31
|
+
}>;
|
|
32
|
+
export type RigSnapshotInvalidatedPayload = typeof RigSnapshotInvalidatedPayload.Type;
|
|
33
|
+
export declare const RigSnapshot: Schema.Struct<{
|
|
34
|
+
readonly snapshotSequence: Schema.Int;
|
|
35
|
+
readonly workspaces: Schema.$Array<Schema.Struct<{
|
|
36
|
+
readonly id: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
37
|
+
readonly title: Schema.Trim;
|
|
38
|
+
readonly rootPath: Schema.Trim;
|
|
39
|
+
readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
|
|
40
|
+
readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
|
|
41
|
+
readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
42
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
43
|
+
readonly topology: Schema.optional<Schema.Struct<{
|
|
44
|
+
readonly compiledAt: Schema.String;
|
|
45
|
+
readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
|
|
46
|
+
readonly manifestCount: Schema.Number;
|
|
47
|
+
readonly serviceCount: Schema.Number;
|
|
48
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
49
|
+
readonly name: Schema.Trim;
|
|
50
|
+
readonly relativeRootPath: Schema.Trim;
|
|
51
|
+
readonly runtime: Schema.Trim;
|
|
52
|
+
readonly port: Schema.NullOr<Schema.Number>;
|
|
53
|
+
readonly healthcheck: Schema.NullOr<Schema.Trim>;
|
|
54
|
+
readonly sourceOfTruth: Schema.Struct<{
|
|
55
|
+
readonly code: Schema.NullOr<Schema.Trim>;
|
|
56
|
+
readonly tests: Schema.NullOr<Schema.Trim>;
|
|
57
|
+
readonly infra: Schema.NullOr<Schema.Trim>;
|
|
58
|
+
readonly deploy: Schema.NullOr<Schema.Trim>;
|
|
59
|
+
readonly dependencies: Schema.NullOr<Schema.Trim>;
|
|
60
|
+
}>;
|
|
61
|
+
readonly splitReadyChecklist: Schema.$Array<Schema.Trim>;
|
|
62
|
+
}>>;
|
|
63
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
64
|
+
}>>;
|
|
65
|
+
readonly remoteFleet: Schema.optional<Schema.Struct<{
|
|
66
|
+
readonly updatedAt: Schema.String;
|
|
67
|
+
readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
|
|
68
|
+
readonly manifestCount: Schema.Number;
|
|
69
|
+
readonly hostCount: Schema.Number;
|
|
70
|
+
readonly onlineHostCount: Schema.Number;
|
|
71
|
+
readonly hosts: Schema.$Array<Schema.Struct<{
|
|
72
|
+
readonly id: Schema.Trim;
|
|
73
|
+
readonly name: Schema.Trim;
|
|
74
|
+
readonly baseUrl: Schema.Trim;
|
|
75
|
+
readonly workspacePath: Schema.NullOr<Schema.Trim>;
|
|
76
|
+
readonly transport: Schema.Trim;
|
|
77
|
+
readonly hostname: Schema.NullOr<Schema.Trim>;
|
|
78
|
+
readonly region: Schema.NullOr<Schema.Trim>;
|
|
79
|
+
readonly labels: Schema.$Array<Schema.Trim>;
|
|
80
|
+
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
81
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
|
|
82
|
+
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
83
|
+
readonly currentLeaseCount: Schema.Number;
|
|
84
|
+
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
85
|
+
readonly registeredAt: Schema.String;
|
|
86
|
+
readonly manifestPath: Schema.Trim;
|
|
87
|
+
}>>;
|
|
88
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
89
|
+
}>>;
|
|
90
|
+
readonly serviceFabric: Schema.optional<Schema.Struct<{
|
|
91
|
+
readonly updatedAt: Schema.String;
|
|
92
|
+
readonly status: Schema.Literals<readonly ["empty", "booting", "ready", "degraded", "stopped"]>;
|
|
93
|
+
readonly serviceCount: Schema.Number;
|
|
94
|
+
readonly healthyServiceCount: Schema.Number;
|
|
95
|
+
readonly stateDir: Schema.Trim;
|
|
96
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
97
|
+
readonly name: Schema.Trim;
|
|
98
|
+
readonly relativeRootPath: Schema.Trim;
|
|
99
|
+
readonly mode: Schema.Literals<readonly ["stub", "process"]>;
|
|
100
|
+
readonly port: Schema.Number;
|
|
101
|
+
readonly healthcheck: Schema.Trim;
|
|
102
|
+
readonly routePrefix: Schema.NullOr<Schema.Trim>;
|
|
103
|
+
readonly status: Schema.Literals<readonly ["planned", "booting", "healthy", "degraded", "failed", "stopped"]>;
|
|
104
|
+
readonly pid: Schema.NullOr<Schema.Number>;
|
|
105
|
+
readonly logPath: Schema.NullOr<Schema.Trim>;
|
|
106
|
+
}>>;
|
|
107
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
108
|
+
}>>;
|
|
109
|
+
readonly createdAt: Schema.String;
|
|
110
|
+
readonly updatedAt: Schema.String;
|
|
111
|
+
}>>;
|
|
112
|
+
readonly graphs: Schema.$Array<Schema.Struct<{
|
|
113
|
+
readonly id: Schema.brand<Schema.Trim, "GraphId">;
|
|
114
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
115
|
+
readonly title: Schema.Trim;
|
|
116
|
+
readonly description: Schema.NullOr<Schema.String>;
|
|
117
|
+
readonly createdAt: Schema.String;
|
|
118
|
+
readonly updatedAt: Schema.String;
|
|
119
|
+
}>>;
|
|
120
|
+
readonly tasks: Schema.$Array<Schema.Struct<{
|
|
121
|
+
readonly id: Schema.brand<Schema.Trim, "TaskId">;
|
|
122
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
123
|
+
readonly graphId: Schema.NullOr<Schema.brand<Schema.Trim, "GraphId">>;
|
|
124
|
+
readonly externalId: Schema.NullOr<Schema.Trim>;
|
|
125
|
+
readonly title: Schema.Trim;
|
|
126
|
+
readonly description: Schema.String;
|
|
127
|
+
readonly status: Schema.Literals<readonly ["draft", "open", "ready", "queued", "running", "in_progress", "under_review", "blocked", "unknown", "completed", "failed", "cancelled", "closed"]>;
|
|
128
|
+
readonly priority: Schema.NullOr<Schema.Int>;
|
|
129
|
+
readonly role: Schema.NullOr<Schema.Trim>;
|
|
130
|
+
readonly scope: Schema.$Array<Schema.Trim>;
|
|
131
|
+
readonly validationKeys: Schema.$Array<Schema.Trim>;
|
|
132
|
+
readonly sourceIssueId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
133
|
+
readonly dependencies: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
134
|
+
readonly parentChildDeps: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
135
|
+
readonly metadata: Schema.Unknown;
|
|
136
|
+
readonly createdAt: Schema.String;
|
|
137
|
+
readonly updatedAt: Schema.String;
|
|
138
|
+
}>>;
|
|
139
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
140
|
+
readonly id: Schema.brand<Schema.Trim, "RunId">;
|
|
141
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
142
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
143
|
+
readonly title: Schema.Trim;
|
|
144
|
+
readonly runKind: Schema.Literals<readonly ["adhoc", "task", "batch", "validation", "review"]>;
|
|
145
|
+
readonly mode: Schema.Literals<readonly ["interactive", "autonomous", "supervised"]>;
|
|
146
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
147
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
148
|
+
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
149
|
+
readonly runtimeAdapter: Schema.Trim;
|
|
150
|
+
readonly model: Schema.NullOr<Schema.Trim>;
|
|
151
|
+
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
152
|
+
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
153
|
+
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
154
|
+
readonly remoteLeaseId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
155
|
+
readonly remoteLeaseClaimedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
156
|
+
readonly activeRuntimeId: Schema.NullOr<Schema.brand<Schema.Trim, "EngineRuntimeId">>;
|
|
157
|
+
readonly latestMessageId: Schema.NullOr<Schema.Trim>;
|
|
158
|
+
readonly pendingApprovalCount: Schema.Int;
|
|
159
|
+
readonly pendingUserInputCount: Schema.Int;
|
|
160
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
161
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
162
|
+
readonly errorText: Schema.NullOr<Schema.String>;
|
|
163
|
+
readonly createdAt: Schema.String;
|
|
164
|
+
readonly updatedAt: Schema.String;
|
|
165
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
166
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
167
|
+
}>>;
|
|
168
|
+
readonly runtimes: Schema.$Array<Schema.Struct<{
|
|
169
|
+
readonly id: Schema.brand<Schema.Trim, "EngineRuntimeId">;
|
|
170
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
171
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
172
|
+
readonly adapterKind: Schema.Trim;
|
|
173
|
+
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
174
|
+
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
175
|
+
readonly status: Schema.Literals<readonly ["prepared", "starting", "running", "interrupted", "exited", "failed", "destroyed"]>;
|
|
176
|
+
readonly sandboxMode: Schema.Literals<readonly ["read-only", "workspace-write", "danger-full-access"]>;
|
|
177
|
+
readonly isolationMode: Schema.Literals<readonly ["none", "env", "worktree"]>;
|
|
178
|
+
readonly workspaceDir: Schema.NullOr<Schema.Trim>;
|
|
179
|
+
readonly homeDir: Schema.NullOr<Schema.Trim>;
|
|
180
|
+
readonly tmpDir: Schema.NullOr<Schema.Trim>;
|
|
181
|
+
readonly cacheDir: Schema.NullOr<Schema.Trim>;
|
|
182
|
+
readonly logsDir: Schema.NullOr<Schema.Trim>;
|
|
183
|
+
readonly stateDir: Schema.NullOr<Schema.Trim>;
|
|
184
|
+
readonly sessionDir: Schema.NullOr<Schema.Trim>;
|
|
185
|
+
readonly sessionLogPath: Schema.NullOr<Schema.Trim>;
|
|
186
|
+
readonly pid: Schema.NullOr<Schema.Int>;
|
|
187
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
188
|
+
readonly updatedAt: Schema.String;
|
|
189
|
+
readonly exitedAt: Schema.NullOr<Schema.String>;
|
|
190
|
+
}>>;
|
|
191
|
+
readonly conversations: Schema.$Array<Schema.Struct<{
|
|
192
|
+
readonly id: Schema.brand<Schema.Trim, "ConversationId">;
|
|
193
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
194
|
+
readonly title: Schema.Trim;
|
|
195
|
+
readonly createdAt: Schema.String;
|
|
196
|
+
readonly updatedAt: Schema.String;
|
|
197
|
+
}>>;
|
|
198
|
+
readonly messages: Schema.$Array<Schema.Struct<{
|
|
199
|
+
readonly id: Schema.brand<Schema.Trim, "MessageId">;
|
|
200
|
+
readonly conversationId: Schema.brand<Schema.Trim, "ConversationId">;
|
|
201
|
+
readonly role: Schema.Literals<readonly ["user", "assistant", "system"]>;
|
|
202
|
+
readonly text: Schema.String;
|
|
203
|
+
readonly attachments: Schema.$Array<Schema.Unknown>;
|
|
204
|
+
readonly state: Schema.Literals<readonly ["streaming", "completed", "interrupted", "errored"]>;
|
|
205
|
+
readonly createdAt: Schema.String;
|
|
206
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
207
|
+
}>>;
|
|
208
|
+
readonly actions: Schema.$Array<Schema.Struct<{
|
|
209
|
+
readonly id: Schema.brand<Schema.Trim, "ActionId">;
|
|
210
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
211
|
+
readonly messageId: Schema.NullOr<Schema.brand<Schema.Trim, "MessageId">>;
|
|
212
|
+
readonly actionType: Schema.Trim;
|
|
213
|
+
readonly title: Schema.Trim;
|
|
214
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
215
|
+
readonly state: Schema.Trim;
|
|
216
|
+
readonly payload: Schema.Unknown;
|
|
217
|
+
readonly startedAt: Schema.String;
|
|
218
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
219
|
+
}>>;
|
|
220
|
+
readonly logs: Schema.$Array<Schema.Struct<{
|
|
221
|
+
readonly id: Schema.Trim;
|
|
222
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
223
|
+
readonly title: Schema.Trim;
|
|
224
|
+
readonly detail: Schema.NullOr<Schema.String>;
|
|
225
|
+
readonly tone: Schema.Literals<readonly ["thinking", "tool", "info", "error"]>;
|
|
226
|
+
readonly status: Schema.NullOr<Schema.Trim>;
|
|
227
|
+
readonly payload: Schema.Unknown;
|
|
228
|
+
readonly createdAt: Schema.String;
|
|
229
|
+
}>>;
|
|
230
|
+
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
231
|
+
readonly id: Schema.Trim;
|
|
232
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
233
|
+
readonly actionId: Schema.NullOr<Schema.Trim>;
|
|
234
|
+
readonly requestKind: Schema.Trim;
|
|
235
|
+
readonly status: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
236
|
+
readonly payload: Schema.Unknown;
|
|
237
|
+
readonly createdAt: Schema.String;
|
|
238
|
+
readonly resolvedAt: Schema.NullOr<Schema.String>;
|
|
239
|
+
}>>;
|
|
240
|
+
readonly userInputs: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
241
|
+
readonly id: Schema.Trim;
|
|
242
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
243
|
+
readonly status: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
244
|
+
readonly payload: Schema.Unknown;
|
|
245
|
+
readonly createdAt: Schema.String;
|
|
246
|
+
readonly resolvedAt: Schema.NullOr<Schema.String>;
|
|
247
|
+
}>>>;
|
|
248
|
+
readonly validations: Schema.$Array<Schema.Struct<{
|
|
249
|
+
readonly id: Schema.brand<Schema.Trim, "ValidationResultId">;
|
|
250
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
251
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
252
|
+
readonly validatorKey: Schema.Trim;
|
|
253
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "passed", "failed", "skipped"]>;
|
|
254
|
+
readonly output: Schema.Unknown;
|
|
255
|
+
readonly startedAt: Schema.String;
|
|
256
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
257
|
+
}>>;
|
|
258
|
+
readonly reviews: Schema.$Array<Schema.Struct<{
|
|
259
|
+
readonly id: Schema.brand<Schema.Trim, "ReviewResultId">;
|
|
260
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
261
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
262
|
+
readonly provider: Schema.Trim;
|
|
263
|
+
readonly mode: Schema.Literals<readonly ["off", "advisory", "required"]>;
|
|
264
|
+
readonly status: Schema.Literals<readonly ["pending", "running", "approved", "rejected", "error"]>;
|
|
265
|
+
readonly summary: Schema.NullOr<Schema.String>;
|
|
266
|
+
readonly output: Schema.Unknown;
|
|
267
|
+
readonly createdAt: Schema.String;
|
|
268
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
269
|
+
}>>;
|
|
270
|
+
readonly artifacts: Schema.$Array<Schema.Struct<{
|
|
271
|
+
readonly id: Schema.brand<Schema.Trim, "ArtifactId">;
|
|
272
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
273
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
274
|
+
readonly kind: Schema.Trim;
|
|
275
|
+
readonly label: Schema.Trim;
|
|
276
|
+
readonly path: Schema.NullOr<Schema.Trim>;
|
|
277
|
+
readonly url: Schema.NullOr<Schema.Trim>;
|
|
278
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
279
|
+
readonly createdAt: Schema.String;
|
|
280
|
+
}>>;
|
|
281
|
+
readonly policyDecisions: Schema.$Array<Schema.Struct<{
|
|
282
|
+
readonly id: Schema.Trim;
|
|
283
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
284
|
+
readonly actionId: Schema.NullOr<Schema.brand<Schema.Trim, "ActionId">>;
|
|
285
|
+
readonly decision: Schema.Literals<readonly ["allow", "warn", "block"]>;
|
|
286
|
+
readonly mode: Schema.Literals<readonly ["off", "observe", "enforce"]>;
|
|
287
|
+
readonly matchedRules: Schema.$Array<Schema.Trim>;
|
|
288
|
+
readonly reason: Schema.String;
|
|
289
|
+
readonly createdAt: Schema.String;
|
|
290
|
+
}>>;
|
|
291
|
+
readonly queue: Schema.$Array<Schema.Struct<{
|
|
292
|
+
readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
|
|
293
|
+
readonly score: Schema.Int;
|
|
294
|
+
readonly unblockCount: Schema.Int;
|
|
295
|
+
readonly position: Schema.Int;
|
|
296
|
+
}>>;
|
|
297
|
+
readonly worktrees: Schema.$Array<Schema.Struct<{
|
|
298
|
+
readonly id: Schema.brand<Schema.Trim, "WorktreeId">;
|
|
299
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
300
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
301
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
302
|
+
readonly branchName: Schema.Trim;
|
|
303
|
+
readonly path: Schema.Trim;
|
|
304
|
+
readonly status: Schema.Trim;
|
|
305
|
+
readonly createdAt: Schema.String;
|
|
306
|
+
readonly cleanedAt: Schema.NullOr<Schema.String>;
|
|
307
|
+
}>>;
|
|
308
|
+
readonly remoteEndpoints: Schema.$Array<Schema.Struct<{
|
|
309
|
+
readonly id: Schema.brand<Schema.Trim, "RemoteEndpointId">;
|
|
310
|
+
readonly alias: Schema.Trim;
|
|
311
|
+
readonly host: Schema.Trim;
|
|
312
|
+
readonly port: Schema.Int;
|
|
313
|
+
readonly token: Schema.String;
|
|
314
|
+
readonly tokenConfigured: Schema.optional<Schema.Boolean>;
|
|
315
|
+
readonly autoConnect: Schema.optional<Schema.Boolean>;
|
|
316
|
+
readonly addedAt: Schema.String;
|
|
317
|
+
readonly lastConnectedAt: Schema.NullOr<Schema.String>;
|
|
318
|
+
}>>;
|
|
319
|
+
readonly remoteConnections: Schema.$Array<Schema.Struct<{
|
|
320
|
+
readonly endpointId: Schema.brand<Schema.Trim, "RemoteEndpointId">;
|
|
321
|
+
readonly status: Schema.Literals<readonly ["disconnected", "connecting", "authenticating", "connected", "reconnecting", "error"]>;
|
|
322
|
+
readonly error: Schema.NullOr<Schema.String>;
|
|
323
|
+
readonly connectedAt: Schema.NullOr<Schema.String>;
|
|
324
|
+
readonly tokenExpiresAt: Schema.NullOr<Schema.String>;
|
|
325
|
+
readonly latencyMs: Schema.NullOr<Schema.Number>;
|
|
326
|
+
readonly subscribedEvents: Schema.$Array<Schema.String>;
|
|
327
|
+
}>>;
|
|
328
|
+
readonly remoteOrchestrations: Schema.$Array<Schema.Struct<{
|
|
329
|
+
readonly orchestrationId: Schema.Trim;
|
|
330
|
+
readonly endpointId: Schema.brand<Schema.Trim, "RemoteEndpointId">;
|
|
331
|
+
readonly status: Schema.Literals<readonly ["running", "paused", "stopped", "completed"]>;
|
|
332
|
+
readonly totalTasks: Schema.Int;
|
|
333
|
+
readonly totalGroups: Schema.Int;
|
|
334
|
+
readonly maxParallelism: Schema.Int;
|
|
335
|
+
readonly startedAt: Schema.String;
|
|
336
|
+
}>>;
|
|
337
|
+
readonly updatedAt: Schema.String;
|
|
338
|
+
}>;
|
|
339
|
+
export type RigSnapshot = typeof RigSnapshot.Type;
|
|
340
|
+
export declare const RigGetSnapshotInput: Schema.Struct<{}>;
|
|
341
|
+
export type RigGetSnapshotInput = typeof RigGetSnapshotInput.Type;
|
|
342
|
+
export declare const RigReplayEventsInput: Schema.Struct<{
|
|
343
|
+
readonly fromSequenceExclusive: Schema.Int;
|
|
344
|
+
}>;
|
|
345
|
+
export type RigReplayEventsInput = typeof RigReplayEventsInput.Type;
|
|
346
|
+
export declare const RigReplayEventsResult: Schema.$Array<Schema.Struct<{
|
|
347
|
+
readonly id: Schema.brand<Schema.Trim, "EventId">;
|
|
348
|
+
readonly sequence: Schema.Int;
|
|
349
|
+
readonly createdAt: Schema.String;
|
|
350
|
+
readonly type: Schema.Trim;
|
|
351
|
+
readonly aggregateId: Schema.Trim;
|
|
352
|
+
readonly payload: Schema.Unknown;
|
|
353
|
+
}>>;
|
|
354
|
+
export type RigReplayEventsResult = typeof RigReplayEventsResult.Type;
|
|
355
|
+
export declare const RigListWorkspacesInput: Schema.Struct<{}>;
|
|
356
|
+
export type RigListWorkspacesInput = typeof RigListWorkspacesInput.Type;
|
|
357
|
+
export declare const RigListWorkspacesResult: Schema.$Array<Schema.Struct<{
|
|
358
|
+
readonly id: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
359
|
+
readonly title: Schema.Trim;
|
|
360
|
+
readonly rootPath: Schema.Trim;
|
|
361
|
+
readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
|
|
362
|
+
readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
|
|
363
|
+
readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
364
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
365
|
+
readonly topology: Schema.optional<Schema.Struct<{
|
|
366
|
+
readonly compiledAt: Schema.String;
|
|
367
|
+
readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
|
|
368
|
+
readonly manifestCount: Schema.Number;
|
|
369
|
+
readonly serviceCount: Schema.Number;
|
|
370
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
371
|
+
readonly name: Schema.Trim;
|
|
372
|
+
readonly relativeRootPath: Schema.Trim;
|
|
373
|
+
readonly runtime: Schema.Trim;
|
|
374
|
+
readonly port: Schema.NullOr<Schema.Number>;
|
|
375
|
+
readonly healthcheck: Schema.NullOr<Schema.Trim>;
|
|
376
|
+
readonly sourceOfTruth: Schema.Struct<{
|
|
377
|
+
readonly code: Schema.NullOr<Schema.Trim>;
|
|
378
|
+
readonly tests: Schema.NullOr<Schema.Trim>;
|
|
379
|
+
readonly infra: Schema.NullOr<Schema.Trim>;
|
|
380
|
+
readonly deploy: Schema.NullOr<Schema.Trim>;
|
|
381
|
+
readonly dependencies: Schema.NullOr<Schema.Trim>;
|
|
382
|
+
}>;
|
|
383
|
+
readonly splitReadyChecklist: Schema.$Array<Schema.Trim>;
|
|
384
|
+
}>>;
|
|
385
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
386
|
+
}>>;
|
|
387
|
+
readonly remoteFleet: Schema.optional<Schema.Struct<{
|
|
388
|
+
readonly updatedAt: Schema.String;
|
|
389
|
+
readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
|
|
390
|
+
readonly manifestCount: Schema.Number;
|
|
391
|
+
readonly hostCount: Schema.Number;
|
|
392
|
+
readonly onlineHostCount: Schema.Number;
|
|
393
|
+
readonly hosts: Schema.$Array<Schema.Struct<{
|
|
394
|
+
readonly id: Schema.Trim;
|
|
395
|
+
readonly name: Schema.Trim;
|
|
396
|
+
readonly baseUrl: Schema.Trim;
|
|
397
|
+
readonly workspacePath: Schema.NullOr<Schema.Trim>;
|
|
398
|
+
readonly transport: Schema.Trim;
|
|
399
|
+
readonly hostname: Schema.NullOr<Schema.Trim>;
|
|
400
|
+
readonly region: Schema.NullOr<Schema.Trim>;
|
|
401
|
+
readonly labels: Schema.$Array<Schema.Trim>;
|
|
402
|
+
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
403
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
|
|
404
|
+
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
405
|
+
readonly currentLeaseCount: Schema.Number;
|
|
406
|
+
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
407
|
+
readonly registeredAt: Schema.String;
|
|
408
|
+
readonly manifestPath: Schema.Trim;
|
|
409
|
+
}>>;
|
|
410
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
411
|
+
}>>;
|
|
412
|
+
readonly serviceFabric: Schema.optional<Schema.Struct<{
|
|
413
|
+
readonly updatedAt: Schema.String;
|
|
414
|
+
readonly status: Schema.Literals<readonly ["empty", "booting", "ready", "degraded", "stopped"]>;
|
|
415
|
+
readonly serviceCount: Schema.Number;
|
|
416
|
+
readonly healthyServiceCount: Schema.Number;
|
|
417
|
+
readonly stateDir: Schema.Trim;
|
|
418
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
419
|
+
readonly name: Schema.Trim;
|
|
420
|
+
readonly relativeRootPath: Schema.Trim;
|
|
421
|
+
readonly mode: Schema.Literals<readonly ["stub", "process"]>;
|
|
422
|
+
readonly port: Schema.Number;
|
|
423
|
+
readonly healthcheck: Schema.Trim;
|
|
424
|
+
readonly routePrefix: Schema.NullOr<Schema.Trim>;
|
|
425
|
+
readonly status: Schema.Literals<readonly ["planned", "booting", "healthy", "degraded", "failed", "stopped"]>;
|
|
426
|
+
readonly pid: Schema.NullOr<Schema.Number>;
|
|
427
|
+
readonly logPath: Schema.NullOr<Schema.Trim>;
|
|
428
|
+
}>>;
|
|
429
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
430
|
+
}>>;
|
|
431
|
+
readonly createdAt: Schema.String;
|
|
432
|
+
readonly updatedAt: Schema.String;
|
|
433
|
+
}>>;
|
|
434
|
+
export type RigListWorkspacesResult = typeof RigListWorkspacesResult.Type;
|
|
435
|
+
export declare const RigGetWorkspaceInput: Schema.Struct<{
|
|
436
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
437
|
+
}>;
|
|
438
|
+
export type RigGetWorkspaceInput = typeof RigGetWorkspaceInput.Type;
|
|
439
|
+
export declare const RigGetWorkspaceResult: Schema.Struct<{
|
|
440
|
+
readonly workspace: Schema.NullOr<Schema.Struct<{
|
|
441
|
+
readonly id: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
442
|
+
readonly title: Schema.Trim;
|
|
443
|
+
readonly rootPath: Schema.Trim;
|
|
444
|
+
readonly sourceKind: Schema.Literals<readonly ["native", "rig-import", "manual", "remote"]>;
|
|
445
|
+
readonly defaultRuntimeAdapter: Schema.optional<Schema.Trim>;
|
|
446
|
+
readonly defaultProvider: Schema.optional<Schema.Literals<readonly ["codex", "claude"]>>;
|
|
447
|
+
readonly defaultModel: Schema.NullOr<Schema.Trim>;
|
|
448
|
+
readonly topology: Schema.optional<Schema.Struct<{
|
|
449
|
+
readonly compiledAt: Schema.String;
|
|
450
|
+
readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
|
|
451
|
+
readonly manifestCount: Schema.Number;
|
|
452
|
+
readonly serviceCount: Schema.Number;
|
|
453
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
454
|
+
readonly name: Schema.Trim;
|
|
455
|
+
readonly relativeRootPath: Schema.Trim;
|
|
456
|
+
readonly runtime: Schema.Trim;
|
|
457
|
+
readonly port: Schema.NullOr<Schema.Number>;
|
|
458
|
+
readonly healthcheck: Schema.NullOr<Schema.Trim>;
|
|
459
|
+
readonly sourceOfTruth: Schema.Struct<{
|
|
460
|
+
readonly code: Schema.NullOr<Schema.Trim>;
|
|
461
|
+
readonly tests: Schema.NullOr<Schema.Trim>;
|
|
462
|
+
readonly infra: Schema.NullOr<Schema.Trim>;
|
|
463
|
+
readonly deploy: Schema.NullOr<Schema.Trim>;
|
|
464
|
+
readonly dependencies: Schema.NullOr<Schema.Trim>;
|
|
465
|
+
}>;
|
|
466
|
+
readonly splitReadyChecklist: Schema.$Array<Schema.Trim>;
|
|
467
|
+
}>>;
|
|
468
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
469
|
+
}>>;
|
|
470
|
+
readonly remoteFleet: Schema.optional<Schema.Struct<{
|
|
471
|
+
readonly updatedAt: Schema.String;
|
|
472
|
+
readonly status: Schema.Literals<readonly ["empty", "ready", "degraded"]>;
|
|
473
|
+
readonly manifestCount: Schema.Number;
|
|
474
|
+
readonly hostCount: Schema.Number;
|
|
475
|
+
readonly onlineHostCount: Schema.Number;
|
|
476
|
+
readonly hosts: Schema.$Array<Schema.Struct<{
|
|
477
|
+
readonly id: Schema.Trim;
|
|
478
|
+
readonly name: Schema.Trim;
|
|
479
|
+
readonly baseUrl: Schema.Trim;
|
|
480
|
+
readonly workspacePath: Schema.NullOr<Schema.Trim>;
|
|
481
|
+
readonly transport: Schema.Trim;
|
|
482
|
+
readonly hostname: Schema.NullOr<Schema.Trim>;
|
|
483
|
+
readonly region: Schema.NullOr<Schema.Trim>;
|
|
484
|
+
readonly labels: Schema.$Array<Schema.Trim>;
|
|
485
|
+
readonly capabilities: Schema.$Array<Schema.Trim>;
|
|
486
|
+
readonly runtimeAdapters: Schema.$Array<Schema.Trim>;
|
|
487
|
+
readonly status: Schema.Literals<readonly ["registering", "ready", "busy", "degraded", "draining", "offline", "quarantined"]>;
|
|
488
|
+
readonly currentLeaseCount: Schema.Number;
|
|
489
|
+
readonly lastHeartbeatAt: Schema.NullOr<Schema.String>;
|
|
490
|
+
readonly registeredAt: Schema.String;
|
|
491
|
+
readonly manifestPath: Schema.Trim;
|
|
492
|
+
}>>;
|
|
493
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
494
|
+
}>>;
|
|
495
|
+
readonly serviceFabric: Schema.optional<Schema.Struct<{
|
|
496
|
+
readonly updatedAt: Schema.String;
|
|
497
|
+
readonly status: Schema.Literals<readonly ["empty", "booting", "ready", "degraded", "stopped"]>;
|
|
498
|
+
readonly serviceCount: Schema.Number;
|
|
499
|
+
readonly healthyServiceCount: Schema.Number;
|
|
500
|
+
readonly stateDir: Schema.Trim;
|
|
501
|
+
readonly services: Schema.$Array<Schema.Struct<{
|
|
502
|
+
readonly name: Schema.Trim;
|
|
503
|
+
readonly relativeRootPath: Schema.Trim;
|
|
504
|
+
readonly mode: Schema.Literals<readonly ["stub", "process"]>;
|
|
505
|
+
readonly port: Schema.Number;
|
|
506
|
+
readonly healthcheck: Schema.Trim;
|
|
507
|
+
readonly routePrefix: Schema.NullOr<Schema.Trim>;
|
|
508
|
+
readonly status: Schema.Literals<readonly ["planned", "booting", "healthy", "degraded", "failed", "stopped"]>;
|
|
509
|
+
readonly pid: Schema.NullOr<Schema.Number>;
|
|
510
|
+
readonly logPath: Schema.NullOr<Schema.Trim>;
|
|
511
|
+
}>>;
|
|
512
|
+
readonly warnings: Schema.$Array<Schema.String>;
|
|
513
|
+
}>>;
|
|
514
|
+
readonly createdAt: Schema.String;
|
|
515
|
+
readonly updatedAt: Schema.String;
|
|
516
|
+
}>>;
|
|
517
|
+
readonly tasks: Schema.$Array<Schema.Struct<{
|
|
518
|
+
readonly id: Schema.brand<Schema.Trim, "TaskId">;
|
|
519
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
520
|
+
readonly graphId: Schema.NullOr<Schema.brand<Schema.Trim, "GraphId">>;
|
|
521
|
+
readonly externalId: Schema.NullOr<Schema.Trim>;
|
|
522
|
+
readonly title: Schema.Trim;
|
|
523
|
+
readonly description: Schema.String;
|
|
524
|
+
readonly status: Schema.Literals<readonly ["draft", "open", "ready", "queued", "running", "in_progress", "under_review", "blocked", "unknown", "completed", "failed", "cancelled", "closed"]>;
|
|
525
|
+
readonly priority: Schema.NullOr<Schema.Int>;
|
|
526
|
+
readonly role: Schema.NullOr<Schema.Trim>;
|
|
527
|
+
readonly scope: Schema.$Array<Schema.Trim>;
|
|
528
|
+
readonly validationKeys: Schema.$Array<Schema.Trim>;
|
|
529
|
+
readonly sourceIssueId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
530
|
+
readonly dependencies: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
531
|
+
readonly parentChildDeps: Schema.optional<Schema.$Array<Schema.Trim>>;
|
|
532
|
+
readonly metadata: Schema.Unknown;
|
|
533
|
+
readonly createdAt: Schema.String;
|
|
534
|
+
readonly updatedAt: Schema.String;
|
|
535
|
+
}>>;
|
|
536
|
+
readonly runs: Schema.$Array<Schema.Struct<{
|
|
537
|
+
readonly id: Schema.brand<Schema.Trim, "RunId">;
|
|
538
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
539
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
540
|
+
readonly title: Schema.Trim;
|
|
541
|
+
readonly runKind: Schema.Literals<readonly ["adhoc", "task", "batch", "validation", "review"]>;
|
|
542
|
+
readonly mode: Schema.Literals<readonly ["interactive", "autonomous", "supervised"]>;
|
|
543
|
+
readonly runtimeMode: Schema.Literals<readonly ["approval-required", "full-access"]>;
|
|
544
|
+
readonly interactionMode: Schema.Literals<readonly ["default", "plan"]>;
|
|
545
|
+
readonly status: Schema.Literals<readonly ["created", "queued", "preparing", "running", "waiting-approval", "waiting-user-input", "paused", "validating", "reviewing", "closing-out", "needs-attention", "completed", "failed", "stopped"]>;
|
|
546
|
+
readonly runtimeAdapter: Schema.Trim;
|
|
547
|
+
readonly model: Schema.NullOr<Schema.Trim>;
|
|
548
|
+
readonly initialPrompt: Schema.NullOr<Schema.String>;
|
|
549
|
+
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
550
|
+
readonly remoteHostId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
551
|
+
readonly remoteLeaseId: Schema.optional<Schema.NullOr<Schema.Trim>>;
|
|
552
|
+
readonly remoteLeaseClaimedAt: Schema.optional<Schema.NullOr<Schema.String>>;
|
|
553
|
+
readonly activeRuntimeId: Schema.NullOr<Schema.brand<Schema.Trim, "EngineRuntimeId">>;
|
|
554
|
+
readonly latestMessageId: Schema.NullOr<Schema.Trim>;
|
|
555
|
+
readonly pendingApprovalCount: Schema.Int;
|
|
556
|
+
readonly pendingUserInputCount: Schema.Int;
|
|
557
|
+
readonly branch: Schema.NullOr<Schema.Trim>;
|
|
558
|
+
readonly worktreePath: Schema.NullOr<Schema.Trim>;
|
|
559
|
+
readonly errorText: Schema.NullOr<Schema.String>;
|
|
560
|
+
readonly createdAt: Schema.String;
|
|
561
|
+
readonly updatedAt: Schema.String;
|
|
562
|
+
readonly startedAt: Schema.NullOr<Schema.String>;
|
|
563
|
+
readonly completedAt: Schema.NullOr<Schema.String>;
|
|
564
|
+
}>>;
|
|
565
|
+
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
566
|
+
readonly id: Schema.Trim;
|
|
567
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
568
|
+
readonly actionId: Schema.NullOr<Schema.Trim>;
|
|
569
|
+
readonly requestKind: Schema.Trim;
|
|
570
|
+
readonly status: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
571
|
+
readonly payload: Schema.Unknown;
|
|
572
|
+
readonly createdAt: Schema.String;
|
|
573
|
+
readonly resolvedAt: Schema.NullOr<Schema.String>;
|
|
574
|
+
}>>;
|
|
575
|
+
readonly userInputs: Schema.$Array<Schema.Struct<{
|
|
576
|
+
readonly id: Schema.Trim;
|
|
577
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
578
|
+
readonly status: Schema.Literals<readonly ["pending", "resolved"]>;
|
|
579
|
+
readonly payload: Schema.Unknown;
|
|
580
|
+
readonly createdAt: Schema.String;
|
|
581
|
+
readonly resolvedAt: Schema.NullOr<Schema.String>;
|
|
582
|
+
}>>;
|
|
583
|
+
readonly artifacts: Schema.$Array<Schema.Struct<{
|
|
584
|
+
readonly id: Schema.brand<Schema.Trim, "ArtifactId">;
|
|
585
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
586
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
587
|
+
readonly kind: Schema.Trim;
|
|
588
|
+
readonly label: Schema.Trim;
|
|
589
|
+
readonly path: Schema.NullOr<Schema.Trim>;
|
|
590
|
+
readonly url: Schema.NullOr<Schema.Trim>;
|
|
591
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
592
|
+
readonly createdAt: Schema.String;
|
|
593
|
+
}>>;
|
|
594
|
+
readonly updatedAt: Schema.String;
|
|
595
|
+
}>;
|
|
596
|
+
export type RigGetWorkspaceResult = typeof RigGetWorkspaceResult.Type;
|
|
597
|
+
export declare const RigRawRunLogEntry: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
598
|
+
export type RigRawRunLogEntry = typeof RigRawRunLogEntry.Type;
|
|
599
|
+
export declare const RigGetRunLogsInput: Schema.Struct<{
|
|
600
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
601
|
+
readonly limit: Schema.optional<Schema.Int>;
|
|
602
|
+
readonly cursor: Schema.optional<Schema.String>;
|
|
603
|
+
}>;
|
|
604
|
+
export type RigGetRunLogsInput = typeof RigGetRunLogsInput.Type;
|
|
605
|
+
export declare const RigGetRunLogsResult: Schema.Struct<{
|
|
606
|
+
readonly entries: Schema.$Array<Schema.$Record<Schema.String, Schema.Unknown>>;
|
|
607
|
+
readonly nextCursor: Schema.NullOr<Schema.String>;
|
|
608
|
+
readonly hasMore: Schema.Boolean;
|
|
609
|
+
}>;
|
|
610
|
+
export type RigGetRunLogsResult = typeof RigGetRunLogsResult.Type;
|
|
611
|
+
export declare const RigRunLogAppendedPayload: Schema.Struct<{
|
|
612
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
613
|
+
readonly entry: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
614
|
+
}>;
|
|
615
|
+
export type RigRunLogAppendedPayload = typeof RigRunLogAppendedPayload.Type;
|
|
616
|
+
export declare const RigQueuedRunSteeringMessage: Schema.Struct<{
|
|
617
|
+
readonly id: Schema.Trim;
|
|
618
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
619
|
+
readonly message: Schema.Trim;
|
|
620
|
+
readonly actor: Schema.Trim;
|
|
621
|
+
readonly createdAt: Schema.String;
|
|
622
|
+
readonly delivered: Schema.Boolean;
|
|
623
|
+
}>;
|
|
624
|
+
export type RigQueuedRunSteeringMessage = typeof RigQueuedRunSteeringMessage.Type;
|
|
625
|
+
export declare const RigRunSteeringQueuedPayload: Schema.Struct<{
|
|
626
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
627
|
+
readonly message: Schema.Struct<{
|
|
628
|
+
readonly id: Schema.Trim;
|
|
629
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
630
|
+
readonly message: Schema.Trim;
|
|
631
|
+
readonly actor: Schema.Trim;
|
|
632
|
+
readonly createdAt: Schema.String;
|
|
633
|
+
readonly delivered: Schema.Boolean;
|
|
634
|
+
}>;
|
|
635
|
+
}>;
|
|
636
|
+
export type RigRunSteeringQueuedPayload = typeof RigRunSteeringQueuedPayload.Type;
|
|
637
|
+
export declare const RigAckRunSteeringInput: Schema.Struct<{
|
|
638
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
639
|
+
readonly ids: Schema.$Array<Schema.Trim>;
|
|
640
|
+
}>;
|
|
641
|
+
export type RigAckRunSteeringInput = typeof RigAckRunSteeringInput.Type;
|
|
642
|
+
export declare const RigAckRunSteeringResult: Schema.Struct<{
|
|
643
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
644
|
+
readonly delivered: Schema.$Array<Schema.Trim>;
|
|
645
|
+
}>;
|
|
646
|
+
export type RigAckRunSteeringResult = typeof RigAckRunSteeringResult.Type;
|
|
647
|
+
export declare const RigCreateAdhocRunInput: Schema.Struct<{
|
|
648
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
649
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
650
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
651
|
+
readonly title: Schema.String;
|
|
652
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literals<readonly ["codex", "claude-code", "pi"]>>;
|
|
653
|
+
readonly model: Schema.optional<Schema.String>;
|
|
654
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
655
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
656
|
+
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
657
|
+
readonly remoteHostId: Schema.optional<Schema.String>;
|
|
658
|
+
readonly initialPrompt: Schema.optional<Schema.String>;
|
|
659
|
+
readonly createdAt: Schema.String;
|
|
660
|
+
}>;
|
|
661
|
+
export type RigCreateAdhocRunInput = typeof RigCreateAdhocRunInput.Type;
|
|
662
|
+
export declare const RigCreateTaskRunInput: Schema.Struct<{
|
|
663
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
664
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
665
|
+
readonly workspaceId: Schema.brand<Schema.Trim, "WorkspaceId">;
|
|
666
|
+
readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
|
|
667
|
+
readonly runtimeAdapter: Schema.optional<Schema.Literals<readonly ["codex", "claude-code", "pi"]>>;
|
|
668
|
+
readonly model: Schema.optional<Schema.String>;
|
|
669
|
+
readonly runtimeMode: Schema.withDecodingDefault<Schema.Literals<readonly ["approval-required", "full-access"]>>;
|
|
670
|
+
readonly interactionMode: Schema.withDecodingDefault<Schema.Literals<readonly ["default", "plan"]>>;
|
|
671
|
+
readonly executionTarget: Schema.optional<Schema.Literals<readonly ["local", "remote"]>>;
|
|
672
|
+
readonly remoteHostId: Schema.optional<Schema.String>;
|
|
673
|
+
readonly createdAt: Schema.String;
|
|
674
|
+
}>;
|
|
675
|
+
export type RigCreateTaskRunInput = typeof RigCreateTaskRunInput.Type;
|
|
676
|
+
export declare const RigEnqueueTaskInput: Schema.Struct<{
|
|
677
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
678
|
+
readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
|
|
679
|
+
readonly score: Schema.optional<Schema.Number>;
|
|
680
|
+
readonly createdAt: Schema.String;
|
|
681
|
+
}>;
|
|
682
|
+
export type RigEnqueueTaskInput = typeof RigEnqueueTaskInput.Type;
|
|
683
|
+
export declare const RigDeleteRunInput: Schema.Struct<{
|
|
684
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
685
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
686
|
+
readonly purgeTaskArtifacts: Schema.optional<Schema.Boolean>;
|
|
687
|
+
readonly createdAt: Schema.String;
|
|
688
|
+
}>;
|
|
689
|
+
export type RigDeleteRunInput = typeof RigDeleteRunInput.Type;
|
|
690
|
+
export declare const RigResumeRunInput: Schema.Struct<{
|
|
691
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
692
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
693
|
+
readonly promptOverride: Schema.optional<Schema.String>;
|
|
694
|
+
readonly createdAt: Schema.String;
|
|
695
|
+
}>;
|
|
696
|
+
export type RigResumeRunInput = typeof RigResumeRunInput.Type;
|
|
697
|
+
export declare const RigSubmitRunMessageInput: Schema.Struct<{
|
|
698
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
699
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
700
|
+
readonly messageId: Schema.brand<Schema.Trim, "MessageId">;
|
|
701
|
+
readonly text: Schema.String;
|
|
702
|
+
readonly attachments: Schema.optional<Schema.$Array<Schema.Unknown>>;
|
|
703
|
+
readonly createdAt: Schema.String;
|
|
704
|
+
}>;
|
|
705
|
+
export type RigSubmitRunMessageInput = typeof RigSubmitRunMessageInput.Type;
|
|
706
|
+
export declare const RigInterruptRunInput: Schema.Struct<{
|
|
707
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
708
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
709
|
+
readonly createdAt: Schema.String;
|
|
710
|
+
}>;
|
|
711
|
+
export type RigInterruptRunInput = typeof RigInterruptRunInput.Type;
|
|
712
|
+
export declare const RigStopRunInput: Schema.Struct<{
|
|
713
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
714
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
715
|
+
readonly createdAt: Schema.String;
|
|
716
|
+
}>;
|
|
717
|
+
export type RigStopRunInput = typeof RigStopRunInput.Type;
|
|
718
|
+
export declare const RigResolveApprovalInput: Schema.Struct<{
|
|
719
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
720
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
721
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
722
|
+
readonly decision: Schema.Literals<readonly ["accept", "acceptForSession", "decline", "cancel"]>;
|
|
723
|
+
readonly createdAt: Schema.String;
|
|
724
|
+
}>;
|
|
725
|
+
export type RigResolveApprovalInput = typeof RigResolveApprovalInput.Type;
|
|
726
|
+
export declare const RigResolveUserInputInput: Schema.Struct<{
|
|
727
|
+
readonly commandId: Schema.brand<Schema.Trim, "CommandId">;
|
|
728
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
729
|
+
readonly requestId: Schema.brand<Schema.Trim, "ApprovalRequestId">;
|
|
730
|
+
readonly answers: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
731
|
+
readonly createdAt: Schema.String;
|
|
732
|
+
}>;
|
|
733
|
+
export type RigResolveUserInputInput = typeof RigResolveUserInputInput.Type;
|
|
734
|
+
export declare const RigGetTaskArtifactsInput: Schema.Struct<{
|
|
735
|
+
readonly taskId: Schema.brand<Schema.Trim, "TaskId">;
|
|
736
|
+
}>;
|
|
737
|
+
export type RigGetTaskArtifactsInput = typeof RigGetTaskArtifactsInput.Type;
|
|
738
|
+
export declare const RigGetTaskArtifactsResult: Schema.$Array<Schema.Struct<{
|
|
739
|
+
readonly id: Schema.brand<Schema.Trim, "ArtifactId">;
|
|
740
|
+
readonly runId: Schema.brand<Schema.Trim, "RunId">;
|
|
741
|
+
readonly taskId: Schema.NullOr<Schema.brand<Schema.Trim, "TaskId">>;
|
|
742
|
+
readonly kind: Schema.Trim;
|
|
743
|
+
readonly label: Schema.Trim;
|
|
744
|
+
readonly path: Schema.NullOr<Schema.Trim>;
|
|
745
|
+
readonly url: Schema.NullOr<Schema.Trim>;
|
|
746
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
747
|
+
readonly createdAt: Schema.String;
|
|
748
|
+
}>>;
|
|
749
|
+
export type RigGetTaskArtifactsResult = typeof RigGetTaskArtifactsResult.Type;
|
|
750
|
+
export declare const RigMutationResult: Schema.Struct<{
|
|
751
|
+
readonly sequence: Schema.Int;
|
|
752
|
+
}>;
|
|
753
|
+
export type RigMutationResult = typeof RigMutationResult.Type;
|