@kitman-sh/cli 0.11.0-rc.3 → 0.11.0-rc.4
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-egb7pjjz.js → chunk-0h5et1rg.js} +6 -6
- package/dist/{chunk-vkgqtwqm.js → chunk-2aj4ym2c.js} +7 -7
- package/dist/{chunk-sk6ceghr.js → chunk-2sfgqfgq.js} +2 -2
- package/dist/{chunk-52ad8f0f.js → chunk-4ngdyd3k.js} +17 -17
- package/dist/{chunk-bs81bt3q.js → chunk-6zrq5xq2.js} +7 -7
- package/dist/{chunk-248msks2.js → chunk-7d8prq0a.js} +4 -4
- package/dist/{chunk-6pyxykt1.js → chunk-9ew87kjc.js} +7 -212
- package/dist/{chunk-japwbj9n.js → chunk-anf9ddey.js} +2 -2
- package/dist/{chunk-nzjb36ad.js → chunk-bj73db3f.js} +1 -1
- package/dist/{chunk-0qz10ek8.js → chunk-bv9e34qz.js} +1 -1
- package/dist/{chunk-rtqdqr0v.js → chunk-cbwmsy27.js} +464 -114
- package/dist/{chunk-5j848ckb.js → chunk-cegdw7gw.js} +2 -2
- package/dist/{chunk-x7b9bwk6.js → chunk-dc681k94.js} +4 -4
- package/dist/{chunk-cnzz61ta.js → chunk-k2b10qys.js} +19 -19
- package/dist/{chunk-9a2r12ye.js → chunk-k6mfj25g.js} +3 -3
- package/dist/{chunk-d9bv70qb.js → chunk-kbhm8p3c.js} +5 -5
- package/dist/{chunk-7fbpsnt7.js → chunk-nb36pw5d.js} +8 -8
- package/dist/{chunk-5hx3j5x8.js → chunk-pqz98b85.js} +5 -5
- package/dist/{chunk-z450wa10.js → chunk-rjdptgqf.js} +4 -4
- package/dist/{chunk-vmv7gwwr.js → chunk-tx61h9d8.js} +6 -6
- package/dist/{chunk-vtfwjhzh.js → chunk-txyp31q5.js} +60 -60
- package/dist/{chunk-c6rbt85q.js → chunk-xmq9zpr1.js} +1 -1
- package/dist/{chunk-b6m9rfzj.js → chunk-y0q2574w.js} +12 -12
- package/dist/{chunk-3d4d52e5.js → chunk-znh6xbze.js} +28 -177
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -34,11 +34,8 @@ import {
|
|
|
34
34
|
getOrUndefined,
|
|
35
35
|
map4,
|
|
36
36
|
Service2,
|
|
37
|
-
|
|
38
|
-
get4,
|
|
37
|
+
get3,
|
|
39
38
|
Reference,
|
|
40
|
-
fromInputUnsafe,
|
|
41
|
-
isFinite,
|
|
42
39
|
normalize,
|
|
43
40
|
succeed,
|
|
44
41
|
fail3,
|
|
@@ -84,7 +81,6 @@ import {
|
|
|
84
81
|
fail4,
|
|
85
82
|
interrupt2,
|
|
86
83
|
void_2,
|
|
87
|
-
isSuccess2,
|
|
88
84
|
isFailure2,
|
|
89
85
|
asVoidAll,
|
|
90
86
|
makeUnsafe5,
|
|
@@ -156,14 +152,12 @@ import {
|
|
|
156
152
|
tapError2,
|
|
157
153
|
ignoreCause,
|
|
158
154
|
orElseSucceed,
|
|
159
|
-
sleep,
|
|
160
155
|
raceFirst,
|
|
161
156
|
when,
|
|
162
157
|
matchCauseEffect,
|
|
163
158
|
context,
|
|
164
159
|
contextWith,
|
|
165
160
|
provideContext2,
|
|
166
|
-
scope2,
|
|
167
161
|
scoped,
|
|
168
162
|
scopedWith,
|
|
169
163
|
ensuring2,
|
|
@@ -173,7 +167,6 @@ import {
|
|
|
173
167
|
interrupt3,
|
|
174
168
|
onInterrupt,
|
|
175
169
|
uninterruptible,
|
|
176
|
-
uninterruptibleMask2,
|
|
177
170
|
forever,
|
|
178
171
|
forkChild,
|
|
179
172
|
forkIn,
|
|
@@ -195,11 +188,11 @@ import {
|
|
|
195
188
|
toEncoded,
|
|
196
189
|
decodeUnknownEffect,
|
|
197
190
|
SchemaError,
|
|
198
|
-
|
|
191
|
+
make16,
|
|
199
192
|
String4,
|
|
200
193
|
toCodecStringTree,
|
|
201
194
|
encodeUnknownJsonStringSync
|
|
202
|
-
} from "./chunk-
|
|
195
|
+
} from "./chunk-txyp31q5.js";
|
|
203
196
|
|
|
204
197
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
205
198
|
var headUnsafe = (self) => {
|
|
@@ -368,7 +361,7 @@ var fromStringUnsafe = (input) => {
|
|
|
368
361
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
369
362
|
return make(value);
|
|
370
363
|
};
|
|
371
|
-
var
|
|
364
|
+
var fromInputUnsafe = (input) => {
|
|
372
365
|
switch (typeof input) {
|
|
373
366
|
case "bigint":
|
|
374
367
|
if (input < bigint0)
|
|
@@ -381,7 +374,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
381
374
|
}
|
|
382
375
|
return invalid(`unsupported input ${input}`);
|
|
383
376
|
};
|
|
384
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
377
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
385
378
|
|
|
386
379
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
387
380
|
var join = fiberJoin;
|
|
@@ -1307,7 +1300,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1307
1300
|
return false;
|
|
1308
1301
|
});
|
|
1309
1302
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1310
|
-
const localScope =
|
|
1303
|
+
const localScope = get3(services, Scope);
|
|
1311
1304
|
const scope = forkUnsafe(self.scope);
|
|
1312
1305
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1313
1306
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2764,158 +2757,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2764
2757
|
}), catchDone(() => endVoid)));
|
|
2765
2758
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2766
2759
|
|
|
2767
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2768
|
-
var TypeId8 = "~effect/RcRef";
|
|
2769
|
-
var stateEmpty = {
|
|
2770
|
-
_tag: "Empty"
|
|
2771
|
-
};
|
|
2772
|
-
var stateClosed = {
|
|
2773
|
-
_tag: "Closed"
|
|
2774
|
-
};
|
|
2775
|
-
var variance2 = {
|
|
2776
|
-
_A: identity,
|
|
2777
|
-
_E: identity
|
|
2778
|
-
};
|
|
2779
|
-
|
|
2780
|
-
class RcRefImpl {
|
|
2781
|
-
[TypeId8] = variance2;
|
|
2782
|
-
pipe() {
|
|
2783
|
-
return pipeArguments(this, arguments);
|
|
2784
|
-
}
|
|
2785
|
-
state = stateEmpty;
|
|
2786
|
-
acquire;
|
|
2787
|
-
context;
|
|
2788
|
-
scope;
|
|
2789
|
-
idleTimeToLive;
|
|
2790
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2791
|
-
this.acquire = acquire;
|
|
2792
|
-
this.context = context;
|
|
2793
|
-
this.scope = scope;
|
|
2794
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
var make6 = (options) => withFiber2((fiber) => {
|
|
2798
|
-
const context = fiber.context;
|
|
2799
|
-
const scope = get4(context, Scope);
|
|
2800
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2801
|
-
return as(addFinalizerExit(scope, () => {
|
|
2802
|
-
const state = ref.state;
|
|
2803
|
-
ref.state = stateClosed;
|
|
2804
|
-
if (state._tag === "Acquired")
|
|
2805
|
-
return close(state.scope, void_2);
|
|
2806
|
-
if (state._tag === "Acquiring")
|
|
2807
|
-
return interrupt(state.fiber);
|
|
2808
|
-
return void_3;
|
|
2809
|
-
}), ref);
|
|
2810
|
-
});
|
|
2811
|
-
var getState = (self, restore) => {
|
|
2812
|
-
switch (self.state._tag) {
|
|
2813
|
-
case "Closed": {
|
|
2814
|
-
return interrupt3;
|
|
2815
|
-
}
|
|
2816
|
-
case "Acquired": {
|
|
2817
|
-
const state = self.state;
|
|
2818
|
-
state.refCount++;
|
|
2819
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2820
|
-
}
|
|
2821
|
-
case "Acquiring": {
|
|
2822
|
-
const state = self.state;
|
|
2823
|
-
state.awaiters++;
|
|
2824
|
-
return awaitAcquiring(self, state, restore);
|
|
2825
|
-
}
|
|
2826
|
-
case "Empty": {
|
|
2827
|
-
const acquiring = {
|
|
2828
|
-
_tag: "Acquiring",
|
|
2829
|
-
fiber: undefined,
|
|
2830
|
-
awaiters: 1,
|
|
2831
|
-
acquired: undefined
|
|
2832
|
-
};
|
|
2833
|
-
self.state = acquiring;
|
|
2834
|
-
const scope = makeUnsafe6();
|
|
2835
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2836
|
-
if (self.state !== acquiring) {
|
|
2837
|
-
return interrupt3;
|
|
2838
|
-
}
|
|
2839
|
-
const state = {
|
|
2840
|
-
_tag: "Acquired",
|
|
2841
|
-
value,
|
|
2842
|
-
scope,
|
|
2843
|
-
fiber: undefined,
|
|
2844
|
-
refCount: acquiring.awaiters,
|
|
2845
|
-
invalidated: false
|
|
2846
|
-
};
|
|
2847
|
-
self.state = state;
|
|
2848
|
-
acquiring.acquired = state;
|
|
2849
|
-
return succeed6(state);
|
|
2850
|
-
}), onExit((exit) => {
|
|
2851
|
-
if (isSuccess2(exit))
|
|
2852
|
-
return void_3;
|
|
2853
|
-
if (self.state === acquiring)
|
|
2854
|
-
self.state = stateEmpty;
|
|
2855
|
-
return close(scope, exit);
|
|
2856
|
-
}));
|
|
2857
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2858
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
2859
|
-
}
|
|
2860
|
-
}
|
|
2861
|
-
};
|
|
2862
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2863
|
-
const acquired = acquiring.acquired;
|
|
2864
|
-
if (acquired !== undefined) {
|
|
2865
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2866
|
-
}
|
|
2867
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2868
|
-
return void_3;
|
|
2869
|
-
self.state = stateEmpty;
|
|
2870
|
-
return interrupt(acquiring.fiber);
|
|
2871
|
-
});
|
|
2872
|
-
var get2 = (self_) => {
|
|
2873
|
-
const self = self_;
|
|
2874
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2875
|
-
};
|
|
2876
|
-
var release = (self, state) => {
|
|
2877
|
-
state.refCount--;
|
|
2878
|
-
if (state.refCount > 0) {
|
|
2879
|
-
return void_3;
|
|
2880
|
-
}
|
|
2881
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
2882
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2883
|
-
if (self.state === state) {
|
|
2884
|
-
self.state = stateEmpty;
|
|
2885
|
-
}
|
|
2886
|
-
return close(state.scope, void_2);
|
|
2887
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
2888
|
-
return void_3;
|
|
2889
|
-
}
|
|
2890
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2891
|
-
if (self.state === state && state.refCount === 0) {
|
|
2892
|
-
self.state = stateEmpty;
|
|
2893
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
2894
|
-
log: "Unhandled",
|
|
2895
|
-
message: "Unhandled error in RcRef finalizer"
|
|
2896
|
-
});
|
|
2897
|
-
}
|
|
2898
|
-
return void_3;
|
|
2899
|
-
})).pipe(ensuring2(sync2(() => {
|
|
2900
|
-
state.fiber = undefined;
|
|
2901
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
2902
|
-
return void_3;
|
|
2903
|
-
};
|
|
2904
|
-
|
|
2905
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2906
|
-
var make10 = make6;
|
|
2907
|
-
var get3 = get2;
|
|
2908
|
-
|
|
2909
2760
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2910
|
-
var
|
|
2911
|
-
var isStream = (u) => hasProperty(u,
|
|
2761
|
+
var TypeId8 = "~effect/Stream";
|
|
2762
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2912
2763
|
var fromChannel2 = fromChannel3;
|
|
2913
2764
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2914
2765
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2915
2766
|
var toChannel2 = (stream) => stream.channel;
|
|
2916
2767
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2917
2768
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2918
|
-
var
|
|
2769
|
+
var make10 = (...values) => fromArray2(values);
|
|
2919
2770
|
var suspend = (stream) => {
|
|
2920
2771
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2921
2772
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3078,11 +2929,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3078
2929
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3079
2930
|
|
|
3080
2931
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3081
|
-
var
|
|
2932
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3082
2933
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3083
|
-
var
|
|
2934
|
+
var make11 = (impl) => FileSystem.of({
|
|
3084
2935
|
...impl,
|
|
3085
|
-
[
|
|
2936
|
+
[TypeId9]: TypeId9,
|
|
3086
2937
|
glob: make2(impl),
|
|
3087
2938
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3088
2939
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3098,11 +2949,11 @@ var make12 = (impl) => FileSystem.of({
|
|
|
3098
2949
|
const file = yield* impl.open(path, {
|
|
3099
2950
|
flag: "r"
|
|
3100
2951
|
});
|
|
3101
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2952
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3102
2953
|
if (offset) {
|
|
3103
2954
|
yield* file.seek(offset, "start");
|
|
3104
2955
|
}
|
|
3105
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2956
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3106
2957
|
let totalBytesRead = BigInt(0);
|
|
3107
2958
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3108
2959
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3138,11 +2989,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3138
2989
|
}
|
|
3139
2990
|
|
|
3140
2991
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3141
|
-
var
|
|
2992
|
+
var TypeId10 = "~effect/Path";
|
|
3142
2993
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3143
|
-
var
|
|
2994
|
+
var make12 = (impl) => Path.of({
|
|
3144
2995
|
...impl,
|
|
3145
|
-
[
|
|
2996
|
+
[TypeId10]: TypeId10,
|
|
3146
2997
|
resolveWithin(root, input) {
|
|
3147
2998
|
if (impl.parse(input).root !== "")
|
|
3148
2999
|
return none();
|
|
@@ -3215,7 +3066,7 @@ function makeProvider(load, mapInput) {
|
|
|
3215
3066
|
function makeSource(get, transform) {
|
|
3216
3067
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3217
3068
|
}
|
|
3218
|
-
function
|
|
3069
|
+
function make6(get) {
|
|
3219
3070
|
return makeSource(get, identityPath);
|
|
3220
3071
|
}
|
|
3221
3072
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3224,7 +3075,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3224
3075
|
function fromEnvRecord(env, options) {
|
|
3225
3076
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3226
3077
|
const trie = buildEnvTrie(env);
|
|
3227
|
-
return
|
|
3078
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3228
3079
|
}
|
|
3229
3080
|
function fromEnv(options) {
|
|
3230
3081
|
const env = options?.env ?? {
|
|
@@ -3277,7 +3128,7 @@ function trieNodeAt(root, path) {
|
|
|
3277
3128
|
}
|
|
3278
3129
|
|
|
3279
3130
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3280
|
-
var
|
|
3131
|
+
var TypeId11 = "~effect/Config";
|
|
3281
3132
|
class ConfigError {
|
|
3282
3133
|
_tag = "ConfigError";
|
|
3283
3134
|
name = "ConfigError";
|
|
@@ -3299,14 +3150,14 @@ var Proto2 = {
|
|
|
3299
3150
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3300
3151
|
}
|
|
3301
3152
|
}),
|
|
3302
|
-
[
|
|
3153
|
+
[TypeId11]: TypeId11,
|
|
3303
3154
|
toJSON() {
|
|
3304
3155
|
return {
|
|
3305
3156
|
_id: "Config"
|
|
3306
3157
|
};
|
|
3307
3158
|
}
|
|
3308
3159
|
};
|
|
3309
|
-
function
|
|
3160
|
+
function make7(evaluator) {
|
|
3310
3161
|
const self = Object.create(Proto2);
|
|
3311
3162
|
self.evaluator = evaluator;
|
|
3312
3163
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3314,14 +3165,14 @@ function make14(evaluator) {
|
|
|
3314
3165
|
}
|
|
3315
3166
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3316
3167
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3317
|
-
return
|
|
3168
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3318
3169
|
});
|
|
3319
3170
|
function all(arg) {
|
|
3320
3171
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3321
|
-
return
|
|
3172
|
+
return make7((provider, pathPrefix) => globalThis.Array.isArray(configs) ? mapEager(all3(configs.map((config) => evaluateAt(config, provider, pathPrefix))), all2) : mapEager(all3(map(configs, (config) => evaluateAt(config, provider, pathPrefix))), all2));
|
|
3322
3173
|
}
|
|
3323
3174
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3324
|
-
return
|
|
3175
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3325
3176
|
});
|
|
3326
3177
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3327
3178
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3438,9 +3289,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3438
3289
|
function schema(codec, path) {
|
|
3439
3290
|
const codecStringTree = toCodecStringTree(codec);
|
|
3440
3291
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3441
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3292
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3442
3293
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3443
|
-
return
|
|
3294
|
+
return make7((provider, pathPrefix) => {
|
|
3444
3295
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3445
3296
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3446
3297
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3552,4 +3403,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3552
3403
|
...argv
|
|
3553
3404
|
];
|
|
3554
3405
|
|
|
3555
|
-
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,
|
|
3406
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, runIn, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, isStream, fromChannel2, callback, empty2, make10, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, 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, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-anf9ddey.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-rjdptgqf.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-kbhm8p3c.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-4ngdyd3k.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|