@kitman-sh/cli 0.50.1 → 0.52.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/{chunk-8r9k7pqk.js → chunk-2nq80r46.js} +59 -19
  2. package/dist/{chunk-k5cqc0cs.js → chunk-2t1hcdeq.js} +19 -21
  3. package/dist/{chunk-apv9h5tz.js → chunk-5yygjn0k.js} +1 -1
  4. package/dist/{chunk-g3c1vesf.js → chunk-84qb67e2.js} +1 -1
  5. package/dist/{chunk-rr0rem5d.js → chunk-9hde8p6b.js} +6 -6
  6. package/dist/{chunk-mtrhqr16.js → chunk-a40yta1r.js} +3 -3
  7. package/dist/{chunk-h3wes7wf.js → chunk-axfp5tzk.js} +7 -7
  8. package/dist/{chunk-qfwhsqej.js → chunk-bhz25x76.js} +3 -3
  9. package/dist/{chunk-hyaq30ne.js → chunk-bj0zchck.js} +179 -188
  10. package/dist/{chunk-watq46xe.js → chunk-chbdcf34.js} +9 -11
  11. package/dist/{chunk-7y1w0dhd.js → chunk-eqh0h088.js} +25 -27
  12. package/dist/{chunk-ecweehc6.js → chunk-h5ydhdhx.js} +23 -23
  13. package/dist/{chunk-q8m2ygyt.js → chunk-kt26vpwf.js} +9 -9
  14. package/dist/{chunk-brbym443.js → chunk-mmt6xq48.js} +2 -2
  15. package/dist/{chunk-v96hm634.js → chunk-my9db578.js} +4 -4
  16. package/dist/{chunk-72ht3484.js → chunk-pppryg54.js} +6 -6
  17. package/dist/{chunk-ag79vvjy.js → chunk-q2z8rct0.js} +4 -4
  18. package/dist/{chunk-s6z4sdkw.js → chunk-qjfzcrv5.js} +4 -4
  19. package/dist/{chunk-s8ws5fqj.js → chunk-qsbq9gvr.js} +350 -185
  20. package/dist/{chunk-n00cpb86.js → chunk-tfznw549.js} +2 -2
  21. package/dist/{chunk-k1fdsn2c.js → chunk-tqspx38s.js} +1 -1
  22. package/dist/{chunk-9jz94mb7.js → chunk-trtgab3h.js} +3 -3
  23. package/dist/{chunk-9vdy85kg.js → chunk-wb04fv2s.js} +34 -34
  24. package/dist/{chunk-5tgpa02q.js → chunk-wxg9k10v.js} +1 -1
  25. package/dist/{chunk-bk28dr40.js → chunk-xbqd3kqc.js} +14 -14
  26. package/dist/{chunk-n381rqax.js → chunk-zb4t1yrt.js} +71 -257
  27. package/dist/index.js +4 -4
  28. 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,
