@kitman-sh/sdk 0.10.65 → 0.10.67

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/sdk",
3
- "version": "0.10.65",
3
+ "version": "0.10.67",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {
@@ -123,7 +123,65 @@ export declare const ProgramOutcome: Schema.Union<readonly [Schema.Struct<{
123
123
  readonly status: Schema.Literal<"failed">;
124
124
  readonly failureSummary: Schema.String;
125
125
  }>]>;
126
- declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AppendTranscript", Schema.Struct<{
126
+ declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"Signals", Schema.Struct<{
127
+ runnerReplicaId: Schema.String;
128
+ }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
129
+ readonly workUnitId: Schema.String;
130
+ }>, Schema.TaggedStruct<"Settled", {
131
+ readonly workUnitId: Schema.String;
132
+ }>, Schema.TaggedStruct<"Canceled", {
133
+ readonly workUnitId: Schema.String;
134
+ }>, Schema.TaggedStruct<"RunSettled", {
135
+ readonly runId: Schema.String;
136
+ }>, Schema.TaggedStruct<"Steer", {
137
+ readonly workUnitId: Schema.String;
138
+ readonly messageId: Schema.String;
139
+ readonly text: Schema.String;
140
+ }>, Schema.TaggedStruct<"SessionUpdated", {
141
+ readonly workUnitId: Schema.String;
142
+ }>, Schema.TaggedStruct<"UpdateAvailable", {
143
+ readonly version: Schema.String;
144
+ }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
145
+ lease: Schema.Struct<{
146
+ readonly workUnitId: Schema.String;
147
+ readonly leaseOwnerId: Schema.String;
148
+ readonly runnerReplicaId: Schema.String;
149
+ readonly leaseId: Schema.String;
150
+ readonly attempt: Schema.Int;
151
+ readonly fencingToken: Schema.String;
152
+ readonly capacitySlot: Schema.String;
153
+ }>;
154
+ byteSize: Schema.Int;
155
+ sha256: Schema.String;
156
+ }>, Schema.Struct<{
157
+ readonly file: Schema.Struct<{
158
+ readonly id: Schema.String;
159
+ readonly runId: Schema.String;
160
+ readonly step: Schema.String;
161
+ readonly name: Schema.String;
162
+ readonly caption: Schema.optionalKey<Schema.String>;
163
+ readonly contentType: Schema.String;
164
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
165
+ readonly byteSize: Schema.Int;
166
+ readonly sha256: Schema.String;
167
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
168
+ }>;
169
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
170
+ readonly url: Schema.String;
171
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
172
+ readonly expiresAt: Schema.String;
173
+ readonly kind: Schema.Literal<"single">;
174
+ }>, Schema.Struct<{
175
+ readonly kind: Schema.Literal<"multipart">;
176
+ readonly partSize: Schema.Int;
177
+ readonly parts: Schema.$Array<Schema.Struct<{
178
+ readonly url: Schema.String;
179
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
180
+ readonly expiresAt: Schema.String;
181
+ readonly partNumber: Schema.Int;
182
+ }>>;
183
+ }>]>>;
184
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AppendTranscript", Schema.Struct<{
127
185
  workUnitId: Schema.String;
128
186
  entries: Schema.$Array<Schema.Struct<{
129
187
  readonly sequence: Schema.Int;
@@ -477,47 +535,7 @@ declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AppendTranscrip
477
535
  readonly byteSize: Schema.Int;
478
536
  readonly sha256: Schema.String;
479
537
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
480
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
481
- lease: Schema.Struct<{
482
- readonly workUnitId: Schema.String;
483
- readonly leaseOwnerId: Schema.String;
484
- readonly runnerReplicaId: Schema.String;
485
- readonly leaseId: Schema.String;
486
- readonly attempt: Schema.Int;
487
- readonly fencingToken: Schema.String;
488
- readonly capacitySlot: Schema.String;
489
- }>;
490
- byteSize: Schema.Int;
491
- sha256: Schema.String;
492
- }>, Schema.Struct<{
493
- readonly file: Schema.Struct<{
494
- readonly id: Schema.String;
495
- readonly runId: Schema.String;
496
- readonly step: Schema.String;
497
- readonly name: Schema.String;
498
- readonly caption: Schema.optionalKey<Schema.String>;
499
- readonly contentType: Schema.String;
500
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
501
- readonly byteSize: Schema.Int;
502
- readonly sha256: Schema.String;
503
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
504
- }>;
505
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
506
- readonly url: Schema.String;
507
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
508
- readonly expiresAt: Schema.String;
509
- readonly kind: Schema.Literal<"single">;
510
- }>, Schema.Struct<{
511
- readonly kind: Schema.Literal<"multipart">;
512
- readonly partSize: Schema.Int;
513
- readonly parts: Schema.$Array<Schema.Struct<{
514
- readonly url: Schema.String;
515
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
516
- readonly expiresAt: Schema.String;
517
- readonly partNumber: Schema.Int;
518
- }>>;
519
- }>]>>;
520
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"ForgetCheckpoints", Schema.Struct<{
538
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"ForgetCheckpoints", Schema.Struct<{
521
539
  stepAttemptIds: Schema.$Array<Schema.String>;
522
540
  }>, Schema.Void, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"GitCredential", Schema.Struct<{
523
541
  repoBindingId: Schema.String;
@@ -634,25 +652,7 @@ declare const RunnerReplicaRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AppendTranscrip
634
652
  }>>;
635
653
  }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"SettledRuns", Schema.Struct<{
636
654
  runIds: Schema.$Array<Schema.String>;
637
- }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"Signals", Schema.Struct<{
638
- runnerReplicaId: Schema.String;
639
- }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
640
- readonly workUnitId: Schema.String;
641
- }>, Schema.TaggedStruct<"Settled", {
642
- readonly workUnitId: Schema.String;
643
- }>, Schema.TaggedStruct<"Canceled", {
644
- readonly workUnitId: Schema.String;
645
- }>, Schema.TaggedStruct<"RunSettled", {
646
- readonly runId: Schema.String;
647
- }>, Schema.TaggedStruct<"Steer", {
648
- readonly workUnitId: Schema.String;
649
- readonly messageId: Schema.String;
650
- readonly text: Schema.String;
651
- }>, Schema.TaggedStruct<"SessionUpdated", {
652
- readonly workUnitId: Schema.String;
653
- }>, Schema.TaggedStruct<"UpdateAvailable", {
654
- readonly version: Schema.String;
655
- }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never>>;
655
+ }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
656
656
  /** The Runner process's procedures: Work Unit leases, signals, checkpoints and bundles. */
657
657
  export declare class RunnerReplicaRpcs extends RunnerReplicaRpcs_base {
658
658
  }
@@ -1342,7 +1342,51 @@ declare const RunnerCapabilityRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild",
1342
1342
  /** A program's domain calls. */
1343
1343
  export declare class RunnerCapabilityRpcs extends RunnerCapabilityRpcs_base {
1344
1344
  }
1345
- declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile", Schema.Struct<{
1345
+ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1346
+ lease: Schema.Struct<{
1347
+ readonly workUnitId: Schema.String;
1348
+ readonly leaseOwnerId: Schema.String;
1349
+ readonly runnerReplicaId: Schema.String;
1350
+ readonly leaseId: Schema.String;
1351
+ readonly attempt: Schema.Int;
1352
+ readonly fencingToken: Schema.String;
1353
+ readonly capacitySlot: Schema.String;
1354
+ }>;
1355
+ step: Schema.String;
1356
+ name: Schema.String;
1357
+ caption: Schema.optional<Schema.String>;
1358
+ contentType: Schema.String;
1359
+ byteSize: Schema.Int;
1360
+ sha256: Schema.String;
1361
+ }>, Schema.Struct<{
1362
+ readonly file: Schema.Struct<{
1363
+ readonly id: Schema.String;
1364
+ readonly runId: Schema.String;
1365
+ readonly step: Schema.String;
1366
+ readonly name: Schema.String;
1367
+ readonly caption: Schema.optionalKey<Schema.String>;
1368
+ readonly contentType: Schema.String;
1369
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
1370
+ readonly byteSize: Schema.Int;
1371
+ readonly sha256: Schema.String;
1372
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1373
+ }>;
1374
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1375
+ readonly url: Schema.String;
1376
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1377
+ readonly expiresAt: Schema.String;
1378
+ readonly kind: Schema.Literal<"single">;
1379
+ }>, Schema.Struct<{
1380
+ readonly kind: Schema.Literal<"multipart">;
1381
+ readonly partSize: Schema.Int;
1382
+ readonly parts: Schema.$Array<Schema.Struct<{
1383
+ readonly url: Schema.String;
1384
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1385
+ readonly expiresAt: Schema.String;
1386
+ readonly partNumber: Schema.Int;
1387
+ }>>;
1388
+ }>]>>;
1389
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CompleteRunFile", Schema.Struct<{
1346
1390
  lease: Schema.Struct<{
1347
1391
  readonly workUnitId: Schema.String;
1348
1392
  readonly leaseOwnerId: Schema.String;
@@ -1368,7 +1412,31 @@ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile
1368
1412
  readonly byteSize: Schema.Int;
1369
1413
  readonly sha256: Schema.String;
1370
1414
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1371
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1415
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"RunFileParts", Schema.Struct<{
1416
+ lease: Schema.Struct<{
1417
+ readonly workUnitId: Schema.String;
1418
+ readonly leaseOwnerId: Schema.String;
1419
+ readonly runnerReplicaId: Schema.String;
1420
+ readonly leaseId: Schema.String;
1421
+ readonly attempt: Schema.Int;
1422
+ readonly fencingToken: Schema.String;
1423
+ readonly capacitySlot: Schema.String;
1424
+ }>;
1425
+ fileId: Schema.String;
1426
+ partNumbers: Schema.$Array<Schema.Int>;
1427
+ }>, Schema.Struct<{
1428
+ readonly parts: Schema.$Array<Schema.Struct<{
1429
+ readonly url: Schema.String;
1430
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1431
+ readonly expiresAt: Schema.String;
1432
+ readonly partNumber: Schema.Int;
1433
+ }>>;
1434
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
1435
+ /** Run File uploads, under a program's orchestration lease or the Runner's verification lease. */
1436
+ export declare class RunnerRunFileRpcs extends RunnerRunFileRpcs_base {
1437
+ }
1438
+ /** What a program process may call; its bundle speaks the Runner RPC protocol version through these. */
1439
+ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1372
1440
  lease: Schema.Struct<{
1373
1441
  readonly workUnitId: Schema.String;
1374
1442
  readonly leaseOwnerId: Schema.String;
@@ -1412,31 +1480,7 @@ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile
1412
1480
  readonly partNumber: Schema.Int;
1413
1481
  }>>;
1414
1482
  }>]>>;
