@kitman-sh/cli 0.17.0 → 0.19.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-2928qj8m.js → chunk-0sbd6e4d.js} +21 -21
  2. package/dist/{chunk-kx8rpa62.js → chunk-2dhhyy04.js} +5 -5
  3. package/dist/{chunk-pnckztvv.js → chunk-2y646fhs.js} +20 -20
  4. package/dist/{chunk-nqh0pbgt.js → chunk-36dejya4.js} +1 -1
  5. package/dist/{chunk-829r4kya.js → chunk-3gmqn9yp.js} +4 -4
  6. package/dist/{chunk-g3jqqpky.js → chunk-4rq880g6.js} +9 -9
  7. package/dist/{chunk-zy21drtv.js → chunk-6387vj9z.js} +2 -2
  8. package/dist/{chunk-9a6wbk11.js → chunk-6hxtg6eb.js} +3 -3
  9. package/dist/{chunk-2sazk478.js → chunk-9cj8g584.js} +4 -4
  10. package/dist/{chunk-0wqkz371.js → chunk-am57a75e.js} +3 -3
  11. package/dist/{chunk-ekyj0bps.js → chunk-bevxc9rx.js} +7 -7
  12. package/dist/{chunk-j37p2y71.js → chunk-e863b7v1.js} +350 -189
  13. package/dist/{chunk-y64ssczv.js → chunk-ew07nt2d.js} +71 -257
  14. package/dist/{chunk-5me7tnrw.js → chunk-gqcz0d3j.js} +2 -2
  15. package/dist/{chunk-pd3azxev.js → chunk-haq904fk.js} +1 -1
  16. package/dist/{chunk-r3d2yjsh.js → chunk-hrdh72c7.js} +25 -25
  17. package/dist/{chunk-qjxgew0k.js → chunk-khn17hdn.js} +2 -2
  18. package/dist/{chunk-0f67q0tf.js → chunk-kx00yd3c.js} +9 -9
  19. package/dist/{chunk-ebpjd7kg.js → chunk-qp3kqaw1.js} +6 -6
  20. package/dist/{chunk-r2kzvdrg.js → chunk-qvpkwnky.js} +1 -1
  21. package/dist/{chunk-nf9rfrvv.js → chunk-t5gb7bqv.js} +34 -34
  22. package/dist/{chunk-vh2a72d1.js → chunk-t6y0c0ds.js} +60 -14
  23. package/dist/{chunk-z59pvcbk.js → chunk-w9mxqrsp.js} +178 -187
  24. package/dist/{chunk-8r1a93rc.js → chunk-y4nrvwgy.js} +4 -4
  25. package/dist/{chunk-m1qp6swh.js → chunk-y7bth30s.js} +1 -1
  26. package/dist/{chunk-jg1pjhba.js → chunk-zb8mwx3s.js} +21 -21
  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,
