@kitman-sh/sdk 0.10.55 → 0.10.57

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.
@@ -4,7 +4,7 @@ import {
4
4
  KitDigest,
5
5
  AgentDeclaration,
6
6
  KitDeclarations
7
- } from "../chunk-78qtpzvg.js";
7
+ } from "../chunk-r33ndzyg.js";
8
8
  import {
9
9
  digestSha256,
10
10
  digestSha512,
@@ -13,7 +13,7 @@ import {
13
13
  RunnerRpcProtocolVersion,
14
14
  describeFlag2,
15
15
  Described2
16
- } from "../chunk-t8nwafjg.js";
16
+ } from "../chunk-9r9dqxwk.js";
17
17
 
18
18
  // packages/core/src/json.ts
19
19
  import * as Schema from "effect/Schema";
@@ -33,7 +33,7 @@ import {
33
33
  executeLoop2,
34
34
  LoopCheckError2,
35
35
  checkLoop2
36
- } from "./chunk-78qtpzvg.js";
36
+ } from "./chunk-r33ndzyg.js";
37
37
  // packages/core/src/agent-environment.ts
38
38
  import * as Schema from "effect/Schema";
39
39
  var AgentEnvironmentPolicy = Schema.Union([Schema.Literal("recommended"), Schema.Literal("required")]);
