@kitman-sh/cli 0.12.6 → 0.12.8

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 (27) hide show
  1. package/dist/{chunk-s8m2tzdr.js → chunk-0tjg9eya.js} +1 -1
  2. package/dist/{chunk-vkchn89k.js → chunk-31gpnkq3.js} +5 -5
  3. package/dist/{chunk-n17dr5c1.js → chunk-3x6cbhzd.js} +4 -4
  4. package/dist/{chunk-892qrkb3.js → chunk-6d53ezj1.js} +62 -16
  5. package/dist/{chunk-dcnn882c.js → chunk-6w7ajkm8.js} +29 -29
  6. package/dist/{chunk-fen5480a.js → chunk-93ypzdpa.js} +7 -7
  7. package/dist/{chunk-jk5fp5cy.js → chunk-9qp59fht.js} +48 -48
  8. package/dist/{chunk-8djn7v2p.js → chunk-bh9k3kty.js} +59 -59
  9. package/dist/{chunk-x5t0c4g4.js → chunk-c8hwfktd.js} +7 -7
  10. package/dist/{chunk-y7vjk8vv.js → chunk-c8wpw9nh.js} +207 -222
  11. package/dist/{chunk-gezjwdpw.js → chunk-cr3qw0xf.js} +373 -448
  12. package/dist/{chunk-mm2m3bys.js → chunk-cw61zyh5.js} +1 -1
  13. package/dist/{chunk-bz4bp0q7.js → chunk-fh58za51.js} +3 -3
  14. package/dist/{chunk-7ncc3m3n.js → chunk-gyek54h3.js} +8 -8
  15. package/dist/{chunk-8sz25ptv.js → chunk-j1cnq2j0.js} +4 -4
  16. package/dist/{chunk-wberffvr.js → chunk-jwrs9pfa.js} +108 -108
  17. package/dist/{chunk-e711ebdj.js → chunk-kzwdhdej.js} +2 -2
  18. package/dist/{chunk-7tnm4jef.js → chunk-n9351czb.js} +7 -7
  19. package/dist/{chunk-k3ak93p1.js → chunk-pjpfc3sd.js} +1 -1
  20. package/dist/{chunk-x3cc7dfc.js → chunk-qjqa338f.js} +302 -249
  21. package/dist/{chunk-v4wn0tz8.js → chunk-s5pzy86v.js} +6 -6
  22. package/dist/{chunk-gtsq369x.js → chunk-tgwa9vqw.js} +9 -9
  23. package/dist/{chunk-23245qh7.js → chunk-wcvfkdwd.js} +26 -26
  24. package/dist/{chunk-rvpfyjtv.js → chunk-xng6j3a8.js} +1 -1
  25. package/dist/{chunk-skqn4h13.js → chunk-z5f7g1w1.js} +2 -2
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -34,11 +34,8 @@ import {
34
34
  getOrUndefined,
35
35
  map4,
36
36
  Service2,
37
- add,
38
- get4,
37
+ get3,
39
38
  Reference,
40
- fromInputUnsafe,
41
- isFinite,
42
39
  normalize,
43
40
  succeed,
44
41
  fail3,
@@ -84,15 +81,14 @@ import {
84
81
  fail4,
85
82
  interrupt2,
86
83
  void_2,
87
- isSuccess2,
88
84
  isFailure2,
89
85
  asVoidAll,
90
- makeUnsafe5,
86
+ makeUnsafe4,
91
87
  _await,
92
88
  interruptWith,
93
89
  doneUnsafe,
94
90
  Scope,
95
- makeUnsafe6,
91
+ makeUnsafe5,
96
92
  provide,
97
93
  addFinalizerExit,
98
94
  addFinalizer,
@@ -141,7 +137,7 @@ import {
141
137
  tap2,
142
138
  option2,
143
139
  exit,
144
- map8,
140
+ map7,
145
141
  as,
146
142
  asSome2,
147
143
  asVoid,
@@ -156,14 +152,12 @@ import {
156
152
  tapError2,
157
153
  ignoreCause,
158
154
  orElseSucceed,
159
- sleep,
160
155
  raceFirst,
161
156
  when,
162
157
  matchCauseEffect,
163
158
  context,
164
159
  contextWith,
165
160
  provideContext2,
166
- scope2,
167
161
  scoped,
168
162
  scopedWith,
169
163
  acquireRelease,
@@ -174,7 +168,6 @@ import {
174
168
  interrupt3,
175
169
  onInterrupt,
176
170
  uninterruptible,
177
- uninterruptibleMask2,
178
171
  forever,
179
172
  forkChild,
180
173
  forkIn,
@@ -186,7 +179,6 @@ import {
186
179
  mapEager,
187
180
  flatMapEager,
188
181
  catchEager,
189
- fromInputUnsafe2,
190
182
  Pointer,
191
183
  passthrough,
192
184
  transformEffect,
@@ -202,7 +194,7 @@ import {
202
194
  String4,
203
195
  toCodecStringTree,
204
196
  encodeUnknownJsonStringSync
205
- } from "./chunk-x3cc7dfc.js";
197
+ } from "./chunk-qjqa338f.js";
206
198
 
207
199
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
208
200
  var headUnsafe = (self) => {
@@ -251,6 +243,141 @@ var makeEquivalence = (equivalence) => {
251
243
  return (self, that) => is(self, that) && is(that, self);
252
244
  };
253
245
 
246
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
247
+ var bigint0 = /* @__PURE__ */ BigInt(0);
248
+ var bigint1 = /* @__PURE__ */ BigInt(1);
249
+ var decimalBase = /* @__PURE__ */ BigInt(1000);
250
+ var binaryBase = /* @__PURE__ */ BigInt(1024);
251
+ var decimalUnits = [{
252
+ symbol: "B",
253
+ factor: bigint1,
254
+ names: ["B", "byte", "bytes"]
255
+ }, {
256
+ symbol: "kB",
257
+ factor: decimalBase,
258
+ names: ["kB", "kilobyte", "kilobytes"]
259
+ }, {
260
+ symbol: "MB",
261
+ factor: decimalBase ** /* @__PURE__ */ BigInt(2),
262
+ names: ["MB", "megabyte", "megabytes"]
263
+ }, {
264
+ symbol: "GB",
265
+ factor: decimalBase ** /* @__PURE__ */ BigInt(3),
266
+ names: ["GB", "gigabyte", "gigabytes"]
267
+ }, {
268
+ symbol: "TB",
269
+ factor: decimalBase ** /* @__PURE__ */ BigInt(4),
270
+ names: ["TB", "terabyte", "terabytes"]
271
+ }, {
272
+ symbol: "PB",
273
+ factor: decimalBase ** /* @__PURE__ */ BigInt(5),
274
+ names: ["PB", "petabyte", "petabytes"]
275
+ }, {
276
+ symbol: "EB",
277
+ factor: decimalBase ** /* @__PURE__ */ BigInt(6),
278
+ names: ["EB", "exabyte", "exabytes"]
279
+ }, {
280
+ symbol: "ZB",
281
+ factor: decimalBase ** /* @__PURE__ */ BigInt(7),
282
+ names: ["ZB", "zettabyte", "zettabytes"]
283
+ }, {
284
+ symbol: "YB",
285
+ factor: decimalBase ** /* @__PURE__ */ BigInt(8),
286
+ names: ["YB", "yottabyte", "yottabytes"]
287
+ }, {
288
+ symbol: "RB",
289
+ factor: decimalBase ** /* @__PURE__ */ BigInt(9),
290
+ names: ["RB", "ronnabyte", "ronnabytes"]
291
+ }, {
292
+ symbol: "QB",
293
+ factor: decimalBase ** /* @__PURE__ */ BigInt(10),
294
+ names: ["QB", "quettabyte", "quettabytes"]
295
+ }];
296
+ var binaryUnits = [decimalUnits[0], {
297
+ symbol: "KiB",
298
+ factor: binaryBase,
299
+ names: ["KiB", "kibibyte", "kibibytes"]
300
+ }, {
301
+ symbol: "MiB",
302
+ factor: binaryBase ** /* @__PURE__ */ BigInt(2),
303
+ names: ["MiB", "mebibyte", "mebibytes"]
304
+ }, {
305
+ symbol: "GiB",
306
+ factor: binaryBase ** /* @__PURE__ */ BigInt(3),
307
+ names: ["GiB", "gibibyte", "gibibytes"]
308
+ }, {
309
+ symbol: "TiB",
310
+ factor: binaryBase ** /* @__PURE__ */ BigInt(4),
311
+ names: ["TiB", "tebibyte", "tebibytes"]
312
+ }, {
313
+ symbol: "PiB",
314
+ factor: binaryBase ** /* @__PURE__ */ BigInt(5),
315
+ names: ["PiB", "pebibyte", "pebibytes"]
316
+ }, {
317
+ symbol: "EiB",
318
+ factor: binaryBase ** /* @__PURE__ */ BigInt(6),
319
+ names: ["EiB", "exbibyte", "exbibytes"]
320
+ }, {
321
+ symbol: "ZiB",
322
+ factor: binaryBase ** /* @__PURE__ */ BigInt(7),
323
+ names: ["ZiB", "zebibyte", "zebibytes"]
324
+ }, {
325
+ symbol: "YiB",
326
+ factor: binaryBase ** /* @__PURE__ */ BigInt(8),
327
+ names: ["YiB", "yobibyte", "yobibytes"]
328
+ }];
329
+ var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
330
+ var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
331
+ var make = (value) => value;
332
+ var invalid = (message) => {
333
+ throw new Error(`Invalid ByteSize: ${message}`);
334
+ };
335
+ var fromNumber = (input) => {
336
+ if (!Number.isSafeInteger(input) || input < 0) {
337
+ return invalid(`expected a non-negative safe integer, received ${input}`);
338
+ }
339
+ return make(BigInt(input));
340
+ };
341
+ var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
342
+ var scaleDecimal = (quantity, factor) => {
343
+ const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
344
+ if (match === null)
345
+ return;
346
+ const fraction = match[2] ?? "";
347
+ const numerator = BigInt(match[1] + fraction) * factor;
348
+ const shift = Number(match[3] ?? 0) - fraction.length;
349
+ if (shift >= 0)
350
+ return numerator * BigInt(10) ** BigInt(shift);
351
+ const scale = BigInt(10) ** BigInt(-shift);
352
+ return numerator % scale === bigint0 ? numerator / scale : undefined;
353
+ };
354
+ var fromStringUnsafe = (input) => {
355
+ const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
356
+ if (match === null)
357
+ return invalid(`unsupported syntax ${JSON.stringify(input)}`);
358
+ const unit = unitsByName.get(match[2]);
359
+ if (unit === undefined)
360
+ return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
361
+ const value = scaleDecimal(match[1], unit.factor);
362
+ if (value === undefined)
363
+ return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
364
+ return make(value);
365
+ };
366
+ var fromInputUnsafe = (input) => {
367
+ switch (typeof input) {
368
+ case "bigint":
369
+ if (input < bigint0)
370
+ return invalid(`expected a non-negative bigint, received ${input}`);
371
+ return make(input);
372
+ case "number":
373
+ return fromNumber(input);
374
+ case "string":
375
+ return fromStringUnsafe(input);
376
+ }
377
+ return invalid(`unsupported input ${input}`);
378
+ };
379
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
380
+
254
381
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
255
382
  var join = fiberJoin;
256
383
  var interrupt = fiberInterrupt;
@@ -803,7 +930,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
803
930
  var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
804
931
  var DIRECTORY_CONCURRENCY = 16;
805
932
  var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
806
- var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
933
+ var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
807
934
  var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
808
935
  if (compiled.initial.size === 0) {
809
936
  return [];
@@ -815,7 +942,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
815
942
  const isUnlisted = (value) => value === "." || value === ".." || isRoot(value);
816
943
  const probe = (parent, name, named) => {
817
944
  const path = toFsPath(join2(parent, name));
818
- return fs.stat(path).pipe(map8((info) => info.type), catchReason("PlatformError", "NotFound", () => fs.readLink(path).pipe(as("SymbolicLink"), catchIf(isNotLink, () => succeed6(undefined)))), catchIf(named ? isMissing : isIgnorable, () => succeed6(undefined)), map8((type) => type === undefined ? undefined : {
945
+ return fs.stat(path).pipe(map7((info) => info.type), catchReason("PlatformError", "NotFound", () => fs.readLink(path).pipe(as("SymbolicLink"), catchIf(isNotLink, () => succeed6(undefined)))), catchIf(named ? isMissing : isIgnorable, () => succeed6(undefined)), map7((type) => type === undefined ? undefined : {
819
946
  name,
820
947
  type
821
948
  }));
@@ -870,7 +997,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
870
997
  return child(type === "Directory", false);
871
998
  }
872
999
  const path = toFsPath(relative);
873
- return fs.stat(path).pipe(map8((info) => info.type === "Directory"), catchIf(isIgnorable, () => succeed6(false)), flatMap3((isDirectory) => {
1000
+ return fs.stat(path).pipe(map7((info) => info.type === "Directory"), catchIf(isIgnorable, () => succeed6(false)), flatMap3((isDirectory) => {
874
1001
  const resolved = child(isDirectory, type === "SymbolicLink");
875
1002
  if (type === "SymbolicLink" || resolved?.next === undefined || result.globstar.size === 0) {
876
1003
  return succeed6(resolved);
@@ -880,7 +1007,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
880
1007
  };
881
1008
  let slots = DIRECTORY_CONCURRENCY;
882
1009
  let finishing = false;
883
- const failed = makeUnsafe5();
1010
+ const failed = makeUnsafe4();
884
1011
  const fork = (walk) => walk.pipe(onError((cause) => sync2(() => {
885
1012
  if (!finishing) {
886
1013
  doneUnsafe(failed, failCause3(cause));
@@ -896,7 +1023,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
896
1023
  const child = visit(entry, relative, states, excluded);
897
1024
  if (isEffect(child)) {
898
1025
  const index = children.push(undefined) - 1;
899
- pending.push(map8(child, (child) => {
1026
+ pending.push(map7(child, (child) => {
900
1027
  children[index] = child;
901
1028
  }));
902
1029
  } else {
@@ -980,8 +1107,8 @@ var systemError = (options) => new PlatformError(new SystemError(options));
980
1107
  var badArgument = (options) => new PlatformError(new BadArgument(options));
981
1108
 
982
1109
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
983
- var makeUnsafe2 = makeLatchUnsafe;
984
- var make2 = makeLatch;
1110
+ var makeUnsafe = makeLatchUnsafe;
1111
+ var make3 = makeLatch;
985
1112
 
986
1113
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
987
1114
  var TypeId2 = "~effect/MutableRef";
@@ -995,7 +1122,7 @@ var MutableRefProto = {
995
1122
  };
996
1123
  }
997
1124
  };
998
- var make7 = (value) => {
1125
+ var make8 = (value) => {
999
1126
  const ref = Object.create(MutableRefProto);
1000
1127
  ref.current = value;
1001
1128
  return ref;
@@ -1007,7 +1134,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
1007
1134
 
1008
1135
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
1009
1136
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
1010
- var make3 = () => ({
1137
+ var make4 = () => ({
1011
1138
  head: undefined,
1012
1139
  tail: undefined,
1013
1140
  length: 0
@@ -1156,8 +1283,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1156
1283
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1157
1284
  var TypeId3 = "~effect/PubSub";
1158
1285
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1159
- var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1160
- var unbounded = (options) => make4({
1286
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe5(), makeUnsafe(false), make8(false), options.strategy(), make8(none())));
1287
+ var unbounded = (options) => make5({
1161
1288
  atomicPubSub: () => makeAtomicUnbounded(options),
1162
1289
  strategy: () => new DroppingStrategy
1163
1290
  });
@@ -1175,7 +1302,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1175
1302
  return false;
1176
1303
  });
1177
1304
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1178
- const localScope = get4(services, Scope);
1305
+ const localScope = get3(services, Scope);
1179
1306
  const scope = forkUnsafe(self.scope);
1180
1307
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1181
1308
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -1219,7 +1346,7 @@ var pollForItem = (self) => callback3((resume) => {
1219
1346
  }
1220
1347
  return resume(succeed6(self.ended.current.value));
1221
1348
  }
1222
- const deferred = makeUnsafe5();
1349
+ const deferred = makeUnsafe4();
1223
1350
  let set = self.subscribers.get(self.subscription);
1224
1351
  if (!set) {
1225
1352
  set = new Set;
@@ -1251,7 +1378,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1251
1378
  subscribers.delete(subscription);
1252
1379
  }
1253
1380
  };
1254
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1381
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe(false), make8(false), strategy, pubsub.replayWindow(), ended);
1255
1382
  class UnboundedPubSub {
1256
1383
  publisherHead = {
1257
1384
  value: AbsentValue,
@@ -1668,12 +1795,12 @@ var QueueProto = {
1668
1795
  };
1669
1796
  }
1670
1797
  };
1671
- var make8 = (options) => withFiber((fiber) => {
1798
+ var make9 = (options) => withFiber((fiber) => {
1672
1799
  const self = Object.create(QueueProto);
1673
1800
  self.dispatcher = fiber.currentDispatcher;
1674
1801
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
1675
1802
  self.strategy = options?.strategy ?? "suspend";
1676
- self.messages = make3();
1803
+ self.messages = make4();
1677
1804
  self.scheduleRunning = false;
1678
1805
  self.state = {
1679
1806
  _tag: "Open",
@@ -1683,14 +1810,14 @@ var make8 = (options) => withFiber((fiber) => {
1683
1810
  };
1684
1811
  return succeed2(self);
1685
1812
  });
1686
- var bounded = (capacity) => make8({
1813
+ var bounded = (capacity) => make9({
1687
1814
  capacity
1688
1815
  });
1689
- var sliding = (capacity) => make8({
1816
+ var sliding = (capacity) => make9({
1690
1817
  capacity,
1691
1818
  strategy: "sliding"
1692
1819
  });
1693
- var unbounded2 = () => make8();
1820
+ var unbounded2 = () => make9();
1694
1821
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1695
1822
  var offerUnsafe = (self, message) => {
1696
1823
  if (self.state._tag !== "Open") {
@@ -1971,7 +2098,7 @@ var finalize = (self, exit) => {
1971
2098
  };
1972
2099
 
1973
2100
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Semaphore.js
1974
- var makeUnsafe3 = (permits) => new SemaphoreImpl(permits);
2101
+ var makeUnsafe2 = (permits) => new SemaphoreImpl(permits);
1975
2102
  var firstAvailableWaiter = (self) => {
1976
2103
  for (const waiter of self.waiters) {
1977
2104
  if (waiter.permits <= self.free)
@@ -2116,13 +2243,13 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2116
2243
  return onError(pull, onCause);
2117
2244
  }));
2118
2245
  var toTransform = (channel) => channel.transform;
2119
- var asyncQueue = (scope, f, options) => make8({
2246
+ var asyncQueue = (scope, f, options) => make9({
2120
2247
  capacity: options?.bufferSize,
2121
2248
  strategy: options?.strategy
2122
2249
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
2123
2250
  startImmediately: true
2124
2251
  }))));
2125
- var callbackArray = (f, options) => fromTransform((_, scope) => map8(asyncQueue(scope, f, options), takeAll3));
2252
+ var callbackArray = (f, options) => fromTransform((_, scope) => map7(asyncQueue(scope, f, options), takeAll3));
2126
2253
  var suspend4 = (evaluate) => fromTransform((upstream, scope) => suspend3(() => toTransform(evaluate())(upstream, scope)));
2127
2254
  var fromIterator = (iterator) => fromPull(sync2(() => {
2128
2255
  const iter = iterator();
@@ -2148,7 +2275,7 @@ var fromEffect = (effect) => fromPull(sync2(() => {
2148
2275
  var fromEffectDrain = (effect) => fromPull(flatMap3(effect, () => done()));
2149
2276
  var fromQueueArray = (queue) => fromPull(succeed6(takeAll3(queue)));
2150
2277
  var fromSubscriptionArray = (subscription) => fromPull(succeed6(onInterrupt(takeAll2(subscription), () => done())));
2151
- var fromPubSubArray = (pubsub) => unwrap2(map8(subscribe(pubsub), fromSubscriptionArray));
2278
+ var fromPubSubArray = (pubsub) => unwrap2(map7(subscribe(pubsub), fromSubscriptionArray));
2152
2279
  var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStreamToPullUnsafe({
2153
2280
  scope,
2154
2281
  readable: options.evaluate(),
@@ -2157,7 +2284,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2157
2284
  }));
2158
2285
  var readableStreamToPullUnsafe = (options) => {
2159
2286
  const reader = options.readable.getReader();
2160
- const exit = options.exit ?? make7(undefined);
2287
+ const exit = options.exit ?? make8(undefined);
2161
2288
  const pull = suspend3(() => {
2162
2289
  if (exit.current)
2163
2290
  return exit.current;
@@ -2178,9 +2305,9 @@ var readableStreamToPullUnsafe = (options) => {
2178
2305
  });
2179
2306
  return as(addFinalizer(options.scope, options.releaseLockOnEnd ? sync2(() => reader.releaseLock()) : promise(() => reader.cancel().catch((error) => reader.closed.then(() => Promise.reject(error), constVoid))).pipe(ensuring2(sync2(() => reader.releaseLock())))), pull);
2180
2307
  };
2181
- var map7 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => sync2(() => {
2308
+ var map8 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => sync2(() => {
2182
2309
  let i = 0;
2183
- return map8(pull, (o) => f(o, i++));
2310
+ return map7(pull, (o) => f(o, i++));
2184
2311
  })));
2185
2312
  var mapDone = /* @__PURE__ */ dual(2, (self, f) => mapDoneEffect(self, (o) => succeed6(f(o))));
2186
2313
  var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed6(catchDone(pull, (done2) => flatMap3(f(done2), done)))));
@@ -2188,7 +2315,7 @@ var concurrencyIsSequential = (concurrency) => concurrency === undefined || conc
2188
2315
  var mapEffect = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self, f) : mapEffectConcurrent(self, f, options));
2189
2316
  var mapEffectSequential = (self, f) => fromTransform((upstream, scope) => {
2190
2317
  let i = 0;
2191
- return map8(toTransform(self)(upstream, scope), flatMap3((o) => f(o, i++)));
2318
+ return map7(toTransform(self)(upstream, scope), flatMap3((o) => f(o, i++)));
2192
2319
  });
2193
2320
  var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2194
2321
  let i = 0;
@@ -2199,7 +2326,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
2199
2326
  const runFork = runForkWith(yield* context());
2200
2327
  const trackFiber = runIn(forkedScope);
2201
2328
  if (options.unordered) {
2202
- const semaphore = makeUnsafe3(concurrencyN);
2329
+ const semaphore = makeUnsafe2(concurrencyN);
2203
2330
  const release = constant(semaphore.release(1));
2204
2331
  const handle = matchCauseEffect({
2205
2332
  onFailure: (cause) => flatMap3(failCause(queue, cause), release),
@@ -2240,7 +2367,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
2240
2367
  return take(queue);
2241
2368
  }));
2242
2369
  var flatMap = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? flatMapSequential(self, f) : flatMapConcurrent(self, f, options));
2243
- var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map8(toTransform(self)(upstream, scope), (pull) => {
2370
+ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map7(toTransform(self)(upstream, scope), (pull) => {
2244
2371
  let childPull;
2245
2372
  let childScope;
2246
2373
  const makePull = flatMap3(pull, (value) => {
@@ -2261,7 +2388,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map8(toT
2261
2388
  });
2262
2389
  return suspend3(() => childPull ?? makePull);
2263
2390
  }));
2264
- var flatMapConcurrent = (self, f, options) => self.pipe(map7(f), mergeAll(options));
2391
+ var flatMapConcurrent = (self, f, options) => self.pipe(map8(f), mergeAll(options));
2265
2392
  var flatten2 = (channels) => flatMap(channels, identity);
2266
2393
  var flattenArray = (self) => transformPull(self, (pull) => {
2267
2394
  let array;
@@ -2301,7 +2428,7 @@ var filterArray = /* @__PURE__ */ dual(2, (self, predicate) => transformPull(sel
2301
2428
  }))));
2302
2429
  var catchCause3 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream, scope) => {
2303
2430
  let forkedScope = forkUnsafe(scope);
2304
- return map8(toTransform(self)(upstream, forkedScope), (pull) => {
2431
+ return map7(toTransform(self)(upstream, forkedScope), (pull) => {
2305
2432
  let currentPull = pull.pipe(catchCause2((cause) => {
2306
2433
  if (isDoneCause(cause)) {
2307
2434
  return failCause3(cause);
@@ -2324,8 +2451,8 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
2324
2451
  switch: switch_ = false
2325
2452
  }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2326
2453
  const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
2327
- const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
2328
- const doneLatch = yield* make2(true);
2454
+ const semaphore = switch_ ? undefined : makeUnsafe2(concurrencyN);
2455
+ const doneLatch = yield* make3(true);
2329
2456
  const fibers = new Map;
2330
2457
  const queue = yield* bounded(bufferSize);
2331
2458
  yield* addFinalizer(forkedScope, shutdown(queue));
@@ -2498,7 +2625,7 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
2498
2625
  const streamOptions = {
2499
2626
  stream: true
2500
2627
  };
2501
- let pull = upstream.pipe(map8(map6((bytes) => decoder.decode(bytes, streamOptions))), catchDone((leftover) => {
2628
+ let pull = upstream.pipe(map7(map6((bytes) => decoder.decode(bytes, streamOptions))), catchDone((leftover) => {
2502
2629
  pull = done(leftover);
2503
2630
  const last = decoder.decode();
2504
2631
  return last.length > 0 ? succeed6(of(last)) : pull;
@@ -2525,18 +2652,18 @@ var interruptWhen2 = /* @__PURE__ */ dual(2, (self, effect) => merge(self, fromP
2525
2652
  var onExit2 = /* @__PURE__ */ dual(2, (self, finalizer) => fromTransformBracket((upstream, scope, forkedScope) => addFinalizerExit(forkedScope, finalizer).pipe(andThen2(toTransform(self)(upstream, scope)))));
2526
2653
  var ensuring3 = /* @__PURE__ */ dual(2, (self, finalizer) => onExit2(self, (_) => finalizer));
2527
2654
  var runWith = (self, f, onHalt) => suspend3(() => {
2528
- const scope = makeUnsafe6();
2655
+ const scope = makeUnsafe5();
2529
2656
  const makePull = toTransform(self)(done(), scope);
2530
2657
  return catchDone(flatMap3(makePull, f), onHalt ? onHalt : succeed6).pipe(onExit((exit) => close(scope, exit)));
2531
2658
  });
2532
- var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map8(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
2659
+ var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map7(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
2533
2660
  var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
2534
2661
  disableYield: true
2535
2662
  }));
2536
2663
  var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
2537
2664
  disableYield: true
2538
2665
  })));
2539
- var mkUint8Array = (self) => map8(runFold2(self, () => ({
2666
+ var mkUint8Array = (self) => map7(runFold2(self, () => ({
2540
2667
  bytes: 0,
2541
2668
  arrays: []
2542
2669
  }), (acc, chunk) => {
@@ -2630,153 +2757,11 @@ var forEach2 = (f) => forEachArray(forEach((_) => f(_), {
2630
2757
  var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f), forever({
2631
2758
  disableYield: true
2632
2759
  }), catchDone(() => endVoid)));
2633
- var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
2634
-
2635
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2636
- var TypeId8 = "~effect/RcRef";
2637
- var stateEmpty = {
2638
- _tag: "Empty"
2639
- };
2640
- var stateClosed = {
2641
- _tag: "Closed"
2642
- };
2643
- var variance2 = {
2644
- _A: identity,
2645
- _E: identity
2646
- };
2647
-
2648
- class RcRefImpl {
2649
- [TypeId8] = variance2;
2650
- pipe() {
2651
- return pipeArguments(this, arguments);
2652
- }
2653
- state = stateEmpty;
2654
- acquire;
2655
- context;
2656
- scope;
2657
- idleTimeToLive;
2658
- constructor(acquire, context, scope, idleTimeToLive) {
2659
- this.acquire = acquire;
2660
- this.context = context;
2661
- this.scope = scope;
2662
- this.idleTimeToLive = idleTimeToLive;
2663
- }
2664
- }
2665
- var make5 = (options) => withFiber2((fiber) => {
2666
- const context = fiber.context;
2667
- const scope = get4(context, Scope);
2668
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2669
- return as(addFinalizerExit(scope, () => {
2670
- const state = ref.state;
2671
- ref.state = stateClosed;
2672
- if (state._tag === "Acquired")
2673
- return close(state.scope, void_2);
2674
- if (state._tag === "Acquiring")
2675
- return interrupt(state.fiber);
2676
- return void_3;
2677
- }), ref);
2678
- });
2679
- var getState = (self, restore) => {
2680
- switch (self.state._tag) {
2681
- case "Closed": {
2682
- return interrupt3;
2683
- }
2684
- case "Acquired": {
2685
- const state = self.state;
2686
- state.refCount++;
2687
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2688
- }
2689
- case "Acquiring": {
2690
- const state = self.state;
2691
- state.awaiters++;
2692
- return awaitAcquiring(self, state, restore);
2693
- }
2694
- case "Empty": {
2695
- const acquiring = {
2696
- _tag: "Acquiring",
2697
- fiber: undefined,
2698
- awaiters: 1,
2699
- acquired: undefined
2700
- };
2701
- self.state = acquiring;
2702
- const scope = makeUnsafe6();
2703
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2704
- if (self.state !== acquiring) {
2705
- return interrupt3;
2706
- }
2707
- const state = {
2708
- _tag: "Acquired",
2709
- value,
2710
- scope,
2711
- fiber: undefined,
2712
- refCount: acquiring.awaiters,
2713
- invalidated: false
2714
- };
2715
- self.state = state;
2716
- acquiring.acquired = state;
2717
- return succeed6(state);
2718
- }), onExit((exit) => {
2719
- if (isSuccess2(exit))
2720
- return void_3;
2721
- if (self.state === acquiring)
2722
- self.state = stateEmpty;
2723
- return close(scope, exit);
2724
- }));
2725
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2726
- return awaitAcquiring(self, acquiring, restore);
2727
- }
2728
- }
2729
- };
2730
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2731
- const acquired = acquiring.acquired;
2732
- if (acquired !== undefined) {
2733
- return isFailure2(exit) ? release(self, acquired) : void_3;
2734
- }
2735
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
2736
- return void_3;
2737
- self.state = stateEmpty;
2738
- return interrupt(acquiring.fiber);
2739
- });
2740
- var get2 = (self_) => {
2741
- const self = self_;
2742
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2743
- };
2744
- var release = (self, state) => {
2745
- state.refCount--;
2746
- if (state.refCount > 0) {
2747
- return void_3;
2748
- }
2749
- const idleTimeToLive = self.idleTimeToLive;
2750
- if (idleTimeToLive === undefined || state.invalidated) {
2751
- if (self.state === state) {
2752
- self.state = stateEmpty;
2753
- }
2754
- return close(state.scope, void_2);
2755
- } else if (!isFinite(idleTimeToLive)) {
2756
- return void_3;
2757
- }
2758
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2759
- if (self.state === state && state.refCount === 0) {
2760
- self.state = stateEmpty;
2761
- return ignoreCause(close(state.scope, void_2), {
2762
- log: "Unhandled",
2763
- message: "Unhandled error in RcRef finalizer"
2764
- });
2765
- }
2766
- return void_3;
2767
- })).pipe(ensuring2(sync2(() => {
2768
- state.fiber = undefined;
2769
- })), runForkWith(self.context), runIn(self.scope));
2770
- return void_3;
2771
- };
2772
-
2773
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2774
- var make9 = make5;
2775
- var get3 = get2;
2760
+ var unwrap3 = (effect) => fromChannel(unwrap2(map7(effect, toChannel)));
2776
2761
 
2777
2762
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2778
- var TypeId9 = "~effect/Stream";
2779
- var isStream = (u) => hasProperty(u, TypeId9);
2763
+ var TypeId8 = "~effect/Stream";
2764
+ var isStream = (u) => hasProperty(u, TypeId8);
2780
2765
  var fromChannel2 = fromChannel3;
2781
2766
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2782
2767
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
@@ -2796,12 +2781,12 @@ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succee
2796
2781
  var fromQueue = (queue) => fromChannel2(fromQueueArray(queue));
2797
2782
  var fromPubSub = (pubsub) => fromChannel2(fromPubSubArray(pubsub));
2798
2783
  var fromReadableStream = (options) => fromChannel2(fromReadableStream2(options));
2799
- var unwrap = (effect) => fromChannel2(unwrap2(map8(effect, toChannel2)));
2784
+ var unwrap = (effect) => fromChannel2(unwrap2(map7(effect, toChannel2)));
2800
2785
  var map2 = /* @__PURE__ */ dual(2, (self, f) => suspend(() => {
2801
2786
  let i = 0;
2802
- return fromChannel2(map7(self.channel, map6((o) => f(o, i++))));
2787
+ return fromChannel2(map8(self.channel, map6((o) => f(o, i++))));
2803
2788
  }));
2804
- var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options), map7(of), fromChannel2));
2789
+ var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options), map8(of), fromChannel2));
2805
2790
  var tap = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => mapEffect2(self, (a) => as(f(a), a), options));
2806
2791
  var drainFork = /* @__PURE__ */ dual(2, (self, that) => mergeEffect2(self, runDrain(that)));
2807
2792
  var concat = /* @__PURE__ */ dual(2, (self, that) => {
@@ -2852,7 +2837,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
2852
2837
  done2 = fail4(error);
2853
2838
  return done();
2854
2839
  }));
2855
- const pull = map8(suspend3(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
2840
+ const pull = map7(suspend3(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
2856
2841
  leftover = leftover_;
2857
2842
  return of(value);
2858
2843
  });
@@ -2867,7 +2852,7 @@ var splitLines = (self) => self.channel.pipe(pipeTo(splitLines2()), fromChannel2
2867
2852
  var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => fromChannel2(interruptWhen2(self.channel, effect)));
2868
2853
  var ensuring = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel2(ensuring3(self.channel, finalizer)));
2869
2854
  var provideContext = /* @__PURE__ */ dual(2, (self, context) => fromChannel2(provideContext3(self.channel, context)));
2870
- var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)), map8(([a]) => a))));
2855
+ var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)), map7(([a]) => a))));
2871
2856
  var runSink = (sink, upstream, scope) => restoreUpstreamFailure(sink.transform(upstreamFailureToDefect(upstream), scope));
2872
2857
  var runCollect = (self) => runFold2(self.channel, () => [], (acc, chunk) => {
2873
2858
  for (let i = 0;i < chunk.length; i++) {
@@ -2881,7 +2866,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f) => runFold2(self.channe
2881
2866
  }
2882
2867
  return acc;
2883
2868
  }));
2884
- var runHead = (self) => map8(runHead2(self.channel), map4(getUnsafe2(0)));
2869
+ var runHead = (self) => map7(runHead2(self.channel), map4(getUnsafe2(0)));
2885
2870
  var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
2886
2871
  let i = 0;
2887
2872
  return whileLoop({
@@ -2892,12 +2877,12 @@ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel,
2892
2877
  }));
2893
2878
  var runDrain = (self) => runDrain2(self.channel);
2894
2879
  var mkString = (self) => runFold2(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
2895
- var mkArrayBuffer = (self) => map8(mkUint8Array(self.channel), (bytes) => bytes.buffer);
2880
+ var mkArrayBuffer = (self) => map7(mkUint8Array(self.channel), (bytes) => bytes.buffer);
2896
2881
  var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, context, options) => {
2897
2882
  let currentResolve = undefined;
2898
2883
  let fiber = undefined;
2899
2884
  let cancelled = false;
2900
- const latch = makeUnsafe2(false);
2885
+ const latch = makeUnsafe(false);
2901
2886
  const signal = options?.signal;
2902
2887
  const onAbort = () => fiber.interruptUnsafe();
2903
2888
  return new ReadableStream({
@@ -2943,15 +2928,15 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
2943
2928
  }
2944
2929
  }, options?.strategy);
2945
2930
  });
2946
- var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
2931
+ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map7(context(), (context) => toReadableStreamWith(self, context, options)));
2947
2932
 
2948
2933
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
2949
- var TypeId10 = "~effect/FileSystem";
2934
+ var TypeId9 = "~effect/FileSystem";
2950
2935
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
2951
2936
  var make11 = (impl) => FileSystem.of({
2952
2937
  ...impl,
2953
- [TypeId10]: TypeId10,
2954
- glob: make(impl),
2938
+ [TypeId9]: TypeId9,
2939
+ glob: make2(impl),
2955
2940
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
2956
2941
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
2957
2942
  try: () => new TextDecoder(encoding).decode(_),
@@ -2966,11 +2951,11 @@ var make11 = (impl) => FileSystem.of({
2966
2951
  const file = yield* impl.open(path, {
2967
2952
  flag: "r"
2968
2953
  });
2969
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
2954
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
2970
2955
  if (offset) {
2971
2956
  yield* file.seek(offset, "start");
2972
2957
  }
2973
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
2958
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
2974
2959
  let totalBytesRead = BigInt(0);
2975
2960
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
2976
2961
  const readChunk = file.readAlloc(chunkSize);
@@ -2990,7 +2975,7 @@ var make11 = (impl) => FileSystem.of({
2990
2975
  sink: (path, options) => pipe(impl.open(path, {
2991
2976
  ...options,
2992
2977
  flag: options?.flag ?? "w"
2993
- }), map8((file) => forEach2((_) => file.writeAll(_))), unwrap3),
2978
+ }), map7((file) => forEach2((_) => file.writeAll(_))), unwrap3),
2994
2979
  writeFileString: (path, data, options) => flatMap3(try_2({
2995
2980
  try: () => new TextEncoder().encode(data),
2996
2981
  catch: (cause) => badArgument({
@@ -3006,11 +2991,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3006
2991
  }
3007
2992
 
3008
2993
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3009
- var TypeId11 = "~effect/Path";
2994
+ var TypeId10 = "~effect/Path";
3010
2995
  var Path = /* @__PURE__ */ Service2("effect/Path");
3011
2996
  var make12 = (impl) => Path.of({
3012
2997
  ...impl,
3013
- [TypeId11]: TypeId11,
2998
+ [TypeId10]: TypeId10,
3014
2999
  resolveWithin(root, input) {
3015
3000
  if (impl.parse(input).root !== "")
3016
3001
  return none();
@@ -3145,7 +3130,7 @@ function trieNodeAt(root, path) {
3145
3130
  }
3146
3131
 
3147
3132
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3148
- var TypeId12 = "~effect/Config";
3133
+ var TypeId11 = "~effect/Config";
3149
3134
  class ConfigError {
3150
3135
  _tag = "ConfigError";
3151
3136
  name = "ConfigError";
@@ -3167,14 +3152,14 @@ var Proto2 = {
3167
3152
  return this.parse(fiber.getRef(ConfigProvider));
3168
3153
  }
3169
3154
  }),
3170
- [TypeId12]: TypeId12,
3155
+ [TypeId11]: TypeId11,
3171
3156
  toJSON() {
3172
3157
  return {
3173
3158
  _id: "Config"
3174
3159
  };
3175
3160
  }
3176
3161
  };
3177
- function make13(evaluator) {
3162
+ function make7(evaluator) {
3178
3163
  const self = Object.create(Proto2);
3179
3164
  self.evaluator = evaluator;
3180
3165
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3182,14 +3167,14 @@ function make13(evaluator) {
3182
3167
  }
3183
3168
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3184
3169
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3185
- return make13((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
3170
+ return make7((provider, pathPrefix) => map7(evaluateAt(self, provider, pathPrefix), map5(f)));
3186
3171
  });
3187
3172
  function all(arg) {
3188
3173
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3189
- return make13((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3174
+ return make7((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
3190
3175
  }
3191
3176
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3192
- return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3177
+ return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3193
3178
  });
3194
3179
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3195
3180
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3308,7 +3293,7 @@ function schema(codec, path) {
3308
3293
  const encodedAst = toEncoded(codecStringTree.ast);
3309
3294
  const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3310
3295
  const localPath = typeof path === "string" ? [path] : path ?? [];
3311
- return make13((provider, pathPrefix) => {
3296
+ return make7((provider, pathPrefix) => {
3312
3297
  const fullPath = [...pathPrefix, ...localPath];
3313
3298
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3314
3299
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3331,7 +3316,7 @@ var optionalEnv = (name) => gen(function* () {
3331
3316
  }).pipe(orElseSucceed(() => {
3332
3317
  return;
3333
3318
  }));
3334
- var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map8((configHome) => configHome ?? `${home}/.config`));
3319
+ var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map7((configHome) => configHome ?? `${home}/.config`));
3335
3320
 
3336
3321
  // packages/agent-runtime/src/temp-directory.ts
3337
3322
  var tempDirectoryScoped = (fs, options) => acquireRelease(fs.makeTempDirectory(options), (directory) => fs.remove(directory, { recursive: true, force: true }).pipe(catch_((error) => logWarning("temp_directory_not_removed", { directory, error: error.message }))));
@@ -3387,7 +3372,7 @@ var srtInheritedEnv2 = [
3387
3372
  "LC_CTYPE",
3388
3373
  "TZ"
3389
3374
  ];
3390
- var inheritedEnvironment2 = (names) => map8(forEach(names, (name) => map8(optionalEnv(name), (value) => value === undefined ? [] : [[name, value]])), (entries) => Object.fromEntries(entries.flat()));
3375
+ var inheritedEnvironment2 = (names) => map7(forEach(names, (name) => map7(optionalEnv(name), (value) => value === undefined ? [] : [[name, value]])), (entries) => Object.fromEntries(entries.flat()));
3391
3376
  var shellName = /^[A-Za-z_][A-Za-z0-9_]*$/;
3392
3377
  var withOnlyEnvironment2 = (names, argv) => [
3393
3378
  "sh",
@@ -3423,4 +3408,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3423
3408
  ...argv
3424
3409
  ];
3425
3410
 
3426
- export { map, makeEquivalence, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3411
+ export { map, makeEquivalence, bytes, join, interrupt, getCurrent, runIn, BadArgument, systemError, badArgument, makeUnsafe, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe2, fromTransform, mapDone, isSink, fromChannel, drain, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };