@kitman-sh/sdk 0.0.0-stage → 0.7.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/build/index.js +215 -0
- package/dist/chunk-7hwhxthh.js +1055 -0
- package/dist/chunk-zp7s46pz.js +3966 -0
- package/dist/loop/index.js +193 -0
- package/dist/program/index.js +30 -0
- package/package.json +29 -4
- package/types/packages/core/src/a2a.d.ts +577 -0
- package/types/packages/core/src/agent-capabilities.d.ts +1434 -0
- package/types/packages/core/src/agent-environment.d.ts +2429 -0
- package/types/packages/core/src/agent-launch-snapshot.d.ts +44 -0
- package/types/packages/core/src/agent-sandbox-policy.d.ts +33 -0
- package/types/packages/core/src/approval-queue.d.ts +126 -0
- package/types/packages/core/src/audit.d.ts +52 -0
- package/types/packages/core/src/change-delivery.d.ts +39 -0
- package/types/packages/core/src/change-request-review.d.ts +146 -0
- package/types/packages/core/src/change-request.d.ts +432 -0
- package/types/packages/core/src/common.d.ts +6 -0
- package/types/packages/core/src/connection.d.ts +33 -0
- package/types/packages/core/src/context-feedback.d.ts +89 -0
- package/types/packages/core/src/context-pack.d.ts +182 -0
- package/types/packages/core/src/crypto.d.ts +11 -0
- package/types/packages/core/src/data-lifecycle.d.ts +195 -0
- package/types/packages/core/src/decision.d.ts +48 -0
- package/types/packages/core/src/delivery-operation.d.ts +125 -0
- package/types/packages/core/src/delivery-policy.d.ts +174 -0
- package/types/packages/core/src/engineering-resources.d.ts +26 -0
- package/types/packages/core/src/enterprise-code-host.d.ts +18 -0
- package/types/packages/core/src/epic-delivery.d.ts +38 -0
- package/types/packages/core/src/extension.d.ts +35 -0
- package/types/packages/core/src/external-effect.d.ts +313 -0
- package/types/packages/core/src/fix-flow.d.ts +149 -0
- package/types/packages/core/src/following.d.ts +59 -0
- package/types/packages/core/src/github-delivery-fixtures.d.ts +28 -0
- package/types/packages/core/src/github-delivery.d.ts +78 -0
- package/types/packages/core/src/gitlab-delivery-fixtures.d.ts +26 -0
- package/types/packages/core/src/gitlab-delivery.d.ts +76 -0
- package/types/packages/core/src/global-search.d.ts +42 -0
- package/types/packages/core/src/id.d.ts +1 -0
- package/types/packages/core/src/index.d.ts +74 -0
- package/types/packages/core/src/integration.d.ts +255 -0
- package/types/packages/core/src/intent.d.ts +260 -0
- package/types/packages/core/src/json.d.ts +10 -0
- package/types/packages/core/src/kit-taxonomy.d.ts +21 -0
- package/types/packages/core/src/kit.d.ts +1489 -0
- package/types/packages/core/src/live.d.ts +8309 -0
- package/types/packages/core/src/loop-layers.d.ts +59 -0
- package/types/packages/core/src/loop-version.d.ts +59 -0
- package/types/packages/core/src/loop.d.ts +3076 -0
- package/types/packages/core/src/me.d.ts +31 -0
- package/types/packages/core/src/memory.d.ts +88 -0
- package/types/packages/core/src/my-teams.d.ts +1230 -0
- package/types/packages/core/src/notification.d.ts +181 -0
- package/types/packages/core/src/observability.d.ts +175 -0
- package/types/packages/core/src/package-declarations.d.ts +435 -0
- package/types/packages/core/src/package.d.ts +369 -0
- package/types/packages/core/src/personal-development-profile.d.ts +11 -0
- package/types/packages/core/src/platform-release.d.ts +60 -0
- package/types/packages/core/src/program-credential.d.ts +10 -0
- package/types/packages/core/src/project.d.ts +66 -0
- package/types/packages/core/src/proposal.d.ts +292 -0
- package/types/packages/core/src/provider-safe-text.d.ts +2 -0
- package/types/packages/core/src/redaction.d.ts +73 -0
- package/types/packages/core/src/repo-binding.d.ts +131 -0
- package/types/packages/core/src/run-journal.d.ts +28 -0
- package/types/packages/core/src/run-launch.d.ts +67 -0
- package/types/packages/core/src/run.d.ts +566 -0
- package/types/packages/core/src/runner-eligibility.d.ts +43 -0
- package/types/packages/core/src/runner-routing.d.ts +11 -0
- package/types/packages/core/src/runner-trust.d.ts +67 -0
- package/types/packages/core/src/runner.d.ts +3750 -0
- package/types/packages/core/src/runtime-type.d.ts +36 -0
- package/types/packages/core/src/schedule.d.ts +136 -0
- package/types/packages/core/src/schema.d.ts +89 -0
- package/types/packages/core/src/scope-directory.d.ts +100 -0
- package/types/packages/core/src/secret.d.ts +37 -0
- package/types/packages/core/src/session.d.ts +90 -0
- package/types/packages/core/src/step-brief.d.ts +50 -0
- package/types/packages/core/src/sync-kit.d.ts +587 -0
- package/types/packages/core/src/task-detail.d.ts +491 -0
- package/types/packages/core/src/task-execution-record.d.ts +620 -0
- package/types/packages/core/src/task-key.d.ts +9 -0
- package/types/packages/core/src/task.d.ts +543 -0
- package/types/packages/core/src/trigger-dispatch.d.ts +421 -0
- package/types/packages/core/src/work-unit.d.ts +740 -0
- package/types/packages/core/src/workspace.d.ts +96 -0
- package/types/packages/live/src/rpc/runner-client.d.ts +947 -0
- package/types/packages/live/src/rpc/runner-group.d.ts +733 -0
- package/types/packages/sdk/src/build/index.d.ts +45 -0
- package/types/packages/sdk/src/loop/activities.d.ts +187 -0
- package/types/packages/sdk/src/loop/check.d.ts +39 -0
- package/types/packages/sdk/src/loop/config.d.ts +68 -0
- package/types/packages/sdk/src/loop/define.d.ts +76 -0
- package/types/packages/sdk/src/loop/evidence.d.ts +66 -0
- package/types/packages/sdk/src/loop/index.d.ts +9 -0
- package/types/packages/sdk/src/loop/plan.d.ts +43 -0
- package/types/packages/sdk/src/loop/review.d.ts +86 -0
- package/types/packages/sdk/src/loop/steps.d.ts +224 -0
- package/types/packages/sdk/src/loop/test-loop.d.ts +112 -0
- package/types/packages/sdk/src/program/engine.d.ts +144 -0
- package/types/packages/sdk/src/program/host.d.ts +70 -0
- package/types/packages/sdk/src/program/index.d.ts +2 -0
- package/README.md +0 -3
|
@@ -0,0 +1,947 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import * as Layer from 'effect/Layer';
|
|
3
|
+
import { RpcClient } from 'effect/rpc';
|
|
4
|
+
import { type RunnerSignal } from './runner-group';
|
|
5
|
+
/** The Runner RPC over a WebSocket; `proxy` is the HTTP proxy it connects through, as a sandbox's egress proxy. */
|
|
6
|
+
export declare const runnerWebSocketProtocol: (url: string, options?: {
|
|
7
|
+
readonly proxy?: string;
|
|
8
|
+
}) => Layer.Layer<RpcClient.Protocol>;
|
|
9
|
+
export declare function runnerRpcUrl(apiUrl: string): string;
|
|
10
|
+
/**
|
|
11
|
+
* A Runner's control connection, open for the caller's scope. `bearer` mints the AgentCredential token sent with
|
|
12
|
+
* each call, so a reconnected socket authenticates afresh.
|
|
13
|
+
*/
|
|
14
|
+
export declare const makeRunnerRpcClient: (options: {
|
|
15
|
+
readonly runnerId: string;
|
|
16
|
+
readonly bearer: Effect.Effect<string, Error>;
|
|
17
|
+
readonly protocol: Layer.Layer<RpcClient.Protocol>;
|
|
18
|
+
}) => Effect.Effect<{
|
|
19
|
+
claim: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
20
|
+
readonly projectId?: string;
|
|
21
|
+
readonly runnerReplicaId: string;
|
|
22
|
+
readonly capacitySlot: string;
|
|
23
|
+
readonly idempotencyKey: string;
|
|
24
|
+
readonly leaseDurationSeconds?: number;
|
|
25
|
+
}, options?: {
|
|
26
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
27
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
28
|
+
readonly discard?: Discard | undefined;
|
|
29
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
30
|
+
readonly workUnit?: {
|
|
31
|
+
readonly kind: "orchestration";
|
|
32
|
+
readonly id: string;
|
|
33
|
+
readonly projectId?: string;
|
|
34
|
+
readonly runId: string;
|
|
35
|
+
readonly loopDigest: string;
|
|
36
|
+
readonly input: unknown;
|
|
37
|
+
readonly granted: readonly string[];
|
|
38
|
+
readonly lease: {
|
|
39
|
+
readonly leaseOwnerId: string;
|
|
40
|
+
readonly runnerReplicaId: string;
|
|
41
|
+
readonly leaseId: string;
|
|
42
|
+
readonly attempt: number;
|
|
43
|
+
readonly fencingToken: string;
|
|
44
|
+
readonly capacitySlot: string;
|
|
45
|
+
readonly leaseExpiresAt: string;
|
|
46
|
+
readonly lastHeartbeatAt: string;
|
|
47
|
+
};
|
|
48
|
+
readonly journal: {
|
|
49
|
+
readonly activities: {
|
|
50
|
+
readonly [x: string]: unknown;
|
|
51
|
+
};
|
|
52
|
+
readonly deferreds: {
|
|
53
|
+
readonly [x: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
readonly network?: "open" | {
|
|
57
|
+
readonly hosts: readonly string[];
|
|
58
|
+
};
|
|
59
|
+
readonly program: {
|
|
60
|
+
readonly loopId: string;
|
|
61
|
+
readonly credential: string;
|
|
62
|
+
};
|
|
63
|
+
} | {
|
|
64
|
+
readonly kind: "agent_step";
|
|
65
|
+
readonly id: string;
|
|
66
|
+
readonly projectId?: string;
|
|
67
|
+
readonly runId: string;
|
|
68
|
+
readonly stepKey: string;
|
|
69
|
+
readonly attempt: number;
|
|
70
|
+
readonly lease: {
|
|
71
|
+
readonly leaseOwnerId: string;
|
|
72
|
+
readonly runnerReplicaId: string;
|
|
73
|
+
readonly leaseId: string;
|
|
74
|
+
readonly attempt: number;
|
|
75
|
+
readonly fencingToken: string;
|
|
76
|
+
readonly capacitySlot: string;
|
|
77
|
+
readonly leaseExpiresAt: string;
|
|
78
|
+
readonly lastHeartbeatAt: string;
|
|
79
|
+
};
|
|
80
|
+
readonly brief: {
|
|
81
|
+
readonly stepAttemptId: string;
|
|
82
|
+
readonly harness: string;
|
|
83
|
+
readonly model?: string;
|
|
84
|
+
readonly effort?: "high" | "low" | "medium" | "xhigh";
|
|
85
|
+
readonly prompt: string;
|
|
86
|
+
readonly contextPack?: {
|
|
87
|
+
readonly contextPackId?: string;
|
|
88
|
+
readonly mode: string;
|
|
89
|
+
readonly contentMarkdown: string;
|
|
90
|
+
};
|
|
91
|
+
readonly outputSchema: {
|
|
92
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
93
|
+
};
|
|
94
|
+
readonly skills?: readonly {
|
|
95
|
+
readonly name: string;
|
|
96
|
+
readonly files: {
|
|
97
|
+
readonly [x: string]: string;
|
|
98
|
+
};
|
|
99
|
+
}[];
|
|
100
|
+
readonly toolless?: true;
|
|
101
|
+
};
|
|
102
|
+
readonly stepCredential: string;
|
|
103
|
+
readonly checkout: "none" | "read" | "write";
|
|
104
|
+
readonly repoBinding?: {
|
|
105
|
+
readonly id: string;
|
|
106
|
+
readonly provider: "generic_git" | "github" | "gitlab";
|
|
107
|
+
readonly host: string;
|
|
108
|
+
readonly owner: string;
|
|
109
|
+
readonly name: string;
|
|
110
|
+
readonly repositoryUrl?: string;
|
|
111
|
+
readonly pathPrefix?: string;
|
|
112
|
+
readonly defaultTargetBranch: string;
|
|
113
|
+
readonly expectedBranch?: string;
|
|
114
|
+
readonly expectedCommitSha?: string;
|
|
115
|
+
};
|
|
116
|
+
readonly branch?: string;
|
|
117
|
+
readonly baseRevision?: string;
|
|
118
|
+
readonly network?: "open" | {
|
|
119
|
+
readonly hosts: readonly string[];
|
|
120
|
+
};
|
|
121
|
+
readonly sandbox?: "docker";
|
|
122
|
+
readonly secrets?: {
|
|
123
|
+
readonly [x: string]: string;
|
|
124
|
+
};
|
|
125
|
+
readonly runBaseRevision?: string;
|
|
126
|
+
} | {
|
|
127
|
+
readonly kind: "verification";
|
|
128
|
+
readonly id: string;
|
|
129
|
+
readonly projectId: string;
|
|
130
|
+
readonly runId: string;
|
|
131
|
+
readonly stepKey: string;
|
|
132
|
+
readonly lease: {
|
|
133
|
+
readonly leaseOwnerId: string;
|
|
134
|
+
readonly runnerReplicaId: string;
|
|
135
|
+
readonly leaseId: string;
|
|
136
|
+
readonly attempt: number;
|
|
137
|
+
readonly fencingToken: string;
|
|
138
|
+
readonly capacitySlot: string;
|
|
139
|
+
readonly leaseExpiresAt: string;
|
|
140
|
+
readonly lastHeartbeatAt: string;
|
|
141
|
+
};
|
|
142
|
+
readonly repoBinding: {
|
|
143
|
+
readonly id: string;
|
|
144
|
+
readonly provider: "generic_git" | "github" | "gitlab";
|
|
145
|
+
readonly host: string;
|
|
146
|
+
readonly owner: string;
|
|
147
|
+
readonly name: string;
|
|
148
|
+
readonly repositoryUrl?: string;
|
|
149
|
+
readonly pathPrefix?: string;
|
|
150
|
+
readonly defaultTargetBranch: string;
|
|
151
|
+
readonly expectedBranch?: string;
|
|
152
|
+
readonly expectedCommitSha?: string;
|
|
153
|
+
};
|
|
154
|
+
readonly revision: string;
|
|
155
|
+
readonly checks: readonly {
|
|
156
|
+
readonly name: string;
|
|
157
|
+
readonly command: string;
|
|
158
|
+
readonly workingDirectory?: string;
|
|
159
|
+
}[];
|
|
160
|
+
};
|
|
161
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
162
|
+
readonly workUnit?: {
|
|
163
|
+
readonly kind: "orchestration";
|
|
164
|
+
readonly id: string;
|
|
165
|
+
readonly projectId?: string;
|
|
166
|
+
readonly runId: string;
|
|
167
|
+
readonly loopDigest: string;
|
|
168
|
+
readonly input: unknown;
|
|
169
|
+
readonly granted: readonly string[];
|
|
170
|
+
readonly lease: {
|
|
171
|
+
readonly leaseOwnerId: string;
|
|
172
|
+
readonly runnerReplicaId: string;
|
|
173
|
+
readonly leaseId: string;
|
|
174
|
+
readonly attempt: number;
|
|
175
|
+
readonly fencingToken: string;
|
|
176
|
+
readonly capacitySlot: string;
|
|
177
|
+
readonly leaseExpiresAt: string;
|
|
178
|
+
readonly lastHeartbeatAt: string;
|
|
179
|
+
};
|
|
180
|
+
readonly journal: {
|
|
181
|
+
readonly activities: {
|
|
182
|
+
readonly [x: string]: unknown;
|
|
183
|
+
};
|
|
184
|
+
readonly deferreds: {
|
|
185
|
+
readonly [x: string]: unknown;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
readonly network?: "open" | {
|
|
189
|
+
readonly hosts: readonly string[];
|
|
190
|
+
};
|
|
191
|
+
readonly program: {
|
|
192
|
+
readonly loopId: string;
|
|
193
|
+
readonly credential: string;
|
|
194
|
+
};
|
|
195
|
+
} | {
|
|
196
|
+
readonly kind: "agent_step";
|
|
197
|
+
readonly id: string;
|
|
198
|
+
readonly projectId?: string;
|
|
199
|
+
readonly runId: string;
|
|
200
|
+
readonly stepKey: string;
|
|
201
|
+
readonly attempt: number;
|
|
202
|
+
readonly lease: {
|
|
203
|
+
readonly leaseOwnerId: string;
|
|
204
|
+
readonly runnerReplicaId: string;
|
|
205
|
+
readonly leaseId: string;
|
|
206
|
+
readonly attempt: number;
|
|
207
|
+
readonly fencingToken: string;
|
|
208
|
+
readonly capacitySlot: string;
|
|
209
|
+
readonly leaseExpiresAt: string;
|
|
210
|
+
readonly lastHeartbeatAt: string;
|
|
211
|
+
};
|
|
212
|
+
readonly brief: {
|
|
213
|
+
readonly stepAttemptId: string;
|
|
214
|
+
readonly harness: string;
|
|
215
|
+
readonly model?: string;
|
|
216
|
+
readonly effort?: "high" | "low" | "medium" | "xhigh";
|
|
217
|
+
readonly prompt: string;
|
|
218
|
+
readonly contextPack?: {
|
|
219
|
+
readonly contextPackId?: string;
|
|
220
|
+
readonly mode: string;
|
|
221
|
+
readonly contentMarkdown: string;
|
|
222
|
+
};
|
|
223
|
+
readonly outputSchema: {
|
|
224
|
+
readonly [x: string]: import("effect/Schema").Json;
|
|
225
|
+
};
|
|
226
|
+
readonly skills?: readonly {
|
|
227
|
+
readonly name: string;
|
|
228
|
+
readonly files: {
|
|
229
|
+
readonly [x: string]: string;
|
|
230
|
+
};
|
|
231
|
+
}[];
|
|
232
|
+
readonly toolless?: true;
|
|
233
|
+
};
|
|
234
|
+
readonly stepCredential: string;
|
|
235
|
+
readonly checkout: "none" | "read" | "write";
|
|
236
|
+
readonly repoBinding?: {
|
|
237
|
+
readonly id: string;
|
|
238
|
+
readonly provider: "generic_git" | "github" | "gitlab";
|
|
239
|
+
readonly host: string;
|
|
240
|
+
readonly owner: string;
|
|
241
|
+
readonly name: string;
|
|
242
|
+
readonly repositoryUrl?: string;
|
|
243
|
+
readonly pathPrefix?: string;
|
|
244
|
+
readonly defaultTargetBranch: string;
|
|
245
|
+
readonly expectedBranch?: string;
|
|
246
|
+
readonly expectedCommitSha?: string;
|
|
247
|
+
};
|
|
248
|
+
readonly branch?: string;
|
|
249
|
+
readonly baseRevision?: string;
|
|
250
|
+
readonly network?: "open" | {
|
|
251
|
+
readonly hosts: readonly string[];
|
|
252
|
+
};
|
|
253
|
+
readonly sandbox?: "docker";
|
|
254
|
+
readonly secrets?: {
|
|
255
|
+
readonly [x: string]: string;
|
|
256
|
+
};
|
|
257
|
+
readonly runBaseRevision?: string;
|
|
258
|
+
} | {
|
|
259
|
+
readonly kind: "verification";
|
|
260
|
+
readonly id: string;
|
|
261
|
+
readonly projectId: string;
|
|
262
|
+
readonly runId: string;
|
|
263
|
+
readonly stepKey: string;
|
|
264
|
+
readonly lease: {
|
|
265
|
+
readonly leaseOwnerId: string;
|
|
266
|
+
readonly runnerReplicaId: string;
|
|
267
|
+
readonly leaseId: string;
|
|
268
|
+
readonly attempt: number;
|
|
269
|
+
readonly fencingToken: string;
|
|
270
|
+
readonly capacitySlot: string;
|
|
271
|
+
readonly leaseExpiresAt: string;
|
|
272
|
+
readonly lastHeartbeatAt: string;
|
|
273
|
+
};
|
|
274
|
+
readonly repoBinding: {
|
|
275
|
+
readonly id: string;
|
|
276
|
+
readonly provider: "generic_git" | "github" | "gitlab";
|
|
277
|
+
readonly host: string;
|
|
278
|
+
readonly owner: string;
|
|
279
|
+
readonly name: string;
|
|
280
|
+
readonly repositoryUrl?: string;
|
|
281
|
+
readonly pathPrefix?: string;
|
|
282
|
+
readonly defaultTargetBranch: string;
|
|
283
|
+
readonly expectedBranch?: string;
|
|
284
|
+
readonly expectedCommitSha?: string;
|
|
285
|
+
};
|
|
286
|
+
readonly revision: string;
|
|
287
|
+
readonly checks: readonly {
|
|
288
|
+
readonly name: string;
|
|
289
|
+
readonly command: string;
|
|
290
|
+
readonly workingDirectory?: string;
|
|
291
|
+
}[];
|
|
292
|
+
};
|
|
293
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
294
|
+
heartbeat: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
295
|
+
readonly workUnitId: string;
|
|
296
|
+
readonly lease: {
|
|
297
|
+
readonly leaseOwnerId: string;
|
|
298
|
+
readonly runnerReplicaId: string;
|
|
299
|
+
readonly leaseId: string;
|
|
300
|
+
readonly attempt: number;
|
|
301
|
+
readonly fencingToken: string;
|
|
302
|
+
readonly capacitySlot: string;
|
|
303
|
+
};
|
|
304
|
+
readonly leaseDurationSeconds?: number;
|
|
305
|
+
}, options?: {
|
|
306
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
307
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
308
|
+
readonly discard?: Discard | undefined;
|
|
309
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
310
|
+
readonly settled: boolean;
|
|
311
|
+
readonly outputSubmitted?: boolean;
|
|
312
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
313
|
+
readonly settled: boolean;
|
|
314
|
+
readonly outputSubmitted?: boolean;
|
|
315
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
316
|
+
complete: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
317
|
+
readonly workUnitId: string;
|
|
318
|
+
readonly lease: {
|
|
319
|
+
readonly leaseOwnerId: string;
|
|
320
|
+
readonly runnerReplicaId: string;
|
|
321
|
+
readonly leaseId: string;
|
|
322
|
+
readonly attempt: number;
|
|
323
|
+
readonly fencingToken: string;
|
|
324
|
+
readonly capacitySlot: string;
|
|
325
|
+
};
|
|
326
|
+
readonly idempotencyKey: string;
|
|
327
|
+
readonly outcome: {
|
|
328
|
+
readonly status: "blocked" | "canceled" | "completed" | "failed";
|
|
329
|
+
readonly result?: {
|
|
330
|
+
readonly stepKey: string;
|
|
331
|
+
readonly outputSchemaRef: {
|
|
332
|
+
readonly kind: "typebox_ref";
|
|
333
|
+
readonly name: string;
|
|
334
|
+
readonly version?: string;
|
|
335
|
+
readonly sha256?: string;
|
|
336
|
+
};
|
|
337
|
+
readonly summary: string;
|
|
338
|
+
readonly data: {
|
|
339
|
+
readonly [x: string]: unknown;
|
|
340
|
+
};
|
|
341
|
+
readonly metadata?: {
|
|
342
|
+
readonly [x: string]: unknown;
|
|
343
|
+
};
|
|
344
|
+
readonly refs: readonly {
|
|
345
|
+
readonly kind: "artifact" | "change_request" | "change_request_review" | "context_pack" | "decision" | "kit" | "knowledge_record" | "memory" | "provider_action" | "run" | "step_attempt" | "task" | "thread_entry";
|
|
346
|
+
readonly id?: string;
|
|
347
|
+
readonly externalId?: string;
|
|
348
|
+
readonly provider?: string;
|
|
349
|
+
readonly title?: string;
|
|
350
|
+
}[];
|
|
351
|
+
};
|
|
352
|
+
readonly revision?: string;
|
|
353
|
+
readonly evidence?: {
|
|
354
|
+
readonly head: {
|
|
355
|
+
readonly revision: string;
|
|
356
|
+
readonly tree: string;
|
|
357
|
+
readonly checks: readonly {
|
|
358
|
+
readonly name: string;
|
|
359
|
+
readonly command: string;
|
|
360
|
+
readonly status: "failed" | "passed";
|
|
361
|
+
readonly exitCode?: number;
|
|
362
|
+
readonly durationMs: number;
|
|
363
|
+
readonly outputTail: string;
|
|
364
|
+
}[];
|
|
365
|
+
};
|
|
366
|
+
readonly baseline?: {
|
|
367
|
+
readonly revision: string;
|
|
368
|
+
readonly tree: string;
|
|
369
|
+
readonly checks: readonly {
|
|
370
|
+
readonly name: string;
|
|
371
|
+
readonly command: string;
|
|
372
|
+
readonly status: "failed" | "passed";
|
|
373
|
+
readonly exitCode?: number;
|
|
374
|
+
readonly durationMs: number;
|
|
375
|
+
readonly outputTail: string;
|
|
376
|
+
}[];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
readonly boundary?: {
|
|
380
|
+
readonly kind: "change";
|
|
381
|
+
readonly changedPaths: readonly string[];
|
|
382
|
+
readonly omittedPaths: number;
|
|
383
|
+
readonly files: readonly {
|
|
384
|
+
readonly path: string;
|
|
385
|
+
readonly excerpt: string;
|
|
386
|
+
readonly redacted: boolean;
|
|
387
|
+
readonly truncated: boolean;
|
|
388
|
+
}[];
|
|
389
|
+
readonly truncated: boolean;
|
|
390
|
+
};
|
|
391
|
+
readonly failureSummary?: string;
|
|
392
|
+
};
|
|
393
|
+
}, options?: {
|
|
394
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
395
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
396
|
+
readonly discard?: Discard | undefined;
|
|
397
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
398
|
+
release: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
399
|
+
readonly workUnitId: string;
|
|
400
|
+
readonly lease: {
|
|
401
|
+
readonly leaseOwnerId: string;
|
|
402
|
+
readonly runnerReplicaId: string;
|
|
403
|
+
readonly leaseId: string;
|
|
404
|
+
readonly attempt: number;
|
|
405
|
+
readonly fencingToken: string;
|
|
406
|
+
readonly capacitySlot: string;
|
|
407
|
+
};
|
|
408
|
+
}, options?: {
|
|
409
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
410
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
411
|
+
readonly discard?: Discard | undefined;
|
|
412
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
413
|
+
recordActivity: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
414
|
+
readonly lease: {
|
|
415
|
+
readonly workUnitId: string;
|
|
416
|
+
readonly leaseOwnerId: string;
|
|
417
|
+
readonly runnerReplicaId: string;
|
|
418
|
+
readonly leaseId: string;
|
|
419
|
+
readonly attempt: number;
|
|
420
|
+
readonly fencingToken: string;
|
|
421
|
+
readonly capacitySlot: string;
|
|
422
|
+
};
|
|
423
|
+
readonly name: string;
|
|
424
|
+
readonly attempt: number;
|
|
425
|
+
readonly exit: unknown;
|
|
426
|
+
}, options?: {
|
|
427
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
428
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
429
|
+
readonly discard?: Discard | undefined;
|
|
430
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
431
|
+
deferredDone: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
432
|
+
readonly lease: {
|
|
433
|
+
readonly workUnitId: string;
|
|
434
|
+
readonly leaseOwnerId: string;
|
|
435
|
+
readonly runnerReplicaId: string;
|
|
436
|
+
readonly leaseId: string;
|
|
437
|
+
readonly attempt: number;
|
|
438
|
+
readonly fencingToken: string;
|
|
439
|
+
readonly capacitySlot: string;
|
|
440
|
+
};
|
|
441
|
+
readonly name: string;
|
|
442
|
+
readonly exit: unknown;
|
|
443
|
+
}, options?: {
|
|
444
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
445
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
446
|
+
readonly discard?: Discard | undefined;
|
|
447
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
448
|
+
scheduleClock: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
449
|
+
readonly lease: {
|
|
450
|
+
readonly workUnitId: string;
|
|
451
|
+
readonly leaseOwnerId: string;
|
|
452
|
+
readonly runnerReplicaId: string;
|
|
453
|
+
readonly leaseId: string;
|
|
454
|
+
readonly attempt: number;
|
|
455
|
+
readonly fencingToken: string;
|
|
456
|
+
readonly capacitySlot: string;
|
|
457
|
+
};
|
|
458
|
+
readonly name: string;
|
|
459
|
+
readonly deferredName: string;
|
|
460
|
+
readonly durationMillis: number;
|
|
461
|
+
}, options?: {
|
|
462
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
463
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
464
|
+
readonly discard?: Discard | undefined;
|
|
465
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
466
|
+
putQuestion: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
467
|
+
readonly lease: {
|
|
468
|
+
readonly workUnitId: string;
|
|
469
|
+
readonly leaseOwnerId: string;
|
|
470
|
+
readonly runnerReplicaId: string;
|
|
471
|
+
readonly leaseId: string;
|
|
472
|
+
readonly attempt: number;
|
|
473
|
+
readonly fencingToken: string;
|
|
474
|
+
readonly capacitySlot: string;
|
|
475
|
+
};
|
|
476
|
+
readonly step: string;
|
|
477
|
+
readonly prompt: string;
|
|
478
|
+
readonly options?: readonly string[] | undefined;
|
|
479
|
+
readonly verification?: {
|
|
480
|
+
readonly name: string;
|
|
481
|
+
readonly command: string;
|
|
482
|
+
readonly workingDirectory?: string | undefined;
|
|
483
|
+
} | undefined;
|
|
484
|
+
readonly deferredName: string;
|
|
485
|
+
}, options?: {
|
|
486
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
487
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
488
|
+
readonly discard?: Discard | undefined;
|
|
489
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
490
|
+
readonly questionId: string;
|
|
491
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
492
|
+
readonly questionId: string;
|
|
493
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
494
|
+
programSecrets: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
495
|
+
readonly lease: {
|
|
496
|
+
readonly workUnitId: string;
|
|
497
|
+
readonly leaseOwnerId: string;
|
|
498
|
+
readonly runnerReplicaId: string;
|
|
499
|
+
readonly leaseId: string;
|
|
500
|
+
readonly attempt: number;
|
|
501
|
+
readonly fencingToken: string;
|
|
502
|
+
readonly capacitySlot: string;
|
|
503
|
+
};
|
|
504
|
+
}, options?: {
|
|
505
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
506
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
507
|
+
readonly discard?: Discard | undefined;
|
|
508
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
509
|
+
readonly [x: string]: string;
|
|
510
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
511
|
+
readonly [x: string]: string;
|
|
512
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
513
|
+
suspend: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
514
|
+
readonly lease: {
|
|
515
|
+
readonly workUnitId: string;
|
|
516
|
+
readonly leaseOwnerId: string;
|
|
517
|
+
readonly runnerReplicaId: string;
|
|
518
|
+
readonly leaseId: string;
|
|
519
|
+
readonly attempt: number;
|
|
520
|
+
readonly fencingToken: string;
|
|
521
|
+
readonly capacitySlot: string;
|
|
522
|
+
};
|
|
523
|
+
}, options?: {
|
|
524
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
525
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
526
|
+
readonly discard?: Discard | undefined;
|
|
527
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
528
|
+
finishProgram: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
529
|
+
readonly lease: {
|
|
530
|
+
readonly workUnitId: string;
|
|
531
|
+
readonly leaseOwnerId: string;
|
|
532
|
+
readonly runnerReplicaId: string;
|
|
533
|
+
readonly leaseId: string;
|
|
534
|
+
readonly attempt: number;
|
|
535
|
+
readonly fencingToken: string;
|
|
536
|
+
readonly capacitySlot: string;
|
|
537
|
+
};
|
|
538
|
+
readonly outcome: {
|
|
539
|
+
readonly status: "completed";
|
|
540
|
+
readonly output: unknown;
|
|
541
|
+
} | {
|
|
542
|
+
readonly status: "failed";
|
|
543
|
+
readonly failureSummary: string;
|
|
544
|
+
};
|
|
545
|
+
}, options?: {
|
|
546
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
547
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
548
|
+
readonly discard?: Discard | undefined;
|
|
549
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
550
|
+
startAgentStep: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
551
|
+
readonly lease: {
|
|
552
|
+
readonly workUnitId: string;
|
|
553
|
+
readonly leaseOwnerId: string;
|
|
554
|
+
readonly runnerReplicaId: string;
|
|
555
|
+
readonly leaseId: string;
|
|
556
|
+
readonly attempt: number;
|
|
557
|
+
readonly fencingToken: string;
|
|
558
|
+
readonly capacitySlot: string;
|
|
559
|
+
};
|
|
560
|
+
readonly step: string;
|
|
561
|
+
readonly deferredName: string;
|
|
562
|
+
readonly role: string;
|
|
563
|
+
readonly agentId: string;
|
|
564
|
+
readonly prompt: string;
|
|
565
|
+
readonly outputSchema: unknown;
|
|
566
|
+
readonly secrets?: readonly string[];
|
|
567
|
+
}, options?: {
|
|
568
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
569
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
570
|
+
readonly discard?: Discard | undefined;
|
|
571
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
572
|
+
readonly stepAttemptId: string;
|
|
573
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
574
|
+
readonly stepAttemptId: string;
|
|
575
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
576
|
+
startVerification: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
577
|
+
readonly lease: {
|
|
578
|
+
readonly workUnitId: string;
|
|
579
|
+
readonly leaseOwnerId: string;
|
|
580
|
+
readonly runnerReplicaId: string;
|
|
581
|
+
readonly leaseId: string;
|
|
582
|
+
readonly attempt: number;
|
|
583
|
+
readonly fencingToken: string;
|
|
584
|
+
readonly capacitySlot: string;
|
|
585
|
+
};
|
|
586
|
+
readonly step: string;
|
|
587
|
+
readonly deferredName: string;
|
|
588
|
+
readonly revision?: string;
|
|
589
|
+
readonly checks?: readonly string[] | undefined;
|
|
590
|
+
}, options?: {
|
|
591
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
592
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
593
|
+
readonly discard?: Discard | undefined;
|
|
594
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
595
|
+
readonly verificationId: string;
|
|
596
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
597
|
+
readonly verificationId: string;
|
|
598
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
599
|
+
knownEvidence: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
600
|
+
readonly lease: {
|
|
601
|
+
readonly workUnitId: string;
|
|
602
|
+
readonly leaseOwnerId: string;
|
|
603
|
+
readonly runnerReplicaId: string;
|
|
604
|
+
readonly leaseId: string;
|
|
605
|
+
readonly attempt: number;
|
|
606
|
+
readonly fencingToken: string;
|
|
607
|
+
readonly capacitySlot: string;
|
|
608
|
+
};
|
|
609
|
+
readonly trees: readonly string[];
|
|
610
|
+
}, options?: {
|
|
611
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
612
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
613
|
+
readonly discard?: Discard | undefined;
|
|
614
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : readonly {
|
|
615
|
+
readonly tree: string;
|
|
616
|
+
readonly name: string;
|
|
617
|
+
readonly command: string;
|
|
618
|
+
}[], import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<readonly {
|
|
619
|
+
readonly tree: string;
|
|
620
|
+
readonly name: string;
|
|
621
|
+
readonly command: string;
|
|
622
|
+
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
623
|
+
awaitEvent: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
624
|
+
readonly lease: {
|
|
625
|
+
readonly workUnitId: string;
|
|
626
|
+
readonly leaseOwnerId: string;
|
|
627
|
+
readonly runnerReplicaId: string;
|
|
628
|
+
readonly leaseId: string;
|
|
629
|
+
readonly attempt: number;
|
|
630
|
+
readonly fencingToken: string;
|
|
631
|
+
readonly capacitySlot: string;
|
|
632
|
+
};
|
|
633
|
+
readonly step: string;
|
|
634
|
+
readonly deferredName: string;
|
|
635
|
+
readonly event: string;
|
|
636
|
+
readonly filter?: {
|
|
637
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | null)[] | null;
|
|
638
|
+
} | undefined;
|
|
639
|
+
readonly timeoutMillis: number;
|
|
640
|
+
}, options?: {
|
|
641
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
642
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
643
|
+
readonly discard?: Discard | undefined;
|
|
644
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
645
|
+
admitChild: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
646
|
+
readonly lease: {
|
|
647
|
+
readonly workUnitId: string;
|
|
648
|
+
readonly leaseOwnerId: string;
|
|
649
|
+
readonly runnerReplicaId: string;
|
|
650
|
+
readonly leaseId: string;
|
|
651
|
+
readonly attempt: number;
|
|
652
|
+
readonly fencingToken: string;
|
|
653
|
+
readonly capacitySlot: string;
|
|
654
|
+
};
|
|
655
|
+
readonly step: string;
|
|
656
|
+
readonly loop: string;
|
|
657
|
+
readonly input: unknown;
|
|
658
|
+
readonly deferredName: string;
|
|
659
|
+
}, options?: {
|
|
660
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
661
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
662
|
+
readonly discard?: Discard | undefined;
|
|
663
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
664
|
+
readonly runId: string;
|
|
665
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
666
|
+
readonly runId: string;
|
|
667
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
668
|
+
storeArtifact: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
669
|
+
readonly lease: {
|
|
670
|
+
readonly workUnitId: string;
|
|
671
|
+
readonly leaseOwnerId: string;
|
|
672
|
+
readonly runnerReplicaId: string;
|
|
673
|
+
readonly leaseId: string;
|
|
674
|
+
readonly attempt: number;
|
|
675
|
+
readonly fencingToken: string;
|
|
676
|
+
readonly capacitySlot: string;
|
|
677
|
+
};
|
|
678
|
+
readonly step: string;
|
|
679
|
+
readonly kind: string;
|
|
680
|
+
readonly title: string;
|
|
681
|
+
readonly text: string;
|
|
682
|
+
readonly data?: unknown;
|
|
683
|
+
}, options?: {
|
|
684
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
685
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
686
|
+
readonly discard?: Discard | undefined;
|
|
687
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
688
|
+
readonly artifactId: string;
|
|
689
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
690
|
+
readonly artifactId: string;
|
|
691
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
692
|
+
recordNote: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
693
|
+
readonly lease: {
|
|
694
|
+
readonly workUnitId: string;
|
|
695
|
+
readonly leaseOwnerId: string;
|
|
696
|
+
readonly runnerReplicaId: string;
|
|
697
|
+
readonly leaseId: string;
|
|
698
|
+
readonly attempt: number;
|
|
699
|
+
readonly fencingToken: string;
|
|
700
|
+
readonly capacitySlot: string;
|
|
701
|
+
};
|
|
702
|
+
readonly step: string;
|
|
703
|
+
readonly text: string;
|
|
704
|
+
readonly artifactId?: string | undefined;
|
|
705
|
+
}, options?: {
|
|
706
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
707
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
708
|
+
readonly discard?: Discard | undefined;
|
|
709
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
710
|
+
performHostEffect: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
711
|
+
readonly lease: {
|
|
712
|
+
readonly workUnitId: string;
|
|
713
|
+
readonly leaseOwnerId: string;
|
|
714
|
+
readonly runnerReplicaId: string;
|
|
715
|
+
readonly leaseId: string;
|
|
716
|
+
readonly attempt: number;
|
|
717
|
+
readonly fencingToken: string;
|
|
718
|
+
readonly capacitySlot: string;
|
|
719
|
+
};
|
|
720
|
+
readonly step: string;
|
|
721
|
+
readonly effect: {
|
|
722
|
+
readonly kind: "post_comment";
|
|
723
|
+
readonly changeRequestId: string;
|
|
724
|
+
readonly body: string;
|
|
725
|
+
} | {
|
|
726
|
+
readonly kind: "change_request";
|
|
727
|
+
readonly title: string;
|
|
728
|
+
readonly body: string;
|
|
729
|
+
readonly integration?: string;
|
|
730
|
+
} | {
|
|
731
|
+
readonly kind: "write_back";
|
|
732
|
+
readonly milestone?: "change_request_opened" | "failed" | "merged" | "started";
|
|
733
|
+
readonly changeRequestUrl?: string;
|
|
734
|
+
};
|
|
735
|
+
}, options?: {
|
|
736
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
737
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
738
|
+
readonly discard?: Discard | undefined;
|
|
739
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
740
|
+
readonly id: string;
|
|
741
|
+
readonly number: string;
|
|
742
|
+
readonly url: string;
|
|
743
|
+
} | undefined, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
744
|
+
readonly id: string;
|
|
745
|
+
readonly number: string;
|
|
746
|
+
readonly url: string;
|
|
747
|
+
} | undefined, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
748
|
+
createPlanTasks: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
749
|
+
readonly lease: {
|
|
750
|
+
readonly workUnitId: string;
|
|
751
|
+
readonly leaseOwnerId: string;
|
|
752
|
+
readonly runnerReplicaId: string;
|
|
753
|
+
readonly leaseId: string;
|
|
754
|
+
readonly attempt: number;
|
|
755
|
+
readonly fencingToken: string;
|
|
756
|
+
readonly capacitySlot: string;
|
|
757
|
+
};
|
|
758
|
+
readonly tickets: readonly {
|
|
759
|
+
readonly key: string;
|
|
760
|
+
readonly title: string;
|
|
761
|
+
readonly body: string;
|
|
762
|
+
readonly acceptanceCriteria: readonly string[];
|
|
763
|
+
readonly blockedBy: readonly string[];
|
|
764
|
+
readonly outcome?: "bug" | "docs" | "feature" | "investigation" | "migration" | "refactor";
|
|
765
|
+
}[];
|
|
766
|
+
}, options?: {
|
|
767
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
768
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
769
|
+
readonly discard?: Discard | undefined;
|
|
770
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : readonly {
|
|
771
|
+
readonly key: string;
|
|
772
|
+
readonly taskId: string;
|
|
773
|
+
}[], import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<readonly {
|
|
774
|
+
readonly key: string;
|
|
775
|
+
readonly taskId: string;
|
|
776
|
+
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
777
|
+
integrationBranch: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
778
|
+
readonly lease: {
|
|
779
|
+
readonly workUnitId: string;
|
|
780
|
+
readonly leaseOwnerId: string;
|
|
781
|
+
readonly runnerReplicaId: string;
|
|
782
|
+
readonly leaseId: string;
|
|
783
|
+
readonly attempt: number;
|
|
784
|
+
readonly fencingToken: string;
|
|
785
|
+
readonly capacitySlot: string;
|
|
786
|
+
};
|
|
787
|
+
readonly repoBindingId?: string;
|
|
788
|
+
}, options?: {
|
|
789
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
790
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
791
|
+
readonly discard?: Discard | undefined;
|
|
792
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
793
|
+
readonly repoBindingId: string;
|
|
794
|
+
readonly branch: string;
|
|
795
|
+
readonly revision: string;
|
|
796
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
797
|
+
readonly repoBindingId: string;
|
|
798
|
+
readonly branch: string;
|
|
799
|
+
readonly revision: string;
|
|
800
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
801
|
+
mergeChangeRequest: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
802
|
+
readonly lease: {
|
|
803
|
+
readonly workUnitId: string;
|
|
804
|
+
readonly leaseOwnerId: string;
|
|
805
|
+
readonly runnerReplicaId: string;
|
|
806
|
+
readonly leaseId: string;
|
|
807
|
+
readonly attempt: number;
|
|
808
|
+
readonly fencingToken: string;
|
|
809
|
+
readonly capacitySlot: string;
|
|
810
|
+
};
|
|
811
|
+
readonly step: string;
|
|
812
|
+
readonly changeRequestId: string;
|
|
813
|
+
}, options?: {
|
|
814
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
815
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
816
|
+
readonly discard?: Discard | undefined;
|
|
817
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
818
|
+
readonly status: "merged";
|
|
819
|
+
readonly revision: string;
|
|
820
|
+
} | {
|
|
821
|
+
readonly status: "conflict";
|
|
822
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
823
|
+
readonly status: "merged";
|
|
824
|
+
readonly revision: string;
|
|
825
|
+
} | {
|
|
826
|
+
readonly status: "conflict";
|
|
827
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
828
|
+
publishRelease: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
829
|
+
readonly lease: {
|
|
830
|
+
readonly workUnitId: string;
|
|
831
|
+
readonly leaseOwnerId: string;
|
|
832
|
+
readonly runnerReplicaId: string;
|
|
833
|
+
readonly leaseId: string;
|
|
834
|
+
readonly attempt: number;
|
|
835
|
+
readonly fencingToken: string;
|
|
836
|
+
readonly capacitySlot: string;
|
|
837
|
+
};
|
|
838
|
+
readonly step: string;
|
|
839
|
+
readonly tag: string;
|
|
840
|
+
readonly revision?: string;
|
|
841
|
+
readonly title: string;
|
|
842
|
+
readonly notes: string;
|
|
843
|
+
}, options?: {
|
|
844
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
845
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
846
|
+
readonly discard?: Discard | undefined;
|
|
847
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
848
|
+
readonly tag: string;
|
|
849
|
+
readonly revision: string;
|
|
850
|
+
readonly url: string;
|
|
851
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
852
|
+
readonly tag: string;
|
|
853
|
+
readonly revision: string;
|
|
854
|
+
readonly url: string;
|
|
855
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
856
|
+
bundle: (digest: string) => Effect.Effect<{
|
|
857
|
+
readonly bundle: string;
|
|
858
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
859
|
+
settledRuns: (runIds: readonly string[]) => Effect.Effect<readonly string[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
860
|
+
reportSteer: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
861
|
+
readonly workUnitId: string;
|
|
862
|
+
readonly messageId: string;
|
|
863
|
+
readonly delivered: boolean;
|
|
864
|
+
}, options?: {
|
|
865
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
866
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
867
|
+
readonly discard?: Discard | undefined;
|
|
868
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
869
|
+
saveCheckpoint: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
870
|
+
readonly lease: {
|
|
871
|
+
readonly workUnitId: string;
|
|
872
|
+
readonly leaseOwnerId: string;
|
|
873
|
+
readonly runnerReplicaId: string;
|
|
874
|
+
readonly leaseId: string;
|
|
875
|
+
readonly attempt: number;
|
|
876
|
+
readonly fencingToken: string;
|
|
877
|
+
readonly capacitySlot: string;
|
|
878
|
+
};
|
|
879
|
+
readonly checkpoint: {
|
|
880
|
+
readonly ref?: string;
|
|
881
|
+
readonly revision?: string;
|
|
882
|
+
readonly session?: {
|
|
883
|
+
readonly harness: string;
|
|
884
|
+
readonly id: string;
|
|
885
|
+
readonly name: string;
|
|
886
|
+
readonly content: Uint8Array<ArrayBufferLike>;
|
|
887
|
+
};
|
|
888
|
+
};
|
|
889
|
+
}, options?: {
|
|
890
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
891
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
892
|
+
readonly discard?: Discard | undefined;
|
|
893
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : void, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
894
|
+
resumeCheckpoint: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
895
|
+
readonly lease: {
|
|
896
|
+
readonly workUnitId: string;
|
|
897
|
+
readonly leaseOwnerId: string;
|
|
898
|
+
readonly runnerReplicaId: string;
|
|
899
|
+
readonly leaseId: string;
|
|
900
|
+
readonly attempt: number;
|
|
901
|
+
readonly fencingToken: string;
|
|
902
|
+
readonly capacitySlot: string;
|
|
903
|
+
};
|
|
904
|
+
}, options?: {
|
|
905
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
906
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
907
|
+
readonly discard?: Discard | undefined;
|
|
908
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
909
|
+
readonly ref?: string;
|
|
910
|
+
readonly revision?: string;
|
|
911
|
+
readonly session?: {
|
|
912
|
+
readonly harness: string;
|
|
913
|
+
readonly id: string;
|
|
914
|
+
readonly name: string;
|
|
915
|
+
readonly content: Uint8Array<ArrayBufferLike>;
|
|
916
|
+
};
|
|
917
|
+
} | undefined, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
918
|
+
readonly ref?: string;
|
|
919
|
+
readonly revision?: string;
|
|
920
|
+
readonly session?: {
|
|
921
|
+
readonly harness: string;
|
|
922
|
+
readonly id: string;
|
|
923
|
+
readonly name: string;
|
|
924
|
+
readonly content: Uint8Array<ArrayBufferLike>;
|
|
925
|
+
};
|
|
926
|
+
} | undefined, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
927
|
+
settledCheckpoints: Effect.Effect<readonly {
|
|
928
|
+
readonly stepAttemptId: string;
|
|
929
|
+
readonly ref?: string;
|
|
930
|
+
readonly repoBinding?: {
|
|
931
|
+
readonly id: string;
|
|
932
|
+
readonly provider: "generic_git" | "github" | "gitlab";
|
|
933
|
+
readonly host: string;
|
|
934
|
+
readonly owner: string;
|
|
935
|
+
readonly name: string;
|
|
936
|
+
readonly repositoryUrl?: string;
|
|
937
|
+
readonly pathPrefix?: string;
|
|
938
|
+
readonly defaultTargetBranch: string;
|
|
939
|
+
readonly expectedBranch?: string;
|
|
940
|
+
readonly expectedCommitSha?: string;
|
|
941
|
+
};
|
|
942
|
+
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
943
|
+
forgetCheckpoints: (stepAttemptIds: readonly string[]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
944
|
+
/** Delivers the replica's signals until the stream ends or fails. */
|
|
945
|
+
listen: (runnerReplicaId: string, onSignal: (signal: RunnerSignal) => Effect.Effect<void>) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
946
|
+
}, never, import("effect/Scope").Scope>;
|
|
947
|
+
export type RunnerRpcClient = Effect.Success<ReturnType<typeof makeRunnerRpcClient>>;
|