@kitman-sh/cli 0.12.8 → 0.12.9
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-c8wpw9nh.js → chunk-0h49y8gf.js} +214 -65
- package/dist/{chunk-bh9k3kty.js → chunk-4gkp713b.js} +55 -55
- package/dist/{chunk-gyek54h3.js → chunk-4gy4ty6k.js} +8 -8
- package/dist/{chunk-cr3qw0xf.js → chunk-4w0c1ykv.js} +381 -297
- package/dist/{chunk-j1cnq2j0.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-kzwdhdej.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-9qp59fht.js → chunk-6pq0yj40.js} +32 -32
- package/dist/{chunk-tgwa9vqw.js → chunk-7afnkx5b.js} +6 -6
- package/dist/{chunk-n9351czb.js → chunk-azfjx5d8.js} +7 -7
- package/dist/{chunk-31gpnkq3.js → chunk-cbpb2rww.js} +5 -5
- package/dist/{chunk-wcvfkdwd.js → chunk-fr79hgq2.js} +24 -24
- package/dist/{chunk-6w7ajkm8.js → chunk-fyvtc3xv.js} +18 -18
- package/dist/{chunk-cw61zyh5.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-jwrs9pfa.js → chunk-gwnyxm1r.js} +107 -107
- package/dist/{chunk-3x6cbhzd.js → chunk-gxbcvd4q.js} +4 -4
- package/dist/{chunk-fh58za51.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-c8hwfktd.js → chunk-jn7w2ntt.js} +7 -7
- package/dist/{chunk-6d53ezj1.js → chunk-mtkstrh3.js} +4 -4
- package/dist/{chunk-0tjg9eya.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-xng6j3a8.js → chunk-rtpk65fj.js} +1 -1
- package/dist/{chunk-93ypzdpa.js → chunk-vkg40ysx.js} +7 -7
- package/dist/{chunk-z5f7g1w1.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-s5pzy86v.js → chunk-ywzxwgrz.js} +6 -6
- package/dist/{chunk-pjpfc3sd.js → chunk-z0q62687.js} +1 -1
- package/dist/{chunk-qjqa338f.js → chunk-zw3gf6r5.js} +94 -333
- 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,
|
|
@@ -81,14 +84,15 @@ import {
|
|
|
81
84
|
fail4,
|
|
82
85
|
interrupt2,
|
|
83
86
|
void_2,
|
|
87
|
+
isSuccess2,
|
|
84
88
|
isFailure2,
|
|
85
89
|
asVoidAll,
|
|
86
|
-
|
|
90
|
+
makeUnsafe5,
|
|
87
91
|
_await,
|
|
88
92
|
interruptWith,
|
|
89
93
|
doneUnsafe,
|
|
90
94
|
Scope,
|
|
91
|
-
|
|
95
|
+
makeUnsafe6,
|
|
92
96
|
provide,
|
|
93
97
|
addFinalizerExit,
|
|
94
98
|
addFinalizer,
|
|
@@ -137,7 +141,7 @@ import {
|
|
|
137
141
|
tap2,
|
|
138
142
|
option2,
|
|
139
143
|
exit,
|
|
140
|
-
|
|
144
|
+
map8,
|
|
141
145
|
as,
|
|
142
146
|
asSome2,
|
|
143
147
|
asVoid,
|
|
@@ -152,12 +156,14 @@ import {
|
|
|
152
156
|
tapError2,
|
|
153
157
|
ignoreCause,
|
|
154
158
|
orElseSucceed,
|
|
159
|
+
sleep,
|
|
155
160
|
raceFirst,
|
|
156
161
|
when,
|
|
157
162
|
matchCauseEffect,
|
|
158
163
|
context,
|
|
159
164
|
contextWith,
|
|
160
165
|
provideContext2,
|
|
166
|
+
scope2,
|
|
161
167
|
scoped,
|
|
162
168
|
scopedWith,
|
|
163
169
|
acquireRelease,
|
|
@@ -168,6 +174,7 @@ import {
|
|
|
168
174
|
interrupt3,
|
|
169
175
|
onInterrupt,
|
|
170
176
|
uninterruptible,
|
|
177
|
+
uninterruptibleMask2,
|
|
171
178
|
forever,
|
|
172
179
|
forkChild,
|
|
173
180
|
forkIn,
|
|
@@ -194,7 +201,7 @@ import {
|
|
|
194
201
|
String4,
|
|
195
202
|
toCodecStringTree,
|
|
196
203
|
encodeUnknownJsonStringSync
|
|
197
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-zw3gf6r5.js";
|
|
198
205
|
|
|
199
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
200
207
|
var headUnsafe = (self) => {
|
|
@@ -363,7 +370,7 @@ var fromStringUnsafe = (input) => {
|
|
|
363
370
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
364
371
|
return make(value);
|
|
365
372
|
};
|
|
366
|
-
var
|
|
373
|
+
var fromInputUnsafe2 = (input) => {
|
|
367
374
|
switch (typeof input) {
|
|
368
375
|
case "bigint":
|
|
369
376
|
if (input < bigint0)
|
|
@@ -376,7 +383,7 @@ var fromInputUnsafe = (input) => {
|
|
|
376
383
|
}
|
|
377
384
|
return invalid(`unsupported input ${input}`);
|
|
378
385
|
};
|
|
379
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
386
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
380
387
|
|
|
381
388
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
382
389
|
var join = fiberJoin;
|
|
@@ -942,7 +949,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
942
949
|
const isUnlisted = (value) => value === "." || value === ".." || isRoot(value);
|
|
943
950
|
const probe = (parent, name, named) => {
|
|
944
951
|
const path = toFsPath(join2(parent, name));
|
|
945
|
-
return fs.stat(path).pipe(
|
|
952
|
+
return fs.stat(path).pipe(map8((info) => info.type), catchReason("PlatformError", "NotFound", () => fs.readLink(path).pipe(as("SymbolicLink"), catchIf(isNotLink, () => succeed6(undefined)))), catchIf(named ? isMissing : isIgnorable, () => succeed6(undefined)), map8((type) => type === undefined ? undefined : {
|
|
946
953
|
name,
|
|
947
954
|
type
|
|
948
955
|
}));
|
|
@@ -997,7 +1004,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
997
1004
|
return child(type === "Directory", false);
|
|
998
1005
|
}
|
|
999
1006
|
const path = toFsPath(relative);
|
|
1000
|
-
return fs.stat(path).pipe(
|
|
1007
|
+
return fs.stat(path).pipe(map8((info) => info.type === "Directory"), catchIf(isIgnorable, () => succeed6(false)), flatMap3((isDirectory) => {
|
|
1001
1008
|
const resolved = child(isDirectory, type === "SymbolicLink");
|
|
1002
1009
|
if (type === "SymbolicLink" || resolved?.next === undefined || result.globstar.size === 0) {
|
|
1003
1010
|
return succeed6(resolved);
|
|
@@ -1007,7 +1014,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
1007
1014
|
};
|
|
1008
1015
|
let slots = DIRECTORY_CONCURRENCY;
|
|
1009
1016
|
let finishing = false;
|
|
1010
|
-
const failed =
|
|
1017
|
+
const failed = makeUnsafe5();
|
|
1011
1018
|
const fork = (walk) => walk.pipe(onError((cause) => sync2(() => {
|
|
1012
1019
|
if (!finishing) {
|
|
1013
1020
|
doneUnsafe(failed, failCause3(cause));
|
|
@@ -1023,7 +1030,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
1023
1030
|
const child = visit(entry, relative, states, excluded);
|
|
1024
1031
|
if (isEffect(child)) {
|
|
1025
1032
|
const index = children.push(undefined) - 1;
|
|
1026
|
-
pending.push(
|
|
1033
|
+
pending.push(map8(child, (child) => {
|
|
1027
1034
|
children[index] = child;
|
|
1028
1035
|
}));
|
|
1029
1036
|
} else {
|
|
@@ -1107,7 +1114,7 @@ var systemError = (options) => new PlatformError(new SystemError(options));
|
|
|
1107
1114
|
var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
1108
1115
|
|
|
1109
1116
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
1110
|
-
var
|
|
1117
|
+
var makeUnsafe2 = makeLatchUnsafe;
|
|
1111
1118
|
var make3 = makeLatch;
|
|
1112
1119
|
|
|
1113
1120
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
@@ -1283,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1283
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1284
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1285
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1286
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map,
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1287
1294
|
var unbounded = (options) => make5({
|
|
1288
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1289
1296
|
strategy: () => new DroppingStrategy
|
|
@@ -1302,7 +1309,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1302
1309
|
return false;
|
|
1303
1310
|
});
|
|
1304
1311
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1305
|
-
const localScope =
|
|
1312
|
+
const localScope = get4(services, Scope);
|
|
1306
1313
|
const scope = forkUnsafe(self.scope);
|
|
1307
1314
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1308
1315
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1346,7 +1353,7 @@ var pollForItem = (self) => callback3((resume) => {
|
|
|
1346
1353
|
}
|
|
1347
1354
|
return resume(succeed6(self.ended.current.value));
|
|
1348
1355
|
}
|
|
1349
|
-
const deferred =
|
|
1356
|
+
const deferred = makeUnsafe5();
|
|
1350
1357
|
let set = self.subscribers.get(self.subscription);
|
|
1351
1358
|
if (!set) {
|
|
1352
1359
|
set = new Set;
|
|
@@ -1378,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1378
1385
|
subscribers.delete(subscription);
|
|
1379
1386
|
}
|
|
1380
1387
|
};
|
|
1381
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1382
1389
|
class UnboundedPubSub {
|
|
1383
1390
|
publisherHead = {
|
|
1384
1391
|
value: AbsentValue,
|
|
@@ -2098,7 +2105,7 @@ var finalize = (self, exit) => {
|
|
|
2098
2105
|
};
|
|
2099
2106
|
|
|
2100
2107
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Semaphore.js
|
|
2101
|
-
var
|
|
2108
|
+
var makeUnsafe3 = (permits) => new SemaphoreImpl(permits);
|
|
2102
2109
|
var firstAvailableWaiter = (self) => {
|
|
2103
2110
|
for (const waiter of self.waiters) {
|
|
2104
2111
|
if (waiter.permits <= self.free)
|
|
@@ -2249,7 +2256,7 @@ var asyncQueue = (scope, f, options) => make9({
|
|
|
2249
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
2250
2257
|
startImmediately: true
|
|
2251
2258
|
}))));
|
|
2252
|
-
var callbackArray = (f, options) => fromTransform((_, scope) =>
|
|
2259
|
+
var callbackArray = (f, options) => fromTransform((_, scope) => map8(asyncQueue(scope, f, options), takeAll3));
|
|
2253
2260
|
var suspend4 = (evaluate) => fromTransform((upstream, scope) => suspend3(() => toTransform(evaluate())(upstream, scope)));
|
|
2254
2261
|
var fromIterator = (iterator) => fromPull(sync2(() => {
|
|
2255
2262
|
const iter = iterator();
|
|
@@ -2275,7 +2282,7 @@ var fromEffect = (effect) => fromPull(sync2(() => {
|
|
|
2275
2282
|
var fromEffectDrain = (effect) => fromPull(flatMap3(effect, () => done()));
|
|
2276
2283
|
var fromQueueArray = (queue) => fromPull(succeed6(takeAll3(queue)));
|
|
2277
2284
|
var fromSubscriptionArray = (subscription) => fromPull(succeed6(onInterrupt(takeAll2(subscription), () => done())));
|
|
2278
|
-
var fromPubSubArray = (pubsub) => unwrap2(
|
|
2285
|
+
var fromPubSubArray = (pubsub) => unwrap2(map8(subscribe(pubsub), fromSubscriptionArray));
|
|
2279
2286
|
var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStreamToPullUnsafe({
|
|
2280
2287
|
scope,
|
|
2281
2288
|
readable: options.evaluate(),
|
|
@@ -2305,9 +2312,9 @@ var readableStreamToPullUnsafe = (options) => {
|
|
|
2305
2312
|
});
|
|
2306
2313
|
return as(addFinalizer(options.scope, options.releaseLockOnEnd ? sync2(() => reader.releaseLock()) : promise(() => reader.cancel().catch((error) => reader.closed.then(() => Promise.reject(error), constVoid))).pipe(ensuring2(sync2(() => reader.releaseLock())))), pull);
|
|
2307
2314
|
};
|
|
2308
|
-
var
|
|
2315
|
+
var map7 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => sync2(() => {
|
|
2309
2316
|
let i = 0;
|
|
2310
|
-
return
|
|
2317
|
+
return map8(pull, (o) => f(o, i++));
|
|
2311
2318
|
})));
|
|
2312
2319
|
var mapDone = /* @__PURE__ */ dual(2, (self, f) => mapDoneEffect(self, (o) => succeed6(f(o))));
|
|
2313
2320
|
var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed6(catchDone(pull, (done2) => flatMap3(f(done2), done)))));
|
|
@@ -2315,7 +2322,7 @@ var concurrencyIsSequential = (concurrency) => concurrency === undefined || conc
|
|
|
2315
2322
|
var mapEffect = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self, f) : mapEffectConcurrent(self, f, options));
|
|
2316
2323
|
var mapEffectSequential = (self, f) => fromTransform((upstream, scope) => {
|
|
2317
2324
|
let i = 0;
|
|
2318
|
-
return
|
|
2325
|
+
return map8(toTransform(self)(upstream, scope), flatMap3((o) => f(o, i++)));
|
|
2319
2326
|
});
|
|
2320
2327
|
var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2321
2328
|
let i = 0;
|
|
@@ -2326,7 +2333,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
|
|
|
2326
2333
|
const runFork = runForkWith(yield* context());
|
|
2327
2334
|
const trackFiber = runIn(forkedScope);
|
|
2328
2335
|
if (options.unordered) {
|
|
2329
|
-
const semaphore =
|
|
2336
|
+
const semaphore = makeUnsafe3(concurrencyN);
|
|
2330
2337
|
const release = constant(semaphore.release(1));
|
|
2331
2338
|
const handle = matchCauseEffect({
|
|
2332
2339
|
onFailure: (cause) => flatMap3(failCause(queue, cause), release),
|
|
@@ -2367,7 +2374,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
|
|
|
2367
2374
|
return take(queue);
|
|
2368
2375
|
}));
|
|
2369
2376
|
var flatMap = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? flatMapSequential(self, f) : flatMapConcurrent(self, f, options));
|
|
2370
|
-
var flatMapSequential = (self, f) => fromTransform((upstream, scope) =>
|
|
2377
|
+
var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map8(toTransform(self)(upstream, scope), (pull) => {
|
|
2371
2378
|
let childPull;
|
|
2372
2379
|
let childScope;
|
|
2373
2380
|
const makePull = flatMap3(pull, (value) => {
|
|
@@ -2388,7 +2395,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map7(toT
|
|
|
2388
2395
|
});
|
|
2389
2396
|
return suspend3(() => childPull ?? makePull);
|
|
2390
2397
|
}));
|
|
2391
|
-
var flatMapConcurrent = (self, f, options) => self.pipe(
|
|
2398
|
+
var flatMapConcurrent = (self, f, options) => self.pipe(map7(f), mergeAll(options));
|
|
2392
2399
|
var flatten2 = (channels) => flatMap(channels, identity);
|
|
2393
2400
|
var flattenArray = (self) => transformPull(self, (pull) => {
|
|
2394
2401
|
let array;
|
|
@@ -2428,7 +2435,7 @@ var filterArray = /* @__PURE__ */ dual(2, (self, predicate) => transformPull(sel
|
|
|
2428
2435
|
}))));
|
|
2429
2436
|
var catchCause3 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream, scope) => {
|
|
2430
2437
|
let forkedScope = forkUnsafe(scope);
|
|
2431
|
-
return
|
|
2438
|
+
return map8(toTransform(self)(upstream, forkedScope), (pull) => {
|
|
2432
2439
|
let currentPull = pull.pipe(catchCause2((cause) => {
|
|
2433
2440
|
if (isDoneCause(cause)) {
|
|
2434
2441
|
return failCause3(cause);
|
|
@@ -2451,7 +2458,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2451
2458
|
switch: switch_ = false
|
|
2452
2459
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2453
2460
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2454
|
-
const semaphore = switch_ ? undefined :
|
|
2461
|
+
const semaphore = switch_ ? undefined : makeUnsafe3(concurrencyN);
|
|
2455
2462
|
const doneLatch = yield* make3(true);
|
|
2456
2463
|
const fibers = new Map;
|
|
2457
2464
|
const queue = yield* bounded(bufferSize);
|
|
@@ -2625,7 +2632,7 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
|
|
|
2625
2632
|
const streamOptions = {
|
|
2626
2633
|
stream: true
|
|
2627
2634
|
};
|
|
2628
|
-
let pull = upstream.pipe(
|
|
2635
|
+
let pull = upstream.pipe(map8(map6((bytes) => decoder.decode(bytes, streamOptions))), catchDone((leftover) => {
|
|
2629
2636
|
pull = done(leftover);
|
|
2630
2637
|
const last = decoder.decode();
|
|
2631
2638
|
return last.length > 0 ? succeed6(of(last)) : pull;
|
|
@@ -2652,18 +2659,18 @@ var interruptWhen2 = /* @__PURE__ */ dual(2, (self, effect) => merge(self, fromP
|
|
|
2652
2659
|
var onExit2 = /* @__PURE__ */ dual(2, (self, finalizer) => fromTransformBracket((upstream, scope, forkedScope) => addFinalizerExit(forkedScope, finalizer).pipe(andThen2(toTransform(self)(upstream, scope)))));
|
|
2653
2660
|
var ensuring3 = /* @__PURE__ */ dual(2, (self, finalizer) => onExit2(self, (_) => finalizer));
|
|
2654
2661
|
var runWith = (self, f, onHalt) => suspend3(() => {
|
|
2655
|
-
const scope =
|
|
2662
|
+
const scope = makeUnsafe6();
|
|
2656
2663
|
const makePull = toTransform(self)(done(), scope);
|
|
2657
2664
|
return catchDone(flatMap3(makePull, f), onHalt ? onHalt : succeed6).pipe(onExit((exit) => close(scope, exit)));
|
|
2658
2665
|
});
|
|
2659
|
-
var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) =>
|
|
2666
|
+
var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map8(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
|
|
2660
2667
|
var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
|
|
2661
2668
|
disableYield: true
|
|
2662
2669
|
}));
|
|
2663
2670
|
var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
|
|
2664
2671
|
disableYield: true
|
|
2665
2672
|
})));
|
|
2666
|
-
var mkUint8Array = (self) =>
|
|
2673
|
+
var mkUint8Array = (self) => map8(runFold2(self, () => ({
|
|
2667
2674
|
bytes: 0,
|
|
2668
2675
|
arrays: []
|
|
2669
2676
|
}), (acc, chunk) => {
|
|
@@ -2757,18 +2764,160 @@ var forEach2 = (f) => forEachArray(forEach((_) => f(_), {
|
|
|
2757
2764
|
var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f), forever({
|
|
2758
2765
|
disableYield: true
|
|
2759
2766
|
}), catchDone(() => endVoid)));
|
|
2760
|
-
var unwrap3 = (effect) => fromChannel(unwrap2(
|
|
2767
|
+
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2768
|
+
|
|
2769
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2770
|
+
var TypeId8 = "~effect/RcRef";
|
|
2771
|
+
var stateEmpty = {
|
|
2772
|
+
_tag: "Empty"
|
|
2773
|
+
};
|
|
2774
|
+
var stateClosed = {
|
|
2775
|
+
_tag: "Closed"
|
|
2776
|
+
};
|
|
2777
|
+
var variance2 = {
|
|
2778
|
+
_A: identity,
|
|
2779
|
+
_E: identity
|
|
2780
|
+
};
|
|
2781
|
+
|
|
2782
|
+
class RcRefImpl {
|
|
2783
|
+
[TypeId8] = variance2;
|
|
2784
|
+
pipe() {
|
|
2785
|
+
return pipeArguments(this, arguments);
|
|
2786
|
+
}
|
|
2787
|
+
state = stateEmpty;
|
|
2788
|
+
acquire;
|
|
2789
|
+
context;
|
|
2790
|
+
scope;
|
|
2791
|
+
idleTimeToLive;
|
|
2792
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2793
|
+
this.acquire = acquire;
|
|
2794
|
+
this.context = context;
|
|
2795
|
+
this.scope = scope;
|
|
2796
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2800
|
+
const context = fiber.context;
|
|
2801
|
+
const scope = get4(context, Scope);
|
|
2802
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2803
|
+
return as(addFinalizerExit(scope, () => {
|
|
2804
|
+
const state = ref.state;
|
|
2805
|
+
ref.state = stateClosed;
|
|
2806
|
+
if (state._tag === "Acquired")
|
|
2807
|
+
return close(state.scope, void_2);
|
|
2808
|
+
if (state._tag === "Acquiring")
|
|
2809
|
+
return interrupt(state.fiber);
|
|
2810
|
+
return void_3;
|
|
2811
|
+
}), ref);
|
|
2812
|
+
});
|
|
2813
|
+
var getState = (self, restore) => {
|
|
2814
|
+
switch (self.state._tag) {
|
|
2815
|
+
case "Closed": {
|
|
2816
|
+
return interrupt3;
|
|
2817
|
+
}
|
|
2818
|
+
case "Acquired": {
|
|
2819
|
+
const state = self.state;
|
|
2820
|
+
state.refCount++;
|
|
2821
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2822
|
+
}
|
|
2823
|
+
case "Acquiring": {
|
|
2824
|
+
const state = self.state;
|
|
2825
|
+
state.awaiters++;
|
|
2826
|
+
return awaitAcquiring(self, state, restore);
|
|
2827
|
+
}
|
|
2828
|
+
case "Empty": {
|
|
2829
|
+
const acquiring = {
|
|
2830
|
+
_tag: "Acquiring",
|
|
2831
|
+
fiber: undefined,
|
|
2832
|
+
awaiters: 1,
|
|
2833
|
+
acquired: undefined
|
|
2834
|
+
};
|
|
2835
|
+
self.state = acquiring;
|
|
2836
|
+
const scope = makeUnsafe6();
|
|
2837
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2838
|
+
if (self.state !== acquiring) {
|
|
2839
|
+
return interrupt3;
|
|
2840
|
+
}
|
|
2841
|
+
const state = {
|
|
2842
|
+
_tag: "Acquired",
|
|
2843
|
+
value,
|
|
2844
|
+
scope,
|
|
2845
|
+
fiber: undefined,
|
|
2846
|
+
refCount: acquiring.awaiters,
|
|
2847
|
+
invalidated: false
|
|
2848
|
+
};
|
|
2849
|
+
self.state = state;
|
|
2850
|
+
acquiring.acquired = state;
|
|
2851
|
+
return succeed6(state);
|
|
2852
|
+
}), onExit((exit) => {
|
|
2853
|
+
if (isSuccess2(exit))
|
|
2854
|
+
return void_3;
|
|
2855
|
+
if (self.state === acquiring)
|
|
2856
|
+
self.state = stateEmpty;
|
|
2857
|
+
return close(scope, exit);
|
|
2858
|
+
}));
|
|
2859
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2860
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
};
|
|
2864
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2865
|
+
const acquired = acquiring.acquired;
|
|
2866
|
+
if (acquired !== undefined) {
|
|
2867
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2868
|
+
}
|
|
2869
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2870
|
+
return void_3;
|
|
2871
|
+
self.state = stateEmpty;
|
|
2872
|
+
return interrupt(acquiring.fiber);
|
|
2873
|
+
});
|
|
2874
|
+
var get2 = (self_) => {
|
|
2875
|
+
const self = self_;
|
|
2876
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2877
|
+
};
|
|
2878
|
+
var release = (self, state) => {
|
|
2879
|
+
state.refCount--;
|
|
2880
|
+
if (state.refCount > 0) {
|
|
2881
|
+
return void_3;
|
|
2882
|
+
}
|
|
2883
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2884
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2885
|
+
if (self.state === state) {
|
|
2886
|
+
self.state = stateEmpty;
|
|
2887
|
+
}
|
|
2888
|
+
return close(state.scope, void_2);
|
|
2889
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2890
|
+
return void_3;
|
|
2891
|
+
}
|
|
2892
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2893
|
+
if (self.state === state && state.refCount === 0) {
|
|
2894
|
+
self.state = stateEmpty;
|
|
2895
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2896
|
+
log: "Unhandled",
|
|
2897
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2898
|
+
});
|
|
2899
|
+
}
|
|
2900
|
+
return void_3;
|
|
2901
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2902
|
+
state.fiber = undefined;
|
|
2903
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2904
|
+
return void_3;
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
+
var make10 = make6;
|
|
2909
|
+
var get3 = get2;
|
|
2761
2910
|
|
|
2762
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2763
|
-
var
|
|
2764
|
-
var isStream = (u) => hasProperty(u,
|
|
2912
|
+
var TypeId9 = "~effect/Stream";
|
|
2913
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2765
2914
|
var fromChannel2 = fromChannel3;
|
|
2766
2915
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2767
2916
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2768
2917
|
var toChannel2 = (stream) => stream.channel;
|
|
2769
2918
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2770
2919
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2771
|
-
var
|
|
2920
|
+
var make11 = (...values) => fromArray2(values);
|
|
2772
2921
|
var suspend = (stream) => {
|
|
2773
2922
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2774
2923
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2781,12 +2930,12 @@ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succee
|
|
|
2781
2930
|
var fromQueue = (queue) => fromChannel2(fromQueueArray(queue));
|
|
2782
2931
|
var fromPubSub = (pubsub) => fromChannel2(fromPubSubArray(pubsub));
|
|
2783
2932
|
var fromReadableStream = (options) => fromChannel2(fromReadableStream2(options));
|
|
2784
|
-
var unwrap = (effect) => fromChannel2(unwrap2(
|
|
2933
|
+
var unwrap = (effect) => fromChannel2(unwrap2(map8(effect, toChannel2)));
|
|
2785
2934
|
var map2 = /* @__PURE__ */ dual(2, (self, f) => suspend(() => {
|
|
2786
2935
|
let i = 0;
|
|
2787
|
-
return fromChannel2(
|
|
2936
|
+
return fromChannel2(map7(self.channel, map6((o) => f(o, i++))));
|
|
2788
2937
|
}));
|
|
2789
|
-
var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options),
|
|
2938
|
+
var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options), map7(of), fromChannel2));
|
|
2790
2939
|
var tap = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => mapEffect2(self, (a) => as(f(a), a), options));
|
|
2791
2940
|
var drainFork = /* @__PURE__ */ dual(2, (self, that) => mergeEffect2(self, runDrain(that)));
|
|
2792
2941
|
var concat = /* @__PURE__ */ dual(2, (self, that) => {
|
|
@@ -2837,7 +2986,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
|
|
|
2837
2986
|
done2 = fail4(error);
|
|
2838
2987
|
return done();
|
|
2839
2988
|
}));
|
|
2840
|
-
const pull =
|
|
2989
|
+
const pull = map8(suspend3(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
|
|
2841
2990
|
leftover = leftover_;
|
|
2842
2991
|
return of(value);
|
|
2843
2992
|
});
|
|
@@ -2852,7 +3001,7 @@ var splitLines = (self) => self.channel.pipe(pipeTo(splitLines2()), fromChannel2
|
|
|
2852
3001
|
var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => fromChannel2(interruptWhen2(self.channel, effect)));
|
|
2853
3002
|
var ensuring = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel2(ensuring3(self.channel, finalizer)));
|
|
2854
3003
|
var provideContext = /* @__PURE__ */ dual(2, (self, context) => fromChannel2(provideContext3(self.channel, context)));
|
|
2855
|
-
var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)),
|
|
3004
|
+
var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)), map8(([a]) => a))));
|
|
2856
3005
|
var runSink = (sink, upstream, scope) => restoreUpstreamFailure(sink.transform(upstreamFailureToDefect(upstream), scope));
|
|
2857
3006
|
var runCollect = (self) => runFold2(self.channel, () => [], (acc, chunk) => {
|
|
2858
3007
|
for (let i = 0;i < chunk.length; i++) {
|
|
@@ -2866,7 +3015,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f) => runFold2(self.channe
|
|
|
2866
3015
|
}
|
|
2867
3016
|
return acc;
|
|
2868
3017
|
}));
|
|
2869
|
-
var runHead = (self) =>
|
|
3018
|
+
var runHead = (self) => map8(runHead2(self.channel), map4(getUnsafe2(0)));
|
|
2870
3019
|
var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
|
|
2871
3020
|
let i = 0;
|
|
2872
3021
|
return whileLoop({
|
|
@@ -2877,12 +3026,12 @@ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel,
|
|
|
2877
3026
|
}));
|
|
2878
3027
|
var runDrain = (self) => runDrain2(self.channel);
|
|
2879
3028
|
var mkString = (self) => runFold2(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
|
|
2880
|
-
var mkArrayBuffer = (self) =>
|
|
3029
|
+
var mkArrayBuffer = (self) => map8(mkUint8Array(self.channel), (bytes) => bytes.buffer);
|
|
2881
3030
|
var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, context, options) => {
|
|
2882
3031
|
let currentResolve = undefined;
|
|
2883
3032
|
let fiber = undefined;
|
|
2884
3033
|
let cancelled = false;
|
|
2885
|
-
const latch =
|
|
3034
|
+
const latch = makeUnsafe2(false);
|
|
2886
3035
|
const signal = options?.signal;
|
|
2887
3036
|
const onAbort = () => fiber.interruptUnsafe();
|
|
2888
3037
|
return new ReadableStream({
|
|
@@ -2928,14 +3077,14 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
2928
3077
|
}
|
|
2929
3078
|
}, options?.strategy);
|
|
2930
3079
|
});
|
|
2931
|
-
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) =>
|
|
3080
|
+
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
2932
3081
|
|
|
2933
3082
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
2934
|
-
var
|
|
3083
|
+
var TypeId10 = "~effect/FileSystem";
|
|
2935
3084
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
2936
|
-
var
|
|
3085
|
+
var make12 = (impl) => FileSystem.of({
|
|
2937
3086
|
...impl,
|
|
2938
|
-
[
|
|
3087
|
+
[TypeId10]: TypeId10,
|
|
2939
3088
|
glob: make2(impl),
|
|
2940
3089
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
2941
3090
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -2951,11 +3100,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
2951
3100
|
const file = yield* impl.open(path, {
|
|
2952
3101
|
flag: "r"
|
|
2953
3102
|
});
|
|
2954
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3103
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
2955
3104
|
if (offset) {
|
|
2956
3105
|
yield* file.seek(offset, "start");
|
|
2957
3106
|
}
|
|
2958
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3107
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
2959
3108
|
let totalBytesRead = BigInt(0);
|
|
2960
3109
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
2961
3110
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -2975,7 +3124,7 @@ var make11 = (impl) => FileSystem.of({
|
|
|
2975
3124
|
sink: (path, options) => pipe(impl.open(path, {
|
|
2976
3125
|
...options,
|
|
2977
3126
|
flag: options?.flag ?? "w"
|
|
2978
|
-
}),
|
|
3127
|
+
}), map8((file) => forEach2((_) => file.writeAll(_))), unwrap3),
|
|
2979
3128
|
writeFileString: (path, data, options) => flatMap3(try_2({
|
|
2980
3129
|
try: () => new TextEncoder().encode(data),
|
|
2981
3130
|
catch: (cause) => badArgument({
|
|
@@ -2991,11 +3140,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
2991
3140
|
}
|
|
2992
3141
|
|
|
2993
3142
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
2994
|
-
var
|
|
3143
|
+
var TypeId11 = "~effect/Path";
|
|
2995
3144
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
2996
|
-
var
|
|
3145
|
+
var make13 = (impl) => Path.of({
|
|
2997
3146
|
...impl,
|
|
2998
|
-
[
|
|
3147
|
+
[TypeId11]: TypeId11,
|
|
2999
3148
|
resolveWithin(root, input) {
|
|
3000
3149
|
if (impl.parse(input).root !== "")
|
|
3001
3150
|
return none();
|
|
@@ -3068,7 +3217,7 @@ function makeProvider(load, mapInput) {
|
|
|
3068
3217
|
function makeSource(get, transform) {
|
|
3069
3218
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3070
3219
|
}
|
|
3071
|
-
function
|
|
3220
|
+
function make7(get) {
|
|
3072
3221
|
return makeSource(get, identityPath);
|
|
3073
3222
|
}
|
|
3074
3223
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3077,7 +3226,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3077
3226
|
function fromEnvRecord(env, options) {
|
|
3078
3227
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3079
3228
|
const trie = buildEnvTrie(env);
|
|
3080
|
-
return
|
|
3229
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3081
3230
|
}
|
|
3082
3231
|
function fromEnv(options) {
|
|
3083
3232
|
const env = options?.env ?? {
|
|
@@ -3130,7 +3279,7 @@ function trieNodeAt(root, path) {
|
|
|
3130
3279
|
}
|
|
3131
3280
|
|
|
3132
3281
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3133
|
-
var
|
|
3282
|
+
var TypeId12 = "~effect/Config";
|
|
3134
3283
|
class ConfigError {
|
|
3135
3284
|
_tag = "ConfigError";
|
|
3136
3285
|
name = "ConfigError";
|
|
@@ -3152,14 +3301,14 @@ var Proto2 = {
|
|
|
3152
3301
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3153
3302
|
}
|
|
3154
3303
|
}),
|
|
3155
|
-
[
|
|
3304
|
+
[TypeId12]: TypeId12,
|
|
3156
3305
|
toJSON() {
|
|
3157
3306
|
return {
|
|
3158
3307
|
_id: "Config"
|
|
3159
3308
|
};
|
|
3160
3309
|
}
|
|
3161
3310
|
};
|
|
3162
|
-
function
|
|
3311
|
+
function make14(evaluator) {
|
|
3163
3312
|
const self = Object.create(Proto2);
|
|
3164
3313
|
self.evaluator = evaluator;
|
|
3165
3314
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3167,14 +3316,14 @@ function make7(evaluator) {
|
|
|
3167
3316
|
}
|
|
3168
3317
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3169
3318
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3170
|
-
return
|
|
3319
|
+
return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3171
3320
|
});
|
|
3172
3321
|
function all(arg) {
|
|
3173
3322
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3174
|
-
return
|
|
3323
|
+
return make14((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
|
|
3175
3324
|
}
|
|
3176
3325
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3177
|
-
return
|
|
3326
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3178
3327
|
});
|
|
3179
3328
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3180
3329
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3293,7 +3442,7 @@ function schema(codec, path) {
|
|
|
3293
3442
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3294
3443
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3295
3444
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3296
|
-
return
|
|
3445
|
+
return make14((provider, pathPrefix) => {
|
|
3297
3446
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3298
3447
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3299
3448
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3316,7 +3465,7 @@ var optionalEnv = (name) => gen(function* () {
|
|
|
3316
3465
|
}).pipe(orElseSucceed(() => {
|
|
3317
3466
|
return;
|
|
3318
3467
|
}));
|
|
3319
|
-
var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(
|
|
3468
|
+
var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map8((configHome) => configHome ?? `${home}/.config`));
|
|
3320
3469
|
|
|
3321
3470
|
// packages/agent-runtime/src/temp-directory.ts
|
|
3322
3471
|
var tempDirectoryScoped = (fs, options) => acquireRelease(fs.makeTempDirectory(options), (directory) => fs.remove(directory, { recursive: true, force: true }).pipe(catch_((error) => logWarning("temp_directory_not_removed", { directory, error: error.message }))));
|
|
@@ -3372,7 +3521,7 @@ var srtInheritedEnv2 = [
|
|
|
3372
3521
|
"LC_CTYPE",
|
|
3373
3522
|
"TZ"
|
|
3374
3523
|
];
|
|
3375
|
-
var inheritedEnvironment2 = (names) =>
|
|
3524
|
+
var inheritedEnvironment2 = (names) => map8(forEach(names, (name) => map8(optionalEnv(name), (value) => value === undefined ? [] : [[name, value]])), (entries) => Object.fromEntries(entries.flat()));
|
|
3376
3525
|
var shellName = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
3377
3526
|
var withOnlyEnvironment2 = (names, argv) => [
|
|
3378
3527
|
"sh",
|
|
@@ -3408,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3408
3557
|
...argv
|
|
3409
3558
|
];
|
|
3410
3559
|
|
|
3411
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent,
|
|
3560
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|