@kitman-sh/cli 0.10.83 → 0.10.84

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-999xbcaa.js → chunk-0mgbryyd.js} +9 -9
  2. package/dist/{chunk-dzthc6th.js → chunk-2k1qfyvx.js} +6 -6
  3. package/dist/{chunk-xbyd16q3.js → chunk-2tpysgqk.js} +3 -3
  4. package/dist/{chunk-2fqry6rd.js → chunk-397fax43.js} +185 -33
  5. package/dist/{chunk-by54dw1n.js → chunk-62565d52.js} +2 -2
  6. package/dist/{chunk-93vddjpx.js → chunk-76ctrqm6.js} +1 -1
  7. package/dist/{chunk-adqabkwv.js → chunk-7qbchfkf.js} +9 -9
  8. package/dist/{chunk-66fhj0c3.js → chunk-92mjxge4.js} +10 -10
  9. package/dist/{chunk-20rbya07.js → chunk-93b1hdfa.js} +31 -31
  10. package/dist/{chunk-ptp9p22x.js → chunk-98r2t1s6.js} +18 -18
  11. package/dist/{chunk-hccw303w.js → chunk-9gztfcvf.js} +7 -7
  12. package/dist/{chunk-bjexx93x.js → chunk-cakmwaed.js} +2 -2
  13. package/dist/{chunk-tnqzvx55.js → chunk-d53rckf0.js} +143 -303
  14. package/dist/{chunk-qnnsy306.js → chunk-ebd5zjnx.js} +2 -2
  15. package/dist/{chunk-7wag4s6j.js → chunk-hgx1dq68.js} +4 -4
  16. package/dist/{chunk-xq4k0mgr.js → chunk-jbwk6k6m.js} +60 -60
  17. package/dist/{chunk-7bsf0fyh.js → chunk-kgdppbdr.js} +6 -1
  18. package/dist/{chunk-2rpwpzt5.js → chunk-kp01bv8f.js} +25 -25
  19. package/dist/{chunk-1chta572.js → chunk-krh0gek1.js} +17 -17
  20. package/dist/{chunk-mr30hj39.js → chunk-kxtmk59a.js} +5 -5
  21. package/dist/{chunk-72232jhj.js → chunk-ky974pcr.js} +4 -4
  22. package/dist/{chunk-292vjjdz.js → chunk-tzz4fv17.js} +1 -1
  23. package/dist/{chunk-6kt28g8r.js → chunk-ynn6jk0w.js} +62 -62
  24. package/dist/{chunk-smnx6fad.js → chunk-ze0f51ds.js} +11 -11
  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
- make13,
41
+ make14,
42
42
  strictEqual,
43
43
  Tuple,
44
44
  Number2,
