@kitman-sh/cli 0.12.4 → 0.12.6
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.
- package/dist/{chunk-v1pa2dpe.js → chunk-23245qh7.js} +5 -5
- package/dist/{chunk-j373bdw1.js → chunk-7ncc3m3n.js} +7 -7
- package/dist/{chunk-rs0qassb.js → chunk-7tnm4jef.js} +3 -3
- package/dist/{chunk-nfc1scfz.js → chunk-892qrkb3.js} +14 -60
- package/dist/{chunk-7tf77mw4.js → chunk-8djn7v2p.js} +23 -23
- package/dist/{chunk-zbcxbph8.js → chunk-8sz25ptv.js} +4 -4
- package/dist/{chunk-gy9rf14f.js → chunk-bz4bp0q7.js} +3 -3
- package/dist/{chunk-j8j7ryjm.js → chunk-dcnn882c.js} +20 -20
- package/dist/{chunk-ywgv15tb.js → chunk-e711ebdj.js} +2 -2
- package/dist/{chunk-r3yamwdd.js → chunk-fen5480a.js} +10 -10
- package/dist/{chunk-vbv9x6d7.js → chunk-gezjwdpw.js} +117 -118
- package/dist/{chunk-6b91ftp6.js → chunk-gtsq369x.js} +7 -7
- package/dist/{chunk-9rvj15vf.js → chunk-jk5fp5cy.js} +28 -28
- package/dist/{chunk-gbakhy7m.js → chunk-k3ak93p1.js} +1 -1
- package/dist/{chunk-gq7y5v3e.js → chunk-mm2m3bys.js} +1 -1
- package/dist/{chunk-9ydwnxh9.js → chunk-n17dr5c1.js} +4 -4
- package/dist/{chunk-9hqbmnkh.js → chunk-rvpfyjtv.js} +1 -1
- package/dist/{chunk-q5w3v4k1.js → chunk-s8m2tzdr.js} +1 -1
- package/dist/{chunk-y1krmnbv.js → chunk-skqn4h13.js} +2 -2
- package/dist/{chunk-r4a6f4pa.js → chunk-v4wn0tz8.js} +6 -6
- package/dist/{chunk-bvpczkzf.js → chunk-vkchn89k.js} +10 -10
- package/dist/{chunk-74zwne6t.js → chunk-wberffvr.js} +63 -63
- package/dist/{chunk-zw3gf6r5.js → chunk-x3cc7dfc.js} +226 -40
- package/dist/{chunk-y1mhc7qd.js → chunk-x5t0c4g4.js} +9 -9
- package/dist/{chunk-trqvcc06.js → chunk-y7vjk8vv.js} +31 -174
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -186,6 +186,7 @@ import {
|
|
|
186
186
|
mapEager,
|
|
187
187
|
flatMapEager,
|
|
188
188
|
catchEager,
|
|
189
|
+
fromInputUnsafe2,
|
|
189
190
|
Pointer,
|
|
190
191
|
passthrough,
|
|
191
192
|
transformEffect,
|
|
@@ -201,7 +202,7 @@ import {
|
|
|
201
202
|
String4,
|
|
202
203
|
toCodecStringTree,
|
|
203
204
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
205
|
+
} from "./chunk-x3cc7dfc.js";
|
|
205
206
|
|
|
206
207
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
208
|
var headUnsafe = (self) => {
|
|
@@ -250,150 +251,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
251
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
252
|
};
|
|
252
253
|
|
|
253
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
254
|
-
var BigInt2 = globalThis.BigInt;
|
|
255
|
-
var toNumber = (b) => {
|
|
256
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
257
|
-
return none();
|
|
258
|
-
}
|
|
259
|
-
return some(Number(b));
|
|
260
|
-
};
|
|
261
|
-
|
|
262
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
263
|
-
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
264
|
-
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
265
|
-
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
266
|
-
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
267
|
-
var decimalUnits = [{
|
|
268
|
-
symbol: "B",
|
|
269
|
-
factor: bigint1,
|
|
270
|
-
names: ["B", "byte", "bytes"]
|
|
271
|
-
}, {
|
|
272
|
-
symbol: "kB",
|
|
273
|
-
factor: decimalBase,
|
|
274
|
-
names: ["kB", "kilobyte", "kilobytes"]
|
|
275
|
-
}, {
|
|
276
|
-
symbol: "MB",
|
|
277
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
278
|
-
names: ["MB", "megabyte", "megabytes"]
|
|
279
|
-
}, {
|
|
280
|
-
symbol: "GB",
|
|
281
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
282
|
-
names: ["GB", "gigabyte", "gigabytes"]
|
|
283
|
-
}, {
|
|
284
|
-
symbol: "TB",
|
|
285
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
286
|
-
names: ["TB", "terabyte", "terabytes"]
|
|
287
|
-
}, {
|
|
288
|
-
symbol: "PB",
|
|
289
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
290
|
-
names: ["PB", "petabyte", "petabytes"]
|
|
291
|
-
}, {
|
|
292
|
-
symbol: "EB",
|
|
293
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
294
|
-
names: ["EB", "exabyte", "exabytes"]
|
|
295
|
-
}, {
|
|
296
|
-
symbol: "ZB",
|
|
297
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
298
|
-
names: ["ZB", "zettabyte", "zettabytes"]
|
|
299
|
-
}, {
|
|
300
|
-
symbol: "YB",
|
|
301
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
302
|
-
names: ["YB", "yottabyte", "yottabytes"]
|
|
303
|
-
}, {
|
|
304
|
-
symbol: "RB",
|
|
305
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
306
|
-
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
307
|
-
}, {
|
|
308
|
-
symbol: "QB",
|
|
309
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
310
|
-
names: ["QB", "quettabyte", "quettabytes"]
|
|
311
|
-
}];
|
|
312
|
-
var binaryUnits = [decimalUnits[0], {
|
|
313
|
-
symbol: "KiB",
|
|
314
|
-
factor: binaryBase,
|
|
315
|
-
names: ["KiB", "kibibyte", "kibibytes"]
|
|
316
|
-
}, {
|
|
317
|
-
symbol: "MiB",
|
|
318
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
319
|
-
names: ["MiB", "mebibyte", "mebibytes"]
|
|
320
|
-
}, {
|
|
321
|
-
symbol: "GiB",
|
|
322
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
323
|
-
names: ["GiB", "gibibyte", "gibibytes"]
|
|
324
|
-
}, {
|
|
325
|
-
symbol: "TiB",
|
|
326
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
327
|
-
names: ["TiB", "tebibyte", "tebibytes"]
|
|
328
|
-
}, {
|
|
329
|
-
symbol: "PiB",
|
|
330
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
331
|
-
names: ["PiB", "pebibyte", "pebibytes"]
|
|
332
|
-
}, {
|
|
333
|
-
symbol: "EiB",
|
|
334
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
335
|
-
names: ["EiB", "exbibyte", "exbibytes"]
|
|
336
|
-
}, {
|
|
337
|
-
symbol: "ZiB",
|
|
338
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
339
|
-
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
340
|
-
}, {
|
|
341
|
-
symbol: "YiB",
|
|
342
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
343
|
-
names: ["YiB", "yobibyte", "yobibytes"]
|
|
344
|
-
}];
|
|
345
|
-
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
346
|
-
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
347
|
-
var make = (value) => value;
|
|
348
|
-
var invalid = (message) => {
|
|
349
|
-
throw new Error(`Invalid ByteSize: ${message}`);
|
|
350
|
-
};
|
|
351
|
-
var fromNumber = (input) => {
|
|
352
|
-
if (!Number.isSafeInteger(input) || input < 0) {
|
|
353
|
-
return invalid(`expected a non-negative safe integer, received ${input}`);
|
|
354
|
-
}
|
|
355
|
-
return make(BigInt(input));
|
|
356
|
-
};
|
|
357
|
-
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
358
|
-
var scaleDecimal = (quantity, factor) => {
|
|
359
|
-
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
360
|
-
if (match === null)
|
|
361
|
-
return;
|
|
362
|
-
const fraction = match[2] ?? "";
|
|
363
|
-
const numerator = BigInt(match[1] + fraction) * factor;
|
|
364
|
-
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
365
|
-
if (shift >= 0)
|
|
366
|
-
return numerator * BigInt(10) ** BigInt(shift);
|
|
367
|
-
const scale = BigInt(10) ** BigInt(-shift);
|
|
368
|
-
return numerator % scale === bigint0 ? numerator / scale : undefined;
|
|
369
|
-
};
|
|
370
|
-
var fromStringUnsafe = (input) => {
|
|
371
|
-
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
372
|
-
if (match === null)
|
|
373
|
-
return invalid(`unsupported syntax ${JSON.stringify(input)}`);
|
|
374
|
-
const unit = unitsByName.get(match[2]);
|
|
375
|
-
if (unit === undefined)
|
|
376
|
-
return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
377
|
-
const value = scaleDecimal(match[1], unit.factor);
|
|
378
|
-
if (value === undefined)
|
|
379
|
-
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
380
|
-
return make(value);
|
|
381
|
-
};
|
|
382
|
-
var fromInputUnsafe2 = (input) => {
|
|
383
|
-
switch (typeof input) {
|
|
384
|
-
case "bigint":
|
|
385
|
-
if (input < bigint0)
|
|
386
|
-
return invalid(`expected a non-negative bigint, received ${input}`);
|
|
387
|
-
return make(input);
|
|
388
|
-
case "number":
|
|
389
|
-
return fromNumber(input);
|
|
390
|
-
case "string":
|
|
391
|
-
return fromStringUnsafe(input);
|
|
392
|
-
}
|
|
393
|
-
return invalid(`unsupported input ${input}`);
|
|
394
|
-
};
|
|
395
|
-
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
396
|
-
|
|
397
254
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
398
255
|
var join = fiberJoin;
|
|
399
256
|
var interrupt = fiberInterrupt;
|
|
@@ -946,7 +803,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
946
803
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
947
804
|
var DIRECTORY_CONCURRENCY = 16;
|
|
948
805
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
949
|
-
var
|
|
806
|
+
var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
950
807
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
951
808
|
if (compiled.initial.size === 0) {
|
|
952
809
|
return [];
|
|
@@ -1124,7 +981,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
1124
981
|
|
|
1125
982
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
1126
983
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
1127
|
-
var
|
|
984
|
+
var make2 = makeLatch;
|
|
1128
985
|
|
|
1129
986
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
1130
987
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -1138,7 +995,7 @@ var MutableRefProto = {
|
|
|
1138
995
|
};
|
|
1139
996
|
}
|
|
1140
997
|
};
|
|
1141
|
-
var
|
|
998
|
+
var make7 = (value) => {
|
|
1142
999
|
const ref = Object.create(MutableRefProto);
|
|
1143
1000
|
ref.current = value;
|
|
1144
1001
|
return ref;
|
|
@@ -1150,7 +1007,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1150
1007
|
|
|
1151
1008
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1152
1009
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1153
|
-
var
|
|
1010
|
+
var make3 = () => ({
|
|
1154
1011
|
head: undefined,
|
|
1155
1012
|
tail: undefined,
|
|
1156
1013
|
length: 0
|
|
@@ -1299,8 +1156,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1299
1156
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1300
1157
|
var TypeId3 = "~effect/PubSub";
|
|
1301
1158
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1302
|
-
var
|
|
1303
|
-
var unbounded = (options) =>
|
|
1159
|
+
var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1160
|
+
var unbounded = (options) => make4({
|
|
1304
1161
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1305
1162
|
strategy: () => new DroppingStrategy
|
|
1306
1163
|
});
|
|
@@ -1394,7 +1251,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1394
1251
|
subscribers.delete(subscription);
|
|
1395
1252
|
}
|
|
1396
1253
|
};
|
|
1397
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
1254
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1398
1255
|
class UnboundedPubSub {
|
|
1399
1256
|
publisherHead = {
|
|
1400
1257
|
value: AbsentValue,
|
|
@@ -1811,12 +1668,12 @@ var QueueProto = {
|
|
|
1811
1668
|
};
|
|
1812
1669
|
}
|
|
1813
1670
|
};
|
|
1814
|
-
var
|
|
1671
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1815
1672
|
const self = Object.create(QueueProto);
|
|
1816
1673
|
self.dispatcher = fiber.currentDispatcher;
|
|
1817
1674
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1818
1675
|
self.strategy = options?.strategy ?? "suspend";
|
|
1819
|
-
self.messages =
|
|
1676
|
+
self.messages = make3();
|
|
1820
1677
|
self.scheduleRunning = false;
|
|
1821
1678
|
self.state = {
|
|
1822
1679
|
_tag: "Open",
|
|
@@ -1826,14 +1683,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1826
1683
|
};
|
|
1827
1684
|
return succeed2(self);
|
|
1828
1685
|
});
|
|
1829
|
-
var bounded = (capacity) =>
|
|
1686
|
+
var bounded = (capacity) => make8({
|
|
1830
1687
|
capacity
|
|
1831
1688
|
});
|
|
1832
|
-
var sliding = (capacity) =>
|
|
1689
|
+
var sliding = (capacity) => make8({
|
|
1833
1690
|
capacity,
|
|
1834
1691
|
strategy: "sliding"
|
|
1835
1692
|
});
|
|
1836
|
-
var unbounded2 = () =>
|
|
1693
|
+
var unbounded2 = () => make8();
|
|
1837
1694
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1838
1695
|
var offerUnsafe = (self, message) => {
|
|
1839
1696
|
if (self.state._tag !== "Open") {
|
|
@@ -2259,7 +2116,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2259
2116
|
return onError(pull, onCause);
|
|
2260
2117
|
}));
|
|
2261
2118
|
var toTransform = (channel) => channel.transform;
|
|
2262
|
-
var asyncQueue = (scope, f, options) =>
|
|
2119
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2263
2120
|
capacity: options?.bufferSize,
|
|
2264
2121
|
strategy: options?.strategy
|
|
2265
2122
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2300,7 +2157,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2300
2157
|
}));
|
|
2301
2158
|
var readableStreamToPullUnsafe = (options) => {
|
|
2302
2159
|
const reader = options.readable.getReader();
|
|
2303
|
-
const exit = options.exit ??
|
|
2160
|
+
const exit = options.exit ?? make7(undefined);
|
|
2304
2161
|
const pull = suspend3(() => {
|
|
2305
2162
|
if (exit.current)
|
|
2306
2163
|
return exit.current;
|
|
@@ -2468,7 +2325,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2468
2325
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2469
2326
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2470
2327
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2471
|
-
const doneLatch = yield*
|
|
2328
|
+
const doneLatch = yield* make2(true);
|
|
2472
2329
|
const fibers = new Map;
|
|
2473
2330
|
const queue = yield* bounded(bufferSize);
|
|
2474
2331
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2805,7 +2662,7 @@ class RcRefImpl {
|
|
|
2805
2662
|
this.idleTimeToLive = idleTimeToLive;
|
|
2806
2663
|
}
|
|
2807
2664
|
}
|
|
2808
|
-
var
|
|
2665
|
+
var make5 = (options) => withFiber2((fiber) => {
|
|
2809
2666
|
const context = fiber.context;
|
|
2810
2667
|
const scope = get4(context, Scope);
|
|
2811
2668
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -2914,7 +2771,7 @@ var release = (self, state) => {
|
|
|
2914
2771
|
};
|
|
2915
2772
|
|
|
2916
2773
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2917
|
-
var
|
|
2774
|
+
var make9 = make5;
|
|
2918
2775
|
var get3 = get2;
|
|
2919
2776
|
|
|
2920
2777
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2926,7 +2783,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2926
2783
|
var toChannel2 = (stream) => stream.channel;
|
|
2927
2784
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2928
2785
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2929
|
-
var
|
|
2786
|
+
var make10 = (...values) => fromArray2(values);
|
|
2930
2787
|
var suspend = (stream) => {
|
|
2931
2788
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2932
2789
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3091,10 +2948,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3091
2948
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3092
2949
|
var TypeId10 = "~effect/FileSystem";
|
|
3093
2950
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3094
|
-
var
|
|
2951
|
+
var make11 = (impl) => FileSystem.of({
|
|
3095
2952
|
...impl,
|
|
3096
2953
|
[TypeId10]: TypeId10,
|
|
3097
|
-
glob:
|
|
2954
|
+
glob: make(impl),
|
|
3098
2955
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3099
2956
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
3100
2957
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3151,7 +3008,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3151
3008
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3152
3009
|
var TypeId11 = "~effect/Path";
|
|
3153
3010
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3154
|
-
var
|
|
3011
|
+
var make12 = (impl) => Path.of({
|
|
3155
3012
|
...impl,
|
|
3156
3013
|
[TypeId11]: TypeId11,
|
|
3157
3014
|
resolveWithin(root, input) {
|
|
@@ -3226,7 +3083,7 @@ function makeProvider(load, mapInput) {
|
|
|
3226
3083
|
function makeSource(get, transform) {
|
|
3227
3084
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3228
3085
|
}
|
|
3229
|
-
function
|
|
3086
|
+
function make6(get) {
|
|
3230
3087
|
return makeSource(get, identityPath);
|
|
3231
3088
|
}
|
|
3232
3089
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3235,7 +3092,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3235
3092
|
function fromEnvRecord(env, options) {
|
|
3236
3093
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3237
3094
|
const trie = buildEnvTrie(env);
|
|
3238
|
-
return
|
|
3095
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3239
3096
|
}
|
|
3240
3097
|
function fromEnv(options) {
|
|
3241
3098
|
const env = options?.env ?? {
|
|
@@ -3317,7 +3174,7 @@ var Proto2 = {
|
|
|
3317
3174
|
};
|
|
3318
3175
|
}
|
|
3319
3176
|
};
|
|
3320
|
-
function
|
|
3177
|
+
function make13(evaluator) {
|
|
3321
3178
|
const self = Object.create(Proto2);
|
|
3322
3179
|
self.evaluator = evaluator;
|
|
3323
3180
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3325,14 +3182,14 @@ function make14(evaluator) {
|
|
|
3325
3182
|
}
|
|
3326
3183
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3327
3184
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3328
|
-
return
|
|
3185
|
+
return make13((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3329
3186
|
});
|
|
3330
3187
|
function all(arg) {
|
|
3331
3188
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3332
|
-
return
|
|
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));
|
|
3333
3190
|
}
|
|
3334
3191
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3335
|
-
return
|
|
3192
|
+
return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3336
3193
|
});
|
|
3337
3194
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3338
3195
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3451,7 +3308,7 @@ function schema(codec, path) {
|
|
|
3451
3308
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3452
3309
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3453
3310
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3454
|
-
return
|
|
3311
|
+
return make13((provider, pathPrefix) => {
|
|
3455
3312
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3456
3313
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3457
3314
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3566,4 +3423,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3566
3423
|
...argv
|
|
3567
3424
|
];
|
|
3568
3425
|
|
|
3569
|
-
export { map, makeEquivalence,
|
|
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 };
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-e711ebdj.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-bz4bp0q7.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-8sz25ptv.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-8djn7v2p.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|