@@ -173,7 +173,7 @@ import {
173
173
  syncBase2,
174
174
  Continuing2,
175
175
  continuingBrief2
176
- } from "../chunk-78qtpzvg.js";
176
+ } from "../chunk-r33ndzyg.js";
177
177
  export {
178
178
  AlertTaskActivity2 as AlertTaskActivity,
179
179
  AlertTaskRequest2 as AlertTaskRequest,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"../chunk-78qtpzvg.js";
2
+ import"../chunk-r33ndzyg.js";
3
3
  import {
4
4
  JournalWriteFailed2,
5
5
  refusedStep2,
@@ -17,7 +17,7 @@ import {
17
17
  networkGuard2,
18
18
  carriedKits2,
19
19
  runKit2
20
- } from "../chunk-t8nwafjg.js";
20
+ } from "../chunk-9r9dqxwk.js";
21
21
  export {
22
22
  Described2 as Described,
23
23
  JournalWriteFailed2 as JournalWriteFailed,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/sdk",
3
- "version": "0.10.55",
3
+ "version": "0.10.57",
4
4
  "type": "module",
5
5
  "license": "UNLICENSED",
6
6
  "exports": {
@@ -63,6 +63,8 @@ export declare class DurableSurfaceScanError extends DurableSurfaceScanError_bas
63
63
  * credentials and values it cannot read are classified; `leavesKitman` adds everything else a third party should not get.
64
64
  */
65
65
  export declare function classifyDurableSurfaceValue<ValueType>(key: string, value: ValueType, options?: DurableSurfaceScanOptions): RedactionClassification | undefined;
66
+ /** Longest string a durable surface admits unless the scan passes its own maxTextLength. */
67
+ export declare const durableTextLimit = 1024;
66
68
  export type DurableSurfaceScanOptions = {
67
69
  readonly allowCanonicalIds?: boolean;
68
70
  /** Also classifies personal data, links, paths and pasted content, for what a third party receives. */
@@ -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
  }
@@ -1340,7 +1340,51 @@ declare const RunnerCapabilityRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild",
1340
1340
  /** A program's domain calls. */
1341
1341
  export declare class RunnerCapabilityRpcs extends RunnerCapabilityRpcs_base {
1342
1342
  }
1343
- declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile", Schema.Struct<{
1343
+ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1344
+ lease: Schema.Struct<{
1345
+ readonly workUnitId: Schema.String;
1346
+ readonly leaseOwnerId: Schema.String;
1347
+ readonly runnerReplicaId: Schema.String;
1348
+ readonly leaseId: Schema.String;
1349
+ readonly attempt: Schema.Int;
1350
+ readonly fencingToken: Schema.String;
1351
+ readonly capacitySlot: Schema.String;
1352
+ }>;
1353
+ step: Schema.String;
1354
+ name: Schema.String;
1355
+ caption: Schema.optional<Schema.String>;
1356
+ contentType: Schema.String;
1357
+ byteSize: Schema.Int;
1358
+ sha256: Schema.String;
1359
+ }>, Schema.Struct<{
1360
+ readonly file: Schema.Struct<{
1361
+ readonly id: Schema.String;
1362
+ readonly runId: Schema.String;
1363
+ readonly step: Schema.String;
1364
+ readonly name: Schema.String;
1365
+ readonly caption: Schema.optionalKey<Schema.String>;
1366
+ readonly contentType: Schema.String;
1367
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
1368
+ readonly byteSize: Schema.Int;
1369
+ readonly sha256: Schema.String;
1370
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1371
+ }>;
1372
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1373
+ readonly url: Schema.String;
1374
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1375
+ readonly expiresAt: Schema.String;
1376
+ readonly kind: Schema.Literal<"single">;
1377
+ }>, Schema.Struct<{
1378
+ readonly kind: Schema.Literal<"multipart">;
1379
+ readonly partSize: Schema.Int;
1380
+ readonly parts: Schema.$Array<Schema.Struct<{
1381
+ readonly url: Schema.String;
1382
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1383
+ readonly expiresAt: Schema.String;
1384
+ readonly partNumber: Schema.Int;
1385
+ }>>;
1386
+ }>]>>;
1387
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CompleteRunFile", Schema.Struct<{
1344
1388
  lease: Schema.Struct<{
1345
1389
  readonly workUnitId: Schema.String;
1346
1390
  readonly leaseOwnerId: Schema.String;
@@ -1366,7 +1410,31 @@ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile
1366
1410
  readonly byteSize: Schema.Int;
1367
1411
  readonly sha256: Schema.String;
1368
1412
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1369
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1413
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"RunFileParts", Schema.Struct<{
1414
+ lease: Schema.Struct<{
1415
+ readonly workUnitId: Schema.String;
1416
+ readonly leaseOwnerId: Schema.String;
1417
+ readonly runnerReplicaId: Schema.String;
1418
+ readonly leaseId: Schema.String;
1419
+ readonly attempt: Schema.Int;
1420
+ readonly fencingToken: Schema.String;
1421
+ readonly capacitySlot: Schema.String;
1422
+ }>;
1423
+ fileId: Schema.String;
1424
+ partNumbers: Schema.$Array<Schema.Int>;
1425
+ }>, Schema.Struct<{
1426
+ readonly parts: Schema.$Array<Schema.Struct<{
1427
+ readonly url: Schema.String;
1428
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1429
+ readonly expiresAt: Schema.String;
1430
+ readonly partNumber: Schema.Int;
1431
+ }>>;
1432
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
1433
+ /** Run File uploads, under a program's orchestration lease or the Runner's verification lease. */
1434
+ export declare class RunnerRunFileRpcs extends RunnerRunFileRpcs_base {
1435
+ }
1436
+ /** What a program process may call; its bundle speaks the Runner RPC protocol version through these. */
1437
+ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1370
1438
  lease: Schema.Struct<{
1371
1439
  readonly workUnitId: Schema.String;
1372
1440
  readonly leaseOwnerId: Schema.String;
@@ -1410,31 +1478,7 @@ declare const RunnerRunFileRpcs_base: RpcGroup.RpcGroup<Rpc.Rpc<"CompleteRunFile
1410
1478
  readonly partNumber: Schema.Int;
1411
1479
  }>>;
1412
1480
  }>]>>;
1413
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"RunFileParts", Schema.Struct<{
1414
- lease: Schema.Struct<{
1415
- readonly workUnitId: Schema.String;
1416
- readonly leaseOwnerId: Schema.String;
1417
- readonly runnerReplicaId: Schema.String;
1418
- readonly leaseId: Schema.String;
1419
- readonly attempt: Schema.Int;
1420
- readonly fencingToken: Schema.String;
1421
- readonly capacitySlot: Schema.String;
1422
- }>;
1423
- fileId: Schema.String;
1424
- partNumbers: Schema.$Array<Schema.Int>;
1425
- }>, Schema.Struct<{
1426
- readonly parts: Schema.$Array<Schema.Struct<{
1427
- readonly url: Schema.String;
1428
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1429
- readonly expiresAt: Schema.String;
1430
- readonly partNumber: Schema.Int;
1431
- }>>;
1432
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
1433
- /** Run File uploads, under a program's orchestration lease or the Runner's verification lease. */
1434
- export declare class RunnerRunFileRpcs extends RunnerRunFileRpcs_base {
1435
- }
1436
- /** What a program process may call; its bundle speaks the Runner RPC protocol version through these. */
1437
- export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.Struct<{
1481
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AdmitChild", Schema.Struct<{
1438
1482
  lease: Schema.Struct<{
1439
1483
  readonly workUnitId: Schema.String;
1440
1484
  readonly leaseOwnerId: Schema.String;
@@ -1599,51 +1643,7 @@ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema
1599
1643
  }>, Schema.$Array<Schema.Struct<{
1600
1644
  readonly key: Schema.String;
1601
1645
  readonly taskId: Schema.String;
1602
- }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
1603
- lease: Schema.Struct<{
1604
- readonly workUnitId: Schema.String;
1605
- readonly leaseOwnerId: Schema.String;
1606
- readonly runnerReplicaId: Schema.String;
1607
- readonly leaseId: Schema.String;
1608
- readonly attempt: Schema.Int;
1609
- readonly fencingToken: Schema.String;
1610
- readonly capacitySlot: Schema.String;
1611
- }>;
1612
- step: Schema.String;
1613
- name: Schema.String;
1614
- caption: Schema.optional<Schema.String>;
1615
- contentType: Schema.String;
1616
- byteSize: Schema.Int;
1617
- sha256: Schema.String;
1618
- }>, Schema.Struct<{
1619
- readonly file: Schema.Struct<{
1620
- readonly id: Schema.String;
1621
- readonly runId: Schema.String;
1622
- readonly step: Schema.String;
1623
- readonly name: Schema.String;
1624
- readonly caption: Schema.optionalKey<Schema.String>;
1625
- readonly contentType: Schema.String;
1626
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
1627
- readonly byteSize: Schema.Int;
1628
- readonly sha256: Schema.String;
1629
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
1630
- }>;
1631
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
1632
- readonly url: Schema.String;
1633
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1634
- readonly expiresAt: Schema.String;
1635
- readonly kind: Schema.Literal<"single">;
1636
- }>, Schema.Struct<{
1637
- readonly kind: Schema.Literal<"multipart">;
1638
- readonly partSize: Schema.Int;
1639
- readonly parts: Schema.$Array<Schema.Struct<{
1640
- readonly url: Schema.String;
1641
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
1642
- readonly expiresAt: Schema.String;
1643
- readonly partNumber: Schema.Int;
1644
- }>>;
1645
- }>]>>;
1646
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
1646
+ }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
1647
1647
  lease: Schema.Struct<{
1648
1648
  readonly workUnitId: Schema.String;
1649
1649
  readonly leaseOwnerId: Schema.String;
@@ -2201,7 +2201,109 @@ export declare const ProgramRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema
2201
2201
  }>;
