@kitman-sh/cli 0.50.1 → 0.52.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-8r9k7pqk.js → chunk-2nq80r46.js} +59 -19
  2. package/dist/{chunk-k5cqc0cs.js → chunk-2t1hcdeq.js} +19 -21
  3. package/dist/{chunk-apv9h5tz.js → chunk-5yygjn0k.js} +1 -1
  4. package/dist/{chunk-g3c1vesf.js → chunk-84qb67e2.js} +1 -1
  5. package/dist/{chunk-rr0rem5d.js → chunk-9hde8p6b.js} +6 -6
  6. package/dist/{chunk-mtrhqr16.js → chunk-a40yta1r.js} +3 -3
  7. package/dist/{chunk-h3wes7wf.js → chunk-axfp5tzk.js} +7 -7
  8. package/dist/{chunk-qfwhsqej.js → chunk-bhz25x76.js} +3 -3
  9. package/dist/{chunk-hyaq30ne.js → chunk-bj0zchck.js} +179 -188
  10. package/dist/{chunk-watq46xe.js → chunk-chbdcf34.js} +9 -11
  11. package/dist/{chunk-7y1w0dhd.js → chunk-eqh0h088.js} +25 -27
  12. package/dist/{chunk-ecweehc6.js → chunk-h5ydhdhx.js} +23 -23
  13. package/dist/{chunk-q8m2ygyt.js → chunk-kt26vpwf.js} +9 -9
  14. package/dist/{chunk-brbym443.js → chunk-mmt6xq48.js} +2 -2
  15. package/dist/{chunk-v96hm634.js → chunk-my9db578.js} +4 -4
  16. package/dist/{chunk-72ht3484.js → chunk-pppryg54.js} +6 -6
  17. package/dist/{chunk-ag79vvjy.js → chunk-q2z8rct0.js} +4 -4
  18. package/dist/{chunk-s6z4sdkw.js → chunk-qjfzcrv5.js} +4 -4
  19. package/dist/{chunk-s8ws5fqj.js → chunk-qsbq9gvr.js} +350 -185
  20. package/dist/{chunk-n00cpb86.js → chunk-tfznw549.js} +2 -2
  21. package/dist/{chunk-k1fdsn2c.js → chunk-tqspx38s.js} +1 -1
  22. package/dist/{chunk-9jz94mb7.js → chunk-trtgab3h.js} +3 -3
  23. package/dist/{chunk-9vdy85kg.js → chunk-wb04fv2s.js} +34 -34
  24. package/dist/{chunk-5tgpa02q.js → chunk-wxg9k10v.js} +1 -1
  25. package/dist/{chunk-bk28dr40.js → chunk-xbqd3kqc.js} +14 -14
  26. package/dist/{chunk-n381rqax.js → chunk-zb4t1yrt.js} +71 -257
  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,
