@kitman-sh/cli 0.51.0 → 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-fqh4pj6b.js → chunk-2nq80r46.js} +60 -14
  2. package/dist/{chunk-5hsqbwzd.js → chunk-2t1hcdeq.js} +20 -20
  3. package/dist/{chunk-04wqa07j.js → chunk-5yygjn0k.js} +1 -1
  4. package/dist/{chunk-2d1ck2fa.js → chunk-84qb67e2.js} +1 -1
  5. package/dist/{chunk-adevz872.js → chunk-9hde8p6b.js} +6 -6
  6. package/dist/{chunk-hf0chy5n.js → chunk-a40yta1r.js} +3 -3
  7. package/dist/{chunk-s5qejghj.js → chunk-axfp5tzk.js} +7 -7
  8. package/dist/{chunk-5pjbxhxy.js → chunk-bhz25x76.js} +3 -3
  9. package/dist/{chunk-5smh4dp2.js → chunk-bj0zchck.js} +35 -184
  10. package/dist/{chunk-6ryjppc7.js → chunk-chbdcf34.js} +8 -8
  11. package/dist/{chunk-whspb67e.js → chunk-eqh0h088.js} +24 -24
  12. package/dist/{chunk-xg5essbk.js → chunk-h5ydhdhx.js} +20 -20
  13. package/dist/{chunk-558rmyma.js → chunk-kt26vpwf.js} +9 -9
  14. package/dist/{chunk-a71b15k3.js → chunk-mmt6xq48.js} +2 -2
  15. package/dist/{chunk-c3yzdpwf.js → chunk-my9db578.js} +4 -4
  16. package/dist/{chunk-8gkrs473.js → chunk-pppryg54.js} +5 -5
  17. package/dist/{chunk-tfwgeqx5.js → chunk-q2z8rct0.js} +4 -4
  18. package/dist/{chunk-j3x7fcrd.js → chunk-qjfzcrv5.js} +4 -4
  19. package/dist/{chunk-tse7tfe9.js → chunk-qsbq9gvr.js} +338 -181
  20. package/dist/{chunk-n3jpxd14.js → chunk-tfznw549.js} +2 -2
  21. package/dist/{chunk-9ykh05hz.js → chunk-tqspx38s.js} +1 -1
  22. package/dist/{chunk-vaeva1k8.js → chunk-trtgab3h.js} +2 -2
  23. package/dist/{chunk-hasds4yd.js → chunk-wb04fv2s.js} +32 -32
  24. package/dist/{chunk-4vxbxjf8.js → chunk-wxg9k10v.js} +1 -1
  25. package/dist/{chunk-ptqswdck.js → chunk-xbqd3kqc.js} +12 -12
  26. package/dist/{chunk-k462v2v7.js → chunk-zb4t1yrt.js} +60 -102
  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,
@@ -192,9 +204,6 @@ import {
192
204
  logError,
193
205
  effectify,
194
206
  decode,
195
- isRedacted,
196
- make16,
197
- value,
198
207
  defaultParseOptions,
199
208
  omit,
200
209
  map10,
@@ -205,7 +214,7 @@ import {
205
214
  decodeUnknownExit,
206
215
  decodeUnknownOption,
207
216
  decodeOption,
208
- make17,
217
+ make16,
209
218
  isSchema,
210
219
  optionalKey,
211
220
  optional,
@@ -266,19 +275,23 @@ import {
266
275
  decodeJsonStringOption,
267
276
  encodeJsonStringSync,
268
277
  encodePrettyJsonString
269
- } from "./chunk-k462v2v7.js";
278
+ } from "./chunk-zb4t1yrt.js";
270
279
  import {
271
280
  map,
272
281
  makeEquivalence,
273
282
  Clock,
274
283
  currentTimeMillis,
275
284
  bytes,
285
+ join,
286
+ interrupt,
287
+ getCurrent,
288
+ runIn,
276
289
  BadArgument,
277
290
  systemError,
278
291
  badArgument,
279
292
  makeUnsafe2,
280
- make7,
281
293
  make8,
294
+ make9,
282
295
  sliding,
283
296
  unbounded2,
284
297
  offer,
@@ -294,8 +307,6 @@ import {
294
307
  isSink,
295
308
  fromChannel,
296
309
  drain,
297
- make9,
298
- get3,
299
310
  isStream,
300
311
  fromChannel2,
301
312
  callback,
@@ -336,18 +347,21 @@ import {
336
347
  optionalEnv,
337
348
  harnessesUnsupportedInSrt2,
338
349
  harnessesUnsupportedInDocker2
339
- } from "./chunk-5smh4dp2.js";
350
+ } from "./chunk-bj0zchck.js";
340
351
  import {
352
+ isRedacted,
353
+ make,
354
+ value,
341
355
  ExitCode,
342
356
  ProcessId,
343
357
  makeHandle,
344
- make,
358
+ make2,
345
359
  ChildProcessSpawner,
346
360
  display,
347
- make2,
361
+ make3,
348
362
  parseFdName,
349
363
  fdName
350
- } from "./chunk-fqh4pj6b.js";
364
+ } from "./chunk-2nq80r46.js";
351
365
  import {
352
366
  isDateTime,
353
367
  Numeric,
@@ -360,7 +374,8 @@ import {
360
374
  SecretScope,
361
375
  SecretHosts,
362
376
  isSecretReference
363
- } from "./chunk-4vxbxjf8.js";
377
+ } from "./chunk-wxg9k10v.js";
378
+
364
379
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
380
  var makeEquivalence3 = Tuple;
366
381
 
@@ -498,7 +513,7 @@ var fromDateUnsafe = (date) => {
498
513
  }
499
514
  return makeUtc(epochMillis);
500
515
  };
