@kitman-sh/cli 0.10.57 → 0.10.58

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 (26) hide show
  1. package/dist/{chunk-a1yf46xt.js → chunk-4jbn6hma.js} +3 -3
  2. package/dist/{chunk-wd0rvdt4.js → chunk-59n1m39j.js} +8 -8
  3. package/dist/{chunk-7evwar6b.js → chunk-76y7v9rj.js} +1 -1
  4. package/dist/{chunk-4kssrezn.js → chunk-8y8ax1bt.js} +1 -1
  5. package/dist/{chunk-mjzvfh9d.js → chunk-9rxwzn7y.js} +11 -11
  6. package/dist/{chunk-q5s64k8g.js → chunk-ac19vqmc.js} +61 -61
  7. package/dist/{chunk-99ver3za.js → chunk-ac851090.js} +4 -4
  8. package/dist/{chunk-x3mgznk2.js → chunk-ahtfwz4b.js} +2 -2
  9. package/dist/{chunk-h8s4vh47.js → chunk-bbsh3a70.js} +37 -37
  10. package/dist/{chunk-nrkwrajj.js → chunk-c6gyfqv4.js} +7 -7
  11. package/dist/{chunk-g53wn1q8.js → chunk-ec5df6ea.js} +2 -2
  12. package/dist/{chunk-fmhy6tss.js → chunk-edf91eyv.js} +4 -4
  13. package/dist/{chunk-23vene3j.js → chunk-hegberew.js} +7 -7
  14. package/dist/{chunk-gwcqz1bj.js → chunk-jd8xhqgm.js} +1 -1
  15. package/dist/{chunk-cy5fbrfm.js → chunk-kvv9vzzr.js} +45 -191
  16. package/dist/{chunk-hwd2gg2f.js → chunk-mfhmj6r6.js} +9 -9
  17. package/dist/{chunk-253add07.js → chunk-n1m89pnt.js} +5 -5
  18. package/dist/{chunk-61k67vxh.js → chunk-nk5h4cvx.js} +115 -73
  19. package/dist/{chunk-jc920h47.js → chunk-qbyxcjy1.js} +11 -11
  20. package/dist/{chunk-kyqsbr2n.js → chunk-qkbnbr47.js} +22 -22
  21. package/dist/{chunk-qhpyzn7c.js → chunk-qmmer308.js} +349 -198
  22. package/dist/{chunk-5tfxtw9z.js → chunk-tr80mjnp.js} +14 -60
  23. package/dist/{chunk-de4cfe40.js → chunk-zc214v7k.js} +9 -9
  24. package/dist/{chunk-v43h8s08.js → chunk-zxs37afg.js} +19 -19
  25. package/dist/index.js +4 -4
  26. package/package.json +1 -1
