@kitman-sh/cli 0.52.0 → 0.53.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-qsbq9gvr.js → chunk-1zvfqdby.js} +193 -350
- package/dist/{chunk-eqh0h088.js → chunk-38prvh9d.js} +28 -25
- package/dist/{chunk-a40yta1r.js → chunk-5bpp6k0h.js} +3 -3
- package/dist/{chunk-wxg9k10v.js → chunk-5tgpa02q.js} +1 -1
- package/dist/{chunk-pppryg54.js → chunk-72ht3484.js} +6 -6
- package/dist/{chunk-wb04fv2s.js → chunk-7enqpa5x.js} +34 -34
- package/dist/{chunk-9hde8p6b.js → chunk-7y50jhm7.js} +6 -6
- package/dist/{chunk-2nq80r46.js → chunk-8r9k7pqk.js} +19 -59
- package/dist/{chunk-2t1hcdeq.js → chunk-ab7r6p1s.js} +21 -19
- package/dist/{chunk-q2z8rct0.js → chunk-ag79vvjy.js} +4 -4
- package/dist/{chunk-5yygjn0k.js → chunk-apv9h5tz.js} +1 -1
- package/dist/{chunk-mmt6xq48.js → chunk-brbym443.js} +2 -2
- package/dist/{chunk-trtgab3h.js → chunk-c6yxzkz2.js} +11 -19
- package/dist/{chunk-h5ydhdhx.js → chunk-c9vcvseh.js} +23 -23
- package/dist/{chunk-my9db578.js → chunk-cy13pst5.js} +4 -4
- package/dist/{chunk-chbdcf34.js → chunk-e627b064.js} +15 -9
- package/dist/{chunk-bj0zchck.js → chunk-hyaq30ne.js} +188 -179
- package/dist/{chunk-84qb67e2.js → chunk-jh5vjc8h.js} +1 -1
- package/dist/{chunk-xbqd3kqc.js → chunk-jwr750jd.js} +21 -21
- package/dist/{chunk-tqspx38s.js → chunk-k1fdsn2c.js} +1 -1
- package/dist/{chunk-tfznw549.js → chunk-n00cpb86.js} +2 -2
- package/dist/{chunk-zb4t1yrt.js → chunk-n381rqax.js} +257 -71
- package/dist/{chunk-bhz25x76.js → chunk-qfwhsqej.js} +3 -3
- package/dist/{chunk-kt26vpwf.js → chunk-stx87en6.js} +9 -9
- package/dist/{chunk-axfp5tzk.js → chunk-vdaq7292.js} +7 -7
- package/dist/{chunk-qjfzcrv5.js → chunk-y52g539d.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -34,8 +34,11 @@ import {
|
|
|
34
34
|
getOrUndefined,
|
|
35
35
|
map4,
|
|
36
36
|
Service2,
|
|
37
|
-
|
|
37
|
+
add,
|
|
38
|
+
get4,
|
|
38
39
|
Reference,
|
|
40
|
+
fromInputUnsafe,
|
|
41
|
+
isFinite,
|
|
39
42
|
normalize,
|
|
40
43
|
succeed,
|
|
41
44
|
fail3,
|
|
@@ -79,13 +82,12 @@ import {
|
|
|
79
82
|
fiberRunIn,
|
|
80
83
|
makeLatchUnsafe,
|
|
81
84
|
makeLatch,
|
|
82
|
-
ClockRef,
|
|
83
|
-
currentTimeMillis2,
|
|
84
85
|
succeed3,
|
|
85
86
|
failCause2,
|
|
86
87
|
fail4,
|
|
87
88
|
interrupt2,
|
|
88
89
|
void_2,
|
|
90
|
+
isSuccess2,
|
|
89
91
|
isFailure2,
|
|
90
92
|
asVoidAll,
|
|
91
93
|
makeUnsafe5,
|
|
@@ -157,12 +159,14 @@ import {
|
|
|
157
159
|
tapError2,
|
|
158
160
|
ignoreCause,
|
|
159
161
|
orElseSucceed,
|
|
162
|
+
sleep,
|
|
160
163
|
raceFirst,
|
|
161
164
|
when,
|
|
162
165
|
matchCauseEffect,
|
|
163
166
|
context,
|
|
164
167
|
contextWith,
|
|
165
168
|
provideContext2,
|
|
169
|
+
scope2,
|
|
166
170
|
scoped,
|
|
167
171
|
scopedWith,
|
|
168
172
|
acquireRelease,
|
|
@@ -173,6 +177,7 @@ import {
|
|
|
173
177
|
interrupt3,
|
|
174
178
|
onInterrupt,
|
|
175
179
|
uninterruptible,
|
|
180
|
+
uninterruptibleMask2,
|
|
176
181
|
forever,
|
|
177
182
|
forkChild,
|
|
178
183
|
forkIn,
|
|
@@ -184,6 +189,7 @@ import {
|
|
|
184
189
|
mapEager,
|
|
185
190
|
flatMapEager,
|
|
186
191
|
catchEager,
|
|
192
|
+
fromInputUnsafe2,
|
|
187
193
|
Pointer,
|
|
188
194
|
passthrough,
|
|
189
195
|
transformEffect,
|
|
@@ -195,11 +201,11 @@ import {
|
|
|
195
201
|
toEncoded,
|
|
196
202
|
decodeUnknownEffect,
|
|
197
203
|
SchemaError,
|
|
198
|
-
|
|
204
|
+
make17,
|
|
199
205
|
String4,
|
|
200
206
|
toCodecStringTree,
|
|
201
207
|
encodeUnknownJsonStringSync
|
|
202
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-n381rqax.js";
|
|
203
209
|
|
|
204
210
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
205
211
|
var headUnsafe = (self) => {
|
|
@@ -249,145 +255,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
249
255
|
return (self, that) => is(self, that) && is(that, self);
|
|
250
256
|
};
|
|
251
257
|
|
|
252
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
253
|
-
var Clock = ClockRef;
|
|
254
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
255
|
-
|
|
256
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
257
|
-
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
258
|
-
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
259
|
-
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
260
|
-
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
261
|
-
var decimalUnits = [{
|
|
262
|
-
symbol: "B",
|
|
263
|
-
factor: bigint1,
|
|
264
|
-
names: ["B", "byte", "bytes"]
|
|
265
|
-
}, {
|
|
266
|
-
symbol: "kB",
|
|
267
|
-
factor: decimalBase,
|
|
268
|
-
names: ["kB", "kilobyte", "kilobytes"]
|
|
269
|
-
}, {
|
|
270
|
-
symbol: "MB",
|
|
271
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
272
|
-
names: ["MB", "megabyte", "megabytes"]
|
|
273
|
-
}, {
|
|
274
|
-
symbol: "GB",
|
|
275
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
276
|
-
names: ["GB", "gigabyte", "gigabytes"]
|
|
277
|
-
}, {
|
|
278
|
-
symbol: "TB",
|
|
279
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
280
|
-
names: ["TB", "terabyte", "terabytes"]
|
|
281
|
-
}, {
|
|
282
|
-
symbol: "PB",
|
|
283
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
284
|
-
names: ["PB", "petabyte", "petabytes"]
|
|
285
|
-
}, {
|
|
286
|
-
symbol: "EB",
|
|
287
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
288
|
-
names: ["EB", "exabyte", "exabytes"]
|
|
289
|
-
}, {
|
|
290
|
-
symbol: "ZB",
|
|
291
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
292
|
-
names: ["ZB", "zettabyte", "zettabytes"]
|
|
293
|
-
}, {
|
|
294
|
-
symbol: "YB",
|
|
295
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
296
|
-
names: ["YB", "yottabyte", "yottabytes"]
|
|
297
|
-
}, {
|
|
298
|
-
symbol: "RB",
|
|
299
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
300
|
-
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
301
|
-
}, {
|
|
302
|
-
symbol: "QB",
|
|
303
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
304
|
-
names: ["QB", "quettabyte", "quettabytes"]
|
|
305
|
-
}];
|
|
306
|
-
var binaryUnits = [decimalUnits[0], {
|
|
307
|
-
symbol: "KiB",
|
|
308
|
-
factor: binaryBase,
|
|
309
|
-
names: ["KiB", "kibibyte", "kibibytes"]
|
|
310
|
-
}, {
|
|
311
|
-
symbol: "MiB",
|
|
312
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
313
|
-
names: ["MiB", "mebibyte", "mebibytes"]
|
|
314
|
-
}, {
|
|
315
|
-
symbol: "GiB",
|
|
316
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
317
|
-
names: ["GiB", "gibibyte", "gibibytes"]
|
|
318
|
-
}, {
|
|
319
|
-
symbol: "TiB",
|
|
320
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
321
|
-
names: ["TiB", "tebibyte", "tebibytes"]
|
|
322
|
-
}, {
|
|
323
|
-
symbol: "PiB",
|
|
324
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
325
|
-
names: ["PiB", "pebibyte", "pebibytes"]
|
|
326
|
-
}, {
|
|
327
|
-
symbol: "EiB",
|
|
328
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
329
|
-
names: ["EiB", "exbibyte", "exbibytes"]
|
|
330
|
-
}, {
|
|
331
|
-
symbol: "ZiB",
|
|
332
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
333
|
-
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
334
|
-
}, {
|
|
335
|
-
symbol: "YiB",
|
|
336
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
337
|
-
names: ["YiB", "yobibyte", "yobibytes"]
|
|
338
|
-
}];
|
|
339
|
-
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
340
|
-
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
341
|
-
var make = (value) => value;
|
|
342
|
-
var invalid = (message) => {
|
|
343
|
-
throw new Error(`Invalid ByteSize: ${message}`);
|
|
344
|
-
};
|
|
345
|
-
var fromNumber = (input) => {
|
|
346
|
-
if (!Number.isSafeInteger(input) || input < 0) {
|
|
347
|
-
return invalid(`expected a non-negative safe integer, received ${input}`);
|
|
348
|
-
}
|
|
349
|
-
return make(BigInt(input));
|
|
350
|
-
};
|
|
351
|
-
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
352
|
-
var scaleDecimal = (quantity, factor) => {
|
|
353
|
-
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
354
|
-
if (match === null)
|
|
355
|
-
return;
|
|
356
|
-
const fraction = match[2] ?? "";
|
|
357
|
-
const numerator = BigInt(match[1] + fraction) * factor;
|
|
358
|
-
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
359
|
-
if (shift >= 0)
|
|
360
|
-
return numerator * BigInt(10) ** BigInt(shift);
|
|
361
|
-
const scale = BigInt(10) ** BigInt(-shift);
|
|
362
|
-
return numerator % scale === bigint0 ? numerator / scale : undefined;
|
|
363
|
-
};
|
|
364
|
-
var fromStringUnsafe = (input) => {
|
|
365
|
-
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
366
|
-
if (match === null)
|
|
367
|
-
return invalid(`unsupported syntax ${JSON.stringify(input)}`);
|
|
368
|
-
const unit = unitsByName.get(match[2]);
|
|
369
|
-
if (unit === undefined)
|
|
370
|
-
return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
371
|
-
const value = scaleDecimal(match[1], unit.factor);
|
|
372
|
-
if (value === undefined)
|
|
373
|
-
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
374
|
-
return make(value);
|
|
375
|
-
};
|
|
376
|
-
var fromInputUnsafe = (input) => {
|
|
377
|
-
switch (typeof input) {
|
|
378
|
-
case "bigint":
|
|
379
|
-
if (input < bigint0)
|
|
380
|
-
return invalid(`expected a non-negative bigint, received ${input}`);
|
|
381
|
-
return make(input);
|
|
382
|
-
case "number":
|
|
383
|
-
return fromNumber(input);
|
|
384
|
-
case "string":
|
|
385
|
-
return fromStringUnsafe(input);
|
|
386
|
-
}
|
|
387
|
-
return invalid(`unsupported input ${input}`);
|
|
388
|
-
};
|
|
389
|
-
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
390
|
-
|
|
391
258
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
392
259
|
var join = fiberJoin;
|
|
393
260
|
var interrupt = fiberInterrupt;
|
|
@@ -941,7 +808,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
941
808
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
942
809
|
var DIRECTORY_CONCURRENCY = 16;
|
|
943
810
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
944
|
-
var
|
|
811
|
+
var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
945
812
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
946
813
|
if (compiled.initial.size === 0) {
|
|
947
814
|
return [];
|
|
@@ -1119,7 +986,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
1119
986
|
|
|
1120
987
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
1121
988
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
1122
|
-
var
|
|
989
|
+
var make2 = makeLatch;
|
|
1123
990
|
|
|
1124
991
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
1125
992
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -1133,7 +1000,7 @@ var MutableRefProto = {
|
|
|
1133
1000
|
};
|
|
1134
1001
|
}
|
|
1135
1002
|
};
|
|
1136
|
-
var
|
|
1003
|
+
var make7 = (value) => {
|
|
1137
1004
|
const ref = Object.create(MutableRefProto);
|
|
1138
1005
|
ref.current = value;
|
|
1139
1006
|
return ref;
|
|
@@ -1145,7 +1012,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1145
1012
|
|
|
1146
1013
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1147
1014
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1148
|
-
var
|
|
1015
|
+
var make3 = () => ({
|
|
1149
1016
|
head: undefined,
|
|
1150
1017
|
tail: undefined,
|
|
1151
1018
|
length: 0
|
|
@@ -1294,8 +1161,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1294
1161
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1295
1162
|
var TypeId3 = "~effect/PubSub";
|
|
1296
1163
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1297
|
-
var
|
|
1298
|
-
var unbounded = (options) =>
|
|
1164
|
+
var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1165
|
+
var unbounded = (options) => make4({
|
|
1299
1166
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1300
1167
|
strategy: () => new DroppingStrategy
|
|
1301
1168
|
});
|
|
@@ -1313,7 +1180,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1313
1180
|
return false;
|
|
1314
1181
|
});
|
|
1315
1182
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1316
|
-
const localScope =
|
|
1183
|
+
const localScope = get4(services, Scope);
|
|
1317
1184
|
const scope = forkUnsafe2(self.scope);
|
|
1318
1185
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1319
1186
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1389,7 +1256,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1389
1256
|
subscribers.delete(subscription);
|
|
1390
1257
|
}
|
|
1391
1258
|
};
|
|
1392
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
1259
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1393
1260
|
class UnboundedPubSub {
|
|
1394
1261
|
publisherHead = {
|
|
1395
1262
|
value: AbsentValue,
|
|
@@ -1806,12 +1673,12 @@ var QueueProto = {
|
|
|
1806
1673
|
};
|
|
1807
1674
|
}
|
|
1808
1675
|
};
|
|
1809
|
-
var
|
|
1676
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1810
1677
|
const self = Object.create(QueueProto);
|
|
1811
1678
|
self.dispatcher = fiber.currentDispatcher;
|
|
1812
1679
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1813
1680
|
self.strategy = options?.strategy ?? "suspend";
|
|
1814
|
-
self.messages =
|
|
1681
|
+
self.messages = make3();
|
|
1815
1682
|
self.scheduleRunning = false;
|
|
1816
1683
|
self.state = {
|
|
1817
1684
|
_tag: "Open",
|
|
@@ -1821,14 +1688,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1821
1688
|
};
|
|
1822
1689
|
return succeed2(self);
|
|
1823
1690
|
});
|
|
1824
|
-
var bounded = (capacity) =>
|
|
1691
|
+
var bounded = (capacity) => make8({
|
|
1825
1692
|
capacity
|
|
1826
1693
|
});
|
|
1827
|
-
var sliding = (capacity) =>
|
|
1694
|
+
var sliding = (capacity) => make8({
|
|
1828
1695
|
capacity,
|
|
1829
1696
|
strategy: "sliding"
|
|
1830
1697
|
});
|
|
1831
|
-
var unbounded2 = () =>
|
|
1698
|
+
var unbounded2 = () => make8();
|
|
1832
1699
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1833
1700
|
var offerUnsafe = (self, message) => {
|
|
1834
1701
|
if (self.state._tag !== "Open") {
|
|
@@ -2254,7 +2121,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2254
2121
|
return onError(pull, onCause);
|
|
2255
2122
|
}));
|
|
2256
2123
|
var toTransform = (channel) => channel.transform;
|
|
2257
|
-
var asyncQueue = (scope, f, options) =>
|
|
2124
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2258
2125
|
capacity: options?.bufferSize,
|
|
2259
2126
|
strategy: options?.strategy
|
|
2260
2127
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2295,7 +2162,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2295
2162
|
}));
|
|
2296
2163
|
var readableStreamToPullUnsafe = (options) => {
|
|
2297
2164
|
const reader = options.readable.getReader();
|
|
2298
|
-
const exit = options.exit ??
|
|
2165
|
+
const exit = options.exit ?? make7(undefined);
|
|
2299
2166
|
const pull = suspend3(() => {
|
|
2300
2167
|
if (exit.current)
|
|
2301
2168
|
return exit.current;
|
|
@@ -2503,7 +2370,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2503
2370
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2504
2371
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2505
2372
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2506
|
-
const doneLatch = yield*
|
|
2373
|
+
const doneLatch = yield* make2(true);
|
|
2507
2374
|
const fibers = new Map;
|
|
2508
2375
|
const queue = yield* bounded(bufferSize);
|
|
2509
2376
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2756,7 +2623,7 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
|
|
|
2756
2623
|
var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
|
|
2757
2624
|
const semaphore = makeUnsafe3(1);
|
|
2758
2625
|
const context2 = yield* context();
|
|
2759
|
-
const scope =
|
|
2626
|
+
const scope = get4(context2, Scope);
|
|
2760
2627
|
const pull = yield* toTransform(self)(done(), scope);
|
|
2761
2628
|
return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
|
|
2762
2629
|
}, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
|
|
@@ -2817,9 +2684,151 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2817
2684
|
}), catchDone(() => endVoid)));
|
|
2818
2685
|
var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
|
|
2819
2686
|
|
|
2687
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2688
|
+
var TypeId8 = "~effect/RcRef";
|
|
2689
|
+
var stateEmpty = {
|
|
2690
|
+
_tag: "Empty"
|
|
2691
|
+
};
|
|
2692
|
+
var stateClosed = {
|
|
2693
|
+
_tag: "Closed"
|
|
2694
|
+
};
|
|
2695
|
+
var variance2 = {
|
|
2696
|
+
_A: identity,
|
|
2697
|
+
_E: identity
|
|
2698
|
+
};
|
|
2699
|
+
|
|
2700
|
+
class RcRefImpl {
|
|
2701
|
+
[TypeId8] = variance2;
|
|
2702
|
+
pipe() {
|
|
2703
|
+
return pipeArguments(this, arguments);
|
|
2704
|
+
}
|
|
2705
|
+
state = stateEmpty;
|
|
2706
|
+
acquire;
|
|
2707
|
+
context;
|
|
2708
|
+
scope;
|
|
2709
|
+
idleTimeToLive;
|
|
2710
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2711
|
+
this.acquire = acquire;
|
|
2712
|
+
this.context = context;
|
|
2713
|
+
this.scope = scope;
|
|
2714
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2715
|
+
}
|
|
2716
|
+
}
|
|
2717
|
+
var make5 = (options) => withFiber2((fiber) => {
|
|
2718
|
+
const context = fiber.context;
|
|
2719
|
+
const scope = get4(context, Scope);
|
|
2720
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2721
|
+
return as(addFinalizerExit(scope, () => {
|
|
2722
|
+
const state = ref.state;
|
|
2723
|
+
ref.state = stateClosed;
|
|
2724
|
+
if (state._tag === "Acquired")
|
|
2725
|
+
return close(state.scope, void_2);
|
|
2726
|
+
if (state._tag === "Acquiring")
|
|
2727
|
+
return interrupt(state.fiber);
|
|
2728
|
+
return void_3;
|
|
2729
|
+
}), ref);
|
|
2730
|
+
});
|
|
2731
|
+
var getState = (self, restore) => {
|
|
2732
|
+
switch (self.state._tag) {
|
|
2733
|
+
case "Closed": {
|
|
2734
|
+
return interrupt3;
|
|
2735
|
+
}
|
|
2736
|
+
case "Acquired": {
|
|
2737
|
+
const state = self.state;
|
|
2738
|
+
state.refCount++;
|
|
2739
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2740
|
+
}
|
|
2741
|
+
case "Acquiring": {
|
|
2742
|
+
const state = self.state;
|
|
2743
|
+
state.awaiters++;
|
|
2744
|
+
return awaitAcquiring(self, state, restore);
|
|
2745
|
+
}
|
|
2746
|
+
case "Empty": {
|
|
2747
|
+
const acquiring = {
|
|
2748
|
+
_tag: "Acquiring",
|
|
2749
|
+
fiber: undefined,
|
|
2750
|
+
awaiters: 1,
|
|
2751
|
+
acquired: undefined
|
|
2752
|
+
};
|
|
2753
|
+
self.state = acquiring;
|
|
2754
|
+
const scope = makeUnsafe6();
|
|
2755
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2756
|
+
if (self.state !== acquiring) {
|
|
2757
|
+
return interrupt3;
|
|
2758
|
+
}
|
|
2759
|
+
const state = {
|
|
2760
|
+
_tag: "Acquired",
|
|
2761
|
+
value,
|
|
2762
|
+
scope,
|
|
2763
|
+
fiber: undefined,
|
|
2764
|
+
refCount: acquiring.awaiters,
|
|
2765
|
+
invalidated: false
|
|
2766
|
+
};
|
|
2767
|
+
self.state = state;
|
|
2768
|
+
acquiring.acquired = state;
|
|
2769
|
+
return succeed6(state);
|
|
2770
|
+
}), onExit((exit) => {
|
|
2771
|
+
if (isSuccess2(exit))
|
|
2772
|
+
return void_3;
|
|
2773
|
+
if (self.state === acquiring)
|
|
2774
|
+
self.state = stateEmpty;
|
|
2775
|
+
return close(scope, exit);
|
|
2776
|
+
}));
|
|
2777
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2778
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
};
|
|
2782
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2783
|
+
const acquired = acquiring.acquired;
|
|
2784
|
+
if (acquired !== undefined) {
|
|
2785
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2786
|
+
}
|
|
2787
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2788
|
+
return void_3;
|
|
2789
|
+
self.state = stateEmpty;
|
|
2790
|
+
return interrupt(acquiring.fiber);
|
|
2791
|
+
});
|
|
2792
|
+
var get2 = (self_) => {
|
|
2793
|
+
const self = self_;
|
|
2794
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2795
|
+
};
|
|
2796
|
+
var release = (self, state) => {
|
|
2797
|
+
state.refCount--;
|
|
2798
|
+
if (state.refCount > 0) {
|
|
2799
|
+
return void_3;
|
|
2800
|
+
}
|
|
2801
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2802
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2803
|
+
if (self.state === state) {
|
|
2804
|
+
self.state = stateEmpty;
|
|
2805
|
+
}
|
|
2806
|
+
return close(state.scope, void_2);
|
|
2807
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2808
|
+
return void_3;
|
|
2809
|
+
}
|
|
2810
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2811
|
+
if (self.state === state && state.refCount === 0) {
|
|
2812
|
+
self.state = stateEmpty;
|
|
2813
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2814
|
+
log: "Unhandled",
|
|
2815
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2816
|
+
});
|
|
2817
|
+
}
|
|
2818
|
+
return void_3;
|
|
2819
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2820
|
+
state.fiber = undefined;
|
|
2821
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2822
|
+
return void_3;
|
|
2823
|
+
};
|
|
2824
|
+
|
|
2825
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2826
|
+
var make9 = make5;
|
|
2827
|
+
var get3 = get2;
|
|
2828
|
+
|
|
2820
2829
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2821
|
-
var
|
|
2822
|
-
var isStream = (u) => hasProperty(u,
|
|
2830
|
+
var TypeId9 = "~effect/Stream";
|
|
2831
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2823
2832
|
var fromChannel2 = fromChannel3;
|
|
2824
2833
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2825
2834
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
@@ -3025,12 +3034,12 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3025
3034
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3026
3035
|
|
|
3027
3036
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3028
|
-
var
|
|
3037
|
+
var TypeId10 = "~effect/FileSystem";
|
|
3029
3038
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3030
3039
|
var make11 = (impl) => FileSystem.of({
|
|
3031
3040
|
...impl,
|
|
3032
|
-
[
|
|
3033
|
-
glob:
|
|
3041
|
+
[TypeId10]: TypeId10,
|
|
3042
|
+
glob: make(impl),
|
|
3034
3043
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3035
3044
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
3036
3045
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3045,11 +3054,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3045
3054
|
const file = yield* impl.open(path, {
|
|
3046
3055
|
flag: "r"
|
|
3047
3056
|
});
|
|
3048
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3057
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
3049
3058
|
if (offset) {
|
|
3050
3059
|
yield* file.seek(offset, "start");
|
|
3051
3060
|
}
|
|
3052
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3061
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
3053
3062
|
let totalBytesRead = BigInt(0);
|
|
3054
3063
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3055
3064
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3085,11 +3094,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3085
3094
|
}
|
|
3086
3095
|
|
|
3087
3096
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3088
|
-
var
|
|
3097
|
+
var TypeId11 = "~effect/Path";
|
|
3089
3098
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3090
3099
|
var make12 = (impl) => Path.of({
|
|
3091
3100
|
...impl,
|
|
3092
|
-
[
|
|
3101
|
+
[TypeId11]: TypeId11,
|
|
3093
3102
|
resolveWithin(root, input) {
|
|
3094
3103
|
if (impl.parse(input).root !== "")
|
|
3095
3104
|
return none();
|
|
@@ -3224,7 +3233,7 @@ function trieNodeAt(root, path) {
|
|
|
3224
3233
|
}
|
|
3225
3234
|
|
|
3226
3235
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3227
|
-
var
|
|
3236
|
+
var TypeId12 = "~effect/Config";
|
|
3228
3237
|
class ConfigError {
|
|
3229
3238
|
_tag = "ConfigError";
|
|
3230
3239
|
name = "ConfigError";
|
|
@@ -3246,14 +3255,14 @@ var Proto2 = {
|
|
|
3246
3255
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3247
3256
|
}
|
|
3248
3257
|
}),
|
|
3249
|
-
[
|
|
3258
|
+
[TypeId12]: TypeId12,
|
|
3250
3259
|
toJSON() {
|
|
3251
3260
|
return {
|
|
3252
3261
|
_id: "Config"
|
|
3253
3262
|
};
|
|
3254
3263
|
}
|
|
3255
3264
|
};
|
|
3256
|
-
function
|
|
3265
|
+
function make13(evaluator) {
|
|
3257
3266
|
const self = Object.create(Proto2);
|
|
3258
3267
|
self.evaluator = evaluator;
|
|
3259
3268
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3261,14 +3270,14 @@ function make7(evaluator) {
|
|
|
3261
3270
|
}
|
|
3262
3271
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3263
3272
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3264
|
-
return
|
|
3273
|
+
return make13((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3265
3274
|
});
|
|
3266
3275
|
function all(arg) {
|
|
3267
3276
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3268
|
-
return
|
|
3277
|
+
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));
|
|
3269
3278
|
}
|
|
3270
3279
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3271
|
-
return
|
|
3280
|
+
return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3272
3281
|
});
|
|
3273
3282
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3274
3283
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3385,9 +3394,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3385
3394
|
function schema(codec, path) {
|
|
3386
3395
|
const codecStringTree = toCodecStringTree(codec);
|
|
3387
3396
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3388
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3397
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3389
3398
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3390
|
-
return
|
|
3399
|
+
return make13((provider, pathPrefix) => {
|
|
3391
3400
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3392
3401
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3393
3402
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3517,4 +3526,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3517
3526
|
...argv
|
|
3518
3527
|
];
|
|
3519
3528
|
|
|
3520
|
-
export { empty2, map, makeEquivalence,
|
|
3529
|
+
export { empty2, map, makeEquivalence, join, interrupt, interruptAll, 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, empty3, make10, 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, make11, FileTypeId, WatchBackend, Path, make12, 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 };
|
|
@@ -35,7 +35,15 @@ import {
|
|
|
35
35
|
toCodecJson,
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-n381rqax.js";
|
|
39
|
+
import {
|
|
40
|
+
decodeText,
|
|
41
|
+
mkString,
|
|
42
|
+
FileSystem,
|
|
43
|
+
Path,
|
|
44
|
+
withDefault,
|
|
45
|
+
String2
|
|
46
|
+
} from "./chunk-hyaq30ne.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-bj0zchck.js";
|
|
63
|
+
} from "./chunk-1zvfqdby.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-5bpp6k0h.js";
|
|
68
|
+
import {
|
|
69
|
+
ChildProcessSpawner,
|
|
70
|
+
make2
|
|
71
|
+
} from "./chunk-8r9k7pqk.js";
|
|
68
72
|
import {
|
|
69
73
|
stepDefinedTwice,
|
|
70
74
|
hostSteps,
|
|
71
75
|
exports_activities,
|
|
72
76
|
describeFlag,
|
|
73
77
|
Described
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import"./chunk-
|
|
76
|
-
import"./chunk-
|
|
77
|
-
import
|
|
78
|
-
|
|
79
|
-
make3
|
|
80
|
-
} from "./chunk-2nq80r46.js";
|
|
81
|
-
import"./chunk-2t1hcdeq.js";
|
|
82
|
-
import"./chunk-wxg9k10v.js";
|
|
78
|
+
} from "./chunk-e627b064.js";
|
|
79
|
+
import"./chunk-stx87en6.js";
|
|
80
|
+
import"./chunk-k1fdsn2c.js";
|
|
81
|
+
import"./chunk-ab7r6p1s.js";
|
|
82
|
+
import"./chunk-5tgpa02q.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -4262,7 +4262,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
4262
4262
|
}));
|
|
4263
4263
|
var run = (command, args, cwd) => gen(function* () {
|
|
4264
4264
|
const spawner = yield* ChildProcessSpawner;
|
|
4265
|
-
const handle = yield* spawner.spawn(
|
|
4265
|
+
const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
|
|
4266
4266
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
4267
4267
|
mkString(decodeText(handle.stdout)),
|
|
4268
4268
|
mkString(decodeText(handle.stderr)),
|