501
- var makeUnsafe6 = (input) => {
516
+ var makeUnsafe7 = (input) => {
502
517
  if (isDateTime2(input)) {
503
518
  return input;
504
519
  } else if (input instanceof Date) {
@@ -518,7 +533,7 @@ var makeUnsafe6 = (input) => {
518
533
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
519
534
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
520
535
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
521
- var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
536
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
522
537
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
523
538
  var nowUnsafe = () => makeUtc(Date.now());
524
539
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -625,7 +640,7 @@ class Metric$ {
625
640
  }
626
641
  hook(context) {
627
642
  const key = this.key(context);
628
- const registry = get4(context, MetricRegistry);
643
+ const registry = get3(context, MetricRegistry);
629
644
  let metadata = registry.get(key);
630
645
  if (isUndefined(metadata)) {
631
646
  metadata = this.metadata(this.createHooks());
@@ -634,11 +649,11 @@ class Metric$ {
634
649
  return metadata.hooks;
635
650
  }
636
651
  removeUnsafe(context) {
637
- get4(context, MetricRegistry).delete(this.key(context));
652
+ get3(context, MetricRegistry).delete(this.key(context));
638
653
  }
639
654
  registerUnsafe(context, hooks) {
640
655
  const key = this.key(context);
641
- const registry = get4(context, MetricRegistry);
656
+ const registry = get3(context, MetricRegistry);
642
657
  const metadata = this.metadata({
643
658
  get: hooks.get,
644
659
  update: constVoid,
@@ -654,7 +669,7 @@ class Metric$ {
654
669
  };
655
670
  }
656
671
  key(context) {
657
- const extraAttributes = get4(context, CurrentMetricAttributes);
672
+ const extraAttributes = get3(context, CurrentMetricAttributes);
658
673
  if (extraAttributes !== this.#extraAttributes) {
659
674
  this.#extraAttributes = extraAttributes;
660
675
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -906,9 +921,151 @@ var toNumber = (b) => {
906
921
  return some(Number(b));
907
922
  };
908
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
+
909
1066
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
910
- var makeUnsafe = makeUnsafe6;
911
- var make18 = make3;
1067
+ var makeUnsafe = makeUnsafe7;
1068
+ var make19 = make4;
912
1069
  var now2 = now;
913
1070
  var nowUnsafe2 = nowUnsafe;
914
1071
  var toDateUtc2 = toDateUtc;
@@ -1123,7 +1280,7 @@ var readableToPullUnsafe = (options) => {
1123
1280
  const readable = options.readable;
1124
1281
  const chunkSize = options.chunkSize ?? 4096;
1125
1282
  const closeOnDone = options.closeOnDone ?? true;
1126
- const exit = options.exit ?? make7(undefined);
1283
+ const exit = options.exit ?? make8(undefined);
1127
1284
  const latch = options.latch ?? makeUnsafe2(false);
1128
1285
  function onReadable() {
1129
1286
  latch.openUnsafe();
@@ -1227,7 +1384,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1227
1384
  windowsHide: true
1228
1385
  }, onExit);
1229
1386
  };
1230
- var make19 = /* @__PURE__ */ gen(function* () {
1387
+ var make20 = /* @__PURE__ */ gen(function* () {
1231
1388
  const fs = yield* FileSystem;
1232
1389
  const path = yield* Path;
1233
1390
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1687,7 +1844,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1687
1844
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1688
1845
  const toOption = options.to ?? "stdin";
1689
1846
  if (toOption === "stdin") {
1690
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1847
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1691
1848
  ...command.options,
1692
1849
  stdin: {
1693
1850
  ...stdinConfig,
@@ -1707,7 +1864,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1707
1864
  type: "input",
1708
1865
  stream: sourceStream
1709
1866
  };
1710
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1867
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1711
1868
  ...command.options,
1712
1869
  additionalFds: {
1713
1870
  ...existingFds,
@@ -1715,7 +1872,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1715
1872
  }
1716
1873
  })));
1717
1874
  } else {
1718
- handles.push(yield* spawnCommand(make2(command.command, command.args, {
1875
+ handles.push(yield* spawnCommand(make3(command.command, command.args, {
1719
1876
  ...command.options,
1720
1877
  stdin: {
1721
1878
  ...stdinConfig,
@@ -1754,9 +1911,9 @@ var make19 = /* @__PURE__ */ gen(function* () {
1754
1911
  }
1755
1912
  }
1756
1913
  });
1757
- return make(spawnCommand);
1914
+ return make2(spawnCommand);
1758
1915
  });
1759
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1916
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1760
1917
  var flattenCommand = (command) => {
1761
1918
  const commands = [];
1762
1919
  const pipeOptions = [];
@@ -2317,10 +2474,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2317
2474
  var layer2 = layer7;
2318
2475
 
2319
2476
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2320
- var TypeId3 = "~effect/Stdio";
2321
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2322
- var make20 = (options) => ({
2323
- [TypeId3]: TypeId3,
2477
+ var TypeId4 = "~effect/Stdio";
2478
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2479
+ var make21 = (options) => ({
2480
+ [TypeId4]: TypeId4,
2324
2481
  stdinIsTerminal: succeed6(false),
2325
2482
  stdoutIsTerminal: succeed6(false),
2326
2483
  stderrIsTerminal: succeed6(false),
@@ -2328,7 +2485,7 @@ var make20 = (options) => ({
2328
2485
  });
2329
2486
 
2330
2487
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2331
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2488
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2332
2489
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2333
2490
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2334
2491
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2528,7 +2685,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2528
2685
  const uuid = bytes(randomBytes(16));
2529
2686
  return format === "bytes" ? uuid : stringify(uuid);
2530
2687
  };
2531
- var make21 = (randomBytes) => {
2688
+ var make22 = (randomBytes) => {
2532
2689
  const randomBytesChecked = (size) => {
2533
2690
  checkSize(size);
2534
2691
  return randomBytes(size);
@@ -2562,7 +2719,7 @@ var fillRandom = (crypto2, size) => {
2562
2719
  }
2563
2720
  return bytes;
2564
2721
  };
2565
- 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)))));
2566
2723
  var randomBytesUnsafe = (size) => {
2567
2724
  checkSize(size);
2568
2725
  return fillRandom(globalThis.crypto, size);
@@ -2570,10 +2727,10 @@ var randomBytesUnsafe = (size) => {
2570
2727
  var uuidV4Unsafe = (options) => makeUuid(v4Bytes, randomBytesUnsafe, options?.format);
2571
2728
 
2572
2729
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2573
- var TypeId4 = "~effect/http/Cookies";
2730
+ var TypeId5 = "~effect/http/Cookies";
2574
2731
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2575
2732
  var Proto2 = {
2576
- [TypeId4]: TypeId4,
2733
+ [TypeId5]: TypeId5,
2577
2734
  ...BaseProto,
2578
2735
  toJSON() {
2579
2736
  return {
@@ -2752,14 +2909,14 @@ var tryDecodeURIComponent = (str) => {
2752
2909
  };
2753
2910
 
2754
2911
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2755
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2912
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2756
2913
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2757
- [TypeId5]: {
2758
- value: TypeId5
2914
+ [TypeId6]: {
2915
+ value: TypeId6
2759
2916
  },
2760
2917
  [symbolRedactable]: {
2761
2918
  value(context) {
2762
- return redact2(this, get4(context, CurrentRedactedNames));
2919
+ return redact2(this, get3(context, CurrentRedactedNames));
2763
2920
  }
2764
2921
  },
2765
2922
  toJSON: {
@@ -2784,7 +2941,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2784
2941
  value: BaseProto[NodeInspectSymbol]
2785
2942
  }
2786
2943
  });
2787
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2944
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2788
2945
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2789
2946
  var empty = /* @__PURE__ */ Object.create(Proto3);
2790
2947
  var fromInput = (input) => {
@@ -2809,21 +2966,21 @@ var fromInput = (input) => {
2809
2966
  };
2810
2967
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2811
2968
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2812
- const out = make22(self);
2969
+ const out = make23(self);
2813
2970
  out[key.toLowerCase()] = value;
2814
2971
  return out;
2815
2972
  });
2816
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2973
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2817
2974
  ...self,
2818
2975
  ...fromInput(headers)
2819
2976
  }));
2820
2977
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2821
- const out = make22(self);
2978
+ const out = make23(self);
2822
2979
  Object.assign(out, headers);
2823
2980
  return out;
2824
2981
  });
2825
2982
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2826
- const out = make22(self);
2983
+ const out = make23(self);
2827
2984
  delete out[key.toLowerCase()];
2828
2985
  return out;
2829
2986
  });
@@ -2835,12 +2992,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2835
2992
  if (typeof key === "string") {
2836
2993
  const k = key.toLowerCase();
2837
2994
  if (k in self) {
2838
- out[k] = make16(self[k]);
2995
+ out[k] = make(self[k]);
2839
2996
  }
2840
2997
  } else {
2841
2998
  for (const name in self) {
2842
2999
  if (name.search(key) !== -1) {
2843
- out[name] = make16(self[name]);
3000
+ out[name] = make(self[name]);
2844
3001
  }
2845
3002
  }
2846
3003
  }
@@ -2880,18 +3037,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2880
3037
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2881
3038
 
2882
3039
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2883
- var TypeId6 = "~effect/http/UrlParams";
2884
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3040
+ var TypeId7 = "~effect/http/UrlParams";
3041
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2885
3042
  var Proto4 = {
2886
3043
  ...PipeInspectableProto,
2887
- [TypeId6]: TypeId6,
3044
+ [TypeId7]: TypeId7,
2888
3045
  [Symbol.iterator]() {
2889
3046
  return this.params[Symbol.iterator]();
2890
3047
  },
2891
3048
  [symbolRedactable](context) {
2892
3049
  return {
2893
3050
  _id: "UrlParams",
2894
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3051
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2895
3052
  };
2896
3053
  },
2897
3054
  toJSON() {
@@ -2904,7 +3061,7 @@ var Proto4 = {
2904
3061
  return array(this.params.flat());
2905
3062
  }
2906
3063
  };
2907
- var make23 = (params) => {
3064
+ var make24 = (params) => {
2908
3065
  const self = Object.create(Proto4);
2909
3066
  self.params = params;
2910
3067
  return self;
@@ -2923,7 +3080,7 @@ var fromInput2 = (input) => {
2923
3080
  out.push(parsed[i]);
2924
3081
  }
2925
3082
  }
2926
- return make23(out);
3083
+ return make24(out);
2927
3084
  };
2928
3085
  var fromInputNested = (input) => {
2929
3086
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2949,7 +3106,7 @@ var fromInputNested = (input) => {
2949
3106
  var coerce = (value) => isRedacted(value) ? value : String(value);
2950
3107
  var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2951
3108
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2952
- var empty2 = /* @__PURE__ */ make23([]);
3109
+ var empty2 = /* @__PURE__ */ make24([]);
2953
3110
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2954
3111
  const params = fromInput2(input).params.slice();
2955
3112
  const keys = new Set;
@@ -2961,12 +3118,12 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2961
3118
  continue;
2962
3119
  params.push(self.params[i]);
2963
3120
  }
2964
- return make23(params);
3121
+ return make24(params);
2965
3122
  });
2966
3123
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
2967
3124
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2968
3125
  const patterns = Array.isArray(key) ? key : [key];
2969
- 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]);
2970
3127
  });
2971
3128
  var isRedactedName2 = isRedactedName;
2972
3129
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3017,13 +3174,13 @@ var decodeQueryKey = (key) => {
3017
3174
  return key;
3018
3175
  }
3019
3176
  };
3020
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty4(), CurrentRedactedNames2);
3177
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty4(), CurrentRedactedNames2);
3021
3178
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3022
3179
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3023
3180
  });
3024
3181
 
3025
3182
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3026
- var TypeId7 = "~effect/Terminal";
3183
+ var TypeId8 = "~effect/Terminal";
3027
3184
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3028
3185
 
3029
3186
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3032,17 +3189,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3032
3189
  [QuitErrorTypeId] = QuitErrorTypeId;
3033
3190
  }
3034
3191
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3035
- var make24 = (impl) => Terminal.of({
3192
+ var make25 = (impl) => Terminal.of({
3036
3193
  ...impl,
3037
- [TypeId7]: TypeId7
3194
+ [TypeId8]: TypeId8
3038
3195
  });
3039
3196
 
3040
3197
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3041
3198
  import * as readline from "readline";
3042
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3199
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3043
3200
  const stdin = process.stdin;
3044
3201
  const stdout = process.stdout;
3045
- const lines = yield* make8();
3202
+ const lines = yield* make9();
3046
3203
  let inputEnded = stdin.readableEnded;
3047
3204
  let readlineActive = false;
3048
3205
  const onStdinEnd = () => {
@@ -3053,7 +3210,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3053
3210
  };
3054
3211
  stdin.once("end", onStdinEnd);
3055
3212
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3056
- const rlRef = yield* make9({
3213
+ const rlRef = yield* make18({
3057
3214
  acquire: acquireRelease(sync2(() => {
3058
3215
  const rl = readline.createInterface({
3059
3216
  input: stdin,
@@ -3092,7 +3249,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3092
3249
  if (stdin.isTTY)
3093
3250
  stdin.setRawMode(enabled);
3094
3251
  });
3095
- const rawModeRef = yield* make9({
3252
+ const rawModeRef = yield* make18({
3096
3253
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3097
3254
  idleTimeToLive: "10 millis"
3098
3255
  });
@@ -3113,7 +3270,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3113
3270
  return queue;
3114
3271
  });
3115
3272
  const readInput = gen(function* () {
3116
- const queue = yield* make8();
3273
+ const queue = yield* make9();
3117
3274
  const handleKeypress = (s, k) => {
3118
3275
  const userInput = {
3119
3276
  input: fromUndefinedOr(s),
@@ -3143,14 +3300,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3143
3300
  if (inputEnded) {
3144
3301
  handleEnd();
3145
3302
  } else {
3146
- yield* get3(rlRef);
3147
- yield* get3(rawModeRef);
3303
+ yield* get5(rlRef);
3304
+ yield* get5(rawModeRef);
3148
3305
  stdin.once("end", handleEnd);
3149
3306
  }
3150
3307
  return queue;
3151
3308
  });
3152
3309
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3153
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3310
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3154
3311
  onSome: succeed6
3155
3312
  })), mapError2(() => new QuitError({}))));
3156
3313
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3161,7 +3318,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3161
3318
  cause: err
3162
3319
  }))));
3163
3320
  }));