@@ -82,12 +79,13 @@ import {
82
79
  fiberRunIn,
83
80
  makeLatchUnsafe,
84
81
  makeLatch,
82
+ ClockRef,
83
+ currentTimeMillis2,
85
84
  succeed3,
86
85
  failCause2,
87
86
  fail4,
88
87
  interrupt2,
89
88
  void_2,
90
- isSuccess2,
91
89
  isFailure2,
92
90
  asVoidAll,
93
91
  makeUnsafe5,
@@ -159,14 +157,12 @@ import {
159
157
  tapError2,
160
158
  ignoreCause,
161
159
  orElseSucceed,
162
- sleep,
163
160
  raceFirst,
164
161
  when,
165
162
  matchCauseEffect,
166
163
  context,
167
164
  contextWith,
168
165
  provideContext2,
169
- scope2,
170
166
  scoped,
171
167
  scopedWith,
172
168
  acquireRelease,
@@ -177,7 +173,6 @@ import {
177
173
  interrupt3,
178
174
  onInterrupt,
179
175
  uninterruptible,
180
- uninterruptibleMask2,
181
176
  forever,
182
177
  forkChild,
183
178
  forkIn,
@@ -189,7 +184,6 @@ import {
189
184
  mapEager,
190
185
  flatMapEager,
191
186
  catchEager,
192
- fromInputUnsafe2,
193
187
  Pointer,
194
188
  passthrough,
195
189
  transformEffect,
@@ -201,11 +195,11 @@ import {
201
195
  toEncoded,
202
196
  decodeUnknownEffect,
203
197
  SchemaError,
204
- make17,
198
+ make16,
205
199
  String4,
206
200
  toCodecStringTree,
207
201
  encodeUnknownJsonStringSync
208
- } from "./chunk-n381rqax.js";
202
+ } from "./chunk-zb4t1yrt.js";
209
203
 
210
204
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
211
205
  var headUnsafe = (self) => {
@@ -255,6 +249,145 @@ var makeEquivalence = (equivalence) => {
255
249
  return (self, that) => is(self, that) && is(that, self);
256
250
  };
257
251
 
252
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
253
+ var Clock = ClockRef;
254
+ var currentTimeMillis = currentTimeMillis2;
255
+
256
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
257
+ var bigint0 = /* @__PURE__ */ BigInt(0);
258
+ var bigint1 = /* @__PURE__ */ BigInt(1);
259
+ var decimalBase = /* @__PURE__ */ BigInt(1000);
260
+ var binaryBase = /* @__PURE__ */ BigInt(1024);
261
+ var decimalUnits = [{
262
+ symbol: "B",
263
+ factor: bigint1,
264
+ names: ["B", "byte", "bytes"]
265
+ }, {
266
+ symbol: "kB",
267
+ factor: decimalBase,
268
+ names: ["kB", "kilobyte", "kilobytes"]
269
+ }, {
270
+ symbol: "MB",
271
+ factor: decimalBase ** /* @__PURE__ */ BigInt(2),
272
+ names: ["MB", "megabyte", "megabytes"]
273
+ }, {
274
+ symbol: "GB",
275
+ factor: decimalBase ** /* @__PURE__ */ BigInt(3),
276
+ names: ["GB", "gigabyte", "gigabytes"]
277
+ }, {
278
+ symbol: "TB",
279
+ factor: decimalBase ** /* @__PURE__ */ BigInt(4),
280
+ names: ["TB", "terabyte", "terabytes"]
281
+ }, {
282
+ symbol: "PB",
283
+ factor: decimalBase ** /* @__PURE__ */ BigInt(5),
284
+ names: ["PB", "petabyte", "petabytes"]
285
+ }, {
286
+ symbol: "EB",
287
+ factor: decimalBase ** /* @__PURE__ */ BigInt(6),
288
+ names: ["EB", "exabyte", "exabytes"]
289
+ }, {
290
+ symbol: "ZB",
291
+ factor: decimalBase ** /* @__PURE__ */ BigInt(7),
292
+ names: ["ZB", "zettabyte", "zettabytes"]
293
+ }, {
294
+ symbol: "YB",
295
+ factor: decimalBase ** /* @__PURE__ */ BigInt(8),
296
+ names: ["YB", "yottabyte", "yottabytes"]
297
+ }, {
298
+ symbol: "RB",
299
+ factor: decimalBase ** /* @__PURE__ */ BigInt(9),
300
+ names: ["RB", "ronnabyte", "ronnabytes"]
301
+ }, {
302
+ symbol: "QB",
303
+ factor: decimalBase ** /* @__PURE__ */ BigInt(10),
304
+ names: ["QB", "quettabyte", "quettabytes"]
305
+ }];
306
+ var binaryUnits = [decimalUnits[0], {
307
+ symbol: "KiB",
308
+ factor: binaryBase,
309
+ names: ["KiB", "kibibyte", "kibibytes"]
310
+ }, {
311
+ symbol: "MiB",
312
+ factor: binaryBase ** /* @__PURE__ */ BigInt(2),
313
+ names: ["MiB", "mebibyte", "mebibytes"]
314
+ }, {
315
+ symbol: "GiB",
316
+ factor: binaryBase ** /* @__PURE__ */ BigInt(3),
317
+ names: ["GiB", "gibibyte", "gibibytes"]
318
+ }, {
319
+ symbol: "TiB",
320
+ factor: binaryBase ** /* @__PURE__ */ BigInt(4),
321
+ names: ["TiB", "tebibyte", "tebibytes"]
322
+ }, {
323
+ symbol: "PiB",
324
+ factor: binaryBase ** /* @__PURE__ */ BigInt(5),
325
+ names: ["PiB", "pebibyte", "pebibytes"]
326
+ }, {
327
+ symbol: "EiB",
328
+ factor: binaryBase ** /* @__PURE__ */ BigInt(6),
329
+ names: ["EiB", "exbibyte", "exbibytes"]
330
+ }, {
331
+ symbol: "ZiB",
332
+ factor: binaryBase ** /* @__PURE__ */ BigInt(7),
333
+ names: ["ZiB", "zebibyte", "zebibytes"]
334
+ }, {
335
+ symbol: "YiB",
336
+ factor: binaryBase ** /* @__PURE__ */ BigInt(8),
337
+ names: ["YiB", "yobibyte", "yobibytes"]
338
+ }];
339
+ var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
340
+ var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
341
+ var make = (value) => value;
342
+ var invalid = (message) => {
343
+ throw new Error(`Invalid ByteSize: ${message}`);
344
+ };
345
+ var fromNumber = (input) => {
346
+ if (!Number.isSafeInteger(input) || input < 0) {
347
+ return invalid(`expected a non-negative safe integer, received ${input}`);
348
+ }
349
+ return make(BigInt(input));
350
+ };
351
+ var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
352
+ var scaleDecimal = (quantity, factor) => {
353
+ const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
354
+ if (match === null)
355
+ return;
356
+ const fraction = match[2] ?? "";
357
+ const numerator = BigInt(match[1] + fraction) * factor;
358
+ const shift = Number(match[3] ?? 0) - fraction.length;
359
+ if (shift >= 0)
360
+ return numerator * BigInt(10) ** BigInt(shift);
361
+ const scale = BigInt(10) ** BigInt(-shift);
362
+ return numerator % scale === bigint0 ? numerator / scale : undefined;
363
+ };
364
+ var fromStringUnsafe = (input) => {
365
+ const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
366
+ if (match === null)
367
+ return invalid(`unsupported syntax ${JSON.stringify(input)}`);
368
+ const unit = unitsByName.get(match[2]);
369
+ if (unit === undefined)
370
+ return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
371
+ const value = scaleDecimal(match[1], unit.factor);
372
+ if (value === undefined)
373
+ return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
374
+ return make(value);
375
+ };
376
+ var fromInputUnsafe = (input) => {
377
+ switch (typeof input) {
378
+ case "bigint":
379
+ if (input < bigint0)
380
+ return invalid(`expected a non-negative bigint, received ${input}`);
381
+ return make(input);
382
+ case "number":
383
+ return fromNumber(input);
384
+ case "string":
385
+ return fromStringUnsafe(input);
386
+ }
387
+ return invalid(`unsupported input ${input}`);
388
+ };
389
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
390
+
258
391
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
259
392
  var join = fiberJoin;
260
393
  var interrupt = fiberInterrupt;
@@ -808,7 +941,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
808
941
  var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
809
942
  var DIRECTORY_CONCURRENCY = 16;
810
943
  var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
811
- var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
944
+ var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
812
945
  var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
813
946
  if (compiled.initial.size === 0) {
814
947
  return [];
@@ -986,7 +1119,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
986
1119
 
987
1120
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
988
1121
  var makeUnsafe2 = makeLatchUnsafe;
989
- var make2 = makeLatch;
1122
+ var make3 = makeLatch;
990
1123
 
991
1124
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
992
1125
  var TypeId2 = "~effect/MutableRef";
@@ -1000,7 +1133,7 @@ var MutableRefProto = {
1000
1133
  };
1001
1134
  }
1002
1135
  };
1003
- var make7 = (value) => {
1136
+ var make8 = (value) => {
1004
1137
  const ref = Object.create(MutableRefProto);
1005
1138
  ref.current = value;
1006
1139
  return ref;
@@ -1012,7 +1145,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
1012
1145
 
1013
1146
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
1014
1147
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
1015
- var make3 = () => ({
1148
+ var make4 = () => ({
1016
1149
  head: undefined,
1017
1150
  tail: undefined,
1018
1151
  length: 0
@@ -1161,8 +1294,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1161
1294
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1162
1295
  var TypeId3 = "~effect/PubSub";
1163
1296
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1164
- var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1165
- var unbounded = (options) => make4({
1297
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1298
+ var unbounded = (options) => make5({
1166
1299
  atomicPubSub: () => makeAtomicUnbounded(options),
1167
1300
  strategy: () => new DroppingStrategy
1168
1301
  });
@@ -1180,7 +1313,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1180
1313
  return false;
1181
1314
  });
1182
1315
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1183
- const localScope = get4(services, Scope);
1316
+ const localScope = get3(services, Scope);
1184
1317
  const scope = forkUnsafe2(self.scope);
1185
1318
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1186
1319
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -1256,7 +1389,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1256
1389
  subscribers.delete(subscription);
1257
1390
  }
1258
1391
  };
1259
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1392
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1260
1393
  class UnboundedPubSub {
1261
1394
  publisherHead = {
1262
1395
  value: AbsentValue,
@@ -1673,12 +1806,12 @@ var QueueProto = {
1673
1806
  };
1674
1807
  }
1675
1808
  };
1676
- var make8 = (options) => withFiber((fiber) => {
1809
+ var make9 = (options) => withFiber((fiber) => {
1677
1810
  const self = Object.create(QueueProto);
1678
1811
  self.dispatcher = fiber.currentDispatcher;
1679
1812
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
1680
1813
  self.strategy = options?.strategy ?? "suspend";
1681
- self.messages = make3();
1814
+ self.messages = make4();
1682
1815
  self.scheduleRunning = false;
1683
1816
  self.state = {
1684
1817
  _tag: "Open",
@@ -1688,14 +1821,14 @@ var make8 = (options) => withFiber((fiber) => {
1688
1821
  };
1689
1822
  return succeed2(self);
1690
1823
  });
1691
- var bounded = (capacity) => make8({
1824
+ var bounded = (capacity) => make9({
1692
1825
  capacity
1693
1826
  });
1694
- var sliding = (capacity) => make8({
1827
+ var sliding = (capacity) => make9({
1695
1828
  capacity,
1696
1829
  strategy: "sliding"
1697
1830
  });
1698
- var unbounded2 = () => make8();
1831
+ var unbounded2 = () => make9();
1699
1832
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1700
1833
  var offerUnsafe = (self, message) => {
1701
1834
  if (self.state._tag !== "Open") {
@@ -2121,7 +2254,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2121
2254
  return onError(pull, onCause);
2122
2255
  }));
2123
2256
  var toTransform = (channel) => channel.transform;
2124
- var asyncQueue = (scope, f, options) => make8({
2257
+ var asyncQueue = (scope, f, options) => make9({
2125
2258
  capacity: options?.bufferSize,
2126
2259
  strategy: options?.strategy
2127
2260
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
@@ -2162,7 +2295,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2162
2295
  }));
2163
2296
  var readableStreamToPullUnsafe = (options) => {
2164
2297
  const reader = options.readable.getReader();
2165
- const exit = options.exit ?? make7(undefined);
2298
+ const exit = options.exit ?? make8(undefined);
2166
2299
  const pull = suspend3(() => {
2167
2300
  if (exit.current)
2168
2301
  return exit.current;
@@ -2370,7 +2503,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
2370
2503
  }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2371
2504
  const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
2372
2505
  const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
2373
- const doneLatch = yield* make2(true);
2506
+ const doneLatch = yield* make3(true);
2374
2507
  const fibers = new Map;
2375
2508
  const queue = yield* bounded(bufferSize);
2376
2509
  yield* addFinalizer(forkedScope, shutdown(queue));
@@ -2623,7 +2756,7 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
2623
2756
  var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
2624
2757
  const semaphore = makeUnsafe3(1);
2625
2758
  const context2 = yield* context();
2626
- const scope = get4(context2, Scope);
2759
+ const scope = get3(context2, Scope);
2627
2760
  const pull = yield* toTransform(self)(done(), scope);
2628
2761
  return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
2629
2762
  }, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
@@ -2684,151 +2817,9 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2684
2817
  }), catchDone(() => endVoid)));
2685
2818
  var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
2686
2819
 
2687
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2688
- var TypeId8 = "~effect/RcRef";
2689
- var stateEmpty = {
2690
- _tag: "Empty"
2691
- };
2692
- var stateClosed = {
2693
- _tag: "Closed"
2694
- };
2695
- var variance2 = {
2696
- _A: identity,
2697
- _E: identity
2698
- };
2699
-
2700
- class RcRefImpl {
2701
- [TypeId8] = variance2;
2702
- pipe() {
2703
- return pipeArguments(this, arguments);
2704
- }
2705
- state = stateEmpty;
2706
- acquire;
2707
- context;
2708
- scope;
2709
- idleTimeToLive;
2710
- constructor(acquire, context, scope, idleTimeToLive) {
2711
- this.acquire = acquire;
2712
- this.context = context;
2713
- this.scope = scope;
2714
- this.idleTimeToLive = idleTimeToLive;
2715
- }
2716
- }
2717
- var make5 = (options) => withFiber2((fiber) => {
2718
- const context = fiber.context;
2719
- const scope = get4(context, Scope);
2720
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2721
- return as(addFinalizerExit(scope, () => {
2722
- const state = ref.state;
2723
- ref.state = stateClosed;
2724
- if (state._tag === "Acquired")
2725
- return close(state.scope, void_2);
2726
- if (state._tag === "Acquiring")
2727
- return interrupt(state.fiber);
2728
- return void_3;
2729
- }), ref);
2730
- });
2731
- var getState = (self, restore) => {
2732
- switch (self.state._tag) {
2733
- case "Closed": {
2734
- return interrupt3;
2735
- }
2736
- case "Acquired": {
2737
- const state = self.state;
2738
- state.refCount++;
2739
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2740
- }
2741
- case "Acquiring": {
2742
- const state = self.state;
2743
- state.awaiters++;
2744
- return awaitAcquiring(self, state, restore);
2745
- }
2746
- case "Empty": {
2747
- const acquiring = {
2748
- _tag: "Acquiring",
2749
- fiber: undefined,
2750
- awaiters: 1,
2751
- acquired: undefined
2752
- };
2753
- self.state = acquiring;
2754
- const scope = makeUnsafe6();
2755
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2756
- if (self.state !== acquiring) {
2757
- return interrupt3;
2758
- }
2759
- const state = {
2760
- _tag: "Acquired",
2761
- value,
2762
- scope,
2763
- fiber: undefined,
2764
- refCount: acquiring.awaiters,
2765
- invalidated: false
2766
- };
2767
- self.state = state;
2768
- acquiring.acquired = state;
2769
- return succeed6(state);
2770
- }), onExit((exit) => {
2771
- if (isSuccess2(exit))
2772
- return void_3;
2773
- if (self.state === acquiring)
2774
- self.state = stateEmpty;
2775
- return close(scope, exit);
2776
- }));
2777
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2778
- return awaitAcquiring(self, acquiring, restore);
2779
- }
2780
- }
2781
- };
2782
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2783
- const acquired = acquiring.acquired;
2784
- if (acquired !== undefined) {
2785
- return isFailure2(exit) ? release(self, acquired) : void_3;
2786
- }
2787
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
2788
- return void_3;
2789
- self.state = stateEmpty;
2790
- return interrupt(acquiring.fiber);
2791
- });
2792
- var get2 = (self_) => {
2793
- const self = self_;
2794
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2795
- };
2796
- var release = (self, state) => {
2797
- state.refCount--;
2798
- if (state.refCount > 0) {
2799
- return void_3;
2800
- }
2801
- const idleTimeToLive = self.idleTimeToLive;
2802
- if (idleTimeToLive === undefined || state.invalidated) {
2803
- if (self.state === state) {
2804
- self.state = stateEmpty;
2805
- }
2806
- return close(state.scope, void_2);
2807
- } else if (!isFinite(idleTimeToLive)) {
2808
- return void_3;
2809
- }
2810
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2811
- if (self.state === state && state.refCount === 0) {
2812
- self.state = stateEmpty;
2813
- return ignoreCause(close(state.scope, void_2), {
2814
- log: "Unhandled",
2815
- message: "Unhandled error in RcRef finalizer"
2816
- });
2817
- }
2818
- return void_3;
2819
- })).pipe(ensuring2(sync2(() => {
2820
- state.fiber = undefined;
2821
- })), runForkWith(self.context), runIn(self.scope));
2822
- return void_3;
2823
- };
2824
-
2825
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2826
- var make9 = make5;
2827
- var get3 = get2;
2828
-
2829
2820
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2830
- var TypeId9 = "~effect/Stream";
2831
- var isStream = (u) => hasProperty(u, TypeId9);
2821
+ var TypeId8 = "~effect/Stream";
2822
+ var isStream = (u) => hasProperty(u, TypeId8);
2832
2823
  var fromChannel2 = fromChannel3;
2833
2824
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2834
2825
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
@@ -3034,12 +3025,12 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
3034
3025
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
3035
3026
 
3036
3027
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3037
- var TypeId10 = "~effect/FileSystem";
3028
+ var TypeId9 = "~effect/FileSystem";
3038
3029
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3039
3030
  var make11 = (impl) => FileSystem.of({
3040
3031
  ...impl,
3041
- [TypeId10]: TypeId10,
3042
- glob: make(impl),
3032
+ [TypeId9]: TypeId9,
3033
+ glob: make2(impl),
3043
3034
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
3044
3035
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
3045
3036
  try: () => new TextDecoder(encoding).decode(_),
@@ -3054,11 +3045,11 @@ var make11 = (impl) => FileSystem.of({
3054
3045
  const file = yield* impl.open(path, {
3055
3046
  flag: "r"
3056
3047
  });
3057
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
3048
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3058
3049
  if (offset) {
3059
3050
  yield* file.seek(offset, "start");
3060
3051
  }
3061
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
3052
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3062
3053
  let totalBytesRead = BigInt(0);
3063
3054
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
3064
3055
  const readChunk = file.readAlloc(chunkSize);
@@ -3094,11 +3085,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3094
3085
  }
3095
3086
 
3096
3087
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3097
- var TypeId11 = "~effect/Path";
3088
+ var TypeId10 = "~effect/Path";
3098
3089
  var Path = /* @__PURE__ */ Service2("effect/Path");
3099
3090
  var make12 = (impl) => Path.of({
3100
3091
  ...impl,
3101
- [TypeId11]: TypeId11,
3092
+ [TypeId10]: TypeId10,
3102
3093
  resolveWithin(root, input) {
3103
3094
  if (impl.parse(input).root !== "")
3104
3095
  return none();
@@ -3233,7 +3224,7 @@ function trieNodeAt(root, path) {
3233
3224
  }
3234
3225
 
3235
3226
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3236
- var TypeId12 = "~effect/Config";
3227
+ var TypeId11 = "~effect/Config";
3237
3228
  class ConfigError {
3238
3229
  _tag = "ConfigError";
3239
3230
  name = "ConfigError";
@@ -3255,14 +3246,14 @@ var Proto2 = {
3255
3246
  return this.parse(fiber.getRef(ConfigProvider));
3256
3247
  }
3257
3248
  }),
3258
- [TypeId12]: TypeId12,
3249
+ [TypeId11]: TypeId11,
3259
3250
  toJSON() {
3260
3251
  return {
3261
3252
  _id: "Config"
3262
3253
  };
3263
3254
  }
3264
3255
  };
3265
- function make13(evaluator) {
3256
+ function make7(evaluator) {
3266
3257
  const self = Object.create(Proto2);
3267
3258
  self.evaluator = evaluator;
3268
3259
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3270,14 +3261,14 @@ function make13(evaluator) {
3270
3261
  }
3271
3262
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3272
3263
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3273
- return make13((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
3264
+ return make7((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
3274
3265
  });
3275
3266
  function all(arg) {
3276
3267
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3277
- 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));
3268
+ 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));
3278
3269
  }
3279
3270
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3280
- return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3271
+ return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3281
3272
  });
3282
3273
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3283
3274
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3394,9 +3385,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3394
3385
  function schema(codec, path) {
3395
3386
  const codecStringTree = toCodecStringTree(codec);
3396
3387
  const encodedAst = toEncoded(codecStringTree.ast);
3397
- const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3388
+ const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3398
3389
  const localPath = typeof path === "string" ? [path] : path ?? [];
3399
- return make13((provider, pathPrefix) => {
3390
+ return make7((provider, pathPrefix) => {
3400
3391
  const fullPath = [...pathPrefix, ...localPath];
3401
3392
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3402
3393
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3526,4 +3517,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3526
3517
  ...argv
3527
3518
  ];
3528
3519
 
3529
- export { empty2, map, makeEquivalence, join, interrupt, interruptAll, 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, empty3, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3520
+ export { empty2, map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, interruptAll, getCurrent, runIn, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, isStream, fromChannel2, callback, empty3, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -12,7 +12,7 @@ import {
12
12
  empty4,
13
13
  add,
14
14
  getOrUndefined2,
15
- get4,
15
+ get3,
16
16
  merge3,
17
17
  Reference,
18
18
  fromInputUnsafe,
@@ -139,7 +139,7 @@ import {
139
139
  toCodecJson,
140
140
  Json,
141
141
  encodeUnknownJsonStringSync
142
- } from "./chunk-n381rqax.js";
142
+ } from "./chunk-zb4t1yrt.js";
143
143
  import {
144
144
  WebCrypto,
145
145
  makeUnsafe,
@@ -180,26 +180,24 @@ import {
180
180
  StepManifest,
181
181
  KitSetup,
182
182
  RunnerRpcError
183
- } from "./chunk-s8ws5fqj.js";
183
+ } from "./chunk-qsbq9gvr.js";
184
184
  import {
185
+ currentTimeMillis,
185
186
  getCurrent,
186
187
  runForEach,
187
188
  FileSystem
188
- } from "./chunk-hyaq30ne.js";
189
- import {
190
- currentTimeMillis
191
- } from "./chunk-8r9k7pqk.js";
189
+ } from "./chunk-bj0zchck.js";
192
190
  import {
193
191
  splitQuestionOptions,
194
192
  recommendationProblem,
195
193
  questionAdvice
196
- } from "./chunk-k1fdsn2c.js";
194
+ } from "./chunk-tqspx38s.js";
197
195
  import {
198
196
  guard,
199
197
  Id,
200
198
  Timestamp,
201
199
  ActorType
202
- } from "./chunk-5tgpa02q.js";
200
+ } from "./chunk-wxg9k10v.js";
203
201
  var __defProp = Object.defineProperty;
204
202
  var __returnValue = (v) => v;
205
203
  function __exportSetter(name, newValue) {
@@ -776,7 +774,7 @@ class Suspended extends (/* @__PURE__ */ Class2("effect/workflow/Workflow/Suspen
776
774
  [ResultTypeId] = ResultTypeId;
777
775
  }
778
776
  var wrapActivityResult = (effect, isSuspend) => contextWith((context) => {
779
- const instance = get4(context, InstanceTag);
777
+ const instance = get3(context, InstanceTag);
780
778
  return acquireUseRelease(sync2(() => adoptActivityUnsafe(context, instance) ?? registerActivityUnsafe(instance)), () => effect, (registration, exit) => {
781
779
  releaseActivityUnsafe(registration);
782
780
  const isSuspended = isSuccess2(exit) && isSuspend(exit.value);
@@ -1494,7 +1492,7 @@ var scopingActivities = (engine) => ({
1494
1492
  }),
1495
1493
  activityExecute: (activity, attempt) => gen(function* () {
1496
1494
  const scope = yield* StepScope;
1497
- if (scope === "" || get4(activity.annotations, ActivityNamed))
1495
+ if (scope === "" || get3(activity.annotations, ActivityNamed))
1498
1496
  return yield* engine.activityExecute(activity, attempt);
1499
1497
  return yield* engine.activityExecute(renamed(activity, scopedName(scope, activity.name)), attempt);
1500
1498
  })