1415
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"RunFileParts", Schema.Struct<{
1416
- lease: Schema.Struct<{
1417
- readonly workUnitId: Schema.String;
1418
- readonly leaseOwnerId: Schema.String;
1419
- readonly runnerReplicaId: Schema.String;
1420
- readonly leaseId: Schema.String;
1421
- readonly attempt: Schema.Int;
1422
- readonly fencingToken: Schema.String;
1423
- readonly capacitySlot: Schema.String;
1424
- }>;
1425
- fileId: Schema.String;
1426
- partNumbers: Schema.$Array<Schema.Int>;
1427
- }>, Schema.Struct<{
1428
- readonly parts: Schema.$Array<Schema.Struct<{
1429
- readonly url: Schema.String;
1430
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1431
- readonly expiresAt: Schema.String;
1432
- readonly partNumber: Schema.Int;
1433
- }>>;
1434
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
1435
- /** Run File uploads, under a program's orchestration lease or the Runner's verification lease. */
1436
- export declare class RunnerRunFileRpcs extends RunnerRunFileRpcs_base {
1437
- }
1438
- /** What a program process may call; its bundle speaks the Runner RPC protocol version through these. */
1439
- export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.Struct<{
1483
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AdmitChild", Schema.Struct<{
1440
1484
  lease: Schema.Struct<{
1441
1485
  readonly workUnitId: Schema.String;
1442
1486
  readonly leaseOwnerId: Schema.String;
@@ -1601,51 +1645,7 @@ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema
1601
1645
  }>, Schema.$Array<Schema.Struct<{
1602
1646
  readonly key: Schema.String;
1603
1647
  readonly taskId: Schema.String;
1604
- }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1605
- lease: Schema.Struct<{
1606
- readonly workUnitId: Schema.String;
1607
- readonly leaseOwnerId: Schema.String;
1608
- readonly runnerReplicaId: Schema.String;
1609
- readonly leaseId: Schema.String;
1610
- readonly attempt: Schema.Int;
1611
- readonly fencingToken: Schema.String;
1612
- readonly capacitySlot: Schema.String;
1613
- }>;
1614
- step: Schema.String;
1615
- name: Schema.String;
1616
- caption: Schema.optional<Schema.String>;
1617
- contentType: Schema.String;
1618
- byteSize: Schema.Int;
1619
- sha256: Schema.String;
1620
- }>, Schema.Struct<{
1621
- readonly file: Schema.Struct<{
1622
- readonly id: Schema.String;
1623
- readonly runId: Schema.String;
1624
- readonly step: Schema.String;
1625
- readonly name: Schema.String;
1626
- readonly caption: Schema.optionalKey<Schema.String>;
1627
- readonly contentType: Schema.String;
1628
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
1629
- readonly byteSize: Schema.Int;
1630
- readonly sha256: Schema.String;
1631
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1632
- }>;
1633
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1634
- readonly url: Schema.String;
1635
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1636
- readonly expiresAt: Schema.String;
1637
- readonly kind: Schema.Literal<"single">;
1638
- }>, Schema.Struct<{
1639
- readonly kind: Schema.Literal<"multipart">;
1640
- readonly partSize: Schema.Int;
1641
- readonly parts: Schema.$Array<Schema.Struct<{
1642
- readonly url: Schema.String;
1643
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1644
- readonly expiresAt: Schema.String;
1645
- readonly partNumber: Schema.Int;
1646
- }>>;
1647
- }>]>>;
1648
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
1648
+ }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
1649
1649
  lease: Schema.Struct<{
1650
1650
  readonly workUnitId: Schema.String;
1651
1651
  readonly leaseOwnerId: Schema.String;
@@ -2205,7 +2205,109 @@ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema
2205
2205
  }>;
2206
2206
  }>, Schema.Void, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
2207
2207
  /** Every group, served on the one Runner RPC endpoint; a request names its procedure by tag alone. */