3164
- return make24({
3321
+ return make25({
3165
3322
  columns,
3166
3323
  rows,
3167
3324
  size,
@@ -3170,7 +3327,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3170
3327
  display
3171
3328
  });
3172
3329
  });
3173
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3330
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3174
3331
  function defaultShouldQuit(input) {
3175
3332
  const key = input.key;
3176
3333
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3197,7 +3354,7 @@ function toDate(input) {
3197
3354
  return toDateUtc2(makeUnsafe(input));
3198
3355
  }
3199
3356
  function parseDate(input) {
3200
- return getOrUndefined(map4(make18(input), toDateUtc2));
3357
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3201
3358
  }
3202
3359
  function toIso(input) {
3203
3360
  return formatIso(makeUnsafe(input));
@@ -11027,11 +11184,11 @@ var TranscriptSearchResult = Struct({
11027
11184
  total: Int
11028
11185
  });
11029
11186
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
11030
- var TypeId8 = "~effect/http/HttpBody";
11187
+ var TypeId9 = "~effect/http/HttpBody";
11031
11188
  class Proto5 {
11032
- [TypeId8];
11189
+ [TypeId9];
11033
11190
  constructor() {
11034
- this[TypeId8] = TypeId8;
11191
+ this[TypeId9] = TypeId9;
11035
11192
  }
11036
11193
  [NodeInspectSymbol]() {
11037
11194
  return this.toJSON();
@@ -11122,7 +11279,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
11122
11279
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
11123
11280
 
11124
11281
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
11125
- var TypeId9 = "~effect/http/HttpClientError";
11282
+ var TypeId10 = "~effect/http/HttpClientError";
11126
11283
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11127
11284
  constructor(props) {
11128
11285
  if ("cause" in props.reason) {
@@ -11134,7 +11291,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
11134
11291
  super(props);
11135
11292
  }
11136
11293
  }
11137
- [TypeId9] = TypeId9;
11294
+ [TypeId10] = TypeId10;
11138
11295
  get request() {
11139
11296
  return this.reason.request;
11140
11297
  }
@@ -11238,7 +11395,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
11238
11395
  }
11239
11396
  }
11240
11397
 
11241
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
11398
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
11242
11399
  _tag: /* @__PURE__ */ tag("HttpError"),
11243
11400
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
11244
11401
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -11271,7 +11428,7 @@ var updateContentLength = (headers, body) => {
11271
11428
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
11272
11429
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
11273
11430
  }
11274
- var make26 = (url, params, hash) => try_({
11431
+ var make27 = (url, params, hash) => try_({
11275
11432
  try: () => {
11276
11433
  const urlInstance = new URL(url, baseUrl());
11277
11434
  for (let i = 0;i < params.params.length; i++) {
@@ -11302,10 +11459,10 @@ var baseUrl = () => {
11302
11459
  };
11303
11460
 
11304
11461
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
11305
- var TypeId10 = "~effect/http/HttpClientRequest";
11306
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
11462
+ var TypeId11 = "~effect/http/HttpClientRequest";
11463
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
11307
11464
  var Proto6 = {
11308
- [TypeId10]: TypeId10,
11465
+ [TypeId11]: TypeId11,
11309
11466
  ...BaseProto,
11310
11467
  toJSON() {
11311
11468
  return {
@@ -11333,14 +11490,14 @@ function makeWith(method, url, urlParams, hash, headers, body) {
11333
11490
  return self;
11334
11491
  }
11335
11492
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty2, /* @__PURE__ */ none(), empty, empty5);
11336
- var make4 = (method) => (url, options) => modify(empty6, {
11493
+ var make5 = (method) => (url, options) => modify(empty6, {
11337
11494
  method,
11338
11495
  url,
11339
11496
  ...options ?? undefined
11340
11497
  });
11341
- var get = /* @__PURE__ */ make4("GET");
11342
- var post = /* @__PURE__ */ make4("POST");
11343
- var put = /* @__PURE__ */ make4("PUT");
11498
+ var get = /* @__PURE__ */ make5("GET");
11499
+ var post = /* @__PURE__ */ make5("POST");
11500
+ var put = /* @__PURE__ */ make5("PUT");
11344
11501
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
11345
11502
  let result = self;
11346
11503
  if (options.method) {
@@ -11394,7 +11551,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
11394
11551
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
11395
11552
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
11396
11553
  function toUrl(self) {
11397
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
11554
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
11398
11555
  if (isSuccess(r)) {
11399
11556
  return some(r.success);
11400
11557
  }
@@ -11402,7 +11559,7 @@ function toUrl(self) {
11402
11559
  }
11403
11560
 
11404
11561
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
11405
- var TypeId11 = "~effect/http/HttpIncomingMessage";
11562
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
11406
11563
  var schemaBodyJson = (schema, options) => {
11407
11564
  const decode = decodeEffect(toCodecJson(schema));
11408
11565
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -11421,7 +11578,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
11421
11578
  var getWebSource = (self) => self[WebSourceSymbol]?.();
11422
11579
 
11423
11580
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
11424
- var TypeId12 = "~effect/http/HttpClientResponse";
11581
+ var TypeId13 = "~effect/http/HttpClientResponse";
11425
11582
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
11426
11583
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
11427
11584
  reason: new StatusCodeError({
@@ -11432,16 +11589,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
11432
11589
  }));
11433
11590
 
11434
11591
  class WebHttpClientResponse extends Class {
11435
- [TypeId11];
11436
11592
  [TypeId12];
11593
+ [TypeId13];
11437
11594
  request;
11438
11595
  source;
11439
11596
  constructor(request, source) {
11440
11597
  super();
11441
11598
  this.request = request;
11442
11599
  this.source = source;
11443
- this[TypeId11] = TypeId11;
11444
11600
  this[TypeId12] = TypeId12;
11601
+ this[TypeId13] = TypeId13;
11445
11602
  }
11446
11603
  toJSON() {
11447
11604
  return inspect(this, {
@@ -11613,7 +11770,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
11613
11770
  };
11614
11771
 
11615
11772
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
11616
- var TypeId13 = "~effect/http/HttpClient";
11773
+ var TypeId14 = "~effect/http/HttpClient";
11617
11774
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
11618
11775
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
11619
11776
  var execute = /* @__PURE__ */ accessor("execute");
@@ -11630,7 +11787,7 @@ var makeWith2 = (postprocess, preprocess) => {
11630
11787
  return self;
11631
11788
  };
11632
11789
  var Proto7 = {
11633
- [TypeId13]: TypeId13,
11790
+ [TypeId14]: TypeId14,
11634
11791
  pipe() {
11635
11792
  return pipeArguments(this, arguments);
11636
11793
  },
@@ -11641,13 +11798,13 @@ var Proto7 = {
11641
11798
  };
11642
11799
  },
11643
11800
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
11644
- return this.execute(make4(fullMethod)(url, options));
11801
+ return this.execute(make5(fullMethod)(url, options));
11645
11802
  }]))
11646
11803
  };
11647
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11804
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
11648
11805
  const scopedController = scopedRequests.get(request);
11649
11806
  const controller = scopedController ?? new AbortController;
11650
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
11807
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
11651
11808
  if (isFailure(urlResult)) {
11652
11809
  return fail7(new HttpClientError({
11653
11810
  reason: new InvalidUrlError({
@@ -11781,8 +11938,8 @@ class InterruptibleResponse {
11781
11938
  this.original = original;
11782
11939
  this.controller = controller;
11783
11940
  }
11941
+ [TypeId13] = TypeId13;
11784
11942
  [TypeId12] = TypeId12;
11785
- [TypeId11] = TypeId11;
11786
11943
  applyInterrupt(effect) {
11787
11944
  return suspend3(() => {
11788
11945
  responseRegistry.unregister(this.original);
@@ -11880,7 +12037,7 @@ var detectStreamBodySupport = () => {
11880
12037
  return false;
11881
12038
  }
11882
12039
  };
11883
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
12040
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
11884
12041
  if (request.headers.upgrade !== undefined) {
11885
12042
  return fail7(new HttpClientError({
11886
12043
  reason: new TransportError({
@@ -11971,10 +12128,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
11971
12128
  });
11972
12129
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
11973
12130
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
11974
- var TypeId14 = "~effect/socket/Socket";
12131
+ var TypeId15 = "~effect/socket/Socket";
11975
12132
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
11976
- var make28 = (options) => Socket.of({
11977
- [TypeId14]: TypeId14,
12133
+ var make29 = (options) => Socket.of({
12134
+ [TypeId15]: TypeId15,
11978
12135
  reader: options.reader,
11979
12136
  writer: options.writer
11980
12137
  });
@@ -12297,7 +12454,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
12297
12454
  write,
12298
12455
  writeAll
12299
12456
  });
12300
- return succeed6(make28({
12457
+ return succeed6(make29({
12301
12458
  reader,
12302
12459
  writer
12303
12460
  }));
@@ -15632,7 +15789,7 @@ function getStreamSchemas(schema) {
15632
15789
  }
15633
15790
  var schema = /* @__PURE__ */ declare(isStream);
15634
15791
  function Stream(success, error) {
15635
- return make17(schema.ast, {
15792
+ return make16(schema.ast, {
15636
15793
  [StreamSchemaTypeId]: StreamSchemaTypeId,
15637
15794
  success,
15638
15795
  error
@@ -15640,9 +15797,9 @@ function Stream(success, error) {
15640
15797
  }
15641
15798
 
15642
15799
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
15643
- var TypeId15 = "~effect/rpc/Rpc";
15800
+ var TypeId16 = "~effect/rpc/Rpc";
15644
15801
  var Proto8 = {
15645
- [TypeId15]: TypeId15,
15802
+ [TypeId16]: TypeId16,
15646
15803
  pipe() {
15647
15804
  return pipeArguments(this, arguments);
15648
15805
  },
@@ -15731,7 +15888,7 @@ var makeProto = (options) => {
15731
15888
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
15732
15889
  return Rpc;
15733
15890
  };
15734
- var make5 = (tag, options) => {
15891
+ var make6 = (tag, options) => {
15735
15892
  const successSchema = options?.success ?? Void;
15736
15893
  const errorSchema = options?.error ?? Never;
15737
15894
  const defectSchema = options?.defect ?? Defect();
@@ -15809,7 +15966,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
15809
15966
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
15810
15967
 
15811
15968
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
15812
- var TypeId16 = "~effect/rpc/RpcClientError";
15969
+ var TypeId17 = "~effect/rpc/RpcClientError";
15813
15970
 
15814
15971
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
15815
15972
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -15818,11 +15975,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
15818
15975
  })) {
15819
15976
  }
15820
15977
 
15821
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
15978
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
15822
15979
  _tag: /* @__PURE__ */ tag("RpcClientError"),
15823
15980
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
15824
15981
  })) {
15825
- [TypeId16] = TypeId16;
15982
+ [TypeId17] = TypeId17;
15826
15983
  get message() {
15827
15984
  return `${this.reason._tag}: ${this.reason.message}`;
15828
15985
  }
@@ -15965,12 +16122,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
15965
16122
  requests: options.requests,
15966
16123
  annotations: options.annotations
15967
16124
  });
15968
- var make6 = (...rpcs) => makeProto2({
16125
+ var make7 = (...rpcs) => makeProto2({
15969
16126
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
15970
16127
  annotations: empty4()
15971
16128
  });
15972
16129
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
15973
- var TypeId17 = "~effect/rpc/RpcMiddleware";
16130
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
15974
16131
  var Service = () => (id, options) => {
15975
16132
  const limit = getStackTraceLimit();
15976
16133
  let creationError;
@@ -15988,7 +16145,7 @@ var Service = () => (id, options) => {
15988
16145
  return creationError?.stack;
15989
16146
  }
15990
16147
  });
15991
- ServiceClass_[TypeId17] = TypeId17;
16148
+ ServiceClass_[TypeId18] = TypeId18;
15992
16149
  ServiceClass_.error = options?.error ?? Never;
15993
16150
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
15994
16151
  return ServiceClass;
@@ -16074,77 +16231,77 @@ var ProgramOutcome = Union([
16074
16231
  Struct({ status: Literal("failed"), failureSummary: String4 })
16075
16232
  ]);
16076
16233
 
16077
- class RunnerReplicaRpcs extends make6(make5("Claim", {
16234
+ class RunnerReplicaRpcs extends make7(make6("Claim", {
16078
16235
  payload: WorkUnitClaimInput,
16079
16236
  success: WorkUnitClaimResult,
16080
16237
  error: RunnerRpcError
16081
- }), make5("Heartbeat", {
16238
+ }), make6("Heartbeat", {
16082
16239
  payload: WorkUnitHeartbeatInput,
16083
16240
  success: WorkUnitHeartbeatResult,
16084
16241
  error: RunnerRpcError
16085
- }), make5("Complete", {
16242
+ }), make6("Complete", {
16086
16243
  payload: WorkUnitCompletion,
16087
16244
  error: RunnerRpcError
16088
- }), make5("Release", {
16245
+ }), make6("Release", {
16089
16246
  payload: WorkUnitReleaseInput,
16090
16247
  error: RunnerRpcError
16091
- }), make5("Signals", {
16248
+ }), make6("Signals", {
16092
16249
  payload: { runnerReplicaId: String4 },
16093
16250
  success: RunnerSignal,
16094
16251
  error: RunnerRpcError,
16095
16252
  stream: true
16096
- }), make5("ReportSteer", {
16253
+ }), make6("ReportSteer", {
16097
16254
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
16098
16255
  success: Void,
16099
16256
  error: RunnerRpcError
16100
- }), make5("AppendTranscript", {
16257
+ }), make6("AppendTranscript", {
16101
16258
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
16102
16259
  success: Void,
16103
16260
  error: RunnerRpcError
16104
- }), make5("CreateCheckpointFile", {
16261
+ }), make6("CreateCheckpointFile", {
16105
16262
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
16106
16263
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16107
16264
  error: Union([RunnerRpcError, RunFileRefused])
16108
- }), make5("CheckpointFileParts", {
16265
+ }), make6("CheckpointFileParts", {
16109
16266
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16110
16267
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16111
16268
  error: RunnerRpcError
16112
- }), make5("CompleteCheckpointFile", {
16269
+ }), make6("CompleteCheckpointFile", {
16113
16270
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16114
16271
  success: RunFileRecord,
16115
16272
  error: RunnerRpcError
16116
- }), make5("SaveCheckpoint", {
16273
+ }), make6("SaveCheckpoint", {
16117
16274
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
16118
16275
  success: Void,
16119
16276
  error: RunnerRpcError
16120
- }), make5("ResumeCheckpoint", {
16277
+ }), make6("ResumeCheckpoint", {
16121
16278
  payload: { lease: ProgramLease },
16122
16279
  success: UndefinedOr(ResumedCheckpoint),
16123
16280
  error: RunnerRpcError
16124
- }), make5("SettledCheckpoints", {
16281
+ }), make6("SettledCheckpoints", {
16125
16282
  success: ArraySchema(Struct({
16126
16283
  stepAttemptId: String4,
16127
16284
  ref: optionalKey(String4),
16128
16285
  repoBinding: optionalKey(WorkUnitRepoBinding)
16129
16286
  })),
16130
16287
  error: RunnerRpcError
16131
- }), make5("ForgetCheckpoints", {
16288
+ }), make6("ForgetCheckpoints", {
16132
16289
  payload: { stepAttemptIds: ArraySchema(String4) },
16133
16290
  success: Void,
16134
16291
  error: RunnerRpcError
16135
- }), make5("GitCredential", {
16292
+ }), make6("GitCredential", {
16136
16293
  payload: { repoBindingId: String4 },
16137
16294
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
16138
16295
  error: RunnerRpcError
16139
- }), make5("Bundle", {
16296
+ }), make6("Bundle", {
16140
16297
  payload: { digest: String4 },
16141
16298
  success: Struct({ bundle: String4 }),
16142
16299
  error: RunnerRpcError
16143
- }), make5("SettledRuns", {
16300
+ }), make6("SettledRuns", {
16144
16301
  payload: { runIds: ArraySchema(String4) },
16145
16302
  success: ArraySchema(String4),
16146
16303
  error: RunnerRpcError
16147
- }), make5("KnownEvidence", {
16304
+ }), make6("KnownEvidence", {
16148
16305
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
16149
16306
  success: ArraySchema(Struct({
16150
16307
  tree: String4,
@@ -16156,24 +16313,24 @@ class RunnerReplicaRpcs extends make6(make5("Claim", {
16156
16313
  })).middleware(RunnerAuthentication) {
16157
16314
  }
16158
16315
 
16159
- class RunnerJournalRpcs extends make6(make5("RecordActivity", {
16316
+ class RunnerJournalRpcs extends make7(make6("RecordActivity", {
16160
16317
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
16161
16318
  error: RunnerRpcError
16162
- }), make5("DeferredDone", {
16319
+ }), make6("DeferredDone", {
16163
16320
  payload: { lease: ProgramLease, name: String4, exit: Json },
16164
16321
  error: RunnerRpcError
16165
- }), make5("ScheduleClock", {
16322
+ }), make6("ScheduleClock", {
16166
16323
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
16167
16324
  error: RunnerRpcError
16168
- }), 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) {
16169
16326
  }
16170
- var RunHostStep = make5("RunHostStep", {
16327
+ var RunHostStep = make6("RunHostStep", {
16171
16328
  payload: { lease: ProgramLease, step: String4, hostStep: String4, request: Json },
16172
16329
  success: Json,
16173
16330
  error: RunnerRpcError
16174
16331
  });
16175
16332
 
16176
- class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16333
+ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
16177
16334
  payload: {
16178
16335
  lease: ProgramLease,
16179
16336
  step: String4,
@@ -16194,7 +16351,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16194
16351
  },
16195
16352
  success: Struct({ questionId: String4 }),
16196
16353
  error: RunnerRpcError
16197
- }), make5("StartAgentStep", {
16354
+ }), make6("StartAgentStep", {
16198
16355
  payload: {
16199
16356
  lease: ProgramLease,
16200
16357
  step: String4,
@@ -16211,7 +16368,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16211
16368
  },
16212
16369
  success: Struct({ stepAttemptId: String4 }),
16213
16370
  error: RunnerRpcError
16214
- }), make5("StartVerification", {
16371
+ }), make6("StartVerification", {
16215
16372
  payload: {
16216
16373
  lease: ProgramLease,
16217
16374
  step: String4,
@@ -16235,7 +16392,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16235
16392
  },
16236
16393
  success: Struct({ verificationId: String4 }),
16237
16394
  error: RunnerRpcError
16238
- }), make5("AwaitEvent", {
16395
+ }), make6("AwaitEvent", {
16239
16396
  payload: {
16240
16397
  lease: ProgramLease,
16241
16398
  step: String4,
@@ -16251,7 +16408,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16251
16408
  })))
16252
16409
  },
16253
16410
  error: RunnerRpcError
16254
- }), make5("ClaimResource", {
16411
+ }), make6("ClaimResource", {
16255
16412
  payload: {
16256
16413
  lease: ProgramLease,
16257
16414
  step: String4,
@@ -16262,7 +16419,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16262
16419
  claims: optionalKey(ArraySchema(String4))
16263
16420
  },
16264
16421
  error: RunnerRpcError
16265
- }), make5("AdmitChild", {
16422
+ }), make6("AdmitChild", {
16266
16423
  payload: {
16267
16424
  lease: ProgramLease,
16268
16425
  step: String4,
@@ -16273,7 +16430,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16273
16430
  },
16274
16431
  success: Struct({ runId: String4 }),
16275
16432
  error: RunnerRpcError
16276
- }), make5("AdmitChildById", {
16433
+ }), make6("AdmitChildById", {
16277
16434
  payload: {
16278
16435
  lease: ProgramLease,
16279
16436
  step: String4,
@@ -16284,18 +16441,18 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16284
16441
  },
16285
16442
  success: Struct({ runId: String4 }),
16286
16443
  error: RunnerRpcError
16287
- }), make5("CallableLoops", {
16444
+ }), make6("CallableLoops", {
16288
16445
  payload: { lease: ProgramLease, step: String4, taskId: optional(String4) },
16289
16446
  success: Struct({ loops: ArraySchema(CallableLoop) }),
16290
16447
  error: RunnerRpcError
16291
- }), make5("StopLaunches", {
16448
+ }), make6("StopLaunches", {
16292
16449
  payload: {
16293
16450
  lease: ProgramLease,
16294
16451
  step: String4,
16295
16452
  deferredNames: ArraySchema(String4)
16296
16453
  },
16297
16454
  error: RunnerRpcError
16298
- }), make5("StoreArtifact", {
16455
+ }), make6("StoreArtifact", {
16299
16456
  payload: {
16300
16457
  lease: ProgramLease,
16301
16458
  step: String4,
@@ -16307,7 +16464,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16307
16464
  },
16308
16465
  success: Struct({ artifactId: String4 }),
16309
16466
  error: RunnerRpcError
16310
- }), make5("RecordNote", {
16467
+ }), make6("RecordNote", {
16311
16468
  payload: {
16312
16469
  lease: ProgramLease,
16313
16470
  step: String4,
@@ -16316,7 +16473,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16316
16473
  kind: optional(Literals(["note", "blocker"]))
16317
16474
  },
16318
16475
  error: RunnerRpcError
16319
- }), make5("PerformHostEffect", {
16476
+ }), make6("PerformHostEffect", {
16320
16477
  payload: {
16321
16478
  lease: ProgramLease,
16322
16479
  step: String4,
@@ -16345,7 +16502,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16345
16502
  },
16346
16503
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
16347
16504
  error: RunnerRpcError
16348
- }), make5("AlertTask", {
16505
+ }), make6("AlertTask", {
16349
16506
  payload: {
16350
16507
  lease: ProgramLease,
16351
16508
  step: String4,
@@ -16362,7 +16519,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16362
16519
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
16363
16520
  }),
16364
16521
  error: RunnerRpcError
16365
- }), make5("ReadTranscripts", {
16522
+ }), make6("ReadTranscripts", {
16366
16523
  payload: {
16367
16524
  lease: ProgramLease,
16368
16525
  step: String4,
@@ -16397,7 +16554,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16397
16554
  })))
16398
16555
  }),
16399
16556
  error: RunnerRpcError
16400
- }), make5("PipelineStatus", {
16557
+ }), make6("PipelineStatus", {
16401
16558
  payload: {
16402
16559
  lease: ProgramLease,
16403
16560
  step: String4,
@@ -16437,11 +16594,11 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16437
16594
  }))
16438
16595
  }),
16439
16596
  error: RunnerRpcError
16440
- }), make5("ReportPipeline", {
16597
+ }), make6("ReportPipeline", {
16441
16598
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
16442
16599
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
16443
16600
  error: RunnerRpcError
16444
- }), make5("ReviewThreads", {
16601
+ }), make6("ReviewThreads", {
16445
16602
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
16446
16603
  success: Struct({
16447
16604
  threads: ArraySchema(Struct({
@@ -16453,7 +16610,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16453
16610
  }))
16454
16611
  }),
16455
16612
  error: RunnerRpcError
16456
- }), make5("OpenChangeRequests", {
16613
+ }), make6("OpenChangeRequests", {
16457
16614
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
16458
16615
  success: Struct({
16459
16616
  changeRequests: ArraySchema(Struct({
@@ -16467,7 +16624,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16467
16624
  }))
16468
16625
  }),
16469
16626
  error: RunnerRpcError
16470
- }), make5("OwnChangeRequests", {
16627
+ }), make6("OwnChangeRequests", {
16471
16628
  payload: { lease: ProgramLease, step: String4 },
16472
16629
  success: Struct({
16473
16630
  changeRequests: ArraySchema(Struct({
@@ -16480,7 +16637,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16480
16637
  }))
16481
16638
  }),
16482
16639
  error: RunnerRpcError
16483
- }), make5("Propose", {
16640
+ }), make6("Propose", {
16484
16641
  payload: {
16485
16642
  lease: ProgramLease,
16486
16643
  step: String4,
@@ -16509,7 +16666,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16509
16666
  task: optionalKey(Struct({ id: String4, active: Boolean2 }))
16510
16667
  }),
16511
16668
  error: RunnerRpcError
16512
- }), make5("ReadProject", {
16669
+ }), make6("ReadProject", {
16513
16670
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
16514
16671
  success: Struct({
16515
16672
  project: Struct({ id: String4, name: String4 }),
@@ -16532,7 +16689,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16532
16689
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
16533
16690
  }),
16534
16691
  error: RunnerRpcError
16535
- }), make5("DraftUpdate", {
16692
+ }), make6("DraftUpdate", {
16536
16693
  payload: {
16537
16694
  lease: ProgramLease,
16538
16695
  step: String4,
@@ -16547,7 +16704,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16547
16704
  },
16548
16705
  success: Struct({ id: String4 }),
16549
16706
  error: RunnerRpcError
16550
- }), make5("CreatePlanTasks", {
16707
+ }), make6("CreatePlanTasks", {
16551
16708
  payload: {
16552
16709
  lease: ProgramLease,
16553
16710
  projectId: optionalKey(String4),
@@ -16568,15 +16725,15 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16568
16725
  },
16569
16726
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
16570
16727
  error: RunnerRpcError
16571
- }), make5("IntegrationBranch", {
16728
+ }), make6("IntegrationBranch", {
16572
16729
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
16573
16730
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16574
16731
  error: RunnerRpcError
16575
- }), make5("DeliveryBase", {
16732
+ }), make6("DeliveryBase", {
16576
16733
  payload: { lease: ProgramLease },
16577
16734
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
16578
16735
  error: RunnerRpcError
16579
- }), make5("Branch", {
16736
+ }), make6("Branch", {
16580
16737
  payload: {
16581
16738
  lease: ProgramLease,
16582
16739
  branch: optionalKey(String4),
@@ -16591,7 +16748,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16591
16748
  created: Boolean2
16592
16749
  }),
16593
16750
  error: RunnerRpcError
16594
- }), make5("BranchChangeRequest", {
16751
+ }), make6("BranchChangeRequest", {
16595
16752
  payload: {
16596
16753
  lease: ProgramLease,
16597
16754
  step: String4,
@@ -16614,7 +16771,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16614
16771
  Struct({ status: Literal("elsewhere"), team: String4 })
16615
16772
  ]),
16616
16773
  error: RunnerRpcError
16617
- }), make5("MergeChangeRequest", {
16774
+ }), make6("MergeChangeRequest", {
16618
16775
  payload: {
16619
16776
  lease: ProgramLease,
16620
16777
  step: String4,
@@ -16632,7 +16789,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16632
16789
  Struct({ status: Literal("moved"), head: String4 })
16633
16790
  ]),
16634
16791
  error: RunnerRpcError
16635
- }), make5("ApproveChangeRequest", {
16792
+ }), make6("ApproveChangeRequest", {
16636
16793
  payload: {
16637
16794
  lease: ProgramLease,
16638
16795
  step: String4,
@@ -16648,7 +16805,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16648
16805
  Struct({ approved: Literal(false), reason: String4 })
16649
16806
  ]),
16650
16807
  error: RunnerRpcError
16651
- }), make5("CloseChangeRequest", {
16808
+ }), make6("CloseChangeRequest", {
16652
16809
  payload: {
16653
16810
  lease: ProgramLease,
16654
16811
  step: String4,
@@ -16658,7 +16815,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16658
16815
  },
16659
16816
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
16660
16817
  error: RunnerRpcError
16661
- }), make5("RerunPipeline", {
16818
+ }), make6("RerunPipeline", {
16662
16819
  payload: {
16663
16820
  lease: ProgramLease,
16664
16821
  step: String4,
@@ -16668,7 +16825,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16668
16825
  },
16669
16826
  success: Struct({ head: String4, pipelines: Int }),
16670
16827
  error: RunnerRpcError
16671
- }), make5("PublishRelease", {
16828
+ }), make6("PublishRelease", {
16672
16829
  payload: {
16673
16830
  lease: ProgramLease,
16674
16831
  step: String4,
@@ -16682,7 +16839,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16682
16839
  },
16683
16840
  success: Struct({ tag: String4, revision: String4, url: String4 }),
16684
16841
  error: RunnerRpcError
16685
- }), make5("RecordDeploy", {
16842
+ }), make6("RecordDeploy", {
16686
16843
  payload: {
16687
16844
  lease: ProgramLease,
16688
16845
  step: String4,
@@ -16694,7 +16851,7 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16694
16851
  },
16695
16852
  success: Deploy,
16696
16853
  error: RunnerRpcError
16697
- }), make5("DeployTarget", {
16854
+ }), make6("DeployTarget", {
16698
16855
  payload: { lease: ProgramLease, step: String4, target: DeployTargetName },
16699
16856
  success: Struct({
16700
16857
  target: String4,
@@ -16702,14 +16859,14 @@ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
16702
16859
  order: optionalKey(ArraySchema(String4))
16703
16860
  }),
16704
16861
  error: RunnerRpcError
16705
- }), RunHostStep, make5("ProgramSecrets", {
16862
+ }), RunHostStep, make6("ProgramSecrets", {
16706
16863
  payload: { lease: ProgramLease },
16707
16864
  success: Record(String4, String4),
16708
16865
  error: RunnerRpcError
16709
16866
  })).middleware(RunnerAuthentication) {
16710
16867
  }
16711
16868
 
16712
- class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16869
+ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
16713
16870
  payload: {
16714
16871
  lease: ProgramLease,
16715
16872
  step: String4,
@@ -16721,11 +16878,11 @@ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
16721
16878
  },
16722
16879
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
16723
16880
  error: Union([RunnerRpcError, RunFileRefused])
16724
- }), make5("RunFileParts", {
16881
+ }), make6("RunFileParts", {
16725
16882
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
16726
16883
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
16727
16884
  error: RunnerRpcError
16728
- }), make5("CompleteRunFile", {
16885
+ }), make6("CompleteRunFile", {
16729
16886
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
16730
16887
  success: RunFileRecord,
16731
16888
  error: RunnerRpcError
@@ -16735,7 +16892,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
16735
16892
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
16736
16893
 
16737
16894
  // apps/cli/src/oauth.ts
16738
- var Scope = "openid profile email offline_access kitman:cli";
16895
+ var Scope2 = "openid profile email offline_access kitman:cli";
16739
16896
  var CallbackPath = "/auth/callback";
16740
16897
 
16741
16898
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -16754,7 +16911,7 @@ function buildAuthorizeUrl(input) {
16754
16911
  url.searchParams.set("response_type", "code");
16755
16912
  url.searchParams.set("client_id", input.clientId);
16756
16913
  url.searchParams.set("redirect_uri", input.redirectUri);
16757
- url.searchParams.set("scope", Scope);
16914
+ url.searchParams.set("scope", Scope2);
16758
16915
  url.searchParams.set("code_challenge", input.codeChallenge);
16759
16916
  url.searchParams.set("code_challenge_method", "S256");
16760
16917
  url.searchParams.set("state", input.state);
@@ -17470,7 +17627,7 @@ var spawnedTransport = (env) => gen(function* () {
17470
17627
  const spawner = yield* ChildProcessSpawner;
17471
17628
  const input = yield* unbounded2();
17472
17629
  const encoder = new TextEncoder;
17473
- const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
17630
+ const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
17474
17631
  extendEnv: false,
17475
17632
  env,
17476
17633
  stdin: fromQueue(input),
@@ -17501,7 +17658,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
17501
17658
  const spawner = yield* ChildProcessSpawner;
17502
17659
  const env = coreEnv(options);
17503
17660
  const run = (args) => gen(function* () {
17504
- 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" }));
17505
17662
  const [stdout, stderr, exitCode] = yield* all3([
17506
17663
  mkString(decodeText(handle.stdout)),
17507
17664
  mkString(decodeText(handle.stderr)),
@@ -17527,7 +17684,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
17527
17684
  }
17528
17685
  var runCommand2 = (command, args, options = {}) => gen(function* () {
17529
17686
  const spawner = yield* ChildProcessSpawner;
17530
- const handle = yield* spawner.spawn(make2(command, args, {
17687
+ const handle = yield* spawner.spawn(make3(command, args, {
17531
17688
  stdin: "ignore",
17532
17689
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17533
17690
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -17553,7 +17710,7 @@ var shellOutputTailChars2 = 64 * 1024;
17553
17710
  var runProcess2 = (argv, options) => gen(function* () {
17554
17711
  const spawner = yield* ChildProcessSpawner;
17555
17712
  const [command, ...args] = argv;
17556
- const handle = yield* spawner.spawn(make2(command, args, {
17713
+ const handle = yield* spawner.spawn(make3(command, args, {
17557
17714
  stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
17558
17715
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
17559
17716
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
@@ -18076,4 +18233,4 @@ function serviceChecks(declaration) {
18076
18233
  return decoded === undefined || decoded.services.length === 0 ? [] : [...new Set(decoded.checks ?? [])];
18077
18234
  }
18078
18235
 
18079
- 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 };