@kitman-sh/cli 0.14.2 → 0.14.3
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/LICENSE.md +10 -0
- package/dist/{chunk-avhqm9p0.js → chunk-2w9a76nr.js} +34 -183
- package/dist/{chunk-ryxff0xk.js → chunk-34748vfg.js} +337 -181
- package/dist/{chunk-gwz39037.js → chunk-3f6mzrm7.js} +1 -1
- package/dist/{chunk-m9x7feh0.js → chunk-44kx62t6.js} +7 -7
- package/dist/{chunk-t9chwen8.js → chunk-65dpe0ev.js} +2 -2
- package/dist/{chunk-ge9qjp6s.js → chunk-7q3t3x0x.js} +6 -6
- package/dist/{chunk-jzfy127y.js → chunk-7v1n7a6k.js} +4 -4
- package/dist/{chunk-v86jpzpr.js → chunk-91j33xf2.js} +9 -9
- package/dist/{chunk-4xez238w.js → chunk-9anvghq2.js} +2 -2
- package/dist/{chunk-h6kd80nr.js → chunk-9avbsbvk.js} +1 -6
- package/dist/{chunk-q4ch3t9q.js → chunk-a4mkjaxa.js} +6 -6
- package/dist/{chunk-scdr623z.js → chunk-bbf0jzsc.js} +1 -1
- package/dist/{chunk-vfw3xn1e.js → chunk-ctpgfdzf.js} +3 -3
- package/dist/{chunk-80vwvv5x.js → chunk-daem5h1c.js} +28 -28
- package/dist/{chunk-39pdxhcv.js → chunk-dhtx14r5.js} +3 -3
- package/dist/{chunk-z7c2ndfg.js → chunk-er9n65mh.js} +11 -11
- package/dist/{chunk-0r9tp5pz.js → chunk-f96vy2h9.js} +4 -4
- package/dist/{chunk-ffq8vvvx.js → chunk-hasfatd4.js} +5 -5
- package/dist/{chunk-hza25m2e.js → chunk-my9vcmfw.js} +31 -31
- package/dist/{chunk-24j1cmsm.js → chunk-rgrpvnwg.js} +21 -21
- package/dist/{chunk-3csj1ve1.js → chunk-rvnem2bt.js} +4 -4
- package/dist/{chunk-yfag1eey.js → chunk-tebzffha.js} +19 -19
- package/dist/{chunk-e024f8af.js → chunk-y0y2gg8d.js} +2 -2
- package/dist/{chunk-1jabs81x.js → chunk-zpp4jg4a.js} +59 -101
- package/dist/{chunk-qqmxhk9w.js → chunk-zxmx605h.js} +60 -14
- package/dist/index.js +4 -4
- package/package.json +4 -3
package/LICENSE.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# O'Saasy License Agreement
|
|
2
|
+
|
|
3
|
+
Copyright © 2026, Mads Kronborg Nordahl.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
2. No licensee or downstream recipient may use the Software (including any modified or derivative versions) to directly compete with the original Licensor by offering it to third parties as a hosted, managed, or Software-as-a-Service (SaaS) product or cloud service where the primary value of the service is the functionality of the Software itself.
|
|
9
|
+
|
|
10
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -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-zpp4jg4a.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;
|
|
@@ -1129,7 +1122,7 @@ var MutableRefProto = {
|
|
|
1129
1122
|
};
|
|
1130
1123
|
}
|
|
1131
1124
|
};
|
|
1132
|
-
var
|
|
1125
|
+
var make8 = (value) => {
|
|
1133
1126
|
const ref = Object.create(MutableRefProto);
|
|
1134
1127
|
ref.current = value;
|
|
1135
1128
|
return ref;
|
|
@@ -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, makeUnsafe6(), makeUnsafe2(false),
|
|
1286
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(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));
|
|
@@ -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(), makeUnsafe2(false),
|
|
1381
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1382
|
class UnboundedPubSub {
|
|
1390
1383
|
publisherHead = {
|
|
1391
1384
|
value: AbsentValue,
|
|
@@ -1802,7 +1795,7 @@ var QueueProto = {
|
|
|
1802
1795
|
};
|
|
1803
1796
|
}
|
|
1804
1797
|
};
|
|
1805
|
-
var
|
|
1798
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1806
1799
|
const self = Object.create(QueueProto);
|
|
1807
1800
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1801
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1817,14 +1810,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1817
1810
|
};
|
|
1818
1811
|
return succeed2(self);
|
|
1819
1812
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1813
|
+
var bounded = (capacity) => make9({
|
|
1821
1814
|
capacity
|
|
1822
1815
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1816
|
+
var sliding = (capacity) => make9({
|
|
1824
1817
|
capacity,
|
|
1825
1818
|
strategy: "sliding"
|
|
1826
1819
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1820
|
+
var unbounded2 = () => make9();
|
|
1828
1821
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1822
|
var offerUnsafe = (self, message) => {
|
|
1830
1823
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2243,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2243
|
return onError(pull, onCause);
|
|
2251
2244
|
}));
|
|
2252
2245
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2246
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2254
2247
|
capacity: options?.bufferSize,
|
|
2255
2248
|
strategy: options?.strategy
|
|
2256
2249
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2284,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2284
|
}));
|
|
2292
2285
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2286
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2287
|
+
const exit = options.exit ?? make8(undefined);
|
|
2295
2288
|
const pull = suspend3(() => {
|
|
2296
2289
|
if (exit.current)
|
|
2297
2290
|
return exit.current;
|
|
@@ -2766,151 +2759,9 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2766
2759
|
}), catchDone(() => endVoid)));
|
|
2767
2760
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2768
2761
|
|
|
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
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))));
|
|
@@ -3098,11 +2949,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3098
2949
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3099
2950
|
|
|
3100
2951
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3101
|
-
var
|
|
2952
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3102
2953
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3103
2954
|
var make11 = (impl) => FileSystem.of({
|
|
3104
2955
|
...impl,
|
|
3105
|
-
[
|
|
2956
|
+
[TypeId9]: TypeId9,
|
|
3106
2957
|
glob: make2(impl),
|
|
3107
2958
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3108
2959
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3118,11 +2969,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3118
2969
|
const file = yield* impl.open(path, {
|
|
3119
2970
|
flag: "r"
|
|
3120
2971
|
});
|
|
3121
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2972
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3122
2973
|
if (offset) {
|
|
3123
2974
|
yield* file.seek(offset, "start");
|
|
3124
2975
|
}
|
|
3125
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2976
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3126
2977
|
let totalBytesRead = BigInt(0);
|
|
3127
2978
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3128
2979
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3158,11 +3009,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3158
3009
|
}
|
|
3159
3010
|
|
|
3160
3011
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3161
|
-
var
|
|
3012
|
+
var TypeId10 = "~effect/Path";
|
|
3162
3013
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3163
3014
|
var make12 = (impl) => Path.of({
|
|
3164
3015
|
...impl,
|
|
3165
|
-
[
|
|
3016
|
+
[TypeId10]: TypeId10,
|
|
3166
3017
|
resolveWithin(root, input) {
|
|
3167
3018
|
if (impl.parse(input).root !== "")
|
|
3168
3019
|
return none();
|
|
@@ -3235,7 +3086,7 @@ function makeProvider(load, mapInput) {
|
|
|
3235
3086
|
function makeSource(get, transform) {
|
|
3236
3087
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3237
3088
|
}
|
|
3238
|
-
function
|
|
3089
|
+
function make6(get) {
|
|
3239
3090
|
return makeSource(get, identityPath);
|
|
3240
3091
|
}
|
|
3241
3092
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3244,7 +3095,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3244
3095
|
function fromEnvRecord(env, options) {
|
|
3245
3096
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3246
3097
|
const trie = buildEnvTrie(env);
|
|
3247
|
-
return
|
|
3098
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3248
3099
|
}
|
|
3249
3100
|
function fromEnv(options) {
|
|
3250
3101
|
const env = options?.env ?? {
|
|
@@ -3297,7 +3148,7 @@ function trieNodeAt(root, path) {
|
|
|
3297
3148
|
}
|
|
3298
3149
|
|
|
3299
3150
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3300
|
-
var
|
|
3151
|
+
var TypeId11 = "~effect/Config";
|
|
3301
3152
|
class ConfigError {
|
|
3302
3153
|
_tag = "ConfigError";
|
|
3303
3154
|
name = "ConfigError";
|
|
@@ -3319,14 +3170,14 @@ var Proto2 = {
|
|
|
3319
3170
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3320
3171
|
}
|
|
3321
3172
|
}),
|
|
3322
|
-
[
|
|
3173
|
+
[TypeId11]: TypeId11,
|
|
3323
3174
|
toJSON() {
|
|
3324
3175
|
return {
|
|
3325
3176
|
_id: "Config"
|
|
3326
3177
|
};
|
|
3327
3178
|
}
|
|
3328
3179
|
};
|
|
3329
|
-
function
|
|
3180
|
+
function make7(evaluator) {
|
|
3330
3181
|
const self = Object.create(Proto2);
|
|
3331
3182
|
self.evaluator = evaluator;
|
|
3332
3183
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3334,14 +3185,14 @@ function make14(evaluator) {
|
|
|
3334
3185
|
}
|
|
3335
3186
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3336
3187
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3337
|
-
return
|
|
3188
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3338
3189
|
});
|
|
3339
3190
|
function all(arg) {
|
|
3340
3191
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3341
|
-
return
|
|
3192
|
+
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));
|
|
3342
3193
|
}
|
|
3343
3194
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3344
|
-
return
|
|
3195
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3345
3196
|
});
|
|
3346
3197
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3347
3198
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3458,9 +3309,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3458
3309
|
function schema(codec, path) {
|
|
3459
3310
|
const codecStringTree = toCodecStringTree(codec);
|
|
3460
3311
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3461
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3312
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3462
3313
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3463
|
-
return
|
|
3314
|
+
return make7((provider, pathPrefix) => {
|
|
3464
3315
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3465
3316
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3466
3317
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3575,4 +3426,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3575
3426
|
...argv
|
|
3576
3427
|
];
|
|
3577
3428
|
|
|
3578
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3429
|
+
export { map, makeEquivalence, 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 };
|