@@ -87,7 +89,9 @@ import {
87
89
  ConsoleRef,
88
90
  succeed3,
89
91
  fail4,
92
+ void_2,
90
93
  isSuccess2,
94
+ isFailure2,
91
95
  makeUnsafe5,
92
96
  make15,
93
97
  _await,
@@ -97,8 +101,12 @@ import {
97
101
  succeed4,
98
102
  doneUnsafe,
99
103
  TracerTimingEnabled,
104
+ Scope,
105
+ makeUnsafe6,
100
106
  provide,
107
+ addFinalizerExit,
101
108
  addFinalizer,
109
+ close,
102
110
  succeed5,
103
111
  effect,
104
112
  effectContext,
@@ -150,6 +158,7 @@ import {
150
158
  tapCause,
151
159
  retry,
152
160
  ignore,
161
+ ignoreCause,
153
162
  orElseSucceed,
154
163
  timeout,
155
164
  timeoutOrElse,
@@ -161,6 +170,7 @@ import {
161
170
  context,
162
171
  contextWith,
163
172
  provide3,
173
+ provideContext2,
164
174
  serviceOption,
165
175
  updateContext,
166
176
  provideService,
@@ -171,6 +181,7 @@ import {
171
181
  addFinalizer2,
172
182
  ensuring2,
173
183
  onError,
184
+ onExit,
174
185
  cached,
175
186
  interrupt3,
176
187
  interruptible,
@@ -182,6 +193,7 @@ import {
182
193
  withParentSpan,
183
194
  forkScoped,
184
195
  runFork,
196
+ runForkWith,
185
197
  runPromise,
186
198
  runPromiseWith,
187
199
  runSync,
@@ -191,12 +203,7 @@ import {
191
203
  clockWith,
192
204
  logError,
193
205
  effectify,
194
- toNumber,
195
- bytes,
196
206
  decode,
197
- isRedacted,
198
- make16,
199
- value,
200
207
  defaultParseOptions,
201
208
  omit,
202
209
  map10,
@@ -207,7 +214,7 @@ import {
207
214
  decodeUnknownExit,
208
215
  decodeUnknownOption,
209
216
  decodeOption,
210
- make17,
217
+ make16,
211
218
  isSchema,
212
219
  optionalKey,
213
220
  optional,
@@ -268,16 +275,23 @@ import {
268
275
  decodeJsonStringOption,
269
276
  encodeJsonStringSync,
270
277
  encodePrettyJsonString
271
- } from "./chunk-n381rqax.js";
278
+ } from "./chunk-zb4t1yrt.js";
272
279
  import {
273
280
  map,
274
281
  makeEquivalence,
282
+ Clock,
283
+ currentTimeMillis,
284
+ bytes,
285
+ join,
286
+ interrupt,
287
+ getCurrent,
288
+ runIn,
275
289
  BadArgument,
276
290
  systemError,
277
291
  badArgument,
278
292
  makeUnsafe2,
279
- make7,
280
293
  make8,
294
+ make9,
281
295
  sliding,
282
296
  unbounded2,
283
297
  offer,
@@ -293,8 +307,6 @@ import {
293
307
  isSink,
294
308
  fromChannel,
295
309
  drain,
296
- make9,
297
- get3,
298
310
  isStream,
299
311
  fromChannel2,
300
312
  callback,
@@ -335,20 +347,21 @@ import {
335
347
  optionalEnv,
336
348
  harnessesUnsupportedInSrt2,
337
349
  harnessesUnsupportedInDocker2
338
- } from "./chunk-hyaq30ne.js";
350
+ } from "./chunk-bj0zchck.js";
339
351
  import {
340
- Clock,
341
- currentTimeMillis,
352
+ isRedacted,
353
+ make,
354
+ value,
342
355
  ExitCode,
343
356
  ProcessId,
344
357
  makeHandle,
345
- make,
358
+ make2,
346
359
  ChildProcessSpawner,
347
360
  display,
348
- make2,
361
+ make3,
349
362
  parseFdName,
350
363
  fdName
351
- } from "./chunk-8r9k7pqk.js";
364
+ } from "./chunk-2nq80r46.js";
352
365
  import {
353
366
  isDateTime,
354
367
  Numeric,
@@ -361,7 +374,8 @@ import {
361
374
  SecretScope,
362
375
  SecretHosts,
363
376
  isSecretReference
364
- } from "./chunk-5tgpa02q.js";
377
+ } from "./chunk-wxg9k10v.js";
378
+
365
379
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
366
380
  var makeEquivalence3 = Tuple;
367
381
 
@@ -499,7 +513,7 @@ var fromDateUnsafe = (date) => {
499
513
  }
500
514
  return makeUtc(epochMillis);
501
515
  };
502
- var makeUnsafe6 = (input) => {
516
+ var makeUnsafe7 = (input) => {
503
517
  if (isDateTime2(input)) {
504
518
  return input;
505
519
  } else if (input instanceof Date) {
@@ -519,7 +533,7 @@ var makeUnsafe6 = (input) => {
519
533
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
520
534
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
521
535
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
522
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
536
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
523
537
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
524
538
  var nowUnsafe = () => makeUtc(Date.now());
525
539
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -626,7 +640,7 @@ class Metric$ {
626
640
  }
627
641
  hook(context) {
628
642
  const key = this.key(context);
629
- const registry = get4(context, MetricRegistry);
643
+ const registry = get3(context, MetricRegistry);
630
644
  let metadata = registry.get(key);
631
645
  if (isUndefined(metadata)) {
632
646
  metadata = this.metadata(this.createHooks());
@@ -635,11 +649,11 @@ class Metric$ {
635
649
  return metadata.hooks;
636
650
  }
637
651
  removeUnsafe(context) {
638
- get4(context, MetricRegistry).delete(this.key(context));
652
+ get3(context, MetricRegistry).delete(this.key(context));
639
653
  }
640
654
  registerUnsafe(context, hooks) {
641
655
  const key = this.key(context);
642
- const registry = get4(context, MetricRegistry);
656
+ const registry = get3(context, MetricRegistry);
643
657
  const metadata = this.metadata({
644
658
  get: hooks.get,
645
659
  update: constVoid,
@@ -655,7 +669,7 @@ class Metric$ {
655
669
  };
656
670
  }
657
671
  key(context) {
658
- const extraAttributes = get4(context, CurrentMetricAttributes);
672
+ const extraAttributes = get3(context, CurrentMetricAttributes);
659
673
  if (extraAttributes !== this.#extraAttributes) {
660
674
  this.#extraAttributes = extraAttributes;
661
675
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -898,9 +912,160 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
898
912
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
899
913
  var runMain = runMain2;
900
914
 
915
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
916
+ var BigInt2 = globalThis.BigInt;
917
+ var toNumber = (b) => {
918
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
919
+ return none();
920
+ }
921
+ return some(Number(b));
922
+ };
923
+
924
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
925
+ var TypeId3 = "~effect/RcRef";
926
+ var stateEmpty = {
927
+ _tag: "Empty"
928
+ };
929
+ var stateClosed = {
930
+ _tag: "Closed"
931
+ };
932
+ var variance = {
933
+ _A: identity,
934
+ _E: identity
935
+ };
936
+
937
+ class RcRefImpl {
938
+ [TypeId3] = variance;
939
+ pipe() {
940
+ return pipeArguments(this, arguments);
941
+ }
942
+ state = stateEmpty;
943
+ acquire;
944
+ context;
945
+ scope;
946
+ idleTimeToLive;
947
+ constructor(acquire, context, scope, idleTimeToLive) {
948
+ this.acquire = acquire;
949
+ this.context = context;
950
+ this.scope = scope;
951
+ this.idleTimeToLive = idleTimeToLive;
952
+ }
953
+ }
954
+ var make17 = (options) => withFiber2((fiber) => {
955
+ const context = fiber.context;
956
+ const scope = get3(context, Scope);
957
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
958
+ return as(addFinalizerExit(scope, () => {
959
+ const state = ref.state;
960
+ ref.state = stateClosed;
961
+ if (state._tag === "Acquired")
962
+ return close(state.scope, void_2);
963
+ if (state._tag === "Acquiring")
964
+ return interrupt(state.fiber);
965
+ return void_3;
966
+ }), ref);
967
+ });
968
+ var getState = (self, restore) => {
969
+ switch (self.state._tag) {
970
+ case "Closed": {
971
+ return interrupt3;
972
+ }
973
+ case "Acquired": {
974
+ const state = self.state;
975
+ state.refCount++;
976
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
977
+ }
978
+ case "Acquiring": {
979
+ const state = self.state;
980
+ state.awaiters++;
981
+ return awaitAcquiring(self, state, restore);
982
+ }
983
+ case "Empty": {
984
+ const acquiring = {
985
+ _tag: "Acquiring",
986
+ fiber: undefined,
987
+ awaiters: 1,
988
+ acquired: undefined
989
+ };
990
+ self.state = acquiring;
991
+ const scope = makeUnsafe6();
992
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
993
+ if (self.state !== acquiring) {
994
+ return interrupt3;
995
+ }
996
+ const state = {
997
+ _tag: "Acquired",
998
+ value,
999
+ scope,
1000
+ fiber: undefined,
1001
+ refCount: acquiring.awaiters,
1002
+ invalidated: false
1003
+ };
1004
+ self.state = state;
1005
+ acquiring.acquired = state;
1006
+ return succeed6(state);
1007
+ }), onExit((exit) => {
1008
+ if (isSuccess2(exit))
1009
+ return void_3;
1010
+ if (self.state === acquiring)
1011
+ self.state = stateEmpty;
1012
+ return close(scope, exit);
1013
+ }));
1014
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1015
+ return awaitAcquiring(self, acquiring, restore);
1016
+ }
1017
+ }
1018
+ };
1019
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1020
+ const acquired = acquiring.acquired;
1021
+ if (acquired !== undefined) {
1022
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1023
+ }
1024
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1025
+ return void_3;
1026
+ self.state = stateEmpty;
1027
+ return interrupt(acquiring.fiber);
1028
+ });
1029
+ var get4 = (self_) => {
1030
+ const self = self_;
1031
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1032
+ };
1033
+ var release = (self, state) => {
1034
+ state.refCount--;
1035
+ if (state.refCount > 0) {
1036
+ return void_3;
1037
+ }
1038
+ const idleTimeToLive = self.idleTimeToLive;
1039
+ if (idleTimeToLive === undefined || state.invalidated) {
1040
+ if (self.state === state) {
1041
+ self.state = stateEmpty;
1042
+ }
1043
+ return close(state.scope, void_2);
1044
+ } else if (!isFinite(idleTimeToLive)) {
1045
+ return void_3;
1046
+ }
1047
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1048
+ if (self.state === state && state.refCount === 0) {
1049
+ self.state = stateEmpty;
1050
+ return ignoreCause(close(state.scope, void_2), {
1051
+ log: "Unhandled",
1052
+ message: "Unhandled error in RcRef finalizer"
1053
+ });
1054
+ }
1055
+ return void_3;
1056
+ })).pipe(ensuring2(sync2(() => {
1057
+ state.fiber = undefined;
1058
+ })), runForkWith(self.context), runIn(self.scope));
1059
+ return void_3;
1060
+ };
1061
+
1062
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1063
+ var make18 = make17;
1064
+ var get5 = get4;
1065
+
901
1066
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
902
- var makeUnsafe = makeUnsafe6;
903
- var make18 = make3;
1067
+ var makeUnsafe = makeUnsafe7;
1068
+ var make19 = make4;
904
1069
  var now2 = now;
905
1070
  var nowUnsafe2 = nowUnsafe;
906
1071
  var toDateUtc2 = toDateUtc;
@@ -1115,7 +1280,7 @@ var readableToPullUnsafe = (options) => {
1115
1280
  const readable = options.readable;
1116
1281
  const chunkSize = options.chunkSize ?? 4096;
1117
1282
  const closeOnDone = options.closeOnDone ?? true;
1118
- const exit = options.exit ?? make7(undefined);
1283
+ const exit = options.exit ?? make8(undefined);
1119
1284
  const latch = options.latch ?? makeUnsafe2(false);
1120
1285
  function onReadable() {
1121
1286
  latch.openUnsafe();
@@ -1219,7 +1384,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1219
1384
  windowsHide: true
1220
1385
  }, onExit);
1221
1386
  };
1222
- var make19 = /* @__PURE__ */ gen(function* () {
1387
+ var make20 = /* @__PURE__ */ gen(function* () {
1223
1388
  const fs = yield* FileSystem;
1224
1389
  const path = yield* Path;
1225
1390
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1679,7 +1844,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1679
1844
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1680
1845
  const toOption = options.to ?? "stdin";
1681
1846
  if (toOption === "stdin") {
1682
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1847
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1683
1848
  ...command.options,
1684
1849
  stdin: {
1685
1850
  ...stdinConfig,
@@ -1699,7 +1864,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1699
1864
  type: "input",
1700
1865
  stream: sourceStream
1701
1866
  };
1702
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1867
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1703
1868
  ...command.options,
1704
1869
  additionalFds: {
1705
1870
  ...existingFds,
@@ -1707,7 +1872,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1707
1872
  }
1708
1873
  })));
1709
1874
  } else {
1710
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1875
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1711
1876
  ...command.options,
1712
1877
  stdin: {
1713
1878
  ...stdinConfig,
@@ -1746,9 +1911,9 @@ var make19 = /* @__PURE__ */ gen(function* () {
1746
1911
  }
1747
1912
  }
1748
1913
  });
1749
- return make(spawnCommand);
1914
+ return make2(spawnCommand);
1750
1915
  });
1751
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1916
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1752
1917
  var flattenCommand = (command) => {
1753
1918
  const commands = [];
1754
1919
  const pipeOptions = [];
@@ -2309,10 +2474,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2309
2474
  var layer2 = layer7;
2310
2475
 
2311
2476
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2312
- var TypeId3 = "~effect/Stdio";
2313
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2314
- var make20 = (options) => ({
2315
- [TypeId3]: TypeId3,
2477
+ var TypeId4 = "~effect/Stdio";
2478
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2479
+ var make21 = (options) => ({
2480
+ [TypeId4]: TypeId4,
2316
2481
  stdinIsTerminal: succeed6(false),
2317
2482
  stdoutIsTerminal: succeed6(false),
2318
2483
  stderrIsTerminal: succeed6(false),
@@ -2320,7 +2485,7 @@ var make20 = (options) => ({
2320
2485
  });
2321
2486
 
2322
2487
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2323
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2488
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2324
2489
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2325
2490
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2326
2491
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2520,7 +2685,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2520
2685
  const uuid = bytes(randomBytes(16));
2521
2686
  return format === "bytes" ? uuid : stringify(uuid);
2522
2687
  };
2523
- var make21 = (randomBytes) => {
2688
+ var make22 = (randomBytes) => {
2524
2689
  const randomBytesChecked = (size) => {
2525
2690
  checkSize(size);
2526
2691
  return randomBytes(size);
@@ -2554,7 +2719,7 @@ var fillRandom = (crypto2, size) => {
2554
2719
  }
2555
2720
  return bytes;
2556
2721
  };
2557
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2722
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2558
2723
  var randomBytesUnsafe = (size) => {
2559
2724
  checkSize(size);
2560
2725
  return fillRandom(globalThis.crypto, size);
@@ -2562,10 +2727,10 @@ var randomBytesUnsafe = (size) => {
2562
2727
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2563
2728
 
2564
2729
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2565
- var TypeId4 = "~effect/http/Cookies";
2730
+ var TypeId5 = "~effect/http/Cookies";
2566
2731
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2567
2732
  var Proto2 = {
2568
- [TypeId4]: TypeId4,
2733
+ [TypeId5]: TypeId5,
2569
2734
  ...BaseProto,
2570
2735
  toJSON() {
2571
2736
  return {
@@ -2744,14 +2909,14 @@ var tryDecodeURIComponent = (str) => {
2744
2909
  };
2745
2910
 
2746
2911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2747
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2912
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2748
2913
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2749
- [TypeId5]: {
2750
- value: TypeId5
2914
+ [TypeId6]: {
2915
+ value: TypeId6
2751
2916
  },
2752
2917
  [symbolRedactable]: {
2753
2918
  value(context) {
2754
- return redact2(this, get4(context, CurrentRedactedNames));
2919
+ return redact2(this, get3(context, CurrentRedactedNames));
2755
2920
  }
2756
2921
  },
2757
2922
  toJSON: {
@@ -2776,7 +2941,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2776
2941
  value: BaseProto[NodeInspectSymbol]
2777
2942
  }
2778
2943
  });
2779
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2944
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2780
2945
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2781
2946
  var empty = /* @__PURE__ */ Object.create(Proto3);
2782
2947
  var fromInput = (input) => {
@@ -2801,21 +2966,21 @@ var fromInput = (input) => {
2801
2966
  };
2802
2967
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2803
2968
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2804
- const out = make22(self);
2969
+ const out = make23(self);
2805
2970
  out[key.toLowerCase()] = value;
2806
2971
  return out;
2807
2972
  });
2808
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2973
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2809
2974
  ...self,
2810
2975
  ...fromInput(headers)
2811
2976
  }));
2812
2977
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2813
- const out = make22(self);
2978
+ const out = make23(self);
2814
2979
  Object.assign(out, headers);
2815
2980
  return out;
2816
2981
  });
2817
2982
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2818
- const out = make22(self);
2983
+ const out = make23(self);
2819
2984
  delete out[key.toLowerCase()];
2820
2985
  return out;
2821
2986
  });
@@ -2827,12 +2992,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2827
2992
  if (typeof key === "string") {
2828
2993
  const k = key.toLowerCase();
2829
2994
  if (k in self) {
2830
- out[k] = make16(self[k]);
2995
+ out[k] = make(self[k]);
2831
2996
  }
2832
2997
  } else {
2833
2998
  for (const name in self) {
2834
2999
  if (name.search(key) !== -1) {
2835
- out[name] = make16(self[name]);
3000
+ out[name] = make(self[name]);
2836
3001
  }
2837
3002
  }
2838
3003
  }
@@ -2872,18 +3037,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2872
3037
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2873
3038
 
2874
3039
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2875
- var TypeId6 = "~effect/http/UrlParams";
2876
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3040
+ var TypeId7 = "~effect/http/UrlParams";
3041
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2877
3042
  var Proto4 = {
2878
3043
  ...PipeInspectableProto,
2879
- [TypeId6]: TypeId6,
3044
+ [TypeId7]: TypeId7,
2880
3045
  [Symbol.iterator]() {
2881
3046
  return this.params[Symbol.iterator]();
2882
3047
  },
2883
3048
  [symbolRedactable](context) {
2884
3049
  return {
2885
3050
  _id: "UrlParams",
2886
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3051
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2887
3052
  };
2888
3053
  },
2889
3054
  toJSON() {
@@ -2896,7 +3061,7 @@ var Proto4 = {
2896
3061
  return array(this.params.flat());
2897
3062
  }
2898
3063
  };
2899
- var make23 = (params) => {
3064
+ var make24 = (params) => {
2900
3065
  const self = Object.create(Proto4);
2901
3066
  self.params = params;
2902
3067
  return self;
@@ -2915,7 +3080,7 @@ var fromInput2 = (input) => {
2915
3080
  out.push(parsed[i]);
2916
3081
  }
2917
3082
  }
2918
- return make23(out);
3083
+ return make24(out);
2919
3084
  };
2920
3085
  var fromInputNested = (input) => {
2921
3086
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2941,7 +3106,7 @@ var fromInputNested = (input) => {
2941
3106
  var coerce = (value) => isRedacted(value) ? value : String(value);
2942
3107
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2943
3108
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2944
- var empty2 = /* @__PURE__ */ make23([]);
3109
+ var empty2 = /* @__PURE__ */ make24([]);
2945
3110
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2946
3111
  const params = fromInput2(input).params.slice();
2947
3112
  const keys = new Set;
@@ -2953,12 +3118,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2953
3118
  continue;
2954
3119
  params.push(self.params[i]);
2955
3120
  }
2956
- return make23(params);
3121
+ return make24(params);
2957
3122
  });
2958
3123
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2959
3124
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2960
3125
  const patterns = Array.isArray(key) ? key : [key];
2961
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3126
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2962
3127
  });
2963
3128
  var isRedactedName2 = isRedactedName;
2964
3129
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3009,13 +3174,13 @@ var decodeQueryKey = (key) => {
3009
3174
  return key;
3010
3175
  }
3011
3176
  };
3012
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty4(), CurrentRedactedNames2);
3177
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty4(), CurrentRedactedNames2);
3013
3178
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3014
3179
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3015
3180
  });
