@kitman-sh/cli 0.17.0 → 0.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/{chunk-2928qj8m.js → chunk-0sbd6e4d.js} +21 -21
  2. package/dist/{chunk-kx8rpa62.js → chunk-2dhhyy04.js} +5 -5
  3. package/dist/{chunk-pnckztvv.js → chunk-2y646fhs.js} +20 -20
  4. package/dist/{chunk-nqh0pbgt.js → chunk-36dejya4.js} +1 -1
  5. package/dist/{chunk-829r4kya.js → chunk-3gmqn9yp.js} +4 -4
  6. package/dist/{chunk-g3jqqpky.js → chunk-4rq880g6.js} +9 -9
  7. package/dist/{chunk-zy21drtv.js → chunk-6387vj9z.js} +2 -2
  8. package/dist/{chunk-9a6wbk11.js → chunk-6hxtg6eb.js} +3 -3
  9. package/dist/{chunk-2sazk478.js → chunk-9cj8g584.js} +4 -4
  10. package/dist/{chunk-0wqkz371.js → chunk-am57a75e.js} +3 -3
  11. package/dist/{chunk-ekyj0bps.js → chunk-bevxc9rx.js} +7 -7
  12. package/dist/{chunk-j37p2y71.js → chunk-e863b7v1.js} +350 -189
  13. package/dist/{chunk-y64ssczv.js → chunk-ew07nt2d.js} +71 -257
  14. package/dist/{chunk-5me7tnrw.js → chunk-gqcz0d3j.js} +2 -2
  15. package/dist/{chunk-pd3azxev.js → chunk-haq904fk.js} +1 -1
  16. package/dist/{chunk-r3d2yjsh.js → chunk-hrdh72c7.js} +25 -25
  17. package/dist/{chunk-qjxgew0k.js → chunk-khn17hdn.js} +2 -2
  18. package/dist/{chunk-0f67q0tf.js → chunk-kx00yd3c.js} +9 -9
  19. package/dist/{chunk-ebpjd7kg.js → chunk-qp3kqaw1.js} +6 -6
  20. package/dist/{chunk-r2kzvdrg.js → chunk-qvpkwnky.js} +1 -1
  21. package/dist/{chunk-nf9rfrvv.js → chunk-t5gb7bqv.js} +34 -34
  22. package/dist/{chunk-vh2a72d1.js → chunk-t6y0c0ds.js} +60 -14
  23. package/dist/{chunk-z59pvcbk.js → chunk-w9mxqrsp.js} +178 -187
  24. package/dist/{chunk-8r1a93rc.js → chunk-y4nrvwgy.js} +4 -4
  25. package/dist/{chunk-m1qp6swh.js → chunk-y7bth30s.js} +1 -1
  26. package/dist/{chunk-jg1pjhba.js → chunk-zb8mwx3s.js} +21 -21
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -62,9 +62,11 @@ import {
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -84,12 +86,12 @@ import {
84
86
  DisablePropagation,
85
87
  sync,
86
88
  map7,
87
- ClockRef,
88
- currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
+ void_2,
92
93
  isSuccess2,
94
+ isFailure2,
93
95
  makeUnsafe5,
94
96
  make15,
95
97
  _await,
@@ -99,8 +101,12 @@ import {
99
101
  succeed4,
100
102
  doneUnsafe,
101
103
  TracerTimingEnabled,
104
+ Scope,
105
+ makeUnsafe6,
102
106
  provide,
107
+ addFinalizerExit,
103
108
  addFinalizer,
109
+ close,
104
110
  succeed5,
105
111
  effect,
106
112
  effectContext,
@@ -152,6 +158,7 @@ import {
152
158
  tapCause,
153
159
  retry,
154
160
  ignore,
161
+ ignoreCause,
155
162
  orElseSucceed,
156
163
  timeout,
157
164
  timeoutOrElse,
@@ -163,6 +170,7 @@ import {
163
170
  context,
164
171
  contextWith,
165
172
  provide3,
173
+ provideContext2,
166
174
  serviceOption,
167
175
  updateContext,
168
176
  provideService,
@@ -173,6 +181,7 @@ import {
173
181
  addFinalizer2,
174
182
  ensuring2,
175
183
  onError,
184
+ onExit,
176
185
  cached,
177
186
  interrupt3,
178
187
  interruptible,
@@ -184,6 +193,7 @@ import {
184
193
  withParentSpan,
185
194
  forkScoped,
186
195
  runFork,
196
+ runForkWith,
187
197
  runPromise,
188
198
  runPromiseWith,
189
199
  runSync,
@@ -193,12 +203,7 @@ import {
193
203
  clockWith,
194
204
  logError,
195
205
  effectify,
196
- toNumber,
197
- bytes,
198
206
  decode,
199
- isRedacted,
200
- make16,
201
- value,
202
207
  defaultParseOptions,
203
208
  omit,
204
209
  map10,
@@ -208,7 +213,7 @@ import {
208
213
  decodeEffect,
209
214
  decodeUnknownOption,
210
215
  decodeOption,
211
- make17,
216
+ make16,
212
217
  isSchema,
213
218
  optionalKey,
214
219
  optional,
@@ -269,16 +274,23 @@ import {
269
274
  decodeJsonStringOption,
270
275
  encodeJsonStringSync,
271
276
  encodePrettyJsonString
272
- } from "./chunk-y64ssczv.js";
277
+ } from "./chunk-ew07nt2d.js";
273
278
  import {
274
279
  map,
275
280
  makeEquivalence,
281
+ Clock,
282
+ currentTimeMillis,
283
+ bytes,
284
+ join,
285
+ interrupt,
286
+ getCurrent,
287
+ runIn,
276
288
  BadArgument,
277
289
  systemError,
278
290
  badArgument,
279
291
  makeUnsafe2,
280
- make7,
281
292
  make8,
293
+ make9,
282
294
  sliding,
283
295
  unbounded2,
284
296
  offer,
@@ -294,8 +306,6 @@ import {
294
306
  isSink,
295
307
  fromChannel,
296
308
  drain,
297
- make9,
298
- get3,
299
309
  isStream,
300
310
  fromChannel2,
301
311
  callback,
@@ -336,18 +346,21 @@ import {
336
346
  optionalEnv,
337
347
  harnessesUnsupportedInSrt2,
338
348
  harnessesUnsupportedInDocker2
339
- } from "./chunk-z59pvcbk.js";
349
+ } from "./chunk-w9mxqrsp.js";
340
350
  import {
351
+ isRedacted,
352
+ make,
353
+ value,
341
354
  ExitCode,
342
355
  ProcessId,
343
356
  makeHandle,
344
- make,
357
+ make2,
345
358
  ChildProcessSpawner,
346
359
  display,
347
- make2,
360
+ make3,
348
361
  parseFdName,
349
362
  fdName
350
- } from "./chunk-vh2a72d1.js";
363
+ } from "./chunk-t6y0c0ds.js";
351
364
  import {
352
365
  isDateTime,
353
366
  Numeric,
@@ -360,14 +373,11 @@ import {
360
373
  SecretScope,
361
374
  SecretHosts,
362
375
  isSecretReference
363
- } from "./chunk-r2kzvdrg.js";
376
+ } from "./chunk-qvpkwnky.js";
377
+
364
378
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
379
  var makeEquivalence3 = Tuple;
366
380
 
367
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
368
- var Clock = ClockRef;
369
- var currentTimeMillis = currentTimeMillis2;
370
-
371
381
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
372
382
  var TypeId = "~effect/DateTime";
373
383
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -502,7 +512,7 @@ var fromDateUnsafe = (date) => {
502
512
  }
503
513
  return makeUtc(epochMillis);
504
514
  };
505
- var makeUnsafe6 = (input) => {
515
+ var makeUnsafe7 = (input) => {
506
516
  if (isDateTime2(input)) {
507
517
  return input;
508
518
  } else if (input instanceof Date) {
@@ -522,7 +532,7 @@ var makeUnsafe6 = (input) => {
522
532
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
523
533
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
524
534
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
525
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
535
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
526
536
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
527
537
  var nowUnsafe = () => makeUtc(Date.now());
528
538
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -629,7 +639,7 @@ class Metric$ {
629
639
  }
630
640
  hook(context) {
631
641
  const key = this.key(context);
632
- const registry = get4(context, MetricRegistry);
642
+ const registry = get3(context, MetricRegistry);
633
643
  let metadata = registry.get(key);
634
644
  if (isUndefined(metadata)) {
635
645
  metadata = this.metadata(this.createHooks());
@@ -638,11 +648,11 @@ class Metric$ {
638
648
  return metadata.hooks;
639
649
  }
640
650
  removeUnsafe(context) {
641
- get4(context, MetricRegistry).delete(this.key(context));
651
+ get3(context, MetricRegistry).delete(this.key(context));
642
652
  }
643
653
  registerUnsafe(context, hooks) {
644
654
  const key = this.key(context);
645
- const registry = get4(context, MetricRegistry);
655
+ const registry = get3(context, MetricRegistry);
646
656
  const metadata = this.metadata({
647
657
  get: hooks.get,
648
658
  update: constVoid,
@@ -658,7 +668,7 @@ class Metric$ {
658
668
  };
659
669
  }
660
670
  key(context) {
661
- const extraAttributes = get4(context, CurrentMetricAttributes);
671
+ const extraAttributes = get3(context, CurrentMetricAttributes);
662
672
  if (extraAttributes !== this.#extraAttributes) {
663
673
  this.#extraAttributes = extraAttributes;
664
674
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -901,9 +911,160 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
901
911
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
902
912
  var runMain = runMain2;
903
913
 
914
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
915
+ var BigInt2 = globalThis.BigInt;
916
+ var toNumber = (b) => {
917
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
918
+ return none();
919
+ }
920
+ return some(Number(b));
921
+ };
922
+
923
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
924
+ var TypeId3 = "~effect/RcRef";
925
+ var stateEmpty = {
926
+ _tag: "Empty"
927
+ };
928
+ var stateClosed = {
929
+ _tag: "Closed"
930
+ };
931
+ var variance = {
932
+ _A: identity,
933
+ _E: identity
934
+ };
935
+
936
+ class RcRefImpl {
937
+ [TypeId3] = variance;
938
+ pipe() {
939
+ return pipeArguments(this, arguments);
940
+ }
941
+ state = stateEmpty;
942
+ acquire;
943
+ context;
944
+ scope;
945
+ idleTimeToLive;
946
+ constructor(acquire, context, scope, idleTimeToLive) {
947
+ this.acquire = acquire;
948
+ this.context = context;
949
+ this.scope = scope;
950
+ this.idleTimeToLive = idleTimeToLive;
951
+ }
952
+ }
953
+ var make17 = (options) => withFiber2((fiber) => {
954
+ const context = fiber.context;
955
+ const scope = get3(context, Scope);
956
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
957
+ return as(addFinalizerExit(scope, () => {
958
+ const state = ref.state;
959
+ ref.state = stateClosed;
960
+ if (state._tag === "Acquired")
961
+ return close(state.scope, void_2);
962
+ if (state._tag === "Acquiring")
963
+ return interrupt(state.fiber);
964
+ return void_3;
965
+ }), ref);
966
+ });
967
+ var getState = (self, restore) => {
968
+ switch (self.state._tag) {
969
+ case "Closed": {
970
+ return interrupt3;
971
+ }
972
+ case "Acquired": {
973
+ const state = self.state;
974
+ state.refCount++;
975
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
976
+ }
977
+ case "Acquiring": {
978
+ const state = self.state;
979
+ state.awaiters++;
980
+ return awaitAcquiring(self, state, restore);
981
+ }
982
+ case "Empty": {
983
+ const acquiring = {
984
+ _tag: "Acquiring",
985
+ fiber: undefined,
986
+ awaiters: 1,
987
+ acquired: undefined
988
+ };
989
+ self.state = acquiring;
990
+ const scope = makeUnsafe6();
991
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
992
+ if (self.state !== acquiring) {
993
+ return interrupt3;
994
+ }
995
+ const state = {
996
+ _tag: "Acquired",
997
+ value,
998
+ scope,
999
+ fiber: undefined,
1000
+ refCount: acquiring.awaiters,
1001
+ invalidated: false
1002
+ };
1003
+ self.state = state;
1004
+ acquiring.acquired = state;
1005
+ return succeed6(state);
1006
+ }), onExit((exit) => {
1007
+ if (isSuccess2(exit))
1008
+ return void_3;
1009
+ if (self.state === acquiring)
1010
+ self.state = stateEmpty;
1011
+ return close(scope, exit);
1012
+ }));
1013
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1014
+ return awaitAcquiring(self, acquiring, restore);
1015
+ }
1016
+ }
1017
+ };
1018
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1019
+ const acquired = acquiring.acquired;
1020
+ if (acquired !== undefined) {
1021
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1022
+ }
1023
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1024
+ return void_3;
1025
+ self.state = stateEmpty;
1026
+ return interrupt(acquiring.fiber);
1027
+ });
1028
+ var get4 = (self_) => {
1029
+ const self = self_;
1030
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1031
+ };
1032
+ var release = (self, state) => {
1033
+ state.refCount--;
1034
+ if (state.refCount > 0) {
1035
+ return void_3;
1036
+ }
1037
+ const idleTimeToLive = self.idleTimeToLive;
1038
+ if (idleTimeToLive === undefined || state.invalidated) {
1039
+ if (self.state === state) {
1040
+ self.state = stateEmpty;
1041
+ }
1042
+ return close(state.scope, void_2);
1043
+ } else if (!isFinite(idleTimeToLive)) {
1044
+ return void_3;
1045
+ }
1046
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1047
+ if (self.state === state && state.refCount === 0) {
1048
+ self.state = stateEmpty;
1049
+ return ignoreCause(close(state.scope, void_2), {
1050
+ log: "Unhandled",
1051
+ message: "Unhandled error in RcRef finalizer"
1052
+ });
1053
+ }
1054
+ return void_3;
1055
+ })).pipe(ensuring2(sync2(() => {
1056
+ state.fiber = undefined;
1057
+ })), runForkWith(self.context), runIn(self.scope));
1058
+ return void_3;
1059
+ };
1060
+
1061
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1062
+ var make18 = make17;
1063
+ var get5 = get4;
1064
+
904
1065
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
905
- var makeUnsafe = makeUnsafe6;
906
- var make18 = make3;
1066
+ var makeUnsafe = makeUnsafe7;
1067
+ var make19 = make4;
907
1068
  var now2 = now;
908
1069
  var nowUnsafe2 = nowUnsafe;
909
1070
  var toDateUtc2 = toDateUtc;
@@ -1118,7 +1279,7 @@ var readableToPullUnsafe = (options) => {
1118
1279
  const readable = options.readable;
1119
1280
  const chunkSize = options.chunkSize ?? 4096;
1120
1281
  const closeOnDone = options.closeOnDone ?? true;
1121
- const exit = options.exit ?? make7(undefined);
1282
+ const exit = options.exit ?? make8(undefined);
1122
1283
  const latch = options.latch ?? makeUnsafe2(false);
1123
1284
  function onReadable() {
1124
1285
  latch.openUnsafe();
@@ -1222,7 +1383,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1222
1383
  windowsHide: true
1223
1384
  }, onExit);
1224
1385
  };
1225
- var make19 = /* @__PURE__ */ gen(function* () {
1386
+ var make20 = /* @__PURE__ */ gen(function* () {
1226
1387
  const fs = yield* FileSystem;
1227
1388
  const path = yield* Path;
1228
1389
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1682,7 +1843,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1682
1843
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1683
1844
  const toOption = options.to ?? "stdin";
1684
1845
  if (toOption === "stdin") {
1685
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1846
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1686
1847
  ...command.options,
1687
1848
  stdin: {
1688
1849
  ...stdinConfig,
@@ -1702,7 +1863,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1702
1863
  type: "input",
1703
1864
  stream: sourceStream
1704
1865
  };
1705
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1866
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1706
1867
  ...command.options,
1707
1868
  additionalFds: {
1708
1869
  ...existingFds,
@@ -1710,7 +1871,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1710
1871
  }
1711
1872
  })));
1712
1873
  } else {
1713
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1874
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1714
1875
  ...command.options,
1715
1876
  stdin: {
1716
1877
  ...stdinConfig,
@@ -1749,9 +1910,9 @@ var make19 = /* @__PURE__ */ gen(function* () {
1749
1910
  }
1750
1911
  }
1751
1912
  });
1752
- return make(spawnCommand);
1913
+ return make2(spawnCommand);
1753
1914
  });
1754
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1915
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1755
1916
  var flattenCommand = (command) => {
1756
1917
  const commands = [];
1757
1918
  const pipeOptions = [];
@@ -2312,10 +2473,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2312
2473
  var layer2 = layer7;
2313
2474
 
2314
2475
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2315
- var TypeId3 = "~effect/Stdio";
2316
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2317
- var make20 = (options) => ({
2318
- [TypeId3]: TypeId3,
2476
+ var TypeId4 = "~effect/Stdio";
2477
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2478
+ var make21 = (options) => ({
2479
+ [TypeId4]: TypeId4,
2319
2480
  stdinIsTerminal: succeed6(false),
2320
2481
  stdoutIsTerminal: succeed6(false),
2321
2482
  stderrIsTerminal: succeed6(false),
@@ -2323,7 +2484,7 @@ var make20 = (options) => ({
2323
2484
  });
2324
2485
 
2325
2486
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2326
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2487
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2327
2488
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2328
2489
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2329
2490
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2523,7 +2684,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2523
2684
  const uuid = bytes(randomBytes(16));
2524
2685
  return format === "bytes" ? uuid : stringify(uuid);
2525
2686
  };
2526
- var make21 = (randomBytes) => {
2687
+ var make22 = (randomBytes) => {
2527
2688
  const randomBytesChecked = (size) => {
2528
2689
  checkSize(size);
2529
2690
  return randomBytes(size);
@@ -2557,7 +2718,7 @@ var fillRandom = (crypto2, size) => {
2557
2718
  }
2558
2719
  return bytes;
2559
2720
  };
2560
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2721
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2561
2722
  var randomBytesUnsafe = (size) => {
2562
2723
  checkSize(size);
2563
2724
  return fillRandom(globalThis.crypto, size);
@@ -2565,10 +2726,10 @@ var randomBytesUnsafe = (size) => {
2565
2726
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2566
2727
 
2567
2728
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2568
- var TypeId4 = "~effect/http/Cookies";
2729
+ var TypeId5 = "~effect/http/Cookies";
2569
2730
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2570
2731
  var Proto2 = {
2571
- [TypeId4]: TypeId4,
2732
+ [TypeId5]: TypeId5,
2572
2733
  ...BaseProto,
2573
2734
  toJSON() {
2574
2735
  return {
@@ -2747,14 +2908,14 @@ var tryDecodeURIComponent = (str) => {
2747
2908
  };
2748
2909
 
2749
2910
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2750
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2911
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2751
2912
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2752
- [TypeId5]: {
2753
- value: TypeId5
2913
+ [TypeId6]: {
2914
+ value: TypeId6
2754
2915
  },
2755
2916
  [symbolRedactable]: {
2756
2917
  value(context) {
2757
- return redact2(this, get4(context, CurrentRedactedNames));
2918
+ return redact2(this, get3(context, CurrentRedactedNames));
2758
2919
  }
2759
2920
  },
2760
2921
  toJSON: {
@@ -2779,7 +2940,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2779
2940
  value: BaseProto[NodeInspectSymbol]
2780
2941
  }
2781
2942
  });
2782
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2943
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2783
2944
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2784
2945
  var empty = /* @__PURE__ */ Object.create(Proto3);
2785
2946
  var fromInput = (input) => {
@@ -2804,21 +2965,21 @@ var fromInput = (input) => {
2804
2965
  };
2805
2966
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2806
2967
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2807
- const out = make22(self);
2968
+ const out = make23(self);
2808
2969
  out[key.toLowerCase()] = value;
2809
2970
  return out;
2810
2971
  });
2811
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2972
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2812
2973
  ...self,
2813
2974
  ...fromInput(headers)
2814
2975
  }));
2815
2976
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2816
- const out = make22(self);
2977
+ const out = make23(self);
2817
2978
  Object.assign(out, headers);
2818
2979
  return out;
2819
2980
  });
2820
2981
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2821
- const out = make22(self);
2982
+ const out = make23(self);
2822
2983
  delete out[key.toLowerCase()];
2823
2984
  return out;
2824
2985
  });
@@ -2830,12 +2991,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2830
2991
  if (typeof key === "string") {
2831
2992
  const k = key.toLowerCase();
2832
2993
  if (k in self) {
2833
- out[k] = make16(self[k]);
2994
+ out[k] = make(self[k]);
2834
2995
  }
2835
2996
  } else {
2836
2997
  for (const name in self) {
2837
2998
  if (name.search(key) !== -1) {
2838
- out[name] = make16(self[name]);
2999
+ out[name] = make(self[name]);
2839
3000
  }
2840
3001
  }
2841
3002
  }
@@ -2875,18 +3036,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2875
3036
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2876
3037
 
2877
3038
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2878
- var TypeId6 = "~effect/http/UrlParams";
2879
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3039
+ var TypeId7 = "~effect/http/UrlParams";
3040
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2880
3041
  var Proto4 = {
2881
3042
  ...PipeInspectableProto,
2882
- [TypeId6]: TypeId6,
3043
+ [TypeId7]: TypeId7,
2883
3044
  [Symbol.iterator]() {
2884
3045
  return this.params[Symbol.iterator]();
2885
3046
  },
2886
3047
  [symbolRedactable](context) {
2887
3048
  return {
2888
3049
  _id: "UrlParams",
2889
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3050
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2890
3051
  };
2891
3052
  },
2892
3053
  toJSON() {
@@ -2899,7 +3060,7 @@ var Proto4 = {
2899
3060
  return array(this.params.flat());
2900
3061
  }
2901
3062
  };
2902
- var make23 = (params) => {
3063
+ var make24 = (params) => {
2903
3064
  const self = Object.create(Proto4);
2904
3065
  self.params = params;
2905
3066
  return self;
@@ -2918,7 +3079,7 @@ var fromInput2 = (input) => {
2918
3079
  out.push(parsed[i]);
2919
3080
  }
2920
3081
  }
2921
- return make23(out);
3082
+ return make24(out);
2922
3083
  };
2923
3084
  var fromInputNested = (input) => {
2924
3085
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2944,7 +3105,7 @@ var fromInputNested = (input) => {
2944
3105
  var coerce = (value) => isRedacted(value) ? value : String(value);
2945
3106
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2946
3107
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2947
- var empty4 = /* @__PURE__ */ make23([]);
3108
+ var empty4 = /* @__PURE__ */ make24([]);
2948
3109
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2949
3110
  const params = fromInput2(input).params.slice();
2950
3111
  const keys = new Set;
@@ -2956,12 +3117,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2956
3117
  continue;
2957
3118
  params.push(self.params[i]);
2958
3119
  }
2959
- return make23(params);
3120
+ return make24(params);
2960
3121
  });
2961
3122
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2962
3123
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2963
3124
  const patterns = Array.isArray(key) ? key : [key];
2964
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3125
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2965
3126
  });
2966
3127
  var isRedactedName2 = isRedactedName;
2967
3128
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3012,13 +3173,13 @@ var decodeQueryKey = (key) => {
3012
3173
  return key;
3013
3174
  }
3014
3175
  };
3015
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3176
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3016
3177
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3017
3178
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3018
3179
  });
3019
3180
 
3020
3181
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3021
- var TypeId7 = "~effect/Terminal";
3182
+ var TypeId8 = "~effect/Terminal";
3022
3183
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3023
3184
 
3024
3185
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3027,17 +3188,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3027
3188
  [QuitErrorTypeId] = QuitErrorTypeId;
3028
3189
  }
3029
3190
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3030
- var make24 = (impl) => Terminal.of({
3191
+ var make25 = (impl) => Terminal.of({
3031
3192
  ...impl,
3032
- [TypeId7]: TypeId7
3193
+ [TypeId8]: TypeId8
3033
3194
  });
3034
3195
 
3035
3196
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3036
3197
  import * as readline from "readline";
3037
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3198
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3038
3199
  const stdin = process.stdin;
3039
3200
  const stdout = process.stdout;
3040
- const lines = yield* make8();
3201
+ const lines = yield* make9();
3041
3202
  let inputEnded = stdin.readableEnded;
3042
3203
  let readlineActive = false;
3043
3204
  const onStdinEnd = () => {
@@ -3048,7 +3209,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3048
3209
  };
3049
3210
  stdin.once("end", onStdinEnd);
3050
3211
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3051
- const rlRef = yield* make9({
3212
+ const rlRef = yield* make18({
3052
3213
  acquire: acquireRelease(sync2(() => {
3053
3214
  const rl = readline.createInterface({
3054
3215
  input: stdin,
@@ -3087,7 +3248,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3087
3248
  if (stdin.isTTY)
3088
3249
  stdin.setRawMode(enabled);
3089
3250
  });
3090
- const rawModeRef = yield* make9({
3251
+ const rawModeRef = yield* make18({
3091
3252
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3092
3253
  idleTimeToLive: "10 millis"
3093
3254
  });
@@ -3108,7 +3269,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3108
3269
  return queue;
3109
3270
  });
3110
3271
  const readInput = gen(function* () {
3111
- const queue = yield* make8();
3272
+ const queue = yield* make9();
3112
3273
  const handleKeypress = (s, k) => {
3113
3274
  const userInput = {
3114
3275
  input: fromUndefinedOr(s),
@@ -3138,14 +3299,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3138
3299
  if (inputEnded) {
3139
3300
  handleEnd();
3140
3301
  } else {
3141
- yield* get3(rlRef);
3142
- yield* get3(rawModeRef);
3302
+ yield* get5(rlRef);
3303
+ yield* get5(rawModeRef);
3143
3304
  stdin.once("end", handleEnd);
3144
3305
  }
3145
3306
  return queue;
3146
3307
  });
3147
3308
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3148
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3309
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3149
3310
  onSome: succeed6
3150
3311
  })), mapError2(() => new QuitError({}))));
3151
3312
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3156,7 +3317,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3156
3317
  cause: err
3157
3318
  }))));
3158
3319
  }));