@@ -81,12 +78,13 @@ import {
81
78
  fiberRunIn,
82
79
  makeLatchUnsafe,
83
80
  makeLatch,
81
+ ClockRef,
82
+ currentTimeMillis2,
84
83
  succeed3,
85
84
  failCause2,
86
85
  fail4,
87
86
  interrupt2,
88
87
  void_2,
89
- isSuccess2,
90
88
  isFailure2,
91
89
  asVoidAll,
92
90
  makeUnsafe5,
@@ -158,14 +156,12 @@ import {
158
156
  tapError2,
159
157
  ignoreCause,
160
158
  orElseSucceed,
161
- sleep,
162
159
  raceFirst,
163
160
  when,
164
161
  matchCauseEffect,
165
162
  context,
166
163
  contextWith,
167
164
  provideContext2,
168
- scope2,
169
165
  scoped,
170
166
  scopedWith,
171
167
  acquireRelease,
@@ -176,7 +172,6 @@ import {
176
172
  interrupt3,
177
173
  onInterrupt,
178
174
  uninterruptible,
179
- uninterruptibleMask2,
180
175
  forever,
181
176
  forkChild,
182
177
  forkIn,
@@ -188,7 +183,6 @@ import {
188
183
  mapEager,
189
184
  flatMapEager,
190
185
  catchEager,
191
- fromInputUnsafe2,
192
186
  Pointer,
193
187
  passthrough,
194
188
  transformEffect,
@@ -200,11 +194,11 @@ import {
200
194
  toEncoded,
201
195
  decodeUnknownEffect,
202
196
  SchemaError,
203
- make17,
197
+ make16,
204
198
  String4,
205
199
  toCodecStringTree,
206
200
  encodeUnknownJsonStringSync
207
- } from "./chunk-y64ssczv.js";
201
+ } from "./chunk-ew07nt2d.js";
208
202
 
209
203
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
210
204
  var headUnsafe = (self) => {
@@ -253,6 +247,145 @@ var makeEquivalence = (equivalence) => {
253
247
  return (self, that) => is(self, that) && is(that, self);
254
248
  };
255
249
 
250
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
251
+ var Clock = ClockRef;
252
+ var currentTimeMillis = currentTimeMillis2;
253
+
254
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
255
+ var bigint0 = /* @__PURE__ */ BigInt(0);
256
+ var bigint1 = /* @__PURE__ */ BigInt(1);
257
+ var decimalBase = /* @__PURE__ */ BigInt(1000);
258
+ var binaryBase = /* @__PURE__ */ BigInt(1024);
259
+ var decimalUnits = [{
260
+ symbol: "B",
261
+ factor: bigint1,
262
+ names: ["B", "byte", "bytes"]
263
+ }, {
264
+ symbol: "kB",
265
+ factor: decimalBase,
266
+ names: ["kB", "kilobyte", "kilobytes"]
267
+ }, {
268
+ symbol: "MB",
269
+ factor: decimalBase ** /* @__PURE__ */ BigInt(2),
270
+ names: ["MB", "megabyte", "megabytes"]
271
+ }, {
272
+ symbol: "GB",
273
+ factor: decimalBase ** /* @__PURE__ */ BigInt(3),
274
+ names: ["GB", "gigabyte", "gigabytes"]
275
+ }, {
276
+ symbol: "TB",
277
+ factor: decimalBase ** /* @__PURE__ */ BigInt(4),
278
+ names: ["TB", "terabyte", "terabytes"]
279
+ }, {
280
+ symbol: "PB",
281
+ factor: decimalBase ** /* @__PURE__ */ BigInt(5),
282
+ names: ["PB", "petabyte", "petabytes"]
283
+ }, {
284
+ symbol: "EB",
285
+ factor: decimalBase ** /* @__PURE__ */ BigInt(6),
286
+ names: ["EB", "exabyte", "exabytes"]
287
+ }, {
288
+ symbol: "ZB",
289
+ factor: decimalBase ** /* @__PURE__ */ BigInt(7),
290
+ names: ["ZB", "zettabyte", "zettabytes"]
291
+ }, {
292
+ symbol: "YB",
293
+ factor: decimalBase ** /* @__PURE__ */ BigInt(8),
294
+ names: ["YB", "yottabyte", "yottabytes"]
295
+ }, {
296
+ symbol: "RB",
297
+ factor: decimalBase ** /* @__PURE__ */ BigInt(9),
298
+ names: ["RB", "ronnabyte", "ronnabytes"]
299
+ }, {
300
+ symbol: "QB",
301
+ factor: decimalBase ** /* @__PURE__ */ BigInt(10),
302
+ names: ["QB", "quettabyte", "quettabytes"]
303
+ }];
304
+ var binaryUnits = [decimalUnits[0], {
305
+ symbol: "KiB",
306
+ factor: binaryBase,
307
+ names: ["KiB", "kibibyte", "kibibytes"]
308
+ }, {
309
+ symbol: "MiB",
310
+ factor: binaryBase ** /* @__PURE__ */ BigInt(2),
311
+ names: ["MiB", "mebibyte", "mebibytes"]
312
+ }, {
313
+ symbol: "GiB",
314
+ factor: binaryBase ** /* @__PURE__ */ BigInt(3),
315
+ names: ["GiB", "gibibyte", "gibibytes"]
316
+ }, {
317
+ symbol: "TiB",
318
+ factor: binaryBase ** /* @__PURE__ */ BigInt(4),
319
+ names: ["TiB", "tebibyte", "tebibytes"]
320
+ }, {
321
+ symbol: "PiB",
322
+ factor: binaryBase ** /* @__PURE__ */ BigInt(5),
323
+ names: ["PiB", "pebibyte", "pebibytes"]
324
+ }, {
325
+ symbol: "EiB",
326
+ factor: binaryBase ** /* @__PURE__ */ BigInt(6),
327
+ names: ["EiB", "exbibyte", "exbibytes"]
328
+ }, {
329
+ symbol: "ZiB",
330
+ factor: binaryBase ** /* @__PURE__ */ BigInt(7),
331
+ names: ["ZiB", "zebibyte", "zebibytes"]
332
+ }, {
333
+ symbol: "YiB",
334
+ factor: binaryBase ** /* @__PURE__ */ BigInt(8),
335
+ names: ["YiB", "yobibyte", "yobibytes"]
336
+ }];
337
+ var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
338
+ var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
339
+ var make = (value) => value;
340
+ var invalid = (message) => {
341
+ throw new Error(`Invalid ByteSize: ${message}`);
342
+ };
343
+ var fromNumber = (input) => {
344
+ if (!Number.isSafeInteger(input) || input < 0) {
345
+ return invalid(`expected a non-negative safe integer, received ${input}`);
346
+ }
347
+ return make(BigInt(input));
348
+ };
349
+ var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
350
+ var scaleDecimal = (quantity, factor) => {
351
+ const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
352
+ if (match === null)
353
+ return;
354
+ const fraction = match[2] ?? "";
355
+ const numerator = BigInt(match[1] + fraction) * factor;
356
+ const shift = Number(match[3] ?? 0) - fraction.length;
357
+ if (shift >= 0)
358
+ return numerator * BigInt(10) ** BigInt(shift);
359
+ const scale = BigInt(10) ** BigInt(-shift);
360
+ return numerator % scale === bigint0 ? numerator / scale : undefined;
361
+ };
362
+ var fromStringUnsafe = (input) => {
363
+ const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
364
+ if (match === null)
365
+ return invalid(`unsupported syntax ${JSON.stringify(input)}`);
366
+ const unit = unitsByName.get(match[2]);
367
+ if (unit === undefined)
368
+ return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
369
+ const value = scaleDecimal(match[1], unit.factor);
370
+ if (value === undefined)
371
+ return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
372
+ return make(value);
373
+ };
374
+ var fromInputUnsafe = (input) => {
375
+ switch (typeof input) {
376
+ case "bigint":
377
+ if (input < bigint0)
378
+ return invalid(`expected a non-negative bigint, received ${input}`);
379
+ return make(input);
380
+ case "number":
381
+ return fromNumber(input);
382
+ case "string":
383
+ return fromStringUnsafe(input);
384
+ }
385
+ return invalid(`unsupported input ${input}`);
386
+ };
387
+ var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
388
+
256
389
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
257
390
  var join = fiberJoin;
258
391
  var interrupt = fiberInterrupt;
@@ -805,7 +938,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
805
938
  var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
806
939
  var DIRECTORY_CONCURRENCY = 16;
807
940
  var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
808
- var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
941
+ var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
809
942
  var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
810
943
  if (compiled.initial.size === 0) {
811
944
  return [];
@@ -983,7 +1116,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
983
1116
 
984
1117
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
985
1118
  var makeUnsafe2 = makeLatchUnsafe;
986
- var make2 = makeLatch;
1119
+ var make3 = makeLatch;
987
1120
 
988
1121
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
989
1122
  var TypeId2 = "~effect/MutableRef";
@@ -997,7 +1130,7 @@ var MutableRefProto = {
997
1130
  };
998
1131
  }
999
1132
  };
1000
- var make7 = (value) => {
1133
+ var make8 = (value) => {
1001
1134
  const ref = Object.create(MutableRefProto);
1002
1135
  ref.current = value;
1003
1136
  return ref;
@@ -1009,7 +1142,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
1009
1142
 
1010
1143
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
1011
1144
  var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
1012
- var make3 = () => ({
1145
+ var make4 = () => ({
1013
1146
  head: undefined,
1014
1147
  tail: undefined,
1015
1148
  length: 0
@@ -1158,8 +1291,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
1158
1291
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
1159
1292
  var TypeId3 = "~effect/PubSub";
1160
1293
  var SubscriptionTypeId = "~effect/PubSub/Subscription";
1161
- var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
1162
- var unbounded = (options) => make4({
1294
+ var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
1295
+ var unbounded = (options) => make5({
1163
1296
  atomicPubSub: () => makeAtomicUnbounded(options),
1164
1297
  strategy: () => new DroppingStrategy
1165
1298
  });
@@ -1177,7 +1310,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
1177
1310
  return false;
1178
1311
  });
1179
1312
  var subscribe = (self) => uninterruptible(contextWith((services) => {
1180
- const localScope = get4(services, Scope);
1313
+ const localScope = get3(services, Scope);
1181
1314
  const scope = forkUnsafe(self.scope);
1182
1315
  const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
1183
1316
  return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
@@ -1253,7 +1386,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
1253
1386
  subscribers.delete(subscription);
1254
1387
  }
1255
1388
  };
1256
- var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
1389
+ var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
1257
1390
  class UnboundedPubSub {
1258
1391
  publisherHead = {
1259
1392
  value: AbsentValue,
@@ -1670,12 +1803,12 @@ var QueueProto = {
1670
1803
  };
1671
1804
  }
1672
1805
  };
1673
- var make8 = (options) => withFiber((fiber) => {
1806
+ var make9 = (options) => withFiber((fiber) => {
1674
1807
  const self = Object.create(QueueProto);
1675
1808
  self.dispatcher = fiber.currentDispatcher;
1676
1809
  self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
1677
1810
  self.strategy = options?.strategy ?? "suspend";
1678
- self.messages = make3();
1811
+ self.messages = make4();
1679
1812
  self.scheduleRunning = false;
1680
1813
  self.state = {
1681
1814
  _tag: "Open",
@@ -1685,14 +1818,14 @@ var make8 = (options) => withFiber((fiber) => {
1685
1818
  };
1686
1819
  return succeed2(self);
1687
1820
  });
1688
- var bounded = (capacity) => make8({
1821
+ var bounded = (capacity) => make9({
1689
1822
  capacity
1690
1823
  });
1691
- var sliding = (capacity) => make8({
1824
+ var sliding = (capacity) => make9({
1692
1825
  capacity,
1693
1826
  strategy: "sliding"
1694
1827
  });
1695
- var unbounded2 = () => make8();
1828
+ var unbounded2 = () => make9();
1696
1829
  var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
1697
1830
  var offerUnsafe = (self, message) => {
1698
1831
  if (self.state._tag !== "Open") {
@@ -2118,7 +2251,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
2118
2251
  return onError(pull, onCause);
2119
2252
  }));
2120
2253
  var toTransform = (channel) => channel.transform;
2121
- var asyncQueue = (scope, f, options) => make8({
2254
+ var asyncQueue = (scope, f, options) => make9({
2122
2255
  capacity: options?.bufferSize,
2123
2256
  strategy: options?.strategy
2124
2257
  }).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
@@ -2159,7 +2292,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
2159
2292
  }));
2160
2293
  var readableStreamToPullUnsafe = (options) => {
2161
2294
  const reader = options.readable.getReader();
2162
- const exit = options.exit ?? make7(undefined);
2295
+ const exit = options.exit ?? make8(undefined);
2163
2296
  const pull = suspend3(() => {
2164
2297
  if (exit.current)
2165
2298
  return exit.current;
@@ -2367,7 +2500,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
2367
2500
  }) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
2368
2501
  const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
2369
2502
  const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
2370
- const doneLatch = yield* make2(true);
2503
+ const doneLatch = yield* make3(true);
2371
2504
  const fibers = new Map;
2372
2505
  const queue = yield* bounded(bufferSize);
2373
2506
  yield* addFinalizer(forkedScope, shutdown(queue));
@@ -2674,151 +2807,9 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
2674
2807
  }), catchDone(() => endVoid)));
2675
2808
  var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
2676
2809
 
2677
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
2678
- var TypeId8 = "~effect/RcRef";
2679
- var stateEmpty = {
2680
- _tag: "Empty"
2681
- };
2682
- var stateClosed = {
2683
- _tag: "Closed"
2684
- };
2685
- var variance2 = {
2686
- _A: identity,
2687
- _E: identity
2688
- };
2689
-
2690
- class RcRefImpl {
2691
- [TypeId8] = variance2;
2692
- pipe() {
2693
- return pipeArguments(this, arguments);
2694
- }
2695
- state = stateEmpty;
2696
- acquire;
2697
- context;
2698
- scope;
2699
- idleTimeToLive;
2700
- constructor(acquire, context, scope, idleTimeToLive) {
2701
- this.acquire = acquire;
2702
- this.context = context;
2703
- this.scope = scope;
2704
- this.idleTimeToLive = idleTimeToLive;
2705
- }
2706
- }
2707
- var make5 = (options) => withFiber2((fiber) => {
2708
- const context = fiber.context;
2709
- const scope = get4(context, Scope);
2710
- const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
2711
- return as(addFinalizerExit(scope, () => {
2712
- const state = ref.state;
2713
- ref.state = stateClosed;
2714
- if (state._tag === "Acquired")
2715
- return close(state.scope, void_2);
2716
- if (state._tag === "Acquiring")
2717
- return interrupt(state.fiber);
2718
- return void_3;
2719
- }), ref);
2720
- });
2721
- var getState = (self, restore) => {
2722
- switch (self.state._tag) {
2723
- case "Closed": {
2724
- return interrupt3;
2725
- }
2726
- case "Acquired": {
2727
- const state = self.state;
2728
- state.refCount++;
2729
- return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
2730
- }
2731
- case "Acquiring": {
2732
- const state = self.state;
2733
- state.awaiters++;
2734
- return awaitAcquiring(self, state, restore);
2735
- }
2736
- case "Empty": {
2737
- const acquiring = {
2738
- _tag: "Acquiring",
2739
- fiber: undefined,
2740
- awaiters: 1,
2741
- acquired: undefined
2742
- };
2743
- self.state = acquiring;
2744
- const scope = makeUnsafe6();
2745
- const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
2746
- if (self.state !== acquiring) {
2747
- return interrupt3;
2748
- }
2749
- const state = {
2750
- _tag: "Acquired",
2751
- value,
2752
- scope,
2753
- fiber: undefined,
2754
- refCount: acquiring.awaiters,
2755
- invalidated: false
2756
- };
2757
- self.state = state;
2758
- acquiring.acquired = state;
2759
- return succeed6(state);
2760
- }), onExit((exit) => {
2761
- if (isSuccess2(exit))
2762
- return void_3;
2763
- if (self.state === acquiring)
2764
- self.state = stateEmpty;
2765
- return close(scope, exit);
2766
- }));
2767
- acquiring.fiber = runForkWith(getCurrent().context)(acquire);
2768
- return awaitAcquiring(self, acquiring, restore);
2769
- }
2770
- }
2771
- };
2772
- var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
2773
- const acquired = acquiring.acquired;
2774
- if (acquired !== undefined) {
2775
- return isFailure2(exit) ? release(self, acquired) : void_3;
2776
- }
2777
- if (--acquiring.awaiters > 0 || self.state !== acquiring)
2778
- return void_3;
2779
- self.state = stateEmpty;
2780
- return interrupt(acquiring.fiber);
2781
- });
2782
- var get2 = (self_) => {
2783
- const self = self_;
2784
- return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
2785
- };
2786
- var release = (self, state) => {
2787
- state.refCount--;
2788
- if (state.refCount > 0) {
2789
- return void_3;
2790
- }
2791
- const idleTimeToLive = self.idleTimeToLive;
2792
- if (idleTimeToLive === undefined || state.invalidated) {
2793
- if (self.state === state) {
2794
- self.state = stateEmpty;
2795
- }
2796
- return close(state.scope, void_2);
2797
- } else if (!isFinite(idleTimeToLive)) {
2798
- return void_3;
2799
- }
2800
- state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
2801
- if (self.state === state && state.refCount === 0) {
2802
- self.state = stateEmpty;
2803
- return ignoreCause(close(state.scope, void_2), {
2804
- log: "Unhandled",
2805
- message: "Unhandled error in RcRef finalizer"
2806
- });
2807
- }
2808
- return void_3;
2809
- })).pipe(ensuring2(sync2(() => {
2810
- state.fiber = undefined;
2811
- })), runForkWith(self.context), runIn(self.scope));
2812
- return void_3;
2813
- };
2814
-
2815
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
2816
- var make9 = make5;
2817
- var get3 = get2;
2818
-
2819
2810
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
2820
- var TypeId9 = "~effect/Stream";
2821
- var isStream = (u) => hasProperty(u, TypeId9);
2811
+ var TypeId8 = "~effect/Stream";
2812
+ var isStream = (u) => hasProperty(u, TypeId8);
2822
2813
  var fromChannel2 = fromChannel3;
2823
2814
  var fromPull2 = (pull) => fromChannel2(fromPull(pull));
2824
2815
  var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
@@ -3023,12 +3014,12 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
3023
3014
  var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
3024
3015
 
3025
3016
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
3026
- var TypeId10 = "~effect/FileSystem";
3017
+ var TypeId9 = "~effect/FileSystem";
3027
3018
  var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
3028
3019
  var make11 = (impl) => FileSystem.of({
3029
3020
  ...impl,
3030
- [TypeId10]: TypeId10,
3031
- glob: make(impl),
3021
+ [TypeId9]: TypeId9,
3022
+ glob: make2(impl),
3032
3023
  exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
3033
3024
  readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
3034
3025
  try: () => new TextDecoder(encoding).decode(_),
@@ -3043,11 +3034,11 @@ var make11 = (impl) => FileSystem.of({
3043
3034
  const file = yield* impl.open(path, {
3044
3035
  flag: "r"
3045
3036
  });
3046
- const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
3037
+ const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
3047
3038
  if (offset) {
3048
3039
  yield* file.seek(offset, "start");
3049
3040
  }
3050
- const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
3041
+ const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
3051
3042
  let totalBytesRead = BigInt(0);
3052
3043
  const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
3053
3044
  const readChunk = file.readAlloc(chunkSize);
@@ -3083,11 +3074,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
3083
3074
  }
3084
3075
 
3085
3076
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
3086
- var TypeId11 = "~effect/Path";
3077
+ var TypeId10 = "~effect/Path";
3087
3078
  var Path = /* @__PURE__ */ Service2("effect/Path");
3088
3079
  var make12 = (impl) => Path.of({
3089
3080
  ...impl,
3090
- [TypeId11]: TypeId11,
3081
+ [TypeId10]: TypeId10,
3091
3082
  resolveWithin(root, input) {
3092
3083
  if (impl.parse(input).root !== "")
3093
3084
  return none();
@@ -3222,7 +3213,7 @@ function trieNodeAt(root, path) {
3222
3213
  }
3223
3214
 
3224
3215
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
3225
- var TypeId12 = "~effect/Config";
3216
+ var TypeId11 = "~effect/Config";
3226
3217
  class ConfigError {
3227
3218
  _tag = "ConfigError";
3228
3219
  name = "ConfigError";
@@ -3244,14 +3235,14 @@ var Proto2 = {
3244
3235
  return this.parse(fiber.getRef(ConfigProvider));
3245
3236
  }
3246
3237
  }),
3247
- [TypeId12]: TypeId12,
3238
+ [TypeId11]: TypeId11,
3248
3239
  toJSON() {
3249
3240
  return {
3250
3241
  _id: "Config"
3251
3242
  };
3252
3243
  }
3253
3244
  };
3254
- function make13(evaluator) {
3245
+ function make7(evaluator) {
3255
3246
  const self = Object.create(Proto2);
3256
3247
  self.evaluator = evaluator;
3257
3248
  self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
@@ -3259,14 +3250,14 @@ function make13(evaluator) {
3259
3250
  }
3260
3251
  var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
3261
3252
  var map3 = /* @__PURE__ */ dual(2, (self, f) => {
3262
- return make13((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
3253
+ return make7((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
3263
3254
  });
3264
3255
  function all(arg) {
3265
3256
  const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
3266
- 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));
3257
+ 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));
3267
3258
  }
3268
3259
  var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
3269
- return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3260
+ return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
3270
3261
  });
3271
3262
  var option = (self) => self.pipe(map3(some), withDefault(none()));
3272
3263
  var isSourceError = (u) => isTagged(u, "SourceError");
@@ -3383,9 +3374,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
3383
3374
  function schema(codec, path) {
3384
3375
  const codecStringTree = toCodecStringTree(codec);
3385
3376
  const encodedAst = toEncoded(codecStringTree.ast);
3386
- const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
3377
+ const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
3387
3378
  const localPath = typeof path === "string" ? [path] : path ?? [];
3388
- return make13((provider, pathPrefix) => {
3379
+ return make7((provider, pathPrefix) => {
3389
3380
  const fullPath = [...pathPrefix, ...localPath];
3390
3381
  return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
3391
3382
  const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
@@ -3501,4 +3492,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3501
3492
  ...argv
3502
3493
  ];
3503
3494
 
3504
- 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, take2, mapAccum, 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, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3495
+ export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, 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, empty2, 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, 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 };
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-y64ssczv.js";
28
+ } from "./chunk-ew07nt2d.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-z59pvcbk.js";
34
+ } from "./chunk-w9mxqrsp.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-j37p2y71.js";
39
+ } from "./chunk-e863b7v1.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-0wqkz371.js";
42
+ } from "./chunk-am57a75e.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-y64ssczv.js";
6
+ } from "./chunk-ew07nt2d.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;