@@ -38,7 +38,7 @@ import {
38
38
  assignProperty,
39
39
  PipeInspectableProto,
40
40
  withFiber,
41
- make14,
41
+ make12,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,13 +58,15 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make15,
61
+ make13,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get4,
65
+ get3,
66
66
  merge3,
67
67
  Reference,
68
+ fromInputUnsafe,
69
+ isFinite,
68
70
  millis,
69
71
  seconds,
70
72
  toMillis,
@@ -84,12 +86,16 @@ import {
84
86
  DisablePropagation,
85
87
  sync,
86
88
  map7,
89
+ ClockRef,
90
+ currentTimeMillis2,
87
91
  ConsoleRef,
88
92
  succeed3,
89
93
  fail4,
94
+ void_2,
90
95
  isSuccess2,
96
+ isFailure2,
91
97
  makeUnsafe5,
92
- make16,
98
+ make14,
93
99
  _await,
94
100
  fail5,
95
101
  isDone,
@@ -97,8 +103,12 @@ import {
97
103
  succeed4,
98
104
  doneUnsafe,
99
105
  TracerTimingEnabled,
106
+ Scope,
107
+ makeUnsafe6,
100
108
  provide,
109
+ addFinalizerExit,
101
110
  addFinalizer,
111
+ close,
102
112
  succeed5,
103
113
  effect,
104
114
  effectContext,
@@ -150,6 +160,7 @@ import {
150
160
  tapCause,
151
161
  retry,
152
162
  ignore,
163
+ ignoreCause,
153
164
  orElseSucceed,
154
165
  timeout,
155
166
  timeoutOrElse,
@@ -161,6 +172,7 @@ import {
161
172
  context,
162
173
  contextWith,
163
174
  provide3,
175
+ provideContext2,
164
176
  serviceOption,
165
177
  updateContext,
166
178
  provideService,
@@ -171,6 +183,7 @@ import {
171
183
  addFinalizer2,
172
184
  ensuring2,
173
185
  onError,
186
+ onExit,
174
187
  cached,
175
188
  interrupt3,
176
189
  interruptible,
@@ -182,6 +195,7 @@ import {
182
195
  withParentSpan,
183
196
  forkScoped,
184
197
  runFork,
198
+ runForkWith,
185
199
  runPromise,
186
200
  runPromiseWith,
187
201
  runSync,
@@ -192,6 +206,9 @@ import {
192
206
  logError,
193
207
  effectify,
194
208
  decode,
209
+ isRedacted,
210
+ make15,
211
+ value,
195
212
  defaultParseOptions,
196
213
  omit,
197
214
  map9,
@@ -200,7 +217,7 @@ import {
200
217
  decodeEffect,
201
218
  decodeUnknownOption,
202
219
  decodeOption,
203
- make17,
220
+ make16,
204
221
  isSchema,
205
222
  optionalKey,
206
223
  optional,
@@ -246,19 +263,22 @@ import {
246
263
  decodeJsonStringOption,
247
264
  encodeJsonStringSync,
248
265
  encodePrettyJsonString
249
- } from "./chunk-61k67vxh.js";
266
+ } from "./chunk-nk5h4cvx.js";
250
267
  import {
251
268
  map,
252
269
  makeEquivalence,
253
- Clock,
254
- currentTimeMillis,
270
+ toNumber,
255
271
  bytes,
272
+ join,
273
+ interrupt,
274
+ getCurrent,
275
+ runIn,
256
276
  BadArgument,
257
277
  systemError,
258
278
  badArgument,
259
279
  makeUnsafe2,
280
+ make7,
260
281
  make8,
261
- make9,
262
282
  sliding,
263
283
  unbounded2,
264
284
  offer,
@@ -274,13 +294,11 @@ import {
274
294
  isSink,
275
295
  fromChannel,
276
296
  drain,
277
- make10,
278
- get3,
279
297
  isStream,
280
298
  fromChannel2,
281
299
  callback,
282
300
  empty2,
283
- make11,
301
+ make9,
284
302
  suspend,
285
303
  fail2,
286
304
  fromQueue,
@@ -306,16 +324,16 @@ import {
306
324
  mkArrayBuffer,
307
325
  toReadableStreamEffect,
308
326
  FileSystem,
309
- make12,
327
+ make10,
310
328
  FileTypeId,
311
329
  WatchBackend,
312
330
  Path,
313
- make13,
331
+ make11,
314
332
  option,
315
333
  String2,
316
334
  optionalEnv,
317
335
  harnessesUnsupportedInSrt2
318
- } from "./chunk-cy5fbrfm.js";
336
+ } from "./chunk-kvv9vzzr.js";
319
337
  import {
320
338
  isDateTime,
321
339
  Numeric,
@@ -327,7 +345,7 @@ import {
327
345
  SecretName,
328
346
  SecretScope,
329
347
  SecretHosts
330
- } from "./chunk-4kssrezn.js";
348
+ } from "./chunk-8y8ax1bt.js";
331
349
  import {
332
350
  toJsonValue,
333
351
  isOneOf,
@@ -341,25 +359,25 @@ import {
341
359
  isSymbol,
342
360
  isUndefined,
343
361
  kindOf
344
- } from "./chunk-7evwar6b.js";
362
+ } from "./chunk-76y7v9rj.js";
345
363
  import {
346
- isRedacted,
347
- make,
348
- value,
349
364
  ExitCode,
350
365
  ProcessId,
351
366
  makeHandle,
352
- make2,
367
+ make,
353
368
  ChildProcessSpawner,
354
369
  display,
355
- make3,
370
+ make2,
356
371
  parseFdName,
357
372
  fdName
358
- } from "./chunk-5tfxtw9z.js";
359
-
373
+ } from "./chunk-tr80mjnp.js";
360
374
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
361
375
  var makeEquivalence3 = Tuple;
362
376
 
377
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
378
+ var Clock = ClockRef;
379
+ var currentTimeMillis = currentTimeMillis2;
380
+
363
381
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
364
382
  var TypeId = "~effect/DateTime";
365
383
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -494,7 +512,7 @@ var fromDateUnsafe = (date) => {
494
512
  }
495
513
  return makeUtc(epochMillis);
496
514
  };
497
- var makeUnsafe6 = (input) => {
515
+ var makeUnsafe7 = (input) => {
498
516
  if (isDateTime2(input)) {
499
517
  return input;
500
518
  } else if (input instanceof Date) {
@@ -514,7 +532,7 @@ var makeUnsafe6 = (input) => {
514
532
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
515
533
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
516
534
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
517
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
535
+ var make3 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
518
536
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
519
537
  var nowUnsafe = () => makeUtc(Date.now());
520
538
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -621,7 +639,7 @@ class Metric$ {
621
639
  }
622
640
  hook(context) {
623
641
  const key = this.key(context);
624
- const registry = get4(context, MetricRegistry);
642
+ const registry = get3(context, MetricRegistry);
625
643
  let metadata = registry.get(key);
626
644
  if (isUndefined2(metadata)) {
627
645
  metadata = this.metadata(this.createHooks());
@@ -630,11 +648,11 @@ class Metric$ {
630
648
  return metadata.hooks;
631
649
  }
632
650
  removeUnsafe(context) {
633
- get4(context, MetricRegistry).delete(this.key(context));
651
+ get3(context, MetricRegistry).delete(this.key(context));
634
652
  }
635
653
  registerUnsafe(context, hooks) {
636
654
  const key = this.key(context);
637
- const registry = get4(context, MetricRegistry);
655
+ const registry = get3(context, MetricRegistry);
638
656
  const metadata = this.metadata({
639
657
  get: hooks.get,
640
658
  update: constVoid,
@@ -650,7 +668,7 @@ class Metric$ {
650
668
  };
651
669
  }
652
670
  key(context) {
653
- const extraAttributes = get4(context, CurrentMetricAttributes);
671
+ const extraAttributes = get3(context, CurrentMetricAttributes);
654
672
  if (extraAttributes !== this.#extraAttributes) {
655
673
  this.#extraAttributes = extraAttributes;
656
674
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -893,18 +911,151 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
893
911
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
894
912
  var runMain = runMain2;
895
913
 
896
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
897
- var BigInt2 = globalThis.BigInt;
898
- var toNumber = (b) => {
899
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
900
- return none();
914
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
915
+ var TypeId3 = "~effect/RcRef";
916
+ var stateEmpty = {
917
+ _tag: "Empty"
918
+ };
919
+ var stateClosed = {
920
+ _tag: "Closed"
921
+ };
922
+ var variance = {
923
+ _A: identity,
924
+ _E: identity
925
+ };
926
+
927
+ class RcRefImpl {
928
+ [TypeId3] = variance;
929
+ pipe() {
930
+ return pipeArguments(this, arguments);
901
931
  }
902
- return some(Number(b));
932
+ state = stateEmpty;
933
+ acquire;
934
+ context;
935
+ scope;
936
+ idleTimeToLive;
937
+ constructor(acquire, context, scope, idleTimeToLive) {
938
+ this.acquire = acquire;
939
+ this.context = context;
940
+ this.scope = scope;
941
+ this.idleTimeToLive = idleTimeToLive;
942
+ }
943
+ }
944
+ var make17 = (options) => withFiber2((fiber) => {
945
+ const context = fiber.context;
946
+ const scope = get3(context, Scope);
947
+ const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
948
+ return as(addFinalizerExit(scope, () => {
949
+ const state = ref.state;
950
+ ref.state = stateClosed;
951
+ if (state._tag === "Acquired")
952
+ return close(state.scope, void_2);
953
+ if (state._tag === "Acquiring")
954
+ return interrupt(state.fiber);
955
+ return void_3;
956
+ }), ref);
957
+ });
958
+ var getState = (self, restore) => {
959
+ switch (self.state._tag) {
960
+ case "Closed": {
961
+ return interrupt3;
962
+ }
963
+ case "Acquired": {
964
+ const state = self.state;
965
+ state.refCount++;
966
+ return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
967
+ }
968
+ case "Acquiring": {
969
+ const state = self.state;
970
+ state.awaiters++;
971
+ return awaitAcquiring(self, state, restore);
972
+ }
973
+ case "Empty": {
974
+ const acquiring = {
975
+ _tag: "Acquiring",
976
+ fiber: undefined,
977
+ awaiters: 1,
978
+ acquired: undefined
979
+ };
980
+ self.state = acquiring;
981
+ const scope = makeUnsafe6();
982
+ const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
983
+ if (self.state !== acquiring) {
984
+ return interrupt3;
985
+ }
986
+ const state = {
987
+ _tag: "Acquired",
988
+ value,
989
+ scope,
990
+ fiber: undefined,
991
+ refCount: acquiring.awaiters,
992
+ invalidated: false
993
+ };
994
+ self.state = state;
995
+ acquiring.acquired = state;
996
+ return succeed6(state);
997
+ }), onExit((exit) => {
998
+ if (isSuccess2(exit))
999
+ return void_3;
1000
+ if (self.state === acquiring)
1001
+ self.state = stateEmpty;
1002
+ return close(scope, exit);
1003
+ }));
1004
+ acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1005
+ return awaitAcquiring(self, acquiring, restore);
1006
+ }
1007
+ }
1008
+ };
1009
+ var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1010
+ const acquired = acquiring.acquired;
1011
+ if (acquired !== undefined) {
1012
+ return isFailure2(exit) ? release(self, acquired) : void_3;
1013
+ }
1014
+ if (--acquiring.awaiters > 0 || self.state !== acquiring)
1015
+ return void_3;
1016
+ self.state = stateEmpty;
1017
+ return interrupt(acquiring.fiber);
1018
+ });
1019
+ var get4 = (self_) => {
1020
+ const self = self_;
1021
+ return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
903
1022
  };
1023
+ var release = (self, state) => {
1024
+ state.refCount--;
1025
+ if (state.refCount > 0) {
1026
+ return void_3;
1027
+ }
1028
+ const idleTimeToLive = self.idleTimeToLive;
1029
+ if (idleTimeToLive === undefined || state.invalidated) {
1030
+ if (self.state === state) {
1031
+ self.state = stateEmpty;
1032
+ }
1033
+ return close(state.scope, void_2);
1034
+ } else if (!isFinite(idleTimeToLive)) {
1035
+ return void_3;
1036
+ }
1037
+ state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1038
+ if (self.state === state && state.refCount === 0) {
1039
+ self.state = stateEmpty;
1040
+ return ignoreCause(close(state.scope, void_2), {
1041
+ log: "Unhandled",
1042
+ message: "Unhandled error in RcRef finalizer"
1043
+ });
1044
+ }
1045
+ return void_3;
1046
+ })).pipe(ensuring2(sync2(() => {
1047
+ state.fiber = undefined;
1048
+ })), runForkWith(self.context), runIn(self.scope));
1049
+ return void_3;
1050
+ };
1051
+
1052
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1053
+ var make18 = make17;
1054
+ var get5 = get4;
904
1055
 
905
1056
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
906
- var makeUnsafe = makeUnsafe6;
907
- var make18 = make4;
1057
+ var makeUnsafe = makeUnsafe7;
1058
+ var make19 = make3;
908
1059
  var now2 = now;
909
1060
  var nowUnsafe2 = nowUnsafe;
910
1061
  var toDateUtc2 = toDateUtc;
@@ -1119,7 +1270,7 @@ var readableToPullUnsafe = (options) => {
1119
1270
  const readable = options.readable;
1120
1271
  const chunkSize = options.chunkSize ?? 4096;
1121
1272
  const closeOnDone = options.closeOnDone ?? true;
1122
- const exit = options.exit ?? make8(undefined);
1273
+ const exit = options.exit ?? make7(undefined);
1123
1274
  const latch = options.latch ?? makeUnsafe2(false);
1124
1275
  function onReadable() {
1125
1276
  latch.openUnsafe();
@@ -1223,7 +1374,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1223
1374
  windowsHide: true
1224
1375
  }, onExit);
1225
1376
  };
1226
- var make19 = /* @__PURE__ */ gen(function* () {
1377
+ var make20 = /* @__PURE__ */ gen(function* () {
1227
1378
  const fs = yield* FileSystem;
1228
1379
  const path = yield* Path;
1229
1380
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1683,7 +1834,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1683
1834
  const sourceStream = unwrap(succeed6(getSourceStream(handles[handles.length - 1], options.from)));
1684
1835
  const toOption = options.to ?? "stdin";
1685
1836
  if (toOption === "stdin") {
1686
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1837
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1687
1838
  ...command.options,
1688
1839
  stdin: {
1689
1840
  ...stdinConfig,
@@ -1703,7 +1854,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1703
1854
  type: "input",
1704
1855
  stream: sourceStream
1705
1856
  };
1706
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1857
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1707
1858
  ...command.options,
1708
1859
  additionalFds: {
1709
1860
  ...existingFds,
@@ -1711,7 +1862,7 @@ var make19 = /* @__PURE__ */ gen(function* () {
1711
1862
  }
1712
1863
  })));
1713
1864
  } else {
1714
- handles.push(yield* spawnCommand(make3(command.command, command.args, {
1865
+ handles.push(yield* spawnCommand(make2(command.command, command.args, {
1715
1866
  ...command.options,
1716
1867
  stdin: {
1717
1868
  ...stdinConfig,
@@ -1750,9 +1901,9 @@ var make19 = /* @__PURE__ */ gen(function* () {
1750
1901
  }
1751
1902
  }
1752
1903
  });
1753
- return make2(spawnCommand);
1904
+ return make(spawnCommand);
1754
1905
  });
1755
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1906
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1756
1907
  var flattenCommand = (command) => {
1757
1908
  const commands = [];
1758
1909
  const pipeOptions = [];
@@ -2236,7 +2387,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2236
2387
  resume(fail7(handleBadArgument("writeFile")(err)));
2237
2388
  }
2238
2389
  });
2239
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2390
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make10({
2240
2391
  access: access2,
2241
2392
  chmod: chmod2,
2242
2393
  chown: chown2,
@@ -2296,15 +2447,15 @@ var fileUrlOps = (windows) => ({
2296
2447
  })
2297
2448
  })
2298
2449
  });
2299
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2450
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2300
2451
  ...NodePath.posix,
2301
2452
  .../* @__PURE__ */ fileUrlOps(false)
2302
2453
  }));
2303
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2454
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2304
2455
  ...NodePath.win32,
2305
2456
  .../* @__PURE__ */ fileUrlOps(true)
2306
2457
  }));
2307
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2458
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make11({
2308
2459
  ...NodePath,
2309
2460
  .../* @__PURE__ */ fileUrlOps(undefined)
2310
2461
  }));
@@ -2313,10 +2464,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2313
2464
  var layer2 = layer7;
2314
2465
 
2315
2466
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2316
- var TypeId3 = "~effect/Stdio";
2317
- var Stdio = /* @__PURE__ */ Service2(TypeId3);
2318
- var make20 = (options) => ({
2319
- [TypeId3]: TypeId3,
2467
+ var TypeId4 = "~effect/Stdio";
2468
+ var Stdio = /* @__PURE__ */ Service2(TypeId4);
2469
+ var make21 = (options) => ({
2470
+ [TypeId4]: TypeId4,
2320
2471
  stdinIsTerminal: succeed6(false),
2321
2472
  stdoutIsTerminal: succeed6(false),
2322
2473
  stderrIsTerminal: succeed6(false),
@@ -2324,7 +2475,7 @@ var make20 = (options) => ({
2324
2475
  });
2325
2476
 
2326
2477
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2327
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2478
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2328
2479
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2329
2480
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2330
2481
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2524,7 +2675,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2524
2675
  const uuid = bytes(randomBytes(16));
2525
2676
  return format === "bytes" ? uuid : stringify(uuid);
2526
2677
  };
2527
- var make21 = (randomBytes) => {
2678
+ var make22 = (randomBytes) => {
2528
2679
  const randomBytesChecked = (size) => {
2529
2680
  checkSize(size);
2530
2681
  return randomBytes(size);
@@ -2558,13 +2709,13 @@ var fillRandom = (crypto2, size) => {
2558
2709
  }
2559
2710
  return bytes;
2560
2711
  };
2561
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2712
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2562
2713
 
2563
2714
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2564
- var TypeId4 = "~effect/http/Cookies";
2715
+ var TypeId5 = "~effect/http/Cookies";
2565
2716
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2566
2717
  var Proto2 = {
2567
- [TypeId4]: TypeId4,
2718
+ [TypeId5]: TypeId5,
2568
2719
  ...BaseProto,
2569
2720
  toJSON() {
2570
2721
  return {
@@ -2743,14 +2894,14 @@ var tryDecodeURIComponent = (str) => {
2743
2894
  };
2744
2895
 
2745
2896
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2746
- var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2897
+ var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2747
2898
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2748
- [TypeId5]: {
2749
- value: TypeId5
2899
+ [TypeId6]: {
2900
+ value: TypeId6
2750
2901
  },
2751
2902
  [symbolRedactable]: {
2752
2903
  value(context) {
2753
- return redact2(this, get4(context, CurrentRedactedNames));
2904
+ return redact2(this, get3(context, CurrentRedactedNames));
2754
2905
  }
2755
2906
  },
2756
2907
  toJSON: {
@@ -2775,7 +2926,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2775
2926
  value: BaseProto[NodeInspectSymbol]
2776
2927
  }
2777
2928
  });
2778
- var make22 = (input) => Object.assign(Object.create(Proto3), input);
2929
+ var make23 = (input) => Object.assign(Object.create(Proto3), input);
2779
2930
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2780
2931
  var empty = /* @__PURE__ */ Object.create(Proto3);
2781
2932
  var fromInput = (input) => {
@@ -2800,21 +2951,21 @@ var fromInput = (input) => {
2800
2951
  };
2801
2952
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2802
2953
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2803
- const out = make22(self);
2954
+ const out = make23(self);
2804
2955
  out[key.toLowerCase()] = value;
2805
2956
  return out;
2806
2957
  });
2807
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2958
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2808
2959
  ...self,
2809
2960
  ...fromInput(headers)
2810
2961
  }));
2811
2962
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2812
- const out = make22(self);
2963
+ const out = make23(self);
2813
2964
  Object.assign(out, headers);
2814
2965
  return out;
2815
2966
  });
2816
2967
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2817
- const out = make22(self);
2968
+ const out = make23(self);
2818
2969
  delete out[key.toLowerCase()];
2819
2970
  return out;
2820
2971
  });
@@ -2826,12 +2977,12 @@ var redact2 = /* @__PURE__ */ dual(2, (self, key) => {
2826
2977
  if (typeof key === "string") {
2827
2978
  const k = key.toLowerCase();
2828
2979
  if (k in self) {
2829
- out[k] = make(self[k]);
2980
+ out[k] = make15(self[k]);
2830
2981
  }
2831
2982
  } else {
2832
2983
  for (const name in self) {
2833
2984
  if (name.search(key) !== -1) {
2834
- out[name] = make(self[name]);
2985
+ out[name] = make15(self[name]);
2835
2986
  }
2836
2987
  }
2837
2988
  }
@@ -2871,18 +3022,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
2871
3022
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
2872
3023
 
2873
3024
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
2874
- var TypeId6 = "~effect/http/UrlParams";
2875
- var isUrlParams = (u) => hasProperty(u, TypeId6);
3025
+ var TypeId7 = "~effect/http/UrlParams";
3026
+ var isUrlParams = (u) => hasProperty(u, TypeId7);
2876
3027
  var Proto4 = {
2877
3028
  ...PipeInspectableProto,
2878
- [TypeId6]: TypeId6,
3029
+ [TypeId7]: TypeId7,
2879
3030
  [Symbol.iterator]() {
2880
3031
  return this.params[Symbol.iterator]();
2881
3032
  },
2882
3033
  [symbolRedactable](context) {
2883
3034
  return {
2884
3035
  _id: "UrlParams",
2885
- params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3036
+ params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2886
3037
  };
2887
3038
  },
2888
3039
  toJSON() {
@@ -2895,7 +3046,7 @@ var Proto4 = {
2895
3046
  return array(this.params.flat());
2896
3047
  }
2897
3048
  };
2898
- var make23 = (params) => {
3049
+ var make24 = (params) => {
2899
3050
  const self = Object.create(Proto4);
2900
3051
  self.params = params;
2901
3052
  return self;
@@ -2914,7 +3065,7 @@ var fromInput2 = (input) => {
2914
3065
  out.push(parsed[i]);
2915
3066
  }
2916
3067
  }
2917
- return make23(out);
3068
+ return make24(out);
2918
3069
  };
2919
3070
  var fromInputNested = (input) => {
2920
3071
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -2938,9 +3089,9 @@ var fromInputNested = (input) => {
2938
3089
  return out;
2939
3090
  };
2940
3091
  var coerce = (value) => isRedacted(value) ? value : String(value);
2941
- var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3092
+ var Equivalence3 = /* @__PURE__ */ make12((a, b) => arrayEquivalence(a.params, b.params));
2942
3093
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
2943
- var empty4 = /* @__PURE__ */ make23([]);
3094
+ var empty4 = /* @__PURE__ */ make24([]);
2944
3095
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2945
3096
  const params = fromInput2(input).params.slice();
2946
3097
  const keys = new Set;
@@ -2952,11 +3103,11 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
2952
3103
  continue;
2953
3104
  params.push(self.params[i]);
2954
3105
  }
2955
- return make23(params);
3106
+ return make24(params);
2956
3107
  });
2957
3108
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
2958
3109
  const patterns = Array.isArray(key) ? key : [key];
2959
- return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make(value) : value]);
3110
+ return self.params.map(([name, value]) => [name, typeof value === "string" && isRedactedName2(name, patterns) ? make15(value) : value]);
2960
3111
  });
2961
3112
  var isRedactedName2 = isRedactedName;
2962
3113
  var redactUrl = (url, redactedNames = currentRedactedNames()) => {
@@ -3007,13 +3158,13 @@ var decodeQueryKey = (key) => {
3007
3158
  return key;
3008
3159
  }
3009
3160
  };
3010
- var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3161
+ var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3011
3162
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3012
3163
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3013
3164
  });