3159
- return make24({
3320
+ return make25({
3160
3321
  columns,
3161
3322
  rows,
3162
3323
  size,
@@ -3165,7 +3326,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3165
3326
  display
3166
3327
  });
3167
3328
  });
3168
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3329
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3169
3330
  function defaultShouldQuit(input) {
3170
3331
  const key = input.key;
3171
3332
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3192,7 +3353,7 @@ function toDate(input) {
3192
3353
  return toDateUtc2(makeUnsafe(input));
3193
3354
  }
3194
3355
  function parseDate(input) {
3195
- return getOrUndefined(map4(make18(input), toDateUtc2));
3356
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3196
3357
  }
3197
3358
  function toIso(input) {
3198
3359
  return formatIso(makeUnsafe(input));
@@ -10800,11 +10961,11 @@ var TranscriptSearchResult = Struct({
10800
10961
  total: Int
10801
10962
  });
10802
10963
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
10803
- var TypeId8 = "~effect/http/HttpBody";
10964
+ var TypeId9 = "~effect/http/HttpBody";
10804
10965
  class Proto5 {
10805
- [TypeId8];
10966
+ [TypeId9];
10806
10967
  constructor() {
10807
- this[TypeId8] = TypeId8;
10968
+ this[TypeId9] = TypeId9;
10808
10969
  }
10809
10970
  [NodeInspectSymbol]() {
10810
10971
  return this.toJSON();
@@ -10895,7 +11056,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
10895
11056
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
10896
11057
 
10897
11058
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
10898
- var TypeId9 = "~effect/http/HttpClientError";
11059
+ var TypeId10 = "~effect/http/HttpClientError";
10899
11060
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10900
11061
  constructor(props) {
10901
11062
  if ("cause" in props.reason) {
@@ -10907,7 +11068,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
10907
11068
  super(props);
10908
11069
  }
10909
11070
  }
10910
- [TypeId9] = TypeId9;
11071
+ [TypeId10] = TypeId10;
10911
11072
  get request() {
10912
11073
  return this.reason.request;
10913
11074
  }
@@ -11011,7 +11172,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11011
11172
  }
11012
11173
  }
11013
11174
 
11014
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11175
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11015
11176
  _tag: /* @__PURE__ */ tag("HttpError"),
11016
11177
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11017
11178
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11044,7 +11205,7 @@ var updateContentLength = (headers, body) => {
11044
11205
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11045
11206
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11046
11207
  }
11047
- var make26 = (url, params, hash) => try_({
11208
+ var make27 = (url, params, hash) => try_({
11048
11209
  try: () => {
11049
11210
  const urlInstance = new URL(url, baseUrl());
11050
11211
  for (let i = 0;i < params.params.length; i++) {
@@ -11075,10 +11236,10 @@ var baseUrl = () => {
11075
11236
  };
11076
11237
 
11077
11238
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11078
- var TypeId10 = "~effect/http/HttpClientRequest";
11079
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11239
+ var TypeId11 = "~effect/http/HttpClientRequest";
11240
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11080
11241
  var Proto6 = {
11081
- [TypeId10]: TypeId10,
11242
+ [TypeId11]: TypeId11,
11082
11243
  ...BaseProto,
11083
11244
  toJSON() {
11084
11245
  return {
@@ -11106,14 +11267,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11106
11267
  return self;
11107
11268
  }
11108
11269
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
11109
- var make4 = (method) => (url, options) => modify(empty6, {
11270
+ var make5 = (method) => (url, options) => modify(empty6, {
11110
11271
  method,
11111
11272
  url,
11112
11273
  ...options ?? undefined
11113
11274
  });
11114
- var get = /* @__PURE__ */ make4("GET");
11115
- var post = /* @__PURE__ */ make4("POST");
11116
- var put = /* @__PURE__ */ make4("PUT");
11275
+ var get = /* @__PURE__ */ make5("GET");
11276
+ var post = /* @__PURE__ */ make5("POST");
11277
+ var put = /* @__PURE__ */ make5("PUT");
11117
11278
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11118
11279
  let result = self;
11119
11280
  if (options.method) {
@@ -11167,7 +11328,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11167
11328
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11168
11329
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11169
11330
  function toUrl(self) {
11170
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11331
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11171
11332
  if (isSuccess(r)) {
11172
11333
  return some(r.success);
11173
11334
  }
@@ -11175,7 +11336,7 @@ function toUrl(self) {
11175
11336
  }
11176
11337
 
11177
11338
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11178
- var TypeId11 = "~effect/http/HttpIncomingMessage";
11339
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
11179
11340
  var schemaBodyJson = (schema, options) => {
11180
11341
  const decode = decodeEffect(toCodecJson(schema));
11181
11342
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11194,7 +11355,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11194
11355
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11195
11356
 
11196
11357
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11197
- var TypeId12 = "~effect/http/HttpClientResponse";
11358
+ var TypeId13 = "~effect/http/HttpClientResponse";
11198
11359
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11199
11360
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11200
11361
  reason: new StatusCodeError({
@@ -11205,16 +11366,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11205
11366
  }));
11206
11367
 
11207
11368
  class WebHttpClientResponse extends Class {
11208
- [TypeId11];
11209
11369
  [TypeId12];
11370
+ [TypeId13];
11210
11371
  request;
11211
11372
  source;
11212
11373
  constructor(request, source) {
11213
11374
  super();
11214
11375
  this.request = request;
11215
11376
  this.source = source;
11216
- this[TypeId11] = TypeId11;
11217
11377
  this[TypeId12] = TypeId12;
11378
+ this[TypeId13] = TypeId13;
11218
11379
  }
11219
11380
  toJSON() {
11220
11381
  return inspect(this, {
@@ -11386,7 +11547,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11386
11547
  };
11387
11548
 
11388
11549
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11389
- var TypeId13 = "~effect/http/HttpClient";
11550
+ var TypeId14 = "~effect/http/HttpClient";
11390
11551
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11391
11552
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11392
11553
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11403,7 +11564,7 @@ var makeWith2 = (postprocess, preprocess) => {
11403
11564
  return self;
11404
11565
  };
11405
11566
  var Proto7 = {
11406
- [TypeId13]: TypeId13,
11567
+ [TypeId14]: TypeId14,
11407
11568
  pipe() {
11408
11569
  return pipeArguments(this, arguments);
11409
11570
  },
@@ -11414,13 +11575,13 @@ var Proto7 = {
11414
11575
  };
11415
11576
  },
11416
11577
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11417
- return this.execute(make4(fullMethod)(url, options));
11578
+ return this.execute(make5(fullMethod)(url, options));
11418
11579
  }]))
11419
11580
  };
11420
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11581
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11421
11582
  const scopedController = scopedRequests.get(request);
11422
11583
  const controller = scopedController ?? new AbortController;
11423
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11584
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11424
11585
  if (isFailure(urlResult)) {
11425
11586
  return fail7(new HttpClientError({
11426
11587
  reason: new InvalidUrlError({
@@ -11554,8 +11715,8 @@ class InterruptibleResponse {
11554
11715
  this.original = original;
11555
11716
  this.controller = controller;
11556
11717
  }
11718
+ [TypeId13] = TypeId13;
11557
11719
  [TypeId12] = TypeId12;
11558
- [TypeId11] = TypeId11;
11559
11720
  applyInterrupt(effect) {
11560
11721
  return suspend3(() => {
11561
11722
  responseRegistry.unregister(this.original);
@@ -11653,7 +11814,7 @@ var detectStreamBodySupport = () => {
11653
11814
  return false;
11654
11815
  }
11655
11816
  };
11656
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11817
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11657
11818
  if (request.headers.upgrade !== undefined) {
11658
11819
  return fail7(new HttpClientError({
11659
11820
  reason: new TransportError({
@@ -11744,10 +11905,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11744
11905
  });
11745
11906
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11746
11907
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11747
- var TypeId14 = "~effect/socket/Socket";
11908
+ var TypeId15 = "~effect/socket/Socket";
11748
11909
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11749
- var make28 = (options) => Socket.of({
11750
- [TypeId14]: TypeId14,
11910
+ var make29 = (options) => Socket.of({
11911
+ [TypeId15]: TypeId15,
11751
11912
  reader: options.reader,
11752
11913
  writer: options.writer
11753
11914
  });
@@ -12070,7 +12231,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12070
12231
  write,
12071
12232
  writeAll
12072
12233
  });
12073
- return succeed6(make28({
12234
+ return succeed6(make29({
12074
12235
  reader,
12075
12236
  writer
12076
12237
  }));
@@ -15396,7 +15557,7 @@ function getStreamSchemas(schema) {
15396
15557
  }
15397
15558
  var schema = /* @__PURE__ */ declare(isStream);
15398
15559
  function Stream(success, error) {
15399
- return make17(schema.ast, {
15560
+ return make16(schema.ast, {
15400
15561
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15401
15562
  success,
15402
15563
  error
@@ -15404,9 +15565,9 @@ function Stream(success, error) {
15404
15565
  }
15405
15566
 
15406
15567
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15407
- var TypeId15 = "~effect/rpc/Rpc";
15568
+ var TypeId16 = "~effect/rpc/Rpc";
15408
15569
  var Proto8 = {
15409
- [TypeId15]: TypeId15,
15570
+ [TypeId16]: TypeId16,
15410
15571
  pipe() {
15411
15572
  return pipeArguments(this, arguments);
15412
15573
  },
@@ -15495,7 +15656,7 @@ var makeProto = (options) => {
15495
15656
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15496
15657
  return Rpc;
15497
15658
  };
15498
- var make5 = (tag, options) => {
15659
+ var make6 = (tag, options) => {
15499
15660
  const successSchema = options?.success ?? Void;
15500
15661
  const errorSchema = options?.error ?? Never;
15501
15662
  const defectSchema = options?.defect ?? Defect();
@@ -15573,7 +15734,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15573
15734
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15574
15735
 
15575
15736
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15576
- var TypeId16 = "~effect/rpc/RpcClientError";
15737
+ var TypeId17 = "~effect/rpc/RpcClientError";
15577
15738
 
15578
15739
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15579
15740
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15582,11 +15743,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15582
15743
  })) {
15583
15744
  }
15584
15745
 
15585
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15746
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15586
15747
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15587
15748
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15588
15749
  })) {
15589
- [TypeId16] = TypeId16;
15750
+ [TypeId17] = TypeId17;
15590
15751
  get message() {
15591
15752
  return `${this.reason._tag}: ${this.reason.message}`;
15592
15753
  }
@@ -15729,12 +15890,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
15729
15890
  requests: options.requests,
15730
15891
  annotations: options.annotations
15731
15892
  });
15732
- var make6 = (...rpcs) => makeProto2({
15893
+ var make7 = (...rpcs) => makeProto2({
15733
15894
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
15734
15895
  annotations: empty3()
15735
15896
  });
15736
15897
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15737
- var TypeId17 = "~effect/rpc/RpcMiddleware";
15898
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
15738
15899
  var Service = () => (id, options) => {
15739
15900
  const limit = getStackTraceLimit();
15740
15901
  let creationError;
@@ -15752,7 +15913,7 @@ var Service = () => (id, options) => {
15752
15913
  return creationError?.stack;
15753
15914
  }
15754
15915
  });
15755
- ServiceClass_[TypeId17] = TypeId17;
15916
+ ServiceClass_[TypeId18] = TypeId18;
15756
15917
  ServiceClass_.error = options?.error ?? Never;
15757
15918
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15758
15919
  return ServiceClass;
@@ -15835,77 +15996,77 @@ var ProgramOutcome = Union([
15835
15996
  Struct({ status: Literal("failed"), failureSummary: String4 })
15836
15997
  ]);
15837
15998
 
15838
- class RunnerReplicaRpcs extends make6(make5("Claim", {
15999
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
15839
16000
  payload: WorkUnitClaimInput,
15840
16001
  success: WorkUnitClaimResult,
15841
16002
  error: RunnerRpcError
15842
- }), make5("Heartbeat", {
16003
+ }), make6("Heartbeat", {
15843
16004
  payload: WorkUnitHeartbeatInput,
15844
16005
  success: WorkUnitHeartbeatResult,
15845
16006
  error: RunnerRpcError
15846
- }), make5("Complete", {
16007
+ }), make6("Complete", {
15847
16008
  payload: WorkUnitCompletion,
15848
16009
  error: RunnerRpcError
15849
- }), make5("Release", {
16010
+ }), make6("Release", {
15850
16011
  payload: WorkUnitReleaseInput,
15851
16012
  error: RunnerRpcError
15852
- }), make5("Signals", {
16013
+ }), make6("Signals", {
15853
16014
  payload: { runnerReplicaId: String4 },
15854
16015
  success: RunnerSignal,
15855
16016
  error: RunnerRpcError,
15856
16017
  stream: true
15857
- }), make5("ReportSteer", {
16018
+ }), make6("ReportSteer", {
15858
16019
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
15859
16020
  success: Void,
15860
16021
  error: RunnerRpcError
15861
- }), make5("AppendTranscript", {
16022
+ }), make6("AppendTranscript", {
15862
16023
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
15863
16024
  success: Void,
15864
16025
  error: RunnerRpcError
15865
- }), make5("CreateCheckpointFile", {
16026
+ }), make6("CreateCheckpointFile", {
15866
16027
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
15867
16028
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
15868
16029
  error: Union([RunnerRpcError, RunFileRefused])
15869
- }), make5("CheckpointFileParts", {
16030
+ }), make6("CheckpointFileParts", {
15870
16031
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
15871
16032
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
15872
16033
  error: RunnerRpcError
15873
- }), make5("CompleteCheckpointFile", {
16034
+ }), make6("CompleteCheckpointFile", {
15874
16035
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
15875
16036
  success: RunFileRecord,
15876
16037
  error: RunnerRpcError
15877
- }), make5("SaveCheckpoint", {
16038
+ }), make6("SaveCheckpoint", {
15878
16039
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
15879
16040
  success: Void,
15880
16041
  error: RunnerRpcError
15881
- }), make5("ResumeCheckpoint", {
16042
+ }), make6("ResumeCheckpoint", {
15882
16043
  payload: { lease: ProgramLease },
15883
16044
  success: UndefinedOr(ResumedCheckpoint),
15884
16045
  error: RunnerRpcError
15885
- }), make5("SettledCheckpoints", {
16046
+ }), make6("SettledCheckpoints", {
15886
16047
  success: ArraySchema(Struct({
15887
16048
  stepAttemptId: String4,
15888
16049
  ref: optionalKey(String4),
15889
16050
  repoBinding: optionalKey(WorkUnitRepoBinding)
15890
16051
  })),
15891
16052
  error: RunnerRpcError
15892
- }), make5("ForgetCheckpoints", {
16053
+ }), make6("ForgetCheckpoints", {
15893
16054
  payload: { stepAttemptIds: ArraySchema(String4) },
15894
16055
  success: Void,
15895
16056
  error: RunnerRpcError
15896
- }), make5("GitCredential", {
16057
+ }), make6("GitCredential", {
15897
16058
  payload: { repoBindingId: String4 },
15898
16059
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
15899
16060
  error: RunnerRpcError
15900
- }), make5("Bundle", {
16061
+ }), make6("Bundle", {
15901
16062
  payload: { digest: String4 },
15902
16063
  success: Struct({ bundle: String4 }),
15903
16064
  error: RunnerRpcError
15904
- }), make5("SettledRuns", {
16065
+ }), make6("SettledRuns", {
15905
16066
  payload: { runIds: ArraySchema(String4) },
15906
16067
  success: ArraySchema(String4),
15907
16068
  error: RunnerRpcError
15908
- }), make5("KnownEvidence", {
16069
+ }), make6("KnownEvidence", {
15909
16070
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
15910
16071
  success: ArraySchema(Struct({
15911
16072
  tree: String4,
@@ -15917,24 +16078,24 @@ class RunnerReplicaRpcs extends make6(make5("Claim", {
15917
16078
  })).middleware(RunnerAuthentication) {
15918
16079
  }
15919
16080
 
15920
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
16081
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
15921
16082
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
15922
16083
  error: RunnerRpcError
15923
- }), make5("DeferredDone", {
16084
+ }), make6("DeferredDone", {
15924
16085
  payload: { lease: ProgramLease, name: String4, exit: Json },
15925
16086
  error: RunnerRpcError
15926
- }), make5("ScheduleClock", {
16087
+ }), make6("ScheduleClock", {
15927
16088
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
15928
16089
  error: RunnerRpcError
15929
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16090
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
15930
16091
  }
15931
- var RunHostStep = make5("RunHostStep", {
16092
+ var RunHostStep = make6("RunHostStep", {
15932
16093
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
15933
16094
  success: Json,
15934
16095
  error: RunnerRpcError
15935
16096
  });
15936
16097
 
15937
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16098
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
15938
16099
  payload: {
15939
16100
  lease: ProgramLease,
15940
16101
  step: String4,
@@ -15954,7 +16115,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
15954
16115
  },
15955
16116
  success: Struct({ questionId: String4 }),
15956
16117
  error: RunnerRpcError
15957
- }), make5("StartAgentStep", {
16118
+ }), make6("StartAgentStep", {
15958
16119
  payload: {
15959
16120
  lease: ProgramLease,
15960
16121
  step: String4,
@@ -15971,7 +16132,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
15971
16132
  },
15972
16133
  success: Struct({ stepAttemptId: String4 }),
15973
16134
  error: RunnerRpcError
15974
- }), make5("StartVerification", {
16135
+ }), make6("StartVerification", {
15975
16136
  payload: {
15976
16137
  lease: ProgramLease,
15977
16138
  step: String4,
@@ -15995,7 +16156,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
15995
16156
  },
15996
16157
  success: Struct({ verificationId: String4 }),
15997
16158
  error: RunnerRpcError
15998
- }), make5("AwaitEvent", {
16159
+ }), make6("AwaitEvent", {
15999
16160
  payload: {
16000
16161
  lease: ProgramLease,
16001
16162
  step: String4,
@@ -16011,7 +16172,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16011
16172
  })))
16012
16173
  },
16013
16174
  error: RunnerRpcError
16014
- }), make5("ClaimResource", {
16175
+ }), make6("ClaimResource", {
16015
16176
  payload: {
16016
16177
  lease: ProgramLease,
16017
16178
  step: String4,
@@ -16022,7 +16183,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16022
16183
  claims: optionalKey(ArraySchema(String4))
16023
16184
  },
16024
16185
  error: RunnerRpcError
16025
- }), make5("AdmitChild", {
16186
+ }), make6("AdmitChild", {
16026
16187
  payload: {
16027
16188
  lease: ProgramLease,
16028
16189
  step: String4,
@@ -16033,7 +16194,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16033
16194
  },
16034
16195
  success: Struct({ runId: String4 }),
16035
16196
  error: RunnerRpcError
16036
- }), make5("AdmitChildById", {
16197
+ }), make6("AdmitChildById", {
16037
16198
  payload: {
16038
16199
  lease: ProgramLease,
16039
16200
  step: String4,
@@ -16044,18 +16205,18 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16044
16205
  },
16045
16206
  success: Struct({ runId: String4 }),
16046
16207
  error: RunnerRpcError
16047
- }), make5("CallableLoops", {
16208
+ }), make6("CallableLoops", {
16048
16209
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16049
16210
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16050
16211
  error: RunnerRpcError
16051
- }), make5("StopLaunches", {
16212
+ }), make6("StopLaunches", {
16052
16213
  payload: {
16053
16214
  lease: ProgramLease,
16054
16215
  step: String4,
16055
16216
  deferredNames: ArraySchema(String4)
16056
16217
  },
16057
16218
  error: RunnerRpcError
16058
- }), make5("StoreArtifact", {
16219
+ }), make6("StoreArtifact", {
16059
16220
  payload: {
16060
16221
  lease: ProgramLease,
16061
16222
  step: String4,
@@ -16067,7 +16228,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16067
16228
  },
16068
16229
  success: Struct({ artifactId: String4 }),
16069
16230
  error: RunnerRpcError
16070
- }), make5("RecordNote", {
16231
+ }), make6("RecordNote", {
16071
16232
  payload: {
16072
16233
  lease: ProgramLease,
16073
16234
  step: String4,
@@ -16076,7 +16237,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16076
16237
  kind: optional(Literals(["note", "blocker"]))
16077
16238
  },
16078
16239
  error: RunnerRpcError
16079
- }), make5("PerformHostEffect", {
16240
+ }), make6("PerformHostEffect", {
16080
16241
  payload: {
16081
16242
  lease: ProgramLease,
16082
16243
  step: String4,
@@ -16105,7 +16266,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16105
16266
  },
16106
16267
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16107
16268
  error: RunnerRpcError
16108
- }), make5("AlertTask", {
16269
+ }), make6("AlertTask", {
16109
16270
  payload: {
16110
16271
  lease: ProgramLease,
16111
16272
  step: String4,
@@ -16122,7 +16283,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16122
16283
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16123
16284
  }),
16124
16285
  error: RunnerRpcError
16125
- }), make5("ReadTranscripts", {
16286
+ }), make6("ReadTranscripts", {
16126
16287
  payload: {
16127
16288
  lease: ProgramLease,
16128
16289
  step: String4,
@@ -16157,7 +16318,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16157
16318
  })))
16158
16319
  }),
16159
16320
  error: RunnerRpcError
16160
- }), make5("PipelineStatus", {
16321
+ }), make6("PipelineStatus", {
16161
16322
  payload: {
16162
16323
  lease: ProgramLease,
16163
16324
  step: String4,
@@ -16197,11 +16358,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16197
16358
  }))
16198
16359
  }),
16199
16360
  error: RunnerRpcError
16200
- }), make5("ReportPipeline", {
16361
+ }), make6("ReportPipeline", {
16201
16362
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16202
16363
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16203
16364
  error: RunnerRpcError
16204
- }), make5("ReviewThreads", {
16365
+ }), make6("ReviewThreads", {
16205
16366
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16206
16367
  success: Struct({
16207
16368
  threads: ArraySchema(Struct({
@@ -16213,7 +16374,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16213
16374
  }))
16214
16375
  }),
16215
16376
  error: RunnerRpcError
16216
- }), make5("OpenChangeRequests", {
16377
+ }), make6("OpenChangeRequests", {
16217
16378
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16218
16379
  success: Struct({
16219
16380
  changeRequests: ArraySchema(Struct({
@@ -16227,7 +16388,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16227
16388
  }))
16228
16389
  }),
16229
16390
  error: RunnerRpcError
16230
- }), make5("OwnChangeRequests", {
16391
+ }), make6("OwnChangeRequests", {
16231
16392
  payload: { lease: ProgramLease, step: String4 },
16232
16393
  success: Struct({
16233
16394
  changeRequests: ArraySchema(Struct({
@@ -16240,7 +16401,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16240
16401
  }))
16241
16402
  }),
16242
16403
  error: RunnerRpcError
16243
- }), make5("Propose", {
16404
+ }), make6("Propose", {
16244
16405
  payload: {
16245
16406
  lease: ProgramLease,
16246
16407
  step: String4,
@@ -16269,7 +16430,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16269
16430
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16270
16431
  }),
16271
16432
  error: RunnerRpcError
16272
- }), make5("ReadProject", {
16433
+ }), make6("ReadProject", {
16273
16434
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16274
16435
  success: Struct({
16275
16436
  project: Struct({ id: String4, name: String4 }),
@@ -16292,7 +16453,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16292
16453
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16293
16454
  }),
16294
16455
  error: RunnerRpcError
16295
- }), make5("DraftUpdate", {
16456
+ }), make6("DraftUpdate", {
16296
16457
  payload: {
16297
16458
  lease: ProgramLease,
16298
16459
  step: String4,
@@ -16307,7 +16468,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16307
16468
  },
16308
16469
  success: Struct({ id: String4 }),
16309
16470
  error: RunnerRpcError
16310
- }), make5("CreatePlanTasks", {
16471
+ }), make6("CreatePlanTasks", {
16311
16472
  payload: {
16312
16473
  lease: ProgramLease,
16313
16474
  projectId: optionalKey(String4),
@@ -16328,15 +16489,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16328
16489
  },
16329
16490
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16330
16491
  error: RunnerRpcError
16331
- }), make5("IntegrationBranch", {
16492
+ }), make6("IntegrationBranch", {
16332
16493
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16333
16494
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16334
16495
  error: RunnerRpcError
16335
- }), make5("DeliveryBase", {
16496
+ }), make6("DeliveryBase", {
16336
16497
  payload: { lease: ProgramLease },
16337
16498
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16338
16499
  error: RunnerRpcError
16339
- }), make5("Branch", {
16500
+ }), make6("Branch", {
16340
16501
  payload: {
16341
16502
  lease: ProgramLease,
16342
16503
  branch: optionalKey(String4),
@@ -16351,7 +16512,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16351
16512
  created: Boolean2
16352
16513
  }),
16353
16514
  error: RunnerRpcError
16354
- }), make5("BranchChangeRequest", {
16515
+ }), make6("BranchChangeRequest", {
16355
16516
  payload: {
16356
16517
  lease: ProgramLease,
16357
16518
  step: String4,
@@ -16374,7 +16535,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16374
16535
  Struct({ status: Literal("elsewhere"), team: String4 })
16375
16536
  ]),
16376
16537
  error: RunnerRpcError
16377
- }), make5("MergeChangeRequest", {
16538
+ }), make6("MergeChangeRequest", {
16378
16539
  payload: {
16379
16540
  lease: ProgramLease,
16380
16541
  step: String4,
@@ -16392,7 +16553,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16392
16553
  Struct({ status: Literal("moved"), head: String4 })
16393
16554
  ]),
16394
16555
  error: RunnerRpcError
16395
- }), make5("ApproveChangeRequest", {
16556
+ }), make6("ApproveChangeRequest", {
16396
16557
  payload: {
16397
16558
  lease: ProgramLease,
16398
16559
  step: String4,
@@ -16408,7 +16569,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16408
16569
  Struct({ approved: Literal(false), reason: String4 })
16409
16570
  ]),
16410
16571
  error: RunnerRpcError
16411
- }), make5("CloseChangeRequest", {
16572
+ }), make6("CloseChangeRequest", {
16412
16573
  payload: {
16413
16574
  lease: ProgramLease,
16414
16575
  step: String4,
@@ -16418,7 +16579,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16418
16579
  },
16419
16580
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16420
16581
  error: RunnerRpcError
16421
- }), make5("RerunPipeline", {
16582
+ }), make6("RerunPipeline", {
16422
16583
  payload: {
16423
16584
  lease: ProgramLease,
16424
16585
  step: String4,
@@ -16428,7 +16589,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16428
16589
  },
16429
16590
  success: Struct({ head: String4, pipelines: Int }),
16430
16591
  error: RunnerRpcError
16431
- }), make5("PublishRelease", {
16592
+ }), make6("PublishRelease", {
16432
16593
  payload: {
16433
16594
  lease: ProgramLease,
16434
16595
  step: String4,
@@ -16442,7 +16603,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16442
16603
  },
16443
16604
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16444
16605
  error: RunnerRpcError
16445
- }), make5("RecordDeploy", {
16606
+ }), make6("RecordDeploy", {
16446
16607
  payload: {
16447
16608
  lease: ProgramLease,
16448
16609
  step: String4,
@@ -16454,7 +16615,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16454
16615
  },
16455
16616
  success: Deploy,
16456
16617
  error: RunnerRpcError
16457
- }), make5("DeployTarget", {
16618
+ }), make6("DeployTarget", {
16458
16619
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16459
16620
  success: Struct({
16460
16621
  target: String4,
@@ -16462,14 +16623,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16462
16623
  order: optionalKey(ArraySchema(String4))
16463
16624
  }),
16464
16625
  error: RunnerRpcError
16465
- }), RunHostStep, make5("ProgramSecrets", {
16626
+ }), RunHostStep, make6("ProgramSecrets", {
16466
16627
  payload: { lease: ProgramLease },
16467
16628
  success: Record(String4, String4),
16468
16629
  error: RunnerRpcError
16469
16630
  })).middleware(RunnerAuthentication) {
16470
16631
  }
16471
16632
 
16472
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16633
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16473
16634
  payload: {
16474
16635
  lease: ProgramLease,
16475
16636
  step: String4,
@@ -16481,11 +16642,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16481
16642
  },
16482
16643
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16483
16644
  error: Union([RunnerRpcError, RunFileRefused])
16484
- }), make5("RunFileParts", {
16645
+ }), make6("RunFileParts", {
16485
16646
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16486
16647
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16487
16648
  error: RunnerRpcError
16488
- }), make5("CompleteRunFile", {
16649
+ }), make6("CompleteRunFile", {
16489
16650
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16490
16651
  success: RunFileRecord,
16491
16652
  error: RunnerRpcError
@@ -16495,7 +16656,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16495
16656
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16496
16657
 
16497
16658
  // apps/cli/src/oauth.ts
16498
- var Scope = "openid profile email offline_access kitman:cli";
16659
+ var Scope2 = "openid profile email offline_access kitman:cli";
16499
16660
  var CallbackPath = "/auth/callback";
16500
16661
 
16501
16662
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16514,7 +16675,7 @@ function buildAuthorizeUrl(input) {
16514
16675
  url.searchParams.set("response_type", "code");
16515
16676
  url.searchParams.set("client_id", input.clientId);
16516
16677
  url.searchParams.set("redirect_uri", input.redirectUri);
16517
- url.searchParams.set("scope", Scope);
16678
+ url.searchParams.set("scope", Scope2);
16518
16679
  url.searchParams.set("code_challenge", input.codeChallenge);
16519
16680
  url.searchParams.set("code_challenge_method", "S256");
16520
16681
  url.searchParams.set("state", input.state);
@@ -17230,7 +17391,7 @@ var spawnedTransport = (env) => gen(function* () {
17230
17391
  const spawner = yield* ChildProcessSpawner;
17231
17392
  const input = yield* unbounded2();
17232
17393
  const encoder = new TextEncoder;
17233
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17394
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17234
17395
  extendEnv: false,
17235
17396
  env,
17236
17397
  stdin: fromQueue(input),
@@ -17261,7 +17422,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17261
17422
  const spawner = yield* ChildProcessSpawner;
17262
17423
  const env = coreEnv(options);
17263
17424
  const run = (args) => gen(function* () {
17264
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17425
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17265
17426
  const [stdout, stderr, exitCode] = yield* all3([
17266
17427
  mkString(decodeText(handle.stdout)),
17267
17428
  mkString(decodeText(handle.stderr)),
@@ -17287,7 +17448,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17287
17448
  }
17288
17449
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17289
17450
  const spawner = yield* ChildProcessSpawner;
17290
- const handle = yield* spawner.spawn(make2(command, args, {
17451
+ const handle = yield* spawner.spawn(make3(command, args, {
17291
17452
  stdin: "ignore",
17292
17453
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17293
17454
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17313,7 +17474,7 @@ var shellOutputTailChars2 = 64 * 1024;
17313
17474
  var runProcess2 = (argv, options) => gen(function* () {
17314
17475
  const spawner = yield* ChildProcessSpawner;
17315
17476
  const [command, ...args] = argv;
17316
- const handle = yield* spawner.spawn(make2(command, args, {
17477
+ const handle = yield* spawner.spawn(make3(command, args, {
17317
17478
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17318
17479
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17319
17480
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -17834,4 +17995,4 @@ function serviceChecks(declaration) {
17834
17995
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
17835
17996
  }
17836
17997
 
17837
- export { Clock, currentTimeMillis, WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make4, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make5, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make6, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };
17998
+ export { WebCrypto, SecureRandom, layerWebCrypto, makeUnsafe, formatIso, empty, fromInput, merge, runMain, layer, layer2, Stdio, Terminal, layer3, error, log, toDate, parseDate, toIso, currentDate, wallClockMillis, waitingOnWords, queueWords, scanDurableSurface, redactResponseSurface, redactCredentials, redactedOutputTail, ReleaseChannels, DefaultReleaseChannel, newerKitmanVersion, releaseChannelOffers, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, RepoBindingProvider, findForbiddenRepoBindingSecretPath, releaseVersion, ReleaseScope, isBranchName, baseBranchLayerWords, repositoryKey, loopInputFields, InputSourceLayers, InputSource, inputSourceWords, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, tokensSpent, tokenCountWords, endsFailing, outlineText, anyFailure, goesOn, outlineMermaid, runOutlineText, isTestReportName, testDigest, failedTestOfLine, printedNotReported, failedTestsOf, testOutcomes, checkTests, loopSafeTextMaxLength, recommendedDefault, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, DeployTargetName, DeployRef, DeployStatus, runsDeployedTag, Deploy, DeployTargetRunning, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, ClaimResult, mergeTurnResource, createId, digestSha256, digestSha512, digestWith, sha256Hasher, AgentEvent, raw, make5, get, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, stepFallbackWords, runTicketsPayload, runTicketResult, ticketOutcomeLabels, runGraphLayout, KitDigest, defaultKitName, LoopCapabilities, LoopManifest, CallableLoop, AgentDeclaration, StepManifest, KitDeclarations, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, runnerReleaseChannelPath, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, antigravityPlugins, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices, serviceChecks };