@@ -58,15 +58,13 @@ import {
58
58
  Service2,
59
59
  makeUnsafe4,
60
60
  empty3,
61
- make14,
61
+ make15,
62
62
  add,
63
63
  getOrUndefined2,
64
64
  getOrUndefinedUnsafe,
65
- get3,
65
+ get4,
66
66
  merge3,
67
67
  Reference,
68
- fromInputUnsafe,
69
- isFinite,
70
68
  millis,
71
69
  seconds,
72
70
  toMillis,
@@ -86,14 +84,14 @@ import {
86
84
  DisablePropagation,
87
85
  sync,
88
86
  map7,
87
+ ClockRef,
88
+ currentTimeMillis2,
89
89
  ConsoleRef,
90
90
  succeed3,
91
91
  fail4,
92
- void_2,
93
92
  isSuccess2,
94
- isFailure2,
95
93
  makeUnsafe5,
96
- make15,
94
+ make16,
97
95
  _await,
98
96
  fail5,
99
97
  isDone,
@@ -101,12 +99,8 @@ import {
101
99
  succeed4,
102
100
  doneUnsafe,
103
101
  TracerTimingEnabled,
104
- Scope,
105
- makeUnsafe6,
106
102
  provide,
107
- addFinalizerExit,
108
103
  addFinalizer,
109
- close,
110
104
  succeed5,
111
105
  effect,
112
106
  effectContext,
@@ -158,7 +152,6 @@ import {
158
152
  tapCause,
159
153
  retry,
160
154
  ignore,
161
- ignoreCause,
162
155
  orElseSucceed,
163
156
  timeout,
164
157
  timeoutOrElse,
@@ -170,7 +163,6 @@ import {
170
163
  context,
171
164
  contextWith,
172
165
  provide3,
173
- provideContext2,
174
166
  serviceOption,
175
167
  updateContext,
176
168
  provideService,
@@ -181,7 +173,6 @@ import {
181
173
  addFinalizer2,
182
174
  ensuring2,
183
175
  onError,
184
- onExit,
185
176
  cached,
186
177
  interrupt3,
187
178
  interruptible,
@@ -193,7 +184,6 @@ import {
193
184
  withParentSpan,
194
185
  forkScoped,
195
186
  runFork,
196
- runForkWith,
197
187
  runPromise,
198
188
  runPromiseWith,
199
189
  runSync,
@@ -212,7 +202,7 @@ import {
212
202
  decodeEffect,
213
203
  decodeUnknownOption,
214
204
  decodeOption,
215
- make16,
205
+ make17,
216
206
  isSchema,
217
207
  optionalKey,
218
208
  optional,
@@ -259,31 +249,12 @@ import {
259
249
  decodeJsonStringOption,
260
250
  encodeJsonStringSync,
261
251
  encodePrettyJsonString
262
- } from "./chunk-xq4k0mgr.js";
263
- import {
264
- toJsonValue,
265
- isOneOf,
266
- isBigInt,
267
- isBoolean,
268
- isFunction,
269
- isNumber,
270
- isObject,
271
- isJsonObject,
272
- isString,
273
- isSymbol,
274
- isUndefined,
275
- kindOf
276
- } from "./chunk-292vjjdz.js";
252
+ } from "./chunk-jbwk6k6m.js";
277
253
  import {
278
254
  map,
279
255
  makeEquivalence,
280
- Clock,
281
- currentTimeMillis,
256
+ toNumber,
282
257
  bytes,
283
- join,
284
- interrupt,
285
- getCurrent,
286
- runIn,
287
258
  BadArgument,
288
259
  systemError,
289
260
  badArgument,
@@ -305,11 +276,13 @@ import {
305
276
  isSink,
306
277
  fromChannel,
307
278
  drain,
279
+ make10,
280
+ get3,
308
281
  isStream,
309
282
  fromChannel2,
310
283
  callback,
311
284
  empty2,
312
- make10,
285
+ make11,
313
286
  suspend,
314
287
  fail2,
315
288
  fromQueue,
@@ -335,16 +308,43 @@ import {
335
308
  mkArrayBuffer,
336
309
  toReadableStreamEffect,
337
310
  FileSystem,
338
- make11,
311
+ make12,
339
312
  FileTypeId,
340
313
  WatchBackend,
341
314
  Path,
342
- make12,
315
+ make13,
343
316
  option,
344
317
  String2,
345
318
  optionalEnv,
346
319
  harnessesUnsupportedInSrt2
347
- } from "./chunk-2fqry6rd.js";
320
+ } from "./chunk-397fax43.js";
321
+ import {
322
+ isDateTime,
323
+ Numeric,
324
+ isWholeNumber,
325
+ guard,
326
+ Id,
327
+ Timestamp,
328
+ ActorType,
329
+ SecretName,
330
+ SecretScope,
331
+ SecretHosts,
332
+ isSecretReference
333
+ } from "./chunk-kgdppbdr.js";
334
+ import {
335
+ toJsonValue,
336
+ isOneOf,
337
+ isBigInt,
338
+ isBoolean,
339
+ isFunction,
340
+ isNumber,
341
+ isObject,
342
+ isJsonObject,
343
+ isString,
344
+ isSymbol,
345
+ isUndefined,
346
+ kindOf
347
+ } from "./chunk-tzz4fv17.js";
348
348
  import {
349
349
  isRedacted,
350
350
  make,
@@ -358,24 +358,15 @@ import {
358
358
  make3,
359
359
  parseFdName,
360
360
  fdName
361
- } from "./chunk-bjexx93x.js";
362
- import {
363
- isDateTime,
364
- Numeric,
365
- isWholeNumber,
366
- guard,
367
- Id,
368
- Timestamp,
369
- ActorType,
370
- SecretName,
371
- SecretScope,
372
- SecretHosts,
373
- isSecretReference
374
- } from "./chunk-7bsf0fyh.js";
361
+ } from "./chunk-cakmwaed.js";
375
362
 
376
363
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
377
364
  var makeEquivalence3 = Tuple;
378
365
 
366
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
367
+ var Clock = ClockRef;
368
+ var currentTimeMillis = currentTimeMillis2;
369
+
379
370
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/dateTime.js
380
371
  var TypeId = "~effect/DateTime";
381
372
  var TimeZoneTypeId = "~effect/DateTime/TimeZone";
@@ -510,7 +501,7 @@ var fromDateUnsafe = (date) => {
510
501
  }
511
502
  return makeUtc(epochMillis);
512
503
  };
513
- var makeUnsafe7 = (input) => {
504
+ var makeUnsafe6 = (input) => {
514
505
  if (isDateTime2(input)) {
515
506
  return input;
516
507
  } else if (input instanceof Date) {
@@ -530,7 +521,7 @@ var makeUnsafe7 = (input) => {
530
521
  var hasZone = (input) => /Z|GMT|[+-]\d{2}$|[+-]\d{2}:?\d{2}$|\]$/.test(input) || /z$|gmt$/i.test(input);
531
522
  var minEpochMillis = -8640000000000000 + 12 * 60 * 60 * 1000;
532
523
  var maxEpochMillis = 8640000000000000 - 14 * 60 * 60 * 1000;
533
- var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe7);
524
+ var make4 = /* @__PURE__ */ liftThrowable(makeUnsafe6);
534
525
  var now = /* @__PURE__ */ map7(currentTimeMillis, makeUtc);
535
526
  var nowUnsafe = () => makeUtc(Date.now());
536
527
  var toDateUtc = (self) => new Date(self.epochMilliseconds);
@@ -637,7 +628,7 @@ class Metric$ {
637
628
  }
638
629
  hook(context) {
639
630
  const key = this.key(context);
640
- const registry = get3(context, MetricRegistry);
631
+ const registry = get4(context, MetricRegistry);
641
632
  let metadata = registry.get(key);
642
633
  if (isUndefined2(metadata)) {
643
634
  metadata = this.metadata(this.createHooks());
@@ -646,11 +637,11 @@ class Metric$ {
646
637
  return metadata.hooks;
647
638
  }
648
639
  removeUnsafe(context) {
649
- get3(context, MetricRegistry).delete(this.key(context));
640
+ get4(context, MetricRegistry).delete(this.key(context));
650
641
  }
651
642
  registerUnsafe(context, hooks) {
652
643
  const key = this.key(context);
653
- const registry = get3(context, MetricRegistry);
644
+ const registry = get4(context, MetricRegistry);
654
645
  const metadata = this.metadata({
655
646
  get: hooks.get,
656
647
  update: constVoid,
@@ -666,7 +657,7 @@ class Metric$ {
666
657
  };
667
658
  }
668
659
  key(context) {
669
- const extraAttributes = get3(context, CurrentMetricAttributes);
660
+ const extraAttributes = get4(context, CurrentMetricAttributes);
670
661
  if (extraAttributes !== this.#extraAttributes) {
671
662
  this.#extraAttributes = extraAttributes;
672
663
  const merged = mergeAttributes(this.attributes, extraAttributes);
@@ -909,160 +900,9 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
909
900
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
910
901
  var runMain = runMain2;
911
902
 
912
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
913
- var BigInt2 = globalThis.BigInt;
914
- var toNumber = (b) => {
915
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
916
- return none();
917
- }
918
- return some(Number(b));
919
- };
920
-
921
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
922
- var TypeId3 = "~effect/RcRef";
923
- var stateEmpty = {
924
- _tag: "Empty"
925
- };
926
- var stateClosed = {
927
- _tag: "Closed"
928
- };
929
- var variance = {
930
- _A: identity,
931
- _E: identity
932
- };
933
-
934
- class RcRefImpl {
935
- [TypeId3] = variance;
936
- pipe() {
937
- return pipeArguments(this, arguments);
938
- }
939
- state = stateEmpty;
940
- acquire;
941
- context;
942
- scope;
943
- idleTimeToLive;
944
- constructor(acquire, context, scope, idleTimeToLive) {
945
- this.acquire = acquire;
946
- this.context = context;
947
- this.scope = scope;
948
- this.idleTimeToLive = idleTimeToLive;
949
- }
950
- }
951
- var make17 = (options) => withFiber2((fiber) => {
952
- const context = fiber.context;
953
- const scope = get3(context, Scope);
954
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
955
- return as(addFinalizerExit(scope, () => {
956
- const state = ref.state;
957
- ref.state = stateClosed;
958
- if (state._tag === "Acquired")
959
- return close(state.scope, void_2);
960
- if (state._tag === "Acquiring")
961
- return interrupt(state.fiber);
962
- return void_3;
963
- }), ref);
964
- });
965
- var getState = (self, restore) => {
966
- switch (self.state._tag) {
967
- case "Closed": {
968
- return interrupt3;
969
- }
970
- case "Acquired": {
971
- const state = self.state;
972
- state.refCount++;
973
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
974
- }
975
- case "Acquiring": {
976
- const state = self.state;
977
- state.awaiters++;
978
- return awaitAcquiring(self, state, restore);
979
- }
980
- case "Empty": {
981
- const acquiring = {
982
- _tag: "Acquiring",
983
- fiber: undefined,
984
- awaiters: 1,
985
- acquired: undefined
986
- };
987
- self.state = acquiring;
988
- const scope = makeUnsafe6();
989
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
990
- if (self.state !== acquiring) {
991
- return interrupt3;
992
- }
993
- const state = {
994
- _tag: "Acquired",
995
- value,
996
- scope,
997
- fiber: undefined,
998
- refCount: acquiring.awaiters,
999
- invalidated: false
1000
- };
1001
- self.state = state;
1002
- acquiring.acquired = state;
1003
- return succeed6(state);
1004
- }), onExit((exit) => {
1005
- if (isSuccess2(exit))
1006
- return void_3;
1007
- if (self.state === acquiring)
1008
- self.state = stateEmpty;
1009
- return close(scope, exit);
1010
- }));
1011
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
1012
- return awaitAcquiring(self, acquiring, restore);
1013
- }
1014
- }
1015
- };
1016
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
1017
- const acquired = acquiring.acquired;
1018
- if (acquired !== undefined) {
1019
- return isFailure2(exit) ? release(self, acquired) : void_3;
1020
- }
1021
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
1022
- return void_3;
1023
- self.state = stateEmpty;
1024
- return interrupt(acquiring.fiber);
1025
- });
1026
- var get4 = (self_) => {
1027
- const self = self_;
1028
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
1029
- };
1030
- var release = (self, state) => {
1031
- state.refCount--;
1032
- if (state.refCount > 0) {
1033
- return void_3;
1034
- }
1035
- const idleTimeToLive = self.idleTimeToLive;
1036
- if (idleTimeToLive === undefined || state.invalidated) {
1037
- if (self.state === state) {
1038
- self.state = stateEmpty;
1039
- }
1040
- return close(state.scope, void_2);
1041
- } else if (!isFinite(idleTimeToLive)) {
1042
- return void_3;
1043
- }
1044
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
1045
- if (self.state === state && state.refCount === 0) {
1046
- self.state = stateEmpty;
1047
- return ignoreCause(close(state.scope, void_2), {
1048
- log: "Unhandled",
1049
- message: "Unhandled error in RcRef finalizer"
1050
- });
1051
- }
1052
- return void_3;
1053
- })).pipe(ensuring2(sync2(() => {
1054
- state.fiber = undefined;
1055
- })), runForkWith(self.context), runIn(self.scope));
1056
- return void_3;
1057
- };
1058
-
1059
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
1060
- var make18 = make17;
1061
- var get5 = get4;
1062
-
1063
903
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
1064
- var makeUnsafe = makeUnsafe7;
1065
- var make19 = make4;
904
+ var makeUnsafe = makeUnsafe6;
905
+ var make18 = make4;
1066
906
  var now2 = now;
1067
907
  var nowUnsafe2 = nowUnsafe;
1068
908
  var toDateUtc2 = toDateUtc;
@@ -1381,7 +1221,7 @@ var taskkill = (childProcess, onExit = () => {}) => {
1381
1221
  windowsHide: true
1382
1222
  }, onExit);
1383
1223
  };
1384
- var make20 = /* @__PURE__ */ gen(function* () {
1224
+ var make19 = /* @__PURE__ */ gen(function* () {
1385
1225
  const fs = yield* FileSystem;
1386
1226
  const path = yield* Path;
1387
1227
  const resolveWorkingDirectory = fnUntraced(function* (options) {
@@ -1910,7 +1750,7 @@ var make20 = /* @__PURE__ */ gen(function* () {
1910
1750
  });
1911
1751
  return make2(spawnCommand);
1912
1752
  });
1913
- var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make20);
1753
+ var layer5 = /* @__PURE__ */ effect(ChildProcessSpawner, make19);
1914
1754
  var flattenCommand = (command) => {
1915
1755
  const commands = [];
1916
1756
  const pipeOptions = [];
@@ -2394,7 +2234,7 @@ var writeFile2 = (path, data, options) => callback3((resume, signal) => {
2394
2234
  resume(fail7(handleBadArgument("writeFile")(err)));
2395
2235
  }
2396
2236
  });
2397
- var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make11({
2237
+ var makeFileSystem = /* @__PURE__ */ map8(/* @__PURE__ */ serviceOption(WatchBackend), (backend) => make12({
2398
2238
  access: access2,
2399
2239
  chmod: chmod2,
2400
2240
  chown: chown2,
@@ -2454,15 +2294,15 @@ var fileUrlOps = (windows) => ({
2454
2294
  })
2455
2295
  })
2456
2296
  });
2457
- var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2297
+ var layerPosix = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2458
2298
  ...NodePath.posix,
2459
2299
  .../* @__PURE__ */ fileUrlOps(false)
2460
2300
  }));
2461
- var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2301
+ var layerWin32 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2462
2302
  ...NodePath.win32,
2463
2303
  .../* @__PURE__ */ fileUrlOps(true)
2464
2304
  }));
2465
- var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2305
+ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make13({
2466
2306
  ...NodePath,
2467
2307
  .../* @__PURE__ */ fileUrlOps(undefined)
2468
2308
  }));
@@ -2471,10 +2311,10 @@ var layer7 = /* @__PURE__ */ succeed5(Path)(/* @__PURE__ */ make12({
2471
2311
  var layer2 = layer7;
2472
2312
 
2473
2313
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stdio.js
2474
- var TypeId4 = "~effect/Stdio";
2475
- var Stdio = /* @__PURE__ */ Service2(TypeId4);
2476
- var make21 = (options) => ({
2477
- [TypeId4]: TypeId4,
2314
+ var TypeId3 = "~effect/Stdio";
2315
+ var Stdio = /* @__PURE__ */ Service2(TypeId3);
2316
+ var make20 = (options) => ({
2317
+ [TypeId3]: TypeId3,
2478
2318
  stdinIsTerminal: succeed6(false),
2479
2319
  stdoutIsTerminal: succeed6(false),
2480
2320
  stderrIsTerminal: succeed6(false),
@@ -2482,7 +2322,7 @@ var make21 = (options) => ({
2482
2322
  });
2483
2323
 
2484
2324
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeStdio.js
2485
- var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make21({
2325
+ var layer8 = /* @__PURE__ */ succeed5(Stdio, /* @__PURE__ */ make20({
2486
2326
  args: /* @__PURE__ */ sync2(() => process.argv.slice(2)),
2487
2327
  stdinIsTerminal: /* @__PURE__ */ sync2(() => process.stdin.isTTY === true),
2488
2328
  stdoutIsTerminal: /* @__PURE__ */ sync2(() => process.stdout.isTTY === true),
@@ -2682,7 +2522,7 @@ var makeUuid = (bytes, randomBytes, format) => {
2682
2522
  const uuid = bytes(randomBytes(16));
2683
2523
  return format === "bytes" ? uuid : stringify(uuid);
2684
2524
  };
2685
- var make22 = (randomBytes) => {
2525
+ var make21 = (randomBytes) => {
2686
2526
  const randomBytesChecked = (size) => {
2687
2527
  checkSize(size);
2688
2528
  return randomBytes(size);
@@ -2716,13 +2556,13 @@ var fillRandom = (crypto2, size) => {
2716
2556
  }
2717
2557
  return bytes;
2718
2558
  };
2719
- var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make22((size) => fillRandom(crypto2, size)))));
2559
+ var layerWebCrypto = /* @__PURE__ */ effect(SecureRandom, /* @__PURE__ */ WebCrypto.use((crypto2) => succeed6(make21((size) => fillRandom(crypto2, size)))));
2720
2560
 
2721
2561
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Cookies.js
2722
- var TypeId5 = "~effect/http/Cookies";
2562
+ var TypeId4 = "~effect/http/Cookies";
2723
2563
  var CookieTypeId = "~effect/http/Cookies/Cookie";
2724
2564
  var Proto2 = {
2725
- [TypeId5]: TypeId5,
2565
+ [TypeId4]: TypeId4,
2726
2566
  ...BaseProto,
2727
2567
  toJSON() {
2728
2568
  return {
@@ -2901,14 +2741,14 @@ var tryDecodeURIComponent = (str) => {
2901
2741
  };
2902
2742
 
2903
2743
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Headers.js
2904
- var TypeId6 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2744
+ var TypeId5 = /* @__PURE__ */ Symbol.for("~effect/http/Headers");
2905
2745
  var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.create(null), {
2906
- [TypeId6]: {
2907
- value: TypeId6
2746
+ [TypeId5]: {
2747
+ value: TypeId5
2908
2748
  },
2909
2749
  [symbolRedactable]: {
2910
2750
  value(context) {
2911
- return redact2(this, get3(context, CurrentRedactedNames));
2751
+ return redact2(this, get4(context, CurrentRedactedNames));
2912
2752
  }
2913
2753
  },
2914
2754
  toJSON: {
@@ -2933,7 +2773,7 @@ var Proto3 = /* @__PURE__ */ Object.defineProperties(/* @__PURE__ */ Object.crea
2933
2773
  value: BaseProto[NodeInspectSymbol]
2934
2774
  }
2935
2775
  });
2936
- var make23 = (input) => Object.assign(Object.create(Proto3), input);
2776
+ var make22 = (input) => Object.assign(Object.create(Proto3), input);
2937
2777
  var Equivalence2 = /* @__PURE__ */ makeEquivalence(/* @__PURE__ */ strictEqual());
2938
2778
  var empty = /* @__PURE__ */ Object.create(Proto3);
2939
2779
  var fromInput = (input) => {
@@ -2958,21 +2798,21 @@ var fromInput = (input) => {
2958
2798
  };
2959
2799
  var fromRecordUnsafe = (input) => Object.setPrototypeOf(input, Proto3);
2960
2800
  var set = /* @__PURE__ */ dual(3, (self, key, value) => {
2961
- const out = make23(self);
2801
+ const out = make22(self);
2962
2802
  out[key.toLowerCase()] = value;
2963
2803
  return out;
2964
2804
  });
2965
- var setAll = /* @__PURE__ */ dual(2, (self, headers) => make23({
2805
+ var setAll = /* @__PURE__ */ dual(2, (self, headers) => make22({
2966
2806
  ...self,
2967
2807
  ...fromInput(headers)
2968
2808
  }));
2969
2809
  var merge = /* @__PURE__ */ dual(2, (self, headers) => {
2970
- const out = make23(self);
2810
+ const out = make22(self);
2971
2811
  Object.assign(out, headers);
2972
2812
  return out;
2973
2813
  });
2974
2814
  var remove2 = /* @__PURE__ */ dual(2, (self, key) => {
2975
- const out = make23(self);
2815
+ const out = make22(self);
2976
2816
  delete out[key.toLowerCase()];
2977
2817
  return out;
2978
2818
  });
@@ -3029,18 +2869,18 @@ var bodyDecoder = /* @__PURE__ */ new TextDecoder("utf-8", {
3029
2869
  var fromBody = (bytes) => new URLSearchParams(bodyDecoder.decode(bytes).replace(/^\?/, "%3F"));
3030
2870
 
3031
2871
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/UrlParams.js
3032
- var TypeId7 = "~effect/http/UrlParams";
3033
- var isUrlParams = (u) => hasProperty(u, TypeId7);
2872
+ var TypeId6 = "~effect/http/UrlParams";
2873
+ var isUrlParams = (u) => hasProperty(u, TypeId6);
3034
2874
  var Proto4 = {
3035
2875
  ...PipeInspectableProto,
3036
- [TypeId7]: TypeId7,
2876
+ [TypeId6]: TypeId6,
3037
2877
  [Symbol.iterator]() {
3038
2878
  return this.params[Symbol.iterator]();
3039
2879
  },
3040
2880
  [symbolRedactable](context) {
3041
2881
  return {
3042
2882
  _id: "UrlParams",
3043
- params: Object.fromEntries(redact3(this, get3(context, CurrentRedactedNames2)))
2883
+ params: Object.fromEntries(redact3(this, get4(context, CurrentRedactedNames2)))
3044
2884
  };
3045
2885
  },
3046
2886
  toJSON() {
@@ -3053,7 +2893,7 @@ var Proto4 = {
3053
2893
  return array(this.params.flat());
3054
2894
  }
3055
2895
  };
3056
- var make24 = (params) => {
2896
+ var make23 = (params) => {
3057
2897
  const self = Object.create(Proto4);
3058
2898
  self.params = params;
3059
2899
  return self;
@@ -3072,7 +2912,7 @@ var fromInput2 = (input) => {
3072
2912
  out.push(parsed[i]);
3073
2913
  }
3074
2914
  }
3075
- return make24(out);
2915
+ return make23(out);
3076
2916
  };
3077
2917
  var fromInputNested = (input) => {
3078
2918
  const entries = typeof input[Symbol.iterator] === "function" ? fromIterable(input) : Object.entries(input);
@@ -3096,9 +2936,9 @@ var fromInputNested = (input) => {
3096
2936
  return out;
3097
2937
  };
3098
2938
  var coerce = (value) => isRedacted(value) ? value : String(value);
3099
- var Equivalence3 = /* @__PURE__ */ make13((a, b) => arrayEquivalence(a.params, b.params));
2939
+ var Equivalence3 = /* @__PURE__ */ make14((a, b) => arrayEquivalence(a.params, b.params));
3100
2940
  var arrayEquivalence = /* @__PURE__ */ makeEquivalence2(/* @__PURE__ */ makeEquivalence3([/* @__PURE__ */ strictEqual(), /* @__PURE__ */ asEquivalence()]));
3101
- var empty4 = /* @__PURE__ */ make24([]);
2941
+ var empty4 = /* @__PURE__ */ make23([]);
3102
2942
  var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3103
2943
  const params = fromInput2(input).params.slice();
3104
2944
  const keys = new Set;
@@ -3110,7 +2950,7 @@ var setAll2 = /* @__PURE__ */ dual(2, (self, input) => {
3110
2950
  continue;
3111
2951
  params.push(self.params[i]);
3112
2952
  }
3113
- return make24(params);
2953
+ return make23(params);
3114
2954
  });
3115
2955
  var toString = (input) => new URLSearchParams(fromInput2(input).params.map(([key, value]) => [key, unwrap3(value)])).toString();
3116
2956
  var redact3 = /* @__PURE__ */ dual(2, (self, key) => {
@@ -3166,13 +3006,13 @@ var decodeQueryKey = (key) => {
3166
3006
  return key;
3167
3007
  }
3168
3008
  };
3169
- var currentRedactedNames = () => get3(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3009
+ var currentRedactedNames = () => get4(globalThis[currentFiberTypeId]?.context ?? empty3(), CurrentRedactedNames2);
3170
3010
  var CurrentRedactedNames2 = /* @__PURE__ */ Reference("effect/http/UrlParams/CurrentRedactedNames", {
3171
3011
  defaultValue: () => ["X-Amz-Signature", "X-Amz-Credential", "X-Amz-Security-Token", "AWSAccessKeyId", "Signature", "sig", "X-Goog-Signature"]
3172
3012
  });
3173
3013
 
3174
3014
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Terminal.js
3175
- var TypeId8 = "~effect/Terminal";
3015
+ var TypeId7 = "~effect/Terminal";
3176
3016
  var QuitErrorTypeId = "~effect/Terminal/QuitError";
3177
3017
 
3178
3018
  class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
@@ -3181,14 +3021,14 @@ class QuitError extends (/* @__PURE__ */ Error3("QuitError")({
3181
3021
  [QuitErrorTypeId] = QuitErrorTypeId;
3182
3022
  }
3183
3023
  var Terminal = /* @__PURE__ */ Service2("effect/Terminal");
3184
- var make25 = (impl) => Terminal.of({
3024
+ var make24 = (impl) => Terminal.of({
3185
3025
  ...impl,
3186
- [TypeId8]: TypeId8
3026
+ [TypeId7]: TypeId7
3187
3027
  });
3188
3028
 
3189
3029
  // node_modules/.bun/@effect+platform-node-shared@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-node-shared/dist/NodeTerminal.js
3190
3030
  import * as readline from "readline";
3191
- var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3031
+ var make25 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQuit) {
3192
3032
  const stdin = process.stdin;
3193
3033
  const stdout = process.stdout;
3194
3034
  const lines = yield* make9();
@@ -3202,7 +3042,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3202
3042
  };
3203
3043
  stdin.once("end", onStdinEnd);
3204
3044
  yield* addFinalizer2(() => sync2(() => stdin.off("end", onStdinEnd)));
3205
- const rlRef = yield* make18({
3045
+ const rlRef = yield* make10({
3206
3046
  acquire: acquireRelease(sync2(() => {
3207
3047
  const rl = readline.createInterface({
3208
3048
  input: stdin,
@@ -3241,7 +3081,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3241
3081
  if (stdin.isTTY)
3242
3082
  stdin.setRawMode(enabled);
3243
3083
  });
3244
- const rawModeRef = yield* make18({
3084
+ const rawModeRef = yield* make10({
3245
3085
  acquire: acquireRelease(setRawMode(true), () => setRawMode(false)),
3246
3086
  idleTimeToLive: "10 millis"
3247
3087
  });
@@ -3292,14 +3132,14 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3292
3132
  if (inputEnded) {
3293
3133
  handleEnd();
3294
3134
  } else {
3295
- yield* get5(rlRef);
3296
- yield* get5(rawModeRef);
3135
+ yield* get3(rlRef);
3136
+ yield* get3(rawModeRef);
3297
3137
  stdin.once("end", handleEnd);
3298
3138
  }
3299
3139
  return queue;
3300
3140
  });
3301
3141
  const readLine = suspend3(() => poll(lines).pipe(flatMap3(match({
3302
- onNone: () => scoped(andThen2(get5(rlRef), take(lines))),
3142
+ onNone: () => scoped(andThen2(get3(rlRef), take(lines))),
3303
3143
  onSome: succeed6
3304
3144
  })), mapError2(() => new QuitError({}))));
3305
3145
  const display = (prompt) => uninterruptible(callback3((resume) => {
@@ -3310,7 +3150,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3310
3150
  cause: err
3311
3151
  }))));
3312
3152
  }));
3313
- return make25({
3153
+ return make24({
3314
3154
  columns,
3315
3155
  rows,
3316
3156
  size,
@@ -3319,7 +3159,7 @@ var make26 = /* @__PURE__ */ fnUntraced(function* (shouldQuit = defaultShouldQui
3319
3159
  display
3320
3160
  });
3321
3161
  });
3322
- var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make26(defaultShouldQuit));
3162
+ var layer10 = /* @__PURE__ */ effect(Terminal, /* @__PURE__ */ make25(defaultShouldQuit));
3323
3163
  function defaultShouldQuit(input) {
3324
3164
  const key = input.key;
3325
3165
  return key.name === "escape" || key.ctrl && (key.name === "c" || key.name === "d");
@@ -3346,7 +3186,7 @@ function toDate(input) {
3346
3186
  return toDateUtc2(makeUnsafe(input));
3347
3187
  }
3348
3188
  function parseDate(input) {
3349
- return getOrUndefined(map4(make19(input), toDateUtc2));
3189
+ return getOrUndefined(map4(make18(input), toDateUtc2));
3350
3190
  }
3351
3191
  function toIso(input) {
3352
3192
  return formatIso(makeUnsafe(input));
@@ -9547,11 +9387,11 @@ var TranscriptSearchResult = Struct({
9547
9387
  total: Int
9548
9388
  });
9549
9389
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpBody.js
9550
- var TypeId9 = "~effect/http/HttpBody";
9390
+ var TypeId8 = "~effect/http/HttpBody";
9551
9391
  class Proto5 {
9552
- [TypeId9];
9392
+ [TypeId8];
9553
9393
  constructor() {
9554
- this[TypeId9] = TypeId9;
9394
+ this[TypeId8] = TypeId8;
9555
9395
  }
9556
9396
  [NodeInspectSymbol]() {
9557
9397
  return this.toJSON();
@@ -9642,7 +9482,7 @@ var jsonUnsafe = (body, contentType) => text(JSON.stringify(body), contentType ?
9642
9482
  var urlParams = (urlParams, contentType) => text(toString(fromInput2(urlParams)), contentType ?? "application/x-www-form-urlencoded");
9643
9483
 
9644
9484
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientError.js
9645
- var TypeId10 = "~effect/http/HttpClientError";
9485
+ var TypeId9 = "~effect/http/HttpClientError";
9646
9486
  class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9647
9487
  constructor(props) {
9648
9488
  if ("cause" in props.reason) {
@@ -9654,7 +9494,7 @@ class HttpClientError extends (/* @__PURE__ */ TaggedError("HttpClientError")) {
9654
9494
  super(props);
9655
9495
  }
9656
9496
  }
9657
- [TypeId10] = TypeId10;
9497
+ [TypeId9] = TypeId9;
9658
9498
  get request() {
9659
9499
  return this.reason.request;
9660
9500
  }
@@ -9758,7 +9598,7 @@ class EmptyBodyError extends (/* @__PURE__ */ TaggedError("EmptyBodyError")) {
9758
9598
  }
9759
9599
  }
9760
9600
 
9761
- class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId10)({
9601
+ class HttpClientErrorSchema extends (/* @__PURE__ */ Error3(TypeId9)({
9762
9602
  _tag: /* @__PURE__ */ tag("HttpError"),
9763
9603
  kind: /* @__PURE__ */ Literals(["EncodeError", "DecodeError", "TransportError", "InvalidUrlError", "StatusCodeError", "EmptyBodyError"]),
9764
9604
  cause: /* @__PURE__ */ optional(/* @__PURE__ */ Defect())
@@ -9791,7 +9631,7 @@ var updateContentLength = (headers, body) => {
9791
9631
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/Url.js
9792
9632
  class UrlError extends (/* @__PURE__ */ TaggedError("UrlError")) {
9793
9633
  }
9794
- var make27 = (url, params, hash) => try_({
9634
+ var make26 = (url, params, hash) => try_({
9795
9635
  try: () => {
9796
9636
  const urlInstance = new URL(url, baseUrl());
9797
9637
  for (let i = 0;i < params.params.length; i++) {
@@ -9822,10 +9662,10 @@ var baseUrl = () => {
9822
9662
  };
9823
9663
 
9824
9664
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientRequest.js
9825
- var TypeId11 = "~effect/http/HttpClientRequest";
9826
- var isHttpClientRequest = (u) => hasProperty(u, TypeId11);
9665
+ var TypeId10 = "~effect/http/HttpClientRequest";
9666
+ var isHttpClientRequest = (u) => hasProperty(u, TypeId10);
9827
9667
  var Proto6 = {
9828
- [TypeId11]: TypeId11,
9668
+ [TypeId10]: TypeId10,
9829
9669
  ...BaseProto,
9830
9670
  toJSON() {
9831
9671
  return {
@@ -9914,7 +9754,7 @@ var bodyUint8Array = /* @__PURE__ */ dual((args) => isHttpClientRequest(args[0])
9914
9754
  var bodyJsonUnsafe = /* @__PURE__ */ dual(2, (self, body) => setBody(self, jsonUnsafe(body)));
9915
9755
  var bodyUrlParams = /* @__PURE__ */ dual(2, (self, input) => setBody(self, urlParams(fromInput2(input))));
9916
9756
  function toUrl(self) {
9917
- const r = make27(self.url, self.urlParams, getOrUndefined(self.hash));
9757
+ const r = make26(self.url, self.urlParams, getOrUndefined(self.hash));
9918
9758
  if (isSuccess(r)) {
9919
9759
  return some(r.success);
9920
9760
  }
@@ -9922,7 +9762,7 @@ function toUrl(self) {
9922
9762
  }
9923
9763
 
9924
9764
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpIncomingMessage.js
9925
- var TypeId12 = "~effect/http/HttpIncomingMessage";
9765
+ var TypeId11 = "~effect/http/HttpIncomingMessage";
9926
9766
  var schemaBodyJson = (schema, options) => {
9927
9767
  const decode = decodeEffect(toCodecJson(schema));
9928
9768
  const decodeJson = options?.reviver === undefined ? undefined : decodeEffect(fromJsonString(toCodecJson(schema), options));
@@ -9941,7 +9781,7 @@ var WebSourceSymbol = "~effect/http/HttpClientResponse/WebSource";
9941
9781
  var getWebSource = (self) => self[WebSourceSymbol]?.();
9942
9782
 
9943
9783
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClientResponse.js
9944
- var TypeId13 = "~effect/http/HttpClientResponse";
9784
+ var TypeId12 = "~effect/http/HttpClientResponse";
9945
9785
  var fromWeb = (request, source) => new WebHttpClientResponse(request, source);
9946
9786
  var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed6(self) : fail7(new HttpClientError({
9947
9787
  reason: new StatusCodeError({
@@ -9952,16 +9792,16 @@ var filterStatusOk = (self) => self.status >= 200 && self.status < 300 ? succeed
9952
9792
  }));
9953
9793
 
9954
9794
  class WebHttpClientResponse extends Class {
9795
+ [TypeId11];
9955
9796
  [TypeId12];
9956
- [TypeId13];
9957
9797
  request;
9958
9798
  source;
9959
9799
  constructor(request, source) {
9960
9800
  super();
9961
9801
  this.request = request;
9962
9802
  this.source = source;
9803
+ this[TypeId11] = TypeId11;
9963
9804
  this[TypeId12] = TypeId12;
9964
- this[TypeId13] = TypeId13;
9965
9805
  }
9966
9806
  toJSON() {
9967
9807
  return inspect(this, {
@@ -10133,7 +9973,7 @@ var addHeaderAttributes = (span, phase, headers, filter, redactedNames) => {
10133
9973
  };
10134
9974
 
10135
9975
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/http/HttpClient.js
10136
- var TypeId14 = "~effect/http/HttpClient";
9976
+ var TypeId13 = "~effect/http/HttpClient";
10137
9977
  var HttpClient = /* @__PURE__ */ Service2("effect/HttpClient");
10138
9978
  var accessor = (method) => (...args) => flatMap3(HttpClient, (client) => client[method](...args));
10139
9979
  var execute = /* @__PURE__ */ accessor("execute");
@@ -10150,7 +9990,7 @@ var makeWith2 = (postprocess, preprocess) => {
10150
9990
  return self;
10151
9991
  };
10152
9992
  var Proto7 = {
10153
- [TypeId14]: TypeId14,
9993
+ [TypeId13]: TypeId13,
10154
9994
  pipe() {
10155
9995
  return pipeArguments(this, arguments);
10156
9996
  },
@@ -10164,10 +10004,10 @@ var Proto7 = {
10164
10004
  return this.execute(make5(fullMethod)(url, options));
10165
10005
  }]))
10166
10006
  };
10167
- var make28 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10007
+ var make27 = (f) => makeWith2((effect) => flatMap3(effect, (request) => withFiber2((fiber) => {
10168
10008
  const scopedController = scopedRequests.get(request);
10169
10009
  const controller = scopedController ?? new AbortController;
10170
- const urlResult = make27(request.url, request.urlParams, getOrUndefined(request.hash));
10010
+ const urlResult = make26(request.url, request.urlParams, getOrUndefined(request.hash));
10171
10011
  if (isFailure(urlResult)) {
10172
10012
  return fail7(new HttpClientError({
10173
10013
  reason: new InvalidUrlError({
@@ -10301,8 +10141,8 @@ class InterruptibleResponse {
10301
10141
  this.original = original;
10302
10142
  this.controller = controller;
10303
10143
  }
10304
- [TypeId13] = TypeId13;
10305
10144
  [TypeId12] = TypeId12;
10145
+ [TypeId11] = TypeId11;
10306
10146
  applyInterrupt(effect) {
10307
10147
  return suspend3(() => {
10308
10148
  responseRegistry.unregister(this.original);
@@ -10400,7 +10240,7 @@ var detectStreamBodySupport = () => {
10400
10240
  return false;
10401
10241
  }
10402
10242
  };
10403
- var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10243
+ var fetch2 = /* @__PURE__ */ make27((request, url, signal, fiber) => {
10404
10244
  if (request.headers.upgrade !== undefined) {
10405
10245
  return fail7(new HttpClientError({
10406
10246
  reason: new TransportError({
@@ -10491,10 +10331,10 @@ var fetch2 = /* @__PURE__ */ make28((request, url, signal, fiber) => {
10491
10331
  });
10492
10332
  var layer4 = /* @__PURE__ */ layerMergedContext(/* @__PURE__ */ succeed6(fetch2));
10493
10333
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/socket/Socket.js
10494
- var TypeId15 = "~effect/socket/Socket";
10334
+ var TypeId14 = "~effect/socket/Socket";
10495
10335
  var Socket = /* @__PURE__ */ Service2("effect/socket/Socket");
10496
- var make29 = (options) => Socket.of({
10497
- [TypeId15]: TypeId15,
10336
+ var make28 = (options) => Socket.of({
10337
+ [TypeId14]: TypeId14,
10498
10338
  reader: options.reader,
10499
10339
  writer: options.writer
10500
10340
  });
@@ -10817,7 +10657,7 @@ var fromWebSocket = (acquire, options) => withFiber2((fiber) => {
10817
10657
  write,
10818
10658
  writeAll
10819
10659
  });
10820
- return succeed6(make29({
10660
+ return succeed6(make28({
10821
10661
  reader,
10822
10662
  writer
10823
10663
  }));
@@ -13669,7 +13509,7 @@ function getStreamSchemas(schema) {
13669
13509
  }
13670
13510
  var schema = /* @__PURE__ */ declare(isStream);
13671
13511
  function Stream(success, error) {
13672
- return make16(schema.ast, {
13512
+ return make17(schema.ast, {
13673
13513
  [StreamSchemaTypeId]: StreamSchemaTypeId,
13674
13514
  success,
13675
13515
  error
@@ -13677,9 +13517,9 @@ function Stream(success, error) {
13677
13517
  }
13678
13518
 
13679
13519
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/Rpc.js
13680
- var TypeId16 = "~effect/rpc/Rpc";
13520
+ var TypeId15 = "~effect/rpc/Rpc";
13681
13521
  var Proto8 = {
13682
- [TypeId16]: TypeId16,
13522
+ [TypeId15]: TypeId15,
13683
13523
  pipe() {
13684
13524
  return pipeArguments(this, arguments);
13685
13525
  },
@@ -13846,7 +13686,7 @@ class WorkerUnknownError extends (/* @__PURE__ */ Error3("effect/workers/WorkerE
13846
13686
  var WorkerErrorReason = /* @__PURE__ */ Union([WorkerSpawnError, WorkerSendError, WorkerReceiveError, WorkerUnknownError]);
13847
13687
 
13848
13688
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcClientError.js
13849
- var TypeId17 = "~effect/rpc/RpcClientError";
13689
+ var TypeId16 = "~effect/rpc/RpcClientError";
13850
13690
 
13851
13691
  class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError/RpcClientDefect")({
13852
13692
  _tag: /* @__PURE__ */ tag("RpcClientDefect"),
@@ -13855,11 +13695,11 @@ class RpcClientDefect extends (/* @__PURE__ */ Error3("effect/rpc/RpcClientError
13855
13695
  })) {
13856
13696
  }
13857
13697
 
13858
- class RpcClientError extends (/* @__PURE__ */ Error3(TypeId17)({
13698
+ class RpcClientError extends (/* @__PURE__ */ Error3(TypeId16)({
13859
13699
  _tag: /* @__PURE__ */ tag("RpcClientError"),
13860
13700
  reason: /* @__PURE__ */ Union([WorkerErrorReason, SocketErrorReason, HttpClientErrorSchema, RpcClientDefect])
13861
13701
  })) {
13862
- [TypeId17] = TypeId17;
13702
+ [TypeId16] = TypeId16;
13863
13703
  get message() {
13864
13704
  return `${this.reason._tag}: ${this.reason.message}`;
13865
13705
  }
@@ -13979,7 +13819,7 @@ var RpcGroupProto = {
13979
13819
  });
13980
13820
  },
13981
13821
  annotateRpcs(service, value) {
13982
- return this.annotateRpcsMerge(make14(service, value));
13822
+ return this.annotateRpcsMerge(make15(service, value));
13983
13823
  },
13984
13824
  annotateMerge(context) {
13985
13825
  return makeProto2({
@@ -14007,7 +13847,7 @@ var make7 = (...rpcs) => makeProto2({
14007
13847
  annotations: empty3()
14008
13848
  });
14009
13849
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/rpc/RpcMiddleware.js
14010
- var TypeId18 = "~effect/rpc/RpcMiddleware";
13850
+ var TypeId17 = "~effect/rpc/RpcMiddleware";
14011
13851
  var Service = () => (id, options) => {
14012
13852
  const limit = getStackTraceLimit();
14013
13853
  let creationError;
@@ -14025,7 +13865,7 @@ var Service = () => (id, options) => {
14025
13865
  return creationError?.stack;
14026
13866
  }
14027
13867
  });
14028
- ServiceClass_[TypeId18] = TypeId18;
13868
+ ServiceClass_[TypeId17] = TypeId17;
14029
13869
  ServiceClass_.error = options?.error ?? Never;
14030
13870
  ServiceClass_.requiredForClient = options?.requiredForClient ?? false;
14031
13871
  return ServiceClass;
@@ -14623,7 +14463,7 @@ var ProgramRpcs = RunnerJournalRpcs.merge(RunnerCapabilityRpcs, RunnerRunFileRpc
14623
14463
  var RunnerRpcs = RunnerReplicaRpcs.merge(RunnerJournalRpcs, RunnerCapabilityRpcs, RunnerRunFileRpcs);
14624
14464
 
14625
14465
  // apps/cli/src/oauth.ts
14626
- var Scope2 = "openid profile email offline_access kitman:cli";
14466
+ var Scope = "openid profile email offline_access kitman:cli";
14627
14467
  var CallbackPath = "/auth/callback";
14628
14468
 
14629
14469
  class OAuthCallbackTimeout extends TaggedError("OAuthCallbackTimeout") {
@@ -14642,7 +14482,7 @@ function buildAuthorizeUrl(input) {
14642
14482
  url.searchParams.set("response_type", "code");
14643
14483
  url.searchParams.set("client_id", input.clientId);
14644
14484
  url.searchParams.set("redirect_uri", input.redirectUri);
14645
- url.searchParams.set("scope", Scope2);
14485
+ url.searchParams.set("scope", Scope);
14646
14486
  url.searchParams.set("code_challenge", input.codeChallenge);
14647
14487
  url.searchParams.set("code_challenge_method", "S256");
14648
14488
  url.searchParams.set("state", input.state);
@@ -14702,7 +14542,7 @@ function toStoredSession(token, existingRefreshToken) {
14702
14542
  }
14703
14543
  function startLoopbackServer(input) {
14704
14544
  return gen(function* () {
14705
- const code = yield* make15();
14545
+ const code = yield* make16();
14706
14546
  const context2 = yield* context();
14707
14547
  const runSyncExit = runSyncExitWith(context2);
14708
14548
  const server = yield* acquireRelease(sync2(() => Bun.serve({
@@ -15242,7 +15082,7 @@ var openConnection = (transport) => gen(function* () {
15242
15082
  let lastId = 0;
15243
15083
  let lost = false;
15244
15084
  const notifications = yield* unbounded2();
15245
- const ended = yield* make15();
15085
+ const ended = yield* make16();
15246
15086
  const settle = (line) => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Response2)), {
15247
15087
  onNone: () => match(flatMap(decodeJsonStringOption(line), decodeUnknownOption(Notification)), {
15248
15088
  onNone: () => void_3,
@@ -15269,7 +15109,7 @@ var openConnection = (transport) => gen(function* () {
15269
15109
  if (lost)
15270
15110
  return yield* new HerdrCoreConnectionLost2({ method });
15271
15111
  const id = ++lastId;
15272
- const deferred = yield* make15();
15112
+ const deferred = yield* make16();
15273
15113
  pending.set(id, { method, deferred });
15274
15114
  yield* pipe.write(encodeJsonStringSync({ jsonrpc: "2.0", id, method, params }));
15275
15115
  return yield* _await(deferred);
@@ -15343,7 +15183,7 @@ var herdrCoreOver = (transport) => ({
15343
15183
  return { type: "event", terminal: event.value.terminal, kind: event.value.type, data: event.value.data };
15344
15184
  };
15345
15185
  const snapshot = { type: "snapshot", terminals: subscribed.terminals };
15346
- return concat(make10(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15186
+ return concat(make11(snapshot), fromQueue(notifications).pipe(map2(toEvent), filter((event) => event !== undefined)));
15347
15187
  }))
15348
15188
  });
15349
15189
  var spawnedTransport = (env) => gen(function* () {
@@ -15434,7 +15274,7 @@ var runProcess2 = (argv, options) => gen(function* () {
15434
15274
  const spawner = yield* ChildProcessSpawner;
15435
15275
  const [command, ...args] = argv;
15436
15276
  const handle = yield* spawner.spawn(make3(command, args, {
15437
- stdin: options.stdin === undefined ? "ignore" : make10(new TextEncoder().encode(options.stdin)),
15277
+ stdin: options.stdin === undefined ? "ignore" : make11(new TextEncoder().encode(options.stdin)),
15438
15278
  ...options.cwd === undefined ? undefined : { cwd: options.cwd },
15439
15279
  env: options.extendEnv === false ? { ...options.env } : { ...withoutPreloads2(), ...options.env }
15440
15280
  }));
@@ -15857,4 +15697,4 @@ function checkServices(declaration) {
15857
15697
  return isSome(decoded) ? [...new Set(decoded.value.services)] : undefined;
15858
15698
  }
15859
15699
 
15860
- 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, RunWaitUntils, isTestReportName, checkTests, 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, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };
15700
+ 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, RunWaitUntils, isTestReportName, checkTests, 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, post, put, setHeaders, acceptJson, bodyUint8Array, bodyJsonUnsafe, bodyUrlParams, schemaBodyJson, filterStatusOk, HttpClient, execute, get2, Fetch, layer4, Socket, SocketReadError, SocketError, WebSocketConstructor, layerWebSocketConstructorGlobal, layerWebSocket, runDisplayLabels, listedSummary, KitName, KitDigest, defaultKitName, KitSetup, SetupArchive, kitMcpSecretNames, kitmanMcpServer, KitmanClientError, KitmanEffectClient, CliError, DefaultApiUrl, resolveConfig, apiUrlFromEnv, stepCredentialFromEnv, stepWorkspaceFromEnv, stepSkillsDirFromEnv, stepFittingSkillsFromEnv, stepOutputOnlyFromEnv, mcpCredentialNameFromEnv, userConfigPath, userAuthPath, userHarnessSyncPath, kitSetupCacheDir, bundleCacheDir, localConfigPath, readUserConfig, writeUserConfig, sessionForApi, readAuthStore, storeSession, removeSession, removeAllSessions, agentCredentialForApi, storeAgentCredential, removeAgentCredential, normalizeApiUrl, isStoredAgentCredential, isStreamSchema, getStreamSchemas, make6, exitSchema, ParseOptions, RpcClientDefect, RpcClientError, make7, Service, RunnerHeaders, RunnerRpcProtocolVersion, RunnerRpcError, RunSettled, UpdateAvailable, RunnerReplicaRpcs, RunnerRunFileRpcs, ProgramRpcs, parseCallbackUrl, revokeToken, toStoredSession, browserLogin, openBrowser, shouldRefresh, createSdkClient, refreshSession, AgentAuthClientError, executeAgentCapability, createAgentAuthBearerToken, McpPlatformLive, runMcpEffect, createAgentAuthSignedFetch, setupMcpAgentCredential, generateAgentKeyPair, HERDR_CORE_GENERATION2, HERDR_CORE_INSTALL_COMMAND2, HerdrCoreMissing2, HerdrCoreIncompatible2, HerdrCoreConnectionLost2, HerdrCoreRpcError2, HerdrCoreUpdateFailed2, HerdrCore2, herdrCoreLayer2, herdrCoreTransportLayer2, updateHerdrCore2, CommandFailed2, runCommand2, withoutPreloads2, shellOutputTailChars2, runProcess2, CommandRunner2, runShell2, detectHarnesses2, kitHarnesses, isKitHarness, instructionsStart, instructionsEnd, harnessNames, renderMcpServer, materializeKitSetup, tomlInline, herdrExecutionExtension2, herdrNativeExtensionIds2, herdrRunnerCapabilitiesForRepoBinding2, herdrRunnerCapabilities2, assertHerdrRunnerCapability2, declaredChecks, installCommand, checkServicesFile, checkServices };