@kitman-sh/cli 0.12.0-rc.4 → 0.12.0-rc.5

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-t2mr6z38.js → chunk-26mj3vr6.js} +37 -37
  2. package/dist/{chunk-b50dvx41.js → chunk-2s4x5t92.js} +5 -5
  3. package/dist/{chunk-74txrt4s.js → chunk-31hk2bjb.js} +4 -4
  4. package/dist/{chunk-k81ay8y5.js → chunk-3530xts6.js} +10 -10
  5. package/dist/{chunk-zmcghp8w.js → chunk-5zzfsv07.js} +43 -183
  6. package/dist/{chunk-ezf2myj0.js → chunk-6x9e1etb.js} +3 -3
  7. package/dist/{chunk-r1z41qx6.js → chunk-77k89h98.js} +329 -181
  8. package/dist/{chunk-ydydx55z.js → chunk-bbadvwds.js} +1 -1
  9. package/dist/{chunk-bq55md8p.js → chunk-bj73db3f.js} +1 -1
  10. package/dist/{chunk-6b0k02x4.js → chunk-bv9e34qz.js} +1 -1
  11. package/dist/{chunk-xavcp9se.js → chunk-cegdw7gw.js} +2 -2
  12. package/dist/{chunk-nzsrse8d.js → chunk-dd8hae73.js} +61 -60
  13. package/dist/{chunk-kybp1mkk.js → chunk-e838cw9z.js} +11 -11
  14. package/dist/{chunk-w0aj9mkz.js → chunk-gr816kwr.js} +10 -10
  15. package/dist/{chunk-ckkpqcfv.js → chunk-hrds2xy2.js} +7 -7
  16. package/dist/{chunk-e7q2frvs.js → chunk-k9jd2dm0.js} +7 -7
  17. package/dist/{chunk-w6cm939j.js → chunk-kvm7j3ed.js} +19 -19
  18. package/dist/{chunk-7kjsvwzv.js → chunk-nc1rxeav.js} +8 -8
  19. package/dist/{chunk-pw10mq9e.js → chunk-rjdptgqf.js} +4 -4
  20. package/dist/{chunk-aafxvmj1.js → chunk-s1pjsak4.js} +7 -7
  21. package/dist/{chunk-xy5f2nv9.js → chunk-s661f8p0.js} +2 -2
  22. package/dist/{chunk-79gx7ek9.js → chunk-txyp31q5.js} +59 -101
  23. package/dist/{chunk-qjd6w9sw.js → chunk-x70r99jg.js} +2 -2
  24. package/dist/{chunk-c9007k48.js → chunk-xmq9zpr1.js} +1 -1
  25. package/dist/{chunk-jntxtx9j.js → chunk-y2mkzww9.js} +60 -14
  26. package/dist/{chunk-rjasmnav.js → chunk-yafg281p.js} +39 -26
  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,
