@kitman-sh/cli 0.30.0 → 0.31.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-js64y97w.js → chunk-2sazk478.js} +4 -4
- package/dist/{chunk-msn6rrx9.js → chunk-38drrdzp.js} +4 -4
- package/dist/{chunk-cehbrs1y.js → chunk-5qrjf4xq.js} +5 -5
- package/dist/{chunk-samxkpbz.js → chunk-9a6wbk11.js} +3 -3
- package/dist/{chunk-sw0dadq5.js → chunk-9vqkjkya.js} +1 -1
- package/dist/{chunk-yr7np5eb.js → chunk-9yvknsnj.js} +3 -3
- package/dist/{chunk-39kjyh2y.js → chunk-emw9ragp.js} +21 -21
- package/dist/{chunk-d4h1p51s.js → chunk-fjdp3rd6.js} +24 -24
- package/dist/{chunk-my92qn4x.js → chunk-kx8rpa62.js} +10 -10
- package/dist/{chunk-5kqt4bqp.js → chunk-m1qp6swh.js} +1 -1
- package/dist/{chunk-3xg9zbmy.js → chunk-njgay1ed.js} +9 -9
- package/dist/{chunk-chxtmsns.js → chunk-nk0ew12p.js} +152 -109
- package/dist/{chunk-7j1kf6sa.js → chunk-nndgeync.js} +6 -6
- package/dist/{chunk-tsx0347c.js → chunk-pd3azxev.js} +1 -1
- package/dist/{chunk-wtea9nbk.js → chunk-qb11yda6.js} +24 -24
- package/dist/{chunk-bv4gcq1h.js → chunk-qbrkeg49.js} +7 -7
- package/dist/{chunk-1j38xtvp.js → chunk-qjxgew0k.js} +2 -2
- package/dist/{chunk-4qjfn1sa.js → chunk-r2kzvdrg.js} +1 -1
- package/dist/{chunk-yaa3gkpx.js → chunk-s4r49vbj.js} +9 -9
- package/dist/{chunk-gap0vmj7.js → chunk-vh2a72d1.js} +14 -60
- package/dist/{chunk-r7m32p2j.js → chunk-vwynec02.js} +1 -1
- package/dist/{chunk-0mg7k9b4.js → chunk-xxcxramy.js} +117 -118
- package/dist/{chunk-h2f26xbd.js → chunk-y64ssczv.js} +226 -40
- package/dist/{chunk-tbmht2qb.js → chunk-yjc2w86k.js} +10 -10
- package/dist/{chunk-63cyj9dh.js → chunk-z59pvcbk.js} +31 -174
- package/dist/{chunk-vz38kngm.js → chunk-zy21drtv.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -188,6 +188,7 @@ import {
|
|
|
188
188
|
mapEager,
|
|
189
189
|
flatMapEager,
|
|
190
190
|
catchEager,
|
|
191
|
+
fromInputUnsafe2,
|
|
191
192
|
Pointer,
|
|
192
193
|
passthrough,
|
|
193
194
|
transformEffect,
|
|
@@ -203,7 +204,7 @@ import {
|
|
|
203
204
|
String4,
|
|
204
205
|
toCodecStringTree,
|
|
205
206
|
encodeUnknownJsonStringSync
|
|
206
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-y64ssczv.js";
|
|
207
208
|
|
|
208
209
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
209
210
|
var headUnsafe = (self) => {
|
|
@@ -252,150 +253,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
252
253
|
return (self, that) => is(self, that) && is(that, self);
|
|
253
254
|
};
|
|
254
255
|
|
|
255
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
256
|
-
var BigInt2 = globalThis.BigInt;
|
|
257
|
-
var toNumber = (b) => {
|
|
258
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
259
|
-
return none();
|
|
260
|
-
}
|
|
261
|
-
return some(Number(b));
|
|
262
|
-
};
|
|
263
|
-
|
|
264
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
265
|
-
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
266
|
-
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
267
|
-
var decimalBase = /* @__PURE__ */ BigInt(1000);
|
|
268
|
-
var binaryBase = /* @__PURE__ */ BigInt(1024);
|
|
269
|
-
var decimalUnits = [{
|
|
270
|
-
symbol: "B",
|
|
271
|
-
factor: bigint1,
|
|
272
|
-
names: ["B", "byte", "bytes"]
|
|
273
|
-
}, {
|
|
274
|
-
symbol: "kB",
|
|
275
|
-
factor: decimalBase,
|
|
276
|
-
names: ["kB", "kilobyte", "kilobytes"]
|
|
277
|
-
}, {
|
|
278
|
-
symbol: "MB",
|
|
279
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(2),
|
|
280
|
-
names: ["MB", "megabyte", "megabytes"]
|
|
281
|
-
}, {
|
|
282
|
-
symbol: "GB",
|
|
283
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(3),
|
|
284
|
-
names: ["GB", "gigabyte", "gigabytes"]
|
|
285
|
-
}, {
|
|
286
|
-
symbol: "TB",
|
|
287
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(4),
|
|
288
|
-
names: ["TB", "terabyte", "terabytes"]
|
|
289
|
-
}, {
|
|
290
|
-
symbol: "PB",
|
|
291
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(5),
|
|
292
|
-
names: ["PB", "petabyte", "petabytes"]
|
|
293
|
-
}, {
|
|
294
|
-
symbol: "EB",
|
|
295
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(6),
|
|
296
|
-
names: ["EB", "exabyte", "exabytes"]
|
|
297
|
-
}, {
|
|
298
|
-
symbol: "ZB",
|
|
299
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(7),
|
|
300
|
-
names: ["ZB", "zettabyte", "zettabytes"]
|
|
301
|
-
}, {
|
|
302
|
-
symbol: "YB",
|
|
303
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(8),
|
|
304
|
-
names: ["YB", "yottabyte", "yottabytes"]
|
|
305
|
-
}, {
|
|
306
|
-
symbol: "RB",
|
|
307
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(9),
|
|
308
|
-
names: ["RB", "ronnabyte", "ronnabytes"]
|
|
309
|
-
}, {
|
|
310
|
-
symbol: "QB",
|
|
311
|
-
factor: decimalBase ** /* @__PURE__ */ BigInt(10),
|
|
312
|
-
names: ["QB", "quettabyte", "quettabytes"]
|
|
313
|
-
}];
|
|
314
|
-
var binaryUnits = [decimalUnits[0], {
|
|
315
|
-
symbol: "KiB",
|
|
316
|
-
factor: binaryBase,
|
|
317
|
-
names: ["KiB", "kibibyte", "kibibytes"]
|
|
318
|
-
}, {
|
|
319
|
-
symbol: "MiB",
|
|
320
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(2),
|
|
321
|
-
names: ["MiB", "mebibyte", "mebibytes"]
|
|
322
|
-
}, {
|
|
323
|
-
symbol: "GiB",
|
|
324
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(3),
|
|
325
|
-
names: ["GiB", "gibibyte", "gibibytes"]
|
|
326
|
-
}, {
|
|
327
|
-
symbol: "TiB",
|
|
328
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(4),
|
|
329
|
-
names: ["TiB", "tebibyte", "tebibytes"]
|
|
330
|
-
}, {
|
|
331
|
-
symbol: "PiB",
|
|
332
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(5),
|
|
333
|
-
names: ["PiB", "pebibyte", "pebibytes"]
|
|
334
|
-
}, {
|
|
335
|
-
symbol: "EiB",
|
|
336
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(6),
|
|
337
|
-
names: ["EiB", "exbibyte", "exbibytes"]
|
|
338
|
-
}, {
|
|
339
|
-
symbol: "ZiB",
|
|
340
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(7),
|
|
341
|
-
names: ["ZiB", "zebibyte", "zebibytes"]
|
|
342
|
-
}, {
|
|
343
|
-
symbol: "YiB",
|
|
344
|
-
factor: binaryBase ** /* @__PURE__ */ BigInt(8),
|
|
345
|
-
names: ["YiB", "yobibyte", "yobibytes"]
|
|
346
|
-
}];
|
|
347
|
-
var allUnits = [...decimalUnits, .../* @__PURE__ */ binaryUnits.slice(1)];
|
|
348
|
-
var unitsByName = /* @__PURE__ */ new Map(/* @__PURE__ */ allUnits.flatMap((unit) => unit.names.map((name) => [name, unit])));
|
|
349
|
-
var make = (value) => value;
|
|
350
|
-
var invalid = (message) => {
|
|
351
|
-
throw new Error(`Invalid ByteSize: ${message}`);
|
|
352
|
-
};
|
|
353
|
-
var fromNumber = (input) => {
|
|
354
|
-
if (!Number.isSafeInteger(input) || input < 0) {
|
|
355
|
-
return invalid(`expected a non-negative safe integer, received ${input}`);
|
|
356
|
-
}
|
|
357
|
-
return make(BigInt(input));
|
|
358
|
-
};
|
|
359
|
-
var maxSafeInteger = /* @__PURE__ */ BigInt(Number.MAX_SAFE_INTEGER);
|
|
360
|
-
var scaleDecimal = (quantity, factor) => {
|
|
361
|
-
const match = /^(\d+)(?:\.(\d+))?(?:e([+-]\d+))?$/.exec(quantity);
|
|
362
|
-
if (match === null)
|
|
363
|
-
return;
|
|
364
|
-
const fraction = match[2] ?? "";
|
|
365
|
-
const numerator = BigInt(match[1] + fraction) * factor;
|
|
366
|
-
const shift = Number(match[3] ?? 0) - fraction.length;
|
|
367
|
-
if (shift >= 0)
|
|
368
|
-
return numerator * BigInt(10) ** BigInt(shift);
|
|
369
|
-
const scale = BigInt(10) ** BigInt(-shift);
|
|
370
|
-
return numerator % scale === bigint0 ? numerator / scale : undefined;
|
|
371
|
-
};
|
|
372
|
-
var fromStringUnsafe = (input) => {
|
|
373
|
-
const match = /^\s*(\d+(?:\.\d+)?)\s*([A-Za-z]+)\s*$/.exec(input);
|
|
374
|
-
if (match === null)
|
|
375
|
-
return invalid(`unsupported syntax ${JSON.stringify(input)}`);
|
|
376
|
-
const unit = unitsByName.get(match[2]);
|
|
377
|
-
if (unit === undefined)
|
|
378
|
-
return invalid(`unsupported unit ${JSON.stringify(match[2])}`);
|
|
379
|
-
const value = scaleDecimal(match[1], unit.factor);
|
|
380
|
-
if (value === undefined)
|
|
381
|
-
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
382
|
-
return make(value);
|
|
383
|
-
};
|
|
384
|
-
var fromInputUnsafe2 = (input) => {
|
|
385
|
-
switch (typeof input) {
|
|
386
|
-
case "bigint":
|
|
387
|
-
if (input < bigint0)
|
|
388
|
-
return invalid(`expected a non-negative bigint, received ${input}`);
|
|
389
|
-
return make(input);
|
|
390
|
-
case "number":
|
|
391
|
-
return fromNumber(input);
|
|
392
|
-
case "string":
|
|
393
|
-
return fromStringUnsafe(input);
|
|
394
|
-
}
|
|
395
|
-
return invalid(`unsupported input ${input}`);
|
|
396
|
-
};
|
|
397
|
-
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
398
|
-
|
|
399
256
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
400
257
|
var join = fiberJoin;
|
|
401
258
|
var interrupt = fiberInterrupt;
|
|
@@ -948,7 +805,7 @@ var isIgnorable = (error) => isMissing(error) || error.reason._tag === "Permissi
|
|
|
948
805
|
var isNotLink = (error) => isIgnorable(error) || error.reason._tag === "Unknown";
|
|
949
806
|
var DIRECTORY_CONCURRENCY = 16;
|
|
950
807
|
var byName = /* @__PURE__ */ mapInput(String3, (entry) => entry.name);
|
|
951
|
-
var
|
|
808
|
+
var make = (fs) => (pattern, options) => walk(fs, compile([pattern], options?.dot ?? false), options);
|
|
952
809
|
var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
953
810
|
if (compiled.initial.size === 0) {
|
|
954
811
|
return [];
|
|
@@ -1126,7 +983,7 @@ var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
|
1126
983
|
|
|
1127
984
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
1128
985
|
var makeUnsafe2 = makeLatchUnsafe;
|
|
1129
|
-
var
|
|
986
|
+
var make2 = makeLatch;
|
|
1130
987
|
|
|
1131
988
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
1132
989
|
var TypeId2 = "~effect/MutableRef";
|
|
@@ -1140,7 +997,7 @@ var MutableRefProto = {
|
|
|
1140
997
|
};
|
|
1141
998
|
}
|
|
1142
999
|
};
|
|
1143
|
-
var
|
|
1000
|
+
var make7 = (value) => {
|
|
1144
1001
|
const ref = Object.create(MutableRefProto);
|
|
1145
1002
|
ref.current = value;
|
|
1146
1003
|
return ref;
|
|
@@ -1152,7 +1009,7 @@ var set = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1152
1009
|
|
|
1153
1010
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableList.js
|
|
1154
1011
|
var Empty = /* @__PURE__ */ Symbol.for("effect/MutableList/Empty");
|
|
1155
|
-
var
|
|
1012
|
+
var make3 = () => ({
|
|
1156
1013
|
head: undefined,
|
|
1157
1014
|
tail: undefined,
|
|
1158
1015
|
length: 0
|
|
@@ -1301,8 +1158,8 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1301
1158
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1302
1159
|
var TypeId3 = "~effect/PubSub";
|
|
1303
1160
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1304
|
-
var
|
|
1305
|
-
var unbounded = (options) =>
|
|
1161
|
+
var make4 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1162
|
+
var unbounded = (options) => make4({
|
|
1306
1163
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1307
1164
|
strategy: () => new DroppingStrategy
|
|
1308
1165
|
});
|
|
@@ -1396,7 +1253,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1396
1253
|
subscribers.delete(subscription);
|
|
1397
1254
|
}
|
|
1398
1255
|
};
|
|
1399
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(),
|
|
1256
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make3(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1400
1257
|
class UnboundedPubSub {
|
|
1401
1258
|
publisherHead = {
|
|
1402
1259
|
value: AbsentValue,
|
|
@@ -1813,12 +1670,12 @@ var QueueProto = {
|
|
|
1813
1670
|
};
|
|
1814
1671
|
}
|
|
1815
1672
|
};
|
|
1816
|
-
var
|
|
1673
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1817
1674
|
const self = Object.create(QueueProto);
|
|
1818
1675
|
self.dispatcher = fiber.currentDispatcher;
|
|
1819
1676
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
1820
1677
|
self.strategy = options?.strategy ?? "suspend";
|
|
1821
|
-
self.messages =
|
|
1678
|
+
self.messages = make3();
|
|
1822
1679
|
self.scheduleRunning = false;
|
|
1823
1680
|
self.state = {
|
|
1824
1681
|
_tag: "Open",
|
|
@@ -1828,14 +1685,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1828
1685
|
};
|
|
1829
1686
|
return succeed2(self);
|
|
1830
1687
|
});
|
|
1831
|
-
var bounded = (capacity) =>
|
|
1688
|
+
var bounded = (capacity) => make8({
|
|
1832
1689
|
capacity
|
|
1833
1690
|
});
|
|
1834
|
-
var sliding = (capacity) =>
|
|
1691
|
+
var sliding = (capacity) => make8({
|
|
1835
1692
|
capacity,
|
|
1836
1693
|
strategy: "sliding"
|
|
1837
1694
|
});
|
|
1838
|
-
var unbounded2 = () =>
|
|
1695
|
+
var unbounded2 = () => make8();
|
|
1839
1696
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1840
1697
|
var offerUnsafe = (self, message) => {
|
|
1841
1698
|
if (self.state._tag !== "Open") {
|
|
@@ -2261,7 +2118,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2261
2118
|
return onError(pull, onCause);
|
|
2262
2119
|
}));
|
|
2263
2120
|
var toTransform = (channel) => channel.transform;
|
|
2264
|
-
var asyncQueue = (scope, f, options) =>
|
|
2121
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2265
2122
|
capacity: options?.bufferSize,
|
|
2266
2123
|
strategy: options?.strategy
|
|
2267
2124
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2302,7 +2159,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2302
2159
|
}));
|
|
2303
2160
|
var readableStreamToPullUnsafe = (options) => {
|
|
2304
2161
|
const reader = options.readable.getReader();
|
|
2305
|
-
const exit = options.exit ??
|
|
2162
|
+
const exit = options.exit ?? make7(undefined);
|
|
2306
2163
|
const pull = suspend3(() => {
|
|
2307
2164
|
if (exit.current)
|
|
2308
2165
|
return exit.current;
|
|
@@ -2510,7 +2367,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2510
2367
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2511
2368
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2512
2369
|
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2513
|
-
const doneLatch = yield*
|
|
2370
|
+
const doneLatch = yield* make2(true);
|
|
2514
2371
|
const fibers = new Map;
|
|
2515
2372
|
const queue = yield* bounded(bufferSize);
|
|
2516
2373
|
yield* addFinalizer(forkedScope, shutdown(queue));
|
|
@@ -2847,7 +2704,7 @@ class RcRefImpl {
|
|
|
2847
2704
|
this.idleTimeToLive = idleTimeToLive;
|
|
2848
2705
|
}
|
|
2849
2706
|
}
|
|
2850
|
-
var
|
|
2707
|
+
var make5 = (options) => withFiber2((fiber) => {
|
|
2851
2708
|
const context = fiber.context;
|
|
2852
2709
|
const scope = get4(context, Scope);
|
|
2853
2710
|
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
@@ -2956,7 +2813,7 @@ var release = (self, state) => {
|
|
|
2956
2813
|
};
|
|
2957
2814
|
|
|
2958
2815
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2959
|
-
var
|
|
2816
|
+
var make9 = make5;
|
|
2960
2817
|
var get3 = get2;
|
|
2961
2818
|
|
|
2962
2819
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2968,7 +2825,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2968
2825
|
var toChannel2 = (stream) => stream.channel;
|
|
2969
2826
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2970
2827
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2971
|
-
var
|
|
2828
|
+
var make10 = (...values) => fromArray2(values);
|
|
2972
2829
|
var suspend = (stream) => {
|
|
2973
2830
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2974
2831
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3168,10 +3025,10 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3168
3025
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3169
3026
|
var TypeId10 = "~effect/FileSystem";
|
|
3170
3027
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3171
|
-
var
|
|
3028
|
+
var make11 = (impl) => FileSystem.of({
|
|
3172
3029
|
...impl,
|
|
3173
3030
|
[TypeId10]: TypeId10,
|
|
3174
|
-
glob:
|
|
3031
|
+
glob: make(impl),
|
|
3175
3032
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3176
3033
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
3177
3034
|
try: () => new TextDecoder(encoding).decode(_),
|
|
@@ -3228,7 +3085,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3228
3085
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3229
3086
|
var TypeId11 = "~effect/Path";
|
|
3230
3087
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3231
|
-
var
|
|
3088
|
+
var make12 = (impl) => Path.of({
|
|
3232
3089
|
...impl,
|
|
3233
3090
|
[TypeId11]: TypeId11,
|
|
3234
3091
|
resolveWithin(root, input) {
|
|
@@ -3303,7 +3160,7 @@ function makeProvider(load, mapInput) {
|
|
|
3303
3160
|
function makeSource(get, transform) {
|
|
3304
3161
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3305
3162
|
}
|
|
3306
|
-
function
|
|
3163
|
+
function make6(get) {
|
|
3307
3164
|
return makeSource(get, identityPath);
|
|
3308
3165
|
}
|
|
3309
3166
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3312,7 +3169,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3312
3169
|
function fromEnvRecord(env, options) {
|
|
3313
3170
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3314
3171
|
const trie = buildEnvTrie(env);
|
|
3315
|
-
return
|
|
3172
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3316
3173
|
}
|
|
3317
3174
|
function fromEnv(options) {
|
|
3318
3175
|
const env = options?.env ?? {
|
|
@@ -3394,7 +3251,7 @@ var Proto2 = {
|
|
|
3394
3251
|
};
|
|
3395
3252
|
}
|
|
3396
3253
|
};
|
|
3397
|
-
function
|
|
3254
|
+
function make13(evaluator) {
|
|
3398
3255
|
const self = Object.create(Proto2);
|
|
3399
3256
|
self.evaluator = evaluator;
|
|
3400
3257
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3402,14 +3259,14 @@ function make14(evaluator) {
|
|
|
3402
3259
|
}
|
|
3403
3260
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3404
3261
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3405
|
-
return
|
|
3262
|
+
return make13((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3406
3263
|
});
|
|
3407
3264
|
function all(arg) {
|
|
3408
3265
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3409
|
-
return
|
|
3266
|
+
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));
|
|
3410
3267
|
}
|
|
3411
3268
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3412
|
-
return
|
|
3269
|
+
return make13((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3413
3270
|
});
|
|
3414
3271
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3415
3272
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3528,7 +3385,7 @@ function schema(codec, path) {
|
|
|
3528
3385
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3529
3386
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3530
3387
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3531
|
-
return
|
|
3388
|
+
return make13((provider, pathPrefix) => {
|
|
3532
3389
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3533
3390
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3534
3391
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3644,4 +3501,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3644
3501
|
...argv
|
|
3645
3502
|
];
|
|
3646
3503
|
|
|
3647
|
-
export { map, makeEquivalence,
|
|
3504
|
+
export { map, makeEquivalence, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make11, FileTypeId, WatchBackend, Path, make12, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-y64ssczv.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-r2kzvdrg.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-qjxgew0k.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-9a6wbk11.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-2sazk478.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-fjdp3rd6.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|