@kitman-sh/cli 0.12.0-rc.8 → 0.12.1
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-dh09wyed.js → chunk-0367j54r.js} +42 -42
- package/dist/{chunk-y7vjk8vv.js → chunk-0h49y8gf.js} +165 -31
- package/dist/{chunk-3kxwb7qn.js → chunk-13yrey2v.js} +7 -7
- package/dist/{chunk-7959aeck.js → chunk-1wbdexzg.js} +14 -6
- package/dist/{chunk-jg8n8z0z.js → chunk-4d4n8qjs.js} +4 -4
- package/dist/{chunk-8sz25ptv.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-e711ebdj.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-6pqxsnk1.js → chunk-711r4pfw.js} +20 -20
- package/dist/{chunk-9q7qc1dg.js → chunk-adbzjs9g.js} +1 -1
- package/dist/{chunk-det0tmx7.js → chunk-beagq0pp.js} +27 -17
- package/dist/{chunk-9c9vrbh4.js → chunk-c7253rcg.js} +171 -132
- package/dist/{chunk-mmpcdj8f.js → chunk-c76ngzr6.js} +7 -7
- package/dist/{chunk-vkchn89k.js → chunk-cbpb2rww.js} +7 -7
- package/dist/{chunk-jwc8bdga.js → chunk-fs72937p.js} +5 -5
- package/dist/{chunk-mm2m3bys.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-bz4bp0q7.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-3cgshf16.js → chunk-hvwkpnv5.js} +24 -24
- package/dist/{chunk-ey4mf341.js → chunk-kvt8cr8m.js} +6 -6
- package/dist/{chunk-892qrkb3.js → chunk-mtkstrh3.js} +60 -14
- package/dist/{chunk-s8m2tzdr.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-vrms6e1m.js → chunk-rgby07sa.js} +4 -4
- package/dist/{chunk-scb6qgy2.js → chunk-xmdjysn2.js} +52 -24
- package/dist/{chunk-skqn4h13.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-d8qcmqh5.js → chunk-y39h1gzp.js} +4 -4
- package/dist/{chunk-x3cc7dfc.js → chunk-zw3gf6r5.js} +40 -226
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -186,7 +186,6 @@ import {
|
|
|
186
186
|
mapEager,
|
|
187
187
|
flatMapEager,
|
|
188
188
|
catchEager,
|
|
189
|
-
fromInputUnsafe2,
|
|
190
189
|
Pointer,
|
|
191
190
|
passthrough,
|
|
192
191
|
transformEffect,
|
|
@@ -202,7 +201,7 @@ import {
|
|
|
202
201
|
String4,
|
|
203
202
|
toCodecStringTree,
|
|
204
203
|
encodeUnknownJsonStringSync
|
|
205
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-zw3gf6r5.js";
|
|
206
205
|
|
|
207
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
208
207
|
var headUnsafe = (self) => {
|
|
@@ -251,6 +250,141 @@ var makeEquivalence = (equivalence) => {
|
|
|
251
250
|
return (self, that) => is(self, that) && is(that, self);
|
|
252
251
|
};
|
|
253
252
|
|
|
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
|
+
|
|
254
388
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
255
389
|
var join = fiberJoin;
|
|
256
390
|
var interrupt = fiberInterrupt;
|
|
@@ -803,7 +937,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
803
937
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
804
938
|
var DIRECTORY_CONCURRENCY = 16;
|
|
805
939
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
806
|
-
var
|
|
940
|
+
var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
807
941
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
808
942
|
if (compiled.initial.size === 0) {
|
|
809
943
|
return [];
|
|
@@ -981,7 +1115,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
981
1115
|
|
|
982
1116
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
983
1117
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
984
|
-
var
|
|
1118
|
+
var make3 = makeLatch;
|
|
985
1119
|
|
|
986
1120
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
987
1121
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -995,7 +1129,7 @@ var MutableRefProto = {
|
|
|
995
1129
|
};
|
|
996
1130
|
}
|
|
997
1131
|
};
|
|
998
|
-
var
|
|
1132
|
+
var make8 = (value) => {
|
|
999
1133
|
const ref = Object.create(MutableRefProto);
|
|
1000
1134
|
ref.current = value;
|
|
1001
1135
|
return ref;
|
|
@@ -1007,7 +1141,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1007
1141
|
|
|
1008
1142
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1009
1143
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1010
|
-
var
|
|
1144
|
+
var make4 = () => ({
|
|
1011
1145
|
head: undefined,
|
|
1012
1146
|
tail: undefined,
|
|
1013
1147
|
length: 0
|
|
@@ -1156,8 +1290,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1156
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1157
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1158
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1159
|
-
var
|
|
1160
|
-
var unbounded = (options) =>
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1294
|
+
var unbounded = (options) => make5({
|
|
1161
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1162
1296
|
strategy: () => new DroppingStrategy
|
|
1163
1297
|
});
|
|
@@ -1251,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1251
1385
|
subscribers.delete(subscription);
|
|
1252
1386
|
}
|
|
1253
1387
|
};
|
|
1254
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1255
1389
|
class UnboundedPubSub {
|
|
1256
1390
|
publisherHead = {
|
|
1257
1391
|
value: AbsentValue,
|
|
@@ -1668,12 +1802,12 @@ var QueueProto = {
|
|
|
1668
1802
|
};
|
|
1669
1803
|
}
|
|
1670
1804
|
};
|
|
1671
|
-
var
|
|
1805
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1672
1806
|
const self = Object.create(QueueProto);
|
|
1673
1807
|
self.dispatcher = fiber.currentDispatcher;
|
|
1674
1808
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1675
1809
|
self.strategy = options?.strategy ?? "suspend";
|
|
1676
|
-
self.messages =
|
|
1810
|
+
self.messages = make4();
|
|
1677
1811
|
self.scheduleRunning = false;
|
|
1678
1812
|
self.state = {
|
|
1679
1813
|
_tag: "Open",
|
|
@@ -1683,14 +1817,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1683
1817
|
};
|
|
1684
1818
|
return succeed2(self);
|
|
1685
1819
|
});
|
|
1686
|
-
var bounded = (capacity) =>
|
|
1820
|
+
var bounded = (capacity) => make9({
|
|
1687
1821
|
capacity
|
|
1688
1822
|
});
|
|
1689
|
-
var sliding = (capacity) =>
|
|
1823
|
+
var sliding = (capacity) => make9({
|
|
1690
1824
|
capacity,
|
|
1691
1825
|
strategy: "sliding"
|
|
1692
1826
|
});
|
|
1693
|
-
var unbounded2 = () =>
|
|
1827
|
+
var unbounded2 = () => make9();
|
|
1694
1828
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1695
1829
|
var offerUnsafe = (self, message) => {
|
|
1696
1830
|
if (self.state._tag !== "Open") {
|
|
@@ -2116,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2116
2250
|
return onError(pull, onCause);
|
|
2117
2251
|
}));
|
|
2118
2252
|
var toTransform = (channel) => channel.transform;
|
|
2119
|
-
var asyncQueue = (scope, f, options) =>
|
|
2253
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2120
2254
|
capacity: options?.bufferSize,
|
|
2121
2255
|
strategy: options?.strategy
|
|
2122
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2157,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2157
2291
|
}));
|
|
2158
2292
|
var readableStreamToPullUnsafe = (options) => {
|
|
2159
2293
|
const reader = options.readable.getReader();
|
|
2160
|
-
const exit = options.exit ??
|
|
2294
|
+
const exit = options.exit ?? make8(undefined);
|
|
2161
2295
|
const pull = suspend3(() => {
|
|
2162
2296
|
if (exit.current)
|
|
2163
2297
|
return exit.current;
|
|
@@ -2325,7 +2459,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2325
2459
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2326
2460
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2327
2461
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2328
|
-
const doneLatch = yield*
|
|
2462
|
+
const doneLatch = yield* make3(true);
|
|
2329
2463
|
const fibers = new Map;
|
|
2330
2464
|
const queue = yield* bounded(bufferSize);
|
|
2331
2465
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2662,7 +2796,7 @@ class RcRefImpl {
|
|
|
2662
2796
|
this.idleTimeToLive = idleTimeToLive;
|
|
2663
2797
|
}
|
|
2664
2798
|
}
|
|
2665
|
-
var
|
|
2799
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2666
2800
|
const context = fiber.context;
|
|
2667
2801
|
const scope = get4(context, Scope);
|
|
2668
2802
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -2771,7 +2905,7 @@ var release = (self, state) => {
|
|
|
2771
2905
|
};
|
|
2772
2906
|
|
|
2773
2907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2774
|
-
var
|
|
2908
|
+
var make10 = make6;
|
|
2775
2909
|
var get3 = get2;
|
|
2776
2910
|
|
|
2777
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2783,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2783
2917
|
var toChannel2 = (stream) => stream.channel;
|
|
2784
2918
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2785
2919
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2786
|
-
var
|
|
2920
|
+
var make11 = (...values) => fromArray2(values);
|
|
2787
2921
|
var suspend = (stream) => {
|
|
2788
2922
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2789
2923
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2948,10 +3082,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
2948
3082
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
2949
3083
|
var TypeId10 = "~effect/FileSystem";
|
|
2950
3084
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
2951
|
-
var
|
|
3085
|
+
var make12 = (impl) => FileSystem.of({
|
|
2952
3086
|
...impl,
|
|
2953
3087
|
[TypeId10]: TypeId10,
|
|
2954
|
-
glob:
|
|
3088
|
+
glob: make2(impl),
|
|
2955
3089
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
2956
3090
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
2957
3091
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3008,7 +3142,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3008
3142
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3009
3143
|
var TypeId11 = "~effect/Path";
|
|
3010
3144
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3011
|
-
var
|
|
3145
|
+
var make13 = (impl) => Path.of({
|
|
3012
3146
|
...impl,
|
|
3013
3147
|
[TypeId11]: TypeId11,
|
|
3014
3148
|
resolveWithin(root, input) {
|
|
@@ -3083,7 +3217,7 @@ function makeProvider(load, mapInput) {
|
|
|
3083
3217
|
function makeSource(get, transform) {
|
|
3084
3218
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3085
3219
|
}
|
|
3086
|
-
function
|
|
3220
|
+
function make7(get) {
|
|
3087
3221
|
return makeSource(get, identityPath);
|
|
3088
3222
|
}
|
|
3089
3223
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3092,7 +3226,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3092
3226
|
function fromEnvRecord(env, options) {
|
|
3093
3227
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3094
3228
|
const trie = buildEnvTrie(env);
|
|
3095
|
-
return
|
|
3229
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3096
3230
|
}
|
|
3097
3231
|
function fromEnv(options) {
|
|
3098
3232
|
const env = options?.env ?? {
|
|
@@ -3174,7 +3308,7 @@ var Proto2 = {
|
|
|
3174
3308
|
};
|
|
3175
3309
|
}
|
|
3176
3310
|
};
|
|
3177
|
-
function
|
|
3311
|
+
function make14(evaluator) {
|
|
3178
3312
|
const self = Object.create(Proto2);
|
|
3179
3313
|
self.evaluator = evaluator;
|
|
3180
3314
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3182,14 +3316,14 @@ function make13(evaluator) {
|
|
|
3182
3316
|
}
|
|
3183
3317
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3184
3318
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3185
|
-
return
|
|
3319
|
+
return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3186
3320
|
});
|
|
3187
3321
|
function all(arg) {
|
|
3188
3322
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3189
|
-
return
|
|
3323
|
+
return make14((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
|
|
3190
3324
|
}
|
|
3191
3325
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3192
|
-
return
|
|
3326
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3193
3327
|
});
|
|
3194
3328
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3195
3329
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3308,7 +3442,7 @@ function schema(codec, path) {
|
|
|
3308
3442
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3309
3443
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3310
3444
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3311
|
-
return
|
|
3445
|
+
return make14((provider, pathPrefix) => {
|
|
3312
3446
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3313
3447
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3314
3448
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3423,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3423
3557
|
...argv
|
|
3424
3558
|
];
|
|
3425
3559
|
|
|
3426
|
-
export { map, makeEquivalence, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3560
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, 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, make10, get3, isStream, fromChannel2, callback, empty2, make11, 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, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-zw3gf6r5.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-0h49y8gf.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-c7253rcg.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-fs72937p.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -24,12 +24,13 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-zw3gf6r5.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-0h49y8gf.js";
|
|
32
32
|
import {
|
|
33
|
+
newerKitmanVersion,
|
|
33
34
|
digestSha256,
|
|
34
35
|
digestSha512,
|
|
35
36
|
digestWith,
|
|
@@ -38,7 +39,7 @@ import {
|
|
|
38
39
|
get2,
|
|
39
40
|
layer4,
|
|
40
41
|
KitDigest
|
|
41
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-c7253rcg.js";
|
|
42
43
|
|
|
43
44
|
// packages/core/src/npm-registry.ts
|
|
44
45
|
var KitManifest = Struct({
|
|
@@ -100,6 +101,7 @@ var untar = (tar) => {
|
|
|
100
101
|
return files;
|
|
101
102
|
};
|
|
102
103
|
var registryUrl = String2("NPM_CONFIG_REGISTRY").pipe(withDefault("https://registry.npmjs.org"));
|
|
104
|
+
var newerOf = (latest, next) => latest === undefined || next !== undefined && newerKitmanVersion(next, latest) ? next : latest;
|
|
103
105
|
var npmRegistryAt = (url = registryUrl) => {
|
|
104
106
|
const base = (isString(url) ? succeed6(url) : orDie(url)).pipe(map8((value) => value.replace(/\/+$/u, "")));
|
|
105
107
|
const unreachable = (name, version) => (error) => new NpmRegistryError({
|
|
@@ -113,9 +115,15 @@ var npmRegistryAt = (url = registryUrl) => {
|
|
|
113
115
|
return yield* filterStatusOk(response).pipe(flatMap3(schemaBodyJson(Packument)), mapError2(unreachable(name, version)));
|
|
114
116
|
});
|
|
115
117
|
return {
|
|
116
|
-
latest: (name) => flatMap3(packument(name, "latest"), (found) => {
|
|
117
|
-
const latest = found["dist-tags"]
|
|
118
|
-
|
|
118
|
+
latest: (name, channel = "stable") => flatMap3(packument(name, "latest"), (found) => {
|
|
119
|
+
const { latest, next } = found["dist-tags"];
|
|
120
|
+
const followed = channel === "next" ? newerOf(latest, next) : latest;
|
|
121
|
+
if (followed === undefined)
|
|
122
|
+
return fail7(new NpmRegistryError({
|
|
123
|
+
kind: "not_found",
|
|
124
|
+
message: `npm has no ${channel === "next" ? "latest or next" : "latest"} ${name}`
|
|
125
|
+
}));
|
|
126
|
+
return succeed6(followed);
|
|
119
127
|
}),
|
|
120
128
|
kit: (name, wanted) => gen(function* () {
|
|
121
129
|
const found = yield* packument(name, wanted);
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-zw3gf6r5.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-q5w3v4k1.js";
|
|
82
82
|
import {
|
|
83
83
|
currentTimeMillis,
|
|
84
84
|
WebCrypto,
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-c7253rcg.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-0h49y8gf.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-cbpb2rww.js";
|
|
11
|
+
import"./chunk-mtkstrh3.js";
|
|
12
|
+
import"./chunk-0h49y8gf.js";
|
|
13
|
+
import"./chunk-zw3gf6r5.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-0h49y8gf.js";
|
|
18
|
+
import"./chunk-zw3gf6r5.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -32,8 +32,16 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-zw3gf6r5.js";
|
|
36
|
+
import"./chunk-q5w3v4k1.js";
|
|
37
|
+
import {
|
|
38
|
+
decodeText,
|
|
39
|
+
mkString,
|
|
40
|
+
FileSystem,
|
|
41
|
+
Path,
|
|
42
|
+
withDefault,
|
|
43
|
+
String2
|
|
44
|
+
} from "./chunk-0h49y8gf.js";
|
|
37
45
|
import {
|
|
38
46
|
SecureRandom,
|
|
39
47
|
layerWebCrypto,
|
|
@@ -45,31 +53,23 @@ import {
|
|
|
45
53
|
layer4,
|
|
46
54
|
kitmanMcpServer,
|
|
47
55
|
RunnerRpcProtocolVersion
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import {
|
|
50
|
-
decodeText,
|
|
51
|
-
mkString,
|
|
52
|
-
FileSystem,
|
|
53
|
-
Path,
|
|
54
|
-
withDefault,
|
|
55
|
-
String2
|
|
56
|
-
} from "./chunk-y7vjk8vv.js";
|
|
56
|
+
} from "./chunk-c7253rcg.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import
|
|
62
|
-
ChildProcessSpawner,
|
|
63
|
-
make2
|
|
64
|
-
} from "./chunk-892qrkb3.js";
|
|
65
|
-
import"./chunk-3kxwb7qn.js";
|
|
60
|
+
} from "./chunk-1wbdexzg.js";
|
|
61
|
+
import"./chunk-13yrey2v.js";
|
|
66
62
|
import {
|
|
67
63
|
AgentDeclaration,
|
|
68
64
|
KitDeclarations,
|
|
69
65
|
describeFlag,
|
|
70
66
|
Described
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import
|
|
67
|
+
} from "./chunk-4d4n8qjs.js";
|
|
68
|
+
import {
|
|
69
|
+
ChildProcessSpawner,
|
|
70
|
+
make3
|
|
71
|
+
} from "./chunk-mtkstrh3.js";
|
|
72
|
+
import"./chunk-fs72937p.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
108
108
|
}));
|
|
109
109
|
var run = (command, args, cwd) => gen(function* () {
|
|
110
110
|
const spawner = yield* ChildProcessSpawner;
|
|
111
|
-
const handle = yield* spawner.spawn(
|
|
111
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
112
112
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
113
113
|
mkString(decodeText(handle.stdout)),
|
|
114
114
|
mkString(decodeText(handle.stderr)),
|