@@ -89,7 +91,9 @@ import {
89
91
  ConsoleRef,
90
92
  succeed3,
91
93
  fail4,
94
+ void_2,
92
95
  isSuccess2,
96
+ isFailure2,
93
97
  makeUnsafe5,
94
98
  make15,
95
99
  _await,
@@ -99,8 +103,12 @@ import {
99
103
  succeed4,
100
104
  doneUnsafe,
101
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
102
108
  provide,
109
+ addFinalizerExit,
103
110
  addFinalizer,
111
+ close,
104
112
  succeed5,
105
113
  effect,
106
114
  effectContext,
@@ -152,6 +160,7 @@ import {
152
160
  tapCause,
153
161
  retry,
154
162
  ignore,
163
+ ignoreCause,
155
164
  orElseSucceed,
156
165
  timeout,
157
166
  timeoutOrElse,
@@ -163,6 +172,7 @@ import {
163
172
  context,
164
173
  contextWith,
165
174
  provide3,
175
+ provideContext2,
166
176
  serviceOption,
167
177
  updateContext,
168
178
  provideService,
@@ -173,6 +183,7 @@ import {
173
183
  addFinalizer2,
174
184
  ensuring2,
175
185
  onError,
186
+ onExit,
176
187
  cached,
177
188
  interrupt3,
178
189
  interruptible,
@@ -184,6 +195,7 @@ import {
184
195
  withParentSpan,
185
196
  forkScoped,
186
197
  runFork,
198
+ runForkWith,
187
199
  runPromise,
188
200
  runPromiseWith,
189
201
  runSync,
@@ -194,9 +206,6 @@ import {
194
206
  logError,
195
207
  effectify,
196
208
  decode,
197
- isRedacted,
198
- make16,
199
- value,
200
209
  defaultParseOptions,
201
210
  omit,
202
211
  map9,
@@ -205,7 +214,7 @@ import {
205
214
  decodeEffect,
206
215
  decodeUnknownOption,
207
216
  decodeOption,
208
- make17,
217
+ make16,
209
218
  isSchema,
210
219
  optionalKey,
211
220
  optional,
@@ -252,17 +261,22 @@ import {
252
261
  decodeJsonStringOption,
253
262
  encodeJsonStringSync,
254
263
  encodePrettyJsonString
255
- } from "./chunk-79gx7ek9.js";
264
+ } from "./chunk-txyp31q5.js";
256
265
  import {
257
266
  map,
258
267
  makeEquivalence,
268
+ toNumber,
259
269
  bytes,
270
+ join,
271
+ interrupt,
272
+ getCurrent,
273
+ runIn,
260
274
  BadArgument,
261
275
  systemError,
262
276
  badArgument,
263
277
  makeUnsafe2,
264
- make7,
265
278
  make8,
279
+ make9,
266
280
  sliding,
267
281
  unbounded2,
268
282
  offer,
@@ -278,8 +292,6 @@ import {
278
292
  isSink,
279
293
  fromChannel,
280
294
  drain,
281
- make9,
282
- get3,
283
295
  isStream,
284
296
  fromChannel2,
285
297
  callback,
@@ -319,7 +331,7 @@ import {
319
331
  String2,
320
332
  optionalEnv,
321
333
  harnessesUnsupportedInSrt2
322
- } from "./chunk-zmcghp8w.js";
334
+ } from "./chunk-5zzfsv07.js";
323
335
  import {
324
336
  isDateTime,
325
337
  Numeric,
@@ -332,7 +344,7 @@ import {
332
344
  SecretScope,
333
345
  SecretHosts,
334
346
  isSecretReference
335
- } from "./chunk-6b0k02x4.js";
347
+ } from "./chunk-bv9e34qz.js";
336
348
  import {
337
349
  toJsonValue,
338
350
  isOneOf,
@@ -346,19 +358,21 @@ import {
346
358
  isSymbol,
347
359
  isUndefined,
348
360
  kindOf
349
- } from "./chunk-c9007k48.js";
361
+ } from "./chunk-xmq9zpr1.js";
350
362
  import {
363
+ isRedacted,
364
+ make,
365
+ value,
351
366
  ExitCode,
352
367
  ProcessId,
353
368
  makeHandle,
354
- make,
369
+ make2,
355
370
  ChildProcessSpawner,
356
371
  display,
357
- make2,
372
+ make3,
358
373
  parseFdName,
359
374
  fdName
360
- } from "./chunk-jntxtx9j.js";
361
-
375
+ } from "./chunk-y2mkzww9.js";
362
376
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
363
377
  var makeEquivalence3 = Tuple;
364
378
 
@@ -500,7 +514,7 @@ var fromDateUnsafe = (date) => {
500
514
  }
501
515
  return makeUtc(epochMillis);
502
516
  };
503
- var makeUnsafe6 = (input) => {
517
+ var makeUnsafe7 = (input) => {
504
518
  if (isDateTime2(input)) {
505
519
  return input;
506
520
  } else if (input instanceof Date) {
@@ -520,7 +534,7 @@ var makeUnsafe6 = (input) => {
520
534
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
521
535
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
522
536
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
523
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
537
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
538
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
525
539
  var nowUnsafe = () => makeUtc(Date.now());
526
540
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -627,7 +641,7 @@ class Metric$ {
627
641
  }
628
642
  hook(context) {
629
643
  const key = this.key(context);
630
- const registry = get4(context, MetricRegistry);
644
+ const registry = get3(context, MetricRegistry);
631
645
  let metadata = registry.get(key);
632
646
  if (isUndefined2(metadata)) {
633
647
  metadata = this.metadata(this.createHooks());
@@ -636,11 +650,11 @@ class Metric$ {
636
650
  return metadata.hooks;
637
651
  }
638
652
  removeUnsafe(context) {
639
- get4(context, MetricRegistry).delete(this.key(context));
653
+ get3(context, MetricRegistry).delete(this.key(context));
640
654
  }
641
655
  registerUnsafe(context, hooks) {
642
656
  const key = this.key(context);
643
- const registry = get4(context, MetricRegistry);
657
+ const registry = get3(context, MetricRegistry);
644
658
  const metadata = this.metadata({
645
659
  get: hooks.get,
646
660
  update: constVoid,
@@ -656,7 +670,7 @@ class Metric$ {
656
670
  };
657
671
  }
658
672
  key(context) {
659
- const extraAttributes = get4(context, CurrentMetricAttributes);
673
+ const extraAttributes = get3(context, CurrentMetricAttributes);
660
674
  if (extraAttributes !== this.#extraAttributes) {
661
675
  this.#extraAttributes = extraAttributes;
662
676
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -899,18 +913,151 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
899
913
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
900
914
  var runMain = runMain2;
901
915
 
902
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
903
- var BigInt2 = globalThis.BigInt;
904
- var toNumber = (b) => {
905
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
906
- return none();
916
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
917
+ var TypeId3 = "~effect/RcRef";
918
+ var stateEmpty = {
919
+ _tag: "Empty"
920
+ };
921
+ var stateClosed = {
922
+ _tag: "Closed"
923
+ };
924
+ var variance = {
925
+ _A: identity,
926
+ _E: identity
927
+ };
928
+
929
+ class RcRefImpl {
930
+ [TypeId3] = variance;
931
+ pipe() {
932
+ return pipeArguments(this, arguments);
933
+ }
934
+ state = stateEmpty;
935
+ acquire;
936
+ context;
937
+ scope;
938
+ idleTimeToLive;
939
+ constructor(acquire, context, scope, idleTimeToLive) {
940
+ this.acquire = acquire;
941
+ this.context = context;
942
+ this.scope = scope;
943
+ this.idleTimeToLive = idleTimeToLive;
944
+ }
945
+ }
946
+ var make17 = (options) => withFiber2((fiber) => {
947
+ const context = fiber.context;
948
+ const scope = get3(context, Scope);
949
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
950
+ return as(addFinalizerExit(scope, () => {
951
+ const state = ref.state;
952
+ ref.state = stateClosed;
953
+ if (state._tag === "Acquired")
954
+ return close(state.scope, void_2);
955
+ if (state._tag === "Acquiring")
956
+ return interrupt(state.fiber);
957
+ return void_3;
958
+ }), ref);
959
+ });
960
+ var getState = (self, restore) => {
961
+ switch (self.state._tag) {
962
+ case "Closed": {
963
+ return interrupt3;
964
+ }
965
+ case "Acquired": {
966
+ const state = self.state;
967
+ state.refCount++;
968
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
969
+ }
970
+ case "Acquiring": {
971
+ const state = self.state;
972
+ state.awaiters++;
973
+ return awaitAcquiring(self, state, restore);
974
+ }
975
+ case "Empty": {
976
+ const acquiring = {
977
+ _tag: "Acquiring",
978
+ fiber: undefined,
979
+ awaiters: 1,
980
+ acquired: undefined
981
+ };
982
+ self.state = acquiring;
983
+ const scope = makeUnsafe6();
984
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
985
+ if (self.state !== acquiring) {
986
+ return interrupt3;
987
+ }
988
+ const state = {
989
+ _tag: "Acquired",
990
+ value,
991
+ scope,
992
+ fiber: undefined,
993
+ refCount: acquiring.awaiters,
994
+ invalidated: false
995
+ };
996
+ self.state = state;
997
+ acquiring.acquired = state;
998
+ return succeed6(state);
999
+ }), onExit((exit) => {
1000
+ if (isSuccess2(exit))
1001
+ return void_3;
1002
+ if (self.state === acquiring)
1003
+ self.state = stateEmpty;
1004
+ return close(scope, exit);
1005
+ }));
1006
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1007
+ return awaitAcquiring(self, acquiring, restore);
1008
+ }
1009
+ }
1010
+ };
1011
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1012
+ const acquired = acquiring.acquired;
1013
+ if (acquired !== undefined) {
1014
+ return isFailure2(exit) ? release(self, acquired) : void_3;
907
1015
  }
908
- return some(Number(b));
1016
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1017
+ return void_3;
1018
+ self.state = stateEmpty;
1019
+ return interrupt(acquiring.fiber);
1020
+ });
1021
+ var get4 = (self_) => {
1022
+ const self = self_;
1023
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
909
1024
  };
1025
+ var release = (self, state) => {
1026
+ state.refCount--;
1027
+ if (state.refCount > 0) {
1028
+ return void_3;
1029
+ }
1030
+ const idleTimeToLive = self.idleTimeToLive;
1031
+ if (idleTimeToLive === undefined || state.invalidated) {
1032
+ if (self.state === state) {
1033
+ self.state = stateEmpty;
1034
+ }
1035
+ return close(state.scope, void_2);
1036
+ } else if (!isFinite(idleTimeToLive)) {
1037
+ return void_3;
1038
+ }
1039
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1040
+ if (self.state === state && state.refCount === 0) {
1041
+ self.state = stateEmpty;
1042
+ return ignoreCause(close(state.scope, void_2), {
1043
+ log: "Unhandled",
1044
+ message: "Unhandled error in RcRef finalizer"
1045
+ });
1046
+ }
1047
+ return void_3;
1048
+ })).pipe(ensuring2(sync2(() => {
1049
+ state.fiber = undefined;
1050
+ })), runForkWith(self.context), runIn(self.scope));
1051
+ return void_3;
1052
+ };
1053
+
1054
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1055
+ var make18 = make17;
1056
+ var get5 = get4;
910
1057
 
911
1058
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
912
- var makeUnsafe = makeUnsafe6;
913
- var make18 = make3;
1059
+ var makeUnsafe = makeUnsafe7;
1060
+ var make19 = make4;
914
1061
  var now2 = now;
915
1062
  var nowUnsafe2 = nowUnsafe;
916
1063
  var toDateUtc2 = toDateUtc;
@@ -1125,7 +1272,7 @@ var readableToPullUnsafe = (options) => {
1125
1272
  const readable = options.readable;
1126
1273
  const chunkSize = options.chunkSize ?? 4096;
1127
1274
  const closeOnDone = options.closeOnDone ?? true;
1128
- const exit = options.exit ?? make7(undefined);
1275
+ const exit = options.exit ?? make8(undefined);
1129
1276
  const latch = options.latch ?? makeUnsafe2(false);
1130
1277
  function onReadable() {
1131
1278
  latch.openUnsafe();
@@ -1229,7 +1376,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1229
1376
  windowsHide: true
1230
1377
  }, onExit);
1231
1378
  };
1232
- var make19 = /* @__PURE__ */ gen(function* () {
1379
+ var make20 = /* @__PURE__ */ gen(function* () {
1233
1380
  const fs = yield* FileSystem;
1234
1381
  const path = yield* Path;
1235
1382
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1689,7 +1836,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1689
1836
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1690
1837
  const toOption = options.to ?? "stdin";
1691
1838
  if (toOption === "stdin") {
1692
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1839
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1693
1840
  ...command.options,
1694
1841
  stdin: {
1695
1842
  ...stdinConfig,
@@ -1709,7 +1856,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1709
1856
  type: "input",
1710
1857
  stream: sourceStream
1711
1858
  };
1712
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1859
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1713
1860
  ...command.options,
1714
1861
  additionalFds: {
1715
1862
  ...existingFds,
@@ -1717,7 +1864,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1717
1864
  }
1718
1865
  })));
1719
1866
  } else {
1720
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1867
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1721
1868
  ...command.options,
1722
1869
  stdin: {
1723
1870
  ...stdinConfig,
@@ -1756,9 +1903,9 @@ var make19 = /* @__PURE__ */ gen(function* () {
1756
1903
  }
1757
1904
  }
1758
1905
  });
1759
- return make(spawnCommand);
1906
+ return make2(spawnCommand);
1760
1907
  });
1761
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1908
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1762
1909
  var flattenCommand = (command) => {
1763
1910
  const commands = [];
1764
1911
  const pipeOptions = [];
@@ -2319,10 +2466,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2319
2466
  var layer2 = layer7;
2320
2467
 
2321
2468
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2322
- var TypeId3 = "~effect/Stdio";
2323
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2324
- var make20 = (options) => ({
2325
- [TypeId3]: TypeId3,
2469
+ var TypeId4 = "~effect/Stdio";
2470
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2471
+ var make21 = (options) => ({
2472
+ [TypeId4]: TypeId4,
2326
2473
  stdinIsTerminal: succeed6(false),
2327
2474
  stdoutIsTerminal: succeed6(false),
2328
2475
  stderrIsTerminal: succeed6(false),
@@ -2330,7 +2477,7 @@ var make20 = (options) => ({
2330
2477
  });
2331
2478
 
2332
2479
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2333
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2480
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2334
2481
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2335
2482
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2336
2483
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2530,7 +2677,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2530
2677
  const uuid = bytes(randomBytes(16));
2531
2678
  return format === "bytes" ? uuid : stringify(uuid);
2532
2679
  };
2533
- var make21 = (randomBytes) => {
2680
+ var make22 = (randomBytes) => {
2534
2681
  const randomBytesChecked = (size) => {
2535
2682
  checkSize(size);
2536
2683
  return randomBytes(size);
@@ -2564,13 +2711,13 @@ var fillRandom = (crypto2, size) => {
2564
2711
  }
2565
2712
  return bytes;
2566
2713
  };
2567
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2714
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2568
2715
 
2569
2716
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2570
- var TypeId4 = "~effect/http/Cookies";
2717
+ var TypeId5 = "~effect/http/Cookies";
2571
2718
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2572
2719
  var Proto2 = {
2573
- [TypeId4]: TypeId4,
2720
+ [TypeId5]: TypeId5,
2574
2721
  ...BaseProto,
2575
2722
  toJSON() {
2576
2723
  return {
@@ -2749,14 +2896,14 @@ var tryDecodeURIComponent = (str) => {
2749
2896
  };
2750
2897
 
2751
2898
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2752
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2899
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2753
2900
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2754
- [TypeId5]: {
2755
- value: TypeId5
2901
+ [TypeId6]: {
2902
+ value: TypeId6
2756
2903
  },
2757
2904
  [symbolRedactable]: {
2758
2905
  value(context) {
2759
- return redact2(this, get4(context, CurrentRedactedNames));
2906
+ return redact2(this, get3(context, CurrentRedactedNames));
2760
2907
  }
2761
2908
  },
2762
2909
  toJSON: {
@@ -2781,7 +2928,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2781
2928
  value: BaseProto[NodeInspectSymbol]
2782
2929
  }
2783
2930
  });
2784
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2931
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2785
2932
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2786
2933
  var empty = /* @__PURE__ */ Object.create(Proto3);
2787
2934
  var fromInput = (input) => {
@@ -2806,21 +2953,21 @@ var fromInput = (input) => {
2806
2953
  };
2807
2954
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2808
2955
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2809
- const out = make22(self);
2956
+ const out = make23(self);
2810
2957
  out[key.toLowerCase()] = value;
2811
2958
  return out;
2812
2959
  });
2813
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2960
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2814
2961
  ...self,
2815
2962
  ...fromInput(headers)
2816
2963
  }));
2817
2964
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2818
- const out = make22(self);
2965
+ const out = make23(self);
2819
2966
  Object.assign(out, headers);
2820
2967
  return out;
2821
2968
  });
2822
2969
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2823
- const out = make22(self);
2970
+ const out = make23(self);
2824
2971
  delete out[key.toLowerCase()];
2825
2972
  return out;
2826
2973
  });
@@ -2832,12 +2979,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2832
2979
  if (typeof key === "string") {
2833
2980
  const k = key.toLowerCase();
2834
2981
  if (k in self) {
2835
- out[k] = make16(self[k]);
2982
+ out[k] = make(self[k]);
2836
2983
  }
2837
2984
  } else {
2838
2985
  for (const name in self) {
2839
2986
  if (name.search(key) !== -1) {
2840
- out[name] = make16(self[name]);
2987
+ out[name] = make(self[name]);
2841
2988
  }
2842
2989
  }
2843
2990
  }
@@ -2877,18 +3024,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2877
3024
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2878
3025
 
2879
3026
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2880
- var TypeId6 = "~effect/http/UrlParams";
2881
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3027
+ var TypeId7 = "~effect/http/UrlParams";
3028
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2882
3029
  var Proto4 = {
2883
3030
  ...PipeInspectableProto,
2884
- [TypeId6]: TypeId6,
3031
+ [TypeId7]: TypeId7,
2885
3032
  [Symbol.iterator]() {
2886
3033
  return this.params[Symbol.iterator]();
2887
3034
  },
2888
3035
  [symbolRedactable](context) {
2889
3036
  return {
2890
3037
  _id: "UrlParams",
2891
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3038
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2892
3039
  };
2893
3040
  },
2894
3041
  toJSON() {
@@ -2901,7 +3048,7 @@ var Proto4 = {
2901
3048
  return array(this.params.flat());
2902
3049
  }
2903
3050
  };
2904
- var make23 = (params) => {
3051
+ var make24 = (params) => {
2905
3052
  const self = Object.create(Proto4);
2906
3053
  self.params = params;
2907
3054
  return self;
@@ -2920,7 +3067,7 @@ var fromInput2 = (input) => {
2920
3067
  out.push(parsed[i]);
2921
3068
  }
2922
3069
  }
2923
- return make23(out);
3070
+ return make24(out);
2924
3071
  };
2925
3072
  var fromInputNested = (input) => {
2926
3073
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2946,7 +3093,7 @@ var fromInputNested = (input) => {
2946
3093
  var coerce = (value) => isRedacted(value) ? value : String(value);
2947
3094
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2948
3095
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2949
- var empty4 = /* @__PURE__ */ make23([]);
3096
+ var empty4 = /* @__PURE__ */ make24([]);
2950
3097
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2951
3098
  const params = fromInput2(input).params.slice();
2952
3099
  const keys = new Set;
@@ -2958,12 +3105,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2958
3105
  continue;
2959
3106
  params.push(self.params[i]);
2960
3107
  }
2961
- return make23(params);
3108
+ return make24(params);
2962
3109
  });
2963
3110
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2964
3111
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2965
3112
  const patterns = Array.isArray(key) ? key : [key];
2966
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make16(value) : value]);
3113
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
2967
3114
  });
2968
3115
  var isRedactedName2 = isRedactedName;
2969
3116
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3014,13 +3161,13 @@ var decodeQueryKey = (key) => {
3014
3161
  return key;
3015
3162
  }
3016
3163
  };
3017
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3164
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3018
3165
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3019
3166
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3020
3167
  });