3014
3165
 
3015
3166
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3016
- var TypeId7 = "~effect/Terminal";
3167
+ var TypeId8 = "~effect/Terminal";
3017
3168
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3018
3169
 
3019
3170
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3022,17 +3173,17 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3022
3173
  [QuitErrorTypeId] = QuitErrorTypeId;
3023
3174
  }
3024
3175
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3025
- var make24 = (impl) => Terminal.of({
3176
+ var make25 = (impl) => Terminal.of({
3026
3177
  ...impl,
3027
- [TypeId7]: TypeId7
3178
+ [TypeId8]: TypeId8
3028
3179
  });
3029
3180
 
3030
3181
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3031
3182
  import * as readline from "readline";
3032
- var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3183
+ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3033
3184
  const stdin = process.stdin;
3034
3185
  const stdout = process.stdout;
3035
- const lines = yield* make9();
3186
+ const lines = yield* make8();
3036
3187
  let inputEnded = stdin.readableEnded;
3037
3188
  let readlineActive = false;
3038
3189
  const onStdinEnd = () => {
@@ -3043,7 +3194,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3043
3194
  };
3044
3195
  stdin.once("end", onStdinEnd);
3045
3196
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3046
- const rlRef = yield* make10({
3197
+ const rlRef = yield* make18({
3047
3198
  acquire: acquireRelease(sync2(() => {
3048
3199
  const rl = readline.createInterface({
3049
3200
  input: stdin,
@@ -3082,7 +3233,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3082
3233
  if (stdin.isTTY)
3083
3234
  stdin.setRawMode(enabled);
3084
3235
  });
3085
- const rawModeRef = yield* make10({
3236
+ const rawModeRef = yield* make18({
3086
3237
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3087
3238
  idleTimeToLive: "10 millis"
3088
3239
  });
@@ -3103,7 +3254,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3103
3254
  return queue;
3104
3255
  });
3105
3256
  const readInput = gen(function* () {
3106
- const queue = yield* make9();
3257
+ const queue = yield* make8();
3107
3258
  const handleKeypress = (s, k) => {
3108
3259
  const userInput = {
3109
3260
  input: fromUndefinedOr(s),
@@ -3133,14 +3284,14 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3133
3284
  if (inputEnded) {
3134
3285
  handleEnd();
3135
3286
  } else {
3136
- yield* get3(rlRef);
3137
- yield* get3(rawModeRef);
3287
+ yield* get5(rlRef);
3288
+ yield* get5(rawModeRef);
3138
3289
  stdin.once("end", handleEnd);
3139
3290
  }
3140
3291
  return queue;
3141
3292
  });
3142
3293
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3143
- onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3294
+ onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3144
3295
  onSome: succeed6
3145
3296
  })), mapError2(() => new QuitError({}))));
3146
3297
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3151,7 +3302,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3151
3302
  cause: err
3152
3303
  }))));
3153
3304
  }));
