@kitman-sh/cli 0.14.0 → 0.14.2
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-bmkc5r0p.js → chunk-0r9tp5pz.js} +4 -4
- package/dist/{chunk-zpp4jg4a.js → chunk-1jabs81x.js} +101 -59
- package/dist/{chunk-9j4cnz4j.js → chunk-24j1cmsm.js} +38 -32
- package/dist/{chunk-5129s1vg.js → chunk-39pdxhcv.js} +3 -3
- package/dist/{chunk-vth8h56e.js → chunk-3csj1ve1.js} +4 -4
- package/dist/{chunk-c4mf5mgt.js → chunk-4xez238w.js} +2 -2
- package/dist/{chunk-w8vxzc7w.js → chunk-80vwvv5x.js} +45 -45
- package/dist/{chunk-h7zb6d3z.js → chunk-avhqm9p0.js} +183 -40
- package/dist/{chunk-y0y2gg8d.js → chunk-e024f8af.js} +2 -2
- package/dist/{chunk-w34sq09e.js → chunk-ffq8vvvx.js} +5 -5
- package/dist/{chunk-5d2sdzbz.js → chunk-ge9qjp6s.js} +7 -7
- package/dist/{chunk-84fcym2g.js → chunk-gwz39037.js} +1 -1
- package/dist/{chunk-9avbsbvk.js → chunk-h6kd80nr.js} +6 -1
- package/dist/{chunk-t2zzamex.js → chunk-hza25m2e.js} +34 -34
- package/dist/{chunk-hq2xzj6f.js → chunk-jzfy127y.js} +4 -4
- package/dist/{chunk-wb3wsm86.js → chunk-m9x7feh0.js} +7 -7
- package/dist/{chunk-gbr4s7nk.js → chunk-q4ch3t9q.js} +6 -6
- package/dist/{chunk-r9tzwrnb.js → chunk-qqmxhk9w.js} +14 -60
- package/dist/{chunk-f2ycw5bp.js → chunk-ryxff0xk.js} +189 -340
- package/dist/{chunk-bbf0jzsc.js → chunk-scdr623z.js} +1 -1
- package/dist/{chunk-gmdd1a74.js → chunk-t9chwen8.js} +3 -3
- package/dist/{chunk-bscvbpa1.js → chunk-v86jpzpr.js} +9 -9
- package/dist/{chunk-ctpgfdzf.js → chunk-vfw3xn1e.js} +3 -3
- package/dist/{chunk-099ybrqz.js → chunk-yfag1eey.js} +20 -20
- package/dist/{chunk-4c6w8sb7.js → chunk-z7c2ndfg.js} +11 -11
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -34,8 +34,11 @@ import {
|
|
|
34
34
|
getOrUndefined,
|
|
35
35
|
map4,
|
|
36
36
|
Service2,
|
|
37
|
-
|
|
37
|
+
add,
|
|
38
|
+
get4,
|
|
38
39
|
Reference,
|
|
40
|
+
fromInputUnsafe,
|
|
41
|
+
isFinite,
|
|
39
42
|
normalize,
|
|
40
43
|
succeed,
|
|
41
44
|
fail3,
|
|
@@ -76,13 +79,12 @@ import {
|
|
|
76
79
|
fiberRunIn,
|
|
77
80
|
makeLatchUnsafe,
|
|
78
81
|
makeLatch,
|
|
79
|
-
ClockRef,
|
|
80
|
-
currentTimeMillis2,
|
|
81
82
|
succeed3,
|
|
82
83
|
failCause2,
|
|
83
84
|
fail4,
|
|
84
85
|
interrupt2,
|
|
85
86
|
void_2,
|
|
87
|
+
isSuccess2,
|
|
86
88
|
isFailure2,
|
|
87
89
|
asVoidAll,
|
|
88
90
|
makeUnsafe5,
|
|
@@ -154,12 +156,14 @@ import {
|
|
|
154
156
|
tapError2,
|
|
155
157
|
ignoreCause,
|
|
156
158
|
orElseSucceed,
|
|
159
|
+
sleep,
|
|
157
160
|
raceFirst,
|
|
158
161
|
when,
|
|
159
162
|
matchCauseEffect,
|
|
160
163
|
context,
|
|
161
164
|
contextWith,
|
|
162
165
|
provideContext2,
|
|
166
|
+
scope2,
|
|
163
167
|
scoped,
|
|
164
168
|
scopedWith,
|
|
165
169
|
acquireRelease,
|
|
@@ -170,6 +174,7 @@ import {
|
|
|
170
174
|
interrupt3,
|
|
171
175
|
onInterrupt,
|
|
172
176
|
uninterruptible,
|
|
177
|
+
uninterruptibleMask2,
|
|
173
178
|
forever,
|
|
174
179
|
forkChild,
|
|
175
180
|
forkIn,
|
|
@@ -192,11 +197,11 @@ import {
|
|
|
192
197
|
toEncoded,
|
|
193
198
|
decodeUnknownEffect,
|
|
194
199
|
SchemaError,
|
|
195
|
-
|
|
200
|
+
make17,
|
|
196
201
|
String4,
|
|
197
202
|
toCodecStringTree,
|
|
198
203
|
encodeUnknownJsonStringSync
|
|
199
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-1jabs81x.js";
|
|
200
205
|
|
|
201
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
202
207
|
var headUnsafe = (self) => {
|
|
@@ -245,10 +250,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
245
250
|
return (self, that) => is(self, that) && is(that, self);
|
|
246
251
|
};
|
|
247
252
|
|
|
248
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
249
|
-
var Clock = ClockRef;
|
|
250
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
251
|
-
|
|
252
253
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
253
254
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
254
255
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -369,7 +370,7 @@ var fromStringUnsafe = (input) => {
|
|
|
369
370
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
370
371
|
return make(value);
|
|
371
372
|
};
|
|
372
|
-
var
|
|
373
|
+
var fromInputUnsafe2 = (input) => {
|
|
373
374
|
switch (typeof input) {
|
|
374
375
|
case "bigint":
|
|
375
376
|
if (input < bigint0)
|
|
@@ -382,7 +383,7 @@ var fromInputUnsafe = (input) => {
|
|
|
382
383
|
}
|
|
383
384
|
return invalid(`unsupported input ${input}`);
|
|
384
385
|
};
|
|
385
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
386
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
386
387
|
|
|
387
388
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
388
389
|
var join = fiberJoin;
|
|
@@ -1128,7 +1129,7 @@ var MutableRefProto = {
|
|
|
1128
1129
|
};
|
|
1129
1130
|
}
|
|
1130
1131
|
};
|
|
1131
|
-
var
|
|
1132
|
+
var make7 = (value) => {
|
|
1132
1133
|
const ref = Object.create(MutableRefProto);
|
|
1133
1134
|
ref.current = value;
|
|
1134
1135
|
return ref;
|
|
@@ -1289,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1289
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1290
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1291
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1292
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make7(false), options.strategy(), make7(none())));
|
|
1293
1294
|
var unbounded = (options) => make5({
|
|
1294
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1295
1296
|
strategy: () => new DroppingStrategy
|
|
@@ -1308,7 +1309,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1308
1309
|
return false;
|
|
1309
1310
|
});
|
|
1310
1311
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1311
|
-
const localScope =
|
|
1312
|
+
const localScope = get4(services, Scope);
|
|
1312
1313
|
const scope = forkUnsafe(self.scope);
|
|
1313
1314
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1314
1315
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1384,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1384
1385
|
subscribers.delete(subscription);
|
|
1385
1386
|
}
|
|
1386
1387
|
};
|
|
1387
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make7(false), strategy, pubsub.replayWindow(), ended);
|
|
1388
1389
|
class UnboundedPubSub {
|
|
1389
1390
|
publisherHead = {
|
|
1390
1391
|
value: AbsentValue,
|
|
@@ -1801,7 +1802,7 @@ var QueueProto = {
|
|
|
1801
1802
|
};
|
|
1802
1803
|
}
|
|
1803
1804
|
};
|
|
1804
|
-
var
|
|
1805
|
+
var make8 = (options) => withFiber((fiber) => {
|
|
1805
1806
|
const self = Object.create(QueueProto);
|
|
1806
1807
|
self.dispatcher = fiber.currentDispatcher;
|
|
1807
1808
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1816,14 +1817,14 @@ var make9 = (options) => withFiber((fiber) => {
|
|
|
1816
1817
|
};
|
|
1817
1818
|
return succeed2(self);
|
|
1818
1819
|
});
|
|
1819
|
-
var bounded = (capacity) =>
|
|
1820
|
+
var bounded = (capacity) => make8({
|
|
1820
1821
|
capacity
|
|
1821
1822
|
});
|
|
1822
|
-
var sliding = (capacity) =>
|
|
1823
|
+
var sliding = (capacity) => make8({
|
|
1823
1824
|
capacity,
|
|
1824
1825
|
strategy: "sliding"
|
|
1825
1826
|
});
|
|
1826
|
-
var unbounded2 = () =>
|
|
1827
|
+
var unbounded2 = () => make8();
|
|
1827
1828
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1828
1829
|
var offerUnsafe = (self, message) => {
|
|
1829
1830
|
if (self.state._tag !== "Open") {
|
|
@@ -2249,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2249
2250
|
return onError(pull, onCause);
|
|
2250
2251
|
}));
|
|
2251
2252
|
var toTransform = (channel) => channel.transform;
|
|
2252
|
-
var asyncQueue = (scope, f, options) =>
|
|
2253
|
+
var asyncQueue = (scope, f, options) => make8({
|
|
2253
2254
|
capacity: options?.bufferSize,
|
|
2254
2255
|
strategy: options?.strategy
|
|
2255
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2290,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2290
2291
|
}));
|
|
2291
2292
|
var readableStreamToPullUnsafe = (options) => {
|
|
2292
2293
|
const reader = options.readable.getReader();
|
|
2293
|
-
const exit = options.exit ??
|
|
2294
|
+
const exit = options.exit ?? make7(undefined);
|
|
2294
2295
|
const pull = suspend3(() => {
|
|
2295
2296
|
if (exit.current)
|
|
2296
2297
|
return exit.current;
|
|
@@ -2765,9 +2766,151 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2765
2766
|
}), catchDone(() => endVoid)));
|
|
2766
2767
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2767
2768
|
|
|
2769
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2770
|
+
var TypeId8 = "~effect/RcRef";
|
|
2771
|
+
var stateEmpty = {
|
|
2772
|
+
_tag: "Empty"
|
|
2773
|
+
};
|
|
2774
|
+
var stateClosed = {
|
|
2775
|
+
_tag: "Closed"
|
|
2776
|
+
};
|
|
2777
|
+
var variance2 = {
|
|
2778
|
+
_A: identity,
|
|
2779
|
+
_E: identity
|
|
2780
|
+
};
|
|
2781
|
+
|
|
2782
|
+
class RcRefImpl {
|
|
2783
|
+
[TypeId8] = variance2;
|
|
2784
|
+
pipe() {
|
|
2785
|
+
return pipeArguments(this, arguments);
|
|
2786
|
+
}
|
|
2787
|
+
state = stateEmpty;
|
|
2788
|
+
acquire;
|
|
2789
|
+
context;
|
|
2790
|
+
scope;
|
|
2791
|
+
idleTimeToLive;
|
|
2792
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2793
|
+
this.acquire = acquire;
|
|
2794
|
+
this.context = context;
|
|
2795
|
+
this.scope = scope;
|
|
2796
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2797
|
+
}
|
|
2798
|
+
}
|
|
2799
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2800
|
+
const context = fiber.context;
|
|
2801
|
+
const scope = get4(context, Scope);
|
|
2802
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2803
|
+
return as(addFinalizerExit(scope, () => {
|
|
2804
|
+
const state = ref.state;
|
|
2805
|
+
ref.state = stateClosed;
|
|
2806
|
+
if (state._tag === "Acquired")
|
|
2807
|
+
return close(state.scope, void_2);
|
|
2808
|
+
if (state._tag === "Acquiring")
|
|
2809
|
+
return interrupt(state.fiber);
|
|
2810
|
+
return void_3;
|
|
2811
|
+
}), ref);
|
|
2812
|
+
});
|
|
2813
|
+
var getState = (self, restore) => {
|
|
2814
|
+
switch (self.state._tag) {
|
|
2815
|
+
case "Closed": {
|
|
2816
|
+
return interrupt3;
|
|
2817
|
+
}
|
|
2818
|
+
case "Acquired": {
|
|
2819
|
+
const state = self.state;
|
|
2820
|
+
state.refCount++;
|
|
2821
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2822
|
+
}
|
|
2823
|
+
case "Acquiring": {
|
|
2824
|
+
const state = self.state;
|
|
2825
|
+
state.awaiters++;
|
|
2826
|
+
return awaitAcquiring(self, state, restore);
|
|
2827
|
+
}
|
|
2828
|
+
case "Empty": {
|
|
2829
|
+
const acquiring = {
|
|
2830
|
+
_tag: "Acquiring",
|
|
2831
|
+
fiber: undefined,
|
|
2832
|
+
awaiters: 1,
|
|
2833
|
+
acquired: undefined
|
|
2834
|
+
};
|
|
2835
|
+
self.state = acquiring;
|
|
2836
|
+
const scope = makeUnsafe6();
|
|
2837
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2838
|
+
if (self.state !== acquiring) {
|
|
2839
|
+
return interrupt3;
|
|
2840
|
+
}
|
|
2841
|
+
const state = {
|
|
2842
|
+
_tag: "Acquired",
|
|
2843
|
+
value,
|
|
2844
|
+
scope,
|
|
2845
|
+
fiber: undefined,
|
|
2846
|
+
refCount: acquiring.awaiters,
|
|
2847
|
+
invalidated: false
|
|
2848
|
+
};
|
|
2849
|
+
self.state = state;
|
|
2850
|
+
acquiring.acquired = state;
|
|
2851
|
+
return succeed6(state);
|
|
2852
|
+
}), onExit((exit) => {
|
|
2853
|
+
if (isSuccess2(exit))
|
|
2854
|
+
return void_3;
|
|
2855
|
+
if (self.state === acquiring)
|
|
2856
|
+
self.state = stateEmpty;
|
|
2857
|
+
return close(scope, exit);
|
|
2858
|
+
}));
|
|
2859
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2860
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
};
|
|
2864
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2865
|
+
const acquired = acquiring.acquired;
|
|
2866
|
+
if (acquired !== undefined) {
|
|
2867
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2868
|
+
}
|
|
2869
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2870
|
+
return void_3;
|
|
2871
|
+
self.state = stateEmpty;
|
|
2872
|
+
return interrupt(acquiring.fiber);
|
|
2873
|
+
});
|
|
2874
|
+
var get2 = (self_) => {
|
|
2875
|
+
const self = self_;
|
|
2876
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2877
|
+
};
|
|
2878
|
+
var release = (self, state) => {
|
|
2879
|
+
state.refCount--;
|
|
2880
|
+
if (state.refCount > 0) {
|
|
2881
|
+
return void_3;
|
|
2882
|
+
}
|
|
2883
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2884
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2885
|
+
if (self.state === state) {
|
|
2886
|
+
self.state = stateEmpty;
|
|
2887
|
+
}
|
|
2888
|
+
return close(state.scope, void_2);
|
|
2889
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2890
|
+
return void_3;
|
|
2891
|
+
}
|
|
2892
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2893
|
+
if (self.state === state && state.refCount === 0) {
|
|
2894
|
+
self.state = stateEmpty;
|
|
2895
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2896
|
+
log: "Unhandled",
|
|
2897
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2898
|
+
});
|
|
2899
|
+
}
|
|
2900
|
+
return void_3;
|
|
2901
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2902
|
+
state.fiber = undefined;
|
|
2903
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2904
|
+
return void_3;
|
|
2905
|
+
};
|
|
2906
|
+
|
|
2907
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
+
var make9 = make6;
|
|
2909
|
+
var get3 = get2;
|
|
2910
|
+
|
|
2768
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2769
|
-
var
|
|
2770
|
-
var isStream = (u) => hasProperty(u,
|
|
2912
|
+
var TypeId9 = "~effect/Stream";
|
|
2913
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2771
2914
|
var fromChannel2 = fromChannel3;
|
|
2772
2915
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2773
2916
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
@@ -2955,11 +3098,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
2955
3098
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
2956
3099
|
|
|
2957
3100
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
2958
|
-
var
|
|
3101
|
+
var TypeId10 = "~effect/FileSystem";
|
|
2959
3102
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
2960
3103
|
var make11 = (impl) => FileSystem.of({
|
|
2961
3104
|
...impl,
|
|
2962
|
-
[
|
|
3105
|
+
[TypeId10]: TypeId10,
|
|
2963
3106
|
glob: make2(impl),
|
|
2964
3107
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
2965
3108
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -2975,11 +3118,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
2975
3118
|
const file = yield* impl.open(path, {
|
|
2976
3119
|
flag: "r"
|
|
2977
3120
|
});
|
|
2978
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3121
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
2979
3122
|
if (offset) {
|
|
2980
3123
|
yield* file.seek(offset, "start");
|
|
2981
3124
|
}
|
|
2982
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3125
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
2983
3126
|
let totalBytesRead = BigInt(0);
|
|
2984
3127
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
2985
3128
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3015,11 +3158,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3015
3158
|
}
|
|
3016
3159
|
|
|
3017
3160
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3018
|
-
var
|
|
3161
|
+
var TypeId11 = "~effect/Path";
|
|
3019
3162
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3020
3163
|
var make12 = (impl) => Path.of({
|
|
3021
3164
|
...impl,
|
|
3022
|
-
[
|
|
3165
|
+
[TypeId11]: TypeId11,
|
|
3023
3166
|
resolveWithin(root, input) {
|
|
3024
3167
|
if (impl.parse(input).root !== "")
|
|
3025
3168
|
return none();
|
|
@@ -3092,7 +3235,7 @@ function makeProvider(load, mapInput) {
|
|
|
3092
3235
|
function makeSource(get, transform) {
|
|
3093
3236
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3094
3237
|
}
|
|
3095
|
-
function
|
|
3238
|
+
function make13(get) {
|
|
3096
3239
|
return makeSource(get, identityPath);
|
|
3097
3240
|
}
|
|
3098
3241
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3101,7 +3244,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3101
3244
|
function fromEnvRecord(env, options) {
|
|
3102
3245
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3103
3246
|
const trie = buildEnvTrie(env);
|
|
3104
|
-
return
|
|
3247
|
+
return make13((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3105
3248
|
}
|
|
3106
3249
|
function fromEnv(options) {
|
|
3107
3250
|
const env = options?.env ?? {
|
|
@@ -3154,7 +3297,7 @@ function trieNodeAt(root, path) {
|
|
|
3154
3297
|
}
|
|
3155
3298
|
|
|
3156
3299
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3157
|
-
var
|
|
3300
|
+
var TypeId12 = "~effect/Config";
|
|
3158
3301
|
class ConfigError {
|
|
3159
3302
|
_tag = "ConfigError";
|
|
3160
3303
|
name = "ConfigError";
|
|
@@ -3176,14 +3319,14 @@ var Proto2 = {
|
|
|
3176
3319
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3177
3320
|
}
|
|
3178
3321
|
}),
|
|
3179
|
-
[
|
|
3322
|
+
[TypeId12]: TypeId12,
|
|
3180
3323
|
toJSON() {
|
|
3181
3324
|
return {
|
|
3182
3325
|
_id: "Config"
|
|
3183
3326
|
};
|
|
3184
3327
|
}
|
|
3185
3328
|
};
|
|
3186
|
-
function
|
|
3329
|
+
function make14(evaluator) {
|
|
3187
3330
|
const self = Object.create(Proto2);
|
|
3188
3331
|
self.evaluator = evaluator;
|
|
3189
3332
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3191,14 +3334,14 @@ function make7(evaluator) {
|
|
|
3191
3334
|
}
|
|
3192
3335
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3193
3336
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3194
|
-
return
|
|
3337
|
+
return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3195
3338
|
});
|
|
3196
3339
|
function all(arg) {
|
|
3197
3340
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3198
|
-
return
|
|
3341
|
+
return make14((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));
|
|
3199
3342
|
}
|
|
3200
3343
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3201
|
-
return
|
|
3344
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3202
3345
|
});
|
|
3203
3346
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3204
3347
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3315,9 +3458,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3315
3458
|
function schema(codec, path) {
|
|
3316
3459
|
const codecStringTree = toCodecStringTree(codec);
|
|
3317
3460
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3318
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3461
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3319
3462
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3320
|
-
return
|
|
3463
|
+
return make14((provider, pathPrefix) => {
|
|
3321
3464
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3322
3465
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3323
3466
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3432,4 +3575,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3432
3575
|
...argv
|
|
3433
3576
|
];
|
|
3434
3577
|
|
|
3435
|
-
export { map, makeEquivalence,
|
|
3578
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make7, unbounded, publishUnsafe, make8, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make9, get3, 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 };
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-1jabs81x.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-h6kd80nr.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
isJsonObject,
|
|
26
26
|
isString2,
|
|
27
27
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-1jabs81x.js";
|
|
29
29
|
import {
|
|
30
30
|
make10,
|
|
31
31
|
runForEach,
|
|
32
32
|
compiled2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-avhqm9p0.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make2
|
|
37
|
+
} from "./chunk-qqmxhk9w.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -172,7 +172,7 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
172
172
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
173
173
|
const spawner = yield* ChildProcessSpawner;
|
|
174
174
|
const [command, ...args] = opencodeReaderCommand();
|
|
175
|
-
const handle = yield* spawner.spawn(
|
|
175
|
+
const handle = yield* spawner.spawn(make2(command, args, {
|
|
176
176
|
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
177
177
|
stderr: "ignore",
|
|
178
178
|
extendEnv: false,
|
|
@@ -75,8 +75,12 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-1jabs81x.js";
|
|
79
79
|
import {
|
|
80
|
+
guard
|
|
81
|
+
} from "./chunk-h6kd80nr.js";
|
|
82
|
+
import {
|
|
83
|
+
currentTimeMillis,
|
|
80
84
|
WebCrypto,
|
|
81
85
|
SafeJson,
|
|
82
86
|
AgentSandboxNetwork,
|
|
@@ -101,15 +105,11 @@ import {
|
|
|
101
105
|
KitDigest,
|
|
102
106
|
KitSetup,
|
|
103
107
|
RunnerRpcError
|
|
104
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-ryxff0xk.js";
|
|
105
109
|
import {
|
|
106
|
-
currentTimeMillis,
|
|
107
110
|
runForEach,
|
|
108
111
|
FileSystem
|
|
109
|
-
} from "./chunk-
|
|
110
|
-
import {
|
|
111
|
-
guard
|
|
112
|
-
} from "./chunk-9avbsbvk.js";
|
|
112
|
+
} from "./chunk-avhqm9p0.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -18,7 +18,12 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-1jabs81x.js";
|
|
22
|
+
|
|
23
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
|
+
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
25
|
+
var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
|
|
26
|
+
var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
|
|
22
27
|
|
|
23
28
|
// packages/core/src/schema.ts
|
|
24
29
|
var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|