@kitman-sh/sdk 0.8.0 → 0.10.52
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 +531 -116
- package/dist/{chunk-36jhc745.js → chunk-tcbgb4wm.js} +1841 -1574
- package/dist/{chunk-160ww64c.js → chunk-zvzw3zs4.js} +939 -535
- package/dist/loop/index.js +117 -3
- package/dist/program/index.js +10 -6
- package/package.json +6 -6
- package/types/packages/core/src/agent-capabilities.d.ts +6 -0
- package/types/packages/core/src/agent-environment.d.ts +32 -216
- package/types/packages/core/src/agent-sandbox-policy.d.ts +17 -3
- package/types/packages/core/src/change-request-review.d.ts +20 -5
- package/types/packages/core/src/change-request.d.ts +33 -208
- package/types/packages/core/src/crypto.d.ts +2 -0
- package/types/packages/core/src/index.d.ts +8 -4
- package/types/packages/core/src/{package-declarations.d.ts → kit-declarations.d.ts} +84 -180
- package/types/packages/core/src/kit-install.d.ts +130 -0
- package/types/packages/core/src/kit-setup.d.ts +316 -0
- package/types/packages/core/src/kit.d.ts +302 -1444
- package/types/packages/core/src/loop-layers.d.ts +33 -4
- package/types/packages/core/src/loop.d.ts +325 -55
- package/types/packages/core/src/marketplace.d.ts +51 -10
- package/types/packages/core/src/my-teams.d.ts +135 -20
- package/types/packages/core/src/network-host.d.ts +41 -0
- package/types/packages/core/src/notification.d.ts +8 -0
- package/types/packages/core/src/npm-registry.d.ts +65 -0
- package/types/packages/core/src/proposal.d.ts +0 -76
- package/types/packages/core/src/push.d.ts +68 -0
- package/types/packages/core/src/question-recommendation.d.ts +28 -0
- package/types/packages/core/src/redaction.d.ts +15 -3
- package/types/packages/core/src/resource-claim.d.ts +79 -0
- package/types/packages/core/src/run-display.d.ts +7 -1
- package/types/packages/core/src/run-graph.d.ts +1 -1
- package/types/packages/core/src/run-launch.d.ts +15 -2
- package/types/packages/core/src/run-queue.d.ts +28 -0
- package/types/packages/core/src/runner-eligibility.d.ts +21 -2
- package/types/packages/core/src/runner.d.ts +46 -15
- package/types/packages/core/src/secret.d.ts +18 -1
- package/types/packages/core/src/step-brief.d.ts +21 -7
- package/types/packages/core/src/sync-kit.d.ts +8 -0
- package/types/packages/core/src/task-detail.d.ts +15 -2
- package/types/packages/core/src/task.d.ts +9 -0
- package/types/packages/core/src/transcript.d.ts +24 -4
- package/types/packages/core/src/trust-panel.d.ts +1 -1
- package/types/packages/core/src/waiting-on.d.ts +14 -0
- package/types/packages/core/src/work-unit.d.ts +339 -8
- package/types/packages/live/src/rpc/runner-client.d.ts +1229 -566
- package/types/packages/live/src/rpc/runner-group.d.ts +2851 -441
- package/types/packages/sdk/src/build/index.d.ts +45 -9
- package/types/packages/sdk/src/loop/activities.d.ts +382 -2
- package/types/packages/sdk/src/loop/claims.d.ts +57 -0
- package/types/packages/sdk/src/loop/config.d.ts +38 -31
- package/types/packages/sdk/src/loop/continuing.d.ts +22 -0
- package/types/packages/sdk/src/loop/define.d.ts +30 -5
- package/types/packages/sdk/src/loop/evidence.d.ts +18 -3
- package/types/packages/sdk/src/loop/index.d.ts +4 -0
- package/types/packages/sdk/src/loop/measure.d.ts +132 -0
- package/types/packages/sdk/src/loop/plan.d.ts +2 -2
- package/types/packages/sdk/src/loop/steps.d.ts +127 -17
- package/types/packages/sdk/src/loop/sync.d.ts +53 -0
- package/types/packages/sdk/src/loop/test-loop.d.ts +25 -5
- package/types/packages/sdk/src/program/engine.d.ts +116 -17
- package/types/packages/sdk/src/program/host.d.ts +200 -38
- package/types/packages/core/src/engineering-resources.d.ts +0 -24
- package/types/packages/core/src/package.d.ts +0 -369
|
@@ -7,15 +7,16 @@ export declare const runnerWebSocketProtocol: (url: string, options?: {
|
|
|
7
7
|
readonly proxy?: string;
|
|
8
8
|
}) => Layer.Layer<RpcClient.Protocol>;
|
|
9
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: {
|
|
10
|
+
type ConnectionOptions = {
|
|
15
11
|
readonly runnerId: string;
|
|
16
12
|
readonly bearer: Effect.Effect<string, Error>;
|
|
17
13
|
readonly protocol: Layer.Layer<RpcClient.Protocol>;
|
|
18
|
-
}
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* A Runner's control connection, open for the caller's scope. `bearer` mints the AgentCredential token sent with
|
|
17
|
+
* each call.
|
|
18
|
+
*/
|
|
19
|
+
export declare const makeRunnerRpcClient: (options: ConnectionOptions) => Effect.Effect<{
|
|
19
20
|
claim: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
20
21
|
readonly teamId?: string;
|
|
21
22
|
readonly runnerReplicaId: string;
|
|
@@ -78,6 +79,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
78
79
|
readonly leaseExpiresAt: string;
|
|
79
80
|
readonly lastHeartbeatAt: string;
|
|
80
81
|
};
|
|
82
|
+
readonly deadlineAt?: string;
|
|
81
83
|
readonly brief: {
|
|
82
84
|
readonly stepAttemptId: string;
|
|
83
85
|
readonly harness: string;
|
|
@@ -92,13 +94,14 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
92
94
|
readonly outputSchema: {
|
|
93
95
|
readonly [x: string]: import("effect/Schema").Json;
|
|
94
96
|
};
|
|
95
|
-
readonly
|
|
97
|
+
readonly kits?: readonly {
|
|
96
98
|
readonly name: string;
|
|
97
|
-
readonly
|
|
98
|
-
|
|
99
|
-
};
|
|
99
|
+
readonly version: string;
|
|
100
|
+
readonly setupDigest: string;
|
|
100
101
|
}[];
|
|
101
102
|
readonly toolless?: true;
|
|
103
|
+
readonly tools?: readonly ("artifacts" | "browser" | "subagents" | "web")[];
|
|
104
|
+
readonly listedSkills?: readonly string[];
|
|
102
105
|
};
|
|
103
106
|
readonly stepCredential: string;
|
|
104
107
|
readonly checkout: "none" | "read" | "write";
|
|
@@ -119,11 +122,22 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
119
122
|
readonly network?: "open" | {
|
|
120
123
|
readonly hosts: readonly string[];
|
|
121
124
|
};
|
|
125
|
+
readonly hosts?: readonly string[];
|
|
122
126
|
readonly sandbox?: "docker";
|
|
123
127
|
readonly secrets?: {
|
|
124
128
|
readonly [x: string]: string;
|
|
125
129
|
};
|
|
130
|
+
readonly secretDestinations?: {
|
|
131
|
+
readonly [x: string]: {
|
|
132
|
+
readonly scope: "team" | "workspace";
|
|
133
|
+
readonly hosts: readonly string[];
|
|
134
|
+
readonly version: string;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
126
137
|
readonly runBaseRevision?: string;
|
|
138
|
+
readonly mergeTarget?: string;
|
|
139
|
+
readonly resumeNotes?: readonly string[];
|
|
140
|
+
readonly transcriptSequence?: number;
|
|
127
141
|
readonly storageOrigin?: string;
|
|
128
142
|
} | {
|
|
129
143
|
readonly kind: "verification";
|
|
@@ -154,11 +168,32 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
154
168
|
readonly expectedCommitSha?: string;
|
|
155
169
|
};
|
|
156
170
|
readonly revision: string;
|
|
171
|
+
readonly baseline?: string;
|
|
157
172
|
readonly checks: readonly {
|
|
158
173
|
readonly name: string;
|
|
159
174
|
readonly command: string;
|
|
160
175
|
readonly workingDirectory?: string;
|
|
176
|
+
readonly suggested?: boolean;
|
|
177
|
+
readonly pipeline?: boolean;
|
|
161
178
|
}[];
|
|
179
|
+
readonly measure?: {
|
|
180
|
+
readonly base: string;
|
|
181
|
+
readonly plan: {
|
|
182
|
+
readonly command: string;
|
|
183
|
+
readonly prepare?: string;
|
|
184
|
+
readonly workingDirectory?: string;
|
|
185
|
+
readonly warmup?: number;
|
|
186
|
+
readonly metrics: readonly {
|
|
187
|
+
readonly name: string;
|
|
188
|
+
readonly direction: "higher" | "lower";
|
|
189
|
+
readonly role: "guardrail" | "primary";
|
|
190
|
+
readonly lowVariance?: boolean;
|
|
191
|
+
}[];
|
|
192
|
+
};
|
|
193
|
+
readonly samples: number;
|
|
194
|
+
readonly calibrate: boolean;
|
|
195
|
+
};
|
|
196
|
+
readonly hosts?: readonly string[];
|
|
162
197
|
readonly storageOrigin?: string;
|
|
163
198
|
};
|
|
164
199
|
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
@@ -213,6 +248,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
213
248
|
readonly leaseExpiresAt: string;
|
|
214
249
|
readonly lastHeartbeatAt: string;
|
|
215
250
|
};
|
|
251
|
+
readonly deadlineAt?: string;
|
|
216
252
|
readonly brief: {
|
|
217
253
|
readonly stepAttemptId: string;
|
|
218
254
|
readonly harness: string;
|
|
@@ -227,13 +263,14 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
227
263
|
readonly outputSchema: {
|
|
228
264
|
readonly [x: string]: import("effect/Schema").Json;
|
|
229
265
|
};
|
|
230
|
-
readonly
|
|
266
|
+
readonly kits?: readonly {
|
|
231
267
|
readonly name: string;
|
|
232
|
-
readonly
|
|
233
|
-
|
|
234
|
-
};
|
|
268
|
+
readonly version: string;
|
|
269
|
+
readonly setupDigest: string;
|
|
235
270
|
}[];
|
|
236
271
|
readonly toolless?: true;
|
|
272
|
+
readonly tools?: readonly ("artifacts" | "browser" | "subagents" | "web")[];
|
|
273
|
+
readonly listedSkills?: readonly string[];
|
|
237
274
|
};
|
|
238
275
|
readonly stepCredential: string;
|
|
239
276
|
readonly checkout: "none" | "read" | "write";
|
|
@@ -254,11 +291,22 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
254
291
|
readonly network?: "open" | {
|
|
255
292
|
readonly hosts: readonly string[];
|
|
256
293
|
};
|
|
294
|
+
readonly hosts?: readonly string[];
|
|
257
295
|
readonly sandbox?: "docker";
|
|
258
296
|
readonly secrets?: {
|
|
259
297
|
readonly [x: string]: string;
|
|
260
298
|
};
|
|
299
|
+
readonly secretDestinations?: {
|
|
300
|
+
readonly [x: string]: {
|
|
301
|
+
readonly scope: "team" | "workspace";
|
|
302
|
+
readonly hosts: readonly string[];
|
|
303
|
+
readonly version: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
261
306
|
readonly runBaseRevision?: string;
|
|
307
|
+
readonly mergeTarget?: string;
|
|
308
|
+
readonly resumeNotes?: readonly string[];
|
|
309
|
+
readonly transcriptSequence?: number;
|
|
262
310
|
readonly storageOrigin?: string;
|
|
263
311
|
} | {
|
|
264
312
|
readonly kind: "verification";
|
|
@@ -289,11 +337,32 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
289
337
|
readonly expectedCommitSha?: string;
|
|
290
338
|
};
|
|
291
339
|
readonly revision: string;
|
|
340
|
+
readonly baseline?: string;
|
|
292
341
|
readonly checks: readonly {
|
|
293
342
|
readonly name: string;
|
|
294
343
|
readonly command: string;
|
|
295
344
|
readonly workingDirectory?: string;
|
|
345
|
+
readonly suggested?: boolean;
|
|
346
|
+
readonly pipeline?: boolean;
|
|
296
347
|
}[];
|
|
348
|
+
readonly measure?: {
|
|
349
|
+
readonly base: string;
|
|
350
|
+
readonly plan: {
|
|
351
|
+
readonly command: string;
|
|
352
|
+
readonly prepare?: string;
|
|
353
|
+
readonly workingDirectory?: string;
|
|
354
|
+
readonly warmup?: number;
|
|
355
|
+
readonly metrics: readonly {
|
|
356
|
+
readonly name: string;
|
|
357
|
+
readonly direction: "higher" | "lower";
|
|
358
|
+
readonly role: "guardrail" | "primary";
|
|
359
|
+
readonly lowVariance?: boolean;
|
|
360
|
+
}[];
|
|
361
|
+
};
|
|
362
|
+
readonly samples: number;
|
|
363
|
+
readonly calibrate: boolean;
|
|
364
|
+
};
|
|
365
|
+
readonly hosts?: readonly string[];
|
|
297
366
|
readonly storageOrigin?: string;
|
|
298
367
|
};
|
|
299
368
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
@@ -308,6 +377,10 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
308
377
|
readonly capacitySlot: string;
|
|
309
378
|
};
|
|
310
379
|
readonly leaseDurationSeconds?: number;
|
|
380
|
+
readonly secrets?: readonly {
|
|
381
|
+
readonly name: string;
|
|
382
|
+
readonly version: string;
|
|
383
|
+
}[];
|
|
311
384
|
}, options?: {
|
|
312
385
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
313
386
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
@@ -315,9 +388,15 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
315
388
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
316
389
|
readonly settled: boolean;
|
|
317
390
|
readonly outputSubmitted?: boolean;
|
|
391
|
+
readonly outputMerged?: boolean;
|
|
392
|
+
readonly questionOpen?: boolean;
|
|
393
|
+
readonly revokedSecrets?: readonly string[];
|
|
318
394
|
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
319
395
|
readonly settled: boolean;
|
|
320
396
|
readonly outputSubmitted?: boolean;
|
|
397
|
+
readonly outputMerged?: boolean;
|
|
398
|
+
readonly questionOpen?: boolean;
|
|
399
|
+
readonly revokedSecrets?: readonly string[];
|
|
321
400
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
322
401
|
complete: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
323
402
|
readonly workUnitId: string;
|
|
@@ -383,6 +462,17 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
383
462
|
readonly fileIds?: readonly string[];
|
|
384
463
|
}[];
|
|
385
464
|
};
|
|
465
|
+
readonly measurement?: {
|
|
466
|
+
readonly base: readonly {
|
|
467
|
+
readonly [x: string]: number;
|
|
468
|
+
}[];
|
|
469
|
+
readonly head: readonly {
|
|
470
|
+
readonly [x: string]: number;
|
|
471
|
+
}[];
|
|
472
|
+
readonly baseAgain?: readonly {
|
|
473
|
+
readonly [x: string]: number;
|
|
474
|
+
}[];
|
|
475
|
+
};
|
|
386
476
|
};
|
|
387
477
|
readonly boundary?: {
|
|
388
478
|
readonly kind: "change";
|
|
@@ -396,6 +486,22 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
396
486
|
}[];
|
|
397
487
|
readonly truncated: boolean;
|
|
398
488
|
};
|
|
489
|
+
readonly catchUp?: {
|
|
490
|
+
readonly from: string;
|
|
491
|
+
readonly head: string;
|
|
492
|
+
readonly conflicted: readonly string[];
|
|
493
|
+
readonly rewritten: readonly string[];
|
|
494
|
+
readonly changed: readonly string[];
|
|
495
|
+
readonly truncated: boolean;
|
|
496
|
+
};
|
|
497
|
+
readonly harnessHold?: {
|
|
498
|
+
readonly reason: "failed_to_start" | "out_of_quota";
|
|
499
|
+
readonly until?: string;
|
|
500
|
+
readonly scope?: "step";
|
|
501
|
+
};
|
|
502
|
+
readonly restart?: {
|
|
503
|
+
readonly reason: "login_revoked";
|
|
504
|
+
};
|
|
399
505
|
readonly failureSummary?: string;
|
|
400
506
|
};
|
|
401
507
|
}, options?: {
|
|
@@ -413,12 +519,15 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
413
519
|
readonly fencingToken: string;
|
|
414
520
|
readonly capacitySlot: string;
|
|
415
521
|
};
|
|
522
|
+
readonly crashed?: {
|
|
523
|
+
readonly reason: string;
|
|
524
|
+
};
|
|
416
525
|
}, options?: {
|
|
417
526
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
418
527
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
419
528
|
readonly discard?: Discard | undefined;
|
|
420
529
|
} | 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>;
|
|
421
|
-
|
|
530
|
+
knownEvidence: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
422
531
|
readonly lease: {
|
|
423
532
|
readonly workUnitId: string;
|
|
424
533
|
readonly leaseOwnerId: string;
|
|
@@ -428,15 +537,21 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
428
537
|
readonly fencingToken: string;
|
|
429
538
|
readonly capacitySlot: string;
|
|
430
539
|
};
|
|
431
|
-
readonly
|
|
432
|
-
readonly attempt: number;
|
|
433
|
-
readonly exit: unknown;
|
|
540
|
+
readonly trees: readonly string[];
|
|
434
541
|
}, options?: {
|
|
435
542
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
436
543
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
437
544
|
readonly discard?: Discard | undefined;
|
|
438
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
439
|
-
|
|
545
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : readonly {
|
|
546
|
+
readonly tree: string;
|
|
547
|
+
readonly name: string;
|
|
548
|
+
readonly command: string;
|
|
549
|
+
}[], import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<readonly {
|
|
550
|
+
readonly tree: string;
|
|
551
|
+
readonly name: string;
|
|
552
|
+
readonly command: string;
|
|
553
|
+
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
554
|
+
createRunFile: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
440
555
|
readonly lease: {
|
|
441
556
|
readonly workUnitId: string;
|
|
442
557
|
readonly leaseOwnerId: string;
|
|
@@ -446,14 +561,82 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
446
561
|
readonly fencingToken: string;
|
|
447
562
|
readonly capacitySlot: string;
|
|
448
563
|
};
|
|
564
|
+
readonly step: string;
|
|
449
565
|
readonly name: string;
|
|
450
|
-
readonly
|
|
566
|
+
readonly caption?: string | undefined;
|
|
567
|
+
readonly contentType: string;
|
|
568
|
+
readonly byteSize: number;
|
|
569
|
+
readonly sha256: string;
|
|
451
570
|
}, options?: {
|
|
452
571
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
453
572
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
454
573
|
readonly discard?: Discard | undefined;
|
|
455
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
456
|
-
|
|
574
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
575
|
+
readonly file: {
|
|
576
|
+
readonly id: string;
|
|
577
|
+
readonly runId: string;
|
|
578
|
+
readonly step: string;
|
|
579
|
+
readonly name: string;
|
|
580
|
+
readonly caption?: string;
|
|
581
|
+
readonly contentType: string;
|
|
582
|
+
readonly kind: "html" | "image" | "other" | "text" | "video";
|
|
583
|
+
readonly byteSize: number;
|
|
584
|
+
readonly sha256: string;
|
|
585
|
+
readonly status: "available" | "expired" | "refused" | "rejected" | "removed" | "removing" | "uploading";
|
|
586
|
+
};
|
|
587
|
+
readonly upload?: {
|
|
588
|
+
readonly url: string;
|
|
589
|
+
readonly headers?: {
|
|
590
|
+
readonly [x: string]: string;
|
|
591
|
+
};
|
|
592
|
+
readonly expiresAt: string;
|
|
593
|
+
readonly kind: "single";
|
|
594
|
+
} | {
|
|
595
|
+
readonly kind: "multipart";
|
|
596
|
+
readonly partSize: number;
|
|
597
|
+
readonly parts: readonly {
|
|
598
|
+
readonly url: string;
|
|
599
|
+
readonly headers?: {
|
|
600
|
+
readonly [x: string]: string;
|
|
601
|
+
};
|
|
602
|
+
readonly expiresAt: string;
|
|
603
|
+
readonly partNumber: number;
|
|
604
|
+
}[];
|
|
605
|
+
} | undefined;
|
|
606
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("../../../core/src/index").RunFileRefused | import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
607
|
+
readonly file: {
|
|
608
|
+
readonly id: string;
|
|
609
|
+
readonly runId: string;
|
|
610
|
+
readonly step: string;
|
|
611
|
+
readonly name: string;
|
|
612
|
+
readonly caption?: string;
|
|
613
|
+
readonly contentType: string;
|
|
614
|
+
readonly kind: "html" | "image" | "other" | "text" | "video";
|
|
615
|
+
readonly byteSize: number;
|
|
616
|
+
readonly sha256: string;
|
|
617
|
+
readonly status: "available" | "expired" | "refused" | "rejected" | "removed" | "removing" | "uploading";
|
|
618
|
+
};
|
|
619
|
+
readonly upload?: {
|
|
620
|
+
readonly url: string;
|
|
621
|
+
readonly headers?: {
|
|
622
|
+
readonly [x: string]: string;
|
|
623
|
+
};
|
|
624
|
+
readonly expiresAt: string;
|
|
625
|
+
readonly kind: "single";
|
|
626
|
+
} | {
|
|
627
|
+
readonly kind: "multipart";
|
|
628
|
+
readonly partSize: number;
|
|
629
|
+
readonly parts: readonly {
|
|
630
|
+
readonly url: string;
|
|
631
|
+
readonly headers?: {
|
|
632
|
+
readonly [x: string]: string;
|
|
633
|
+
};
|
|
634
|
+
readonly expiresAt: string;
|
|
635
|
+
readonly partNumber: number;
|
|
636
|
+
}[];
|
|
637
|
+
} | undefined;
|
|
638
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("../../../core/src/index").RunFileRefused | import("./runner-group").RunnerRpcError, never>;
|
|
639
|
+
runFileParts: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
457
640
|
readonly lease: {
|
|
458
641
|
readonly workUnitId: string;
|
|
459
642
|
readonly leaseOwnerId: string;
|
|
@@ -463,15 +646,32 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
463
646
|
readonly fencingToken: string;
|
|
464
647
|
readonly capacitySlot: string;
|
|
465
648
|
};
|
|
466
|
-
readonly
|
|
467
|
-
readonly
|
|
468
|
-
readonly durationMillis: number;
|
|
649
|
+
readonly fileId: string;
|
|
650
|
+
readonly partNumbers: readonly number[];
|
|
469
651
|
}, options?: {
|
|
470
652
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
471
653
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
472
654
|
readonly discard?: Discard | undefined;
|
|
473
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
474
|
-
|
|
655
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
656
|
+
readonly parts: readonly {
|
|
657
|
+
readonly url: string;
|
|
658
|
+
readonly headers?: {
|
|
659
|
+
readonly [x: string]: string;
|
|
660
|
+
};
|
|
661
|
+
readonly expiresAt: string;
|
|
662
|
+
readonly partNumber: number;
|
|
663
|
+
}[];
|
|
664
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
665
|
+
readonly parts: readonly {
|
|
666
|
+
readonly url: string;
|
|
667
|
+
readonly headers?: {
|
|
668
|
+
readonly [x: string]: string;
|
|
669
|
+
};
|
|
670
|
+
readonly expiresAt: string;
|
|
671
|
+
readonly partNumber: number;
|
|
672
|
+
}[];
|
|
673
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
674
|
+
completeRunFile: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
475
675
|
readonly lease: {
|
|
476
676
|
readonly workUnitId: string;
|
|
477
677
|
readonly leaseOwnerId: string;
|
|
@@ -481,25 +681,101 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
481
681
|
readonly fencingToken: string;
|
|
482
682
|
readonly capacitySlot: string;
|
|
483
683
|
};
|
|
484
|
-
readonly
|
|
485
|
-
readonly
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
readonly command: string;
|
|
490
|
-
readonly workingDirectory?: string | undefined;
|
|
491
|
-
} | undefined;
|
|
492
|
-
readonly deferredName: string;
|
|
684
|
+
readonly fileId: string;
|
|
685
|
+
readonly parts?: readonly {
|
|
686
|
+
readonly partNumber: number;
|
|
687
|
+
readonly etag: string;
|
|
688
|
+
}[] | undefined;
|
|
493
689
|
}, options?: {
|
|
494
690
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
495
691
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
496
692
|
readonly discard?: Discard | undefined;
|
|
497
693
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
498
|
-
readonly
|
|
694
|
+
readonly id: string;
|
|
695
|
+
readonly runId: string;
|
|
696
|
+
readonly step: string;
|
|
697
|
+
readonly name: string;
|
|
698
|
+
readonly caption?: string;
|
|
699
|
+
readonly contentType: string;
|
|
700
|
+
readonly kind: "html" | "image" | "other" | "text" | "video";
|
|
701
|
+
readonly byteSize: number;
|
|
702
|
+
readonly sha256: string;
|
|
703
|
+
readonly status: "available" | "expired" | "refused" | "rejected" | "removed" | "removing" | "uploading";
|
|
499
704
|
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
500
|
-
readonly
|
|
705
|
+
readonly id: string;
|
|
706
|
+
readonly runId: string;
|
|
707
|
+
readonly step: string;
|
|
708
|
+
readonly name: string;
|
|
709
|
+
readonly caption?: string;
|
|
710
|
+
readonly contentType: string;
|
|
711
|
+
readonly kind: "html" | "image" | "other" | "text" | "video";
|
|
712
|
+
readonly byteSize: number;
|
|
713
|
+
readonly sha256: string;
|
|
714
|
+
readonly status: "available" | "expired" | "refused" | "rejected" | "removed" | "removing" | "uploading";
|
|
501
715
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
502
|
-
|
|
716
|
+
bundle: (digest: string) => Effect.Effect<{
|
|
717
|
+
readonly bundle: string;
|
|
718
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
719
|
+
settledRuns: (runIds: readonly string[]) => Effect.Effect<readonly string[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
720
|
+
reportSteer: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
721
|
+
readonly workUnitId: string;
|
|
722
|
+
readonly messageId: string;
|
|
723
|
+
readonly delivered: boolean;
|
|
724
|
+
}, options?: {
|
|
725
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
726
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
727
|
+
readonly discard?: Discard | undefined;
|
|
728
|
+
} | 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>;
|
|
729
|
+
appendTranscript: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
730
|
+
readonly workUnitId: string;
|
|
731
|
+
readonly entries: readonly {
|
|
732
|
+
readonly sequence: number;
|
|
733
|
+
readonly event: {
|
|
734
|
+
readonly kind: "message";
|
|
735
|
+
readonly role: "assistant" | "user";
|
|
736
|
+
readonly text: string;
|
|
737
|
+
} | {
|
|
738
|
+
readonly kind: "tool_call";
|
|
739
|
+
readonly callId: string;
|
|
740
|
+
readonly name: string;
|
|
741
|
+
readonly arguments: unknown;
|
|
742
|
+
} | {
|
|
743
|
+
readonly kind: "tool_result";
|
|
744
|
+
readonly callId: string;
|
|
745
|
+
readonly output: string;
|
|
746
|
+
readonly isError?: boolean;
|
|
747
|
+
} | {
|
|
748
|
+
readonly kind: "file";
|
|
749
|
+
readonly path: string;
|
|
750
|
+
readonly change: "changed" | "read";
|
|
751
|
+
} | {
|
|
752
|
+
readonly kind: "question";
|
|
753
|
+
readonly text: string;
|
|
754
|
+
} | {
|
|
755
|
+
readonly kind: "answer";
|
|
756
|
+
readonly callId?: string;
|
|
757
|
+
readonly questionId?: string;
|
|
758
|
+
readonly text: string;
|
|
759
|
+
} | {
|
|
760
|
+
readonly kind: "steer";
|
|
761
|
+
readonly messageId: string;
|
|
762
|
+
readonly text: string;
|
|
763
|
+
} | {
|
|
764
|
+
readonly kind: "secret_refused";
|
|
765
|
+
readonly reference?: string;
|
|
766
|
+
readonly host: string;
|
|
767
|
+
readonly reason: string;
|
|
768
|
+
} | {
|
|
769
|
+
readonly kind: "lifecycle";
|
|
770
|
+
readonly state: "canceled" | "failed" | "finished" | "parked" | "resumed" | "started";
|
|
771
|
+
};
|
|
772
|
+
}[];
|
|
773
|
+
}, options?: {
|
|
774
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
775
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
776
|
+
readonly discard?: Discard | undefined;
|
|
777
|
+
} | 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>;
|
|
778
|
+
createCheckpointFile: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
503
779
|
readonly lease: {
|
|
504
780
|
readonly workUnitId: string;
|
|
505
781
|
readonly leaseOwnerId: string;
|
|
@@ -509,211 +785,8 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
509
785
|
readonly fencingToken: string;
|
|
510
786
|
readonly capacitySlot: string;
|
|
511
787
|
};
|
|
512
|
-
|
|
513
|
-
readonly
|
|
514
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
515
|
-
readonly discard?: Discard | undefined;
|
|
516
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
517
|
-
readonly [x: string]: string;
|
|
518
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
519
|
-
readonly [x: string]: string;
|
|
520
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
521
|
-
suspend: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
522
|
-
readonly lease: {
|
|
523
|
-
readonly workUnitId: string;
|
|
524
|
-
readonly leaseOwnerId: string;
|
|
525
|
-
readonly runnerReplicaId: string;
|
|
526
|
-
readonly leaseId: string;
|
|
527
|
-
readonly attempt: number;
|
|
528
|
-
readonly fencingToken: string;
|
|
529
|
-
readonly capacitySlot: string;
|
|
530
|
-
};
|
|
531
|
-
}, options?: {
|
|
532
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
533
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
534
|
-
readonly discard?: Discard | undefined;
|
|
535
|
-
} | 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>;
|
|
536
|
-
finishProgram: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
537
|
-
readonly lease: {
|
|
538
|
-
readonly workUnitId: string;
|
|
539
|
-
readonly leaseOwnerId: string;
|
|
540
|
-
readonly runnerReplicaId: string;
|
|
541
|
-
readonly leaseId: string;
|
|
542
|
-
readonly attempt: number;
|
|
543
|
-
readonly fencingToken: string;
|
|
544
|
-
readonly capacitySlot: string;
|
|
545
|
-
};
|
|
546
|
-
readonly outcome: {
|
|
547
|
-
readonly status: "completed";
|
|
548
|
-
readonly output: unknown;
|
|
549
|
-
} | {
|
|
550
|
-
readonly status: "failed";
|
|
551
|
-
readonly failureSummary: string;
|
|
552
|
-
};
|
|
553
|
-
}, options?: {
|
|
554
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
555
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
556
|
-
readonly discard?: Discard | undefined;
|
|
557
|
-
} | 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>;
|
|
558
|
-
startAgentStep: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
559
|
-
readonly lease: {
|
|
560
|
-
readonly workUnitId: string;
|
|
561
|
-
readonly leaseOwnerId: string;
|
|
562
|
-
readonly runnerReplicaId: string;
|
|
563
|
-
readonly leaseId: string;
|
|
564
|
-
readonly attempt: number;
|
|
565
|
-
readonly fencingToken: string;
|
|
566
|
-
readonly capacitySlot: string;
|
|
567
|
-
};
|
|
568
|
-
readonly step: string;
|
|
569
|
-
readonly deferredName: string;
|
|
570
|
-
readonly role: string;
|
|
571
|
-
readonly agentId: string;
|
|
572
|
-
readonly prompt: string;
|
|
573
|
-
readonly outputSchema: unknown;
|
|
574
|
-
readonly secrets?: readonly string[];
|
|
575
|
-
}, options?: {
|
|
576
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
577
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
578
|
-
readonly discard?: Discard | undefined;
|
|
579
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
580
|
-
readonly stepAttemptId: string;
|
|
581
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
582
|
-
readonly stepAttemptId: string;
|
|
583
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
584
|
-
startVerification: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
585
|
-
readonly lease: {
|
|
586
|
-
readonly workUnitId: string;
|
|
587
|
-
readonly leaseOwnerId: string;
|
|
588
|
-
readonly runnerReplicaId: string;
|
|
589
|
-
readonly leaseId: string;
|
|
590
|
-
readonly attempt: number;
|
|
591
|
-
readonly fencingToken: string;
|
|
592
|
-
readonly capacitySlot: string;
|
|
593
|
-
};
|
|
594
|
-
readonly step: string;
|
|
595
|
-
readonly deferredName: string;
|
|
596
|
-
readonly revision?: string;
|
|
597
|
-
readonly checks?: readonly string[] | undefined;
|
|
598
|
-
}, options?: {
|
|
599
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
600
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
601
|
-
readonly discard?: Discard | undefined;
|
|
602
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
603
|
-
readonly verificationId: string;
|
|
604
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
605
|
-
readonly verificationId: string;
|
|
606
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
607
|
-
knownEvidence: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
608
|
-
readonly lease: {
|
|
609
|
-
readonly workUnitId: string;
|
|
610
|
-
readonly leaseOwnerId: string;
|
|
611
|
-
readonly runnerReplicaId: string;
|
|
612
|
-
readonly leaseId: string;
|
|
613
|
-
readonly attempt: number;
|
|
614
|
-
readonly fencingToken: string;
|
|
615
|
-
readonly capacitySlot: string;
|
|
616
|
-
};
|
|
617
|
-
readonly trees: readonly string[];
|
|
618
|
-
}, options?: {
|
|
619
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
620
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
621
|
-
readonly discard?: Discard | undefined;
|
|
622
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : readonly {
|
|
623
|
-
readonly tree: string;
|
|
624
|
-
readonly name: string;
|
|
625
|
-
readonly command: string;
|
|
626
|
-
}[], import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<readonly {
|
|
627
|
-
readonly tree: string;
|
|
628
|
-
readonly name: string;
|
|
629
|
-
readonly command: string;
|
|
630
|
-
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
631
|
-
awaitEvent: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
632
|
-
readonly lease: {
|
|
633
|
-
readonly workUnitId: string;
|
|
634
|
-
readonly leaseOwnerId: string;
|
|
635
|
-
readonly runnerReplicaId: string;
|
|
636
|
-
readonly leaseId: string;
|
|
637
|
-
readonly attempt: number;
|
|
638
|
-
readonly fencingToken: string;
|
|
639
|
-
readonly capacitySlot: string;
|
|
640
|
-
};
|
|
641
|
-
readonly step: string;
|
|
642
|
-
readonly deferredName: string;
|
|
643
|
-
readonly event: string;
|
|
644
|
-
readonly filter?: {
|
|
645
|
-
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | null)[] | null;
|
|
646
|
-
} | undefined;
|
|
647
|
-
readonly timeoutMillis: number;
|
|
648
|
-
}, options?: {
|
|
649
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
650
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
651
|
-
readonly discard?: Discard | undefined;
|
|
652
|
-
} | 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>;
|
|
653
|
-
admitChild: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
654
|
-
readonly lease: {
|
|
655
|
-
readonly workUnitId: string;
|
|
656
|
-
readonly leaseOwnerId: string;
|
|
657
|
-
readonly runnerReplicaId: string;
|
|
658
|
-
readonly leaseId: string;
|
|
659
|
-
readonly attempt: number;
|
|
660
|
-
readonly fencingToken: string;
|
|
661
|
-
readonly capacitySlot: string;
|
|
662
|
-
};
|
|
663
|
-
readonly step: string;
|
|
664
|
-
readonly loop: string;
|
|
665
|
-
readonly input: unknown;
|
|
666
|
-
readonly deferredName: string;
|
|
667
|
-
}, options?: {
|
|
668
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
669
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
670
|
-
readonly discard?: Discard | undefined;
|
|
671
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
672
|
-
readonly runId: string;
|
|
673
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
674
|
-
readonly runId: string;
|
|
675
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
676
|
-
storeArtifact: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
677
|
-
readonly lease: {
|
|
678
|
-
readonly workUnitId: string;
|
|
679
|
-
readonly leaseOwnerId: string;
|
|
680
|
-
readonly runnerReplicaId: string;
|
|
681
|
-
readonly leaseId: string;
|
|
682
|
-
readonly attempt: number;
|
|
683
|
-
readonly fencingToken: string;
|
|
684
|
-
readonly capacitySlot: string;
|
|
685
|
-
};
|
|
686
|
-
readonly step: string;
|
|
687
|
-
readonly kind: string;
|
|
688
|
-
readonly title: string;
|
|
689
|
-
readonly text: string;
|
|
690
|
-
readonly data?: unknown;
|
|
691
|
-
readonly fileIds?: readonly string[] | undefined;
|
|
692
|
-
}, options?: {
|
|
693
|
-
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
694
|
-
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
695
|
-
readonly discard?: Discard | undefined;
|
|
696
|
-
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
697
|
-
readonly artifactId: string;
|
|
698
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
699
|
-
readonly artifactId: string;
|
|
700
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
701
|
-
createRunFile: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
702
|
-
readonly lease: {
|
|
703
|
-
readonly workUnitId: string;
|
|
704
|
-
readonly leaseOwnerId: string;
|
|
705
|
-
readonly runnerReplicaId: string;
|
|
706
|
-
readonly leaseId: string;
|
|
707
|
-
readonly attempt: number;
|
|
708
|
-
readonly fencingToken: string;
|
|
709
|
-
readonly capacitySlot: string;
|
|
710
|
-
};
|
|
711
|
-
readonly step: string;
|
|
712
|
-
readonly name: string;
|
|
713
|
-
readonly caption?: string | undefined;
|
|
714
|
-
readonly contentType: string;
|
|
715
|
-
readonly byteSize: number;
|
|
716
|
-
readonly sha256: string;
|
|
788
|
+
readonly byteSize: number;
|
|
789
|
+
readonly sha256: string;
|
|
717
790
|
}, options?: {
|
|
718
791
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
719
792
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
@@ -783,7 +856,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
783
856
|
}[];
|
|
784
857
|
} | undefined;
|
|
785
858
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("../../../core/src/index").RunFileRefused | import("./runner-group").RunnerRpcError, never>;
|
|
786
|
-
|
|
859
|
+
checkpointFileParts: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
787
860
|
readonly lease: {
|
|
788
861
|
readonly workUnitId: string;
|
|
789
862
|
readonly leaseOwnerId: string;
|
|
@@ -818,7 +891,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
818
891
|
readonly partNumber: number;
|
|
819
892
|
}[];
|
|
820
893
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
821
|
-
|
|
894
|
+
completeCheckpointFile: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
822
895
|
readonly lease: {
|
|
823
896
|
readonly workUnitId: string;
|
|
824
897
|
readonly leaseOwnerId: string;
|
|
@@ -860,7 +933,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
860
933
|
readonly sha256: string;
|
|
861
934
|
readonly status: "available" | "expired" | "refused" | "rejected" | "removed" | "removing" | "uploading";
|
|
862
935
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
863
|
-
|
|
936
|
+
saveCheckpoint: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
864
937
|
readonly lease: {
|
|
865
938
|
readonly workUnitId: string;
|
|
866
939
|
readonly leaseOwnerId: string;
|
|
@@ -870,15 +943,22 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
870
943
|
readonly fencingToken: string;
|
|
871
944
|
readonly capacitySlot: string;
|
|
872
945
|
};
|
|
873
|
-
readonly
|
|
874
|
-
|
|
875
|
-
|
|
946
|
+
readonly checkpoint: {
|
|
947
|
+
readonly ref?: string;
|
|
948
|
+
readonly revision?: string;
|
|
949
|
+
readonly session?: {
|
|
950
|
+
readonly harness: string;
|
|
951
|
+
readonly id: string;
|
|
952
|
+
readonly name: string;
|
|
953
|
+
readonly fileId: string;
|
|
954
|
+
};
|
|
955
|
+
};
|
|
876
956
|
}, options?: {
|
|
877
957
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
878
958
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
879
959
|
readonly discard?: Discard | undefined;
|
|
880
960
|
} | 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>;
|
|
881
|
-
|
|
961
|
+
resumeCheckpoint: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
882
962
|
readonly lease: {
|
|
883
963
|
readonly workUnitId: string;
|
|
884
964
|
readonly leaseOwnerId: string;
|
|
@@ -888,64 +968,81 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
888
968
|
readonly fencingToken: string;
|
|
889
969
|
readonly capacitySlot: string;
|
|
890
970
|
};
|
|
891
|
-
readonly step: string;
|
|
892
|
-
readonly effect: {
|
|
893
|
-
readonly kind: "post_comment";
|
|
894
|
-
readonly changeRequestId: string;
|
|
895
|
-
readonly body: string;
|
|
896
|
-
} | {
|
|
897
|
-
readonly kind: "change_request";
|
|
898
|
-
readonly title: string;
|
|
899
|
-
readonly body: string;
|
|
900
|
-
readonly integration?: string;
|
|
901
|
-
} | {
|
|
902
|
-
readonly kind: "write_back";
|
|
903
|
-
readonly milestone?: "change_request_opened" | "failed" | "merged" | "started";
|
|
904
|
-
readonly changeRequestUrl?: string;
|
|
905
|
-
};
|
|
906
971
|
}, options?: {
|
|
907
972
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
908
973
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
909
974
|
readonly discard?: Discard | undefined;
|
|
910
975
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
911
|
-
readonly
|
|
912
|
-
readonly
|
|
913
|
-
readonly
|
|
976
|
+
readonly ref?: string;
|
|
977
|
+
readonly revision?: string;
|
|
978
|
+
readonly session?: {
|
|
979
|
+
readonly harness: string;
|
|
980
|
+
readonly id: string;
|
|
981
|
+
readonly name: string;
|
|
982
|
+
readonly url: string;
|
|
983
|
+
readonly headers?: {
|
|
984
|
+
readonly [x: string]: string;
|
|
985
|
+
};
|
|
986
|
+
};
|
|
914
987
|
} | undefined, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
915
|
-
readonly
|
|
916
|
-
readonly
|
|
917
|
-
readonly
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
readonly
|
|
922
|
-
readonly
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
988
|
+
readonly ref?: string;
|
|
989
|
+
readonly revision?: string;
|
|
990
|
+
readonly session?: {
|
|
991
|
+
readonly harness: string;
|
|
992
|
+
readonly id: string;
|
|
993
|
+
readonly name: string;
|
|
994
|
+
readonly url: string;
|
|
995
|
+
readonly headers?: {
|
|
996
|
+
readonly [x: string]: string;
|
|
997
|
+
};
|
|
998
|
+
};
|
|
999
|
+
} | undefined, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1000
|
+
settledCheckpoints: Effect.Effect<readonly {
|
|
1001
|
+
readonly stepAttemptId: string;
|
|
1002
|
+
readonly ref?: string;
|
|
1003
|
+
readonly repoBinding?: {
|
|
1004
|
+
readonly id: string;
|
|
1005
|
+
readonly provider: "azure-devops" | "bitbucket" | "forgejo" | "generic_git" | "gitea" | "gitee" | "github" | "gitlab";
|
|
1006
|
+
readonly host: string;
|
|
1007
|
+
readonly owner: string;
|
|
1008
|
+
readonly name: string;
|
|
1009
|
+
readonly repositoryUrl?: string;
|
|
1010
|
+
readonly pathPrefix?: string;
|
|
1011
|
+
readonly defaultTargetBranch: string;
|
|
1012
|
+
readonly expectedBranch?: string;
|
|
1013
|
+
readonly expectedCommitSha?: string;
|
|
1014
|
+
};
|
|
1015
|
+
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1016
|
+
forgetCheckpoints: (stepAttemptIds: readonly string[]) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1017
|
+
gitCredential: (repoBindingId: string) => Effect.Effect<{
|
|
1018
|
+
readonly username: string;
|
|
1019
|
+
readonly password: string;
|
|
1020
|
+
} | undefined, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1021
|
+
/** Delivers the replica's signals until the stream ends or fails. */
|
|
1022
|
+
listen: (runnerReplicaId: string, onSignal: (signal: RunnerSignal) => Effect.Effect<void>) => Effect.Effect<void, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1023
|
+
}, never, import("effect/Scope").Scope>;
|
|
1024
|
+
export type RunnerRpcClient = Effect.Success<ReturnType<typeof makeRunnerRpcClient>>;
|
|
1025
|
+
/** A program process's connection: its journal and domain calls, open for the caller's scope. */
|
|
1026
|
+
export declare const makeProgramRpcClient: (options: ConnectionOptions) => Effect.Effect<{
|
|
1027
|
+
recordActivity: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1028
|
+
readonly lease: {
|
|
1029
|
+
readonly workUnitId: string;
|
|
1030
|
+
readonly leaseOwnerId: string;
|
|
1031
|
+
readonly runnerReplicaId: string;
|
|
1032
|
+
readonly leaseId: string;
|
|
1033
|
+
readonly attempt: number;
|
|
926
1034
|
readonly fencingToken: string;
|
|
927
1035
|
readonly capacitySlot: string;
|
|
928
1036
|
};
|
|
929
|
-
readonly
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
readonly body: string;
|
|
933
|
-
readonly acceptanceCriteria: readonly string[];
|
|
934
|
-
readonly blockedBy: readonly string[];
|
|
935
|
-
readonly outcome?: "bug" | "docs" | "feature" | "investigation" | "migration" | "refactor";
|
|
936
|
-
}[];
|
|
1037
|
+
readonly name: string;
|
|
1038
|
+
readonly attempt: number;
|
|
1039
|
+
readonly exit: unknown;
|
|
937
1040
|
}, options?: {
|
|
938
1041
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
939
1042
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
940
1043
|
readonly discard?: Discard | undefined;
|
|
941
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
942
|
-
|
|
943
|
-
readonly taskId: string;
|
|
944
|
-
}[], import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<readonly {
|
|
945
|
-
readonly key: string;
|
|
946
|
-
readonly taskId: string;
|
|
947
|
-
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
948
|
-
readTranscripts: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1044
|
+
} | 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>;
|
|
1045
|
+
deferredDone: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
949
1046
|
readonly lease: {
|
|
950
1047
|
readonly workUnitId: string;
|
|
951
1048
|
readonly leaseOwnerId: string;
|
|
@@ -955,40 +1052,14 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
955
1052
|
readonly fencingToken: string;
|
|
956
1053
|
readonly capacitySlot: string;
|
|
957
1054
|
};
|
|
958
|
-
readonly
|
|
959
|
-
readonly
|
|
1055
|
+
readonly name: string;
|
|
1056
|
+
readonly exit: unknown;
|
|
960
1057
|
}, options?: {
|
|
961
1058
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
962
1059
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
963
1060
|
readonly discard?: Discard | undefined;
|
|
964
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
965
|
-
|
|
966
|
-
readonly runId: string;
|
|
967
|
-
readonly loopId: string;
|
|
968
|
-
readonly teamId?: string;
|
|
969
|
-
readonly failure?: string;
|
|
970
|
-
readonly entries: readonly {
|
|
971
|
-
readonly stepAttemptId: string;
|
|
972
|
-
readonly sequence: number;
|
|
973
|
-
readonly kind: string;
|
|
974
|
-
readonly text: string;
|
|
975
|
-
}[];
|
|
976
|
-
}[];
|
|
977
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
978
|
-
readonly runs: readonly {
|
|
979
|
-
readonly runId: string;
|
|
980
|
-
readonly loopId: string;
|
|
981
|
-
readonly teamId?: string;
|
|
982
|
-
readonly failure?: string;
|
|
983
|
-
readonly entries: readonly {
|
|
984
|
-
readonly stepAttemptId: string;
|
|
985
|
-
readonly sequence: number;
|
|
986
|
-
readonly kind: string;
|
|
987
|
-
readonly text: string;
|
|
988
|
-
}[];
|
|
989
|
-
}[];
|
|
990
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
991
|
-
propose: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1061
|
+
} | 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>;
|
|
1062
|
+
scheduleClock: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
992
1063
|
readonly lease: {
|
|
993
1064
|
readonly workUnitId: string;
|
|
994
1065
|
readonly leaseOwnerId: string;
|
|
@@ -998,47 +1069,15 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
998
1069
|
readonly fencingToken: string;
|
|
999
1070
|
readonly capacitySlot: string;
|
|
1000
1071
|
};
|
|
1001
|
-
readonly
|
|
1002
|
-
readonly
|
|
1003
|
-
|
|
1004
|
-
readonly teamId: string;
|
|
1005
|
-
readonly content: string;
|
|
1006
|
-
readonly citations: readonly [{
|
|
1007
|
-
readonly runId: string;
|
|
1008
|
-
readonly stepAttemptId: string;
|
|
1009
|
-
readonly sequence: number;
|
|
1010
|
-
}, ...{
|
|
1011
|
-
readonly runId: string;
|
|
1012
|
-
readonly stepAttemptId: string;
|
|
1013
|
-
readonly sequence: number;
|
|
1014
|
-
}[]];
|
|
1015
|
-
} | {
|
|
1016
|
-
readonly kind: "task";
|
|
1017
|
-
readonly title: string;
|
|
1018
|
-
readonly description: string;
|
|
1019
|
-
readonly teamId?: string;
|
|
1020
|
-
readonly citations: readonly [{
|
|
1021
|
-
readonly runId: string;
|
|
1022
|
-
readonly stepAttemptId: string;
|
|
1023
|
-
readonly sequence: number;
|
|
1024
|
-
}, ...{
|
|
1025
|
-
readonly runId: string;
|
|
1026
|
-
readonly stepAttemptId: string;
|
|
1027
|
-
readonly sequence: number;
|
|
1028
|
-
}[]];
|
|
1029
|
-
};
|
|
1072
|
+
readonly name: string;
|
|
1073
|
+
readonly deferredName: string;
|
|
1074
|
+
readonly durationMillis: number;
|
|
1030
1075
|
}, options?: {
|
|
1031
1076
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1032
1077
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1033
1078
|
readonly discard?: Discard | undefined;
|
|
1034
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
1035
|
-
|
|
1036
|
-
readonly id: string;
|
|
1037
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1038
|
-
readonly kind: "memory" | "task";
|
|
1039
|
-
readonly id: string;
|
|
1040
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1041
|
-
readProject: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1079
|
+
} | 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>;
|
|
1080
|
+
suspend: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1042
1081
|
readonly lease: {
|
|
1043
1082
|
readonly workUnitId: string;
|
|
1044
1083
|
readonly leaseOwnerId: string;
|
|
@@ -1048,68 +1087,12 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1048
1087
|
readonly fencingToken: string;
|
|
1049
1088
|
readonly capacitySlot: string;
|
|
1050
1089
|
};
|
|
1051
|
-
readonly step: string;
|
|
1052
|
-
readonly projectId: string;
|
|
1053
1090
|
}, options?: {
|
|
1054
1091
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1055
1092
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1056
1093
|
readonly discard?: Discard | undefined;
|
|
1057
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
1058
|
-
|
|
1059
|
-
readonly id: string;
|
|
1060
|
-
readonly name: string;
|
|
1061
|
-
};
|
|
1062
|
-
readonly health?: "at_risk" | "off_track" | "on_track";
|
|
1063
|
-
readonly since?: string;
|
|
1064
|
-
readonly runs: readonly {
|
|
1065
|
-
readonly runId: string;
|
|
1066
|
-
readonly loopId: string;
|
|
1067
|
-
readonly status: string;
|
|
1068
|
-
readonly taskKey?: string;
|
|
1069
|
-
readonly taskTitle?: string;
|
|
1070
|
-
readonly summary?: string;
|
|
1071
|
-
readonly entries: readonly {
|
|
1072
|
-
readonly stepAttemptId: string;
|
|
1073
|
-
readonly sequence: number;
|
|
1074
|
-
readonly kind: string;
|
|
1075
|
-
readonly text: string;
|
|
1076
|
-
}[];
|
|
1077
|
-
}[];
|
|
1078
|
-
readonly taskChanges: readonly {
|
|
1079
|
-
readonly taskKey: string;
|
|
1080
|
-
readonly title: string;
|
|
1081
|
-
readonly change: string;
|
|
1082
|
-
readonly at: string;
|
|
1083
|
-
}[];
|
|
1084
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1085
|
-
readonly project: {
|
|
1086
|
-
readonly id: string;
|
|
1087
|
-
readonly name: string;
|
|
1088
|
-
};
|
|
1089
|
-
readonly health?: "at_risk" | "off_track" | "on_track";
|
|
1090
|
-
readonly since?: string;
|
|
1091
|
-
readonly runs: readonly {
|
|
1092
|
-
readonly runId: string;
|
|
1093
|
-
readonly loopId: string;
|
|
1094
|
-
readonly status: string;
|
|
1095
|
-
readonly taskKey?: string;
|
|
1096
|
-
readonly taskTitle?: string;
|
|
1097
|
-
readonly summary?: string;
|
|
1098
|
-
readonly entries: readonly {
|
|
1099
|
-
readonly stepAttemptId: string;
|
|
1100
|
-
readonly sequence: number;
|
|
1101
|
-
readonly kind: string;
|
|
1102
|
-
readonly text: string;
|
|
1103
|
-
}[];
|
|
1104
|
-
}[];
|
|
1105
|
-
readonly taskChanges: readonly {
|
|
1106
|
-
readonly taskKey: string;
|
|
1107
|
-
readonly title: string;
|
|
1108
|
-
readonly change: string;
|
|
1109
|
-
readonly at: string;
|
|
1110
|
-
}[];
|
|
1111
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1112
|
-
draftUpdate: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1094
|
+
} | 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>;
|
|
1095
|
+
finishProgram: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1113
1096
|
readonly lease: {
|
|
1114
1097
|
readonly workUnitId: string;
|
|
1115
1098
|
readonly leaseOwnerId: string;
|
|
@@ -1119,25 +1102,19 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1119
1102
|
readonly fencingToken: string;
|
|
1120
1103
|
readonly capacitySlot: string;
|
|
1121
1104
|
};
|
|
1122
|
-
readonly
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
readonly
|
|
1128
|
-
readonly taskChanges: number;
|
|
1129
|
-
readonly since?: string;
|
|
1105
|
+
readonly outcome: {
|
|
1106
|
+
readonly status: "completed";
|
|
1107
|
+
readonly output: unknown;
|
|
1108
|
+
} | {
|
|
1109
|
+
readonly status: "failed";
|
|
1110
|
+
readonly failureSummary: string;
|
|
1130
1111
|
};
|
|
1131
1112
|
}, options?: {
|
|
1132
1113
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1133
1114
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1134
1115
|
readonly discard?: Discard | undefined;
|
|
1135
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
1136
|
-
|
|
1137
|
-
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1138
|
-
readonly id: string;
|
|
1139
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1140
|
-
integrationBranch: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1116
|
+
} | 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>;
|
|
1117
|
+
putQuestion: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1141
1118
|
readonly lease: {
|
|
1142
1119
|
readonly workUnitId: string;
|
|
1143
1120
|
readonly leaseOwnerId: string;
|
|
@@ -1147,21 +1124,33 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1147
1124
|
readonly fencingToken: string;
|
|
1148
1125
|
readonly capacitySlot: string;
|
|
1149
1126
|
};
|
|
1150
|
-
readonly
|
|
1127
|
+
readonly step: string;
|
|
1128
|
+
readonly prompt: string;
|
|
1129
|
+
readonly options?: readonly string[] | undefined;
|
|
1130
|
+
readonly optionDescriptions?: {
|
|
1131
|
+
readonly [x: string]: string;
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
readonly recommended?: string | undefined;
|
|
1134
|
+
readonly recommendationReason?: string | undefined;
|
|
1135
|
+
readonly informationOnly?: boolean | undefined;
|
|
1136
|
+
readonly verification?: {
|
|
1137
|
+
readonly name: string;
|
|
1138
|
+
readonly command: string;
|
|
1139
|
+
readonly workingDirectory?: string | undefined;
|
|
1140
|
+
} | undefined;
|
|
1141
|
+
readonly default?: string | undefined;
|
|
1142
|
+
readonly timeoutMillis?: number | undefined;
|
|
1143
|
+
readonly deferredName: string;
|
|
1151
1144
|
}, options?: {
|
|
1152
1145
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1153
1146
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1154
1147
|
readonly discard?: Discard | undefined;
|
|
1155
1148
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1156
|
-
readonly
|
|
1157
|
-
readonly branch: string;
|
|
1158
|
-
readonly revision: string;
|
|
1149
|
+
readonly questionId: string;
|
|
1159
1150
|
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1160
|
-
readonly
|
|
1161
|
-
readonly branch: string;
|
|
1162
|
-
readonly revision: string;
|
|
1151
|
+
readonly questionId: string;
|
|
1163
1152
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1164
|
-
|
|
1153
|
+
programSecrets: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1165
1154
|
readonly lease: {
|
|
1166
1155
|
readonly workUnitId: string;
|
|
1167
1156
|
readonly leaseOwnerId: string;
|
|
@@ -1171,24 +1160,16 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1171
1160
|
readonly fencingToken: string;
|
|
1172
1161
|
readonly capacitySlot: string;
|
|
1173
1162
|
};
|
|
1174
|
-
readonly step: string;
|
|
1175
|
-
readonly changeRequestId: string;
|
|
1176
1163
|
}, options?: {
|
|
1177
1164
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1178
1165
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1179
1166
|
readonly discard?: Discard | undefined;
|
|
1180
1167
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1181
|
-
readonly
|
|
1182
|
-
readonly revision: string;
|
|
1183
|
-
} | {
|
|
1184
|
-
readonly status: "conflict";
|
|
1168
|
+
readonly [x: string]: string;
|
|
1185
1169
|
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1186
|
-
readonly
|
|
1187
|
-
readonly revision: string;
|
|
1188
|
-
} | {
|
|
1189
|
-
readonly status: "conflict";
|
|
1170
|
+
readonly [x: string]: string;
|
|
1190
1171
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1191
|
-
|
|
1172
|
+
startAgentStep: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1192
1173
|
readonly lease: {
|
|
1193
1174
|
readonly workUnitId: string;
|
|
1194
1175
|
readonly leaseOwnerId: string;
|
|
@@ -1199,81 +1180,168 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1199
1180
|
readonly capacitySlot: string;
|
|
1200
1181
|
};
|
|
1201
1182
|
readonly step: string;
|
|
1202
|
-
readonly
|
|
1203
|
-
readonly
|
|
1204
|
-
readonly
|
|
1205
|
-
readonly
|
|
1183
|
+
readonly deferredName: string;
|
|
1184
|
+
readonly role: string;
|
|
1185
|
+
readonly agentId: string;
|
|
1186
|
+
readonly prompt: string;
|
|
1187
|
+
readonly skill?: string;
|
|
1188
|
+
readonly outputSchema: unknown;
|
|
1189
|
+
readonly secrets?: readonly string[];
|
|
1190
|
+
readonly timeoutMillis?: number;
|
|
1191
|
+
readonly mergeTarget?: string;
|
|
1206
1192
|
}, options?: {
|
|
1207
1193
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1208
1194
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1209
1195
|
readonly discard?: Discard | undefined;
|
|
1210
1196
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1211
|
-
readonly
|
|
1212
|
-
readonly revision: string;
|
|
1213
|
-
readonly url: string;
|
|
1197
|
+
readonly stepAttemptId: string;
|
|
1214
1198
|
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1215
|
-
readonly
|
|
1216
|
-
readonly revision: string;
|
|
1217
|
-
readonly url: string;
|
|
1218
|
-
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1219
|
-
bundle: (digest: string) => Effect.Effect<{
|
|
1220
|
-
readonly bundle: string;
|
|
1199
|
+
readonly stepAttemptId: string;
|
|
1221
1200
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1201
|
+
startVerification: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1202
|
+
readonly lease: {
|
|
1203
|
+
readonly workUnitId: string;
|
|
1204
|
+
readonly leaseOwnerId: string;
|
|
1205
|
+
readonly runnerReplicaId: string;
|
|
1206
|
+
readonly leaseId: string;
|
|
1207
|
+
readonly attempt: number;
|
|
1208
|
+
readonly fencingToken: string;
|
|
1209
|
+
readonly capacitySlot: string;
|
|
1210
|
+
};
|
|
1211
|
+
readonly step: string;
|
|
1212
|
+
readonly deferredName: string;
|
|
1213
|
+
readonly revision?: string;
|
|
1214
|
+
readonly checks?: readonly string[] | undefined;
|
|
1215
|
+
readonly suggested?: readonly {
|
|
1216
|
+
readonly name: string;
|
|
1217
|
+
readonly command: string;
|
|
1218
|
+
readonly workingDirectory?: string;
|
|
1219
|
+
readonly suggested?: boolean;
|
|
1220
|
+
}[];
|
|
1221
|
+
readonly measure?: {
|
|
1222
|
+
readonly base?: string;
|
|
1223
|
+
readonly plan: {
|
|
1224
|
+
readonly command: string;
|
|
1225
|
+
readonly prepare?: string;
|
|
1226
|
+
readonly workingDirectory?: string;
|
|
1227
|
+
readonly warmup?: number;
|
|
1228
|
+
readonly metrics: readonly {
|
|
1229
|
+
readonly name: string;
|
|
1230
|
+
readonly direction: "higher" | "lower";
|
|
1231
|
+
readonly role: "guardrail" | "primary";
|
|
1232
|
+
readonly lowVariance?: boolean;
|
|
1233
|
+
}[];
|
|
1234
|
+
};
|
|
1235
|
+
readonly samples: number;
|
|
1236
|
+
readonly calibrate: boolean;
|
|
1237
|
+
};
|
|
1227
1238
|
}, options?: {
|
|
1228
1239
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1229
1240
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1230
1241
|
readonly discard?: Discard | undefined;
|
|
1231
|
-
} | undefined) => Effect.Effect<Discard extends true ? void :
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
readonly
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
readonly kind: "answer";
|
|
1259
|
-
readonly callId?: string;
|
|
1260
|
-
readonly questionId?: string;
|
|
1261
|
-
readonly text: string;
|
|
1262
|
-
} | {
|
|
1263
|
-
readonly kind: "steer";
|
|
1264
|
-
readonly messageId: string;
|
|
1265
|
-
readonly text: string;
|
|
1266
|
-
} | {
|
|
1267
|
-
readonly kind: "lifecycle";
|
|
1268
|
-
readonly state: "canceled" | "failed" | "finished" | "resumed" | "started";
|
|
1242
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1243
|
+
readonly verificationId: string;
|
|
1244
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1245
|
+
readonly verificationId: string;
|
|
1246
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1247
|
+
awaitEvent: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1248
|
+
readonly lease: {
|
|
1249
|
+
readonly workUnitId: string;
|
|
1250
|
+
readonly leaseOwnerId: string;
|
|
1251
|
+
readonly runnerReplicaId: string;
|
|
1252
|
+
readonly leaseId: string;
|
|
1253
|
+
readonly attempt: number;
|
|
1254
|
+
readonly fencingToken: string;
|
|
1255
|
+
readonly capacitySlot: string;
|
|
1256
|
+
};
|
|
1257
|
+
readonly step: string;
|
|
1258
|
+
readonly deferredName: string;
|
|
1259
|
+
readonly event: string;
|
|
1260
|
+
readonly filter?: {
|
|
1261
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | null)[] | null;
|
|
1262
|
+
} | undefined;
|
|
1263
|
+
readonly timeoutMillis: number;
|
|
1264
|
+
readonly since?: string;
|
|
1265
|
+
readonly or?: readonly {
|
|
1266
|
+
readonly event: string;
|
|
1267
|
+
readonly filter?: {
|
|
1268
|
+
readonly [x: string]: string | number | boolean | readonly (string | number | boolean | null)[] | null;
|
|
1269
1269
|
};
|
|
1270
|
+
readonly since?: string;
|
|
1270
1271
|
}[];
|
|
1271
1272
|
}, options?: {
|
|
1272
1273
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1273
1274
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1274
1275
|
readonly discard?: Discard | undefined;
|
|
1275
1276
|
} | 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>;
|
|
1276
|
-
|
|
1277
|
+
claimResource: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1278
|
+
readonly lease: {
|
|
1279
|
+
readonly workUnitId: string;
|
|
1280
|
+
readonly leaseOwnerId: string;
|
|
1281
|
+
readonly runnerReplicaId: string;
|
|
1282
|
+
readonly leaseId: string;
|
|
1283
|
+
readonly attempt: number;
|
|
1284
|
+
readonly fencingToken: string;
|
|
1285
|
+
readonly capacitySlot: string;
|
|
1286
|
+
};
|
|
1287
|
+
readonly step: string;
|
|
1288
|
+
readonly deferredName: string;
|
|
1289
|
+
readonly resource: string;
|
|
1290
|
+
readonly action: "claim" | "let_go" | "take_over";
|
|
1291
|
+
}, options?: {
|
|
1292
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1293
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1294
|
+
readonly discard?: Discard | undefined;
|
|
1295
|
+
} | 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>;
|
|
1296
|
+
admitChild: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1297
|
+
readonly lease: {
|
|
1298
|
+
readonly workUnitId: string;
|
|
1299
|
+
readonly leaseOwnerId: string;
|
|
1300
|
+
readonly runnerReplicaId: string;
|
|
1301
|
+
readonly leaseId: string;
|
|
1302
|
+
readonly attempt: number;
|
|
1303
|
+
readonly fencingToken: string;
|
|
1304
|
+
readonly capacitySlot: string;
|
|
1305
|
+
};
|
|
1306
|
+
readonly step: string;
|
|
1307
|
+
readonly loop: string;
|
|
1308
|
+
readonly input: unknown;
|
|
1309
|
+
readonly deferredName: string;
|
|
1310
|
+
}, options?: {
|
|
1311
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1312
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1313
|
+
readonly discard?: Discard | undefined;
|
|
1314
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1315
|
+
readonly runId: string;
|
|
1316
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1317
|
+
readonly runId: string;
|
|
1318
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1319
|
+
storeArtifact: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1320
|
+
readonly lease: {
|
|
1321
|
+
readonly workUnitId: string;
|
|
1322
|
+
readonly leaseOwnerId: string;
|
|
1323
|
+
readonly runnerReplicaId: string;
|
|
1324
|
+
readonly leaseId: string;
|
|
1325
|
+
readonly attempt: number;
|
|
1326
|
+
readonly fencingToken: string;
|
|
1327
|
+
readonly capacitySlot: string;
|
|
1328
|
+
};
|
|
1329
|
+
readonly step: string;
|
|
1330
|
+
readonly kind: string;
|
|
1331
|
+
readonly title: string;
|
|
1332
|
+
readonly text: string;
|
|
1333
|
+
readonly data?: unknown;
|
|
1334
|
+
readonly fileIds?: readonly string[] | undefined;
|
|
1335
|
+
}, options?: {
|
|
1336
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1337
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1338
|
+
readonly discard?: Discard | undefined;
|
|
1339
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1340
|
+
readonly artifactId: string;
|
|
1341
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1342
|
+
readonly artifactId: string;
|
|
1343
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1344
|
+
createRunFile: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1277
1345
|
readonly lease: {
|
|
1278
1346
|
readonly workUnitId: string;
|
|
1279
1347
|
readonly leaseOwnerId: string;
|
|
@@ -1283,6 +1351,10 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1283
1351
|
readonly fencingToken: string;
|
|
1284
1352
|
readonly capacitySlot: string;
|
|
1285
1353
|
};
|
|
1354
|
+
readonly step: string;
|
|
1355
|
+
readonly name: string;
|
|
1356
|
+
readonly caption?: string | undefined;
|
|
1357
|
+
readonly contentType: string;
|
|
1286
1358
|
readonly byteSize: number;
|
|
1287
1359
|
readonly sha256: string;
|
|
1288
1360
|
}, options?: {
|
|
@@ -1354,7 +1426,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1354
1426
|
}[];
|
|
1355
1427
|
} | undefined;
|
|
1356
1428
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("../../../core/src/index").RunFileRefused | import("./runner-group").RunnerRpcError, never>;
|
|
1357
|
-
|
|
1429
|
+
runFileParts: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1358
1430
|
readonly lease: {
|
|
1359
1431
|
readonly workUnitId: string;
|
|
1360
1432
|
readonly leaseOwnerId: string;
|
|
@@ -1389,7 +1461,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1389
1461
|
readonly partNumber: number;
|
|
1390
1462
|
}[];
|
|
1391
1463
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1392
|
-
|
|
1464
|
+
completeRunFile: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1393
1465
|
readonly lease: {
|
|
1394
1466
|
readonly workUnitId: string;
|
|
1395
1467
|
readonly leaseOwnerId: string;
|
|
@@ -1431,7 +1503,7 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1431
1503
|
readonly sha256: string;
|
|
1432
1504
|
readonly status: "available" | "expired" | "refused" | "rejected" | "removed" | "removing" | "uploading";
|
|
1433
1505
|
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1434
|
-
|
|
1506
|
+
recordNote: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1435
1507
|
readonly lease: {
|
|
1436
1508
|
readonly workUnitId: string;
|
|
1437
1509
|
readonly leaseOwnerId: string;
|
|
@@ -1441,22 +1513,15 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1441
1513
|
readonly fencingToken: string;
|
|
1442
1514
|
readonly capacitySlot: string;
|
|
1443
1515
|
};
|
|
1444
|
-
readonly
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
readonly session?: {
|
|
1448
|
-
readonly harness: string;
|
|
1449
|
-
readonly id: string;
|
|
1450
|
-
readonly name: string;
|
|
1451
|
-
readonly fileId: string;
|
|
1452
|
-
};
|
|
1453
|
-
};
|
|
1516
|
+
readonly step: string;
|
|
1517
|
+
readonly text: string;
|
|
1518
|
+
readonly artifactId?: string | undefined;
|
|
1454
1519
|
}, options?: {
|
|
1455
1520
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1456
1521
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1457
1522
|
readonly discard?: Discard | undefined;
|
|
1458
1523
|
} | 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>;
|
|
1459
|
-
|
|
1524
|
+
performHostEffect: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1460
1525
|
readonly lease: {
|
|
1461
1526
|
readonly workUnitId: string;
|
|
1462
1527
|
readonly leaseOwnerId: string;
|
|
@@ -1466,53 +1531,651 @@ export declare const makeRunnerRpcClient: (options: {
|
|
|
1466
1531
|
readonly fencingToken: string;
|
|
1467
1532
|
readonly capacitySlot: string;
|
|
1468
1533
|
};
|
|
1534
|
+
readonly step: string;
|
|
1535
|
+
readonly effect: {
|
|
1536
|
+
readonly kind: "post_comment";
|
|
1537
|
+
readonly changeRequestId: string;
|
|
1538
|
+
readonly body: string;
|
|
1539
|
+
readonly threadId?: string;
|
|
1540
|
+
readonly summary?: string;
|
|
1541
|
+
readonly anchors?: readonly {
|
|
1542
|
+
readonly file: string;
|
|
1543
|
+
readonly line: number;
|
|
1544
|
+
readonly body: string;
|
|
1545
|
+
}[];
|
|
1546
|
+
} | {
|
|
1547
|
+
readonly kind: "change_request";
|
|
1548
|
+
readonly title: string;
|
|
1549
|
+
readonly body: string;
|
|
1550
|
+
readonly integration?: string;
|
|
1551
|
+
} | {
|
|
1552
|
+
readonly kind: "write_back";
|
|
1553
|
+
readonly milestone?: "change_request_opened" | "failed" | "merged" | "started";
|
|
1554
|
+
readonly changeRequestUrl?: string;
|
|
1555
|
+
};
|
|
1469
1556
|
}, options?: {
|
|
1470
1557
|
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1471
1558
|
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1472
1559
|
readonly discard?: Discard | undefined;
|
|
1473
1560
|
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1474
|
-
readonly
|
|
1475
|
-
readonly
|
|
1476
|
-
readonly
|
|
1477
|
-
readonly harness: string;
|
|
1478
|
-
readonly id: string;
|
|
1479
|
-
readonly name: string;
|
|
1480
|
-
readonly url: string;
|
|
1481
|
-
readonly headers?: {
|
|
1482
|
-
readonly [x: string]: string;
|
|
1483
|
-
};
|
|
1484
|
-
};
|
|
1561
|
+
readonly id: string;
|
|
1562
|
+
readonly number: string;
|
|
1563
|
+
readonly url: string;
|
|
1485
1564
|
} | undefined, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1486
|
-
readonly
|
|
1487
|
-
readonly
|
|
1488
|
-
readonly
|
|
1489
|
-
readonly harness: string;
|
|
1490
|
-
readonly id: string;
|
|
1491
|
-
readonly name: string;
|
|
1492
|
-
readonly url: string;
|
|
1493
|
-
readonly headers?: {
|
|
1494
|
-
readonly [x: string]: string;
|
|
1495
|
-
};
|
|
1496
|
-
};
|
|
1565
|
+
readonly id: string;
|
|
1566
|
+
readonly number: string;
|
|
1567
|
+
readonly url: string;
|
|
1497
1568
|
} | undefined, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1498
|
-
|
|
1499
|
-
readonly
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
readonly
|
|
1503
|
-
readonly
|
|
1504
|
-
readonly
|
|
1505
|
-
readonly
|
|
1506
|
-
readonly
|
|
1507
|
-
readonly repositoryUrl?: string;
|
|
1508
|
-
readonly pathPrefix?: string;
|
|
1509
|
-
readonly defaultTargetBranch: string;
|
|
1510
|
-
readonly expectedBranch?: string;
|
|
1511
|
-
readonly expectedCommitSha?: string;
|
|
1569
|
+
createPlanTasks: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1570
|
+
readonly lease: {
|
|
1571
|
+
readonly workUnitId: string;
|
|
1572
|
+
readonly leaseOwnerId: string;
|
|
1573
|
+
readonly runnerReplicaId: string;
|
|
1574
|
+
readonly leaseId: string;
|
|
1575
|
+
readonly attempt: number;
|
|
1576
|
+
readonly fencingToken: string;
|
|
1577
|
+
readonly capacitySlot: string;
|
|
1512
1578
|
};
|
|
1579
|
+
readonly projectId?: string;
|
|
1580
|
+
readonly tickets: readonly {
|
|
1581
|
+
readonly key: string;
|
|
1582
|
+
readonly title: string;
|
|
1583
|
+
readonly body: string;
|
|
1584
|
+
readonly acceptanceCriteria: readonly string[];
|
|
1585
|
+
readonly blockedBy: readonly string[];
|
|
1586
|
+
readonly outcome?: "bug" | "docs" | "feature" | "investigation" | "migration" | "performance" | "refactor";
|
|
1587
|
+
}[];
|
|
1588
|
+
}, options?: {
|
|
1589
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1590
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1591
|
+
readonly discard?: Discard | undefined;
|
|
1592
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : readonly {
|
|
1593
|
+
readonly key: string;
|
|
1594
|
+
readonly taskId: string;
|
|
1595
|
+
}[], import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<readonly {
|
|
1596
|
+
readonly key: string;
|
|
1597
|
+
readonly taskId: string;
|
|
1513
1598
|
}[], Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1599
|
+
alertTask: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1600
|
+
readonly lease: {
|
|
1601
|
+
readonly workUnitId: string;
|
|
1602
|
+
readonly leaseOwnerId: string;
|
|
1603
|
+
readonly runnerReplicaId: string;
|
|
1604
|
+
readonly leaseId: string;
|
|
1605
|
+
readonly attempt: number;
|
|
1606
|
+
readonly fencingToken: string;
|
|
1607
|
+
readonly capacitySlot: string;
|
|
1608
|
+
};
|
|
1609
|
+
readonly step: string;
|
|
1610
|
+
readonly fingerprint: string;
|
|
1611
|
+
readonly title: string;
|
|
1612
|
+
readonly windowHours: number;
|
|
1613
|
+
readonly resolved?: boolean;
|
|
1614
|
+
readonly priority?: "high" | "low" | "medium" | "urgent";
|
|
1615
|
+
}, options?: {
|
|
1616
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1617
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1618
|
+
readonly discard?: Discard | undefined;
|
|
1619
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1620
|
+
readonly taskId?: string;
|
|
1621
|
+
readonly created: boolean;
|
|
1622
|
+
readonly resolved?: boolean;
|
|
1623
|
+
readonly joined?: {
|
|
1624
|
+
readonly kind: "recent" | "run";
|
|
1625
|
+
readonly runId: string;
|
|
1626
|
+
};
|
|
1627
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1628
|
+
readonly taskId?: string;
|
|
1629
|
+
readonly created: boolean;
|
|
1630
|
+
readonly resolved?: boolean;
|
|
1631
|
+
readonly joined?: {
|
|
1632
|
+
readonly kind: "recent" | "run";
|
|
1633
|
+
readonly runId: string;
|
|
1634
|
+
};
|
|
1635
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1636
|
+
readTranscripts: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1637
|
+
readonly lease: {
|
|
1638
|
+
readonly workUnitId: string;
|
|
1639
|
+
readonly leaseOwnerId: string;
|
|
1640
|
+
readonly runnerReplicaId: string;
|
|
1641
|
+
readonly leaseId: string;
|
|
1642
|
+
readonly attempt: number;
|
|
1643
|
+
readonly fencingToken: string;
|
|
1644
|
+
readonly capacitySlot: string;
|
|
1645
|
+
};
|
|
1646
|
+
readonly step: string;
|
|
1647
|
+
readonly days: number;
|
|
1648
|
+
}, options?: {
|
|
1649
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1650
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1651
|
+
readonly discard?: Discard | undefined;
|
|
1652
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1653
|
+
readonly runs: readonly {
|
|
1654
|
+
readonly runId: string;
|
|
1655
|
+
readonly loopId: string;
|
|
1656
|
+
readonly status?: "canceled" | "completed" | "expired" | "failed";
|
|
1657
|
+
readonly teamId?: string;
|
|
1658
|
+
readonly failure?: string;
|
|
1659
|
+
readonly retried?: boolean;
|
|
1660
|
+
readonly entries: readonly {
|
|
1661
|
+
readonly stepAttemptId: string;
|
|
1662
|
+
readonly sequence: number;
|
|
1663
|
+
readonly kind: string;
|
|
1664
|
+
readonly text: string;
|
|
1665
|
+
}[];
|
|
1666
|
+
}[];
|
|
1667
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1668
|
+
readonly runs: readonly {
|
|
1669
|
+
readonly runId: string;
|
|
1670
|
+
readonly loopId: string;
|
|
1671
|
+
readonly status?: "canceled" | "completed" | "expired" | "failed";
|
|
1672
|
+
readonly teamId?: string;
|
|
1673
|
+
readonly failure?: string;
|
|
1674
|
+
readonly retried?: boolean;
|
|
1675
|
+
readonly entries: readonly {
|
|
1676
|
+
readonly stepAttemptId: string;
|
|
1677
|
+
readonly sequence: number;
|
|
1678
|
+
readonly kind: string;
|
|
1679
|
+
readonly text: string;
|
|
1680
|
+
}[];
|
|
1681
|
+
}[];
|
|
1682
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1683
|
+
pipelineStatus: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1684
|
+
readonly lease: {
|
|
1685
|
+
readonly workUnitId: string;
|
|
1686
|
+
readonly leaseOwnerId: string;
|
|
1687
|
+
readonly runnerReplicaId: string;
|
|
1688
|
+
readonly leaseId: string;
|
|
1689
|
+
readonly attempt: number;
|
|
1690
|
+
readonly fencingToken: string;
|
|
1691
|
+
readonly capacitySlot: string;
|
|
1692
|
+
};
|
|
1693
|
+
readonly step: string;
|
|
1694
|
+
readonly changeRequestId: string;
|
|
1695
|
+
}, options?: {
|
|
1696
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1697
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1698
|
+
readonly discard?: Discard | undefined;
|
|
1699
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1700
|
+
readonly head: string;
|
|
1701
|
+
readonly status: "canceled" | "failed" | "none" | "running" | "success";
|
|
1702
|
+
readonly source: "forge" | "reported";
|
|
1703
|
+
readonly jobs: readonly {
|
|
1704
|
+
readonly name: string;
|
|
1705
|
+
readonly status: "failed" | "running" | "skipped" | "success";
|
|
1706
|
+
readonly url?: string;
|
|
1707
|
+
readonly logTail?: string;
|
|
1708
|
+
}[];
|
|
1709
|
+
readonly readAt?: string;
|
|
1710
|
+
readonly runnerChecks?: readonly string[];
|
|
1711
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1712
|
+
readonly head: string;
|
|
1713
|
+
readonly status: "canceled" | "failed" | "none" | "running" | "success";
|
|
1714
|
+
readonly source: "forge" | "reported";
|
|
1715
|
+
readonly jobs: readonly {
|
|
1716
|
+
readonly name: string;
|
|
1717
|
+
readonly status: "failed" | "running" | "skipped" | "success";
|
|
1718
|
+
readonly url?: string;
|
|
1719
|
+
readonly logTail?: string;
|
|
1720
|
+
}[];
|
|
1721
|
+
readonly readAt?: string;
|
|
1722
|
+
readonly runnerChecks?: readonly string[];
|
|
1723
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1724
|
+
reportPipeline: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1725
|
+
readonly lease: {
|
|
1726
|
+
readonly workUnitId: string;
|
|
1727
|
+
readonly leaseOwnerId: string;
|
|
1728
|
+
readonly runnerReplicaId: string;
|
|
1729
|
+
readonly leaseId: string;
|
|
1730
|
+
readonly attempt: number;
|
|
1731
|
+
readonly fencingToken: string;
|
|
1732
|
+
readonly capacitySlot: string;
|
|
1733
|
+
};
|
|
1734
|
+
readonly step: string;
|
|
1735
|
+
readonly changeRequestId: string;
|
|
1736
|
+
readonly verification: string;
|
|
1737
|
+
}, options?: {
|
|
1738
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1739
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1740
|
+
readonly discard?: Discard | undefined;
|
|
1741
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1742
|
+
readonly head: string;
|
|
1743
|
+
readonly status: "failed" | "success";
|
|
1744
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1745
|
+
readonly head: string;
|
|
1746
|
+
readonly status: "failed" | "success";
|
|
1747
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1748
|
+
reviewThreads: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1749
|
+
readonly lease: {
|
|
1750
|
+
readonly workUnitId: string;
|
|
1751
|
+
readonly leaseOwnerId: string;
|
|
1752
|
+
readonly runnerReplicaId: string;
|
|
1753
|
+
readonly leaseId: string;
|
|
1754
|
+
readonly attempt: number;
|
|
1755
|
+
readonly fencingToken: string;
|
|
1756
|
+
readonly capacitySlot: string;
|
|
1757
|
+
};
|
|
1758
|
+
readonly step: string;
|
|
1759
|
+
readonly changeRequestId: string;
|
|
1760
|
+
}, options?: {
|
|
1761
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1762
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1763
|
+
readonly discard?: Discard | undefined;
|
|
1764
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1765
|
+
readonly threads: readonly {
|
|
1766
|
+
readonly id: string;
|
|
1767
|
+
readonly path?: string;
|
|
1768
|
+
readonly line?: number;
|
|
1769
|
+
readonly outdated?: boolean;
|
|
1770
|
+
readonly comments: readonly {
|
|
1771
|
+
readonly author?: string;
|
|
1772
|
+
readonly body: string;
|
|
1773
|
+
}[];
|
|
1774
|
+
}[];
|
|
1775
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1776
|
+
readonly threads: readonly {
|
|
1777
|
+
readonly id: string;
|
|
1778
|
+
readonly path?: string;
|
|
1779
|
+
readonly line?: number;
|
|
1780
|
+
readonly outdated?: boolean;
|
|
1781
|
+
readonly comments: readonly {
|
|
1782
|
+
readonly author?: string;
|
|
1783
|
+
readonly body: string;
|
|
1784
|
+
}[];
|
|
1785
|
+
}[];
|
|
1786
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1787
|
+
openChangeRequests: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1788
|
+
readonly lease: {
|
|
1789
|
+
readonly workUnitId: string;
|
|
1790
|
+
readonly leaseOwnerId: string;
|
|
1791
|
+
readonly runnerReplicaId: string;
|
|
1792
|
+
readonly leaseId: string;
|
|
1793
|
+
readonly attempt: number;
|
|
1794
|
+
readonly fencingToken: string;
|
|
1795
|
+
readonly capacitySlot: string;
|
|
1796
|
+
};
|
|
1797
|
+
readonly step: string;
|
|
1798
|
+
readonly authors: readonly [string, ...string[]];
|
|
1799
|
+
}, options?: {
|
|
1800
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1801
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1802
|
+
readonly discard?: Discard | undefined;
|
|
1803
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1804
|
+
readonly changeRequests: readonly {
|
|
1805
|
+
readonly number: string;
|
|
1806
|
+
readonly title: string;
|
|
1807
|
+
readonly body: string;
|
|
1808
|
+
readonly url: string;
|
|
1809
|
+
readonly author: string;
|
|
1810
|
+
readonly sourceBranch: string;
|
|
1811
|
+
readonly head: string;
|
|
1812
|
+
}[];
|
|
1813
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1814
|
+
readonly changeRequests: readonly {
|
|
1815
|
+
readonly number: string;
|
|
1816
|
+
readonly title: string;
|
|
1817
|
+
readonly body: string;
|
|
1818
|
+
readonly url: string;
|
|
1819
|
+
readonly author: string;
|
|
1820
|
+
readonly sourceBranch: string;
|
|
1821
|
+
readonly head: string;
|
|
1822
|
+
}[];
|
|
1823
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1824
|
+
ownChangeRequests: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1825
|
+
readonly lease: {
|
|
1826
|
+
readonly workUnitId: string;
|
|
1827
|
+
readonly leaseOwnerId: string;
|
|
1828
|
+
readonly runnerReplicaId: string;
|
|
1829
|
+
readonly leaseId: string;
|
|
1830
|
+
readonly attempt: number;
|
|
1831
|
+
readonly fencingToken: string;
|
|
1832
|
+
readonly capacitySlot: string;
|
|
1833
|
+
};
|
|
1834
|
+
readonly step: string;
|
|
1835
|
+
}, options?: {
|
|
1836
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1837
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1838
|
+
readonly discard?: Discard | undefined;
|
|
1839
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1840
|
+
readonly changeRequests: readonly {
|
|
1841
|
+
readonly id: string;
|
|
1842
|
+
readonly number: string;
|
|
1843
|
+
readonly url: string;
|
|
1844
|
+
readonly title: string;
|
|
1845
|
+
readonly sourceBranch: string;
|
|
1846
|
+
readonly body: string;
|
|
1847
|
+
}[];
|
|
1848
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1849
|
+
readonly changeRequests: readonly {
|
|
1850
|
+
readonly id: string;
|
|
1851
|
+
readonly number: string;
|
|
1852
|
+
readonly url: string;
|
|
1853
|
+
readonly title: string;
|
|
1854
|
+
readonly sourceBranch: string;
|
|
1855
|
+
readonly body: string;
|
|
1856
|
+
}[];
|
|
1857
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1858
|
+
propose: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1859
|
+
readonly lease: {
|
|
1860
|
+
readonly workUnitId: string;
|
|
1861
|
+
readonly leaseOwnerId: string;
|
|
1862
|
+
readonly runnerReplicaId: string;
|
|
1863
|
+
readonly leaseId: string;
|
|
1864
|
+
readonly attempt: number;
|
|
1865
|
+
readonly fencingToken: string;
|
|
1866
|
+
readonly capacitySlot: string;
|
|
1867
|
+
};
|
|
1868
|
+
readonly step: string;
|
|
1869
|
+
readonly proposal: {
|
|
1870
|
+
readonly kind: "memory";
|
|
1871
|
+
readonly teamId: string;
|
|
1872
|
+
readonly content: string;
|
|
1873
|
+
readonly citations: readonly [{
|
|
1874
|
+
readonly runId: string;
|
|
1875
|
+
readonly stepAttemptId: string;
|
|
1876
|
+
readonly sequence: number;
|
|
1877
|
+
}, ...{
|
|
1878
|
+
readonly runId: string;
|
|
1879
|
+
readonly stepAttemptId: string;
|
|
1880
|
+
readonly sequence: number;
|
|
1881
|
+
}[]];
|
|
1882
|
+
} | {
|
|
1883
|
+
readonly kind: "task";
|
|
1884
|
+
readonly title: string;
|
|
1885
|
+
readonly description: string;
|
|
1886
|
+
readonly teamId?: string;
|
|
1887
|
+
readonly key?: string;
|
|
1888
|
+
readonly citations: readonly [{
|
|
1889
|
+
readonly runId: string;
|
|
1890
|
+
readonly stepAttemptId: string;
|
|
1891
|
+
readonly sequence: number;
|
|
1892
|
+
}, ...{
|
|
1893
|
+
readonly runId: string;
|
|
1894
|
+
readonly stepAttemptId: string;
|
|
1895
|
+
readonly sequence: number;
|
|
1896
|
+
}[]];
|
|
1897
|
+
};
|
|
1898
|
+
}, options?: {
|
|
1899
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1900
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1901
|
+
readonly discard?: Discard | undefined;
|
|
1902
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1903
|
+
readonly kind: "memory" | "task";
|
|
1904
|
+
readonly id: string;
|
|
1905
|
+
readonly matched?: boolean;
|
|
1906
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1907
|
+
readonly kind: "memory" | "task";
|
|
1908
|
+
readonly id: string;
|
|
1909
|
+
readonly matched?: boolean;
|
|
1910
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1911
|
+
readProject: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1912
|
+
readonly lease: {
|
|
1913
|
+
readonly workUnitId: string;
|
|
1914
|
+
readonly leaseOwnerId: string;
|
|
1915
|
+
readonly runnerReplicaId: string;
|
|
1916
|
+
readonly leaseId: string;
|
|
1917
|
+
readonly attempt: number;
|
|
1918
|
+
readonly fencingToken: string;
|
|
1919
|
+
readonly capacitySlot: string;
|
|
1920
|
+
};
|
|
1921
|
+
readonly step: string;
|
|
1922
|
+
readonly projectId: string;
|
|
1923
|
+
}, options?: {
|
|
1924
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
1925
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
1926
|
+
readonly discard?: Discard | undefined;
|
|
1927
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
1928
|
+
readonly project: {
|
|
1929
|
+
readonly id: string;
|
|
1930
|
+
readonly name: string;
|
|
1931
|
+
};
|
|
1932
|
+
readonly health?: "at_risk" | "off_track" | "on_track";
|
|
1933
|
+
readonly since?: string;
|
|
1934
|
+
readonly runs: readonly {
|
|
1935
|
+
readonly runId: string;
|
|
1936
|
+
readonly loopId: string;
|
|
1937
|
+
readonly status: string;
|
|
1938
|
+
readonly taskKey?: string;
|
|
1939
|
+
readonly taskTitle?: string;
|
|
1940
|
+
readonly summary?: string;
|
|
1941
|
+
readonly entries: readonly {
|
|
1942
|
+
readonly stepAttemptId: string;
|
|
1943
|
+
readonly sequence: number;
|
|
1944
|
+
readonly kind: string;
|
|
1945
|
+
readonly text: string;
|
|
1946
|
+
}[];
|
|
1947
|
+
}[];
|
|
1948
|
+
readonly taskChanges: readonly {
|
|
1949
|
+
readonly taskKey: string;
|
|
1950
|
+
readonly title: string;
|
|
1951
|
+
readonly change: string;
|
|
1952
|
+
readonly at: string;
|
|
1953
|
+
}[];
|
|
1954
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
1955
|
+
readonly project: {
|
|
1956
|
+
readonly id: string;
|
|
1957
|
+
readonly name: string;
|
|
1958
|
+
};
|
|
1959
|
+
readonly health?: "at_risk" | "off_track" | "on_track";
|
|
1960
|
+
readonly since?: string;
|
|
1961
|
+
readonly runs: readonly {
|
|
1962
|
+
readonly runId: string;
|
|
1963
|
+
readonly loopId: string;
|
|
1964
|
+
readonly status: string;
|
|
1965
|
+
readonly taskKey?: string;
|
|
1966
|
+
readonly taskTitle?: string;
|
|
1967
|
+
readonly summary?: string;
|
|
1968
|
+
readonly entries: readonly {
|
|
1969
|
+
readonly stepAttemptId: string;
|
|
1970
|
+
readonly sequence: number;
|
|
1971
|
+
readonly kind: string;
|
|
1972
|
+
readonly text: string;
|
|
1973
|
+
}[];
|
|
1974
|
+
}[];
|
|
1975
|
+
readonly taskChanges: readonly {
|
|
1976
|
+
readonly taskKey: string;
|
|
1977
|
+
readonly title: string;
|
|
1978
|
+
readonly change: string;
|
|
1979
|
+
readonly at: string;
|
|
1980
|
+
}[];
|
|
1981
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1982
|
+
draftUpdate: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
1983
|
+
readonly lease: {
|
|
1984
|
+
readonly workUnitId: string;
|
|
1985
|
+
readonly leaseOwnerId: string;
|
|
1986
|
+
readonly runnerReplicaId: string;
|
|
1987
|
+
readonly leaseId: string;
|
|
1988
|
+
readonly attempt: number;
|
|
1989
|
+
readonly fencingToken: string;
|
|
1990
|
+
readonly capacitySlot: string;
|
|
1991
|
+
};
|
|
1992
|
+
readonly step: string;
|
|
1993
|
+
readonly projectId: string;
|
|
1994
|
+
readonly health: "at_risk" | "off_track" | "on_track";
|
|
1995
|
+
readonly note: string;
|
|
1996
|
+
readonly writtenFrom: {
|
|
1997
|
+
readonly runs: number;
|
|
1998
|
+
readonly taskChanges: number;
|
|
1999
|
+
readonly since?: string;
|
|
2000
|
+
};
|
|
2001
|
+
}, options?: {
|
|
2002
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2003
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
2004
|
+
readonly discard?: Discard | undefined;
|
|
2005
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2006
|
+
readonly id: string;
|
|
2007
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
2008
|
+
readonly id: string;
|
|
2009
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
2010
|
+
integrationBranch: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
2011
|
+
readonly lease: {
|
|
2012
|
+
readonly workUnitId: string;
|
|
2013
|
+
readonly leaseOwnerId: string;
|
|
2014
|
+
readonly runnerReplicaId: string;
|
|
2015
|
+
readonly leaseId: string;
|
|
2016
|
+
readonly attempt: number;
|
|
2017
|
+
readonly fencingToken: string;
|
|
2018
|
+
readonly capacitySlot: string;
|
|
2019
|
+
};
|
|
2020
|
+
readonly repoBindingId?: string;
|
|
2021
|
+
}, options?: {
|
|
2022
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2023
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
2024
|
+
readonly discard?: Discard | undefined;
|
|
2025
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2026
|
+
readonly repoBindingId: string;
|
|
2027
|
+
readonly branch: string;
|
|
2028
|
+
readonly revision: string;
|
|
2029
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
2030
|
+
readonly repoBindingId: string;
|
|
2031
|
+
readonly branch: string;
|
|
2032
|
+
readonly revision: string;
|
|
2033
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
2034
|
+
mergeChangeRequest: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
2035
|
+
readonly lease: {
|
|
2036
|
+
readonly workUnitId: string;
|
|
2037
|
+
readonly leaseOwnerId: string;
|
|
2038
|
+
readonly runnerReplicaId: string;
|
|
2039
|
+
readonly leaseId: string;
|
|
2040
|
+
readonly attempt: number;
|
|
2041
|
+
readonly fencingToken: string;
|
|
2042
|
+
readonly capacitySlot: string;
|
|
2043
|
+
};
|
|
2044
|
+
readonly step: string;
|
|
2045
|
+
readonly changeRequestId: string;
|
|
2046
|
+
readonly head?: string;
|
|
2047
|
+
}, options?: {
|
|
2048
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2049
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
2050
|
+
readonly discard?: Discard | undefined;
|
|
2051
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2052
|
+
readonly status: "merged";
|
|
2053
|
+
readonly revision: string;
|
|
2054
|
+
} | {
|
|
2055
|
+
readonly status: "conflict";
|
|
2056
|
+
} | {
|
|
2057
|
+
readonly status: "moved";
|
|
2058
|
+
readonly head: string;
|
|
2059
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
2060
|
+
readonly status: "merged";
|
|
2061
|
+
readonly revision: string;
|
|
2062
|
+
} | {
|
|
2063
|
+
readonly status: "conflict";
|
|
2064
|
+
} | {
|
|
2065
|
+
readonly status: "moved";
|
|
2066
|
+
readonly head: string;
|
|
2067
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
2068
|
+
closeChangeRequest: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
2069
|
+
readonly lease: {
|
|
2070
|
+
readonly workUnitId: string;
|
|
2071
|
+
readonly leaseOwnerId: string;
|
|
2072
|
+
readonly runnerReplicaId: string;
|
|
2073
|
+
readonly leaseId: string;
|
|
2074
|
+
readonly attempt: number;
|
|
2075
|
+
readonly fencingToken: string;
|
|
2076
|
+
readonly capacitySlot: string;
|
|
2077
|
+
};
|
|
2078
|
+
readonly step: string;
|
|
2079
|
+
readonly number: string;
|
|
2080
|
+
readonly head: string;
|
|
2081
|
+
readonly note: string;
|
|
2082
|
+
}, options?: {
|
|
2083
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2084
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
2085
|
+
readonly discard?: Discard | undefined;
|
|
2086
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2087
|
+
readonly closed: boolean;
|
|
2088
|
+
readonly head?: string;
|
|
2089
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
2090
|
+
readonly closed: boolean;
|
|
2091
|
+
readonly head?: string;
|
|
2092
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
2093
|
+
approveChangeRequest: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
2094
|
+
readonly lease: {
|
|
2095
|
+
readonly workUnitId: string;
|
|
2096
|
+
readonly leaseOwnerId: string;
|
|
2097
|
+
readonly runnerReplicaId: string;
|
|
2098
|
+
readonly leaseId: string;
|
|
2099
|
+
readonly attempt: number;
|
|
2100
|
+
readonly fencingToken: string;
|
|
2101
|
+
readonly capacitySlot: string;
|
|
2102
|
+
};
|
|
2103
|
+
readonly step: string;
|
|
2104
|
+
readonly changeRequestId: string;
|
|
2105
|
+
readonly head: string;
|
|
2106
|
+
readonly summary: string;
|
|
2107
|
+
readonly review?: string;
|
|
2108
|
+
readonly carries?: string;
|
|
2109
|
+
}, options?: {
|
|
2110
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2111
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
2112
|
+
readonly discard?: Discard | undefined;
|
|
2113
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2114
|
+
readonly approved: true;
|
|
2115
|
+
readonly reviewId: string;
|
|
2116
|
+
} | {
|
|
2117
|
+
readonly approved: false;
|
|
2118
|
+
readonly reason: string;
|
|
2119
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
2120
|
+
readonly approved: true;
|
|
2121
|
+
readonly reviewId: string;
|
|
2122
|
+
} | {
|
|
2123
|
+
readonly approved: false;
|
|
2124
|
+
readonly reason: string;
|
|
2125
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
2126
|
+
rerunPipeline: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
2127
|
+
readonly lease: {
|
|
2128
|
+
readonly workUnitId: string;
|
|
2129
|
+
readonly leaseOwnerId: string;
|
|
2130
|
+
readonly runnerReplicaId: string;
|
|
2131
|
+
readonly leaseId: string;
|
|
2132
|
+
readonly attempt: number;
|
|
2133
|
+
readonly fencingToken: string;
|
|
2134
|
+
readonly capacitySlot: string;
|
|
2135
|
+
};
|
|
2136
|
+
readonly step: string;
|
|
2137
|
+
readonly changeRequestId?: string;
|
|
2138
|
+
readonly ref?: string;
|
|
2139
|
+
readonly all?: boolean;
|
|
2140
|
+
}, options?: {
|
|
2141
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2142
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
2143
|
+
readonly discard?: Discard | undefined;
|
|
2144
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2145
|
+
readonly head: string;
|
|
2146
|
+
readonly pipelines: number;
|
|
2147
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
2148
|
+
readonly head: string;
|
|
2149
|
+
readonly pipelines: number;
|
|
2150
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
2151
|
+
publishRelease: (input: Parameters<<const AsQueue extends boolean = false, const Discard = false>(input: {
|
|
2152
|
+
readonly lease: {
|
|
2153
|
+
readonly workUnitId: string;
|
|
2154
|
+
readonly leaseOwnerId: string;
|
|
2155
|
+
readonly runnerReplicaId: string;
|
|
2156
|
+
readonly leaseId: string;
|
|
2157
|
+
readonly attempt: number;
|
|
2158
|
+
readonly fencingToken: string;
|
|
2159
|
+
readonly capacitySlot: string;
|
|
2160
|
+
};
|
|
2161
|
+
readonly step: string;
|
|
2162
|
+
readonly tag: string;
|
|
2163
|
+
readonly revision?: string;
|
|
2164
|
+
readonly title: string;
|
|
2165
|
+
readonly notes: string;
|
|
2166
|
+
}, options?: {
|
|
2167
|
+
readonly headers?: import("effect/http/Headers").Input | undefined;
|
|
2168
|
+
readonly context?: import("effect/Context").Context<never> | undefined;
|
|
2169
|
+
readonly discard?: Discard | undefined;
|
|
2170
|
+
} | undefined) => Effect.Effect<Discard extends true ? void : {
|
|
2171
|
+
readonly tag: string;
|
|
2172
|
+
readonly revision: string;
|
|
2173
|
+
readonly url: string;
|
|
2174
|
+
}, import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError | (Discard extends true ? never : import("./runner-group").RunnerRpcError), never>>[0]) => Effect.Effect<{
|
|
2175
|
+
readonly tag: string;
|
|
2176
|
+
readonly revision: string;
|
|
2177
|
+
readonly url: string;
|
|
2178
|
+
}, Error | import("effect/rpc/RpcClientError").RpcClientError | import("./runner-group").RunnerRpcError, never>;
|
|
1517
2179
|
}, never, import("effect/Scope").Scope>;
|
|
1518
|
-
export type
|
|
2180
|
+
export type ProgramRpcClient = Effect.Success<ReturnType<typeof makeProgramRpcClient>>;
|
|
2181
|
+
export {};
|