3021
3168
 
3022
3169
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3023
- var TypeId7 = "~effect/Terminal";
3170
+ var TypeId8 = "~effect/Terminal";
3024
3171
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3025
3172
 
3026
3173
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3029,17 +3176,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3029
3176
  [QuitErrorTypeId] = QuitErrorTypeId;
3030
3177
  }
3031
3178
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3032
- var make24 = (impl) => Terminal.of({
3179
+ var make25 = (impl) => Terminal.of({
3033
3180
  ...impl,
3034
- [TypeId7]: TypeId7
3181
+ [TypeId8]: TypeId8
3035
3182
  });
3036
3183
 
3037
3184
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3038
3185
  import * as readline from "readline";
3039
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3186
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3040
3187
  const stdin = process.stdin;
3041
3188
  const stdout = process.stdout;
3042
- const lines = yield* make8();
3189
+ const lines = yield* make9();
3043
3190
  let inputEnded = stdin.readableEnded;
3044
3191
  let readlineActive = false;
3045
3192
  const onStdinEnd = () => {
@@ -3050,7 +3197,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3050
3197
  };
3051
3198
  stdin.once("end", onStdinEnd);
3052
3199
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3053
- const rlRef = yield* make9({
3200
+ const rlRef = yield* make18({
3054
3201
  acquire: acquireRelease(sync2(() => {
3055
3202
  const rl = readline.createInterface({
3056
3203
  input: stdin,
@@ -3089,7 +3236,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3089
3236
  if (stdin.isTTY)
3090
3237
  stdin.setRawMode(enabled);
3091
3238
  });
3092
- const rawModeRef = yield* make9({
3239
+ const rawModeRef = yield* make18({
3093
3240
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3094
3241
  idleTimeToLive: "10 millis"
3095
3242
  });
@@ -3110,7 +3257,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3110
3257
  return queue;
3111
3258
  });
3112
3259
  const readInput = gen(function* () {
3113
- const queue = yield* make8();
3260
+ const queue = yield* make9();
3114
3261
  const handleKeypress = (s, k) => {
3115
3262
  const userInput = {
3116
3263
  input: fromUndefinedOr(s),
@@ -3140,14 +3287,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3140
3287
  if (inputEnded) {
3141
3288
  handleEnd();
3142
3289
  } else {
3143
- yield* get3(rlRef);
3144
- yield* get3(rawModeRef);
3290
+ yield* get5(rlRef);
3291
+ yield* get5(rawModeRef);
3145
3292
  stdin.once("end", handleEnd);
3146
3293
  }
3147
3294
  return queue;
3148
3295
  });
3149
3296
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3150
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3297
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3151
3298
  onSome: succeed6
3152
3299
  })), mapError2(() => new QuitError({}))));
3153
3300
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3158,7 +3305,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3158
3305
  cause: err
3159
3306
  }))));
3160
3307
  }));
