@kitman-sh/cli 0.20.0 → 0.22.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-spazhq67.js → chunk-1j38xtvp.js} +2 -2
- package/dist/{chunk-centvmrd.js → chunk-2gm1qkd1.js} +4 -4
- package/dist/{chunk-qvpkwnky.js → chunk-4qjfn1sa.js} +1 -1
- package/dist/{chunk-s9fwm42m.js → chunk-5gx52vjz.js} +3 -3
- package/dist/{chunk-y7bth30s.js → chunk-5kqt4bqp.js} +1 -1
- package/dist/{chunk-kntnw6r0.js → chunk-63cyj9dh.js} +177 -28
- package/dist/{chunk-rekh8azw.js → chunk-an5jcv2h.js} +7 -7
- package/dist/{chunk-535m9qxp.js → chunk-bgwp50wv.js} +128 -267
- package/dist/{chunk-3vgv5ba7.js → chunk-cswzx3jj.js} +6 -6
- package/dist/{chunk-v30yf453.js → chunk-gap0vmj7.js} +2 -2
- package/dist/{chunk-ew07nt2d.js → chunk-h2f26xbd.js} +61 -61
- package/dist/{chunk-fvdnmgsy.js → chunk-jq8hbcnf.js} +4 -4
- package/dist/{chunk-3hyggg9w.js → chunk-js64y97w.js} +4 -4
- package/dist/{chunk-89a53j2y.js → chunk-my92qn4x.js} +5 -5
- package/dist/{chunk-rrbnxea1.js → chunk-pbe77xf2.js} +6 -6
- package/dist/{chunk-3wct0tsd.js → chunk-q3kvaas4.js} +15 -1
- package/dist/{chunk-g00ewhrb.js → chunk-rfa7t28t.js} +19 -19
- package/dist/{chunk-yecj64ke.js → chunk-rns9z6k9.js} +10 -10
- package/dist/{chunk-6hxtg6eb.js → chunk-samxkpbz.js} +3 -3
- package/dist/{chunk-haq904fk.js → chunk-tsx0347c.js} +1 -1
- package/dist/{chunk-8xd2jvgj.js → chunk-vmc9xnvh.js} +18 -18
- package/dist/{chunk-6387vj9z.js → chunk-vz38kngm.js} +2 -2
- package/dist/{chunk-7dcq58d0.js → chunk-xqc3fc72.js} +8 -8
- package/dist/{chunk-dtgp724s.js → chunk-y4a78x63.js} +1 -1
- package/dist/{chunk-avg3cz82.js → chunk-ytknm7wg.js} +4 -4
- package/dist/{chunk-2scq36fm.js → chunk-zh3djymt.js} +25 -12
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
writeSrtSettings2,
|
|
16
16
|
srtStepArgv2,
|
|
17
17
|
srtArgv2
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
} from "./chunk-63cyj9dh.js";
|
|
19
|
+
import"./chunk-h2f26xbd.js";
|
|
20
20
|
export {
|
|
21
21
|
compiled2 as compiled,
|
|
22
22
|
harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-gap0vmj7.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-bgwp50wv.js";
|
|
16
|
+
import"./chunk-63cyj9dh.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,
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-h2f26xbd.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-63cyj9dh.js";
|
|
32
32
|
import {
|
|
33
33
|
newerKitmanVersion,
|
|
34
34
|
digestSha256,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
get2,
|
|
40
40
|
layer4,
|
|
41
41
|
KitDigest
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-bgwp50wv.js";
|
|
43
43
|
|
|
44
44
|
// packages/core/src/npm-registry.ts
|
|
45
45
|
var KitManifest = Struct({
|
|
@@ -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,
|
|
@@ -83,6 +86,7 @@ import {
|
|
|
83
86
|
fail4,
|
|
84
87
|
interrupt2,
|
|
85
88
|
void_2,
|
|
89
|
+
isSuccess2,
|
|
86
90
|
isFailure2,
|
|
87
91
|
asVoidAll,
|
|
88
92
|
makeUnsafe5,
|
|
@@ -154,12 +158,14 @@ import {
|
|
|
154
158
|
tapError2,
|
|
155
159
|
ignoreCause,
|
|
156
160
|
orElseSucceed,
|
|
161
|
+
sleep,
|
|
157
162
|
raceFirst,
|
|
158
163
|
when,
|
|
159
164
|
matchCauseEffect,
|
|
160
165
|
context,
|
|
161
166
|
contextWith,
|
|
162
167
|
provideContext2,
|
|
168
|
+
scope2,
|
|
163
169
|
scoped,
|
|
164
170
|
scopedWith,
|
|
165
171
|
acquireRelease,
|
|
@@ -170,6 +176,7 @@ import {
|
|
|
170
176
|
interrupt3,
|
|
171
177
|
onInterrupt,
|
|
172
178
|
uninterruptible,
|
|
179
|
+
uninterruptibleMask2,
|
|
173
180
|
forever,
|
|
174
181
|
forkChild,
|
|
175
182
|
forkIn,
|
|
@@ -192,11 +199,11 @@ import {
|
|
|
192
199
|
toEncoded,
|
|
193
200
|
decodeUnknownEffect,
|
|
194
201
|
SchemaError,
|
|
195
|
-
|
|
202
|
+
make17,
|
|
196
203
|
String4,
|
|
197
204
|
toCodecStringTree,
|
|
198
205
|
encodeUnknownJsonStringSync
|
|
199
|
-
} from "./chunk-
|
|
206
|
+
} from "./chunk-h2f26xbd.js";
|
|
200
207
|
|
|
201
208
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
202
209
|
var headUnsafe = (self) => {
|
|
@@ -374,7 +381,7 @@ var fromStringUnsafe = (input) => {
|
|
|
374
381
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
375
382
|
return make(value);
|
|
376
383
|
};
|
|
377
|
-
var
|
|
384
|
+
var fromInputUnsafe2 = (input) => {
|
|
378
385
|
switch (typeof input) {
|
|
379
386
|
case "bigint":
|
|
380
387
|
if (input < bigint0)
|
|
@@ -387,7 +394,7 @@ var fromInputUnsafe = (input) => {
|
|
|
387
394
|
}
|
|
388
395
|
return invalid(`unsupported input ${input}`);
|
|
389
396
|
};
|
|
390
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
397
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
391
398
|
|
|
392
399
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
393
400
|
var join = fiberJoin;
|
|
@@ -1313,7 +1320,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1313
1320
|
return false;
|
|
1314
1321
|
});
|
|
1315
1322
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1316
|
-
const localScope =
|
|
1323
|
+
const localScope = get4(services, Scope);
|
|
1317
1324
|
const scope = forkUnsafe(self.scope);
|
|
1318
1325
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1319
1326
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2810,16 +2817,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2810
2817
|
}), catchDone(() => endVoid)));
|
|
2811
2818
|
var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
|
|
2812
2819
|
|
|
2820
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2821
|
+
var TypeId8 = "~effect/RcRef";
|
|
2822
|
+
var stateEmpty = {
|
|
2823
|
+
_tag: "Empty"
|
|
2824
|
+
};
|
|
2825
|
+
var stateClosed = {
|
|
2826
|
+
_tag: "Closed"
|
|
2827
|
+
};
|
|
2828
|
+
var variance2 = {
|
|
2829
|
+
_A: identity,
|
|
2830
|
+
_E: identity
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
class RcRefImpl {
|
|
2834
|
+
[TypeId8] = variance2;
|
|
2835
|
+
pipe() {
|
|
2836
|
+
return pipeArguments(this, arguments);
|
|
2837
|
+
}
|
|
2838
|
+
state = stateEmpty;
|
|
2839
|
+
acquire;
|
|
2840
|
+
context;
|
|
2841
|
+
scope;
|
|
2842
|
+
idleTimeToLive;
|
|
2843
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2844
|
+
this.acquire = acquire;
|
|
2845
|
+
this.context = context;
|
|
2846
|
+
this.scope = scope;
|
|
2847
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2850
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2851
|
+
const context = fiber.context;
|
|
2852
|
+
const scope = get4(context, Scope);
|
|
2853
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2854
|
+
return as(addFinalizerExit(scope, () => {
|
|
2855
|
+
const state = ref.state;
|
|
2856
|
+
ref.state = stateClosed;
|
|
2857
|
+
if (state._tag === "Acquired")
|
|
2858
|
+
return close(state.scope, void_2);
|
|
2859
|
+
if (state._tag === "Acquiring")
|
|
2860
|
+
return interrupt(state.fiber);
|
|
2861
|
+
return void_3;
|
|
2862
|
+
}), ref);
|
|
2863
|
+
});
|
|
2864
|
+
var getState = (self, restore) => {
|
|
2865
|
+
switch (self.state._tag) {
|
|
2866
|
+
case "Closed": {
|
|
2867
|
+
return interrupt3;
|
|
2868
|
+
}
|
|
2869
|
+
case "Acquired": {
|
|
2870
|
+
const state = self.state;
|
|
2871
|
+
state.refCount++;
|
|
2872
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2873
|
+
}
|
|
2874
|
+
case "Acquiring": {
|
|
2875
|
+
const state = self.state;
|
|
2876
|
+
state.awaiters++;
|
|
2877
|
+
return awaitAcquiring(self, state, restore);
|
|
2878
|
+
}
|
|
2879
|
+
case "Empty": {
|
|
2880
|
+
const acquiring = {
|
|
2881
|
+
_tag: "Acquiring",
|
|
2882
|
+
fiber: undefined,
|
|
2883
|
+
awaiters: 1,
|
|
2884
|
+
acquired: undefined
|
|
2885
|
+
};
|
|
2886
|
+
self.state = acquiring;
|
|
2887
|
+
const scope = makeUnsafe6();
|
|
2888
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2889
|
+
if (self.state !== acquiring) {
|
|
2890
|
+
return interrupt3;
|
|
2891
|
+
}
|
|
2892
|
+
const state = {
|
|
2893
|
+
_tag: "Acquired",
|
|
2894
|
+
value,
|
|
2895
|
+
scope,
|
|
2896
|
+
fiber: undefined,
|
|
2897
|
+
refCount: acquiring.awaiters,
|
|
2898
|
+
invalidated: false
|
|
2899
|
+
};
|
|
2900
|
+
self.state = state;
|
|
2901
|
+
acquiring.acquired = state;
|
|
2902
|
+
return succeed6(state);
|
|
2903
|
+
}), onExit((exit) => {
|
|
2904
|
+
if (isSuccess2(exit))
|
|
2905
|
+
return void_3;
|
|
2906
|
+
if (self.state === acquiring)
|
|
2907
|
+
self.state = stateEmpty;
|
|
2908
|
+
return close(scope, exit);
|
|
2909
|
+
}));
|
|
2910
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2911
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
};
|
|
2915
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2916
|
+
const acquired = acquiring.acquired;
|
|
2917
|
+
if (acquired !== undefined) {
|
|
2918
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2919
|
+
}
|
|
2920
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2921
|
+
return void_3;
|
|
2922
|
+
self.state = stateEmpty;
|
|
2923
|
+
return interrupt(acquiring.fiber);
|
|
2924
|
+
});
|
|
2925
|
+
var get2 = (self_) => {
|
|
2926
|
+
const self = self_;
|
|
2927
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2928
|
+
};
|
|
2929
|
+
var release = (self, state) => {
|
|
2930
|
+
state.refCount--;
|
|
2931
|
+
if (state.refCount > 0) {
|
|
2932
|
+
return void_3;
|
|
2933
|
+
}
|
|
2934
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2935
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2936
|
+
if (self.state === state) {
|
|
2937
|
+
self.state = stateEmpty;
|
|
2938
|
+
}
|
|
2939
|
+
return close(state.scope, void_2);
|
|
2940
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2941
|
+
return void_3;
|
|
2942
|
+
}
|
|
2943
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2944
|
+
if (self.state === state && state.refCount === 0) {
|
|
2945
|
+
self.state = stateEmpty;
|
|
2946
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2947
|
+
log: "Unhandled",
|
|
2948
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2949
|
+
});
|
|
2950
|
+
}
|
|
2951
|
+
return void_3;
|
|
2952
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2953
|
+
state.fiber = undefined;
|
|
2954
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2955
|
+
return void_3;
|
|
2956
|
+
};
|
|
2957
|
+
|
|
2958
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2959
|
+
var make10 = make6;
|
|
2960
|
+
var get3 = get2;
|
|
2961
|
+
|
|
2813
2962
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2814
|
-
var
|
|
2815
|
-
var isStream = (u) => hasProperty(u,
|
|
2963
|
+
var TypeId9 = "~effect/Stream";
|
|
2964
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2816
2965
|
var fromChannel2 = fromChannel3;
|
|
2817
2966
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2818
2967
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2819
2968
|
var toChannel2 = (stream) => stream.channel;
|
|
2820
2969
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2821
2970
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2822
|
-
var
|
|
2971
|
+
var make11 = (...values) => fromArray2(values);
|
|
2823
2972
|
var suspend = (stream) => {
|
|
2824
2973
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2825
2974
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3017,11 +3166,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3017
3166
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3018
3167
|
|
|
3019
3168
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3020
|
-
var
|
|
3169
|
+
var TypeId10 = "~effect/FileSystem";
|
|
3021
3170
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3022
|
-
var
|
|
3171
|
+
var make12 = (impl) => FileSystem.of({
|
|
3023
3172
|
...impl,
|
|
3024
|
-
[
|
|
3173
|
+
[TypeId10]: TypeId10,
|
|
3025
3174
|
glob: make2(impl),
|
|
3026
3175
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3027
3176
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3037,11 +3186,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3037
3186
|
const file = yield* impl.open(path, {
|
|
3038
3187
|
flag: "r"
|
|
3039
3188
|
});
|
|
3040
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3189
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
3041
3190
|
if (offset) {
|
|
3042
3191
|
yield* file.seek(offset, "start");
|
|
3043
3192
|
}
|
|
3044
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3193
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
3045
3194
|
let totalBytesRead = BigInt(0);
|
|
3046
3195
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3047
3196
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3077,11 +3226,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3077
3226
|
}
|
|
3078
3227
|
|
|
3079
3228
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3080
|
-
var
|
|
3229
|
+
var TypeId11 = "~effect/Path";
|
|
3081
3230
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3082
|
-
var
|
|
3231
|
+
var make13 = (impl) => Path.of({
|
|
3083
3232
|
...impl,
|
|
3084
|
-
[
|
|
3233
|
+
[TypeId11]: TypeId11,
|
|
3085
3234
|
resolveWithin(root, input) {
|
|
3086
3235
|
if (impl.parse(input).root !== "")
|
|
3087
3236
|
return none();
|
|
@@ -3154,7 +3303,7 @@ function makeProvider(load, mapInput) {
|
|
|
3154
3303
|
function makeSource(get, transform) {
|
|
3155
3304
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3156
3305
|
}
|
|
3157
|
-
function
|
|
3306
|
+
function make7(get) {
|
|
3158
3307
|
return makeSource(get, identityPath);
|
|
3159
3308
|
}
|
|
3160
3309
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3163,7 +3312,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3163
3312
|
function fromEnvRecord(env, options) {
|
|
3164
3313
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3165
3314
|
const trie = buildEnvTrie(env);
|
|
3166
|
-
return
|
|
3315
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3167
3316
|
}
|
|
3168
3317
|
function fromEnv(options) {
|
|
3169
3318
|
const env = options?.env ?? {
|
|
@@ -3216,7 +3365,7 @@ function trieNodeAt(root, path) {
|
|
|
3216
3365
|
}
|
|
3217
3366
|
|
|
3218
3367
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3219
|
-
var
|
|
3368
|
+
var TypeId12 = "~effect/Config";
|
|
3220
3369
|
class ConfigError {
|
|
3221
3370
|
_tag = "ConfigError";
|
|
3222
3371
|
name = "ConfigError";
|
|
@@ -3238,14 +3387,14 @@ var Proto2 = {
|
|
|
3238
3387
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3239
3388
|
}
|
|
3240
3389
|
}),
|
|
3241
|
-
[
|
|
3390
|
+
[TypeId12]: TypeId12,
|
|
3242
3391
|
toJSON() {
|
|
3243
3392
|
return {
|
|
3244
3393
|
_id: "Config"
|
|
3245
3394
|
};
|
|
3246
3395
|
}
|
|
3247
3396
|
};
|
|
3248
|
-
function
|
|
3397
|
+
function make14(evaluator) {
|
|
3249
3398
|
const self = Object.create(Proto2);
|
|
3250
3399
|
self.evaluator = evaluator;
|
|
3251
3400
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3253,14 +3402,14 @@ function make7(evaluator) {
|
|
|
3253
3402
|
}
|
|
3254
3403
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3255
3404
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3256
|
-
return
|
|
3405
|
+
return make14((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3257
3406
|
});
|
|
3258
3407
|
function all(arg) {
|
|
3259
3408
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3260
|
-
return
|
|
3409
|
+
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));
|
|
3261
3410
|
}
|
|
3262
3411
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3263
|
-
return
|
|
3412
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3264
3413
|
});
|
|
3265
3414
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3266
3415
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3377,9 +3526,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3377
3526
|
function schema(codec, path) {
|
|
3378
3527
|
const codecStringTree = toCodecStringTree(codec);
|
|
3379
3528
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3380
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3529
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3381
3530
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3382
|
-
return
|
|
3531
|
+
return make14((provider, pathPrefix) => {
|
|
3383
3532
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3384
3533
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3385
3534
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3495,4 +3644,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3495
3644
|
...argv
|
|
3496
3645
|
];
|
|
3497
3646
|
|
|
3498
|
-
export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent,
|
|
3647
|
+
export { map, makeEquivalence, toNumber, 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 };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
FileSystem,
|
|
4
4
|
Path
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-63cyj9dh.js";
|
|
6
6
|
import {
|
|
7
7
|
isObject,
|
|
8
8
|
isUint8Array,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
isJsonObject,
|
|
18
18
|
decodeJsonString,
|
|
19
19
|
encodePrettyJsonString
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-h2f26xbd.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-ytknm7wg.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-bgwp50wv.js";
|
|
35
|
+
import"./chunk-5gx52vjz.js";
|
|
36
|
+
import"./chunk-gap0vmj7.js";
|
|
37
|
+
import"./chunk-4qjfn1sa.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
40
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|