@kitman-sh/cli 0.10.96 → 0.10.98
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-ampzxrqe.js → chunk-07p2dcq3.js} +333 -94
- package/dist/{chunk-2kr43ps6.js → chunk-3bjekzn7.js} +312 -395
- package/dist/{chunk-dh3108wk.js → chunk-6dc0x5cg.js} +8 -8
- package/dist/{chunk-q3nygncv.js → chunk-797w5qe6.js} +7 -7
- package/dist/{chunk-4psvc86s.js → chunk-7c3pgktm.js} +9 -8
- package/dist/{chunk-a244myqw.js → chunk-7ya2q09c.js} +1 -1
- package/dist/{chunk-qacvrg7j.js → chunk-95mkdtzk.js} +6 -6
- package/dist/{chunk-tpdcq44c.js → chunk-aba9zdpb.js} +32 -32
- package/dist/{chunk-mcpesyz2.js → chunk-bqg9gy2e.js} +7 -7
- package/dist/{chunk-8tq7n7wc.js → chunk-c6h3fhtb.js} +24 -24
- package/dist/{chunk-fv6kgtze.js → chunk-cgjyv52e.js} +2 -2
- package/dist/{chunk-bk3dpjxq.js → chunk-d1sqb8rt.js} +1 -1
- package/dist/{chunk-c9wzakrx.js → chunk-fd39ch4n.js} +8 -8
- package/dist/{chunk-6aa8y66v.js → chunk-g1xmj2nb.js} +4 -4
- package/dist/{chunk-abf4m4b2.js → chunk-gfqm22x7.js} +5 -5
- package/dist/{chunk-15w92pn6.js → chunk-j8vq6sk1.js} +19 -19
- package/dist/{chunk-t7ncjd6s.js → chunk-n8c1wh6t.js} +6 -6
- package/dist/{chunk-rdv42ygn.js → chunk-nym2zmz3.js} +4 -4
- package/dist/{chunk-3r7ahnwy.js → chunk-p83y21hp.js} +4 -4
- package/dist/{chunk-et6qa95h.js → chunk-qrxkpwzy.js} +1 -1
- package/dist/{chunk-vjcn82g3.js → chunk-s5p94z8x.js} +65 -214
- package/dist/{chunk-q2d37e4x.js → chunk-s90hj0mb.js} +53 -53
- package/dist/{chunk-s3qgchay.js → chunk-sy8d7bfa.js} +98 -98
- package/dist/{chunk-g3r5xp0t.js → chunk-xwhybbj2.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
|
ensuring2,
|
|
@@ -173,7 +167,6 @@ import {
|
|
|
173
167
|
interrupt3,
|
|
174
168
|
onInterrupt,
|
|
175
169
|
uninterruptible,
|
|
176
|
-
uninterruptibleMask2,
|
|
177
170
|
forever,
|
|
178
171
|
forkChild,
|
|
179
172
|
forkIn,
|
|
@@ -199,7 +192,7 @@ import {
|
|
|
199
192
|
String4,
|
|
200
193
|
toCodecStringTree,
|
|
201
194
|
encodeUnknownJsonStringSync
|
|
202
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-07p2dcq3.js";
|
|
203
196
|
|
|
204
197
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
205
198
|
var headUnsafe = (self) => {
|
|
@@ -368,7 +361,7 @@ var fromStringUnsafe = (input) => {
|
|
|
368
361
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
369
362
|
return make(value);
|
|
370
363
|
};
|
|
371
|
-
var
|
|
364
|
+
var fromInputUnsafe = (input) => {
|
|
372
365
|
switch (typeof input) {
|
|
373
366
|
case "bigint":
|
|
374
367
|
if (input < bigint0)
|
|
@@ -381,7 +374,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
381
374
|
}
|
|
382
375
|
return invalid(`unsupported input ${input}`);
|
|
383
376
|
};
|
|
384
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
377
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
385
378
|
|
|
386
379
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
387
380
|
var join = fiberJoin;
|
|
@@ -947,7 +940,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
947
940
|
const isUnlisted = (value) => value === "." || value === ".." || isRoot(value);
|
|
948
941
|
const probe = (parent, name, named) => {
|
|
949
942
|
const path = toFsPath(join2(parent, name));
|
|
950
|
-
return fs.stat(path).pipe(
|
|
943
|
+
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 : {
|
|
951
944
|
name,
|
|
952
945
|
type
|
|
953
946
|
}));
|
|
@@ -1002,7 +995,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
1002
995
|
return child(type === "Directory", false);
|
|
1003
996
|
}
|
|
1004
997
|
const path = toFsPath(relative);
|
|
1005
|
-
return fs.stat(path).pipe(
|
|
998
|
+
return fs.stat(path).pipe(map7((info) => info.type === "Directory"), catchIf(isIgnorable, () => succeed6(false)), flatMap3((isDirectory) => {
|
|
1006
999
|
const resolved = child(isDirectory, type === "SymbolicLink");
|
|
1007
1000
|
if (type === "SymbolicLink" || resolved?.next === undefined || result.globstar.size === 0) {
|
|
1008
1001
|
return succeed6(resolved);
|
|
@@ -1012,7 +1005,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
1012
1005
|
};
|
|
1013
1006
|
let slots = DIRECTORY_CONCURRENCY;
|
|
1014
1007
|
let finishing = false;
|
|
1015
|
-
const failed =
|
|
1008
|
+
const failed = makeUnsafe4();
|
|
1016
1009
|
const fork = (walk) => walk.pipe(onError((cause) => sync2(() => {
|
|
1017
1010
|
if (!finishing) {
|
|
1018
1011
|
doneUnsafe(failed, failCause3(cause));
|
|
@@ -1028,7 +1021,7 @@ var walk = /* @__PURE__ */ fnUntraced(function* (fs, compiled, options) {
|
|
|
1028
1021
|
const child = visit(entry, relative, states, excluded);
|
|
1029
1022
|
if (isEffect(child)) {
|
|
1030
1023
|
const index = children.push(undefined) - 1;
|
|
1031
|
-
pending.push(
|
|
1024
|
+
pending.push(map7(child, (child) => {
|
|
1032
1025
|
children[index] = child;
|
|
1033
1026
|
}));
|
|
1034
1027
|
} else {
|
|
@@ -1112,7 +1105,7 @@ var systemError = (options) => new PlatformError(new SystemError(options));
|
|
|
1112
1105
|
var badArgument = (options) => new PlatformError(new BadArgument(options));
|
|
1113
1106
|
|
|
1114
1107
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Latch.js
|
|
1115
|
-
var
|
|
1108
|
+
var makeUnsafe = makeLatchUnsafe;
|
|
1116
1109
|
var make3 = makeLatch;
|
|
1117
1110
|
|
|
1118
1111
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/MutableRef.js
|
|
@@ -1288,7 +1281,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1288
1281
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1289
1282
|
var TypeId3 = "~effect/PubSub";
|
|
1290
1283
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1291
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map,
|
|
1284
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe5(), makeUnsafe(false), make8(false), options.strategy(), make8(none())));
|
|
1292
1285
|
var unbounded = (options) => make5({
|
|
1293
1286
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1294
1287
|
strategy: () => new DroppingStrategy
|
|
@@ -1307,7 +1300,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1307
1300
|
return false;
|
|
1308
1301
|
});
|
|
1309
1302
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1310
|
-
const localScope =
|
|
1303
|
+
const localScope = get3(services, Scope);
|
|
1311
1304
|
const scope = forkUnsafe(self.scope);
|
|
1312
1305
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1313
1306
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1351,7 +1344,7 @@ var pollForItem = (self) => callback3((resume) => {
|
|
|
1351
1344
|
}
|
|
1352
1345
|
return resume(succeed6(self.ended.current.value));
|
|
1353
1346
|
}
|
|
1354
|
-
const deferred =
|
|
1347
|
+
const deferred = makeUnsafe4();
|
|
1355
1348
|
let set = self.subscribers.get(self.subscription);
|
|
1356
1349
|
if (!set) {
|
|
1357
1350
|
set = new Set;
|
|
@@ -1383,7 +1376,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1383
1376
|
subscribers.delete(subscription);
|
|
1384
1377
|
}
|
|
1385
1378
|
};
|
|
1386
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(),
|
|
1379
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1387
1380
|
class UnboundedPubSub {
|
|
1388
1381
|
publisherHead = {
|
|
1389
1382
|
value: AbsentValue,
|
|
@@ -2103,7 +2096,7 @@ var finalize = (self, exit) => {
|
|
|
2103
2096
|
};
|
|
2104
2097
|
|
|
2105
2098
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Semaphore.js
|
|
2106
|
-
var
|
|
2099
|
+
var makeUnsafe2 = (permits) => new SemaphoreImpl(permits);
|
|
2107
2100
|
var firstAvailableWaiter = (self) => {
|
|
2108
2101
|
for (const waiter of self.waiters) {
|
|
2109
2102
|
if (waiter.permits <= self.free)
|
|
@@ -2254,7 +2247,7 @@ var asyncQueue = (scope, f, options) => make9({
|
|
|
2254
2247
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
2255
2248
|
startImmediately: true
|
|
2256
2249
|
}))));
|
|
2257
|
-
var callbackArray = (f, options) => fromTransform((_, scope) =>
|
|
2250
|
+
var callbackArray = (f, options) => fromTransform((_, scope) => map7(asyncQueue(scope, f, options), takeAll3));
|
|
2258
2251
|
var suspend4 = (evaluate) => fromTransform((upstream, scope) => suspend3(() => toTransform(evaluate())(upstream, scope)));
|
|
2259
2252
|
var fromIterator = (iterator) => fromPull(sync2(() => {
|
|
2260
2253
|
const iter = iterator();
|
|
@@ -2280,7 +2273,7 @@ var fromEffect = (effect) => fromPull(sync2(() => {
|
|
|
2280
2273
|
var fromEffectDrain = (effect) => fromPull(flatMap3(effect, () => done()));
|
|
2281
2274
|
var fromQueueArray = (queue) => fromPull(succeed6(takeAll3(queue)));
|
|
2282
2275
|
var fromSubscriptionArray = (subscription) => fromPull(succeed6(onInterrupt(takeAll2(subscription), () => done())));
|
|
2283
|
-
var fromPubSubArray = (pubsub) => unwrap2(
|
|
2276
|
+
var fromPubSubArray = (pubsub) => unwrap2(map7(subscribe(pubsub), fromSubscriptionArray));
|
|
2284
2277
|
var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStreamToPullUnsafe({
|
|
2285
2278
|
scope,
|
|
2286
2279
|
readable: options.evaluate(),
|
|
@@ -2310,9 +2303,9 @@ var readableStreamToPullUnsafe = (options) => {
|
|
|
2310
2303
|
});
|
|
2311
2304
|
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);
|
|
2312
2305
|
};
|
|
2313
|
-
var
|
|
2306
|
+
var map8 = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => sync2(() => {
|
|
2314
2307
|
let i = 0;
|
|
2315
|
-
return
|
|
2308
|
+
return map7(pull, (o) => f(o, i++));
|
|
2316
2309
|
})));
|
|
2317
2310
|
var mapDone = /* @__PURE__ */ dual(2, (self, f) => mapDoneEffect(self, (o) => succeed6(f(o))));
|
|
2318
2311
|
var mapDoneEffect = /* @__PURE__ */ dual(2, (self, f) => transformPull(self, (pull) => succeed6(catchDone(pull, (done2) => flatMap3(f(done2), done)))));
|
|
@@ -2320,7 +2313,7 @@ var concurrencyIsSequential = (concurrency) => concurrency === undefined || conc
|
|
|
2320
2313
|
var mapEffect = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? mapEffectSequential(self, f) : mapEffectConcurrent(self, f, options));
|
|
2321
2314
|
var mapEffectSequential = (self, f) => fromTransform((upstream, scope) => {
|
|
2322
2315
|
let i = 0;
|
|
2323
|
-
return
|
|
2316
|
+
return map7(toTransform(self)(upstream, scope), flatMap3((o) => f(o, i++)));
|
|
2324
2317
|
});
|
|
2325
2318
|
var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2326
2319
|
let i = 0;
|
|
@@ -2331,7 +2324,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
|
|
|
2331
2324
|
const runFork = runForkWith(yield* context());
|
|
2332
2325
|
const trackFiber = runIn(forkedScope);
|
|
2333
2326
|
if (options.unordered) {
|
|
2334
|
-
const semaphore =
|
|
2327
|
+
const semaphore = makeUnsafe2(concurrencyN);
|
|
2335
2328
|
const release = constant(semaphore.release(1));
|
|
2336
2329
|
const handle = matchCauseEffect({
|
|
2337
2330
|
onFailure: (cause) => flatMap3(failCause(queue, cause), release),
|
|
@@ -2372,7 +2365,7 @@ var mapEffectConcurrent = (self, f, options) => fromTransformBracket(fnUntraced(
|
|
|
2372
2365
|
return take(queue);
|
|
2373
2366
|
}));
|
|
2374
2367
|
var flatMap = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, f, options) => concurrencyIsSequential(options?.concurrency) ? flatMapSequential(self, f) : flatMapConcurrent(self, f, options));
|
|
2375
|
-
var flatMapSequential = (self, f) => fromTransform((upstream, scope) =>
|
|
2368
|
+
var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map7(toTransform(self)(upstream, scope), (pull) => {
|
|
2376
2369
|
let childPull;
|
|
2377
2370
|
let childScope;
|
|
2378
2371
|
const makePull = flatMap3(pull, (value) => {
|
|
@@ -2393,7 +2386,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map8(toT
|
|
|
2393
2386
|
});
|
|
2394
2387
|
return suspend3(() => childPull ?? makePull);
|
|
2395
2388
|
}));
|
|
2396
|
-
var flatMapConcurrent = (self, f, options) => self.pipe(
|
|
2389
|
+
var flatMapConcurrent = (self, f, options) => self.pipe(map8(f), mergeAll(options));
|
|
2397
2390
|
var flatten2 = (channels) => flatMap(channels, identity);
|
|
2398
2391
|
var flattenArray = (self) => transformPull(self, (pull) => {
|
|
2399
2392
|
let array;
|
|
@@ -2433,7 +2426,7 @@ var filterArray = /* @__PURE__ */ dual(2, (self, predicate) => transformPull(sel
|
|
|
2433
2426
|
}))));
|
|
2434
2427
|
var catchCause3 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream, scope) => {
|
|
2435
2428
|
let forkedScope = forkUnsafe(scope);
|
|
2436
|
-
return
|
|
2429
|
+
return map7(toTransform(self)(upstream, forkedScope), (pull) => {
|
|
2437
2430
|
let currentPull = pull.pipe(catchCause2((cause) => {
|
|
2438
2431
|
if (isDoneCause(cause)) {
|
|
2439
2432
|
return failCause3(cause);
|
|
@@ -2456,7 +2449,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2456
2449
|
switch: switch_ = false
|
|
2457
2450
|
}) => fromTransformBracket(fnUntraced(function* (upstream, scope, forkedScope) {
|
|
2458
2451
|
const concurrencyN = concurrency === "unbounded" ? Number.MAX_SAFE_INTEGER : Math.max(1, concurrency);
|
|
2459
|
-
const semaphore = switch_ ? undefined :
|
|
2452
|
+
const semaphore = switch_ ? undefined : makeUnsafe2(concurrencyN);
|
|
2460
2453
|
const doneLatch = yield* make3(true);
|
|
2461
2454
|
const fibers = new Map;
|
|
2462
2455
|
const queue = yield* bounded(bufferSize);
|
|
@@ -2630,7 +2623,7 @@ var decodeText2 = (encoding, options) => fromTransform((upstream, _scope) => syn
|
|
|
2630
2623
|
const streamOptions = {
|
|
2631
2624
|
stream: true
|
|
2632
2625
|
};
|
|
2633
|
-
let pull = upstream.pipe(
|
|
2626
|
+
let pull = upstream.pipe(map7(map6((bytes) => decoder.decode(bytes, streamOptions))), catchDone((leftover) => {
|
|
2634
2627
|
pull = done(leftover);
|
|
2635
2628
|
const last = decoder.decode();
|
|
2636
2629
|
return last.length > 0 ? succeed6(of(last)) : pull;
|
|
@@ -2657,18 +2650,18 @@ var interruptWhen2 = /* @__PURE__ */ dual(2, (self, effect) => merge(self, fromP
|
|
|
2657
2650
|
var onExit2 = /* @__PURE__ */ dual(2, (self, finalizer) => fromTransformBracket((upstream, scope, forkedScope) => addFinalizerExit(forkedScope, finalizer).pipe(andThen2(toTransform(self)(upstream, scope)))));
|
|
2658
2651
|
var ensuring3 = /* @__PURE__ */ dual(2, (self, finalizer) => onExit2(self, (_) => finalizer));
|
|
2659
2652
|
var runWith = (self, f, onHalt) => suspend3(() => {
|
|
2660
|
-
const scope =
|
|
2653
|
+
const scope = makeUnsafe5();
|
|
2661
2654
|
const makePull = toTransform(self)(done(), scope);
|
|
2662
2655
|
return catchDone(flatMap3(makePull, f), onHalt ? onHalt : succeed6).pipe(onExit((exit) => close(scope, exit)));
|
|
2663
2656
|
});
|
|
2664
|
-
var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) =>
|
|
2657
|
+
var provideContext3 = /* @__PURE__ */ dual(2, (self, context) => fromTransform((upstream, scope) => map7(provideContext2(toTransform(self)(upstream, scope), context), provideContext2(context))));
|
|
2665
2658
|
var runDrain2 = (self) => runWith(self, (pull) => forever(pull, {
|
|
2666
2659
|
disableYield: true
|
|
2667
2660
|
}));
|
|
2668
2661
|
var runForEach2 = /* @__PURE__ */ dual(2, (self, f) => runWith(self, (pull) => forever(flatMap3(pull, f), {
|
|
2669
2662
|
disableYield: true
|
|
2670
2663
|
})));
|
|
2671
|
-
var mkUint8Array = (self) =>
|
|
2664
|
+
var mkUint8Array = (self) => map7(runFold2(self, () => ({
|
|
2672
2665
|
bytes: 0,
|
|
2673
2666
|
arrays: []
|
|
2674
2667
|
}), (acc, chunk) => {
|
|
@@ -2762,160 +2755,18 @@ var forEach2 = (f) => forEachArray(forEach((_) => f(_), {
|
|
|
2762
2755
|
var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f), forever({
|
|
2763
2756
|
disableYield: true
|
|
2764
2757
|
}), catchDone(() => endVoid)));
|
|
2765
|
-
var unwrap3 = (effect) => fromChannel(unwrap2(
|
|
2766
|
-
|
|
2767
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2768
|
-
var TypeId8 = "~effect/RcRef";
|
|
2769
|
-
var stateEmpty = {
|
|
2770
|
-
_tag: "Empty"
|
|
2771
|
-
};
|
|
2772
|
-
var stateClosed = {
|
|
2773
|
-
_tag: "Closed"
|
|
2774
|
-
};
|
|
2775
|
-
var variance2 = {
|
|
2776
|
-
_A: identity,
|
|
2777
|
-
_E: identity
|
|
2778
|
-
};
|
|
2779
|
-
|
|
2780
|
-
class RcRefImpl {
|
|
2781
|
-
[TypeId8] = variance2;
|
|
2782
|
-
pipe() {
|
|
2783
|
-
return pipeArguments(this, arguments);
|
|
2784
|
-
}
|
|
2785
|
-
state = stateEmpty;
|
|
2786
|
-
acquire;
|
|
2787
|
-
context;
|
|
2788
|
-
scope;
|
|
2789
|
-
idleTimeToLive;
|
|
2790
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2791
|
-
this.acquire = acquire;
|
|
2792
|
-
this.context = context;
|
|
2793
|
-
this.scope = scope;
|
|
2794
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
var make6 = (options) => withFiber2((fiber) => {
|
|
2798
|
-
const context = fiber.context;
|
|
2799
|
-
const scope = get4(context, Scope);
|
|
2800
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2801
|
-
return as(addFinalizerExit(scope, () => {
|
|
2802
|
-
const state = ref.state;
|
|
2803
|
-
ref.state = stateClosed;
|
|
2804
|
-
if (state._tag === "Acquired")
|
|
2805
|
-
return close(state.scope, void_2);
|
|
2806
|
-
if (state._tag === "Acquiring")
|
|
2807
|
-
return interrupt(state.fiber);
|
|
2808
|
-
return void_3;
|
|
2809
|
-
}), ref);
|
|
2810
|
-
});
|
|
2811
|
-
var getState = (self, restore) => {
|
|
2812
|
-
switch (self.state._tag) {
|
|
2813
|
-
case "Closed": {
|
|
2814
|
-
return interrupt3;
|
|
2815
|
-
}
|
|
2816
|
-
case "Acquired": {
|
|
2817
|
-
const state = self.state;
|
|
2818
|
-
state.refCount++;
|
|
2819
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2820
|
-
}
|
|
2821
|
-
case "Acquiring": {
|
|
2822
|
-
const state = self.state;
|
|
2823
|
-
state.awaiters++;
|
|
2824
|
-
return awaitAcquiring(self, state, restore);
|
|
2825
|
-
}
|
|
2826
|
-
case "Empty": {
|
|
2827
|
-
const acquiring = {
|
|
2828
|
-
_tag: "Acquiring",
|
|
2829
|
-
fiber: undefined,
|
|
2830
|
-
awaiters: 1,
|
|
2831
|
-
acquired: undefined
|
|
2832
|
-
};
|
|
2833
|
-
self.state = acquiring;
|
|
2834
|
-
const scope = makeUnsafe6();
|
|
2835
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2836
|
-
if (self.state !== acquiring) {
|
|
2837
|
-
return interrupt3;
|
|
2838
|
-
}
|
|
2839
|
-
const state = {
|
|
2840
|
-
_tag: "Acquired",
|
|
2841
|
-
value,
|
|
2842
|
-
scope,
|
|
2843
|
-
fiber: undefined,
|
|
2844
|
-
refCount: acquiring.awaiters,
|
|
2845
|
-
invalidated: false
|
|
2846
|
-
};
|
|
2847
|
-
self.state = state;
|
|
2848
|
-
acquiring.acquired = state;
|
|
2849
|
-
return succeed6(state);
|
|
2850
|
-
}), onExit((exit) => {
|
|
2851
|
-
if (isSuccess2(exit))
|
|
2852
|
-
return void_3;
|
|
2853
|
-
if (self.state === acquiring)
|
|
2854
|
-
self.state = stateEmpty;
|
|
2855
|
-
return close(scope, exit);
|
|
2856
|
-
}));
|
|
2857
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2858
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
};
|
|
2862
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2863
|
-
const acquired = acquiring.acquired;
|
|
2864
|
-
if (acquired !== undefined) {
|
|
2865
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2866
|
-
}
|
|
2867
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2868
|
-
return void_3;
|
|
2869
|
-
self.state = stateEmpty;
|
|
2870
|
-
return interrupt(acquiring.fiber);
|
|
2871
|
-
});
|
|
2872
|
-
var get2 = (self_) => {
|
|
2873
|
-
const self = self_;
|
|
2874
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2875
|
-
};
|
|
2876
|
-
var release = (self, state) => {
|
|
2877
|
-
state.refCount--;
|
|
2878
|
-
if (state.refCount > 0) {
|
|
2879
|
-
return void_3;
|
|
2880
|
-
}
|
|
2881
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
2882
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2883
|
-
if (self.state === state) {
|
|
2884
|
-
self.state = stateEmpty;
|
|
2885
|
-
}
|
|
2886
|
-
return close(state.scope, void_2);
|
|
2887
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
2888
|
-
return void_3;
|
|
2889
|
-
}
|
|
2890
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2891
|
-
if (self.state === state && state.refCount === 0) {
|
|
2892
|
-
self.state = stateEmpty;
|
|
2893
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
2894
|
-
log: "Unhandled",
|
|
2895
|
-
message: "Unhandled error in RcRef finalizer"
|
|
2896
|
-
});
|
|
2897
|
-
}
|
|
2898
|
-
return void_3;
|
|
2899
|
-
})).pipe(ensuring2(sync2(() => {
|
|
2900
|
-
state.fiber = undefined;
|
|
2901
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
2902
|
-
return void_3;
|
|
2903
|
-
};
|
|
2904
|
-
|
|
2905
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2906
|
-
var make10 = make6;
|
|
2907
|
-
var get3 = get2;
|
|
2758
|
+
var unwrap3 = (effect) => fromChannel(unwrap2(map7(effect, toChannel)));
|
|
2908
2759
|
|
|
2909
2760
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2910
|
-
var
|
|
2911
|
-
var isStream = (u) => hasProperty(u,
|
|
2761
|
+
var TypeId8 = "~effect/Stream";
|
|
2762
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2912
2763
|
var fromChannel2 = fromChannel3;
|
|
2913
2764
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2914
2765
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2915
2766
|
var toChannel2 = (stream) => stream.channel;
|
|
2916
2767
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2917
2768
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2918
|
-
var
|
|
2769
|
+
var make10 = (...values) => fromArray2(values);
|
|
2919
2770
|
var suspend = (stream) => {
|
|
2920
2771
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2921
2772
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2928,12 +2779,12 @@ var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succee
|
|
|
2928
2779
|
var fromQueue = (queue) => fromChannel2(fromQueueArray(queue));
|
|
2929
2780
|
var fromPubSub = (pubsub) => fromChannel2(fromPubSubArray(pubsub));
|
|
2930
2781
|
var fromReadableStream = (options) => fromChannel2(fromReadableStream2(options));
|
|
2931
|
-
var unwrap = (effect) => fromChannel2(unwrap2(
|
|
2782
|
+
var unwrap = (effect) => fromChannel2(unwrap2(map7(effect, toChannel2)));
|
|
2932
2783
|
var map2 = /* @__PURE__ */ dual(2, (self, f) => suspend(() => {
|
|
2933
2784
|
let i = 0;
|
|
2934
|
-
return fromChannel2(
|
|
2785
|
+
return fromChannel2(map8(self.channel, map6((o) => f(o, i++))));
|
|
2935
2786
|
}));
|
|
2936
|
-
var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options),
|
|
2787
|
+
var mapEffect2 = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => self.channel.pipe(flattenArray, mapEffect(f, options), map8(of), fromChannel2));
|
|
2937
2788
|
var tap = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, f, options) => mapEffect2(self, (a) => as(f(a), a), options));
|
|
2938
2789
|
var drainFork = /* @__PURE__ */ dual(2, (self, that) => mergeEffect2(self, runDrain(that)));
|
|
2939
2790
|
var concat = /* @__PURE__ */ dual(2, (self, that) => {
|
|
@@ -2984,7 +2835,7 @@ var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (up
|
|
|
2984
2835
|
done2 = fail4(error);
|
|
2985
2836
|
return done();
|
|
2986
2837
|
}));
|
|
2987
|
-
const pull =
|
|
2838
|
+
const pull = map7(suspend3(() => sink.transform(upstreamWithLeftover, scope)), ([value, leftover_]) => {
|
|
2988
2839
|
leftover = leftover_;
|
|
2989
2840
|
return of(value);
|
|
2990
2841
|
});
|
|
@@ -2999,7 +2850,7 @@ var splitLines = (self) => self.channel.pipe(pipeTo(splitLines2()), fromChannel2
|
|
|
2999
2850
|
var interruptWhen = /* @__PURE__ */ dual(2, (self, effect) => fromChannel2(interruptWhen2(self.channel, effect)));
|
|
3000
2851
|
var ensuring = /* @__PURE__ */ dual(2, (self, finalizer) => fromChannel2(ensuring3(self.channel, finalizer)));
|
|
3001
2852
|
var provideContext = /* @__PURE__ */ dual(2, (self, context) => fromChannel2(provideContext3(self.channel, context)));
|
|
3002
|
-
var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)),
|
|
2853
|
+
var run = /* @__PURE__ */ dual(2, (self, sink) => scopedWith((scope) => toPullScoped(self.channel, scope).pipe(flatMap3((upstream) => runSink(sink, upstream, scope)), map7(([a]) => a))));
|
|
3003
2854
|
var runSink = (sink, upstream, scope) => restoreUpstreamFailure(sink.transform(upstreamFailureToDefect(upstream), scope));
|
|
3004
2855
|
var runCollect = (self) => runFold2(self.channel, () => [], (acc, chunk) => {
|
|
3005
2856
|
for (let i = 0;i < chunk.length; i++) {
|
|
@@ -3013,7 +2864,7 @@ var runFold = /* @__PURE__ */ dual(3, (self, initial, f) => runFold2(self.channe
|
|
|
3013
2864
|
}
|
|
3014
2865
|
return acc;
|
|
3015
2866
|
}));
|
|
3016
|
-
var runHead = (self) =>
|
|
2867
|
+
var runHead = (self) => map7(runHead2(self.channel), map4(getUnsafe2(0)));
|
|
3017
2868
|
var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel, (arr) => {
|
|
3018
2869
|
let i = 0;
|
|
3019
2870
|
return whileLoop({
|
|
@@ -3024,12 +2875,12 @@ var runForEach = /* @__PURE__ */ dual(2, (self, f) => runForEach2(self.channel,
|
|
|
3024
2875
|
}));
|
|
3025
2876
|
var runDrain = (self) => runDrain2(self.channel);
|
|
3026
2877
|
var mkString = (self) => runFold2(self.channel, () => "", (acc, chunk) => acc + chunk.join(""));
|
|
3027
|
-
var mkArrayBuffer = (self) =>
|
|
2878
|
+
var mkArrayBuffer = (self) => map7(mkUint8Array(self.channel), (bytes) => bytes.buffer);
|
|
3028
2879
|
var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, context, options) => {
|
|
3029
2880
|
let currentResolve = undefined;
|
|
3030
2881
|
let fiber = undefined;
|
|
3031
2882
|
let cancelled = false;
|
|
3032
|
-
const latch =
|
|
2883
|
+
const latch = makeUnsafe(false);
|
|
3033
2884
|
const signal = options?.signal;
|
|
3034
2885
|
const onAbort = () => fiber.interruptUnsafe();
|
|
3035
2886
|
return new ReadableStream({
|
|
@@ -3075,14 +2926,14 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3075
2926
|
}
|
|
3076
2927
|
}, options?.strategy);
|
|
3077
2928
|
});
|
|
3078
|
-
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) =>
|
|
2929
|
+
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map7(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3079
2930
|
|
|
3080
2931
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3081
|
-
var
|
|
2932
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3082
2933
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3083
|
-
var
|
|
2934
|
+
var make11 = (impl) => FileSystem.of({
|
|
3084
2935
|
...impl,
|
|
3085
|
-
[
|
|
2936
|
+
[TypeId9]: TypeId9,
|
|
3086
2937
|
glob: make2(impl),
|
|
3087
2938
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3088
2939
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3098,11 +2949,11 @@ var make12 = (impl) => FileSystem.of({
|
|
|
3098
2949
|
const file = yield* impl.open(path, {
|
|
3099
2950
|
flag: "r"
|
|
3100
2951
|
});
|
|
3101
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2952
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3102
2953
|
if (offset) {
|
|
3103
2954
|
yield* file.seek(offset, "start");
|
|
3104
2955
|
}
|
|
3105
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2956
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3106
2957
|
let totalBytesRead = BigInt(0);
|
|
3107
2958
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3108
2959
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3122,7 +2973,7 @@ var make12 = (impl) => FileSystem.of({
|
|
|
3122
2973
|
sink: (path, options) => pipe(impl.open(path, {
|
|
3123
2974
|
...options,
|
|
3124
2975
|
flag: options?.flag ?? "w"
|
|
3125
|
-
}),
|
|
2976
|
+
}), map7((file) => forEach2((_) => file.writeAll(_))), unwrap3),
|
|
3126
2977
|
writeFileString: (path, data, options) => flatMap3(try_2({
|
|
3127
2978
|
try: () => new TextEncoder().encode(data),
|
|
3128
2979
|
catch: (cause) => badArgument({
|
|
@@ -3138,11 +2989,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3138
2989
|
}
|
|
3139
2990
|
|
|
3140
2991
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3141
|
-
var
|
|
2992
|
+
var TypeId10 = "~effect/Path";
|
|
3142
2993
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3143
|
-
var
|
|
2994
|
+
var make12 = (impl) => Path.of({
|
|
3144
2995
|
...impl,
|
|
3145
|
-
[
|
|
2996
|
+
[TypeId10]: TypeId10,
|
|
3146
2997
|
resolveWithin(root, input) {
|
|
3147
2998
|
if (impl.parse(input).root !== "")
|
|
3148
2999
|
return none();
|
|
@@ -3215,7 +3066,7 @@ function makeProvider(load, mapInput) {
|
|
|
3215
3066
|
function makeSource(get, transform) {
|
|
3216
3067
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3217
3068
|
}
|
|
3218
|
-
function
|
|
3069
|
+
function make6(get) {
|
|
3219
3070
|
return makeSource(get, identityPath);
|
|
3220
3071
|
}
|
|
3221
3072
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3224,7 +3075,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3224
3075
|
function fromEnvRecord(env, options) {
|
|
3225
3076
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3226
3077
|
const trie = buildEnvTrie(env);
|
|
3227
|
-
return
|
|
3078
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3228
3079
|
}
|
|
3229
3080
|
function fromEnv(options) {
|
|
3230
3081
|
const env = options?.env ?? {
|
|
@@ -3277,7 +3128,7 @@ function trieNodeAt(root, path) {
|
|
|
3277
3128
|
}
|
|
3278
3129
|
|
|
3279
3130
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3280
|
-
var
|
|
3131
|
+
var TypeId11 = "~effect/Config";
|
|
3281
3132
|
class ConfigError {
|
|
3282
3133
|
_tag = "ConfigError";
|
|
3283
3134
|
name = "ConfigError";
|
|
@@ -3299,14 +3150,14 @@ var Proto2 = {
|
|
|
3299
3150
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3300
3151
|
}
|
|
3301
3152
|
}),
|
|
3302
|
-
[
|
|
3153
|
+
[TypeId11]: TypeId11,
|
|
3303
3154
|
toJSON() {
|
|
3304
3155
|
return {
|
|
3305
3156
|
_id: "Config"
|
|
3306
3157
|
};
|
|
3307
3158
|
}
|
|
3308
3159
|
};
|
|
3309
|
-
function
|
|
3160
|
+
function make7(evaluator) {
|
|
3310
3161
|
const self = Object.create(Proto2);
|
|
3311
3162
|
self.evaluator = evaluator;
|
|
3312
3163
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3314,14 +3165,14 @@ function make14(evaluator) {
|
|
|
3314
3165
|
}
|
|
3315
3166
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3316
3167
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3317
|
-
return
|
|
3168
|
+
return make7((provider, pathPrefix) => map7(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3318
3169
|
});
|
|
3319
3170
|
function all(arg) {
|
|
3320
3171
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3321
|
-
return
|
|
3172
|
+
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));
|
|
3322
3173
|
}
|
|
3323
3174
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3324
|
-
return
|
|
3175
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3325
3176
|
});
|
|
3326
3177
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3327
3178
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3440,7 +3291,7 @@ function schema(codec, path) {
|
|
|
3440
3291
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3441
3292
|
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3442
3293
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3443
|
-
return
|
|
3294
|
+
return make7((provider, pathPrefix) => {
|
|
3444
3295
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3445
3296
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3446
3297
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3463,7 +3314,7 @@ var optionalEnv = (name) => gen(function* () {
|
|
|
3463
3314
|
}).pipe(orElseSucceed(() => {
|
|
3464
3315
|
return;
|
|
3465
3316
|
}));
|
|
3466
|
-
var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(
|
|
3317
|
+
var operatorConfigHome = (home) => optionalEnv("XDG_CONFIG_HOME").pipe(map7((configHome) => configHome ?? `${home}/.config`));
|
|
3467
3318
|
|
|
3468
3319
|
// packages/agent-runtime/src/srt-sandbox.ts
|
|
3469
3320
|
var harnessesUnsupportedInSrt2 = ["codex"];
|
|
@@ -3516,7 +3367,7 @@ var srtInheritedEnv2 = [
|
|
|
3516
3367
|
"LC_CTYPE",
|
|
3517
3368
|
"TZ"
|
|
3518
3369
|
];
|
|
3519
|
-
var inheritedEnvironment2 = (names) =>
|
|
3370
|
+
var inheritedEnvironment2 = (names) => map7(forEach(names, (name) => map7(optionalEnv(name), (value) => value === undefined ? [] : [[name, value]])), (entries) => Object.fromEntries(entries.flat()));
|
|
3520
3371
|
var shellName = /^[A-Za-z_][A-Za-z0-9_]*$/;
|
|
3521
3372
|
var withOnlyEnvironment2 = (names, argv) => [
|
|
3522
3373
|
"sh",
|
|
@@ -3552,4 +3403,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3552
3403
|
...argv
|
|
3553
3404
|
];
|
|
3554
3405
|
|
|
3555
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument,
|
|
3406
|
+
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, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|