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