@kitman-sh/cli 0.10.80 → 0.10.82
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-z0tv3ak5.js → chunk-2mxpxw3j.js} +3 -3
- package/dist/{chunk-0wy2gwj2.js → chunk-5my30s53.js} +8 -8
- package/dist/{chunk-ctfv3bg6.js → chunk-62565d52.js} +2 -2
- package/dist/{chunk-2afjvt1c.js → chunk-76ctrqm6.js} +1 -1
- package/dist/{chunk-vcvnk771.js → chunk-8p0psats.js} +4 -4
- package/dist/{chunk-wqv9y3dk.js → chunk-98sg1yyd.js} +60 -14
- package/dist/{chunk-4tjeks83.js → chunk-9zd52pda.js} +5 -5
- package/dist/{chunk-czxcs1ce.js → chunk-a03wf71k.js} +7 -7
- package/dist/{chunk-84gm9qq8.js → chunk-by4t402z.js} +25 -25
- package/dist/{chunk-7b6qsc4y.js → chunk-d4atn90g.js} +23 -23
- package/dist/{chunk-xkqbgz5j.js → chunk-e8zm8z3a.js} +8 -8
- package/dist/{chunk-kjms81x1.js → chunk-fq47a5yd.js} +2 -2
- package/dist/{chunk-61jk9k82.js → chunk-gn0v83as.js} +126 -117
- package/dist/{chunk-v9nqb2tp.js → chunk-jbwk6k6m.js} +40 -226
- package/dist/{chunk-0dwnwx45.js → chunk-jr1363cj.js} +5 -5
- package/dist/{chunk-fwsq4r8a.js → chunk-kgdppbdr.js} +1 -1
- package/dist/{chunk-hr6etnzn.js → chunk-ky974pcr.js} +4 -4
- package/dist/{chunk-twms8y72.js → chunk-pkn6g975.js} +4 -4
- package/dist/{chunk-1xn27063.js → chunk-q4cpages.js} +5 -5
- package/dist/{chunk-yp10rhmv.js → chunk-q767c0cv.js} +7 -7
- package/dist/{chunk-f3k1vjtf.js → chunk-szf97jdk.js} +21 -21
- package/dist/{chunk-80z95x19.js → chunk-tzz4fv17.js} +1 -1
- package/dist/{chunk-bxxym84e.js → chunk-xb70ys3n.js} +165 -31
- package/dist/{chunk-5v9pywm3.js → chunk-zzhewave.js} +111 -124
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -32,9 +32,17 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-jbwk6k6m.js";
|
|
36
|
+
import"./chunk-kgdppbdr.js";
|
|
37
|
+
import"./chunk-tzz4fv17.js";
|
|
38
|
+
import {
|
|
39
|
+
decodeText,
|
|
40
|
+
mkString,
|
|
41
|
+
FileSystem,
|
|
42
|
+
Path,
|
|
43
|
+
withDefault,
|
|
44
|
+
String2
|
|
45
|
+
} from "./chunk-xb70ys3n.js";
|
|
38
46
|
import {
|
|
39
47
|
SecureRandom,
|
|
40
48
|
layerWebCrypto,
|
|
@@ -46,31 +54,23 @@ import {
|
|
|
46
54
|
layer4,
|
|
47
55
|
kitmanMcpServer,
|
|
48
56
|
RunnerRpcProtocolVersion
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
decodeText,
|
|
52
|
-
mkString,
|
|
53
|
-
FileSystem,
|
|
54
|
-
Path,
|
|
55
|
-
withDefault,
|
|
56
|
-
String2
|
|
57
|
-
} from "./chunk-bxxym84e.js";
|
|
57
|
+
} from "./chunk-gn0v83as.js";
|
|
58
58
|
import {
|
|
59
59
|
Packument,
|
|
60
60
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import
|
|
63
|
-
ChildProcessSpawner,
|
|
64
|
-
make2
|
|
65
|
-
} from "./chunk-wqv9y3dk.js";
|
|
66
|
-
import"./chunk-czxcs1ce.js";
|
|
61
|
+
} from "./chunk-2mxpxw3j.js";
|
|
62
|
+
import"./chunk-a03wf71k.js";
|
|
67
63
|
import {
|
|
68
64
|
AgentDeclaration,
|
|
69
65
|
KitDeclarations,
|
|
70
66
|
describeFlag,
|
|
71
67
|
Described
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import
|
|
68
|
+
} from "./chunk-8p0psats.js";
|
|
69
|
+
import {
|
|
70
|
+
ChildProcessSpawner,
|
|
71
|
+
make3
|
|
72
|
+
} from "./chunk-98sg1yyd.js";
|
|
73
|
+
import"./chunk-q4cpages.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
109
109
|
}));
|
|
110
110
|
var run = (command, args, cwd) => gen(function* () {
|
|
111
111
|
const spawner = yield* ChildProcessSpawner;
|
|
112
|
-
const handle = yield* spawner.spawn(
|
|
112
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
113
113
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
114
114
|
mkString(decodeText(handle.stdout)),
|
|
115
115
|
mkString(decodeText(handle.stderr)),
|
|
@@ -184,7 +184,6 @@ import {
|
|
|
184
184
|
mapEager,
|
|
185
185
|
flatMapEager,
|
|
186
186
|
catchEager,
|
|
187
|
-
fromInputUnsafe2,
|
|
188
187
|
Pointer,
|
|
189
188
|
passthrough,
|
|
190
189
|
transformEffect,
|
|
@@ -200,7 +199,7 @@ import {
|
|
|
200
199
|
String4,
|
|
201
200
|
toCodecStringTree,
|
|
202
201
|
encodeUnknownJsonStringSync
|
|
203
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-jbwk6k6m.js";
|
|
204
203
|
|
|
205
204
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
206
205
|
var headUnsafe = (self) => {
|
|
@@ -249,6 +248,141 @@ var makeEquivalence = (equivalence) => {
|
|
|
249
248
|
return (self, that) => is(self, that) && is(that, self);
|
|
250
249
|
};
|
|
251
250
|
|
|
251
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
252
|
+
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
253
|
+
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
254
|
+
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
255
|
+
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
256
|
+
var decimalUnits = [{
|
|
257
|
+
symbol: "B",
|
|
258
|
+
factor: bigint1,
|
|
259
|
+
names: ["B", "byte", "bytes"]
|
|
260
|
+
}, {
|
|
261
|
+
symbol: "kB",
|
|
262
|
+
factor: decimalBase,
|
|
263
|
+
names: ["kB", "kilobyte", "kilobytes"]
|
|
264
|
+
}, {
|
|
265
|
+
symbol: "MB",
|
|
266
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
267
|
+
names: ["MB", "megabyte", "megabytes"]
|
|
268
|
+
}, {
|
|
269
|
+
symbol: "GB",
|
|
270
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
271
|
+
names: ["GB", "gigabyte", "gigabytes"]
|
|
272
|
+
}, {
|
|
273
|
+
symbol: "TB",
|
|
274
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
275
|
+
names: ["TB", "terabyte", "terabytes"]
|
|
276
|
+
}, {
|
|
277
|
+
symbol: "PB",
|
|
278
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
279
|
+
names: ["PB", "petabyte", "petabytes"]
|
|
280
|
+
}, {
|
|
281
|
+
symbol: "EB",
|
|
282
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
283
|
+
names: ["EB", "exabyte", "exabytes"]
|
|
284
|
+
}, {
|
|
285
|
+
symbol: "ZB",
|
|
286
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
287
|
+
names: ["ZB", "zettabyte", "zettabytes"]
|
|
288
|
+
}, {
|
|
289
|
+
symbol: "YB",
|
|
290
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
291
|
+
names: ["YB", "yottabyte", "yottabytes"]
|
|
292
|
+
}, {
|
|
293
|
+
symbol: "RB",
|
|
294
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
295
|
+
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
296
|
+
}, {
|
|
297
|
+
symbol: "QB",
|
|
298
|
+
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
299
|
+
names: ["QB", "quettabyte", "quettabytes"]
|
|
300
|
+
}];
|
|
301
|
+
var binaryUnits = [decimalUnits[0], {
|
|
302
|
+
symbol: "KiB",
|
|
303
|
+
factor: binaryBase,
|
|
304
|
+
names: ["KiB", "kibibyte", "kibibytes"]
|
|
305
|
+
}, {
|
|
306
|
+
symbol: "MiB",
|
|
307
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
308
|
+
names: ["MiB", "mebibyte", "mebibytes"]
|
|
309
|
+
}, {
|
|
310
|
+
symbol: "GiB",
|
|
311
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
312
|
+
names: ["GiB", "gibibyte", "gibibytes"]
|
|
313
|
+
}, {
|
|
314
|
+
symbol: "TiB",
|
|
315
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
316
|
+
names: ["TiB", "tebibyte", "tebibytes"]
|
|
317
|
+
}, {
|
|
318
|
+
symbol: "PiB",
|
|
319
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
320
|
+
names: ["PiB", "pebibyte", "pebibytes"]
|
|
321
|
+
}, {
|
|
322
|
+
symbol: "EiB",
|
|
323
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
324
|
+
names: ["EiB", "exbibyte", "exbibytes"]
|
|
325
|
+
}, {
|
|
326
|
+
symbol: "ZiB",
|
|
327
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
328
|
+
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
329
|
+
}, {
|
|
330
|
+
symbol: "YiB",
|
|
331
|
+
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
332
|
+
names: ["YiB", "yobibyte", "yobibytes"]
|
|
333
|
+
}];
|
|
334
|
+
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
335
|
+
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
336
|
+
var make = (value) => value;
|
|
337
|
+
var invalid = (message) => {
|
|
338
|
+
throw new Error(`Invalid ByteSize: ${message}`);
|
|
339
|
+
};
|
|
340
|
+
var fromNumber = (input) => {
|
|
341
|
+
if (!Number.isSafeInteger(input) || input < 0) {
|
|
342
|
+
return invalid(`expected a non-negative safe integer, received ${input}`);
|
|
343
|
+
}
|
|
344
|
+
return make(BigInt(input));
|
|
345
|
+
};
|
|
346
|
+
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
347
|
+
var scaleDecimal = (quantity, factor) => {
|
|
348
|
+
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
349
|
+
if (match === null)
|
|
350
|
+
return;
|
|
351
|
+
const fraction = match[2] ?? "";
|
|
352
|
+
const numerator = BigInt(match[1] + fraction) * factor;
|
|
353
|
+
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
354
|
+
if (shift >= 0)
|
|
355
|
+
return numerator * BigInt(10) ** BigInt(shift);
|
|
356
|
+
const scale = BigInt(10) ** BigInt(-shift);
|
|
357
|
+
return numerator % scale === bigint0 ? numerator / scale : undefined;
|
|
358
|
+
};
|
|
359
|
+
var fromStringUnsafe = (input) => {
|
|
360
|
+
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
361
|
+
if (match === null)
|
|
362
|
+
return invalid(`unsupported syntax ${JSON.stringify(input)}`);
|
|
363
|
+
const unit = unitsByName.get(match[2]);
|
|
364
|
+
if (unit === undefined)
|
|
365
|
+
return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
366
|
+
const value = scaleDecimal(match[1], unit.factor);
|
|
367
|
+
if (value === undefined)
|
|
368
|
+
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
369
|
+
return make(value);
|
|
370
|
+
};
|
|
371
|
+
var fromInputUnsafe2 = (input) => {
|
|
372
|
+
switch (typeof input) {
|
|
373
|
+
case "bigint":
|
|
374
|
+
if (input < bigint0)
|
|
375
|
+
return invalid(`expected a non-negative bigint, received ${input}`);
|
|
376
|
+
return make(input);
|
|
377
|
+
case "number":
|
|
378
|
+
return fromNumber(input);
|
|
379
|
+
case "string":
|
|
380
|
+
return fromStringUnsafe(input);
|
|
381
|
+
}
|
|
382
|
+
return invalid(`unsupported input ${input}`);
|
|
383
|
+
};
|
|
384
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
385
|
+
|
|
252
386
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
253
387
|
var join = fiberJoin;
|
|
254
388
|
var interrupt = fiberInterrupt;
|
|
@@ -801,7 +935,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
801
935
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
802
936
|
var DIRECTORY_CONCURRENCY = 16;
|
|
803
937
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
804
|
-
var
|
|
938
|
+
var make2 = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
805
939
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
806
940
|
if (compiled.initial.size === 0) {
|
|
807
941
|
return [];
|
|
@@ -979,7 +1113,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
979
1113
|
|
|
980
1114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
981
1115
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
982
|
-
var
|
|
1116
|
+
var make3 = makeLatch;
|
|
983
1117
|
|
|
984
1118
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
985
1119
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -993,7 +1127,7 @@ var MutableRefProto = {
|
|
|
993
1127
|
};
|
|
994
1128
|
}
|
|
995
1129
|
};
|
|
996
|
-
var
|
|
1130
|
+
var make8 = (value) => {
|
|
997
1131
|
const ref = Object.create(MutableRefProto);
|
|
998
1132
|
ref.current = value;
|
|
999
1133
|
return ref;
|
|
@@ -1005,7 +1139,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1005
1139
|
|
|
1006
1140
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1007
1141
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1008
|
-
var
|
|
1142
|
+
var make4 = () => ({
|
|
1009
1143
|
head: undefined,
|
|
1010
1144
|
tail: undefined,
|
|
1011
1145
|
length: 0
|
|
@@ -1154,8 +1288,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1154
1288
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1155
1289
|
var TypeId3 = "~effect/PubSub";
|
|
1156
1290
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1157
|
-
var
|
|
1158
|
-
var unbounded = (options) =>
|
|
1291
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1292
|
+
var unbounded = (options) => make5({
|
|
1159
1293
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1160
1294
|
strategy: () => new DroppingStrategy
|
|
1161
1295
|
});
|
|
@@ -1249,7 +1383,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1249
1383
|
subscribers.delete(subscription);
|
|
1250
1384
|
}
|
|
1251
1385
|
};
|
|
1252
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
1386
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1253
1387
|
class UnboundedPubSub {
|
|
1254
1388
|
publisherHead = {
|
|
1255
1389
|
value: AbsentValue,
|
|
@@ -1666,12 +1800,12 @@ var QueueProto = {
|
|
|
1666
1800
|
};
|
|
1667
1801
|
}
|
|
1668
1802
|
};
|
|
1669
|
-
var
|
|
1803
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1670
1804
|
const self = Object.create(QueueProto);
|
|
1671
1805
|
self.dispatcher = fiber.currentDispatcher;
|
|
1672
1806
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1673
1807
|
self.strategy = options?.strategy ?? "suspend";
|
|
1674
|
-
self.messages =
|
|
1808
|
+
self.messages = make4();
|
|
1675
1809
|
self.scheduleRunning = false;
|
|
1676
1810
|
self.state = {
|
|
1677
1811
|
_tag: "Open",
|
|
@@ -1681,14 +1815,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1681
1815
|
};
|
|
1682
1816
|
return succeed2(self);
|
|
1683
1817
|
});
|
|
1684
|
-
var bounded = (capacity) =>
|
|
1818
|
+
var bounded = (capacity) => make9({
|
|
1685
1819
|
capacity
|
|
1686
1820
|
});
|
|
1687
|
-
var sliding = (capacity) =>
|
|
1821
|
+
var sliding = (capacity) => make9({
|
|
1688
1822
|
capacity,
|
|
1689
1823
|
strategy: "sliding"
|
|
1690
1824
|
});
|
|
1691
|
-
var unbounded2 = () =>
|
|
1825
|
+
var unbounded2 = () => make9();
|
|
1692
1826
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1693
1827
|
var offerUnsafe = (self, message) => {
|
|
1694
1828
|
if (self.state._tag !== "Open") {
|
|
@@ -2114,7 +2248,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2114
2248
|
return onError(pull, onCause);
|
|
2115
2249
|
}));
|
|
2116
2250
|
var toTransform = (channel) => channel.transform;
|
|
2117
|
-
var asyncQueue = (scope, f, options) =>
|
|
2251
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2118
2252
|
capacity: options?.bufferSize,
|
|
2119
2253
|
strategy: options?.strategy
|
|
2120
2254
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2155,7 +2289,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2155
2289
|
}));
|
|
2156
2290
|
var readableStreamToPullUnsafe = (options) => {
|
|
2157
2291
|
const reader = options.readable.getReader();
|
|
2158
|
-
const exit = options.exit ??
|
|
2292
|
+
const exit = options.exit ?? make8(undefined);
|
|
2159
2293
|
const pull = suspend3(() => {
|
|
2160
2294
|
if (exit.current)
|
|
2161
2295
|
return exit.current;
|
|
@@ -2323,7 +2457,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2323
2457
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2324
2458
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2325
2459
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2326
|
-
const doneLatch = yield*
|
|
2460
|
+
const doneLatch = yield* make3(true);
|
|
2327
2461
|
const fibers = new Map;
|
|
2328
2462
|
const queue = yield* bounded(bufferSize);
|
|
2329
2463
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2660,7 +2794,7 @@ class RcRefImpl {
|
|
|
2660
2794
|
this.idleTimeToLive = idleTimeToLive;
|
|
2661
2795
|
}
|
|
2662
2796
|
}
|
|
2663
|
-
var
|
|
2797
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2664
2798
|
const context = fiber.context;
|
|
2665
2799
|
const scope = get4(context, Scope);
|
|
2666
2800
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -2769,7 +2903,7 @@ var release = (self, state) => {
|
|
|
2769
2903
|
};
|
|
2770
2904
|
|
|
2771
2905
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2772
|
-
var
|
|
2906
|
+
var make10 = make6;
|
|
2773
2907
|
var get3 = get2;
|
|
2774
2908
|
|
|
2775
2909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2781,7 +2915,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2781
2915
|
var toChannel2 = (stream) => stream.channel;
|
|
2782
2916
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2783
2917
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2784
|
-
var
|
|
2918
|
+
var make11 = (...values) => fromArray2(values);
|
|
2785
2919
|
var suspend = (stream) => {
|
|
2786
2920
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2787
2921
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2946,10 +3080,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
2946
3080
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
2947
3081
|
var TypeId10 = "~effect/FileSystem";
|
|
2948
3082
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
2949
|
-
var
|
|
3083
|
+
var make12 = (impl) => FileSystem.of({
|
|
2950
3084
|
...impl,
|
|
2951
3085
|
[TypeId10]: TypeId10,
|
|
2952
|
-
glob:
|
|
3086
|
+
glob: make2(impl),
|
|
2953
3087
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
2954
3088
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
2955
3089
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3006,7 +3140,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3006
3140
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3007
3141
|
var TypeId11 = "~effect/Path";
|
|
3008
3142
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3009
|
-
var
|
|
3143
|
+
var make13 = (impl) => Path.of({
|
|
3010
3144
|
...impl,
|
|
3011
3145
|
[TypeId11]: TypeId11,
|
|
3012
3146
|
resolveWithin(root, input) {
|
|
@@ -3081,7 +3215,7 @@ function makeProvider(load, mapInput) {
|
|
|
3081
3215
|
function makeSource(get, transform) {
|
|
3082
3216
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3083
3217
|
}
|
|
3084
|
-
function
|
|
3218
|
+
function make7(get) {
|
|
3085
3219
|
return makeSource(get, identityPath);
|
|
3086
3220
|
}
|
|
3087
3221
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3090,7 +3224,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3090
3224
|
function fromEnvRecord(env, options) {
|
|
3091
3225
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3092
3226
|
const trie = buildEnvTrie(env);
|
|
3093
|
-
return
|
|
3227
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3094
3228
|
}
|
|
3095
3229
|
function fromEnv(options) {
|
|
3096
3230
|
const env = options?.env ?? {
|
|
@@ -3172,7 +3306,7 @@ var Proto2 = {
|
|
|
3172
3306
|
};
|
|
3173
3307
|
}
|
|
3174
3308
|
};
|
|
3175
|
-
function
|
|
3309
|
+
function make14(evaluator) {
|
|
3176
3310
|
const self = Object.create(Proto2);
|
|
3177
3311
|
self.evaluator = evaluator;
|
|
3178
3312
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3180,14 +3314,14 @@ function make13(evaluator) {
|
|
|
3180
3314
|
}
|
|
3181
3315
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3182
3316
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3183
|
-
return
|
|
3317
|
+
return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3184
3318
|
});
|
|
3185
3319
|
function all(arg) {
|
|
3186
3320
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3187
|
-
return
|
|
3321
|
+
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));
|
|
3188
3322
|
}
|
|
3189
3323
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3190
|
-
return
|
|
3324
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3191
3325
|
});
|
|
3192
3326
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3193
3327
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3306,7 +3440,7 @@ function schema(codec, path) {
|
|
|
3306
3440
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3307
3441
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3308
3442
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3309
|
-
return
|
|
3443
|
+
return make14((provider, pathPrefix) => {
|
|
3310
3444
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3311
3445
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3312
3446
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3418,4 +3552,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3418
3552
|
...argv
|
|
3419
3553
|
];
|
|
3420
3554
|
|
|
3421
|
-
export { map, makeEquivalence, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3555
|
+
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, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|