3161
- return make24({
3308
+ return make25({
3162
3309
  columns,
3163
3310
  rows,
3164
3311
  size,
@@ -3167,7 +3314,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3167
3314
  display
3168
3315
  });
3169
3316
  });
3170
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3317
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3171
3318
  function defaultShouldQuit(input) {
3172
3319
  const key = input.key;
3173
3320
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3194,7 +3341,7 @@ function toDate(input) {
3194
3341
  return toDateUtc2(makeUnsafe(input));
3195
3342
  }
3196
3343
  function parseDate(input) {
3197
- return getOrUndefined(map4(make18(input), toDateUtc2));
3344
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3198
3345
  }
3199
3346
  function toIso(input) {
3200
3347
  return formatIso(makeUnsafe(input));
@@ -9616,11 +9763,11 @@ var TranscriptSearchResult = Struct({
9616
9763
  total: Int
9617
9764
  });
9618
9765
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9619
- var TypeId8 = "~effect/http/HttpBody";
9766
+ var TypeId9 = "~effect/http/HttpBody";
9620
9767
  class Proto5 {
9621
- [TypeId8];
9768
+ [TypeId9];
9622
9769
  constructor() {
9623
- this[TypeId8] = TypeId8;
9770
+ this[TypeId9] = TypeId9;
9624
9771
  }
9625
9772
  [NodeInspectSymbol]() {
9626
9773
  return this.toJSON();
@@ -9711,7 +9858,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9711
9858
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9712
9859
 
9713
9860
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9714
- var TypeId9 = "~effect/http/HttpClientError";
9861
+ var TypeId10 = "~effect/http/HttpClientError";
9715
9862
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9716
9863
  constructor(props) {
9717
9864
  if ("cause" in props.reason) {
@@ -9723,7 +9870,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9723
9870
  super(props);
9724
9871
  }
9725
9872
  }
9726
- [TypeId9] = TypeId9;
9873
+ [TypeId10] = TypeId10;
9727
9874
  get request() {
9728
9875
  return this.reason.request;
9729
9876
  }
@@ -9827,7 +9974,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9827
9974
  }
9828
9975
  }
9829
9976
 
9830
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9977
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9831
9978
  _tag: /* @__PURE__ */ tag("HttpError"),
9832
9979
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9833
9980
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9860,7 +10007,7 @@ var updateContentLength = (headers, body) => {
9860
10007
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9861
10008
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9862
10009
  }
9863
- var make26 = (url, params, hash) => try_({
10010
+ var make27 = (url, params, hash) => try_({
9864
10011
  try: () => {
9865
10012
  const urlInstance = new URL(url, baseUrl());
9866
10013
  for (let i = 0;i < params.params.length; i++) {
@@ -9891,10 +10038,10 @@ var baseUrl = () => {
9891
10038
  };
9892
10039
 
9893
10040
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9894
- var TypeId10 = "~effect/http/HttpClientRequest";
9895
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
10041
+ var TypeId11 = "~effect/http/HttpClientRequest";
10042
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9896
10043
  var Proto6 = {
9897
- [TypeId10]: TypeId10,
10044
+ [TypeId11]: TypeId11,
9898
10045
  ...BaseProto,
9899
10046
  toJSON() {
9900
10047
  return {
@@ -9922,14 +10069,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9922
10069
  return self;
9923
10070
  }
9924
10071
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9925
- var make4 = (method) => (url, options) => modify(empty6, {
10072
+ var make5 = (method) => (url, options) => modify(empty6, {
9926
10073
  method,
9927
10074
  url,
9928
10075
  ...options ?? undefined
9929
10076
  });
9930
- var get = /* @__PURE__ */ make4("GET");
9931
- var post = /* @__PURE__ */ make4("POST");
9932
- var put = /* @__PURE__ */ make4("PUT");
10077
+ var get = /* @__PURE__ */ make5("GET");
10078
+ var post = /* @__PURE__ */ make5("POST");
10079
+ var put = /* @__PURE__ */ make5("PUT");
9933
10080
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9934
10081
  let result = self;
9935
10082
  if (options.method) {
@@ -9983,7 +10130,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9983
10130
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9984
10131
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9985
10132
  function toUrl(self) {
9986
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
10133
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9987
10134
  if (isSuccess(r)) {
9988
10135
  return some(r.success);
9989
10136
  }
@@ -9991,7 +10138,7 @@ function toUrl(self) {
9991
10138
  }
9992
10139
 
9993
10140
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9994
- var TypeId11 = "~effect/http/HttpIncomingMessage";
10141
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9995
10142
  var schemaBodyJson = (schema, options) => {
9996
10143
  const decode = decodeEffect(toCodecJson(schema));
9997
10144
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -10010,7 +10157,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
10010
10157
  var getWebSource = (self) => self[WebSourceSymbol]?.();
10011
10158
 
10012
10159
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
10013
- var TypeId12 = "~effect/http/HttpClientResponse";
10160
+ var TypeId13 = "~effect/http/HttpClientResponse";
10014
10161
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
10015
10162
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
10016
10163
  reason: new StatusCodeError({
@@ -10021,16 +10168,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
10021
10168
  }));
10022
10169
 
10023
10170
  class WebHttpClientResponse extends Class {
10024
- [TypeId11];
10025
10171
  [TypeId12];
10172
+ [TypeId13];
10026
10173
  request;
10027
10174
  source;
10028
10175
  constructor(request, source) {
10029
10176
  super();
10030
10177
  this.request = request;
10031
10178
  this.source = source;
10032
- this[TypeId11] = TypeId11;
10033
10179
  this[TypeId12] = TypeId12;
10180
+ this[TypeId13] = TypeId13;
10034
10181
  }
10035
10182
  toJSON() {
10036
10183
  return inspect(this, {
@@ -10202,7 +10349,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10202
10349
  };
10203
10350
 
10204
10351
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10205
- var TypeId13 = "~effect/http/HttpClient";
10352
+ var TypeId14 = "~effect/http/HttpClient";
10206
10353
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10207
10354
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10208
10355
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10219,7 +10366,7 @@ var makeWith2 = (postprocess, preprocess) => {
10219
10366
  return self;
10220
10367
  };
10221
10368
  var Proto7 = {
10222
- [TypeId13]: TypeId13,
10369
+ [TypeId14]: TypeId14,
10223
10370
  pipe() {
10224
10371
  return pipeArguments(this, arguments);
10225
10372
  },
@@ -10230,13 +10377,13 @@ var Proto7 = {
10230
10377
  };
10231
10378
  },
10232
10379
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
10233
- return this.execute(make4(fullMethod)(url, options));
10380
+ return this.execute(make5(fullMethod)(url, options));
10234
10381
  }]))
10235
10382
  };
10236
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10383
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10237
10384
  const scopedController = scopedRequests.get(request);
10238
10385
  const controller = scopedController ?? new AbortController;
10239
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10386
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10240
10387
  if (isFailure(urlResult)) {
10241
10388
  return fail7(new HttpClientError({
10242
10389
  reason: new InvalidUrlError({
@@ -10370,8 +10517,8 @@ class InterruptibleResponse {
10370
10517
  this.original = original;
10371
10518
  this.controller = controller;
10372
10519
  }
10520
+ [TypeId13] = TypeId13;
10373
10521
  [TypeId12] = TypeId12;
10374
- [TypeId11] = TypeId11;
10375
10522
  applyInterrupt(effect) {
10376
10523
  return suspend3(() => {
10377
10524
  responseRegistry.unregister(this.original);
@@ -10469,7 +10616,7 @@ var detectStreamBodySupport = () => {
10469
10616
  return false;
10470
10617
  }
10471
10618
  };
10472
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10619
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10473
10620
  if (request.headers.upgrade !== undefined) {
10474
10621
  return fail7(new HttpClientError({
10475
10622
  reason: new TransportError({
@@ -10560,10 +10707,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10560
10707
  });
10561
10708
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10562
10709
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10563
- var TypeId14 = "~effect/socket/Socket";
10710
+ var TypeId15 = "~effect/socket/Socket";
10564
10711
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10565
- var make28 = (options) => Socket.of({
10566
- [TypeId14]: TypeId14,
10712
+ var make29 = (options) => Socket.of({
10713
+ [TypeId15]: TypeId15,
10567
10714
  reader: options.reader,
10568
10715
  writer: options.writer
10569
10716
  });
@@ -10886,7 +11033,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10886
11033
  write,
10887
11034
  writeAll
10888
11035
  });
10889
- return succeed6(make28({
11036
+ return succeed6(make29({
10890
11037
  reader,
10891
11038
  writer
10892
11039
  }));
@@ -13819,7 +13966,7 @@ function getStreamSchemas(schema) {
13819
13966
  }
13820
13967
  var schema = /* @__PURE__ */ declare(isStream);
13821
13968
  function Stream(success, error) {
13822
- return make17(schema.ast, {
13969
+ return make16(schema.ast, {
13823
13970
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13824
13971
  success,
13825
13972
  error
@@ -13827,9 +13974,9 @@ function Stream(success, error) {
13827
13974
  }
13828
13975
 
13829
13976
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13830
- var TypeId15 = "~effect/rpc/Rpc";
13977
+ var TypeId16 = "~effect/rpc/Rpc";
13831
13978
  var Proto8 = {
13832
- [TypeId15]: TypeId15,
13979
+ [TypeId16]: TypeId16,
13833
13980
  pipe() {
13834
13981
  return pipeArguments(this, arguments);
13835
13982
  },
@@ -13918,7 +14065,7 @@ var makeProto = (options) => {
13918
14065
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13919
14066
  return Rpc;
13920
14067
  };
13921
- var make5 = (tag, options) => {
14068
+ var make6 = (tag, options) => {
13922
14069
  const successSchema = options?.success ?? Void;
13923
14070
  const errorSchema = options?.error ?? Never;
13924
14071
  const defectSchema = options?.defect ?? Defect();
@@ -13996,7 +14143,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13996
14143
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13997
14144
 
13998
14145
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13999
- var TypeId16 = "~effect/rpc/RpcClientError";
14146
+ var TypeId17 = "~effect/rpc/RpcClientError";
14000
14147
 
14001
14148
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
14002
14149
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -14005,11 +14152,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
14005
14152
  })) {
14006
14153
  }
14007
14154
 
14008
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
14155
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
14009
14156
  _tag: /* @__PURE__ */ tag("RpcClientError"),
14010
14157
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
14011
14158
  })) {
14012
- [TypeId16] = TypeId16;
14159
+ [TypeId17] = TypeId17;
14013
14160
  get message() {
14014
14161
  return `${this.reason._tag}: ${this.reason.message}`;
14015
14162
  }
@@ -14152,12 +14299,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
14152
14299
  requests: options.requests,
14153
14300
  annotations: options.annotations
14154
14301
  });
14155
- var make6 = (...rpcs) => makeProto2({
14302
+ var make7 = (...rpcs) => makeProto2({
14156
14303
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
14157
14304
  annotations: empty3()
14158
14305
  });
14159
14306
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14160
- var TypeId17 = "~effect/rpc/RpcMiddleware";
14307
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
14161
14308
  var Service = () => (id, options) => {
14162
14309
  const limit = getStackTraceLimit();
14163
14310
  let creationError;
@@ -14175,7 +14322,7 @@ var Service = () => (id, options) => {
14175
14322
  return creationError?.stack;
14176
14323
  }
14177
14324
  });
14178
- ServiceClass_[TypeId17] = TypeId17;
14325
+ ServiceClass_[TypeId18] = TypeId18;
14179
14326
  ServiceClass_.error = options?.error ?? Never;
14180
14327
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14181
14328
  return ServiceClass;
@@ -14258,96 +14405,96 @@ var ProgramOutcome = Union([
14258
14405
  Struct({ status: Literal("failed"), failureSummary: String4 })
14259
14406
  ]);
14260
14407
 
14261
- class RunnerReplicaRpcs extends make6(make5("Claim", {
14408
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
14262
14409
  payload: WorkUnitClaimInput,
14263
14410
  success: WorkUnitClaimResult,
14264
14411
  error: RunnerRpcError
14265
- }), make5("Heartbeat", {
14412
+ }), make6("Heartbeat", {
14266
14413
  payload: WorkUnitHeartbeatInput,
14267
14414
  success: WorkUnitHeartbeatResult,
14268
14415
  error: RunnerRpcError
14269
- }), make5("Complete", {
14416
+ }), make6("Complete", {
14270
14417
  payload: WorkUnitCompletion,
14271
14418
  error: RunnerRpcError
14272
- }), make5("Release", {
14419
+ }), make6("Release", {
14273
14420
  payload: WorkUnitReleaseInput,
14274
14421
  error: RunnerRpcError
14275
- }), make5("Signals", {
14422
+ }), make6("Signals", {
14276
14423
  payload: { runnerReplicaId: String4 },
14277
14424
  success: RunnerSignal,
14278
14425
  error: RunnerRpcError,
14279
14426
  stream: true
14280
- }), make5("ReportSteer", {
14427
+ }), make6("ReportSteer", {
14281
14428
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
14282
14429
  success: Void,
14283
14430
  error: RunnerRpcError
14284
- }), make5("AppendTranscript", {
14431
+ }), make6("AppendTranscript", {
14285
14432
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
14286
14433
  success: Void,
14287
14434
  error: RunnerRpcError
14288
- }), make5("CreateCheckpointFile", {
14435
+ }), make6("CreateCheckpointFile", {
14289
14436
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
14290
14437
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14291
14438
  error: Union([RunnerRpcError, RunFileRefused])
14292
- }), make5("CheckpointFileParts", {
14439
+ }), make6("CheckpointFileParts", {
14293
14440
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14294
14441
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14295
14442
  error: RunnerRpcError
14296
- }), make5("CompleteCheckpointFile", {
14443
+ }), make6("CompleteCheckpointFile", {
14297
14444
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14298
14445
  success: RunFileRecord,
14299
14446
  error: RunnerRpcError
14300
- }), make5("SaveCheckpoint", {
14447
+ }), make6("SaveCheckpoint", {
14301
14448
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
14302
14449
  success: Void,
14303
14450
  error: RunnerRpcError
14304
- }), make5("ResumeCheckpoint", {
14451
+ }), make6("ResumeCheckpoint", {
14305
14452
  payload: { lease: ProgramLease },
14306
14453
  success: UndefinedOr(ResumedCheckpoint),
14307
14454
  error: RunnerRpcError
14308
- }), make5("SettledCheckpoints", {
14455
+ }), make6("SettledCheckpoints", {
14309
14456
  success: ArraySchema(Struct({
14310
14457
  stepAttemptId: String4,
14311
14458
  ref: optionalKey(String4),
14312
14459
  repoBinding: optionalKey(WorkUnitRepoBinding)
14313
14460
  })),
14314
14461
  error: RunnerRpcError
14315
- }), make5("ForgetCheckpoints", {
14462
+ }), make6("ForgetCheckpoints", {
14316
14463
  payload: { stepAttemptIds: ArraySchema(String4) },
14317
14464
  success: Void,
14318
14465
  error: RunnerRpcError
14319
- }), make5("GitCredential", {
14466
+ }), make6("GitCredential", {
14320
14467
  payload: { repoBindingId: String4 },
14321
14468
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
14322
14469
  error: RunnerRpcError
14323
- }), make5("Bundle", {
14470
+ }), make6("Bundle", {
14324
14471
  payload: { digest: String4 },
14325
14472
  success: Struct({ bundle: String4 }),
14326
14473
  error: RunnerRpcError
14327
- }), make5("SettledRuns", {
14474
+ }), make6("SettledRuns", {
14328
14475
  payload: { runIds: ArraySchema(String4) },
14329
14476
  success: ArraySchema(String4),
14330
14477
  error: RunnerRpcError
14331
- }), make5("KnownEvidence", {
14478
+ }), make6("KnownEvidence", {
14332
14479
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
14333
14480
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
14334
14481
  error: RunnerRpcError
14335
14482
  })).middleware(RunnerAuthentication) {
14336
14483
  }
14337
14484
 
14338
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
14485
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
14339
14486
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
14340
14487
  error: RunnerRpcError
14341
- }), make5("DeferredDone", {
14488
+ }), make6("DeferredDone", {
14342
14489
  payload: { lease: ProgramLease, name: String4, exit: Json },
14343
14490
  error: RunnerRpcError
14344
- }), make5("ScheduleClock", {
14491
+ }), make6("ScheduleClock", {
14345
14492
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
14346
14493
  error: RunnerRpcError
14347
- }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14494
+ }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
14348
14495
  }
14349
14496
 
14350
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14497
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14351
14498
  payload: {
14352
14499
  lease: ProgramLease,
14353
14500
  step: String4,
@@ -14367,7 +14514,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14367
14514
  },
14368
14515
  success: Struct({ questionId: String4 }),
14369
14516
  error: RunnerRpcError
14370
- }), make5("StartAgentStep", {
14517
+ }), make6("StartAgentStep", {
14371
14518
  payload: {
14372
14519
  lease: ProgramLease,
14373
14520
  step: String4,
@@ -14383,7 +14530,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14383
14530
  },
14384
14531
  success: Struct({ stepAttemptId: String4 }),
14385
14532
  error: RunnerRpcError
14386
- }), make5("StartVerification", {
14533
+ }), make6("StartVerification", {
14387
14534
  payload: {
14388
14535
  lease: ProgramLease,
14389
14536
  step: String4,
@@ -14391,6 +14538,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14391
14538
  revision: optionalKey(String4),
14392
14539
  checks: optional(ArraySchema(String4)),
14393
14540
  suggested: optionalKey(ArraySchema(ApprovedCheck)),
14541
+ extra: optionalKey(ArraySchema(ApprovedCheck)),
14394
14542
  rerunFailed: optionalKey(Boolean2),
14395
14543
  measure: optionalKey(Struct({
14396
14544
  base: optionalKey(String4),
@@ -14403,7 +14551,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14403
14551
  },
14404
14552
  success: Struct({ verificationId: String4 }),
14405
14553
  error: RunnerRpcError
14406
- }), make5("AwaitEvent", {
14554
+ }), make6("AwaitEvent", {
14407
14555
  payload: {
14408
14556
  lease: ProgramLease,
14409
14557
  step: String4,
@@ -14419,7 +14567,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14419
14567
  })))
14420
14568
  },
14421
14569
  error: RunnerRpcError
14422
- }), make5("ClaimResource", {
14570
+ }), make6("ClaimResource", {
14423
14571
  payload: {
14424
14572
  lease: ProgramLease,
14425
14573
  step: String4,
@@ -14428,7 +14576,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14428
14576
  action: Literals(["claim", "take_over", "let_go"])
14429
14577
  },
14430
14578
  error: RunnerRpcError
14431
- }), make5("AdmitChild", {
14579
+ }), make6("AdmitChild", {
14432
14580
  payload: {
14433
14581
  lease: ProgramLease,
14434
14582
  step: String4,
@@ -14439,7 +14587,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14439
14587
  },
14440
14588
  success: Struct({ runId: String4 }),
14441
14589
  error: RunnerRpcError
14442
- }), make5("StoreArtifact", {
14590
+ }), make6("StoreArtifact", {
14443
14591
  payload: {
14444
14592
  lease: ProgramLease,
14445
14593
  step: String4,
@@ -14451,7 +14599,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14451
14599
  },
14452
14600
  success: Struct({ artifactId: String4 }),
14453
14601
  error: RunnerRpcError
14454
- }), make5("RecordNote", {
14602
+ }), make6("RecordNote", {
14455
14603
  payload: {
14456
14604
  lease: ProgramLease,
14457
14605
  step: String4,
@@ -14460,7 +14608,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14460
14608
  kind: optional(Literals(["note", "blocker"]))
14461
14609
  },
14462
14610
  error: RunnerRpcError
14463
- }), make5("PerformHostEffect", {
14611
+ }), make6("PerformHostEffect", {
14464
14612
  payload: {
14465
14613
  lease: ProgramLease,
14466
14614
  step: String4,
@@ -14489,7 +14637,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14489
14637
  },
14490
14638
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
14491
14639
  error: RunnerRpcError
14492
- }), make5("AlertTask", {
14640
+ }), make6("AlertTask", {
14493
14641
  payload: {
14494
14642
  lease: ProgramLease,
14495
14643
  step: String4,
@@ -14506,7 +14654,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14506
14654
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
14507
14655
  }),
14508
14656
  error: RunnerRpcError
14509
- }), make5("ReadTranscripts", {
14657
+ }), make6("ReadTranscripts", {
14510
14658
  payload: {
14511
14659
  lease: ProgramLease,
14512
14660
  step: String4,
@@ -14541,7 +14689,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14541
14689
  })))
14542
14690
  }),
14543
14691
  error: RunnerRpcError
14544
- }), make5("PipelineStatus", {
14692
+ }), make6("PipelineStatus", {
14545
14693
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14546
14694
  success: Struct({
14547
14695
  head: String4,
@@ -14575,11 +14723,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14575
14723
  }))
14576
14724
  }),
14577
14725
  error: RunnerRpcError
14578
- }), make5("ReportPipeline", {
14726
+ }), make6("ReportPipeline", {
14579
14727
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14580
14728
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14581
14729
  error: RunnerRpcError
14582
- }), make5("ReviewThreads", {
14730
+ }), make6("ReviewThreads", {
14583
14731
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14584
14732
  success: Struct({
14585
14733
  threads: ArraySchema(Struct({
@@ -14591,7 +14739,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14591
14739
  }))
14592
14740
  }),
14593
14741
  error: RunnerRpcError
14594
- }), make5("OpenChangeRequests", {
14742
+ }), make6("OpenChangeRequests", {
14595
14743
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14596
14744
  success: Struct({
14597
14745
  changeRequests: ArraySchema(Struct({
@@ -14605,7 +14753,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14605
14753
  }))
14606
14754
  }),
14607
14755
  error: RunnerRpcError
14608
- }), make5("OwnChangeRequests", {
14756
+ }), make6("OwnChangeRequests", {
14609
14757
  payload: { lease: ProgramLease, step: String4 },
14610
14758
  success: Struct({
14611
14759
  changeRequests: ArraySchema(Struct({
@@ -14618,7 +14766,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14618
14766
  }))
14619
14767
  }),
14620
14768
  error: RunnerRpcError
14621
- }), make5("Propose", {
14769
+ }), make6("Propose", {
14622
14770
  payload: {
14623
14771
  lease: ProgramLease,
14624
14772
  step: String4,
@@ -14647,7 +14795,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14647
14795
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
14648
14796
  }),
14649
14797
  error: RunnerRpcError
14650
- }), make5("ReadProject", {
14798
+ }), make6("ReadProject", {
14651
14799
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14652
14800
  success: Struct({
14653
14801
  project: Struct({ id: String4, name: String4 }),
@@ -14670,7 +14818,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14670
14818
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14671
14819
  }),
14672
14820
  error: RunnerRpcError
14673
- }), make5("DraftUpdate", {
14821
+ }), make6("DraftUpdate", {
14674
14822
  payload: {
14675
14823
  lease: ProgramLease,
14676
14824
  step: String4,
@@ -14685,7 +14833,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14685
14833
  },
14686
14834
  success: Struct({ id: String4 }),
14687
14835
  error: RunnerRpcError
14688
- }), make5("CreatePlanTasks", {
14836
+ }), make6("CreatePlanTasks", {
14689
14837
  payload: {
14690
14838
  lease: ProgramLease,
14691
14839
  projectId: optionalKey(String4),
@@ -14703,15 +14851,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14703
14851
  },
14704
14852
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14705
14853
  error: RunnerRpcError
14706
- }), make5("IntegrationBranch", {
14854
+ }), make6("IntegrationBranch", {
14707
14855
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14708
14856
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14709
14857
  error: RunnerRpcError
14710
- }), make5("DeliveryBase", {
14858
+ }), make6("DeliveryBase", {
14711
14859
  payload: { lease: ProgramLease },
14712
14860
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14713
14861
  error: RunnerRpcError
14714
- }), make5("MergeChangeRequest", {
14862
+ }), make6("MergeChangeRequest", {
14715
14863
  payload: {
14716
14864
  lease: ProgramLease,
14717
14865
  step: String4,
@@ -14729,7 +14877,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14729
14877
  Struct({ status: Literal("moved"), head: String4 })
14730
14878
  ]),
14731
14879
  error: RunnerRpcError
14732
- }), make5("ApproveChangeRequest", {
14880
+ }), make6("ApproveChangeRequest", {
14733
14881
  payload: {
14734
14882
  lease: ProgramLease,
14735
14883
  step: String4,
@@ -14745,7 +14893,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14745
14893
  Struct({ approved: Literal(false), reason: String4 })
14746
14894
  ]),
14747
14895
  error: RunnerRpcError
14748
- }), make5("CloseChangeRequest", {
14896
+ }), make6("CloseChangeRequest", {
14749
14897
  payload: {
14750
14898
  lease: ProgramLease,
14751
14899
  step: String4,
@@ -14755,7 +14903,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14755
14903
  },
14756
14904
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14757
14905
  error: RunnerRpcError
14758
- }), make5("RerunPipeline", {
14906
+ }), make6("RerunPipeline", {
14759
14907
  payload: {
14760
14908
  lease: ProgramLease,
14761
14909
  step: String4,
@@ -14765,7 +14913,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14765
14913
  },
14766
14914
  success: Struct({ head: String4, pipelines: Int }),
14767
14915
  error: RunnerRpcError
14768
- }), make5("PublishRelease", {
14916
+ }), make6("PublishRelease", {
14769
14917
  payload: {
14770
14918
  lease: ProgramLease,
14771
14919
  step: String4,
@@ -14777,14 +14925,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
14777
14925
  },
14778
14926
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14779
14927
  error: RunnerRpcError
14780
- }), make5("ProgramSecrets", {
14928
+ }), make6("ProgramSecrets", {
14781
14929
  payload: { lease: ProgramLease },
14782
14930
  success: Record(String4, String4),
14783
14931
  error: RunnerRpcError
14784
14932
  })).middleware(RunnerAuthentication) {
14785
14933
  }
14786
14934
 
14787
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14935
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14788
14936
  payload: {
14789
14937
  lease: ProgramLease,
14790
14938
  step: String4,
@@ -14796,11 +14944,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14796
14944
  },
14797
14945
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14798
14946
  error: Union([RunnerRpcError, RunFileRefused])
14799
- }), make5("RunFileParts", {
14947
+ }), make6("RunFileParts", {
14800
14948
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14801
14949
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14802
14950
  error: RunnerRpcError
14803
- }), make5("CompleteRunFile", {
14951
+ }), make6("CompleteRunFile", {
14804
14952
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14805
14953
  success: RunFileRecord,
14806
14954
  error: RunnerRpcError
@@ -14810,7 +14958,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14810
14958
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14811
14959
 
14812
14960
  // apps/cli/src/oauth.ts
14813
- var Scope = "openid profile email offline_access kitman:cli";
14961
+ var Scope2 = "openid profile email offline_access kitman:cli";
14814
14962
  var CallbackPath = "/auth/callback";
14815
14963
 
14816
14964
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14829,7 +14977,7 @@ function buildAuthorizeUrl(input) {
14829
14977
  url.searchParams.set("response_type", "code");
14830
14978
  url.searchParams.set("client_id", input.clientId);
14831
14979
  url.searchParams.set("redirect_uri", input.redirectUri);
14832
- url.searchParams.set("scope", Scope);
14980
+ url.searchParams.set("scope", Scope2);
14833
14981
  url.searchParams.set("code_challenge", input.codeChallenge);
14834
14982
  url.searchParams.set("code_challenge_method", "S256");
14835
14983
  url.searchParams.set("state", input.state);
@@ -15537,7 +15685,7 @@ var spawnedTransport = (env) => gen(function* () {
15537
15685
  const spawner = yield* ChildProcessSpawner;
15538
15686
  const input = yield* unbounded2();
15539
15687
  const encoder = new TextEncoder;
15540
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
15688
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15541
15689
  extendEnv: false,
15542
15690
  env,
15543
15691
  stdin: fromQueue(input),
@@ -15568,7 +15716,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
15568
15716
  const spawner = yield* ChildProcessSpawner;
15569
15717
  const env = coreEnv(options);
15570
15718
  const run = (args) => gen(function* () {
15571
- const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15719
+ const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15572
15720
  const [stdout, stderr, exitCode] = yield* all3([
15573
15721
  mkString(decodeText(handle.stdout)),
15574
15722
  mkString(decodeText(handle.stderr)),
@@ -15594,7 +15742,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15594
15742
  }
15595
15743
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15596
15744
  const spawner = yield* ChildProcessSpawner;
15597
- const handle = yield* spawner.spawn(make2(command, args, {
15745
+ const handle = yield* spawner.spawn(make3(command, args, {
15598
15746
  stdin: "ignore",
15599
15747
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15600
15748
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15620,7 +15768,7 @@ var shellOutputTailChars2 = 64 * 1024;
15620
15768
  var runProcess2 = (argv, options) => gen(function* () {
15621
15769
  const spawner = yield* ChildProcessSpawner;
15622
15770
  const [command, ...args] = argv;
15623
- const handle = yield* spawner.spawn(make2(command, args, {
15771
+ const handle = yield* spawner.spawn(make3(command, args, {
15624
15772
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15625
15773
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15626
15774
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -16053,4 +16201,4 @@ function checkServices(declaration) {
16053
16201
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
16054
16202
  }
16055
16203
 
16056
- 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, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, newerKitmanVersion, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, 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, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, 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, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
16204
+ 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, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, NetworkHost, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, tokensSpent, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, RunWaitUntils, isTestReportName, checkTests, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, RunnerExecutionBackend, MaxRunnerConcurrency, PinnedImage, RunnerSettingNames, RunnerSettingsUpdate, defaultRunnerSettings, shownRunnerSetting, defaultRunnerCapabilities, deliveryProviderActions, newerKitmanVersion, MemoryStatuses, MemoryScopes, MaxMemoryListLimit, DecisionStatuses, Session, SessionEnd, SessionUpdate, SessionUpdateCreate, FixFlowRecoveryActions, KitmanAgentCapabilityNames, sha2562, isRunFileRefusalReason, runFileRefusalWords, RunFileRefused, runFileContentType, repositoryKey, 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, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, 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, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };