@kitman-sh/cli 0.42.2 → 0.44.0
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-3gax0xq6.js → chunk-134jdvs6.js} +2 -2
- package/dist/{chunk-hfy8nmat.js → chunk-1c4wk9dr.js} +3 -3
- package/dist/{chunk-q6qn9c47.js → chunk-1k6z8q79.js} +135 -297
- package/dist/{chunk-sasjamqz.js → chunk-3mbp8cse.js} +205 -44
- package/dist/{chunk-1w517sym.js → chunk-3zy2vbp0.js} +10 -10
- package/dist/{chunk-17715h5w.js → chunk-5ccz7ghp.js} +69 -55
- package/dist/{chunk-1gr39h4v.js → chunk-7rj9d0rp.js} +21 -2
- package/dist/{chunk-wre79w3z.js → chunk-8a7337s1.js} +1 -1
- package/dist/{chunk-qndcafax.js → chunk-9h16pekj.js} +1 -1
- package/dist/{chunk-gqgbah9q.js → chunk-d0rx9esz.js} +6 -6
- package/dist/{chunk-t8y2y7ha.js → chunk-d2tpz1yp.js} +1 -1
- package/dist/{chunk-re7cr0kk.js → chunk-dj873p0e.js} +17 -17
- package/dist/{chunk-r5b36fgg.js → chunk-dp6v658s.js} +4 -4
- package/dist/{chunk-vjkgbsry.js → chunk-dre4f6s4.js} +9 -9
- package/dist/{chunk-33zd0yt4.js → chunk-gw0pc35c.js} +17 -17
- package/dist/{chunk-sbk4evb4.js → chunk-hmctc4eq.js} +3 -3
- package/dist/{chunk-hg9y4ykj.js → chunk-j60f2tr1.js} +4 -4
- package/dist/{chunk-tpmyf5mk.js → chunk-k2re3tp5.js} +1 -1
- package/dist/{chunk-drw8m50d.js → chunk-ncp13gyf.js} +2 -2
- package/dist/{chunk-rc4wvjf2.js → chunk-qkwkxn4d.js} +349 -102
- package/dist/{chunk-2bt9e1fj.js → chunk-wh3pjr9r.js} +11 -11
- package/dist/{chunk-c3ms91a6.js → chunk-wkg1v0kd.js} +20 -20
- package/dist/{chunk-mc0xxx2z.js → chunk-wvnsqt17.js} +6 -6
- package/dist/{chunk-b4td2pgc.js → chunk-x0ma41ys.js} +94 -84
- package/dist/{chunk-dhe1fwhw.js → chunk-zkvrxna8.js} +2 -2
- package/dist/{chunk-y6mjtq6n.js → chunk-zvmdyf3v.js} +53 -33
- 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,
|
|
@@ -50,7 +53,7 @@ import {
|
|
|
50
53
|
isCanonicalArrayIndex,
|
|
51
54
|
getUnsafe2,
|
|
52
55
|
sort,
|
|
53
|
-
|
|
56
|
+
empty5,
|
|
54
57
|
of,
|
|
55
58
|
map6,
|
|
56
59
|
Error2,
|
|
@@ -58,6 +61,7 @@ import {
|
|
|
58
61
|
getCurrentFiber,
|
|
59
62
|
fiberJoin,
|
|
60
63
|
fiberInterrupt,
|
|
64
|
+
fiberInterruptAll,
|
|
61
65
|
succeed2,
|
|
62
66
|
sync,
|
|
63
67
|
suspend2,
|
|
@@ -85,6 +89,7 @@ import {
|
|
|
85
89
|
fail4,
|
|
86
90
|
interrupt2,
|
|
87
91
|
void_2,
|
|
92
|
+
isSuccess2,
|
|
88
93
|
isFailure2,
|
|
89
94
|
asVoidAll,
|
|
90
95
|
makeUnsafe5,
|
|
@@ -96,7 +101,7 @@ import {
|
|
|
96
101
|
provide,
|
|
97
102
|
addFinalizerExit,
|
|
98
103
|
addFinalizer,
|
|
99
|
-
|
|
104
|
+
forkUnsafe2,
|
|
100
105
|
close,
|
|
101
106
|
isCause,
|
|
102
107
|
isFailReason,
|
|
@@ -156,12 +161,14 @@ import {
|
|
|
156
161
|
tapError2,
|
|
157
162
|
ignoreCause,
|
|
158
163
|
orElseSucceed,
|
|
164
|
+
sleep,
|
|
159
165
|
raceFirst,
|
|
160
166
|
when,
|
|
161
167
|
matchCauseEffect,
|
|
162
168
|
context,
|
|
163
169
|
contextWith,
|
|
164
170
|
provideContext2,
|
|
171
|
+
scope2,
|
|
165
172
|
scoped,
|
|
166
173
|
scopedWith,
|
|
167
174
|
acquireRelease,
|
|
@@ -172,6 +179,7 @@ import {
|
|
|
172
179
|
interrupt3,
|
|
173
180
|
onInterrupt,
|
|
174
181
|
uninterruptible,
|
|
182
|
+
uninterruptibleMask2,
|
|
175
183
|
forever,
|
|
176
184
|
forkChild,
|
|
177
185
|
forkIn,
|
|
@@ -194,11 +202,11 @@ import {
|
|
|
194
202
|
toEncoded,
|
|
195
203
|
decodeUnknownEffect,
|
|
196
204
|
SchemaError,
|
|
197
|
-
|
|
205
|
+
make17,
|
|
198
206
|
String4,
|
|
199
207
|
toCodecStringTree,
|
|
200
208
|
encodeUnknownJsonStringSync
|
|
201
|
-
} from "./chunk-
|
|
209
|
+
} from "./chunk-x0ma41ys.js";
|
|
202
210
|
|
|
203
211
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
204
212
|
var headUnsafe = (self) => {
|
|
@@ -221,6 +229,7 @@ var constEmptyIterator = {
|
|
|
221
229
|
};
|
|
222
230
|
}
|
|
223
231
|
};
|
|
232
|
+
var empty2 = () => constEmpty;
|
|
224
233
|
|
|
225
234
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Record.js
|
|
226
235
|
var has = /* @__PURE__ */ dual(2, (self, key) => Object.hasOwn(self, key));
|
|
@@ -251,6 +260,15 @@ var makeEquivalence = (equivalence) => {
|
|
|
251
260
|
var Clock = ClockRef;
|
|
252
261
|
var currentTimeMillis = currentTimeMillis2;
|
|
253
262
|
|
|
263
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
264
|
+
var BigInt2 = globalThis.BigInt;
|
|
265
|
+
var toNumber = (b) => {
|
|
266
|
+
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
267
|
+
return none();
|
|
268
|
+
}
|
|
269
|
+
return some(Number(b));
|
|
270
|
+
};
|
|
271
|
+
|
|
254
272
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
255
273
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
256
274
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -371,7 +389,7 @@ var fromStringUnsafe = (input) => {
|
|
|
371
389
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
372
390
|
return make(value);
|
|
373
391
|
};
|
|
374
|
-
var
|
|
392
|
+
var fromInputUnsafe2 = (input) => {
|
|
375
393
|
switch (typeof input) {
|
|
376
394
|
case "bigint":
|
|
377
395
|
if (input < bigint0)
|
|
@@ -384,11 +402,12 @@ var fromInputUnsafe = (input) => {
|
|
|
384
402
|
}
|
|
385
403
|
return invalid(`unsupported input ${input}`);
|
|
386
404
|
};
|
|
387
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
405
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
388
406
|
|
|
389
407
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
390
408
|
var join = fiberJoin;
|
|
391
409
|
var interrupt = fiberInterrupt;
|
|
410
|
+
var interruptAll = fiberInterruptAll;
|
|
392
411
|
var getCurrent = getCurrentFiber;
|
|
393
412
|
var runIn = fiberRunIn;
|
|
394
413
|
|
|
@@ -1310,8 +1329,8 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1310
1329
|
return false;
|
|
1311
1330
|
});
|
|
1312
1331
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1313
|
-
const localScope =
|
|
1314
|
-
const scope =
|
|
1332
|
+
const localScope = get4(services, Scope);
|
|
1333
|
+
const scope = forkUnsafe2(self.scope);
|
|
1315
1334
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1316
1335
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
1317
1336
|
}));
|
|
@@ -2245,7 +2264,7 @@ var fromTransform = (transform) => {
|
|
|
2245
2264
|
var transformPull = (self, f) => fromTransform((upstream, scope) => flatMap3(toTransform(self)(upstream, scope), (pull) => f(pull, scope)));
|
|
2246
2265
|
var fromPull = (effect) => fromTransform((_, __) => effect);
|
|
2247
2266
|
var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream, scope) {
|
|
2248
|
-
const closableScope =
|
|
2267
|
+
const closableScope = forkUnsafe2(scope);
|
|
2249
2268
|
const onCause = (cause) => close(closableScope, doneExitFromCause(cause));
|
|
2250
2269
|
const pull = yield* onError(f(upstream, scope, closableScope), onCause);
|
|
2251
2270
|
return onError(pull, onCause);
|
|
@@ -2379,7 +2398,7 @@ var flatMapSequential = (self, f) => fromTransform((upstream, scope) => map9(toT
|
|
|
2379
2398
|
let childPull;
|
|
2380
2399
|
let childScope;
|
|
2381
2400
|
const makePull = flatMap3(pull, (value) => {
|
|
2382
|
-
childScope ??=
|
|
2401
|
+
childScope ??= forkUnsafe2(scope);
|
|
2383
2402
|
return flatMapEager(toTransform(f(value))(upstream, childScope), (pull) => {
|
|
2384
2403
|
childPull = catchHalt(pull);
|
|
2385
2404
|
return childPull;
|
|
@@ -2475,14 +2494,14 @@ var mapAccum2 = /* @__PURE__ */ dual((args) => isChannel(args[0]), (self, initia
|
|
|
2475
2494
|
return pump;
|
|
2476
2495
|
})));
|
|
2477
2496
|
var catchCause3 = /* @__PURE__ */ dual(2, (self, f) => fromTransform((upstream, scope) => {
|
|
2478
|
-
let forkedScope =
|
|
2497
|
+
let forkedScope = forkUnsafe2(scope);
|
|
2479
2498
|
return map9(toTransform(self)(upstream, forkedScope), (pull) => {
|
|
2480
2499
|
let currentPull = pull.pipe(catchCause2((cause) => {
|
|
2481
2500
|
if (isDoneCause(cause)) {
|
|
2482
2501
|
return failCause3(cause);
|
|
2483
2502
|
}
|
|
2484
2503
|
const toClose = forkedScope;
|
|
2485
|
-
forkedScope =
|
|
2504
|
+
forkedScope = forkUnsafe2(scope);
|
|
2486
2505
|
return close(toClose, failCause2(cause)).pipe(andThen2(toTransform(f(cause))(upstream, forkedScope)), flatMap3((childPull) => {
|
|
2487
2506
|
currentPull = childPull;
|
|
2488
2507
|
return childPull;
|
|
@@ -2517,7 +2536,7 @@ var mergeAll = /* @__PURE__ */ dual(2, (channels, {
|
|
|
2517
2536
|
}
|
|
2518
2537
|
}
|
|
2519
2538
|
const channel = pullFiber === undefined ? yield* pull : yield* join(pullFiber);
|
|
2520
|
-
const childScope =
|
|
2539
|
+
const childScope = forkUnsafe2(forkedScope);
|
|
2521
2540
|
const childPull = yield* toTransform(channel)(upstream, childScope);
|
|
2522
2541
|
while (fibers.size >= concurrencyN) {
|
|
2523
2542
|
const [fiber, fiberScope] = headUnsafe(fibers);
|
|
@@ -2582,8 +2601,8 @@ var merge = /* @__PURE__ */ dual((args) => isChannel(args[0]) && isChannel(args[
|
|
|
2582
2601
|
onFailure: (cause) => onExit(side, cause),
|
|
2583
2602
|
onSuccess: () => onExit(side, cause)
|
|
2584
2603
|
}))), forkIn(forkedScope));
|
|
2585
|
-
yield* runSide("left", left,
|
|
2586
|
-
yield* runSide("right", right,
|
|
2604
|
+
yield* runSide("left", left, forkUnsafe2(forkedScope));
|
|
2605
|
+
yield* runSide("right", right, forkUnsafe2(forkedScope));
|
|
2587
2606
|
return take(queue);
|
|
2588
2607
|
})));
|
|
2589
2608
|
var mergeEffect = /* @__PURE__ */ dual(2, (self, effect) => merge(self, fromEffectDrain(effect), {
|
|
@@ -2753,7 +2772,7 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
|
|
|
2753
2772
|
var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
|
|
2754
2773
|
const semaphore = makeUnsafe3(1);
|
|
2755
2774
|
const context2 = yield* context();
|
|
2756
|
-
const scope =
|
|
2775
|
+
const scope = get4(context2, Scope);
|
|
2757
2776
|
const pull = yield* toTransform(self)(done(), scope);
|
|
2758
2777
|
return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
|
|
2759
2778
|
}, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
|
|
@@ -2814,16 +2833,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2814
2833
|
}), catchDone(() => endVoid)));
|
|
2815
2834
|
var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
|
|
2816
2835
|
|
|
2836
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2837
|
+
var TypeId8 = "~effect/RcRef";
|
|
2838
|
+
var stateEmpty = {
|
|
2839
|
+
_tag: "Empty"
|
|
2840
|
+
};
|
|
2841
|
+
var stateClosed = {
|
|
2842
|
+
_tag: "Closed"
|
|
2843
|
+
};
|
|
2844
|
+
var variance2 = {
|
|
2845
|
+
_A: identity,
|
|
2846
|
+
_E: identity
|
|
2847
|
+
};
|
|
2848
|
+
|
|
2849
|
+
class RcRefImpl {
|
|
2850
|
+
[TypeId8] = variance2;
|
|
2851
|
+
pipe() {
|
|
2852
|
+
return pipeArguments(this, arguments);
|
|
2853
|
+
}
|
|
2854
|
+
state = stateEmpty;
|
|
2855
|
+
acquire;
|
|
2856
|
+
context;
|
|
2857
|
+
scope;
|
|
2858
|
+
idleTimeToLive;
|
|
2859
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2860
|
+
this.acquire = acquire;
|
|
2861
|
+
this.context = context;
|
|
2862
|
+
this.scope = scope;
|
|
2863
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2864
|
+
}
|
|
2865
|
+
}
|
|
2866
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2867
|
+
const context = fiber.context;
|
|
2868
|
+
const scope = get4(context, Scope);
|
|
2869
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2870
|
+
return as(addFinalizerExit(scope, () => {
|
|
2871
|
+
const state = ref.state;
|
|
2872
|
+
ref.state = stateClosed;
|
|
2873
|
+
if (state._tag === "Acquired")
|
|
2874
|
+
return close(state.scope, void_2);
|
|
2875
|
+
if (state._tag === "Acquiring")
|
|
2876
|
+
return interrupt(state.fiber);
|
|
2877
|
+
return void_3;
|
|
2878
|
+
}), ref);
|
|
2879
|
+
});
|
|
2880
|
+
var getState = (self, restore) => {
|
|
2881
|
+
switch (self.state._tag) {
|
|
2882
|
+
case "Closed": {
|
|
2883
|
+
return interrupt3;
|
|
2884
|
+
}
|
|
2885
|
+
case "Acquired": {
|
|
2886
|
+
const state = self.state;
|
|
2887
|
+
state.refCount++;
|
|
2888
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2889
|
+
}
|
|
2890
|
+
case "Acquiring": {
|
|
2891
|
+
const state = self.state;
|
|
2892
|
+
state.awaiters++;
|
|
2893
|
+
return awaitAcquiring(self, state, restore);
|
|
2894
|
+
}
|
|
2895
|
+
case "Empty": {
|
|
2896
|
+
const acquiring = {
|
|
2897
|
+
_tag: "Acquiring",
|
|
2898
|
+
fiber: undefined,
|
|
2899
|
+
awaiters: 1,
|
|
2900
|
+
acquired: undefined
|
|
2901
|
+
};
|
|
2902
|
+
self.state = acquiring;
|
|
2903
|
+
const scope = makeUnsafe6();
|
|
2904
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2905
|
+
if (self.state !== acquiring) {
|
|
2906
|
+
return interrupt3;
|
|
2907
|
+
}
|
|
2908
|
+
const state = {
|
|
2909
|
+
_tag: "Acquired",
|
|
2910
|
+
value,
|
|
2911
|
+
scope,
|
|
2912
|
+
fiber: undefined,
|
|
2913
|
+
refCount: acquiring.awaiters,
|
|
2914
|
+
invalidated: false
|
|
2915
|
+
};
|
|
2916
|
+
self.state = state;
|
|
2917
|
+
acquiring.acquired = state;
|
|
2918
|
+
return succeed6(state);
|
|
2919
|
+
}), onExit((exit) => {
|
|
2920
|
+
if (isSuccess2(exit))
|
|
2921
|
+
return void_3;
|
|
2922
|
+
if (self.state === acquiring)
|
|
2923
|
+
self.state = stateEmpty;
|
|
2924
|
+
return close(scope, exit);
|
|
2925
|
+
}));
|
|
2926
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2927
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
};
|
|
2931
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2932
|
+
const acquired = acquiring.acquired;
|
|
2933
|
+
if (acquired !== undefined) {
|
|
2934
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2935
|
+
}
|
|
2936
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2937
|
+
return void_3;
|
|
2938
|
+
self.state = stateEmpty;
|
|
2939
|
+
return interrupt(acquiring.fiber);
|
|
2940
|
+
});
|
|
2941
|
+
var get2 = (self_) => {
|
|
2942
|
+
const self = self_;
|
|
2943
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2944
|
+
};
|
|
2945
|
+
var release = (self, state) => {
|
|
2946
|
+
state.refCount--;
|
|
2947
|
+
if (state.refCount > 0) {
|
|
2948
|
+
return void_3;
|
|
2949
|
+
}
|
|
2950
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2951
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2952
|
+
if (self.state === state) {
|
|
2953
|
+
self.state = stateEmpty;
|
|
2954
|
+
}
|
|
2955
|
+
return close(state.scope, void_2);
|
|
2956
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2957
|
+
return void_3;
|
|
2958
|
+
}
|
|
2959
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2960
|
+
if (self.state === state && state.refCount === 0) {
|
|
2961
|
+
self.state = stateEmpty;
|
|
2962
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2963
|
+
log: "Unhandled",
|
|
2964
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2965
|
+
});
|
|
2966
|
+
}
|
|
2967
|
+
return void_3;
|
|
2968
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2969
|
+
state.fiber = undefined;
|
|
2970
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2971
|
+
return void_3;
|
|
2972
|
+
};
|
|
2973
|
+
|
|
2974
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2975
|
+
var make10 = make6;
|
|
2976
|
+
var get3 = get2;
|
|
2977
|
+
|
|
2817
2978
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2818
|
-
var
|
|
2819
|
-
var isStream = (u) => hasProperty(u,
|
|
2979
|
+
var TypeId9 = "~effect/Stream";
|
|
2980
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2820
2981
|
var fromChannel2 = fromChannel3;
|
|
2821
2982
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2822
2983
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2823
2984
|
var toChannel2 = (stream) => stream.channel;
|
|
2824
2985
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2825
|
-
var
|
|
2826
|
-
var
|
|
2986
|
+
var empty3 = /* @__PURE__ */ fromChannel2(empty);
|
|
2987
|
+
var make11 = (...values) => fromArray2(values);
|
|
2827
2988
|
var suspend = (stream) => {
|
|
2828
2989
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2829
2990
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2832,7 +2993,7 @@ var suspend = (stream) => {
|
|
|
2832
2993
|
var suspendedStreams = /* @__PURE__ */ new WeakMap;
|
|
2833
2994
|
var fail2 = (error) => fromChannel2(fail5(error));
|
|
2834
2995
|
var die4 = (defect) => fromChannel2(die(defect));
|
|
2835
|
-
var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succeed4(array)) :
|
|
2996
|
+
var fromArray2 = (array) => isReadonlyArrayNonEmpty(array) ? fromChannel2(succeed4(array)) : empty3;
|
|
2836
2997
|
var fromQueue = (queue) => fromChannel2(fromQueueArray(queue));
|
|
2837
2998
|
var fromPubSub = (pubsub) => fromChannel2(fromPubSubArray(pubsub));
|
|
2838
2999
|
var fromReadableStream = (options) => fromChannel2(fromReadableStream2(options));
|
|
@@ -2880,7 +3041,7 @@ var tapError = /* @__PURE__ */ dual(2, (self, f) => self.channel.pipe(tapError3(
|
|
|
2880
3041
|
var mapError = /* @__PURE__ */ dual(2, (self, f) => fromChannel2(mapError3(self.channel, f)));
|
|
2881
3042
|
var take2 = /* @__PURE__ */ dual(2, (self, n) => {
|
|
2882
3043
|
const count = normalize(n);
|
|
2883
|
-
return count === 0 ?
|
|
3044
|
+
return count === 0 ? empty3 : takeUntil(self, (_, i) => i === count - 1);
|
|
2884
3045
|
});
|
|
2885
3046
|
var takeUntil = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, predicate, options) => transformPull2(self, (pull, _scope) => sync2(() => {
|
|
2886
3047
|
let i = 0;
|
|
@@ -2897,7 +3058,7 @@ var takeUntil = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, predica
|
|
|
2897
3058
|
return pump;
|
|
2898
3059
|
})));
|
|
2899
3060
|
var mapAccum = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, initial, f, options) => fromChannel2(mapAccum2(self.channel, initial, (state, arr) => {
|
|
2900
|
-
const acc =
|
|
3061
|
+
const acc = empty5();
|
|
2901
3062
|
for (let index = 0;index < arr.length; index++) {
|
|
2902
3063
|
const [newState, values] = f(state, arr[index]);
|
|
2903
3064
|
state = newState;
|
|
@@ -2912,7 +3073,7 @@ var mapAccum = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, initial,
|
|
|
2912
3073
|
return isReadonlyArrayNonEmpty(arr) ? of(arr) : emptyArr;
|
|
2913
3074
|
}
|
|
2914
3075
|
} : undefined)));
|
|
2915
|
-
var emptyArr = /* @__PURE__ */
|
|
3076
|
+
var emptyArr = /* @__PURE__ */ empty5();
|
|
2916
3077
|
var transduce = /* @__PURE__ */ dual(2, (self, sink) => transformPull2(self, (upstream, scope) => sync2(() => {
|
|
2917
3078
|
let done2;
|
|
2918
3079
|
let leftover;
|
|
@@ -3022,11 +3183,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3022
3183
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3023
3184
|
|
|
3024
3185
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3025
|
-
var
|
|
3186
|
+
var TypeId10 = "~effect/FileSystem";
|
|
3026
3187
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3027
|
-
var
|
|
3188
|
+
var make12 = (impl) => FileSystem.of({
|
|
3028
3189
|
...impl,
|
|
3029
|
-
[
|
|
3190
|
+
[TypeId10]: TypeId10,
|
|
3030
3191
|
glob: make2(impl),
|
|
3031
3192
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3032
3193
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3042,11 +3203,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3042
3203
|
const file = yield* impl.open(path, {
|
|
3043
3204
|
flag: "r"
|
|
3044
3205
|
});
|
|
3045
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3206
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
3046
3207
|
if (offset) {
|
|
3047
3208
|
yield* file.seek(offset, "start");
|
|
3048
3209
|
}
|
|
3049
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3210
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
3050
3211
|
let totalBytesRead = BigInt(0);
|
|
3051
3212
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3052
3213
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3082,11 +3243,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3082
3243
|
}
|
|
3083
3244
|
|
|
3084
3245
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3085
|
-
var
|
|
3246
|
+
var TypeId11 = "~effect/Path";
|
|
3086
3247
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3087
|
-
var
|
|
3248
|
+
var make13 = (impl) => Path.of({
|
|
3088
3249
|
...impl,
|
|
3089
|
-
[
|
|
3250
|
+
[TypeId11]: TypeId11,
|
|
3090
3251
|
resolveWithin(root, input) {
|
|
3091
3252
|
if (impl.parse(input).root !== "")
|
|
3092
3253
|
return none();
|
|
@@ -3159,7 +3320,7 @@ function makeProvider(load, mapInput) {
|
|
|
3159
3320
|
function makeSource(get, transform) {
|
|
3160
3321
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3161
3322
|
}
|
|
3162
|
-
function
|
|
3323
|
+
function make7(get) {
|
|
3163
3324
|
return makeSource(get, identityPath);
|
|
3164
3325
|
}
|
|
3165
3326
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3168,7 +3329,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3168
3329
|
function fromEnvRecord(env, options) {
|
|
3169
3330
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3170
3331
|
const trie = buildEnvTrie(env);
|
|
3171
|
-
return
|
|
3332
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3172
3333
|
}
|
|
3173
3334
|
function fromEnv(options) {
|
|
3174
3335
|
const env = options?.env ?? {
|
|
@@ -3221,7 +3382,7 @@ function trieNodeAt(root, path) {
|
|
|
3221
3382
|
}
|
|
3222
3383
|
|
|
3223
3384
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3224
|
-
var
|
|
3385
|
+
var TypeId12 = "~effect/Config";
|
|
3225
3386
|
class ConfigError {
|
|
3226
3387
|
_tag = "ConfigError";
|
|
3227
3388
|
name = "ConfigError";
|
|
@@ -3243,14 +3404,14 @@ var Proto2 = {
|
|
|
3243
3404
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3244
3405
|
}
|
|
3245
3406
|
}),
|
|
3246
|
-
[
|
|
3407
|
+
[TypeId12]: TypeId12,
|
|
3247
3408
|
toJSON() {
|
|
3248
3409
|
return {
|
|
3249
3410
|
_id: "Config"
|
|
3250
3411
|
};
|
|
3251
3412
|
}
|
|
3252
3413
|
};
|
|
3253
|
-
function
|
|
3414
|
+
function make14(evaluator) {
|
|
3254
3415
|
const self = Object.create(Proto2);
|
|
3255
3416
|
self.evaluator = evaluator;
|
|
3256
3417
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3258,14 +3419,14 @@ function make7(evaluator) {
|
|
|
3258
3419
|
}
|
|
3259
3420
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3260
3421
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3261
|
-
return
|
|
3422
|
+
return make14((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3262
3423
|
});
|
|
3263
3424
|
function all(arg) {
|
|
3264
3425
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3265
|
-
return
|
|
3426
|
+
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));
|
|
3266
3427
|
}
|
|
3267
3428
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3268
|
-
return
|
|
3429
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3269
3430
|
});
|
|
3270
3431
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3271
3432
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3382,9 +3543,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3382
3543
|
function schema(codec, path) {
|
|
3383
3544
|
const codecStringTree = toCodecStringTree(codec);
|
|
3384
3545
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3385
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3546
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3386
3547
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3387
|
-
return
|
|
3548
|
+
return make14((provider, pathPrefix) => {
|
|
3388
3549
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3389
3550
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3390
3551
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3514,4 +3675,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3514
3675
|
...argv
|
|
3515
3676
|
];
|
|
3516
3677
|
|
|
3517
|
-
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt,
|
|
3678
|
+
export { empty2, map, makeEquivalence, Clock, currentTimeMillis, toNumber, bytes, join, interrupt, interruptAll, 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, make10, get3, isStream, fromChannel2, callback, empty3, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path
|
|
5
|
+
} from "./chunk-3mbp8cse.js";
|
|
2
6
|
import {
|
|
3
7
|
isObject,
|
|
4
8
|
isUint8Array,
|
|
@@ -13,17 +17,13 @@ import {
|
|
|
13
17
|
isJsonObject,
|
|
14
18
|
decodeJsonString,
|
|
15
19
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
FileSystem,
|
|
19
|
-
Path
|
|
20
|
-
} from "./chunk-sasjamqz.js";
|
|
20
|
+
} from "./chunk-x0ma41ys.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-dre4f6s4.js";
|
|
27
27
|
import {
|
|
28
28
|
instructionsStart,
|
|
29
29
|
instructionsEnd,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
antigravityPlugins,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-1k6z8q79.js";
|
|
35
|
+
import"./chunk-hmctc4eq.js";
|
|
36
|
+
import"./chunk-134jdvs6.js";
|
|
37
|
+
import"./chunk-9h16pekj.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
40
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|