3016
3181
 
3017
3182
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3018
- var TypeId7 = "~effect/Terminal";
3183
+ var TypeId8 = "~effect/Terminal";
3019
3184
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3020
3185
 
3021
3186
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3024,17 +3189,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3024
3189
  [QuitErrorTypeId] = QuitErrorTypeId;
3025
3190
  }
3026
3191
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3027
- var make24 = (impl) => Terminal.of({
3192
+ var make25 = (impl) => Terminal.of({
3028
3193
  ...impl,
3029
- [TypeId7]: TypeId7
3194
+ [TypeId8]: TypeId8
3030
3195
  });
3031
3196
 
3032
3197
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3033
3198
  import * as readline from "readline";
3034
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3199
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3035
3200
  const stdin = process.stdin;
3036
3201
  const stdout = process.stdout;
3037
- const lines = yield* make8();
3202
+ const lines = yield* make9();
3038
3203
  let inputEnded = stdin.readableEnded;
3039
3204
  let readlineActive = false;
3040
3205
  const onStdinEnd = () => {
@@ -3045,7 +3210,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3045
3210
  };
3046
3211
  stdin.once("end", onStdinEnd);
3047
3212
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3048
- const rlRef = yield* make9({
3213
+ const rlRef = yield* make18({
3049
3214
  acquire: acquireRelease(sync2(() => {
3050
3215
  const rl = readline.createInterface({
3051
3216
  input: stdin,
@@ -3084,7 +3249,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3084
3249
  if (stdin.isTTY)
3085
3250
  stdin.setRawMode(enabled);
3086
3251
  });
3087
- const rawModeRef = yield* make9({
3252
+ const rawModeRef = yield* make18({
3088
3253
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3089
3254
  idleTimeToLive: "10 millis"
3090
3255
  });
@@ -3105,7 +3270,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3105
3270
  return queue;
3106
3271
  });
3107
3272
  const readInput = gen(function* () {
3108
- const queue = yield* make8();
3273
+ const queue = yield* make9();
3109
3274
  const handleKeypress = (s, k) => {
3110
3275
  const userInput = {
3111
3276
  input: fromUndefinedOr(s),
@@ -3135,14 +3300,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3135
3300
  if (inputEnded) {
3136
3301
  handleEnd();
3137
3302
  } else {
3138
- yield* get3(rlRef);
3139
- yield* get3(rawModeRef);
3303
+ yield* get5(rlRef);
3304
+ yield* get5(rawModeRef);
3140
3305
  stdin.once("end", handleEnd);
3141
3306
  }
3142
3307
  return queue;
3143
3308
  });
3144
3309
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3145
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3310
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3146
3311
  onSome: succeed6
3147
3312
  })), mapError2(() => new QuitError({}))));
3148
3313
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3153,7 +3318,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3153
3318
  cause: err
3154
3319
  }))));
3155
3320
  }));
