@kitman-sh/cli 0.19.0 → 0.21.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-am57a75e.js → chunk-0j884359.js} +3 -3
- package/dist/{chunk-bevxc9rx.js → chunk-0v70erwa.js} +7 -7
- package/dist/{chunk-qvpkwnky.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-y7bth30s.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-t5gb7bqv.js → chunk-746tbgvb.js} +30 -30
- package/dist/{chunk-2dhhyy04.js → chunk-7re3n1ze.js} +5 -5
- package/dist/{chunk-kx00yd3c.js → chunk-7swf974v.js} +9 -9
- package/dist/{chunk-zb8mwx3s.js → chunk-7vngg2n8.js} +17 -17
- package/dist/{chunk-khn17hdn.js → chunk-8t2wcrvv.js} +2 -2
- package/dist/{chunk-2y646fhs.js → chunk-atswrrsb.js} +18 -18
- package/dist/{chunk-t6y0c0ds.js → chunk-bsgvmq34.js} +2 -2
- package/dist/{chunk-e863b7v1.js → chunk-d1826dj4.js} +130 -268
- package/dist/{chunk-ew07nt2d.js → chunk-h2f26xbd.js} +61 -61
- package/dist/{chunk-w9mxqrsp.js → chunk-j4b1yvcd.js} +177 -34
- package/dist/{chunk-y4nrvwgy.js → chunk-js28a12p.js} +4 -4
- package/dist/{chunk-3gmqn9yp.js → chunk-kw46ktwg.js} +4 -4
- package/dist/{chunk-hrdh72c7.js → chunk-mqs553x5.js} +35 -22
- package/dist/{chunk-9cj8g584.js → chunk-npfdbssf.js} +4 -4
- package/dist/{chunk-gqcz0d3j.js → chunk-pr7wx6vh.js} +2 -2
- package/dist/{chunk-4rq880g6.js → chunk-remt6mfx.js} +6 -6
- package/dist/{chunk-6hxtg6eb.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-36dejya4.js → chunk-t8e5ky8f.js} +1 -1
- package/dist/{chunk-haq904fk.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-6387vj9z.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-0sbd6e4d.js → chunk-wmf3hq5w.js} +20 -20
- package/dist/{chunk-qp3kqaw1.js → chunk-y756hc0e.js} +6 -6
- 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,
|
|
@@ -78,13 +81,12 @@ import {
|
|
|
78
81
|
fiberRunIn,
|
|
79
82
|
makeLatchUnsafe,
|
|
80
83
|
makeLatch,
|
|
81
|
-
ClockRef,
|
|
82
|
-
currentTimeMillis2,
|
|
83
84
|
succeed3,
|
|
84
85
|
failCause2,
|
|
85
86
|
fail4,
|
|
86
87
|
interrupt2,
|
|
87
88
|
void_2,
|
|
89
|
+
isSuccess2,
|
|
88
90
|
isFailure2,
|
|
89
91
|
asVoidAll,
|
|
90
92
|
makeUnsafe5,
|
|
@@ -156,12 +158,14 @@ import {
|
|
|
156
158
|
tapError2,
|
|
157
159
|
ignoreCause,
|
|
158
160
|
orElseSucceed,
|
|
161
|
+
sleep,
|
|
159
162
|
raceFirst,
|
|
160
163
|
when,
|
|
161
164
|
matchCauseEffect,
|
|
162
165
|
context,
|
|
163
166
|
contextWith,
|
|
164
167
|
provideContext2,
|
|
168
|
+
scope2,
|
|
165
169
|
scoped,
|
|
166
170
|
scopedWith,
|
|
167
171
|
acquireRelease,
|
|
@@ -172,6 +176,7 @@ import {
|
|
|
172
176
|
interrupt3,
|
|
173
177
|
onInterrupt,
|
|
174
178
|
uninterruptible,
|
|
179
|
+
uninterruptibleMask2,
|
|
175
180
|
forever,
|
|
176
181
|
forkChild,
|
|
177
182
|
forkIn,
|
|
@@ -194,11 +199,11 @@ import {
|
|
|
194
199
|
toEncoded,
|
|
195
200
|
decodeUnknownEffect,
|
|
196
201
|
SchemaError,
|
|
197
|
-
|
|
202
|
+
make17,
|
|
198
203
|
String4,
|
|
199
204
|
toCodecStringTree,
|
|
200
205
|
encodeUnknownJsonStringSync
|
|
201
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-h2f26xbd.js";
|
|
202
207
|
|
|
203
208
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
204
209
|
var headUnsafe = (self) => {
|
|
@@ -247,10 +252,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
247
252
|
return (self, that) => is(self, that) && is(that, self);
|
|
248
253
|
};
|
|
249
254
|
|
|
250
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
251
|
-
var Clock = ClockRef;
|
|
252
|
-
var currentTimeMillis = currentTimeMillis2;
|
|
253
|
-
|
|
254
255
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
255
256
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
256
257
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -371,7 +372,7 @@ var fromStringUnsafe = (input) => {
|
|
|
371
372
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
372
373
|
return make(value);
|
|
373
374
|
};
|
|
374
|
-
var
|
|
375
|
+
var fromInputUnsafe2 = (input) => {
|
|
375
376
|
switch (typeof input) {
|
|
376
377
|
case "bigint":
|
|
377
378
|
if (input < bigint0)
|
|
@@ -384,7 +385,7 @@ var fromInputUnsafe = (input) => {
|
|
|
384
385
|
}
|
|
385
386
|
return invalid(`unsupported input ${input}`);
|
|
386
387
|
};
|
|
387
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
388
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
388
389
|
|
|
389
390
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
390
391
|
var join = fiberJoin;
|
|
@@ -1310,7 +1311,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1310
1311
|
return false;
|
|
1311
1312
|
});
|
|
1312
1313
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1313
|
-
const localScope =
|
|
1314
|
+
const localScope = get4(services, Scope);
|
|
1314
1315
|
const scope = forkUnsafe(self.scope);
|
|
1315
1316
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1316
1317
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2807,16 +2808,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2807
2808
|
}), catchDone(() => endVoid)));
|
|
2808
2809
|
var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
|
|
2809
2810
|
|
|
2811
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2812
|
+
var TypeId8 = "~effect/RcRef";
|
|
2813
|
+
var stateEmpty = {
|
|
2814
|
+
_tag: "Empty"
|
|
2815
|
+
};
|
|
2816
|
+
var stateClosed = {
|
|
2817
|
+
_tag: "Closed"
|
|
2818
|
+
};
|
|
2819
|
+
var variance2 = {
|
|
2820
|
+
_A: identity,
|
|
2821
|
+
_E: identity
|
|
2822
|
+
};
|
|
2823
|
+
|
|
2824
|
+
class RcRefImpl {
|
|
2825
|
+
[TypeId8] = variance2;
|
|
2826
|
+
pipe() {
|
|
2827
|
+
return pipeArguments(this, arguments);
|
|
2828
|
+
}
|
|
2829
|
+
state = stateEmpty;
|
|
2830
|
+
acquire;
|
|
2831
|
+
context;
|
|
2832
|
+
scope;
|
|
2833
|
+
idleTimeToLive;
|
|
2834
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2835
|
+
this.acquire = acquire;
|
|
2836
|
+
this.context = context;
|
|
2837
|
+
this.scope = scope;
|
|
2838
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2842
|
+
const context = fiber.context;
|
|
2843
|
+
const scope = get4(context, Scope);
|
|
2844
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2845
|
+
return as(addFinalizerExit(scope, () => {
|
|
2846
|
+
const state = ref.state;
|
|
2847
|
+
ref.state = stateClosed;
|
|
2848
|
+
if (state._tag === "Acquired")
|
|
2849
|
+
return close(state.scope, void_2);
|
|
2850
|
+
if (state._tag === "Acquiring")
|
|
2851
|
+
return interrupt(state.fiber);
|
|
2852
|
+
return void_3;
|
|
2853
|
+
}), ref);
|
|
2854
|
+
});
|
|
2855
|
+
var getState = (self, restore) => {
|
|
2856
|
+
switch (self.state._tag) {
|
|
2857
|
+
case "Closed": {
|
|
2858
|
+
return interrupt3;
|
|
2859
|
+
}
|
|
2860
|
+
case "Acquired": {
|
|
2861
|
+
const state = self.state;
|
|
2862
|
+
state.refCount++;
|
|
2863
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2864
|
+
}
|
|
2865
|
+
case "Acquiring": {
|
|
2866
|
+
const state = self.state;
|
|
2867
|
+
state.awaiters++;
|
|
2868
|
+
return awaitAcquiring(self, state, restore);
|
|
2869
|
+
}
|
|
2870
|
+
case "Empty": {
|
|
2871
|
+
const acquiring = {
|
|
2872
|
+
_tag: "Acquiring",
|
|
2873
|
+
fiber: undefined,
|
|
2874
|
+
awaiters: 1,
|
|
2875
|
+
acquired: undefined
|
|
2876
|
+
};
|
|
2877
|
+
self.state = acquiring;
|
|
2878
|
+
const scope = makeUnsafe6();
|
|
2879
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2880
|
+
if (self.state !== acquiring) {
|
|
2881
|
+
return interrupt3;
|
|
2882
|
+
}
|
|
2883
|
+
const state = {
|
|
2884
|
+
_tag: "Acquired",
|
|
2885
|
+
value,
|
|
2886
|
+
scope,
|
|
2887
|
+
fiber: undefined,
|
|
2888
|
+
refCount: acquiring.awaiters,
|
|
2889
|
+
invalidated: false
|
|
2890
|
+
};
|
|
2891
|
+
self.state = state;
|
|
2892
|
+
acquiring.acquired = state;
|
|
2893
|
+
return succeed6(state);
|
|
2894
|
+
}), onExit((exit) => {
|
|
2895
|
+
if (isSuccess2(exit))
|
|
2896
|
+
return void_3;
|
|
2897
|
+
if (self.state === acquiring)
|
|
2898
|
+
self.state = stateEmpty;
|
|
2899
|
+
return close(scope, exit);
|
|
2900
|
+
}));
|
|
2901
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2902
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2903
|
+
}
|
|
2904
|
+
}
|
|
2905
|
+
};
|
|
2906
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2907
|
+
const acquired = acquiring.acquired;
|
|
2908
|
+
if (acquired !== undefined) {
|
|
2909
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2910
|
+
}
|
|
2911
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2912
|
+
return void_3;
|
|
2913
|
+
self.state = stateEmpty;
|
|
2914
|
+
return interrupt(acquiring.fiber);
|
|
2915
|
+
});
|
|
2916
|
+
var get2 = (self_) => {
|
|
2917
|
+
const self = self_;
|
|
2918
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2919
|
+
};
|
|
2920
|
+
var release = (self, state) => {
|
|
2921
|
+
state.refCount--;
|
|
2922
|
+
if (state.refCount > 0) {
|
|
2923
|
+
return void_3;
|
|
2924
|
+
}
|
|
2925
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2926
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2927
|
+
if (self.state === state) {
|
|
2928
|
+
self.state = stateEmpty;
|
|
2929
|
+
}
|
|
2930
|
+
return close(state.scope, void_2);
|
|
2931
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2932
|
+
return void_3;
|
|
2933
|
+
}
|
|
2934
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2935
|
+
if (self.state === state && state.refCount === 0) {
|
|
2936
|
+
self.state = stateEmpty;
|
|
2937
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2938
|
+
log: "Unhandled",
|
|
2939
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2940
|
+
});
|
|
2941
|
+
}
|
|
2942
|
+
return void_3;
|
|
2943
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2944
|
+
state.fiber = undefined;
|
|
2945
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2946
|
+
return void_3;
|
|
2947
|
+
};
|
|
2948
|
+
|
|
2949
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2950
|
+
var make10 = make6;
|
|
2951
|
+
var get3 = get2;
|
|
2952
|
+
|
|
2810
2953
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2811
|
-
var
|
|
2812
|
-
var isStream = (u) => hasProperty(u,
|
|
2954
|
+
var TypeId9 = "~effect/Stream";
|
|
2955
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2813
2956
|
var fromChannel2 = fromChannel3;
|
|
2814
2957
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2815
2958
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2816
2959
|
var toChannel2 = (stream) => stream.channel;
|
|
2817
2960
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2818
2961
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2819
|
-
var
|
|
2962
|
+
var make11 = (...values) => fromArray2(values);
|
|
2820
2963
|
var suspend = (stream) => {
|
|
2821
2964
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2822
2965
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3014,11 +3157,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3014
3157
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3015
3158
|
|
|
3016
3159
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3017
|
-
var
|
|
3160
|
+
var TypeId10 = "~effect/FileSystem";
|
|
3018
3161
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3019
|
-
var
|
|
3162
|
+
var make12 = (impl) => FileSystem.of({
|
|
3020
3163
|
...impl,
|
|
3021
|
-
[
|
|
3164
|
+
[TypeId10]: TypeId10,
|
|
3022
3165
|
glob: make2(impl),
|
|
3023
3166
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3024
3167
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3034,11 +3177,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3034
3177
|
const file = yield* impl.open(path, {
|
|
3035
3178
|
flag: "r"
|
|
3036
3179
|
});
|
|
3037
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3180
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
3038
3181
|
if (offset) {
|
|
3039
3182
|
yield* file.seek(offset, "start");
|
|
3040
3183
|
}
|
|
3041
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3184
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
3042
3185
|
let totalBytesRead = BigInt(0);
|
|
3043
3186
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3044
3187
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3074,11 +3217,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3074
3217
|
}
|
|
3075
3218
|
|
|
3076
3219
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3077
|
-
var
|
|
3220
|
+
var TypeId11 = "~effect/Path";
|
|
3078
3221
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3079
|
-
var
|
|
3222
|
+
var make13 = (impl) => Path.of({
|
|
3080
3223
|
...impl,
|
|
3081
|
-
[
|
|
3224
|
+
[TypeId11]: TypeId11,
|
|
3082
3225
|
resolveWithin(root, input) {
|
|
3083
3226
|
if (impl.parse(input).root !== "")
|
|
3084
3227
|
return none();
|
|
@@ -3151,7 +3294,7 @@ function makeProvider(load, mapInput) {
|
|
|
3151
3294
|
function makeSource(get, transform) {
|
|
3152
3295
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3153
3296
|
}
|
|
3154
|
-
function
|
|
3297
|
+
function make7(get) {
|
|
3155
3298
|
return makeSource(get, identityPath);
|
|
3156
3299
|
}
|
|
3157
3300
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3160,7 +3303,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3160
3303
|
function fromEnvRecord(env, options) {
|
|
3161
3304
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3162
3305
|
const trie = buildEnvTrie(env);
|
|
3163
|
-
return
|
|
3306
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3164
3307
|
}
|
|
3165
3308
|
function fromEnv(options) {
|
|
3166
3309
|
const env = options?.env ?? {
|
|
@@ -3213,7 +3356,7 @@ function trieNodeAt(root, path) {
|
|
|
3213
3356
|
}
|
|
3214
3357
|
|
|
3215
3358
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3216
|
-
var
|
|
3359
|
+
var TypeId12 = "~effect/Config";
|
|
3217
3360
|
class ConfigError {
|
|
3218
3361
|
_tag = "ConfigError";
|
|
3219
3362
|
name = "ConfigError";
|
|
@@ -3235,14 +3378,14 @@ var Proto2 = {
|
|
|
3235
3378
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3236
3379
|
}
|
|
3237
3380
|
}),
|
|
3238
|
-
[
|
|
3381
|
+
[TypeId12]: TypeId12,
|
|
3239
3382
|
toJSON() {
|
|
3240
3383
|
return {
|
|
3241
3384
|
_id: "Config"
|
|
3242
3385
|
};
|
|
3243
3386
|
}
|
|
3244
3387
|
};
|
|
3245
|
-
function
|
|
3388
|
+
function make14(evaluator) {
|
|
3246
3389
|
const self = Object.create(Proto2);
|
|
3247
3390
|
self.evaluator = evaluator;
|
|
3248
3391
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3250,14 +3393,14 @@ function make7(evaluator) {
|
|
|
3250
3393
|
}
|
|
3251
3394
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3252
3395
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3253
|
-
return
|
|
3396
|
+
return make14((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3254
3397
|
});
|
|
3255
3398
|
function all(arg) {
|
|
3256
3399
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3257
|
-
return
|
|
3400
|
+
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));
|
|
3258
3401
|
}
|
|
3259
3402
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3260
|
-
return
|
|
3403
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3261
3404
|
});
|
|
3262
3405
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3263
3406
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3374,9 +3517,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3374
3517
|
function schema(codec, path) {
|
|
3375
3518
|
const codecStringTree = toCodecStringTree(codec);
|
|
3376
3519
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3377
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3520
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3378
3521
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3379
|
-
return
|
|
3522
|
+
return make14((provider, pathPrefix) => {
|
|
3380
3523
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3381
3524
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3382
3525
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3492,4 +3635,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3492
3635
|
...argv
|
|
3493
3636
|
];
|
|
3494
3637
|
|
|
3495
|
-
export { map, makeEquivalence,
|
|
3638
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, 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, 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 };
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-h2f26xbd.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-j4b1yvcd.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-d1826dj4.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-0j884359.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-bsgvmq34.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-d1826dj4.js";
|
|
16
|
+
import"./chunk-j4b1yvcd.js";
|
|
17
|
+
import"./chunk-h2f26xbd.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|