@kitman-sh/cli 0.31.0 → 0.33.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.
- package/dist/{chunk-fjdp3rd6.js → chunk-1zb8h7gv.js} +45 -32
- package/dist/{chunk-r2kzvdrg.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-m1qp6swh.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-z59pvcbk.js → chunk-8fyfsajs.js} +179 -31
- package/dist/{chunk-vh2a72d1.js → chunk-9nbqzdqp.js} +60 -14
- package/dist/{chunk-emw9ragp.js → chunk-9tyv6211.js} +21 -21
- package/dist/{chunk-vwynec02.js → chunk-a9ncx2a8.js} +1 -1
- package/dist/{chunk-yjc2w86k.js → chunk-ak1qrm4q.js} +7 -7
- package/dist/{chunk-9vqkjkya.js → chunk-bnhb3cth.js} +2 -2
- package/dist/{chunk-2sazk478.js → chunk-gnq1ryhx.js} +8 -4
- package/dist/{chunk-y64ssczv.js → chunk-h2f26xbd.js} +40 -226
- package/dist/{chunk-s4r49vbj.js → chunk-hgxhpj6m.js} +4 -4
- package/dist/{chunk-qb11yda6.js → chunk-jrwpte6y.js} +41 -41
- package/dist/{chunk-qbrkeg49.js → chunk-mhx0tgm3.js} +7 -7
- package/dist/{chunk-5qrjf4xq.js → chunk-np5n54ky.js} +6 -6
- package/dist/{chunk-xxcxramy.js → chunk-nwbry6c8.js} +130 -124
- package/dist/{chunk-nndgeync.js → chunk-py3133q0.js} +6 -6
- package/dist/{chunk-nk0ew12p.js → chunk-racse7zf.js} +449 -37
- package/dist/chunk-s34am3kw.js +399 -0
- package/dist/{chunk-9a6wbk11.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-njgay1ed.js → chunk-sgkgwzvb.js} +6 -6
- package/dist/{chunk-pd3azxev.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-zy21drtv.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-qjxgew0k.js → chunk-x29m7k25.js} +2 -2
- package/dist/{chunk-9yvknsnj.js → chunk-xkkyx7bn.js} +3 -3
- package/dist/{chunk-38drrdzp.js → chunk-yveqd8ye.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-kx8rpa62.js +0 -230
|
@@ -81,6 +81,8 @@ import {
|
|
|
81
81
|
fiberRunIn,
|
|
82
82
|
makeLatchUnsafe,
|
|
83
83
|
makeLatch,
|
|
84
|
+
ClockRef,
|
|
85
|
+
currentTimeMillis2,
|
|
84
86
|
succeed3,
|
|
85
87
|
failCause2,
|
|
86
88
|
fail4,
|
|
@@ -188,7 +190,6 @@ import {
|
|
|
188
190
|
mapEager,
|
|
189
191
|
flatMapEager,
|
|
190
192
|
catchEager,
|
|
191
|
-
fromInputUnsafe2,
|
|
192
193
|
Pointer,
|
|
193
194
|
passthrough,
|
|
194
195
|
transformEffect,
|
|
@@ -204,7 +205,7 @@ import {
|
|
|
204
205
|
String4,
|
|
205
206
|
toCodecStringTree,
|
|
206
207
|
encodeUnknownJsonStringSync
|
|
207
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-h2f26xbd.js";
|
|
208
209
|
|
|
209
210
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
210
211
|
var headUnsafe = (self) => {
|
|
@@ -253,6 +254,145 @@ var makeEquivalence = (equivalence) => {
|
|
|
253
254
|
return (self, that) => is(self, that) && is(that, self);
|
|
254
255
|
};
|
|
255
256
|
|
|
257
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
258
|
+
var Clock = ClockRef;
|
|
259
|
+
var currentTimeMillis = currentTimeMillis2;
|
|
260
|
+
|
|
261
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
262
|
+
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
263
|
+
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
264
|
+
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
265
|
+
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
266
|
+
var decimalUnits = [{
|
|
267
|
+
symbol: "B",
|
|
268
|
+
factor: bigint1,
|
|
269
|
+
names: ["B", "byte", "bytes"]
|
|
270
|
+
}, {
|
|
271
|
+
symbol: "kB",
|
|
272
|
+
factor: decimalBase,
|
|
273
|
+
names: ["kB", "kilobyte", "kilobytes"]
|
|
274
|
+
}, {
|
|
275
|
+
symbol: "MB",
|
|
276
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
277
|
+
names: ["MB", "megabyte", "megabytes"]
|
|
278
|
+
}, {
|
|
279
|
+
symbol: "GB",
|
|
280
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
281
|
+
names: ["GB", "gigabyte", "gigabytes"]
|
|
282
|
+
}, {
|
|
283
|
+
symbol: "TB",
|
|
284
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
285
|
+
names: ["TB", "terabyte", "terabytes"]
|
|
286
|
+
}, {
|
|
287
|
+
symbol: "PB",
|
|
288
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
289
|
+
names: ["PB", "petabyte", "petabytes"]
|
|
290
|
+
}, {
|
|
291
|
+
symbol: "EB",
|
|
292
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
293
|
+
names: ["EB", "exabyte", "exabytes"]
|
|
294
|
+
}, {
|
|
295
|
+
symbol: "ZB",
|
|
296
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
297
|
+
names: ["ZB", "zettabyte", "zettabytes"]
|
|
298
|
+
}, {
|
|
299
|
+
symbol: "YB",
|
|
300
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
301
|
+
names: ["YB", "yottabyte", "yottabytes"]
|
|
302
|
+
}, {
|
|
303
|
+
symbol: "RB",
|
|
304
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
305
|
+
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
306
|
+
}, {
|
|
307
|
+
symbol: "QB",
|
|
308
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
309
|
+
names: ["QB", "quettabyte", "quettabytes"]
|
|
310
|
+
}];
|
|
311
|
+
var binaryUnits = [decimalUnits[0], {
|
|
312
|
+
symbol: "KiB",
|
|
313
|
+
factor: binaryBase,
|
|
314
|
+
names: ["KiB", "kibibyte", "kibibytes"]
|
|
315
|
+
}, {
|
|
316
|
+
symbol: "MiB",
|
|
317
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
318
|
+
names: ["MiB", "mebibyte", "mebibytes"]
|
|
319
|
+
}, {
|
|
320
|
+
symbol: "GiB",
|
|
321
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
322
|
+
names: ["GiB", "gibibyte", "gibibytes"]
|
|
323
|
+
}, {
|
|
324
|
+
symbol: "TiB",
|
|
325
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
326
|
+
names: ["TiB", "tebibyte", "tebibytes"]
|
|
327
|
+
}, {
|
|
328
|
+
symbol: "PiB",
|
|
329
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
330
|
+
names: ["PiB", "pebibyte", "pebibytes"]
|
|
331
|
+
}, {
|
|
332
|
+
symbol: "EiB",
|
|
333
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
334
|
+
names: ["EiB", "exbibyte", "exbibytes"]
|
|
335
|
+
}, {
|
|
336
|
+
symbol: "ZiB",
|
|
337
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
338
|
+
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
339
|
+
}, {
|
|
340
|
+
symbol: "YiB",
|
|
341
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
342
|
+
names: ["YiB", "yobibyte", "yobibytes"]
|
|
343
|
+
}];
|
|
344
|
+
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
345
|
+
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
346
|
+
var make = (value) => value;
|
|
347
|
+
var invalid = (message) => {
|
|
348
|
+
throw new Error(`Invalid ByteSize: ${message}`);
|
|
349
|
+
};
|
|
350
|
+
var fromNumber = (input) => {
|
|
351
|
+
if (!Number.isSafeInteger(input) || input < 0) {
|
|
352
|
+
return invalid(`expected a non-negative safe integer, received ${input}`);
|
|
353
|
+
}
|
|
354
|
+
return make(BigInt(input));
|
|
355
|
+
};
|
|
356
|
+
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
357
|
+
var scaleDecimal = (quantity, factor) => {
|
|
358
|
+
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
359
|
+
if (match === null)
|
|
360
|
+
return;
|
|
361
|
+
const fraction = match[2] ?? "";
|
|
362
|
+
const numerator = BigInt(match[1] + fraction) * factor;
|
|
363
|
+
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
364
|
+
if (shift >= 0)
|
|
365
|
+
return numerator * BigInt(10) ** BigInt(shift);
|
|
366
|
+
const scale = BigInt(10) ** BigInt(-shift);
|
|
367
|
+
return numerator % scale === bigint0 ? numerator / scale : undefined;
|
|
368
|
+
};
|
|
369
|
+
var fromStringUnsafe = (input) => {
|
|
370
|
+
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
371
|
+
if (match === null)
|
|
372
|
+
return invalid(`unsupported syntax ${JSON.stringify(input)}`);
|
|
373
|
+
const unit = unitsByName.get(match[2]);
|
|
374
|
+
if (unit === undefined)
|
|
375
|
+
return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
376
|
+
const value = scaleDecimal(match[1], unit.factor);
|
|
377
|
+
if (value === undefined)
|
|
378
|
+
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
379
|
+
return make(value);
|
|
380
|
+
};
|
|
381
|
+
var fromInputUnsafe2 = (input) => {
|
|
382
|
+
switch (typeof input) {
|
|
383
|
+
case "bigint":
|
|
384
|
+
if (input < bigint0)
|
|
385
|
+
return invalid(`expected a non-negative bigint, received ${input}`);
|
|
386
|
+
return make(input);
|
|
387
|
+
case "number":
|
|
388
|
+
return fromNumber(input);
|
|
389
|
+
case "string":
|
|
390
|
+
return fromStringUnsafe(input);
|
|
391
|
+
}
|
|
392
|
+
return invalid(`unsupported input ${input}`);
|
|
393
|
+
};
|
|
394
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
395
|
+
|
|
256
396
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
257
397
|
var join = fiberJoin;
|
|
258
398
|
var interrupt = fiberInterrupt;
|
|
@@ -805,7 +945,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
805
945
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
806
946
|
var DIRECTORY_CONCURRENCY = 16;
|
|
807
947
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
808
|
-
var
|
|
948
|
+
var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
809
949
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
810
950
|
if (compiled.initial.size === 0) {
|
|
811
951
|
return [];
|
|
@@ -983,7 +1123,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
983
1123
|
|
|
984
1124
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
985
1125
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
986
|
-
var
|
|
1126
|
+
var make3 = makeLatch;
|
|
987
1127
|
|
|
988
1128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
989
1129
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -997,7 +1137,7 @@ var MutableRefProto = {
|
|
|
997
1137
|
};
|
|
998
1138
|
}
|
|
999
1139
|
};
|
|
1000
|
-
var
|
|
1140
|
+
var make8 = (value) => {
|
|
1001
1141
|
const ref = Object.create(MutableRefProto);
|
|
1002
1142
|
ref.current = value;
|
|
1003
1143
|
return ref;
|
|
@@ -1009,7 +1149,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1009
1149
|
|
|
1010
1150
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1011
1151
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1012
|
-
var
|
|
1152
|
+
var make4 = () => ({
|
|
1013
1153
|
head: undefined,
|
|
1014
1154
|
tail: undefined,
|
|
1015
1155
|
length: 0
|
|
@@ -1158,8 +1298,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1158
1298
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1159
1299
|
var TypeId3 = "~effect/PubSub";
|
|
1160
1300
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1161
|
-
var
|
|
1162
|
-
var unbounded = (options) =>
|
|
1301
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1302
|
+
var unbounded = (options) => make5({
|
|
1163
1303
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1164
1304
|
strategy: () => new DroppingStrategy
|
|
1165
1305
|
});
|
|
@@ -1253,7 +1393,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1253
1393
|
subscribers.delete(subscription);
|
|
1254
1394
|
}
|
|
1255
1395
|
};
|
|
1256
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
1396
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1257
1397
|
class UnboundedPubSub {
|
|
1258
1398
|
publisherHead = {
|
|
1259
1399
|
value: AbsentValue,
|
|
@@ -1670,12 +1810,12 @@ var QueueProto = {
|
|
|
1670
1810
|
};
|
|
1671
1811
|
}
|
|
1672
1812
|
};
|
|
1673
|
-
var
|
|
1813
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1674
1814
|
const self = Object.create(QueueProto);
|
|
1675
1815
|
self.dispatcher = fiber.currentDispatcher;
|
|
1676
1816
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1677
1817
|
self.strategy = options?.strategy ?? "suspend";
|
|
1678
|
-
self.messages =
|
|
1818
|
+
self.messages = make4();
|
|
1679
1819
|
self.scheduleRunning = false;
|
|
1680
1820
|
self.state = {
|
|
1681
1821
|
_tag: "Open",
|
|
@@ -1685,14 +1825,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1685
1825
|
};
|
|
1686
1826
|
return succeed2(self);
|
|
1687
1827
|
});
|
|
1688
|
-
var bounded = (capacity) =>
|
|
1828
|
+
var bounded = (capacity) => make9({
|
|
1689
1829
|
capacity
|
|
1690
1830
|
});
|
|
1691
|
-
var sliding = (capacity) =>
|
|
1831
|
+
var sliding = (capacity) => make9({
|
|
1692
1832
|
capacity,
|
|
1693
1833
|
strategy: "sliding"
|
|
1694
1834
|
});
|
|
1695
|
-
var unbounded2 = () =>
|
|
1835
|
+
var unbounded2 = () => make9();
|
|
1696
1836
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1697
1837
|
var offerUnsafe = (self, message) => {
|
|
1698
1838
|
if (self.state._tag !== "Open") {
|
|
@@ -2118,7 +2258,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2118
2258
|
return onError(pull, onCause);
|
|
2119
2259
|
}));
|
|
2120
2260
|
var toTransform = (channel) => channel.transform;
|
|
2121
|
-
var asyncQueue = (scope, f, options) =>
|
|
2261
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2122
2262
|
capacity: options?.bufferSize,
|
|
2123
2263
|
strategy: options?.strategy
|
|
2124
2264
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2159,7 +2299,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2159
2299
|
}));
|
|
2160
2300
|
var readableStreamToPullUnsafe = (options) => {
|
|
2161
2301
|
const reader = options.readable.getReader();
|
|
2162
|
-
const exit = options.exit ??
|
|
2302
|
+
const exit = options.exit ?? make8(undefined);
|
|
2163
2303
|
const pull = suspend3(() => {
|
|
2164
2304
|
if (exit.current)
|
|
2165
2305
|
return exit.current;
|
|
@@ -2367,7 +2507,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2367
2507
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2368
2508
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2369
2509
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2370
|
-
const doneLatch = yield*
|
|
2510
|
+
const doneLatch = yield* make3(true);
|
|
2371
2511
|
const fibers = new Map;
|
|
2372
2512
|
const queue = yield* bounded(bufferSize);
|
|
2373
2513
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2617,6 +2757,13 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
|
|
|
2617
2757
|
}
|
|
2618
2758
|
}), () => succeed6(state));
|
|
2619
2759
|
}));
|
|
2760
|
+
var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
|
|
2761
|
+
const semaphore = makeUnsafe3(1);
|
|
2762
|
+
const context2 = yield* context();
|
|
2763
|
+
const scope = get4(context2, Scope);
|
|
2764
|
+
const pull = yield* toTransform(self)(done(), scope);
|
|
2765
|
+
return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
|
|
2766
|
+
}, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
|
|
2620
2767
|
var toPullScoped = (self, scope) => toTransform(self)(done(), scope);
|
|
2621
2768
|
|
|
2622
2769
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/stream.js
|
|
@@ -2704,7 +2851,7 @@ class RcRefImpl {
|
|
|
2704
2851
|
this.idleTimeToLive = idleTimeToLive;
|
|
2705
2852
|
}
|
|
2706
2853
|
}
|
|
2707
|
-
var
|
|
2854
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2708
2855
|
const context = fiber.context;
|
|
2709
2856
|
const scope = get4(context, Scope);
|
|
2710
2857
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -2813,7 +2960,7 @@ var release = (self, state) => {
|
|
|
2813
2960
|
};
|
|
2814
2961
|
|
|
2815
2962
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2816
|
-
var
|
|
2963
|
+
var make10 = make6;
|
|
2817
2964
|
var get3 = get2;
|
|
2818
2965
|
|
|
2819
2966
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2825,7 +2972,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2825
2972
|
var toChannel2 = (stream) => stream.channel;
|
|
2826
2973
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2827
2974
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2828
|
-
var
|
|
2975
|
+
var make11 = (...values) => fromArray2(values);
|
|
2829
2976
|
var suspend = (stream) => {
|
|
2830
2977
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2831
2978
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2968,6 +3115,7 @@ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel,
|
|
|
2968
3115
|
});
|
|
2969
3116
|
}));
|
|
2970
3117
|
var runDrain = (self) => runDrain2(self.channel);
|
|
3118
|
+
var toPull = (self) => toPull2(self.channel);
|
|
2971
3119
|
var mkString = (self) => runFold2(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
|
|
2972
3120
|
var mkArrayBuffer = (self) => map9(mkUint8Array(self.channel), (bytes) => bytes.buffer);
|
|
2973
3121
|
var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, context, options) => {
|
|
@@ -3025,10 +3173,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3025
3173
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3026
3174
|
var TypeId10 = "~effect/FileSystem";
|
|
3027
3175
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3028
|
-
var
|
|
3176
|
+
var make12 = (impl) => FileSystem.of({
|
|
3029
3177
|
...impl,
|
|
3030
3178
|
[TypeId10]: TypeId10,
|
|
3031
|
-
glob:
|
|
3179
|
+
glob: make2(impl),
|
|
3032
3180
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3033
3181
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
3034
3182
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3085,7 +3233,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3085
3233
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3086
3234
|
var TypeId11 = "~effect/Path";
|
|
3087
3235
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3088
|
-
var
|
|
3236
|
+
var make13 = (impl) => Path.of({
|
|
3089
3237
|
...impl,
|
|
3090
3238
|
[TypeId11]: TypeId11,
|
|
3091
3239
|
resolveWithin(root, input) {
|
|
@@ -3160,7 +3308,7 @@ function makeProvider(load, mapInput) {
|
|
|
3160
3308
|
function makeSource(get, transform) {
|
|
3161
3309
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3162
3310
|
}
|
|
3163
|
-
function
|
|
3311
|
+
function make7(get) {
|
|
3164
3312
|
return makeSource(get, identityPath);
|
|
3165
3313
|
}
|
|
3166
3314
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3169,7 +3317,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3169
3317
|
function fromEnvRecord(env, options) {
|
|
3170
3318
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3171
3319
|
const trie = buildEnvTrie(env);
|
|
3172
|
-
return
|
|
3320
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3173
3321
|
}
|
|
3174
3322
|
function fromEnv(options) {
|
|
3175
3323
|
const env = options?.env ?? {
|
|
@@ -3251,7 +3399,7 @@ var Proto2 = {
|
|
|
3251
3399
|
};
|
|
3252
3400
|
}
|
|
3253
3401
|
};
|
|
3254
|
-
function
|
|
3402
|
+
function make14(evaluator) {
|
|
3255
3403
|
const self = Object.create(Proto2);
|
|
3256
3404
|
self.evaluator = evaluator;
|
|
3257
3405
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3259,14 +3407,14 @@ function make13(evaluator) {
|
|
|
3259
3407
|
}
|
|
3260
3408
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3261
3409
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3262
|
-
return
|
|
3410
|
+
return make14((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3263
3411
|
});
|
|
3264
3412
|
function all(arg) {
|
|
3265
3413
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3266
|
-
return
|
|
3414
|
+
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));
|
|
3267
3415
|
}
|
|
3268
3416
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3269
|
-
return
|
|
3417
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3270
3418
|
});
|
|
3271
3419
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3272
3420
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3385,7 +3533,7 @@ function schema(codec, path) {
|
|
|
3385
3533
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3386
3534
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3387
3535
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3388
|
-
return
|
|
3536
|
+
return make14((provider, pathPrefix) => {
|
|
3389
3537
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3390
3538
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3391
3539
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3501,4 +3649,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3501
3649
|
...argv
|
|
3502
3650
|
];
|
|
3503
3651
|
|
|
3504
|
-
export { map, makeEquivalence, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3652
|
+
export { map, makeEquivalence, Clock, currentTimeMillis, 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, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, 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 };
|
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
|
+
isString,
|
|
4
|
+
hasProperty,
|
|
5
|
+
symbol,
|
|
6
|
+
hash,
|
|
7
|
+
symbol2,
|
|
8
|
+
equals,
|
|
3
9
|
BaseProto,
|
|
10
|
+
PipeInspectableProto,
|
|
4
11
|
Prototype,
|
|
5
12
|
some,
|
|
6
13
|
Service2,
|
|
@@ -14,11 +21,8 @@ import {
|
|
|
14
21
|
andThen2,
|
|
15
22
|
map9,
|
|
16
23
|
raceFirst,
|
|
17
|
-
scoped
|
|
18
|
-
|
|
19
|
-
make16,
|
|
20
|
-
value
|
|
21
|
-
} from "./chunk-y64ssczv.js";
|
|
24
|
+
scoped
|
|
25
|
+
} from "./chunk-h2f26xbd.js";
|
|
22
26
|
import {
|
|
23
27
|
unwrap,
|
|
24
28
|
drainFork,
|
|
@@ -27,7 +31,49 @@ import {
|
|
|
27
31
|
runCollect,
|
|
28
32
|
runDrain,
|
|
29
33
|
mkString
|
|
30
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-8fyfsajs.js";
|
|
35
|
+
|
|
36
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
|
+
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
38
|
+
var value2 = (self) => {
|
|
39
|
+
if (redactedRegistry.has(self)) {
|
|
40
|
+
return redactedRegistry.get(self);
|
|
41
|
+
} else {
|
|
42
|
+
throw new Error("Unable to get redacted value" + (self.label ? ` with label: "${self.label}"` : ""));
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Redacted.js
|
|
47
|
+
var TypeId = "~effect/Redacted";
|
|
48
|
+
var isRedacted = (u) => hasProperty(u, TypeId);
|
|
49
|
+
var make = (value, options) => {
|
|
50
|
+
const self = Object.create(Proto);
|
|
51
|
+
if (options?.label) {
|
|
52
|
+
self.label = options.label;
|
|
53
|
+
}
|
|
54
|
+
redactedRegistry.set(self, value);
|
|
55
|
+
return self;
|
|
56
|
+
};
|
|
57
|
+
var Proto = {
|
|
58
|
+
[TypeId]: {
|
|
59
|
+
_A: (_) => _
|
|
60
|
+
},
|
|
61
|
+
label: undefined,
|
|
62
|
+
...PipeInspectableProto,
|
|
63
|
+
toJSON() {
|
|
64
|
+
return this.toString();
|
|
65
|
+
},
|
|
66
|
+
toString() {
|
|
67
|
+
return `<redacted${isString(this.label) ? ":" + this.label : ""}>`;
|
|
68
|
+
},
|
|
69
|
+
[symbol]() {
|
|
70
|
+
return hash(redactedRegistry.get(this));
|
|
71
|
+
},
|
|
72
|
+
[symbol2](that) {
|
|
73
|
+
return isRedacted(that) && equals(redactedRegistry.get(this), redactedRegistry.get(that));
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
var value = value2;
|
|
31
77
|
|
|
32
78
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Brand.js
|
|
33
79
|
function nominal() {
|
|
@@ -55,7 +101,7 @@ var HandleProto = {
|
|
|
55
101
|
var makeHandle = (params) => Object.setPrototypeOf({
|
|
56
102
|
...params
|
|
57
103
|
}, HandleProto);
|
|
58
|
-
var
|
|
104
|
+
var make2 = (spawn) => {
|
|
59
105
|
const streamString = (command, options) => spawn(command).pipe(map9((handle) => decodeText(options?.includeStderr === true ? handle.all : drainFork(handle.stdout, handle.stderr))), unwrap);
|
|
60
106
|
const streamLines = (command, options) => splitLines(streamString(command, options));
|
|
61
107
|
return ChildProcessSpawner.of({
|
|
@@ -176,7 +222,7 @@ var parseTemplate = (texts, values) => {
|
|
|
176
222
|
if (word.length === 0)
|
|
177
223
|
return;
|
|
178
224
|
const value = word.map(unwrap2).join("");
|
|
179
|
-
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ?
|
|
225
|
+
words.push(word.length === 1 && isRedacted(word[0]) ? word[0] : word.some(isRedacted) ? make(value) : value);
|
|
180
226
|
word = [];
|
|
181
227
|
plain = true;
|
|
182
228
|
braceDepth = 0;
|
|
@@ -266,23 +312,23 @@ var parseTemplate = (texts, values) => {
|
|
|
266
312
|
};
|
|
267
313
|
|
|
268
314
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/process/ChildProcess.js
|
|
269
|
-
var
|
|
270
|
-
var
|
|
315
|
+
var TypeId2 = "~effect/process/ChildProcess";
|
|
316
|
+
var Proto2 = {
|
|
271
317
|
.../* @__PURE__ */ Prototype({
|
|
272
318
|
label: "Command",
|
|
273
319
|
evaluate(fiber) {
|
|
274
320
|
return getUnsafe(fiber.context, ChildProcessSpawner).spawn(this);
|
|
275
321
|
}
|
|
276
322
|
}),
|
|
277
|
-
[
|
|
323
|
+
[TypeId2]: TypeId2
|
|
278
324
|
};
|
|
279
|
-
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(
|
|
325
|
+
var makeStandardCommand = (command, args, options) => Object.assign(Object.create(Proto2), {
|
|
280
326
|
_tag: "StandardCommand",
|
|
281
327
|
command,
|
|
282
328
|
args,
|
|
283
329
|
options
|
|
284
330
|
});
|
|
285
|
-
var
|
|
331
|
+
var make3 = function make(...args) {
|
|
286
332
|
if (isTemplateString(args[0])) {
|
|
287
333
|
const [templates, ...expressions] = args;
|
|
288
334
|
const [command, cmdArgs] = parseTemplate2(templates, expressions);
|
|
@@ -340,4 +386,4 @@ var shellScript = (templates, expressions) => {
|
|
|
340
386
|
}
|
|
341
387
|
return script;
|
|
342
388
|
};
|
|
343
|
-
export { ExitCode, ProcessId, makeHandle,
|
|
389
|
+
export { isRedacted, make, value, ExitCode, ProcessId, makeHandle, make2, ChildProcessSpawner, display, make3, parseFdName, fdName };
|
|
@@ -35,7 +35,15 @@ import {
|
|
|
35
35
|
toCodecJson,
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-h2f26xbd.js";
|
|
39
|
+
import {
|
|
40
|
+
decodeText,
|
|
41
|
+
mkString,
|
|
42
|
+
FileSystem,
|
|
43
|
+
Path,
|
|
44
|
+
withDefault,
|
|
45
|
+
String2
|
|
46
|
+
} from "./chunk-8fyfsajs.js";
|
|
39
47
|
import {
|
|
40
48
|
SecureRandom,
|
|
41
49
|
layerWebCrypto,
|
|
@@ -52,34 +60,26 @@ import {
|
|
|
52
60
|
KitDeclarations,
|
|
53
61
|
kitmanMcpServer,
|
|
54
62
|
RunnerRpcProtocolVersion
|
|
55
|
-
} from "./chunk-
|
|
56
|
-
import {
|
|
57
|
-
decodeText,
|
|
58
|
-
mkString,
|
|
59
|
-
FileSystem,
|
|
60
|
-
Path,
|
|
61
|
-
withDefault,
|
|
62
|
-
String2
|
|
63
|
-
} from "./chunk-z59pvcbk.js";
|
|
63
|
+
} from "./chunk-nwbry6c8.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import {
|
|
69
|
-
ChildProcessSpawner,
|
|
70
|
-
make2
|
|
71
|
-
} from "./chunk-vh2a72d1.js";
|
|
67
|
+
} from "./chunk-xkkyx7bn.js";
|
|
72
68
|
import {
|
|
73
69
|
stepDefinedTwice,
|
|
74
70
|
hostSteps,
|
|
75
71
|
exports_activities,
|
|
76
72
|
describeFlag,
|
|
77
73
|
Described
|
|
78
|
-
} from "./chunk-
|
|
79
|
-
import"./chunk-
|
|
80
|
-
import"./chunk-
|
|
81
|
-
import
|
|
82
|
-
|
|
74
|
+
} from "./chunk-sgkgwzvb.js";
|
|
75
|
+
import"./chunk-mhx0tgm3.js";
|
|
76
|
+
import"./chunk-tsx0347c.js";
|
|
77
|
+
import {
|
|
78
|
+
ChildProcessSpawner,
|
|
79
|
+
make3
|
|
80
|
+
} from "./chunk-9nbqzdqp.js";
|
|
81
|
+
import"./chunk-np5n54ky.js";
|
|
82
|
+
import"./chunk-4qjfn1sa.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -3891,7 +3891,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
3891
3891
|
}));
|
|
3892
3892
|
var run = (command, args, cwd) => gen(function* () {
|
|
3893
3893
|
const spawner = yield* ChildProcessSpawner;
|
|
3894
|
-
const handle = yield* spawner.spawn(
|
|
3894
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
3895
3895
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
3896
3896
|
mkString(decodeText(handle.stdout)),
|
|
3897
3897
|
mkString(decodeText(handle.stderr)),
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-h2f26xbd.js";
|
|
17
17
|
import {
|
|
18
18
|
FileSystem,
|
|
19
19
|
Path
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-8fyfsajs.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-hgxhpj6m.js";
|
|
27
27
|
import {
|
|
28
28
|
instructionsStart,
|
|
29
29
|
instructionsEnd,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
antigravityPlugins,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-nwbry6c8.js";
|
|
35
|
+
import"./chunk-xkkyx7bn.js";
|
|
36
|
+
import"./chunk-9nbqzdqp.js";
|
|
37
|
+
import"./chunk-4qjfn1sa.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
40
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|