@kitman-sh/cli 0.12.0-rc.4 → 0.12.0-rc.5
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-t2mr6z38.js → chunk-26mj3vr6.js} +37 -37
- package/dist/{chunk-b50dvx41.js → chunk-2s4x5t92.js} +5 -5
- package/dist/{chunk-74txrt4s.js → chunk-31hk2bjb.js} +4 -4
- package/dist/{chunk-k81ay8y5.js → chunk-3530xts6.js} +10 -10
- package/dist/{chunk-zmcghp8w.js → chunk-5zzfsv07.js} +43 -183
- package/dist/{chunk-ezf2myj0.js → chunk-6x9e1etb.js} +3 -3
- package/dist/{chunk-r1z41qx6.js → chunk-77k89h98.js} +329 -181
- package/dist/{chunk-ydydx55z.js → chunk-bbadvwds.js} +1 -1
- package/dist/{chunk-bq55md8p.js → chunk-bj73db3f.js} +1 -1
- package/dist/{chunk-6b0k02x4.js → chunk-bv9e34qz.js} +1 -1
- package/dist/{chunk-xavcp9se.js → chunk-cegdw7gw.js} +2 -2
- package/dist/{chunk-nzsrse8d.js → chunk-dd8hae73.js} +61 -60
- package/dist/{chunk-kybp1mkk.js → chunk-e838cw9z.js} +11 -11
- package/dist/{chunk-w0aj9mkz.js → chunk-gr816kwr.js} +10 -10
- package/dist/{chunk-ckkpqcfv.js → chunk-hrds2xy2.js} +7 -7
- package/dist/{chunk-e7q2frvs.js → chunk-k9jd2dm0.js} +7 -7
- package/dist/{chunk-w6cm939j.js → chunk-kvm7j3ed.js} +19 -19
- package/dist/{chunk-7kjsvwzv.js → chunk-nc1rxeav.js} +8 -8
- package/dist/{chunk-pw10mq9e.js → chunk-rjdptgqf.js} +4 -4
- package/dist/{chunk-aafxvmj1.js → chunk-s1pjsak4.js} +7 -7
- package/dist/{chunk-xy5f2nv9.js → chunk-s661f8p0.js} +2 -2
- package/dist/{chunk-79gx7ek9.js → chunk-txyp31q5.js} +59 -101
- package/dist/{chunk-qjd6w9sw.js → chunk-x70r99jg.js} +2 -2
- package/dist/{chunk-c9007k48.js → chunk-xmq9zpr1.js} +1 -1
- package/dist/{chunk-jntxtx9j.js → chunk-y2mkzww9.js} +60 -14
- package/dist/{chunk-rjasmnav.js → chunk-yafg281p.js} +39 -26
- 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,7 +81,6 @@ import {
|
|
|
84
81
|
fail4,
|
|
85
82
|
interrupt2,
|
|
86
83
|
void_2,
|
|
87
|
-
isSuccess2,
|
|
88
84
|
isFailure2,
|
|
89
85
|
asVoidAll,
|
|
90
86
|
makeUnsafe5,
|
|
@@ -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,
|
|
@@ -197,11 +190,11 @@ import {
|
|
|
197
190
|
toEncoded,
|
|
198
191
|
decodeUnknownEffect,
|
|
199
192
|
SchemaError,
|
|
200
|
-
|
|
193
|
+
make16,
|
|
201
194
|
String4,
|
|
202
195
|
toCodecStringTree,
|
|
203
196
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-txyp31q5.js";
|
|
205
198
|
|
|
206
199
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
200
|
var headUnsafe = (self) => {
|
|
@@ -250,6 +243,15 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
243
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
244
|
};
|
|
252
245
|
|
|
246
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
247
|
+
var BigInt2 = globalThis.BigInt;
|
|
248
|
+
var toNumber = (b) => {
|
|
249
|
+
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
250
|
+
return none();
|
|
251
|
+
}
|
|
252
|
+
return some(Number(b));
|
|
253
|
+
};
|
|
254
|
+
|
|
253
255
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
254
256
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
255
257
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -370,7 +372,7 @@ var fromStringUnsafe = (input) => {
|
|
|
370
372
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
371
373
|
return make(value);
|
|
372
374
|
};
|
|
373
|
-
var
|
|
375
|
+
var fromInputUnsafe = (input) => {
|
|
374
376
|
switch (typeof input) {
|
|
375
377
|
case "bigint":
|
|
376
378
|
if (input < bigint0)
|
|
@@ -383,7 +385,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
383
385
|
}
|
|
384
386
|
return invalid(`unsupported input ${input}`);
|
|
385
387
|
};
|
|
386
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
388
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
387
389
|
|
|
388
390
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
389
391
|
var join = fiberJoin;
|
|
@@ -1129,7 +1131,7 @@ var MutableRefProto = {
|
|
|
1129
1131
|
};
|
|
1130
1132
|
}
|
|
1131
1133
|
};
|
|
1132
|
-
var
|
|
1134
|
+
var make8 = (value) => {
|
|
1133
1135
|
const ref = Object.create(MutableRefProto);
|
|
1134
1136
|
ref.current = value;
|
|
1135
1137
|
return ref;
|
|
@@ -1290,7 +1292,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1292
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1293
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1294
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1295
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1294
1296
|
var unbounded = (options) => make5({
|
|
1295
1297
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1298
|
strategy: () => new DroppingStrategy
|
|
@@ -1309,7 +1311,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1309
1311
|
return false;
|
|
1310
1312
|
});
|
|
1311
1313
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1312
|
-
const localScope =
|
|
1314
|
+
const localScope = get3(services, Scope);
|
|
1313
1315
|
const scope = forkUnsafe(self.scope);
|
|
1314
1316
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1315
1317
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1385,7 +1387,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1387
|
subscribers.delete(subscription);
|
|
1386
1388
|
}
|
|
1387
1389
|
};
|
|
1388
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1390
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1391
|
class UnboundedPubSub {
|
|
1390
1392
|
publisherHead = {
|
|
1391
1393
|
value: AbsentValue,
|
|
@@ -1802,7 +1804,7 @@ var QueueProto = {
|
|
|
1802
1804
|
};
|
|
1803
1805
|
}
|
|
1804
1806
|
};
|
|
1805
|
-
var
|
|
1807
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1806
1808
|
const self = Object.create(QueueProto);
|
|
1807
1809
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1810
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1817,14 +1819,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1817
1819
|
};
|
|
1818
1820
|
return succeed2(self);
|
|
1819
1821
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1822
|
+
var bounded = (capacity) => make9({
|
|
1821
1823
|
capacity
|
|
1822
1824
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1825
|
+
var sliding = (capacity) => make9({
|
|
1824
1826
|
capacity,
|
|
1825
1827
|
strategy: "sliding"
|
|
1826
1828
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1829
|
+
var unbounded2 = () => make9();
|
|
1828
1830
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1831
|
var offerUnsafe = (self, message) => {
|
|
1830
1832
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2252,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2252
|
return onError(pull, onCause);
|
|
2251
2253
|
}));
|
|
2252
2254
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2255
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2254
2256
|
capacity: options?.bufferSize,
|
|
2255
2257
|
strategy: options?.strategy
|
|
2256
2258
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2293,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2293
|
}));
|
|
2292
2294
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2295
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2296
|
+
const exit = options.exit ?? make8(undefined);
|
|
2295
2297
|
const pull = suspend3(() => {
|
|
2296
2298
|
if (exit.current)
|
|
2297
2299
|
return exit.current;
|
|
@@ -2766,151 +2768,9 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2766
2768
|
}), catchDone(() => endVoid)));
|
|
2767
2769
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2768
2770
|
|
|
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 make9 = make6;
|
|
2909
|
-
var get3 = get2;
|
|
2910
|
-
|
|
2911
2771
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2912
|
-
var
|
|
2913
|
-
var isStream = (u) => hasProperty(u,
|
|
2772
|
+
var TypeId8 = "~effect/Stream";
|
|
2773
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2914
2774
|
var fromChannel2 = fromChannel3;
|
|
2915
2775
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2916
2776
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
@@ -3080,11 +2940,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3080
2940
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3081
2941
|
|
|
3082
2942
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3083
|
-
var
|
|
2943
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3084
2944
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3085
2945
|
var make11 = (impl) => FileSystem.of({
|
|
3086
2946
|
...impl,
|
|
3087
|
-
[
|
|
2947
|
+
[TypeId9]: TypeId9,
|
|
3088
2948
|
glob: make2(impl),
|
|
3089
2949
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3090
2950
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3100,11 +2960,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3100
2960
|
const file = yield* impl.open(path, {
|
|
3101
2961
|
flag: "r"
|
|
3102
2962
|
});
|
|
3103
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2963
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3104
2964
|
if (offset) {
|
|
3105
2965
|
yield* file.seek(offset, "start");
|
|
3106
2966
|
}
|
|
3107
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2967
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3108
2968
|
let totalBytesRead = BigInt(0);
|
|
3109
2969
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3110
2970
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3140,11 +3000,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3140
3000
|
}
|
|
3141
3001
|
|
|
3142
3002
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3143
|
-
var
|
|
3003
|
+
var TypeId10 = "~effect/Path";
|
|
3144
3004
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3145
3005
|
var make12 = (impl) => Path.of({
|
|
3146
3006
|
...impl,
|
|
3147
|
-
[
|
|
3007
|
+
[TypeId10]: TypeId10,
|
|
3148
3008
|
resolveWithin(root, input) {
|
|
3149
3009
|
if (impl.parse(input).root !== "")
|
|
3150
3010
|
return none();
|
|
@@ -3217,7 +3077,7 @@ function makeProvider(load, mapInput) {
|
|
|
3217
3077
|
function makeSource(get, transform) {
|
|
3218
3078
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3219
3079
|
}
|
|
3220
|
-
function
|
|
3080
|
+
function make6(get) {
|
|
3221
3081
|
return makeSource(get, identityPath);
|
|
3222
3082
|
}
|
|
3223
3083
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3226,7 +3086,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3226
3086
|
function fromEnvRecord(env, options) {
|
|
3227
3087
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3228
3088
|
const trie = buildEnvTrie(env);
|
|
3229
|
-
return
|
|
3089
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3230
3090
|
}
|
|
3231
3091
|
function fromEnv(options) {
|
|
3232
3092
|
const env = options?.env ?? {
|
|
@@ -3279,7 +3139,7 @@ function trieNodeAt(root, path) {
|
|
|
3279
3139
|
}
|
|
3280
3140
|
|
|
3281
3141
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3282
|
-
var
|
|
3142
|
+
var TypeId11 = "~effect/Config";
|
|
3283
3143
|
class ConfigError {
|
|
3284
3144
|
_tag = "ConfigError";
|
|
3285
3145
|
name = "ConfigError";
|
|
@@ -3301,14 +3161,14 @@ var Proto2 = {
|
|
|
3301
3161
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3302
3162
|
}
|
|
3303
3163
|
}),
|
|
3304
|
-
[
|
|
3164
|
+
[TypeId11]: TypeId11,
|
|
3305
3165
|
toJSON() {
|
|
3306
3166
|
return {
|
|
3307
3167
|
_id: "Config"
|
|
3308
3168
|
};
|
|
3309
3169
|
}
|
|
3310
3170
|
};
|
|
3311
|
-
function
|
|
3171
|
+
function make7(evaluator) {
|
|
3312
3172
|
const self = Object.create(Proto2);
|
|
3313
3173
|
self.evaluator = evaluator;
|
|
3314
3174
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3316,14 +3176,14 @@ function make14(evaluator) {
|
|
|
3316
3176
|
}
|
|
3317
3177
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3318
3178
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3319
|
-
return
|
|
3179
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3320
3180
|
});
|
|
3321
3181
|
function all(arg) {
|
|
3322
3182
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3323
|
-
return
|
|
3183
|
+
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
3184
|
}
|
|
3325
3185
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3326
|
-
return
|
|
3186
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3327
3187
|
});
|
|
3328
3188
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3329
3189
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3440,9 +3300,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3440
3300
|
function schema(codec, path) {
|
|
3441
3301
|
const codecStringTree = toCodecStringTree(codec);
|
|
3442
3302
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3443
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3303
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3444
3304
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3445
|
-
return
|
|
3305
|
+
return make7((provider, pathPrefix) => {
|
|
3446
3306
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3447
3307
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3448
3308
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3557,4 +3417,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3557
3417
|
...argv
|
|
3558
3418
|
];
|
|
3559
3419
|
|
|
3560
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3420
|
+
export { map, makeEquivalence, toNumber, 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, 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 };
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-txyp31q5.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5zzfsv07.js";
|
|
32
32
|
import {
|
|
33
33
|
digestSha256,
|
|
34
34
|
digestSha512,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
get2,
|
|
39
39
|
layer4,
|
|
40
40
|
KitDigest
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-77k89h98.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|