2208
- export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.Struct<{
2208
+ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Signals", Schema.Struct<{
2209
+ runnerReplicaId: Schema.String;
2210
+ }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
2211
+ readonly workUnitId: Schema.String;
2212
+ }>, Schema.TaggedStruct<"Settled", {
2213
+ readonly workUnitId: Schema.String;
2214
+ }>, Schema.TaggedStruct<"Canceled", {
2215
+ readonly workUnitId: Schema.String;
2216
+ }>, Schema.TaggedStruct<"RunSettled", {
2217
+ readonly runId: Schema.String;
2218
+ }>, Schema.TaggedStruct<"Steer", {
2219
+ readonly workUnitId: Schema.String;
2220
+ readonly messageId: Schema.String;
2221
+ readonly text: Schema.String;
2222
+ }>, Schema.TaggedStruct<"SessionUpdated", {
2223
+ readonly workUnitId: Schema.String;
2224
+ }>, Schema.TaggedStruct<"UpdateAvailable", {
2225
+ readonly version: Schema.String;
2226
+ }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
2227
+ lease: Schema.Struct<{
2228
+ readonly workUnitId: Schema.String;
2229
+ readonly leaseOwnerId: Schema.String;
2230
+ readonly runnerReplicaId: Schema.String;
2231
+ readonly leaseId: Schema.String;
2232
+ readonly attempt: Schema.Int;
2233
+ readonly fencingToken: Schema.String;
2234
+ readonly capacitySlot: Schema.String;
2235
+ }>;
2236
+ byteSize: Schema.Int;
2237
+ sha256: Schema.String;
2238
+ }>, Schema.Struct<{
2239
+ readonly file: Schema.Struct<{
2240
+ readonly id: Schema.String;
2241
+ readonly runId: Schema.String;
2242
+ readonly step: Schema.String;
2243
+ readonly name: Schema.String;
2244
+ readonly caption: Schema.optionalKey<Schema.String>;
2245
+ readonly contentType: Schema.String;
2246
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2247
+ readonly byteSize: Schema.Int;
2248
+ readonly sha256: Schema.String;
2249
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2250
+ }>;
2251
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2252
+ readonly url: Schema.String;
2253
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2254
+ readonly expiresAt: Schema.String;
2255
+ readonly kind: Schema.Literal<"single">;
2256
+ }>, Schema.Struct<{
2257
+ readonly kind: Schema.Literal<"multipart">;
2258
+ readonly partSize: Schema.Int;
2259
+ readonly parts: Schema.$Array<Schema.Struct<{
2260
+ readonly url: Schema.String;
2261
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2262
+ readonly expiresAt: Schema.String;
2263
+ readonly partNumber: Schema.Int;
2264
+ }>>;
2265
+ }>]>>;
2266
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
2267
+ lease: Schema.Struct<{
2268
+ readonly workUnitId: Schema.String;
2269
+ readonly leaseOwnerId: Schema.String;
2270
+ readonly runnerReplicaId: Schema.String;
2271
+ readonly leaseId: Schema.String;
2272
+ readonly attempt: Schema.Int;
2273
+ readonly fencingToken: Schema.String;
2274
+ readonly capacitySlot: Schema.String;
2275
+ }>;
2276
+ step: Schema.String;
2277
+ name: Schema.String;
2278
+ caption: Schema.optional<Schema.String>;
2279
+ contentType: Schema.String;
2280
+ byteSize: Schema.Int;
2281
+ sha256: Schema.String;
2282
+ }>, Schema.Struct<{
2283
+ readonly file: Schema.Struct<{
2284
+ readonly id: Schema.String;
2285
+ readonly runId: Schema.String;
2286
+ readonly step: Schema.String;
2287
+ readonly name: Schema.String;
2288
+ readonly caption: Schema.optionalKey<Schema.String>;
2289
+ readonly contentType: Schema.String;
2290
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2291
+ readonly byteSize: Schema.Int;
2292
+ readonly sha256: Schema.String;
2293
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2294
+ }>;
2295
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2296
+ readonly url: Schema.String;
2297
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2298
+ readonly expiresAt: Schema.String;
2299
+ readonly kind: Schema.Literal<"single">;
2300
+ }>, Schema.Struct<{
2301
+ readonly kind: Schema.Literal<"multipart">;
2302
+ readonly partSize: Schema.Int;
2303
+ readonly parts: Schema.$Array<Schema.Struct<{
2304
+ readonly url: Schema.String;
2305
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2306
+ readonly expiresAt: Schema.String;
2307
+ readonly partNumber: Schema.Int;
2308
+ }>>;
2309
+ }>]>>;
2310
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AdmitChild", Schema.Struct<{
2209
2311
  lease: Schema.Struct<{
2210
2312
  readonly workUnitId: Schema.String;
2211
2313
  readonly leaseOwnerId: Schema.String;
@@ -2702,47 +2804,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
2702
2804
  readonly byteSize: Schema.Int;
2703
2805
  readonly sha256: Schema.String;
2704
2806
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2705
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
2706
- lease: Schema.Struct<{
2707
- readonly workUnitId: Schema.String;
2708
- readonly leaseOwnerId: Schema.String;
2709
- readonly runnerReplicaId: Schema.String;
2710
- readonly leaseId: Schema.String;
2711
- readonly attempt: Schema.Int;
2712
- readonly fencingToken: Schema.String;
2713
- readonly capacitySlot: Schema.String;
2714
- }>;
2715
- byteSize: Schema.Int;
2716
- sha256: Schema.String;
2717
- }>, Schema.Struct<{
2718
- readonly file: Schema.Struct<{
2719
- readonly id: Schema.String;
2720
- readonly runId: Schema.String;
2721
- readonly step: Schema.String;
2722
- readonly name: Schema.String;
2723
- readonly caption: Schema.optionalKey<Schema.String>;
2724
- readonly contentType: Schema.String;
2725
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2726
- readonly byteSize: Schema.Int;
2727
- readonly sha256: Schema.String;
2728
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2729
- }>;
2730
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2731
- readonly url: Schema.String;
2732
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2733
- readonly expiresAt: Schema.String;
2734
- readonly kind: Schema.Literal<"single">;
2735
- }>, Schema.Struct<{
2736
- readonly kind: Schema.Literal<"multipart">;
2737
- readonly partSize: Schema.Int;
2738
- readonly parts: Schema.$Array<Schema.Struct<{
2739
- readonly url: Schema.String;
2740
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2741
- readonly expiresAt: Schema.String;
2742
- readonly partNumber: Schema.Int;
2743
- }>>;
2744
- }>]>>;
2745
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreatePlanTasks", Schema.Struct<{
2807
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreatePlanTasks", Schema.Struct<{
2746
2808
  lease: Schema.Struct<{
2747
2809
  readonly workUnitId: Schema.String;
2748
2810
  readonly leaseOwnerId: Schema.String;
@@ -2764,51 +2826,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
2764
2826
  }>, Schema.$Array<Schema.Struct<{
2765
2827
  readonly key: Schema.String;
2766
2828
  readonly taskId: Schema.String;
2767
- }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
2768
- lease: Schema.Struct<{
2769
- readonly workUnitId: Schema.String;
2770
- readonly leaseOwnerId: Schema.String;
2771
- readonly runnerReplicaId: Schema.String;
2772
- readonly leaseId: Schema.String;
2773
- readonly attempt: Schema.Int;
2774
- readonly fencingToken: Schema.String;
2775
- readonly capacitySlot: Schema.String;
2776
- }>;
2777
- step: Schema.String;
2778
- name: Schema.String;
2779
- caption: Schema.optional<Schema.String>;
2780
- contentType: Schema.String;
2781
- byteSize: Schema.Int;
2782
- sha256: Schema.String;
2783
- }>, Schema.Struct<{
2784
- readonly file: Schema.Struct<{
2785
- readonly id: Schema.String;
2786
- readonly runId: Schema.String;
2787
- readonly step: Schema.String;
2788
- readonly name: Schema.String;
2789
- readonly caption: Schema.optionalKey<Schema.String>;
2790
- readonly contentType: Schema.String;
2791
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2792
- readonly byteSize: Schema.Int;
2793
- readonly sha256: Schema.String;
2794
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2795
- }>;
2796
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2797
- readonly url: Schema.String;
2798
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2799
- readonly expiresAt: Schema.String;
2800
- readonly kind: Schema.Literal<"single">;
2801
- }>, Schema.Struct<{
2802
- readonly kind: Schema.Literal<"multipart">;
2803
- readonly partSize: Schema.Int;
2804
- readonly parts: Schema.$Array<Schema.Struct<{
2805
- readonly url: Schema.String;
2806
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2807
- readonly expiresAt: Schema.String;
2808
- readonly partNumber: Schema.Int;
2809
- }>>;
2810
- }>]>>;
2811
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
2829
+ }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
2812
2830
  lease: Schema.Struct<{
2813
2831
  readonly workUnitId: Schema.String;
2814
2832
  readonly leaseOwnerId: Schema.String;
@@ -3389,25 +3407,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
3389
3407
  }>>;