3156
- return make24({
3321
+ return make25({
3157
3322
  columns,
3158
3323
  rows,
3159
3324
  size,
@@ -3162,7 +3327,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3162
3327
  display
3163
3328
  });
3164
3329
  });
3165
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3330
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3166
3331
  function defaultShouldQuit(input) {
3167
3332
  const key = input.key;
3168
3333
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3189,7 +3354,7 @@ function toDate(input) {
3189
3354
  return toDateUtc2(makeUnsafe(input));
3190
3355
  }
3191
3356
  function parseDate(input) {
3192
- return getOrUndefined(map4(make18(input), toDateUtc2));
3357
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3193
3358
  }
3194
3359
  function toIso(input) {
3195
3360
  return formatIso(makeUnsafe(input));
@@ -11019,11 +11184,11 @@ var TranscriptSearchResult = Struct({
11019
11184
  total: Int
11020
11185
  });
11021
11186
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
11022
- var TypeId8 = "~effect/http/HttpBody";
11187
+ var TypeId9 = "~effect/http/HttpBody";
11023
11188
  class Proto5 {
11024
- [TypeId8];
11189
+ [TypeId9];
11025
11190
  constructor() {
11026
- this[TypeId8] = TypeId8;
11191
+ this[TypeId9] = TypeId9;
11027
11192
  }
11028
11193
  [NodeInspectSymbol]() {
11029
11194
  return this.toJSON();
@@ -11114,7 +11279,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11114
11279
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11115
11280
 
11116
11281
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11117
- var TypeId9 = "~effect/http/HttpClientError";
11282
+ var TypeId10 = "~effect/http/HttpClientError";
11118
11283
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11119
11284
  constructor(props) {
11120
11285
  if ("cause" in props.reason) {
@@ -11126,7 +11291,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11126
11291
  super(props);
11127
11292
  }
11128
11293
  }
11129
- [TypeId9] = TypeId9;
11294
+ [TypeId10] = TypeId10;
11130
11295
  get request() {
11131
11296
  return this.reason.request;
11132
11297
  }
@@ -11230,7 +11395,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11230
11395
  }
11231
11396
  }
11232
11397
 
11233
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11398
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11234
11399
  _tag: /* @__PURE__ */ tag("HttpError"),
11235
11400
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11236
11401
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11263,7 +11428,7 @@ var updateContentLength = (headers, body) => {
11263
11428
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11264
11429
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11265
11430
  }
11266
- var make26 = (url, params, hash) => try_({
11431
+ var make27 = (url, params, hash) => try_({
11267
11432
  try: () => {
11268
11433
  const urlInstance = new URL(url, baseUrl());
11269
11434
  for (let i = 0;i < params.params.length; i++) {
@@ -11294,10 +11459,10 @@ var baseUrl = () => {
11294
11459
  };
11295
11460
 
11296
11461
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11297
- var TypeId10 = "~effect/http/HttpClientRequest";
11298
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11462
+ var TypeId11 = "~effect/http/HttpClientRequest";
11463
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11299
11464
  var Proto6 = {
11300
- [TypeId10]: TypeId10,
11465
+ [TypeId11]: TypeId11,
11301
11466
  ...BaseProto,
11302
11467
  toJSON() {
11303
11468
  return {
@@ -11325,14 +11490,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11325
11490
  return self;
11326
11491
  }
11327
11492
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty2, /* @__PURE__ */ none(), empty, empty5);
11328
- var make4 = (method) => (url, options) => modify(empty6, {
11493
+ var make5 = (method) => (url, options) => modify(empty6, {
11329
11494
  method,
11330
11495
  url,
11331
11496
  ...options ?? undefined
11332
11497
  });
11333
- var get = /* @__PURE__ */ make4("GET");
11334
- var post = /* @__PURE__ */ make4("POST");
11335
- var put = /* @__PURE__ */ make4("PUT");
11498
+ var get = /* @__PURE__ */ make5("GET");
11499
+ var post = /* @__PURE__ */ make5("POST");
11500
+ var put = /* @__PURE__ */ make5("PUT");
11336
11501
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11337
11502
  let result = self;
11338
11503
  if (options.method) {
@@ -11386,7 +11551,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11386
11551
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11387
11552
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11388
11553
  function toUrl(self) {
11389
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11554
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11390
11555
  if (isSuccess(r)) {
11391
11556
  return some(r.success);
11392
11557
  }
@@ -11394,7 +11559,7 @@ function toUrl(self) {
11394
11559
  }
11395
11560
 
11396
11561
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11397
- var TypeId11 = "~effect/http/HttpIncomingMessage";
11562
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
11398
11563
  var schemaBodyJson = (schema, options) => {
11399
11564
  const decode = decodeEffect(toCodecJson(schema));
11400
11565
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11413,7 +11578,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11413
11578
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11414
11579
 
11415
11580
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11416
- var TypeId12 = "~effect/http/HttpClientResponse";
11581
+ var TypeId13 = "~effect/http/HttpClientResponse";
11417
11582
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11418
11583
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11419
11584
  reason: new StatusCodeError({
@@ -11424,16 +11589,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11424
11589
  }));
11425
11590
 
11426
11591
  class WebHttpClientResponse extends Class {
11427
- [TypeId11];
11428
11592
  [TypeId12];
11593
+ [TypeId13];
11429
11594
  request;
11430
11595
  source;
11431
11596
  constructor(request, source) {
11432
11597
  super();
11433
11598
  this.request = request;
11434
11599
  this.source = source;
11435
- this[TypeId11] = TypeId11;
11436
11600
  this[TypeId12] = TypeId12;
11601
+ this[TypeId13] = TypeId13;
11437
11602
  }
11438
11603
  toJSON() {
11439
11604
  return inspect(this, {
@@ -11605,7 +11770,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11605
11770
  };
11606
11771
 
11607
11772
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11608
- var TypeId13 = "~effect/http/HttpClient";
11773
+ var TypeId14 = "~effect/http/HttpClient";
11609
11774
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11610
11775
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11611
11776
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11622,7 +11787,7 @@ var makeWith2 = (postprocess, preprocess) => {
11622
11787
  return self;
11623
11788
  };
11624
11789
  var Proto7 = {
11625
- [TypeId13]: TypeId13,
11790
+ [TypeId14]: TypeId14,
11626
11791
  pipe() {
11627
11792
  return pipeArguments(this, arguments);
11628
11793
  },
@@ -11633,13 +11798,13 @@ var Proto7 = {
11633
11798
  };
11634
11799
  },
11635
11800
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11636
- return this.execute(make4(fullMethod)(url, options));
11801
+ return this.execute(make5(fullMethod)(url, options));
11637
11802
  }]))
11638
11803
  };
11639
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11804
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11640
11805
  const scopedController = scopedRequests.get(request);
11641
11806
  const controller = scopedController ?? new AbortController;
11642
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11807
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11643
11808
  if (isFailure(urlResult)) {
11644
11809
  return fail7(new HttpClientError({
11645
11810
  reason: new InvalidUrlError({
@@ -11773,8 +11938,8 @@ class InterruptibleResponse {
11773
11938
  this.original = original;
11774
11939
  this.controller = controller;
11775
11940
  }
11941
+ [TypeId13] = TypeId13;
11776
11942
  [TypeId12] = TypeId12;
11777
- [TypeId11] = TypeId11;
11778
11943
  applyInterrupt(effect) {
11779
11944
  return suspend3(() => {
11780
11945
  responseRegistry.unregister(this.original);
@@ -11872,7 +12037,7 @@ var detectStreamBodySupport = () => {
11872
12037
  return false;
11873
12038
  }
11874
12039
  };
11875
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
12040
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11876
12041
  if (request.headers.upgrade !== undefined) {
11877
12042
  return fail7(new HttpClientError({
11878
12043
  reason: new TransportError({
@@ -11963,10 +12128,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11963
12128
  });
11964
12129
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11965
12130
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11966
- var TypeId14 = "~effect/socket/Socket";
12131
+ var TypeId15 = "~effect/socket/Socket";
11967
12132
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11968
- var make28 = (options) => Socket.of({
11969
- [TypeId14]: TypeId14,
12133
+ var make29 = (options) => Socket.of({
12134
+ [TypeId15]: TypeId15,
11970
12135
  reader: options.reader,
11971
12136
  writer: options.writer
11972
12137
  });
@@ -12289,7 +12454,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12289
12454
  write,
12290
12455
  writeAll
12291
12456
  });
12292
- return succeed6(make28({
12457
+ return succeed6(make29({
12293
12458
  reader,
12294
12459
  writer
12295
12460
  }));
@@ -15624,7 +15789,7 @@ function getStreamSchemas(schema) {
15624
15789
  }
15625
15790
  var schema = /* @__PURE__ */ declare(isStream);
15626
15791
  function Stream(success, error) {
15627
- return make17(schema.ast, {
15792
+ return make16(schema.ast, {
15628
15793
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15629
15794
  success,
15630
15795
  error
@@ -15632,9 +15797,9 @@ function Stream(success, error) {
15632
15797
  }
15633
15798
 
15634
15799
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15635
- var TypeId15 = "~effect/rpc/Rpc";
15800
+ var TypeId16 = "~effect/rpc/Rpc";
15636
15801
  var Proto8 = {
15637
- [TypeId15]: TypeId15,
15802
+ [TypeId16]: TypeId16,
15638
15803
  pipe() {
15639
15804
  return pipeArguments(this, arguments);
15640
15805
  },
@@ -15723,7 +15888,7 @@ var makeProto = (options) => {
15723
15888
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15724
15889
  return Rpc;
15725
15890
  };
15726
- var make5 = (tag, options) => {
15891
+ var make6 = (tag, options) => {
15727
15892
  const successSchema = options?.success ?? Void;
15728
15893
  const errorSchema = options?.error ?? Never;
15729
15894
  const defectSchema = options?.defect ?? Defect();
@@ -15801,7 +15966,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15801
15966
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15802
15967
 
15803
15968
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15804
- var TypeId16 = "~effect/rpc/RpcClientError";
15969
+ var TypeId17 = "~effect/rpc/RpcClientError";
15805
15970
 
15806
15971
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15807
15972
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15810,11 +15975,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15810
15975
  })) {
15811
15976
  }
15812
15977
 
15813
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15978
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15814
15979
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15815
15980
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15816
15981
  })) {
15817
- [TypeId16] = TypeId16;
15982
+ [TypeId17] = TypeId17;
15818
15983
  get message() {
15819
15984
  return `${this.reason._tag}: ${this.reason.message}`;
15820
15985
  }
@@ -15957,12 +16122,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
15957
16122
  requests: options.requests,
15958
16123
  annotations: options.annotations
15959
16124
  });
15960
- var make6 = (...rpcs) => makeProto2({
16125
+ var make7 = (...rpcs) => makeProto2({
15961
16126
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
15962
16127
  annotations: empty4()
15963
16128
  });
15964
16129
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15965
- var TypeId17 = "~effect/rpc/RpcMiddleware";
16130
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
15966
16131
  var Service = () => (id, options) => {
15967
16132
  const limit = getStackTraceLimit();
15968
16133
  let creationError;
@@ -15980,7 +16145,7 @@ var Service = () => (id, options) => {
15980
16145
  return creationError?.stack;
15981
16146
  }
15982
16147
  });
15983
- ServiceClass_[TypeId17] = TypeId17;
16148
+ ServiceClass_[TypeId18] = TypeId18;
15984
16149
  ServiceClass_.error = options?.error ?? Never;
15985
16150
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15986
16151
  return ServiceClass;
@@ -16066,77 +16231,77 @@ var ProgramOutcome = Union([
16066
16231
  Struct({ status: Literal("failed"), failureSummary: String4 })
16067
16232
  ]);
16068
16233
 
16069
- class RunnerReplicaRpcs extends make6(make5("Claim", {
16234
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
16070
16235
  payload: WorkUnitClaimInput,
16071
16236
  success: WorkUnitClaimResult,
16072
16237
  error: RunnerRpcError
16073
- }), make5("Heartbeat", {
16238
+ }), make6("Heartbeat", {
16074
16239
  payload: WorkUnitHeartbeatInput,
16075
16240
  success: WorkUnitHeartbeatResult,
16076
16241
  error: RunnerRpcError
16077
- }), make5("Complete", {
16242
+ }), make6("Complete", {
16078
16243
  payload: WorkUnitCompletion,
16079
16244
  error: RunnerRpcError
16080
- }), make5("Release", {
16245
+ }), make6("Release", {
16081
16246
  payload: WorkUnitReleaseInput,
16082
16247
  error: RunnerRpcError
16083
- }), make5("Signals", {
16248
+ }), make6("Signals", {
16084
16249
  payload: { runnerReplicaId: String4 },
16085
16250
  success: RunnerSignal,
16086
16251
  error: RunnerRpcError,
16087
16252
  stream: true
16088
- }), make5("ReportSteer", {
16253
+ }), make6("ReportSteer", {
16089
16254
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
16090
16255
  success: Void,
16091
16256
  error: RunnerRpcError
16092
- }), make5("AppendTranscript", {
16257
+ }), make6("AppendTranscript", {
16093
16258
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
16094
16259
  success: Void,
16095
16260
  error: RunnerRpcError
16096
- }), make5("CreateCheckpointFile", {
16261
+ }), make6("CreateCheckpointFile", {
16097
16262
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
16098
16263
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16099
16264
  error: Union([RunnerRpcError, RunFileRefused])
16100
- }), make5("CheckpointFileParts", {
16265
+ }), make6("CheckpointFileParts", {
16101
16266
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16102
16267
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16103
16268
  error: RunnerRpcError
16104
- }), make5("CompleteCheckpointFile", {
16269
+ }), make6("CompleteCheckpointFile", {
16105
16270
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16106
16271
  success: RunFileRecord,
16107
16272
  error: RunnerRpcError
16108
- }), make5("SaveCheckpoint", {
16273
+ }), make6("SaveCheckpoint", {
16109
16274
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
16110
16275
  success: Void,
16111
16276
  error: RunnerRpcError
16112
- }), make5("ResumeCheckpoint", {
16277
+ }), make6("ResumeCheckpoint", {
16113
16278
  payload: { lease: ProgramLease },
16114
16279
  success: UndefinedOr(ResumedCheckpoint),
16115
16280
  error: RunnerRpcError
16116
- }), make5("SettledCheckpoints", {
16281
+ }), make6("SettledCheckpoints", {
16117
16282
  success: ArraySchema(Struct({
16118
16283
  stepAttemptId: String4,
16119
16284
  ref: optionalKey(String4),
16120
16285
  repoBinding: optionalKey(WorkUnitRepoBinding)
16121
16286
  })),
16122
16287
  error: RunnerRpcError
16123
- }), make5("ForgetCheckpoints", {
16288
+ }), make6("ForgetCheckpoints", {
16124
16289
  payload: { stepAttemptIds: ArraySchema(String4) },
16125
16290
  success: Void,
16126
16291
  error: RunnerRpcError
16127
- }), make5("GitCredential", {
16292
+ }), make6("GitCredential", {
16128
16293
  payload: { repoBindingId: String4 },
16129
16294
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
16130
16295
  error: RunnerRpcError
16131
- }), make5("Bundle", {
16296
+ }), make6("Bundle", {
16132
16297
  payload: { digest: String4 },
16133
16298
  success: Struct({ bundle: String4 }),
16134
16299
  error: RunnerRpcError
16135
- }), make5("SettledRuns", {
16300
+ }), make6("SettledRuns", {
16136
16301
  payload: { runIds: ArraySchema(String4) },
16137
16302
  success: ArraySchema(String4),
16138
16303
  error: RunnerRpcError
16139
- }), make5("KnownEvidence", {
16304
+ }), make6("KnownEvidence", {
16140
16305
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
16141
16306
  success: ArraySchema(Struct({
16142
16307
  tree: String4,
@@ -16148,24 +16313,24 @@ class RunnerReplicaRpcs extends make6(make5("Claim", {
16148
16313
  })).middleware(RunnerAuthentication) {
16149
16314
  }
16150
16315
 
16151
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
16316
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
16152
16317
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
16153
16318
  error: RunnerRpcError
16154
- }), make5("DeferredDone", {
16319
+ }), make6("DeferredDone", {
16155
16320
  payload: { lease: ProgramLease, name: String4, exit: Json },
16156
16321
  error: RunnerRpcError
16157
- }), make5("ScheduleClock", {
16322
+ }), make6("ScheduleClock", {
16158
16323
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
16159
16324
  error: RunnerRpcError
16160
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16325
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
16161
16326
  }
16162
- var RunHostStep = make5("RunHostStep", {
16327
+ var RunHostStep = make6("RunHostStep", {
16163
16328
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
16164
16329
  success: Json,
16165
16330
  error: RunnerRpcError
16166
16331
  });
16167
16332
 
16168
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16333
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16169
16334
  payload: {
16170
16335
  lease: ProgramLease,
16171
16336
  step: String4,
@@ -16186,7 +16351,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16186
16351
  },
16187
16352
  success: Struct({ questionId: String4 }),
16188
16353
  error: RunnerRpcError
16189
- }), make5("StartAgentStep", {
16354
+ }), make6("StartAgentStep", {
16190
16355
  payload: {
16191
16356
  lease: ProgramLease,
16192
16357
  step: String4,
@@ -16203,7 +16368,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16203
16368
  },
16204
16369
  success: Struct({ stepAttemptId: String4 }),
16205
16370
  error: RunnerRpcError
16206
- }), make5("StartVerification", {
16371
+ }), make6("StartVerification", {
16207
16372
  payload: {
16208
16373
  lease: ProgramLease,
16209
16374
  step: String4,
@@ -16227,7 +16392,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16227
16392
  },
16228
16393
  success: Struct({ verificationId: String4 }),
16229
16394
  error: RunnerRpcError
16230
- }), make5("AwaitEvent", {
16395
+ }), make6("AwaitEvent", {
16231
16396
  payload: {
16232
16397
  lease: ProgramLease,
16233
16398
  step: String4,
@@ -16243,7 +16408,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16243
16408
  })))
16244
16409
  },
16245
16410
  error: RunnerRpcError
16246
- }), make5("ClaimResource", {
16411
+ }), make6("ClaimResource", {
16247
16412
  payload: {
16248
16413
  lease: ProgramLease,
16249
16414
  step: String4,
@@ -16254,7 +16419,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16254
16419
  claims: optionalKey(ArraySchema(String4))
16255
16420
  },
16256
16421
  error: RunnerRpcError
16257
- }), make5("AdmitChild", {
16422
+ }), make6("AdmitChild", {
16258
16423
  payload: {
16259
16424
  lease: ProgramLease,
16260
16425
  step: String4,
@@ -16265,7 +16430,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16265
16430
  },
16266
16431
  success: Struct({ runId: String4 }),
16267
16432
  error: RunnerRpcError
16268
- }), make5("AdmitChildById", {
16433
+ }), make6("AdmitChildById", {
16269
16434
  payload: {
16270
16435
  lease: ProgramLease,
16271
16436
  step: String4,
@@ -16276,18 +16441,18 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16276
16441
  },
16277
16442
  success: Struct({ runId: String4 }),
16278
16443
  error: RunnerRpcError
16279
- }), make5("CallableLoops", {
16444
+ }), make6("CallableLoops", {
16280
16445
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16281
16446
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16282
16447
  error: RunnerRpcError
16283
- }), make5("StopLaunches", {
16448
+ }), make6("StopLaunches", {
16284
16449
  payload: {
16285
16450
  lease: ProgramLease,
16286
16451
  step: String4,
16287
16452
  deferredNames: ArraySchema(String4)
16288
16453
  },
16289
16454
  error: RunnerRpcError
16290
- }), make5("StoreArtifact", {
16455
+ }), make6("StoreArtifact", {
16291
16456
  payload: {
16292
16457
  lease: ProgramLease,
16293
16458
  step: String4,
@@ -16299,7 +16464,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16299
16464
  },
16300
16465
  success: Struct({ artifactId: String4 }),
16301
16466
  error: RunnerRpcError
16302
- }), make5("RecordNote", {
16467
+ }), make6("RecordNote", {
16303
16468
  payload: {
16304
16469
  lease: ProgramLease,
16305
16470
  step: String4,
@@ -16308,7 +16473,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16308
16473
  kind: optional(Literals(["note", "blocker"]))
16309
16474
  },
16310
16475
  error: RunnerRpcError
16311
- }), make5("PerformHostEffect", {
16476
+ }), make6("PerformHostEffect", {
16312
16477
  payload: {
16313
16478
  lease: ProgramLease,
16314
16479
  step: String4,
@@ -16337,7 +16502,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16337
16502
  },
16338
16503
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16339
16504
  error: RunnerRpcError
16340
- }), make5("AlertTask", {
16505
+ }), make6("AlertTask", {
16341
16506
  payload: {
16342
16507
  lease: ProgramLease,
16343
16508
  step: String4,
@@ -16354,7 +16519,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16354
16519
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16355
16520
  }),
16356
16521
  error: RunnerRpcError
16357
- }), make5("ReadTranscripts", {
16522
+ }), make6("ReadTranscripts", {
16358
16523
  payload: {
16359
16524
  lease: ProgramLease,
16360
16525
  step: String4,
@@ -16389,7 +16554,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16389
16554
  })))
16390
16555
  }),
16391
16556
  error: RunnerRpcError
16392
- }), make5("PipelineStatus", {
16557
+ }), make6("PipelineStatus", {
16393
16558
  payload: {
16394
16559
  lease: ProgramLease,
16395
16560
  step: String4,
@@ -16429,11 +16594,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16429
16594
  }))
16430
16595
  }),
16431
16596
  error: RunnerRpcError
16432
- }), make5("ReportPipeline", {
16597
+ }), make6("ReportPipeline", {
16433
16598
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16434
16599
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16435
16600
  error: RunnerRpcError
16436
- }), make5("ReviewThreads", {
16601
+ }), make6("ReviewThreads", {
16437
16602
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16438
16603
  success: Struct({
16439
16604
  threads: ArraySchema(Struct({
@@ -16445,7 +16610,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16445
16610
  }))
16446
16611
  }),
16447
16612
  error: RunnerRpcError
16448
- }), make5("OpenChangeRequests", {
16613
+ }), make6("OpenChangeRequests", {
16449
16614
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16450
16615
  success: Struct({
16451
16616
  changeRequests: ArraySchema(Struct({
@@ -16459,7 +16624,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16459
16624
  }))
16460
16625
  }),
16461
16626
  error: RunnerRpcError
16462
- }), make5("OwnChangeRequests", {
16627
+ }), make6("OwnChangeRequests", {
16463
16628
  payload: { lease: ProgramLease, step: String4 },
16464
16629
  success: Struct({
16465
16630
  changeRequests: ArraySchema(Struct({
@@ -16472,7 +16637,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16472
16637
  }))
16473
16638
  }),
16474
16639
  error: RunnerRpcError
16475
- }), make5("Propose", {
16640
+ }), make6("Propose", {
16476
16641
  payload: {
16477
16642
  lease: ProgramLease,
16478
16643
  step: String4,
@@ -16501,7 +16666,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16501
16666
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16502
16667
  }),
16503
16668
  error: RunnerRpcError
16504
- }), make5("ReadProject", {
16669
+ }), make6("ReadProject", {
16505
16670
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16506
16671
  success: Struct({
16507
16672
  project: Struct({ id: String4, name: String4 }),
@@ -16524,7 +16689,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16524
16689
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16525
16690
  }),
16526
16691
  error: RunnerRpcError
16527
- }), make5("DraftUpdate", {
16692
+ }), make6("DraftUpdate", {
16528
16693
  payload: {
16529
16694
  lease: ProgramLease,
16530
16695
  step: String4,
@@ -16539,7 +16704,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16539
16704
  },
16540
16705
  success: Struct({ id: String4 }),
16541
16706
  error: RunnerRpcError
16542
- }), make5("CreatePlanTasks", {
16707
+ }), make6("CreatePlanTasks", {
16543
16708
  payload: {
16544
16709
  lease: ProgramLease,
16545
16710
  projectId: optionalKey(String4),
@@ -16560,15 +16725,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16560
16725
  },
16561
16726
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16562
16727
  error: RunnerRpcError
16563
- }), make5("IntegrationBranch", {
16728
+ }), make6("IntegrationBranch", {
16564
16729
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16565
16730
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16566
16731
  error: RunnerRpcError
16567
- }), make5("DeliveryBase", {
16732
+ }), make6("DeliveryBase", {
16568
16733
  payload: { lease: ProgramLease },
16569
16734
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16570
16735
  error: RunnerRpcError
16571
- }), make5("Branch", {
16736
+ }), make6("Branch", {
16572
16737
  payload: {
16573
16738
  lease: ProgramLease,
16574
16739
  branch: optionalKey(String4),
@@ -16583,7 +16748,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16583
16748
  created: Boolean2
16584
16749
  }),
16585
16750
  error: RunnerRpcError
16586
- }), make5("BranchChangeRequest", {
16751
+ }), make6("BranchChangeRequest", {
16587
16752
  payload: {
16588
16753
  lease: ProgramLease,
16589
16754
  step: String4,
@@ -16606,7 +16771,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16606
16771
  Struct({ status: Literal("elsewhere"), team: String4 })
16607
16772
  ]),
16608
16773
  error: RunnerRpcError
16609
- }), make5("MergeChangeRequest", {
16774
+ }), make6("MergeChangeRequest", {
16610
16775
  payload: {
16611
16776
  lease: ProgramLease,
16612
16777
  step: String4,
@@ -16624,7 +16789,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16624
16789
  Struct({ status: Literal("moved"), head: String4 })
16625
16790
  ]),
16626
16791
  error: RunnerRpcError
16627
- }), make5("ApproveChangeRequest", {
16792
+ }), make6("ApproveChangeRequest", {
16628
16793
  payload: {
16629
16794
  lease: ProgramLease,
16630
16795
  step: String4,
@@ -16640,7 +16805,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16640
16805
  Struct({ approved: Literal(false), reason: String4 })
16641
16806
  ]),
16642
16807
  error: RunnerRpcError
16643
- }), make5("CloseChangeRequest", {
16808
+ }), make6("CloseChangeRequest", {
16644
16809
  payload: {
16645
16810
  lease: ProgramLease,
16646
16811
  step: String4,
@@ -16650,7 +16815,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16650
16815
  },
16651
16816
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16652
16817
  error: RunnerRpcError
16653
- }), make5("RerunPipeline", {
16818
+ }), make6("RerunPipeline", {
16654
16819
  payload: {
16655
16820
  lease: ProgramLease,
16656
16821
  step: String4,
@@ -16660,7 +16825,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16660
16825
  },
16661
16826
  success: Struct({ head: String4, pipelines: Int }),
16662
16827
  error: RunnerRpcError
16663
- }), make5("PublishRelease", {
16828
+ }), make6("PublishRelease", {
16664
16829
  payload: {
16665
16830
  lease: ProgramLease,
16666
16831
  step: String4,
@@ -16674,7 +16839,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16674
16839
  },
16675
16840
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16676
16841
  error: RunnerRpcError
16677
- }), make5("RecordDeploy", {
16842
+ }), make6("RecordDeploy", {
16678
16843
  payload: {
16679
16844
  lease: ProgramLease,
16680
16845
  step: String4,
@@ -16686,7 +16851,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16686
16851
  },
16687
16852
  success: Deploy,
16688
16853
  error: RunnerRpcError
16689
- }), make5("DeployTarget", {
16854
+ }), make6("DeployTarget", {
16690
16855
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16691
16856
  success: Struct({
16692
16857
  target: String4,
@@ -16694,14 +16859,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16694
16859
  order: optionalKey(ArraySchema(String4))
16695
16860
  }),
16696
16861
  error: RunnerRpcError
16697
- }), RunHostStep, make5("ProgramSecrets", {
16862
+ }), RunHostStep, make6("ProgramSecrets", {
16698
16863
  payload: { lease: ProgramLease },
16699
16864
  success: Record(String4, String4),
16700
16865
  error: RunnerRpcError
16701
16866
  })).middleware(RunnerAuthentication) {
16702
16867
  }
16703
16868
 
16704
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16869
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16705
16870
  payload: {
16706
16871
  lease: ProgramLease,
16707
16872
  step: String4,
@@ -16713,11 +16878,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16713
16878
  },
16714
16879
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16715
16880
  error: Union([RunnerRpcError, RunFileRefused])
16716
- }), make5("RunFileParts", {
16881
+ }), make6("RunFileParts", {
16717
16882
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16718
16883
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16719
16884
  error: RunnerRpcError
16720
- }), make5("CompleteRunFile", {
16885
+ }), make6("CompleteRunFile", {
16721
16886
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16722
16887
  success: RunFileRecord,
16723
16888
  error: RunnerRpcError
@@ -16727,7 +16892,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16727
16892
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16728
16893
 
16729
16894
  // apps/cli/src/oauth.ts
16730
- var Scope = "openid profile email offline_access kitman:cli";
16895
+ var Scope2 = "openid profile email offline_access kitman:cli";
16731
16896
  var CallbackPath = "/auth/callback";
16732
16897
 
16733
16898
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16746,7 +16911,7 @@ function buildAuthorizeUrl(input) {
16746
16911
  url.searchParams.set("response_type", "code");
16747
16912
  url.searchParams.set("client_id", input.clientId);
16748
16913
  url.searchParams.set("redirect_uri", input.redirectUri);
16749
- url.searchParams.set("scope", Scope);
16914
+ url.searchParams.set("scope", Scope2);
16750
16915
  url.searchParams.set("code_challenge", input.codeChallenge);
16751
16916
  url.searchParams.set("code_challenge_method", "S256");
16752
16917
  url.searchParams.set("state", input.state);
@@ -17462,7 +17627,7 @@ var spawnedTransport = (env) => gen(function* () {
17462
17627
  const spawner = yield* ChildProcessSpawner;
17463
17628
  const input = yield* unbounded2();
17464
17629
  const encoder = new TextEncoder;
17465
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17630
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17466
17631
  extendEnv: false,
17467
17632
  env,
17468
17633
  stdin: fromQueue(input),
@@ -17493,7 +17658,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17493
17658
  const spawner = yield* ChildProcessSpawner;
17494
17659
  const env = coreEnv(options);
17495
17660
  const run = (args) => gen(function* () {
17496
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17661
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
17497
17662
  const [stdout, stderr, exitCode] = yield* all3([
17498
17663
  mkString(decodeText(handle.stdout)),
17499
17664
  mkString(decodeText(handle.stderr)),
@@ -17519,7 +17684,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17519
17684
  }
17520
17685
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17521
17686
  const spawner = yield* ChildProcessSpawner;
17522
- const handle = yield* spawner.spawn(make2(command, args, {
17687
+ const handle = yield* spawner.spawn(make3(command, args, {
17523
17688
  stdin: "ignore",
17524
17689
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17525
17690
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17545,7 +17710,7 @@ var shellOutputTailChars2 = 64 * 1024;
17545
17710
  var runProcess2 = (argv, options) => gen(function* () {
17546
17711
  const spawner = yield* ChildProcessSpawner;
17547
17712
  const [command, ...args] = argv;
17548
- const handle = yield* spawner.spawn(make2(command, args, {
17713
+ const handle = yield* spawner.spawn(make3(command, args, {
17549
17714
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17550
17715
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17551
17716
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -18068,4 +18233,4 @@ function serviceChecks(declaration) {
18068
18233
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
18069
18234
  }
18070
18235
 
18071
- 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, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, programCrashOutputChars, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, 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, stepLogDirFromEnv, 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, WorkAvailable, 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 };
18236
+ 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, decodeAnswerSchema, answerAccepts, answerProblem, answerValue, loopSafeTextMaxLength, recommendedDefault, isLoopSafeText, reportedModelName, RunDisplayStates, RunWaitUntils, calverNumbers, compareCalver, DeliveryMode, defaultDeployCommand, ProgramWorkUnit, MeasureSample, MeasureEvidence, TagVersions, compareCommitMax, commitMessageMax, commandTimeoutMillisDefault, commandTextLimit, programCrashOutputChars, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, verificationCap, PinnedImage, RunnerSettings, 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, stepLogDirFromEnv, 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, WorkAvailable, 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 };