@kitman-sh/cli 0.13.11 → 0.13.12
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-jyq4790r.js → chunk-02ye1s9f.js} +9 -9
- package/dist/{chunk-5zth85pj.js → chunk-1bkrxc3v.js} +2 -2
- package/dist/{chunk-xzfj61cp.js → chunk-2xh5p0na.js} +8 -7
- package/dist/{chunk-mx3zt8v8.js → chunk-36s51mp6.js} +39 -30
- package/dist/{chunk-mtkstrh3.js → chunk-3z9yz32f.js} +2 -2
- package/dist/{chunk-p8fhxfa0.js → chunk-4m923rz8.js} +3 -3
- package/dist/{chunk-5zhh41gb.js → chunk-4t6nrgxw.js} +4 -4
- package/dist/{chunk-acneym1p.js → chunk-8cxh8j07.js} +129 -39
- package/dist/{chunk-zw3gf6r5.js → chunk-8pbnfqaz.js} +60 -60
- package/dist/{chunk-j48k8j8y.js → chunk-8t1vygmr.js} +4 -4
- package/dist/{chunk-3rkhx6gq.js → chunk-95w14qxp.js} +6 -6
- package/dist/{chunk-krqb80g6.js → chunk-9d03t0pn.js} +5 -5
- package/dist/{chunk-y1krmnbv.js → chunk-eahqsd8h.js} +2 -2
- package/dist/{chunk-gq7y5v3e.js → chunk-fwja3qb1.js} +1 -1
- package/dist/{chunk-q5w3v4k1.js → chunk-mcw7wvtx.js} +1 -6
- package/dist/{chunk-fcb6skhx.js → chunk-n1aqwdc2.js} +7 -7
- package/dist/{chunk-7rpd6a98.js → chunk-n734b61f.js} +1 -1
- package/dist/{chunk-cbpb2rww.js → chunk-nge8fq10.js} +5 -5
- package/dist/{chunk-h7mnz0w3.js → chunk-npjpmb0w.js} +6 -6
- package/dist/{chunk-0h49y8gf.js → chunk-szt25e0z.js} +56 -181
- package/dist/{chunk-dtkejy3r.js → chunk-ths93svq.js} +393 -135
- package/dist/{chunk-p0vqjc0n.js → chunk-x5nv63jj.js} +2 -2
- package/dist/{chunk-gy9rf14f.js → chunk-yab3j170.js} +3 -3
- package/dist/{chunk-5an78wy8.js → chunk-z74fnmqb.js} +18 -18
- package/dist/{chunk-rh9g6sef.js → chunk-zb5pnthp.js} +64 -31
- 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,
|
|
@@ -79,12 +76,13 @@ import {
|
|
|
79
76
|
fiberRunIn,
|
|
80
77
|
makeLatchUnsafe,
|
|
81
78
|
makeLatch,
|
|
79
|
+
ClockRef,
|
|
80
|
+
currentTimeMillis2,
|
|
82
81
|
succeed3,
|
|
83
82
|
failCause2,
|
|
84
83
|
fail4,
|
|
85
84
|
interrupt2,
|
|
86
85
|
void_2,
|
|
87
|
-
isSuccess2,
|
|
88
86
|
isFailure2,
|
|
89
87
|
asVoidAll,
|
|
90
88
|
makeUnsafe5,
|
|
@@ -156,14 +154,12 @@ import {
|
|
|
156
154
|
tapError2,
|
|
157
155
|
ignoreCause,
|
|
158
156
|
orElseSucceed,
|
|
159
|
-
sleep,
|
|
160
157
|
raceFirst,
|
|
161
158
|
when,
|
|
162
159
|
matchCauseEffect,
|
|
163
160
|
context,
|
|
164
161
|
contextWith,
|
|
165
162
|
provideContext2,
|
|
166
|
-
scope2,
|
|
167
163
|
scoped,
|
|
168
164
|
scopedWith,
|
|
169
165
|
acquireRelease,
|
|
@@ -174,7 +170,6 @@ import {
|
|
|
174
170
|
interrupt3,
|
|
175
171
|
onInterrupt,
|
|
176
172
|
uninterruptible,
|
|
177
|
-
uninterruptibleMask2,
|
|
178
173
|
forever,
|
|
179
174
|
forkChild,
|
|
180
175
|
forkIn,
|
|
@@ -197,11 +192,11 @@ import {
|
|
|
197
192
|
toEncoded,
|
|
198
193
|
decodeUnknownEffect,
|
|
199
194
|
SchemaError,
|
|
200
|
-
|
|
195
|
+
make16,
|
|
201
196
|
String4,
|
|
202
197
|
toCodecStringTree,
|
|
203
198
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-8pbnfqaz.js";
|
|
205
200
|
|
|
206
201
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
202
|
var headUnsafe = (self) => {
|
|
@@ -250,6 +245,10 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
245
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
246
|
};
|
|
252
247
|
|
|
248
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
249
|
+
var Clock = ClockRef;
|
|
250
|
+
var currentTimeMillis = currentTimeMillis2;
|
|
251
|
+
|
|
253
252
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
254
253
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
255
254
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -370,7 +369,7 @@ var fromStringUnsafe = (input) => {
|
|
|
370
369
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
371
370
|
return make(value);
|
|
372
371
|
};
|
|
373
|
-
var
|
|
372
|
+
var fromInputUnsafe = (input) => {
|
|
374
373
|
switch (typeof input) {
|
|
375
374
|
case "bigint":
|
|
376
375
|
if (input < bigint0)
|
|
@@ -383,7 +382,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
383
382
|
}
|
|
384
383
|
return invalid(`unsupported input ${input}`);
|
|
385
384
|
};
|
|
386
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
385
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
387
386
|
|
|
388
387
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
389
388
|
var join = fiberJoin;
|
|
@@ -1242,7 +1241,7 @@ var takeN = (self, n) => {
|
|
|
1242
1241
|
return array;
|
|
1243
1242
|
};
|
|
1244
1243
|
var takeAll = (self) => takeN(self, self.length);
|
|
1245
|
-
var
|
|
1244
|
+
var take3 = (self) => {
|
|
1246
1245
|
if (!self.head)
|
|
1247
1246
|
return Empty;
|
|
1248
1247
|
const message = self.head.array[self.head.offset];
|
|
@@ -1309,7 +1308,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1309
1308
|
return false;
|
|
1310
1309
|
});
|
|
1311
1310
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1312
|
-
const localScope =
|
|
1311
|
+
const localScope = get3(services, Scope);
|
|
1313
1312
|
const scope = forkUnsafe(self.scope);
|
|
1314
1313
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1315
1314
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1626,7 +1625,7 @@ class DroppingStrategy {
|
|
|
1626
1625
|
var strategyCompletePollersUnsafe = (strategy, pubsub, subscribers, subscription, pollers) => {
|
|
1627
1626
|
let keepPolling = true;
|
|
1628
1627
|
while (keepPolling && !subscription.isEmpty()) {
|
|
1629
|
-
const poller =
|
|
1628
|
+
const poller = take3(pollers);
|
|
1630
1629
|
if (poller === Empty) {
|
|
1631
1630
|
removeSubscribers(subscribers, subscription, pollers);
|
|
1632
1631
|
if (pollers.length === 0) {
|
|
@@ -1831,7 +1830,7 @@ var offerUnsafe = (self, message) => {
|
|
|
1831
1830
|
return false;
|
|
1832
1831
|
} else if (self.messages.length >= self.capacity) {
|
|
1833
1832
|
if (self.strategy === "sliding") {
|
|
1834
|
-
|
|
1833
|
+
take3(self.messages);
|
|
1835
1834
|
append(self.messages, message);
|
|
1836
1835
|
return true;
|
|
1837
1836
|
} else if (self.capacity <= 0 && self.state.takers.size > 0) {
|
|
@@ -1942,7 +1941,7 @@ var takeUnsafe = (self) => {
|
|
|
1942
1941
|
return self.state.exit;
|
|
1943
1942
|
}
|
|
1944
1943
|
if (self.messages.length > 0) {
|
|
1945
|
-
const message =
|
|
1944
|
+
const message = take3(self.messages);
|
|
1946
1945
|
releaseCapacity(self);
|
|
1947
1946
|
return exitSucceed(message);
|
|
1948
1947
|
} else if (self.capacity <= 0 && self.state.offers.size > 0) {
|
|
@@ -2766,158 +2765,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2766
2765
|
}), catchDone(() => endVoid)));
|
|
2767
2766
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2768
2767
|
|
|
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;
|
|
2910
|
-
|
|
2911
2768
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2912
|
-
var
|
|
2913
|
-
var isStream = (u) => hasProperty(u,
|
|
2769
|
+
var TypeId8 = "~effect/Stream";
|
|
2770
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2914
2771
|
var fromChannel2 = fromChannel3;
|
|
2915
2772
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2916
2773
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2917
2774
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2775
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2776
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2777
|
+
var make10 = (...values) => fromArray2(values);
|
|
2921
2778
|
var suspend = (stream) => {
|
|
2922
2779
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2780
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2972,6 +2829,24 @@ var filter = /* @__PURE__ */ dual(2, (self, predicate) => fromChannel2(filterArr
|
|
|
2972
2829
|
var catchCause = /* @__PURE__ */ dual(2, (self, f) => self.channel.pipe(catchCause3((cause) => f(cause).channel), fromChannel2));
|
|
2973
2830
|
var tapError = /* @__PURE__ */ dual(2, (self, f) => self.channel.pipe(tapError3(f), fromChannel2));
|
|
2974
2831
|
var mapError = /* @__PURE__ */ dual(2, (self, f) => fromChannel2(mapError3(self.channel, f)));
|
|
2832
|
+
var take2 = /* @__PURE__ */ dual(2, (self, n) => {
|
|
2833
|
+
const count = normalize(n);
|
|
2834
|
+
return count === 0 ? empty2 : takeUntil(self, (_, i) => i === count - 1);
|
|
2835
|
+
});
|
|
2836
|
+
var takeUntil = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, predicate, options) => transformPull2(self, (pull, _scope) => sync2(() => {
|
|
2837
|
+
let i = 0;
|
|
2838
|
+
let done2 = false;
|
|
2839
|
+
const pump = flatMap3(suspend3(() => done2 ? done() : pull), (chunk) => {
|
|
2840
|
+
const index = chunk.findIndex((a) => predicate(a, i++));
|
|
2841
|
+
if (index >= 0) {
|
|
2842
|
+
done2 = true;
|
|
2843
|
+
const arr = chunk.slice(0, options?.excludeLast ? index : index + 1);
|
|
2844
|
+
return isReadonlyArrayNonEmpty(arr) ? succeed6(arr) : done();
|
|
2845
|
+
}
|
|
2846
|
+
return succeed6(chunk);
|
|
2847
|
+
});
|
|
2848
|
+
return pump;
|
|
2849
|
+
})));
|
|
2975
2850
|
var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope) => sync2(() => {
|
|
2976
2851
|
let done2;
|
|
2977
2852
|
let leftover;
|
|
@@ -3080,11 +2955,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3080
2955
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3081
2956
|
|
|
3082
2957
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3083
|
-
var
|
|
2958
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3084
2959
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3085
|
-
var
|
|
2960
|
+
var make11 = (impl) => FileSystem.of({
|
|
3086
2961
|
...impl,
|
|
3087
|
-
[
|
|
2962
|
+
[TypeId9]: TypeId9,
|
|
3088
2963
|
glob: make2(impl),
|
|
3089
2964
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3090
2965
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3100,11 +2975,11 @@ var make12 = (impl) => FileSystem.of({
|
|
|
3100
2975
|
const file = yield* impl.open(path, {
|
|
3101
2976
|
flag: "r"
|
|
3102
2977
|
});
|
|
3103
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2978
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3104
2979
|
if (offset) {
|
|
3105
2980
|
yield* file.seek(offset, "start");
|
|
3106
2981
|
}
|
|
3107
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2982
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3108
2983
|
let totalBytesRead = BigInt(0);
|
|
3109
2984
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3110
2985
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3140,11 +3015,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3140
3015
|
}
|
|
3141
3016
|
|
|
3142
3017
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3143
|
-
var
|
|
3018
|
+
var TypeId10 = "~effect/Path";
|
|
3144
3019
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3145
|
-
var
|
|
3020
|
+
var make12 = (impl) => Path.of({
|
|
3146
3021
|
...impl,
|
|
3147
|
-
[
|
|
3022
|
+
[TypeId10]: TypeId10,
|
|
3148
3023
|
resolveWithin(root, input) {
|
|
3149
3024
|
if (impl.parse(input).root !== "")
|
|
3150
3025
|
return none();
|
|
@@ -3217,7 +3092,7 @@ function makeProvider(load, mapInput) {
|
|
|
3217
3092
|
function makeSource(get, transform) {
|
|
3218
3093
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3219
3094
|
}
|
|
3220
|
-
function
|
|
3095
|
+
function make6(get) {
|
|
3221
3096
|
return makeSource(get, identityPath);
|
|
3222
3097
|
}
|
|
3223
3098
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3226,7 +3101,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3226
3101
|
function fromEnvRecord(env, options) {
|
|
3227
3102
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3228
3103
|
const trie = buildEnvTrie(env);
|
|
3229
|
-
return
|
|
3104
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3230
3105
|
}
|
|
3231
3106
|
function fromEnv(options) {
|
|
3232
3107
|
const env = options?.env ?? {
|
|
@@ -3279,7 +3154,7 @@ function trieNodeAt(root, path) {
|
|
|
3279
3154
|
}
|
|
3280
3155
|
|
|
3281
3156
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3282
|
-
var
|
|
3157
|
+
var TypeId11 = "~effect/Config";
|
|
3283
3158
|
class ConfigError {
|
|
3284
3159
|
_tag = "ConfigError";
|
|
3285
3160
|
name = "ConfigError";
|
|
@@ -3301,14 +3176,14 @@ var Proto2 = {
|
|
|
3301
3176
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3302
3177
|
}
|
|
3303
3178
|
}),
|
|
3304
|
-
[
|
|
3179
|
+
[TypeId11]: TypeId11,
|
|
3305
3180
|
toJSON() {
|
|
3306
3181
|
return {
|
|
3307
3182
|
_id: "Config"
|
|
3308
3183
|
};
|
|
3309
3184
|
}
|
|
3310
3185
|
};
|
|
3311
|
-
function
|
|
3186
|
+
function make7(evaluator) {
|
|
3312
3187
|
const self = Object.create(Proto2);
|
|
3313
3188
|
self.evaluator = evaluator;
|
|
3314
3189
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3316,14 +3191,14 @@ function make14(evaluator) {
|
|
|
3316
3191
|
}
|
|
3317
3192
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3318
3193
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3319
|
-
return
|
|
3194
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3320
3195
|
});
|
|
3321
3196
|
function all(arg) {
|
|
3322
3197
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3323
|
-
return
|
|
3198
|
+
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
3199
|
}
|
|
3325
3200
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3326
|
-
return
|
|
3201
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3327
3202
|
});
|
|
3328
3203
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3329
3204
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3440,9 +3315,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3440
3315
|
function schema(codec, path) {
|
|
3441
3316
|
const codecStringTree = toCodecStringTree(codec);
|
|
3442
3317
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3443
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3318
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3444
3319
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3445
|
-
return
|
|
3320
|
+
return make7((provider, pathPrefix) => {
|
|
3446
3321
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3447
3322
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3448
3323
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3557,4 +3432,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3557
3432
|
...argv
|
|
3558
3433
|
];
|
|
3559
3434
|
|
|
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,
|
|
3435
|
+
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, runIn, 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, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, 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 };
|