3390
3408
  }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"SettledRuns", Schema.Struct<{
3391
3409
  runIds: Schema.$Array<Schema.String>;
3392
- }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"Signals", Schema.Struct<{
3393
- runnerReplicaId: Schema.String;
3394
- }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
3395
- readonly workUnitId: Schema.String;
3396
- }>, Schema.TaggedStruct<"Settled", {
3397
- readonly workUnitId: Schema.String;
3398
- }>, Schema.TaggedStruct<"Canceled", {
3399
- readonly workUnitId: Schema.String;
3400
- }>, Schema.TaggedStruct<"RunSettled", {
3401
- readonly runId: Schema.String;
3402
- }>, Schema.TaggedStruct<"Steer", {
3403
- readonly workUnitId: Schema.String;
3404
- readonly messageId: Schema.String;
3405
- readonly text: Schema.String;
3406
- }>, Schema.TaggedStruct<"SessionUpdated", {
3407
- readonly workUnitId: Schema.String;
3408
- }>, Schema.TaggedStruct<"UpdateAvailable", {
3409
- readonly version: Schema.String;
3410
- }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"StartAgentStep", Schema.Struct<{
3410
+ }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"StartAgentStep", Schema.Struct<{
3411
3411
  lease: Schema.Struct<{
3412
3412
  readonly workUnitId: Schema.String;
3413
3413
  readonly leaseOwnerId: Schema.String;