3154
- return make24({
3305
+ return make25({
3155
3306
  columns,
3156
3307
  rows,
3157
3308
  size,
@@ -3160,7 +3311,7 @@ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3160
3311
  display
3161
3312
  });
3162
3313
  });
3163
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3314
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3164
3315
  function defaultShouldQuit(input) {
3165
3316
  const key = input.key;
3166
3317
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3187,7 +3338,7 @@ function toDate(input) {
3187
3338
  return toDateUtc2(makeUnsafe(input));
3188
3339
  }
3189
3340
  function parseDate(input) {
3190
- return getOrUndefined(map4(make18(input), toDateUtc2));
3341
+ return getOrUndefined(map4(make19(input), toDateUtc2));
3191
3342
  }
3192
3343
  function toIso(input) {
3193
3344
  return formatIso(makeUnsafe(input));
@@ -9195,11 +9346,11 @@ var TranscriptSearchResult = Struct({
9195
9346
  total: Int
9196
9347
  });
9197
9348
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9198
- var TypeId8 = "~effect/http/HttpBody";
9349
+ var TypeId9 = "~effect/http/HttpBody";
9199
9350
  class Proto5 {
9200
- [TypeId8];
9351
+ [TypeId9];
9201
9352
  constructor() {
9202
- this[TypeId8] = TypeId8;
9353
+ this[TypeId9] = TypeId9;
9203
9354
  }
9204
9355
  [NodeInspectSymbol]() {
9205
9356
  return this.toJSON();
@@ -9278,7 +9429,7 @@ var buffer = globalThis.Buffer;
9278
9429
  var encodeText = buffer !== undefined ? (body) => buffer.from(body, "utf8") : (body) => encoder.encode(body);
9279
9430
 
9280
9431
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9281
- var TypeId9 = "~effect/http/HttpClientError";
9432
+ var TypeId10 = "~effect/http/HttpClientError";
9282
9433
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9283
9434
  constructor(props) {
9284
9435
  if ("cause" in props.reason) {
@@ -9290,7 +9441,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9290
9441
  super(props);
9291
9442
  }
9292
9443
  }
9293
- [TypeId9] = TypeId9;
9444
+ [TypeId10] = TypeId10;
9294
9445
  get request() {
9295
9446
  return this.reason.request;
9296
9447
  }
@@ -9394,7 +9545,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9394
9545
  }
9395
9546
  }
9396
9547
 
9397
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9548
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9398
9549
  _tag: /* @__PURE__ */ tag("HttpError"),
9399
9550
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9400
9551
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9427,7 +9578,7 @@ var updateContentLength = (headers, body) => {
9427
9578
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9428
9579
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9429
9580
  }
9430
- var make26 = (url, params, hash) => try_({
9581
+ var make27 = (url, params, hash) => try_({
9431
9582
  try: () => {
9432
9583
  const urlInstance = new URL(url, baseUrl());
9433
9584
  for (let i = 0;i < params.params.length; i++) {
@@ -9458,10 +9609,10 @@ var baseUrl = () => {
9458
9609
  };
9459
9610
 
9460
9611
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9461
- var TypeId10 = "~effect/http/HttpClientRequest";
9462
- var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9612
+ var TypeId11 = "~effect/http/HttpClientRequest";
9613
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9463
9614
  var Proto6 = {
9464
- [TypeId10]: TypeId10,
9615
+ [TypeId11]: TypeId11,
9465
9616
  ...BaseProto,
9466
9617
  toJSON() {
9467
9618
  return {
@@ -9489,13 +9640,13 @@ function makeWith(method, url, urlParams, hash, headers, body) {
9489
9640
  return self;
9490
9641
  }
9491
9642
  var empty6 = /* @__PURE__ */ makeWith("GET", "", empty4, /* @__PURE__ */ none(), empty, empty5);
9492
- var make5 = (method) => (url, options) => modify(empty6, {
9643
+ var make4 = (method) => (url, options) => modify(empty6, {
9493
9644
  method,
9494
9645
  url,
9495
9646
  ...options ?? undefined
9496
9647
  });
9497
- var get = /* @__PURE__ */ make5("GET");
9498
- var put = /* @__PURE__ */ make5("PUT");
9648
+ var get = /* @__PURE__ */ make4("GET");
9649
+ var put = /* @__PURE__ */ make4("PUT");
9499
9650
  var modify = /* @__PURE__ */ dual(2, (self, options) => {
9500
9651
  let result = self;
9501
9652
  if (options.method) {
@@ -9547,7 +9698,7 @@ var setBody = /* @__PURE__ */ dual(2, (self, body) => {
9547
9698
  });
9548
9699
  var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0]), (self, body, contentType) => setBody(self, uint8Array(body, contentType)));
9549
9700
  function toUrl(self) {
9550
- const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9701
+ const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9551
9702
  if (isSuccess(r)) {
9552
9703
  return some(r.success);
9553
9704
  }
@@ -9555,7 +9706,7 @@ function toUrl(self) {
9555
9706
  }
9556
9707
 
9557
9708
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9558
- var TypeId11 = "~effect/http/HttpIncomingMessage";
9709
+ var TypeId12 = "~effect/http/HttpIncomingMessage";
9559
9710
  var schemaBodyJson = (schema, options) => {
9560
9711
  const decode = decodeEffect(toCodecJson(schema));
9561
9712
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9574,7 +9725,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9574
9725
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9575
9726
 
9576
9727
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9577
- var TypeId12 = "~effect/http/HttpClientResponse";
9728
+ var TypeId13 = "~effect/http/HttpClientResponse";
9578
9729
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9579
9730
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9580
9731
  reason: new StatusCodeError({
@@ -9585,16 +9736,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9585
9736
  }));
9586
9737
 
9587
9738
  class WebHttpClientResponse extends Class {
9588
- [TypeId11];
9589
9739
  [TypeId12];
9740
+ [TypeId13];
9590
9741
  request;
9591
9742
  source;
9592
9743
  constructor(request, source) {
9593
9744
  super();
9594
9745
  this.request = request;
9595
9746
  this.source = source;
9596
- this[TypeId11] = TypeId11;
9597
9747
  this[TypeId12] = TypeId12;
9748
+ this[TypeId13] = TypeId13;
9598
9749
  }
9599
9750
  toJSON() {
9600
9751
  return inspect(this, {
@@ -9766,7 +9917,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
9766
9917
  };
9767
9918
 
9768
9919
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
9769
- var TypeId13 = "~effect/http/HttpClient";
9920
+ var TypeId14 = "~effect/http/HttpClient";
9770
9921
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
9771
9922
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
9772
9923
  var execute = /* @__PURE__ */ accessor("execute");
@@ -9783,7 +9934,7 @@ var makeWith2 = (postprocess, preprocess) => {
9783
9934
  return self;
9784
9935
  };
9785
9936
  var Proto7 = {
9786
- [TypeId13]: TypeId13,
9937
+ [TypeId14]: TypeId14,
9787
9938
  pipe() {
9788
9939
  return pipeArguments(this, arguments);
9789
9940
  },
@@ -9794,13 +9945,13 @@ var Proto7 = {
9794
9945
  };
9795
9946
  },
9796
9947
  .../* @__PURE__ */ Object.fromEntries(/* @__PURE__ */ allShort.map(([fullMethod, method]) => [method, function(url, options) {
9797
- return this.execute(make5(fullMethod)(url, options));
9948
+ return this.execute(make4(fullMethod)(url, options));
9798
9949
  }]))
9799
9950
  };
9800
- var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9951
+ var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
9801
9952
  const scopedController = scopedRequests.get(request);
9802
9953
  const controller = scopedController ?? new AbortController;
9803
- const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
9954
+ const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
9804
9955
  if (isFailure(urlResult)) {
9805
9956
  return fail7(new HttpClientError({
9806
9957
  reason: new InvalidUrlError({
@@ -9934,8 +10085,8 @@ class InterruptibleResponse {
9934
10085
  this.original = original;
9935
10086
  this.controller = controller;
9936
10087
  }
10088
+ [TypeId13] = TypeId13;
9937
10089
  [TypeId12] = TypeId12;
9938
- [TypeId11] = TypeId11;
9939
10090
  applyInterrupt(effect) {
9940
10091
  return suspend3(() => {
9941
10092
  responseRegistry.unregister(this.original);
@@ -10033,7 +10184,7 @@ var detectStreamBodySupport = () => {
10033
10184
  return false;
10034
10185
  }
10035
10186
  };
10036
- var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10187
+ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10037
10188
  if (request.headers.upgrade !== undefined) {
10038
10189
  return fail7(new HttpClientError({
10039
10190
  reason: new TransportError({
@@ -10124,10 +10275,10 @@ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10124
10275
  });
10125
10276
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10126
10277
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10127
- var TypeId14 = "~effect/socket/Socket";
10278
+ var TypeId15 = "~effect/socket/Socket";
10128
10279
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10129
- var make28 = (options) => Socket.of({
10130
- [TypeId14]: TypeId14,
10280
+ var make29 = (options) => Socket.of({
10281
+ [TypeId15]: TypeId15,
10131
10282
  reader: options.reader,
10132
10283
  writer: options.writer
10133
10284
  });
@@ -10450,7 +10601,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10450
10601
  write,
10451
10602
  writeAll
10452
10603
  });
10453
- return succeed6(make28({
10604
+ return succeed6(make29({
10454
10605
  reader,
10455
10606
  writer
10456
10607
  }));
@@ -13287,7 +13438,7 @@ function getStreamSchemas(schema) {
13287
13438
  }
13288
13439
  var schema = /* @__PURE__ */ declare(isStream);
13289
13440
  function Stream(success, error) {
13290
- return make17(schema.ast, {
13441
+ return make16(schema.ast, {
13291
13442
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13292
13443
  success,
13293
13444
  error
@@ -13295,9 +13446,9 @@ function Stream(success, error) {
13295
13446
  }
13296
13447
 
13297
13448
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13298
- var TypeId15 = "~effect/rpc/Rpc";
13449
+ var TypeId16 = "~effect/rpc/Rpc";
13299
13450
  var Proto8 = {
13300
- [TypeId15]: TypeId15,
13451
+ [TypeId16]: TypeId16,
13301
13452
  pipe() {
13302
13453
  return pipeArguments(this, arguments);
13303
13454
  },
@@ -13386,7 +13537,7 @@ var makeProto = (options) => {
13386
13537
  Rpc.key = `effect/rpc/Rpc/${options._tag}`;
13387
13538
  return Rpc;
13388
13539
  };
13389
- var make6 = (tag, options) => {
13540
+ var make5 = (tag, options) => {
13390
13541
  const successSchema = options?.success ?? Void;
13391
13542
  const errorSchema = options?.error ?? Never;
13392
13543
  const defectSchema = options?.defect ?? Defect();
@@ -13464,7 +13615,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13464
13615
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13465
13616
 
13466
13617
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13467
- var TypeId16 = "~effect/rpc/RpcClientError";
13618
+ var TypeId17 = "~effect/rpc/RpcClientError";
13468
13619
 
13469
13620
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13470
13621
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13473,11 +13624,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13473
13624
  })) {
13474
13625
  }
13475
13626
 
13476
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13627
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13477
13628
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13478
13629
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13479
13630
  })) {
13480
- [TypeId16] = TypeId16;
13631
+ [TypeId17] = TypeId17;
13481
13632
  get message() {
13482
13633
  return `${this.reason._tag}: ${this.reason.message}`;
13483
13634
  }
@@ -13597,7 +13748,7 @@ var RpcGroupProto = {
13597
13748
  });
13598
13749
  },
13599
13750
  annotateRpcs(service, value) {
13600
- return this.annotateRpcsMerge(make15(service, value));
13751
+ return this.annotateRpcsMerge(make13(service, value));
13601
13752
  },
13602
13753
  annotateMerge(context) {
13603
13754
  return makeProto2({
@@ -13620,12 +13771,12 @@ var makeProto2 = (options) => Object.assign(function() {}, RpcGroupProto, {
13620
13771
  requests: options.requests,
13621
13772
  annotations: options.annotations
13622
13773
  });
13623
- var make7 = (...rpcs) => makeProto2({
13774
+ var make6 = (...rpcs) => makeProto2({
13624
13775
  requests: new Map(rpcs.map((rpc) => [rpc._tag, rpc])),
13625
13776
  annotations: empty3()
13626
13777
  });
13627
13778
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
13628
- var TypeId17 = "~effect/rpc/RpcMiddleware";
13779
+ var TypeId18 = "~effect/rpc/RpcMiddleware";
13629
13780
  var Service = () => (id, options) => {
13630
13781
  const limit = getStackTraceLimit();
13631
13782
  let creationError;
@@ -13643,7 +13794,7 @@ var Service = () => (id, options) => {
13643
13794
  return creationError?.stack;
13644
13795
  }
13645
13796
  });
13646
- ServiceClass_[TypeId17] = TypeId17;
13797
+ ServiceClass_[TypeId18] = TypeId18;
13647
13798
  ServiceClass_.error = options?.error ?? Never;
13648
13799
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
13649
13800
  return ServiceClass;
@@ -13727,96 +13878,96 @@ var ProgramOutcome = Union([
13727
13878
  Struct({ status: Literal("failed"), failureSummary: String4 })
13728
13879
  ]);
13729
13880
 
13730
- class RunnerReplicaRpcs extends make7(make6("Claim", {
13881
+ class RunnerReplicaRpcs extends make6(make5("Claim", {
13731
13882
  payload: WorkUnitClaimInput,
13732
13883
  success: WorkUnitClaimResult,
13733
13884
  error: RunnerRpcError
13734
- }), make6("Heartbeat", {
13885
+ }), make5("Heartbeat", {
13735
13886
  payload: WorkUnitHeartbeatInput,
13736
13887
  success: WorkUnitHeartbeatResult,
13737
13888
  error: RunnerRpcError
13738
- }), make6("Complete", {
13889
+ }), make5("Complete", {
13739
13890
  payload: WorkUnitCompletion,
13740
13891
  error: RunnerRpcError
13741
- }), make6("Release", {
13892
+ }), make5("Release", {
13742
13893
  payload: WorkUnitReleaseInput,
13743
13894
  error: RunnerRpcError
13744
- }), make6("Signals", {
13895
+ }), make5("Signals", {
13745
13896
  payload: { runnerReplicaId: String4 },
13746
13897
  success: RunnerSignal,
13747
13898
  error: RunnerRpcError,
13748
13899
  stream: true
13749
- }), make6("ReportSteer", {
13900
+ }), make5("ReportSteer", {
13750
13901
  payload: { workUnitId: String4, messageId: String4, delivered: Boolean2 },
13751
13902
  success: Void,
13752
13903
  error: RunnerRpcError
13753
- }), make6("AppendTranscript", {
13904
+ }), make5("AppendTranscript", {
13754
13905
  payload: { workUnitId: String4, entries: ArraySchema(TranscriptAppendEntry).check(isMaxLength(100)) },
13755
13906
  success: Void,
13756
13907
  error: RunnerRpcError
13757
- }), make6("CreateCheckpointFile", {
13908
+ }), make5("CreateCheckpointFile", {
13758
13909
  payload: { lease: ProgramLease, byteSize: Int, sha256: String4 },
13759
13910
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
13760
13911
  error: Union([RunnerRpcError, RunFileRefused])
13761
- }), make6("CheckpointFileParts", {
13912
+ }), make5("CheckpointFileParts", {
13762
13913
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
13763
13914
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
13764
13915
  error: RunnerRpcError
13765
- }), make6("CompleteCheckpointFile", {
13916
+ }), make5("CompleteCheckpointFile", {
13766
13917
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
13767
13918
  success: RunFileRecord,
13768
13919
  error: RunnerRpcError
13769
- }), make6("SaveCheckpoint", {
13920
+ }), make5("SaveCheckpoint", {
13770
13921
  payload: { lease: ProgramLease, checkpoint: StepCheckpoint },
13771
13922
  success: Void,
13772
13923
  error: RunnerRpcError
13773
- }), make6("ResumeCheckpoint", {
13924
+ }), make5("ResumeCheckpoint", {
13774
13925
  payload: { lease: ProgramLease },
13775
13926
  success: UndefinedOr(ResumedCheckpoint),
13776
13927
  error: RunnerRpcError
13777
- }), make6("SettledCheckpoints", {
13928
+ }), make5("SettledCheckpoints", {
13778
13929
  success: ArraySchema(Struct({
13779
13930
  stepAttemptId: String4,
13780
13931
  ref: optionalKey(String4),
13781
13932
  repoBinding: optionalKey(WorkUnitRepoBinding)
13782
13933
  })),
13783
13934
  error: RunnerRpcError
13784
- }), make6("ForgetCheckpoints", {
13935
+ }), make5("ForgetCheckpoints", {
13785
13936
  payload: { stepAttemptIds: ArraySchema(String4) },
13786
13937
  success: Void,
13787
13938
  error: RunnerRpcError
13788
- }), make6("GitCredential", {
13939
+ }), make5("GitCredential", {
13789
13940
  payload: { repoBindingId: String4 },
13790
13941
  success: UndefinedOr(Struct({ username: String4, password: String4 })),
13791
13942
  error: RunnerRpcError
13792
- }), make6("Bundle", {
13943
+ }), make5("Bundle", {
13793
13944
  payload: { digest: String4 },
13794
13945
  success: Struct({ bundle: String4 }),
13795
13946
  error: RunnerRpcError
13796
- }), make6("SettledRuns", {
13947
+ }), make5("SettledRuns", {
13797
13948
  payload: { runIds: ArraySchema(String4) },
13798
13949
  success: ArraySchema(String4),
13799
13950
  error: RunnerRpcError
13800
- }), make6("KnownEvidence", {
13951
+ }), make5("KnownEvidence", {
13801
13952
  payload: { lease: ProgramLease, trees: ArraySchema(String4) },
13802
13953
  success: ArraySchema(Struct({ tree: String4, name: String4, command: String4 })),
13803
13954
  error: RunnerRpcError
13804
13955
  })).middleware(RunnerAuthentication) {
13805
13956
  }
13806
13957
 
13807
- class RunnerJournalRpcs extends make7(make6("RecordActivity", {
13958
+ class RunnerJournalRpcs extends make6(make5("RecordActivity", {
13808
13959
  payload: { lease: ProgramLease, name: String4, attempt: Int, exit: Json },
13809
13960
  error: RunnerRpcError
13810
- }), make6("DeferredDone", {
13961
+ }), make5("DeferredDone", {
13811
13962
  payload: { lease: ProgramLease, name: String4, exit: Json },
13812
13963
  error: RunnerRpcError
13813
- }), make6("ScheduleClock", {
13964
+ }), make5("ScheduleClock", {
13814
13965
  payload: { lease: ProgramLease, name: String4, deferredName: String4, durationMillis: Int },
13815
13966
  error: RunnerRpcError
13816
- }), make6("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make6("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13967
+ }), make5("Suspend", { payload: { lease: ProgramLease }, error: RunnerRpcError }), make5("FinishProgram", { payload: { lease: ProgramLease, outcome: ProgramOutcome }, error: RunnerRpcError })).middleware(RunnerAuthentication) {
13817
13968
  }
13818
13969
 
13819
- class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13970
+ class RunnerCapabilityRpcs extends make6(make5("PutQuestion", {
13820
13971
  payload: {
13821
13972
  lease: ProgramLease,
13822
13973
  step: String4,
@@ -13833,7 +13984,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13833
13984
  },
13834
13985
  success: Struct({ questionId: String4 }),
13835
13986
  error: RunnerRpcError
13836
- }), make6("StartAgentStep", {
13987
+ }), make5("StartAgentStep", {
13837
13988
  payload: {
13838
13989
  lease: ProgramLease,
13839
13990
  step: String4,
@@ -13849,7 +14000,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13849
14000
  },
13850
14001
  success: Struct({ stepAttemptId: String4 }),
13851
14002
  error: RunnerRpcError
13852
- }), make6("StartVerification", {
14003
+ }), make5("StartVerification", {
13853
14004
  payload: {
13854
14005
  lease: ProgramLease,
13855
14006
  step: String4,
@@ -13866,7 +14017,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13866
14017
  },
13867
14018
  success: Struct({ verificationId: String4 }),
13868
14019
  error: RunnerRpcError
13869
- }), make6("AwaitEvent", {
14020
+ }), make5("AwaitEvent", {
13870
14021
  payload: {
13871
14022
  lease: ProgramLease,
13872
14023
  step: String4,
@@ -13882,7 +14033,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13882
14033
  })))
13883
14034
  },
13884
14035
  error: RunnerRpcError
13885
- }), make6("ClaimResource", {
14036
+ }), make5("ClaimResource", {
13886
14037
  payload: {
13887
14038
  lease: ProgramLease,
13888
14039
  step: String4,
@@ -13891,7 +14042,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13891
14042
  action: Literals(["claim", "take_over", "let_go"])
13892
14043
  },
13893
14044
  error: RunnerRpcError
13894
- }), make6("AdmitChild", {
14045
+ }), make5("AdmitChild", {
13895
14046
  payload: {
13896
14047
  lease: ProgramLease,
13897
14048
  step: String4,
@@ -13901,7 +14052,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13901
14052
  },
13902
14053
  success: Struct({ runId: String4 }),
13903
14054
  error: RunnerRpcError
13904
- }), make6("StoreArtifact", {
14055
+ }), make5("StoreArtifact", {
13905
14056
  payload: {
13906
14057
  lease: ProgramLease,
13907
14058
  step: String4,
@@ -13913,7 +14064,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13913
14064
  },
13914
14065
  success: Struct({ artifactId: String4 }),
13915
14066
  error: RunnerRpcError
13916
- }), make6("RecordNote", {
14067
+ }), make5("RecordNote", {
13917
14068
  payload: {
13918
14069
  lease: ProgramLease,
13919
14070
  step: String4,
@@ -13921,7 +14072,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13921
14072
  artifactId: optional(String4)
13922
14073
  },
13923
14074
  error: RunnerRpcError
13924
- }), make6("PerformHostEffect", {
14075
+ }), make5("PerformHostEffect", {
13925
14076
  payload: {
13926
14077
  lease: ProgramLease,
13927
14078
  step: String4,
@@ -13949,7 +14100,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13949
14100
  },
13950
14101
  success: UndefinedOr(Struct({ id: String4, number: String4, url: String4 })),
13951
14102
  error: RunnerRpcError
13952
- }), make6("AlertTask", {
14103
+ }), make5("AlertTask", {
13953
14104
  payload: {
13954
14105
  lease: ProgramLease,
13955
14106
  step: String4,
@@ -13966,7 +14117,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13966
14117
  joined: optionalKey(Struct({ kind: Literals(["run", "recent"]), runId: String4 }))
13967
14118
  }),
13968
14119
  error: RunnerRpcError
13969
- }), make6("ReadTranscripts", {
14120
+ }), make5("ReadTranscripts", {
13970
14121
  payload: { lease: ProgramLease, step: String4, days: Int },
13971
14122
  success: Struct({
13972
14123
  runs: ArraySchema(Struct({
@@ -13985,7 +14136,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
13985
14136
  }))
13986
14137
  }),
13987
14138
  error: RunnerRpcError
13988
- }), make6("PipelineStatus", {
14139
+ }), make5("PipelineStatus", {
13989
14140
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
13990
14141
  success: Struct({
13991
14142
  head: String4,
@@ -14001,11 +14152,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14001
14152
  runnerChecks: optionalKey(ArraySchema(String4))
14002
14153
  }),
14003
14154
  error: RunnerRpcError
14004
- }), make6("ReportPipeline", {
14155
+ }), make5("ReportPipeline", {
14005
14156
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4, verification: String4 },
14006
14157
  success: Struct({ head: String4, status: Literals(["success", "failed"]) }),
14007
14158
  error: RunnerRpcError
14008
- }), make6("ReviewThreads", {
14159
+ }), make5("ReviewThreads", {
14009
14160
  payload: { lease: ProgramLease, step: String4, changeRequestId: String4 },
14010
14161
  success: Struct({
14011
14162
  threads: ArraySchema(Struct({
@@ -14017,7 +14168,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14017
14168
  }))
14018
14169
  }),
14019
14170
  error: RunnerRpcError
14020
- }), make6("OpenChangeRequests", {
14171
+ }), make5("OpenChangeRequests", {
14021
14172
  payload: { lease: ProgramLease, step: String4, authors: NonEmptyArray(String4) },
14022
14173
  success: Struct({
14023
14174
  changeRequests: ArraySchema(Struct({
@@ -14031,7 +14182,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14031
14182
  }))
14032
14183
  }),
14033
14184
  error: RunnerRpcError
14034
- }), make6("OwnChangeRequests", {
14185
+ }), make5("OwnChangeRequests", {
14035
14186
  payload: { lease: ProgramLease, step: String4 },
14036
14187
  success: Struct({
14037
14188
  changeRequests: ArraySchema(Struct({
@@ -14044,7 +14195,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14044
14195
  }))
14045
14196
  }),
14046
14197
  error: RunnerRpcError
14047
- }), make6("Propose", {
14198
+ }), make5("Propose", {
14048
14199
  payload: {
14049
14200
  lease: ProgramLease,
14050
14201
  step: String4,
@@ -14071,7 +14222,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14071
14222
  matched: optionalKey(Boolean2)
14072
14223
  }),
14073
14224
  error: RunnerRpcError
14074
- }), make6("ReadProject", {
14225
+ }), make5("ReadProject", {
14075
14226
  payload: { lease: ProgramLease, step: String4, projectId: String4 },
14076
14227
  success: Struct({
14077
14228
  project: Struct({ id: String4, name: String4 }),
@@ -14094,7 +14245,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14094
14245
  taskChanges: ArraySchema(Struct({ taskKey: String4, title: String4, change: String4, at: String4 }))
14095
14246
  }),
14096
14247
  error: RunnerRpcError
14097
- }), make6("DraftUpdate", {
14248
+ }), make5("DraftUpdate", {
14098
14249
  payload: {
14099
14250
  lease: ProgramLease,
14100
14251
  step: String4,
@@ -14109,7 +14260,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14109
14260
  },
14110
14261
  success: Struct({ id: String4 }),
14111
14262
  error: RunnerRpcError
14112
- }), make6("CreatePlanTasks", {
14263
+ }), make5("CreatePlanTasks", {
14113
14264
  payload: {
14114
14265
  lease: ProgramLease,
14115
14266
  projectId: optionalKey(String4),
@@ -14124,11 +14275,11 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14124
14275
  },
14125
14276
  success: ArraySchema(Struct({ key: String4, taskId: String4 })),
14126
14277
  error: RunnerRpcError
14127
- }), make6("IntegrationBranch", {
14278
+ }), make5("IntegrationBranch", {
14128
14279
  payload: { lease: ProgramLease, repoBindingId: optionalKey(String4) },
14129
14280
  success: Struct({ repoBindingId: String4, branch: String4, revision: String4 }),
14130
14281
  error: RunnerRpcError
14131
- }), make6("MergeChangeRequest", {
14282
+ }), make5("MergeChangeRequest", {
14132
14283
  payload: {
14133
14284
  lease: ProgramLease,
14134
14285
  step: String4,
@@ -14141,7 +14292,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14141
14292
  Struct({ status: Literal("moved"), head: String4 })
14142
14293
  ]),
14143
14294
  error: RunnerRpcError
14144
- }), make6("ApproveChangeRequest", {
14295
+ }), make5("ApproveChangeRequest", {
14145
14296
  payload: {
14146
14297
  lease: ProgramLease,
14147
14298
  step: String4,
@@ -14156,7 +14307,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14156
14307
  Struct({ approved: Literal(false), reason: String4 })
14157
14308
  ]),
14158
14309
  error: RunnerRpcError
14159
- }), make6("CloseChangeRequest", {
14310
+ }), make5("CloseChangeRequest", {
14160
14311
  payload: {
14161
14312
  lease: ProgramLease,
14162
14313
  step: String4,
@@ -14166,7 +14317,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14166
14317
  },
14167
14318
  success: Struct({ closed: Boolean2, head: optionalKey(String4) }),
14168
14319
  error: RunnerRpcError
14169
- }), make6("RerunPipeline", {
14320
+ }), make5("RerunPipeline", {
14170
14321
  payload: {
14171
14322
  lease: ProgramLease,
14172
14323
  step: String4,
@@ -14176,7 +14327,7 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14176
14327
  },
14177
14328
  success: Struct({ head: String4, pipelines: Int }),
14178
14329
  error: RunnerRpcError
14179
- }), make6("PublishRelease", {
14330
+ }), make5("PublishRelease", {
14180
14331
  payload: {
14181
14332
  lease: ProgramLease,
14182
14333
  step: String4,
@@ -14187,14 +14338,14 @@ class RunnerCapabilityRpcs extends make7(make6("PutQuestion", {
14187
14338
  },
14188
14339
  success: Struct({ tag: String4, revision: String4, url: String4 }),
14189
14340
  error: RunnerRpcError
14190
- }), make6("ProgramSecrets", {
14341
+ }), make5("ProgramSecrets", {
14191
14342
  payload: { lease: ProgramLease },
14192
14343
  success: Record(String4, String4),
14193
14344
  error: RunnerRpcError
14194
14345
  })).middleware(RunnerAuthentication) {
14195
14346
  }
14196
14347
 
14197
- class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14348
+ class RunnerRunFileRpcs extends make6(make5("CreateRunFile", {
14198
14349
  payload: {
14199
14350
  lease: ProgramLease,
14200
14351
  step: String4,
@@ -14206,11 +14357,11 @@ class RunnerRunFileRpcs extends make7(make6("CreateRunFile", {
14206
14357
  },
14207
14358
  success: Struct({ file: RunFileRecord, upload: optional(RunFileUpload) }),
14208
14359
  error: Union([RunnerRpcError, RunFileRefused])
14209
- }), make6("RunFileParts", {
14360
+ }), make5("RunFileParts", {
14210
14361
  payload: { lease: ProgramLease, fileId: String4, partNumbers: ArraySchema(Int) },
14211
14362
  success: Struct({ parts: ArraySchema(RunFilePartUrl) }),
14212
14363
  error: RunnerRpcError
14213
- }), make6("CompleteRunFile", {
14364
+ }), make5("CompleteRunFile", {
14214
14365
  payload: { lease: ProgramLease, fileId: String4, parts: optional(ArraySchema(UploadedRunFilePart)) },
14215
14366
  success: RunFileRecord,
14216
14367
  error: RunnerRpcError
@@ -14220,7 +14371,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14220
14371
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14221
14372
 
14222
14373
  // apps/cli/src/oauth.ts
14223
- var Scope = "openid profile email offline_access kitman:cli";
14374
+ var Scope2 = "openid profile email offline_access kitman:cli";
14224
14375
  var CallbackPath = "/auth/callback";
14225
14376
 
14226
14377
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14239,7 +14390,7 @@ function buildAuthorizeUrl(input) {
14239
14390
  url.searchParams.set("response_type", "code");
14240
14391
  url.searchParams.set("client_id", input.clientId);
14241
14392
  url.searchParams.set("redirect_uri", input.redirectUri);
14242
- url.searchParams.set("scope", Scope);
14393
+ url.searchParams.set("scope", Scope2);
14243
14394
  url.searchParams.set("code_challenge", input.codeChallenge);
14244
14395
  url.searchParams.set("code_challenge_method", "S256");
14245
14396
  url.searchParams.set("state", input.state);
@@ -14299,7 +14450,7 @@ function toStoredSession(token, existingRefreshToken) {
14299
14450
  }
14300
14451
  function startLoopbackServer(input) {
14301
14452
  return gen(function* () {
14302
- const code = yield* make16();
14453
+ const code = yield* make14();
14303
14454
  const context2 = yield* context();
14304
14455
  const runSyncExit = runSyncExitWith(context2);
14305
14456
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -14839,7 +14990,7 @@ var openConnection = (transport) => gen(function* () {
14839
14990
  let lastId = 0;
14840
14991
  let lost = false;
14841
14992
  const notifications = yield* unbounded2();
14842
- const ended = yield* make16();
14993
+ const ended = yield* make14();
14843
14994
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
14844
14995
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
14845
14996
  onNone: () => void_3,
@@ -14866,7 +15017,7 @@ var openConnection = (transport) => gen(function* () {
14866
15017
  if (lost)
14867
15018
  return yield* new HerdrCoreConnectionLost2({ method });
14868
15019
  const id = ++lastId;
14869
- const deferred = yield* make16();
15020
+ const deferred = yield* make14();
14870
15021
  pending.set(id, { method, deferred });
14871
15022
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
14872
15023
  return yield* _await(deferred);
@@ -14940,14 +15091,14 @@ var herdrCoreOver = (transport) => ({
14940
15091
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
14941
15092
  };
14942
15093
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
14943
- return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15094
+ return concat(make9(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
14944
15095
  }))
14945
15096
  });
14946
15097
  var spawnedTransport = (env) => gen(function* () {
14947
15098
  const spawner = yield* ChildProcessSpawner;
14948
15099
  const input = yield* unbounded2();
14949
15100
  const encoder = new TextEncoder;
14950
- const handle = yield* spawner.spawn(make3("herdr-core", ["connect"], {
15101
+ const handle = yield* spawner.spawn(make2("herdr-core", ["connect"], {
14951
15102
  extendEnv: false,
14952
15103
  env,
14953
15104
  stdin: fromQueue(input),
@@ -14978,7 +15129,7 @@ var updateHerdrCore2 = (options) => gen(function* () {
14978
15129
  const spawner = yield* ChildProcessSpawner;
14979
15130
  const env = coreEnv(options);
14980
15131
  const run = (args) => gen(function* () {
14981
- const handle = yield* spawner.spawn(make3("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
15132
+ const handle = yield* spawner.spawn(make2("herdr-core", args, { extendEnv: false, env, stdin: "ignore" }));
14982
15133
  const [stdout, stderr, exitCode] = yield* all3([
14983
15134
  mkString(decodeText(handle.stdout)),
14984
15135
  mkString(decodeText(handle.stderr)),
@@ -15004,7 +15155,7 @@ class CommandFailed2 extends TaggedError("CommandFailed") {
15004
15155
  }
15005
15156
  var runCommand2 = (command, args, options = {}) => gen(function* () {
15006
15157
  const spawner = yield* ChildProcessSpawner;
15007
- const handle = yield* spawner.spawn(make3(command, args, {
15158
+ const handle = yield* spawner.spawn(make2(command, args, {
15008
15159
  stdin: "ignore",
15009
15160
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15010
15161
  ...options.env === undefined ? undefined : { extendEnv: true, env: options.env }
@@ -15030,8 +15181,8 @@ var shellOutputTailChars2 = 64 * 1024;
15030
15181
  var runProcess2 = (argv, options) => gen(function* () {
15031
15182
  const spawner = yield* ChildProcessSpawner;
15032
15183
  const [command, ...args] = argv;
15033
- const handle = yield* spawner.spawn(make3(command, args, {
15034
- stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15184
+ const handle = yield* spawner.spawn(make2(command, args, {
15185
+ stdin: options.stdin === undefined ? "ignore" : make9(new TextEncoder().encode(options.stdin)),
15035
15186
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15036
15187
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15037
15188
  }));
@@ -15453,4 +15604,4 @@ function checkServices(declaration) {
15453
15604
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15454
15605
  }
15455
15606
 
15456
- 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, SafeJson, AgentHarnessIds, AgentSkillRequirement, AgentMcpServerRequirement, AgentEnvironmentFragment, findForbiddenAgentEnvironmentSecretPath, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, 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, put, setHeaders, bodyUint8Array, 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 };
15607
+ 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, RepoBindingProviders, RepoBindingCredentialProviderTypes, findForbiddenRepoBindingSecretPath, AgentSandboxNetwork, runnerAgentSandboxPolicy, agentNetworkAllowlist, verificationNetworkAllowlist, programNetworkHosts, ContextPackModes, DefaultContextPackMode, ProposalStatuses, ProposalTargetTypes, canonicalJson, canonicalSha256, AgentEfforts, AgentCapabilities, LoopDataSchemaRef, RunDisplayStates, LoopVersion, ProgramLoop, AgentFallback, ProgramWorkUnit, MeasureSample, MeasureEvidence, catchUpPathLimit, CatchUp, RunnerOwnership, defaultRunnerCapabilities, 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, put, setHeaders, bodyUint8Array, 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 };