@kitman-sh/cli 0.12.0-rc.7 → 0.12.0-rc.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.
- package/dist/{chunk-15geyg2d.js → chunk-3cgshf16.js} +98 -101
- package/dist/{chunk-j5t5nye5.js → chunk-3kxwb7qn.js} +7 -7
- package/dist/{chunk-bheg4ybe.js → chunk-6pqxsnk1.js} +22 -23
- package/dist/{chunk-e4an66v2.js → chunk-7959aeck.js} +5 -5
- package/dist/{chunk-xwya1er0.js → chunk-892qrkb3.js} +14 -60
- package/dist/{chunk-0346hwh6.js → chunk-8sz25ptv.js} +4 -5
- package/dist/{chunk-1t12wvv1.js → chunk-9c9vrbh4.js} +205 -216
- package/dist/{chunk-8twjqszj.js → chunk-9q7qc1dg.js} +1 -1
- package/dist/{chunk-z450wa10.js → chunk-bz4bp0q7.js} +3 -4
- package/dist/{chunk-znar1th3.js → chunk-d8qcmqh5.js} +4 -4
- package/dist/{chunk-2e91ymwn.js → chunk-det0tmx7.js} +1 -1
- package/dist/{chunk-xe8qf2xy.js → chunk-dh09wyed.js} +127 -129
- package/dist/{chunk-ewhzaqp3.js → chunk-e711ebdj.js} +2 -2
- package/dist/{chunk-wc2kba4z.js → chunk-ey4mf341.js} +6 -7
- package/dist/{chunk-qrm334c6.js → chunk-jg8n8z0z.js} +4 -4
- package/dist/{chunk-4w4spvb1.js → chunk-jwc8bdga.js} +5 -5
- package/dist/{chunk-nzjb36ad.js → chunk-mm2m3bys.js} +1 -1
- package/dist/{chunk-r5sw3fe0.js → chunk-mmpcdj8f.js} +10 -12
- package/dist/{chunk-0qz10ek8.js → chunk-s8m2tzdr.js} +4 -4
- package/dist/{chunk-xcf887a4.js → chunk-scb6qgy2.js} +47 -49
- package/dist/{chunk-5j848ckb.js → chunk-skqn4h13.js} +2 -2
- package/dist/{chunk-56knbdt6.js → chunk-vkchn89k.js} +23 -25
- package/dist/{chunk-pd2vz4bm.js → chunk-vrms6e1m.js} +13 -15
- package/dist/{chunk-vtfwjhzh.js → chunk-x3cc7dfc.js} +379 -63
- package/dist/{chunk-gspfm7qh.js → chunk-y7vjk8vv.js} +31 -165
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-c6rbt85q.js +0 -141
|
@@ -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,141 +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/ByteSize.js
|
|
254
|
-
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
255
|
-
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
256
|
-
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
257
|
-
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
258
|
-
var decimalUnits = [{
|
|
259
|
-
symbol: "B",
|
|
260
|
-
factor: bigint1,
|
|
261
|
-
names: ["B", "byte", "bytes"]
|
|
262
|
-
}, {
|
|
263
|
-
symbol: "kB",
|
|
264
|
-
factor: decimalBase,
|
|
265
|
-
names: ["kB", "kilobyte", "kilobytes"]
|
|
266
|
-
}, {
|
|
267
|
-
symbol: "MB",
|
|
268
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
269
|
-
names: ["MB", "megabyte", "megabytes"]
|
|
270
|
-
}, {
|
|
271
|
-
symbol: "GB",
|
|
272
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
273
|
-
names: ["GB", "gigabyte", "gigabytes"]
|
|
274
|
-
}, {
|
|
275
|
-
symbol: "TB",
|
|
276
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
277
|
-
names: ["TB", "terabyte", "terabytes"]
|
|
278
|
-
}, {
|
|
279
|
-
symbol: "PB",
|
|
280
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
281
|
-
names: ["PB", "petabyte", "petabytes"]
|
|
282
|
-
}, {
|
|
283
|
-
symbol: "EB",
|
|
284
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
285
|
-
names: ["EB", "exabyte", "exabytes"]
|
|
286
|
-
}, {
|
|
287
|
-
symbol: "ZB",
|
|
288
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
289
|
-
names: ["ZB", "zettabyte", "zettabytes"]
|
|
290
|
-
}, {
|
|
291
|
-
symbol: "YB",
|
|
292
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
293
|
-
names: ["YB", "yottabyte", "yottabytes"]
|
|
294
|
-
}, {
|
|
295
|
-
symbol: "RB",
|
|
296
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
297
|
-
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
298
|
-
}, {
|
|
299
|
-
symbol: "QB",
|
|
300
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
301
|
-
names: ["QB", "quettabyte", "quettabytes"]
|
|
302
|
-
}];
|
|
303
|
-
var binaryUnits = [decimalUnits[0], {
|
|
304
|
-
symbol: "KiB",
|
|
305
|
-
factor: binaryBase,
|
|
306
|
-
names: ["KiB", "kibibyte", "kibibytes"]
|
|
307
|
-
}, {
|
|
308
|
-
symbol: "MiB",
|
|
309
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
310
|
-
names: ["MiB", "mebibyte", "mebibytes"]
|
|
311
|
-
}, {
|
|
312
|
-
symbol: "GiB",
|
|
313
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
314
|
-
names: ["GiB", "gibibyte", "gibibytes"]
|
|
315
|
-
}, {
|
|
316
|
-
symbol: "TiB",
|
|
317
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
318
|
-
names: ["TiB", "tebibyte", "tebibytes"]
|
|
319
|
-
}, {
|
|
320
|
-
symbol: "PiB",
|
|
321
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
322
|
-
names: ["PiB", "pebibyte", "pebibytes"]
|
|
323
|
-
}, {
|
|
324
|
-
symbol: "EiB",
|
|
325
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
326
|
-
names: ["EiB", "exbibyte", "exbibytes"]
|
|
327
|
-
}, {
|
|
328
|
-
symbol: "ZiB",
|
|
329
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
330
|
-
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
331
|
-
}, {
|
|
332
|
-
symbol: "YiB",
|
|
333
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
334
|
-
names: ["YiB", "yobibyte", "yobibytes"]
|
|
335
|
-
}];
|
|
336
|
-
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
337
|
-
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
338
|
-
var make = (value) => value;
|
|
339
|
-
var invalid = (message) => {
|
|
340
|
-
throw new Error(`Invalid ByteSize: ${message}`);
|
|
341
|
-
};
|
|
342
|
-
var fromNumber = (input) => {
|
|
343
|
-
if (!Number.isSafeInteger(input) || input < 0) {
|
|
344
|
-
return invalid(`expected a non-negative safe integer, received ${input}`);
|
|
345
|
-
}
|
|
346
|
-
return make(BigInt(input));
|
|
347
|
-
};
|
|
348
|
-
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
349
|
-
var scaleDecimal = (quantity, factor) => {
|
|
350
|
-
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
351
|
-
if (match === null)
|
|
352
|
-
return;
|
|
353
|
-
const fraction = match[2] ?? "";
|
|
354
|
-
const numerator = BigInt(match[1] + fraction) * factor;
|
|
355
|
-
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
356
|
-
if (shift >= 0)
|
|
357
|
-
return numerator * BigInt(10) ** BigInt(shift);
|
|
358
|
-
const scale = BigInt(10) ** BigInt(-shift);
|
|
359
|
-
return numerator % scale === bigint0 ? numerator / scale : undefined;
|
|
360
|
-
};
|
|
361
|
-
var fromStringUnsafe = (input) => {
|
|
362
|
-
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
363
|
-
if (match === null)
|
|
364
|
-
return invalid(`unsupported syntax ${JSON.stringify(input)}`);
|
|
365
|
-
const unit = unitsByName.get(match[2]);
|
|
366
|
-
if (unit === undefined)
|
|
367
|
-
return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
368
|
-
const value = scaleDecimal(match[1], unit.factor);
|
|
369
|
-
if (value === undefined)
|
|
370
|
-
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
371
|
-
return make(value);
|
|
372
|
-
};
|
|
373
|
-
var fromInputUnsafe2 = (input) => {
|
|
374
|
-
switch (typeof input) {
|
|
375
|
-
case "bigint":
|
|
376
|
-
if (input < bigint0)
|
|
377
|
-
return invalid(`expected a non-negative bigint, received ${input}`);
|
|
378
|
-
return make(input);
|
|
379
|
-
case "number":
|
|
380
|
-
return fromNumber(input);
|
|
381
|
-
case "string":
|
|
382
|
-
return fromStringUnsafe(input);
|
|
383
|
-
}
|
|
384
|
-
return invalid(`unsupported input ${input}`);
|
|
385
|
-
};
|
|
386
|
-
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
387
|
-
|
|
388
254
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
389
255
|
var join = fiberJoin;
|
|
390
256
|
var interrupt = fiberInterrupt;
|
|
@@ -937,7 +803,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
937
803
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
938
804
|
var DIRECTORY_CONCURRENCY = 16;
|
|
939
805
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
940
|
-
var
|
|
806
|
+
var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
941
807
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
942
808
|
if (compiled.initial.size === 0) {
|
|
943
809
|
return [];
|
|
@@ -1115,7 +981,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
1115
981
|
|
|
1116
982
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
1117
983
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
1118
|
-
var
|
|
984
|
+
var make2 = makeLatch;
|
|
1119
985
|
|
|
1120
986
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
1121
987
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -1129,7 +995,7 @@ var MutableRefProto = {
|
|
|
1129
995
|
};
|
|
1130
996
|
}
|
|
1131
997
|
};
|
|
1132
|
-
var
|
|
998
|
+
var make7 = (value) => {
|
|
1133
999
|
const ref = Object.create(MutableRefProto);
|
|
1134
1000
|
ref.current = value;
|
|
1135
1001
|
return ref;
|
|
@@ -1141,7 +1007,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1141
1007
|
|
|
1142
1008
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1143
1009
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1144
|
-
var
|
|
1010
|
+
var make3 = () => ({
|
|
1145
1011
|
head: undefined,
|
|
1146
1012
|
tail: undefined,
|
|
1147
1013
|
length: 0
|
|
@@ -1290,8 +1156,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1156
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1157
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1158
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var
|
|
1294
|
-
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({
|
|
1295
1161
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1162
|
strategy: () => new DroppingStrategy
|
|
1297
1163
|
});
|
|
@@ -1385,7 +1251,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1251
|
subscribers.delete(subscription);
|
|
1386
1252
|
}
|
|
1387
1253
|
};
|
|
1388
|
-
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);
|
|
1389
1255
|
class UnboundedPubSub {
|
|
1390
1256
|
publisherHead = {
|
|
1391
1257
|
value: AbsentValue,
|
|
@@ -1802,12 +1668,12 @@ var QueueProto = {
|
|
|
1802
1668
|
};
|
|
1803
1669
|
}
|
|
1804
1670
|
};
|
|
1805
|
-
var
|
|
1671
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1806
1672
|
const self = Object.create(QueueProto);
|
|
1807
1673
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1674
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1809
1675
|
self.strategy = options?.strategy ?? "suspend";
|
|
1810
|
-
self.messages =
|
|
1676
|
+
self.messages = make3();
|
|
1811
1677
|
self.scheduleRunning = false;
|
|
1812
1678
|
self.state = {
|
|
1813
1679
|
_tag: "Open",
|
|
@@ -1817,14 +1683,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1817
1683
|
};
|
|
1818
1684
|
return succeed2(self);
|
|
1819
1685
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1686
|
+
var bounded = (capacity) => make8({
|
|
1821
1687
|
capacity
|
|
1822
1688
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1689
|
+
var sliding = (capacity) => make8({
|
|
1824
1690
|
capacity,
|
|
1825
1691
|
strategy: "sliding"
|
|
1826
1692
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1693
|
+
var unbounded2 = () => make8();
|
|
1828
1694
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1695
|
var offerUnsafe = (self, message) => {
|
|
1830
1696
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2116,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2116
|
return onError(pull, onCause);
|
|
2251
2117
|
}));
|
|
2252
2118
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2119
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2254
2120
|
capacity: options?.bufferSize,
|
|
2255
2121
|
strategy: options?.strategy
|
|
2256
2122
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2157,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2157
|
}));
|
|
2292
2158
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2159
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2160
|
+
const exit = options.exit ?? make7(undefined);
|
|
2295
2161
|
const pull = suspend3(() => {
|
|
2296
2162
|
if (exit.current)
|
|
2297
2163
|
return exit.current;
|
|
@@ -2459,7 +2325,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2459
2325
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2460
2326
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2461
2327
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2462
|
-
const doneLatch = yield*
|
|
2328
|
+
const doneLatch = yield* make2(true);
|
|
2463
2329
|
const fibers = new Map;
|
|
2464
2330
|
const queue = yield* bounded(bufferSize);
|
|
2465
2331
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2796,7 +2662,7 @@ class RcRefImpl {
|
|
|
2796
2662
|
this.idleTimeToLive = idleTimeToLive;
|
|
2797
2663
|
}
|
|
2798
2664
|
}
|
|
2799
|
-
var
|
|
2665
|
+
var make5 = (options) => withFiber2((fiber) => {
|
|
2800
2666
|
const context = fiber.context;
|
|
2801
2667
|
const scope = get4(context, Scope);
|
|
2802
2668
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -2905,7 +2771,7 @@ var release = (self, state) => {
|
|
|
2905
2771
|
};
|
|
2906
2772
|
|
|
2907
2773
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
-
var
|
|
2774
|
+
var make9 = make5;
|
|
2909
2775
|
var get3 = get2;
|
|
2910
2776
|
|
|
2911
2777
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2917,7 +2783,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2917
2783
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2784
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2785
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2786
|
+
var make10 = (...values) => fromArray2(values);
|
|
2921
2787
|
var suspend = (stream) => {
|
|
2922
2788
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2789
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3082,10 +2948,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3082
2948
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3083
2949
|
var TypeId10 = "~effect/FileSystem";
|
|
3084
2950
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3085
|
-
var
|
|
2951
|
+
var make11 = (impl) => FileSystem.of({
|
|
3086
2952
|
...impl,
|
|
3087
2953
|
[TypeId10]: TypeId10,
|
|
3088
|
-
glob:
|
|
2954
|
+
glob: make(impl),
|
|
3089
2955
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3090
2956
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
3091
2957
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3142,7 +3008,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3142
3008
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3143
3009
|
var TypeId11 = "~effect/Path";
|
|
3144
3010
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3145
|
-
var
|
|
3011
|
+
var make12 = (impl) => Path.of({
|
|
3146
3012
|
...impl,
|
|
3147
3013
|
[TypeId11]: TypeId11,
|
|
3148
3014
|
resolveWithin(root, input) {
|
|
@@ -3217,7 +3083,7 @@ function makeProvider(load, mapInput) {
|
|
|
3217
3083
|
function makeSource(get, transform) {
|
|
3218
3084
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3219
3085
|
}
|
|
3220
|
-
function
|
|
3086
|
+
function make6(get) {
|
|
3221
3087
|
return makeSource(get, identityPath);
|
|
3222
3088
|
}
|
|
3223
3089
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3226,7 +3092,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3226
3092
|
function fromEnvRecord(env, options) {
|
|
3227
3093
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3228
3094
|
const trie = buildEnvTrie(env);
|
|
3229
|
-
return
|
|
3095
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3230
3096
|
}
|
|
3231
3097
|
function fromEnv(options) {
|
|
3232
3098
|
const env = options?.env ?? {
|
|
@@ -3308,7 +3174,7 @@ var Proto2 = {
|
|
|
3308
3174
|
};
|
|
3309
3175
|
}
|
|
3310
3176
|
};
|
|
3311
|
-
function
|
|
3177
|
+
function make13(evaluator) {
|
|
3312
3178
|
const self = Object.create(Proto2);
|
|
3313
3179
|
self.evaluator = evaluator;
|
|
3314
3180
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3316,14 +3182,14 @@ function make14(evaluator) {
|
|
|
3316
3182
|
}
|
|
3317
3183
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3318
3184
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3319
|
-
return
|
|
3185
|
+
return make13((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3320
3186
|
});
|
|
3321
3187
|
function all(arg) {
|
|
3322
3188
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3323
|
-
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));
|
|
3324
3190
|
}
|
|
3325
3191
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3326
|
-
return
|
|
3192
|
+
return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3327
3193
|
});
|
|
3328
3194
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3329
3195
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3442,7 +3308,7 @@ function schema(codec, path) {
|
|
|
3442
3308
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3443
3309
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3444
3310
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3445
|
-
return
|
|
3311
|
+
return make13((provider, pathPrefix) => {
|
|
3446
3312
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3447
3313
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3448
3314
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3557,4 +3423,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3557
3423
|
...argv
|
|
3558
3424
|
];
|
|
3559
3425
|
|
|
3560
|
-
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-scb6qgy2.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|
package/package.json
CHANGED
package/dist/chunk-c6rbt85q.js
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import {
|
|
3
|
-
isString2,
|
|
4
|
-
isNumber2,
|
|
5
|
-
isBoolean2,
|
|
6
|
-
isBigInt2,
|
|
7
|
-
isSymbol2,
|
|
8
|
-
isFunction2,
|
|
9
|
-
isUndefined2,
|
|
10
|
-
isObjectOrArray
|
|
11
|
-
} from "./chunk-vtfwjhzh.js";
|
|
12
|
-
|
|
13
|
-
// packages/core/src/runtime-type.ts
|
|
14
|
-
var UnsafeJsonObjectKeys = new Set(["__proto__", "constructor", "prototype"]);
|
|
15
|
-
function jsonDataError() {
|
|
16
|
-
throw new TypeError("Value is not JSON data");
|
|
17
|
-
}
|
|
18
|
-
function parseJsonValue(value, ancestors) {
|
|
19
|
-
if (value === null)
|
|
20
|
-
return null;
|
|
21
|
-
if (value === undefined)
|
|
22
|
-
return jsonDataError();
|
|
23
|
-
if (isString(value))
|
|
24
|
-
return String(value);
|
|
25
|
-
if (isNumber(value))
|
|
26
|
-
return Number.isFinite(value) ? Number(value) : jsonDataError();
|
|
27
|
-
if (isBoolean(value))
|
|
28
|
-
return Boolean(value);
|
|
29
|
-
if (value instanceof Date) {
|
|
30
|
-
const timestamp = Date.prototype.getTime.call(value);
|
|
31
|
-
return Number.isNaN(timestamp) ? jsonDataError() : Date.prototype.toISOString.call(value);
|
|
32
|
-
}
|
|
33
|
-
if (!isObject(value))
|
|
34
|
-
return jsonDataError();
|
|
35
|
-
if (ancestors.has(value))
|
|
36
|
-
throw new TypeError("JSON data must not contain cycles");
|
|
37
|
-
const prototype = Object.getPrototypeOf(value);
|
|
38
|
-
if (Array.isArray(value)) {
|
|
39
|
-
ancestors.add(value);
|
|
40
|
-
try {
|
|
41
|
-
const keys = Object.keys(value);
|
|
42
|
-
const hasNamedProperty = keys.some((key, index) => key !== String(index)) || Object.getOwnPropertySymbols(value).some((symbol) => Object.getOwnPropertyDescriptor(value, symbol)?.enumerable);
|
|
43
|
-
if (hasNamedProperty)
|
|
44
|
-
throw new TypeError("JSON arrays must not contain named properties");
|
|
45
|
-
if (keys.length !== value.length)
|
|
46
|
-
throw new TypeError("JSON arrays must not contain sparse slots");
|
|
47
|
-
const result = [];
|
|
48
|
-
for (const key of keys) {
|
|
49
|
-
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
50
|
-
if (descriptor === undefined || !("value" in descriptor))
|
|
51
|
-
throw new TypeError("JSON array entries must be data properties");
|
|
52
|
-
result.push(parseJsonValue(descriptor.value, ancestors));
|
|
53
|
-
}
|
|
54
|
-
return result;
|
|
55
|
-
} finally {
|
|
56
|
-
ancestors.delete(value);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (prototype !== Object.prototype && prototype !== null)
|
|
60
|
-
return jsonDataError();
|
|
61
|
-
ancestors.add(value);
|
|
62
|
-
try {
|
|
63
|
-
const result = Object.create(null);
|
|
64
|
-
for (const key of Object.keys(value)) {
|
|
65
|
-
if (UnsafeJsonObjectKeys.has(key))
|
|
66
|
-
throw new TypeError(`Unsafe JSON object key: ${key}`);
|
|
67
|
-
const descriptor = Object.getOwnPropertyDescriptor(value, key);
|
|
68
|
-
if (descriptor === undefined || !("value" in descriptor))
|
|
69
|
-
throw new TypeError("JSON object properties must be data properties");
|
|
70
|
-
if (descriptor.value !== undefined)
|
|
71
|
-
result[key] = parseJsonValue(descriptor.value, ancestors);
|
|
72
|
-
}
|
|
73
|
-
return result;
|
|
74
|
-
} finally {
|
|
75
|
-
ancestors.delete(value);
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
function toJsonValue(value) {
|
|
79
|
-
return parseJsonValue(value, new WeakSet);
|
|
80
|
-
}
|
|
81
|
-
function isJsonArray(value) {
|
|
82
|
-
return Array.isArray(value);
|
|
83
|
-
}
|
|
84
|
-
function isOneOf(values, value) {
|
|
85
|
-
return values.some((item) => Object.is(item, value));
|
|
86
|
-
}
|
|
87
|
-
function isKeyOf(record, key) {
|
|
88
|
-
return Object.hasOwn(record, key);
|
|
89
|
-
}
|
|
90
|
-
function toJsonObject(value) {
|
|
91
|
-
const parsed = toJsonValue(value);
|
|
92
|
-
if (parsed === null || isJsonArray(parsed) || !isObject(parsed))
|
|
93
|
-
throw new TypeError("Value is not a JSON object");
|
|
94
|
-
return parsed;
|
|
95
|
-
}
|
|
96
|
-
function isBigInt(value) {
|
|
97
|
-
return isBigInt2(value);
|
|
98
|
-
}
|
|
99
|
-
function isBoolean(value) {
|
|
100
|
-
return isBoolean2(value);
|
|
101
|
-
}
|
|
102
|
-
function isFunction(value) {
|
|
103
|
-
return isFunction2(value);
|
|
104
|
-
}
|
|
105
|
-
function isNumber(value) {
|
|
106
|
-
return isNumber2(value);
|
|
107
|
-
}
|
|
108
|
-
function isObject(value) {
|
|
109
|
-
return isObjectOrArray(value);
|
|
110
|
-
}
|
|
111
|
-
function isJsonObject(value) {
|
|
112
|
-
return isObject(value) && value !== null && !Array.isArray(value);
|
|
113
|
-
}
|
|
114
|
-
function isString(value) {
|
|
115
|
-
return isString2(value);
|
|
116
|
-
}
|
|
117
|
-
function isSymbol(value) {
|
|
118
|
-
return isSymbol2(value);
|
|
119
|
-
}
|
|
120
|
-
function isUndefined(value) {
|
|
121
|
-
return isUndefined2(value);
|
|
122
|
-
}
|
|
123
|
-
function kindOf(value) {
|
|
124
|
-
if (isString(value))
|
|
125
|
-
return "string";
|
|
126
|
-
if (isNumber(value))
|
|
127
|
-
return "number";
|
|
128
|
-
if (isBoolean(value))
|
|
129
|
-
return "boolean";
|
|
130
|
-
if (isBigInt(value))
|
|
131
|
-
return "bigint";
|
|
132
|
-
if (isSymbol(value))
|
|
133
|
-
return "symbol";
|
|
134
|
-
if (isUndefined(value))
|
|
135
|
-
return "undefined";
|
|
136
|
-
if (isFunction(value))
|
|
137
|
-
return "function";
|
|
138
|
-
return "object";
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export { toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean, isFunction, isNumber, isObject, isJsonObject, isString, isSymbol, isUndefined, kindOf };
|