2202
2202
  }>, Schema.Void, typeof RunnerRpcError, typeof RunnerAuthentication, never>>;
2203
2203
  /** Every group, served on the one Runner RPC endpoint; a request names its procedure by tag alone. */
2204
- export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.Struct<{
2204
+ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"Signals", Schema.Struct<{
2205
+ runnerReplicaId: Schema.String;
2206
+ }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
2207
+ readonly workUnitId: Schema.String;
2208
+ }>, Schema.TaggedStruct<"Settled", {
2209
+ readonly workUnitId: Schema.String;
2210
+ }>, Schema.TaggedStruct<"Canceled", {
2211
+ readonly workUnitId: Schema.String;
2212
+ }>, Schema.TaggedStruct<"RunSettled", {
2213
+ readonly runId: Schema.String;
2214
+ }>, Schema.TaggedStruct<"Steer", {
2215
+ readonly workUnitId: Schema.String;
2216
+ readonly messageId: Schema.String;
2217
+ readonly text: Schema.String;
2218
+ }>, Schema.TaggedStruct<"SessionUpdated", {
2219
+ readonly workUnitId: Schema.String;
2220
+ }>, Schema.TaggedStruct<"UpdateAvailable", {
2221
+ readonly version: Schema.String;
2222
+ }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
2223
+ lease: Schema.Struct<{
2224
+ readonly workUnitId: Schema.String;
2225
+ readonly leaseOwnerId: Schema.String;
2226
+ readonly runnerReplicaId: Schema.String;
2227
+ readonly leaseId: Schema.String;
2228
+ readonly attempt: Schema.Int;
2229
+ readonly fencingToken: Schema.String;
2230
+ readonly capacitySlot: Schema.String;
2231
+ }>;
2232
+ byteSize: Schema.Int;
2233
+ sha256: Schema.String;
2234
+ }>, Schema.Struct<{
2235
+ readonly file: Schema.Struct<{
2236
+ readonly id: Schema.String;
2237
+ readonly runId: Schema.String;
2238
+ readonly step: Schema.String;
2239
+ readonly name: Schema.String;
2240
+ readonly caption: Schema.optionalKey<Schema.String>;
2241
+ readonly contentType: Schema.String;
2242
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2243
+ readonly byteSize: Schema.Int;
2244
+ readonly sha256: Schema.String;
2245
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2246
+ }>;
2247
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2248
+ readonly url: Schema.String;
2249
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2250
+ readonly expiresAt: Schema.String;
2251
+ readonly kind: Schema.Literal<"single">;
2252
+ }>, Schema.Struct<{
2253
+ readonly kind: Schema.Literal<"multipart">;
2254
+ readonly partSize: Schema.Int;
2255
+ readonly parts: Schema.$Array<Schema.Struct<{
2256
+ readonly url: Schema.String;
2257
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2258
+ readonly expiresAt: Schema.String;
2259
+ readonly partNumber: Schema.Int;
2260
+ }>>;
2261
+ }>]>>;
2262
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
2263
+ lease: Schema.Struct<{
2264
+ readonly workUnitId: Schema.String;
2265
+ readonly leaseOwnerId: Schema.String;
2266
+ readonly runnerReplicaId: Schema.String;
2267
+ readonly leaseId: Schema.String;
2268
+ readonly attempt: Schema.Int;
2269
+ readonly fencingToken: Schema.String;
2270
+ readonly capacitySlot: Schema.String;
2271
+ }>;
2272
+ step: Schema.String;
2273
+ name: Schema.String;
2274
+ caption: Schema.optional<Schema.String>;
2275
+ contentType: Schema.String;
2276
+ byteSize: Schema.Int;
2277
+ sha256: Schema.String;
2278
+ }>, Schema.Struct<{
2279
+ readonly file: Schema.Struct<{
2280
+ readonly id: Schema.String;
2281
+ readonly runId: Schema.String;
2282
+ readonly step: Schema.String;
2283
+ readonly name: Schema.String;
2284
+ readonly caption: Schema.optionalKey<Schema.String>;
2285
+ readonly contentType: Schema.String;
2286
+ readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2287
+ readonly byteSize: Schema.Int;
2288
+ readonly sha256: Schema.String;
2289
+ readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2290
+ }>;
2291
+ readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2292
+ readonly url: Schema.String;
2293
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2294
+ readonly expiresAt: Schema.String;
2295
+ readonly kind: Schema.Literal<"single">;
2296
+ }>, Schema.Struct<{
2297
+ readonly kind: Schema.Literal<"multipart">;
2298
+ readonly partSize: Schema.Int;
2299
+ readonly parts: Schema.$Array<Schema.Struct<{
2300
+ readonly url: Schema.String;
2301
+ readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2302
+ readonly expiresAt: Schema.String;
2303
+ readonly partNumber: Schema.Int;
2304
+ }>>;
2305
+ }>]>>;
2306
+ }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"AdmitChild", Schema.Struct<{
2205
2307
  lease: Schema.Struct<{
2206
2308
  readonly workUnitId: Schema.String;
2207
2309
  readonly leaseOwnerId: Schema.String;
@@ -2698,47 +2800,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
2698
2800
  readonly byteSize: Schema.Int;
2699
2801
  readonly sha256: Schema.String;
2700
2802
  readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2701
- }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateCheckpointFile", Schema.Struct<{
2702
- lease: Schema.Struct<{
2703
- readonly workUnitId: Schema.String;
2704
- readonly leaseOwnerId: Schema.String;
2705
- readonly runnerReplicaId: Schema.String;
2706
- readonly leaseId: Schema.String;
2707
- readonly attempt: Schema.Int;
2708
- readonly fencingToken: Schema.String;
2709
- readonly capacitySlot: Schema.String;
2710
- }>;
2711
- byteSize: Schema.Int;
2712
- sha256: Schema.String;
2713
- }>, Schema.Struct<{
2714
- readonly file: Schema.Struct<{
2715
- readonly id: Schema.String;
2716
- readonly runId: Schema.String;
2717
- readonly step: Schema.String;
2718
- readonly name: Schema.String;
2719
- readonly caption: Schema.optionalKey<Schema.String>;
2720
- readonly contentType: Schema.String;
2721
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2722
- readonly byteSize: Schema.Int;
2723
- readonly sha256: Schema.String;
2724
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2725
- }>;
2726
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2727
- readonly url: Schema.String;
2728
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2729
- readonly expiresAt: Schema.String;
2730
- readonly kind: Schema.Literal<"single">;
2731
- }>, Schema.Struct<{
2732
- readonly kind: Schema.Literal<"multipart">;
2733
- readonly partSize: Schema.Int;
2734
- readonly parts: Schema.$Array<Schema.Struct<{
2735
- readonly url: Schema.String;
2736
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2737
- readonly expiresAt: Schema.String;
2738
- readonly partNumber: Schema.Int;
2739
- }>>;
2740
- }>]>>;
2741
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreatePlanTasks", Schema.Struct<{
2803
+ }>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreatePlanTasks", Schema.Struct<{
2742
2804
  lease: Schema.Struct<{
2743
2805
  readonly workUnitId: Schema.String;
2744
2806
  readonly leaseOwnerId: Schema.String;
@@ -2760,51 +2822,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
2760
2822
  }>, Schema.$Array<Schema.Struct<{
2761
2823
  readonly key: Schema.String;
2762
2824
  readonly taskId: Schema.String;
2763
- }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"CreateRunFile", Schema.Struct<{
2764
- lease: Schema.Struct<{
2765
- readonly workUnitId: Schema.String;
2766
- readonly leaseOwnerId: Schema.String;
2767
- readonly runnerReplicaId: Schema.String;
2768
- readonly leaseId: Schema.String;
2769
- readonly attempt: Schema.Int;
2770
- readonly fencingToken: Schema.String;
2771
- readonly capacitySlot: Schema.String;
2772
- }>;
2773
- step: Schema.String;
2774
- name: Schema.String;
2775
- caption: Schema.optional<Schema.String>;
2776
- contentType: Schema.String;
2777
- byteSize: Schema.Int;
2778
- sha256: Schema.String;
2779
- }>, Schema.Struct<{
2780
- readonly file: Schema.Struct<{
2781
- readonly id: Schema.String;
2782
- readonly runId: Schema.String;
2783
- readonly step: Schema.String;
2784
- readonly name: Schema.String;
2785
- readonly caption: Schema.optionalKey<Schema.String>;
2786
- readonly contentType: Schema.String;
2787
- readonly kind: Schema.Literals<readonly ["image", "video", "html", "text", "other"]>;
2788
- readonly byteSize: Schema.Int;
2789
- readonly sha256: Schema.String;
2790
- readonly status: Schema.Literals<readonly ["uploading", "available", "rejected", "refused", "removing", "removed", "expired"]>;
2791
- }>;
2792
- readonly upload: Schema.optional<Schema.Union<readonly [Schema.Struct<{
2793
- readonly url: Schema.String;
2794
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2795
- readonly expiresAt: Schema.String;
2796
- readonly kind: Schema.Literal<"single">;
2797
- }>, Schema.Struct<{
2798
- readonly kind: Schema.Literal<"multipart">;
2799
- readonly partSize: Schema.Int;
2800
- readonly parts: Schema.$Array<Schema.Struct<{
2801
- readonly url: Schema.String;
2802
- readonly headers: Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>;
2803
- readonly expiresAt: Schema.String;
2804
- readonly partNumber: Schema.Int;
2805
- }>>;
2806
- }>]>>;
2807
- }>, Schema.Union<readonly [typeof RunnerRpcError, typeof RunFileRefused]>, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
2825
+ }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"DeferredDone", Schema.Struct<{
2808
2826
  lease: Schema.Struct<{
2809
2827
  readonly workUnitId: Schema.String;
2810
2828
  readonly leaseOwnerId: Schema.String;
@@ -3383,25 +3401,7 @@ export declare const RunnerRpcs: RpcGroup.RpcGroup<Rpc.Rpc<"AdmitChild", Schema.
3383
3401
  }>>;
3384
3402
  }>>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"SettledRuns", Schema.Struct<{
3385
3403
  runIds: Schema.$Array<Schema.String>;
3386
- }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"Signals", Schema.Struct<{
3387
- runnerReplicaId: Schema.String;
3388
- }>, import("effect/rpc/RpcSchema").Stream<Schema.Union<readonly [Schema.TaggedStruct<"WorkAvailable", {}>, Schema.TaggedStruct<"LeaseRevoked", {
3389
- readonly workUnitId: Schema.String;
3390
- }>, Schema.TaggedStruct<"Settled", {
3391
- readonly workUnitId: Schema.String;
3392
- }>, Schema.TaggedStruct<"Canceled", {
3393
- readonly workUnitId: Schema.String;
3394
- }>, Schema.TaggedStruct<"RunSettled", {
3395
- readonly runId: Schema.String;
3396
- }>, Schema.TaggedStruct<"Steer", {
3397
- readonly workUnitId: Schema.String;
3398
- readonly messageId: Schema.String;
3399
- readonly text: Schema.String;
3400
- }>, Schema.TaggedStruct<"SessionUpdated", {
3401
- readonly workUnitId: Schema.String;
3402
- }>, Schema.TaggedStruct<"UpdateAvailable", {
3403
- readonly version: Schema.String;
3404
- }>]>, typeof RunnerRpcError>, Schema.Never, typeof RunnerAuthentication, never> | Rpc.Rpc<"StartAgentStep", Schema.Struct<{
3404
+ }>, Schema.$Array<Schema.String>, typeof RunnerRpcError, typeof RunnerAuthentication, never> | Rpc.Rpc<"StartAgentStep", Schema.Struct<{
3405
3405
  lease: Schema.Struct<{
3406
3406
  readonly workUnitId: Schema.String;
3407
3407
  readonly leaseOwnerId: Schema.String;
File without changes