@kitman-sh/cli 0.41.0 → 0.42.1
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-amnctk9f.js → chunk-1ay659hm.js} +6 -6
- package/dist/{chunk-xat27r93.js → chunk-4pcknv14.js} +29 -23
- package/dist/{chunk-v2pk0b62.js → chunk-4v0dkm5t.js} +2 -2
- package/dist/{chunk-vd9wjvwt.js → chunk-6e1fq0ct.js} +7 -7
- package/dist/{chunk-cs66re9p.js → chunk-6x08g7m6.js} +10 -10
- package/dist/{chunk-5rvn8bah.js → chunk-6xnkbrs7.js} +144 -144
- package/dist/{chunk-c8rck2r5.js → chunk-7091bpsv.js} +4 -4
- package/dist/{chunk-yxj4dmef.js → chunk-7n64vjb2.js} +8 -8
- package/dist/{chunk-wre79w3z.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-zvp4wm6b.js → chunk-8q04gtg1.js} +6 -6
- package/dist/{chunk-tpmyf5mk.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-b4td2pgc.js → chunk-bqbfyqx6.js} +61 -61
- package/dist/{chunk-svq8b6fq.js → chunk-cnryphhh.js} +5 -5
- package/dist/{chunk-hfy8nmat.js → chunk-d4vhrja4.js} +3 -3
- package/dist/{chunk-j4s7r8hg.js → chunk-dgqjmd95.js} +18 -18
- package/dist/{chunk-qndcafax.js → chunk-ea29sbaq.js} +1 -1
- package/dist/{chunk-sasjamqz.js → chunk-etrfc5cn.js} +178 -29
- package/dist/{chunk-32fc44tx.js → chunk-evpyks4h.js} +10 -10
- package/dist/{chunk-rt2sh0jh.js → chunk-gf2np1ak.js} +59 -59
- package/dist/{chunk-pz7s0apf.js → chunk-hgvft7vy.js} +4 -4
- package/dist/{chunk-f7qdzedh.js → chunk-kqr3ts9q.js} +122 -278
- package/dist/{chunk-p9ykk8h7.js → chunk-nk35kh6w.js} +3 -3
- package/dist/{chunk-drw8m50d.js → chunk-ns26fbmk.js} +2 -2
- package/dist/{chunk-yv80rgfx.js → chunk-p4asjq9r.js} +1 -1
- package/dist/{chunk-0jphb7hd.js → chunk-rv8t9jzj.js} +4 -4
- package/dist/{chunk-dhe1fwhw.js → chunk-wy6gmtd9.js} +2 -2
- 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,
|
|
@@ -85,6 +88,7 @@ import {
|
|
|
85
88
|
fail4,
|
|
86
89
|
interrupt2,
|
|
87
90
|
void_2,
|
|
91
|
+
isSuccess2,
|
|
88
92
|
isFailure2,
|
|
89
93
|
asVoidAll,
|
|
90
94
|
makeUnsafe5,
|
|
@@ -156,12 +160,14 @@ import {
|
|
|
156
160
|
tapError2,
|
|
157
161
|
ignoreCause,
|
|
158
162
|
orElseSucceed,
|
|
163
|
+
sleep,
|
|
159
164
|
raceFirst,
|
|
160
165
|
when,
|
|
161
166
|
matchCauseEffect,
|
|
162
167
|
context,
|
|
163
168
|
contextWith,
|
|
164
169
|
provideContext2,
|
|
170
|
+
scope2,
|
|
165
171
|
scoped,
|
|
166
172
|
scopedWith,
|
|
167
173
|
acquireRelease,
|
|
@@ -172,6 +178,7 @@ import {
|
|
|
172
178
|
interrupt3,
|
|
173
179
|
onInterrupt,
|
|
174
180
|
uninterruptible,
|
|
181
|
+
uninterruptibleMask2,
|
|
175
182
|
forever,
|
|
176
183
|
forkChild,
|
|
177
184
|
forkIn,
|
|
@@ -194,11 +201,11 @@ import {
|
|
|
194
201
|
toEncoded,
|
|
195
202
|
decodeUnknownEffect,
|
|
196
203
|
SchemaError,
|
|
197
|
-
|
|
204
|
+
make17,
|
|
198
205
|
String4,
|
|
199
206
|
toCodecStringTree,
|
|
200
207
|
encodeUnknownJsonStringSync
|
|
201
|
-
} from "./chunk-
|
|
208
|
+
} from "./chunk-bqbfyqx6.js";
|
|
202
209
|
|
|
203
210
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
204
211
|
var headUnsafe = (self) => {
|
|
@@ -371,7 +378,7 @@ var fromStringUnsafe = (input) => {
|
|
|
371
378
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
372
379
|
return make(value);
|
|
373
380
|
};
|
|
374
|
-
var
|
|
381
|
+
var fromInputUnsafe2 = (input) => {
|
|
375
382
|
switch (typeof input) {
|
|
376
383
|
case "bigint":
|
|
377
384
|
if (input < bigint0)
|
|
@@ -384,7 +391,7 @@ var fromInputUnsafe = (input) => {
|
|
|
384
391
|
}
|
|
385
392
|
return invalid(`unsupported input ${input}`);
|
|
386
393
|
};
|
|
387
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
394
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
388
395
|
|
|
389
396
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
390
397
|
var join = fiberJoin;
|
|
@@ -1310,7 +1317,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1310
1317
|
return false;
|
|
1311
1318
|
});
|
|
1312
1319
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1313
|
-
const localScope =
|
|
1320
|
+
const localScope = get4(services, Scope);
|
|
1314
1321
|
const scope = forkUnsafe(self.scope);
|
|
1315
1322
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1316
1323
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2753,7 +2760,7 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
|
|
|
2753
2760
|
var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
|
|
2754
2761
|
const semaphore = makeUnsafe3(1);
|
|
2755
2762
|
const context2 = yield* context();
|
|
2756
|
-
const scope =
|
|
2763
|
+
const scope = get4(context2, Scope);
|
|
2757
2764
|
const pull = yield* toTransform(self)(done(), scope);
|
|
2758
2765
|
return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
|
|
2759
2766
|
}, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
|
|
@@ -2814,16 +2821,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2814
2821
|
}), catchDone(() => endVoid)));
|
|
2815
2822
|
var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
|
|
2816
2823
|
|
|
2824
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2825
|
+
var TypeId8 = "~effect/RcRef";
|
|
2826
|
+
var stateEmpty = {
|
|
2827
|
+
_tag: "Empty"
|
|
2828
|
+
};
|
|
2829
|
+
var stateClosed = {
|
|
2830
|
+
_tag: "Closed"
|
|
2831
|
+
};
|
|
2832
|
+
var variance2 = {
|
|
2833
|
+
_A: identity,
|
|
2834
|
+
_E: identity
|
|
2835
|
+
};
|
|
2836
|
+
|
|
2837
|
+
class RcRefImpl {
|
|
2838
|
+
[TypeId8] = variance2;
|
|
2839
|
+
pipe() {
|
|
2840
|
+
return pipeArguments(this, arguments);
|
|
2841
|
+
}
|
|
2842
|
+
state = stateEmpty;
|
|
2843
|
+
acquire;
|
|
2844
|
+
context;
|
|
2845
|
+
scope;
|
|
2846
|
+
idleTimeToLive;
|
|
2847
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2848
|
+
this.acquire = acquire;
|
|
2849
|
+
this.context = context;
|
|
2850
|
+
this.scope = scope;
|
|
2851
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2855
|
+
const context = fiber.context;
|
|
2856
|
+
const scope = get4(context, Scope);
|
|
2857
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2858
|
+
return as(addFinalizerExit(scope, () => {
|
|
2859
|
+
const state = ref.state;
|
|
2860
|
+
ref.state = stateClosed;
|
|
2861
|
+
if (state._tag === "Acquired")
|
|
2862
|
+
return close(state.scope, void_2);
|
|
2863
|
+
if (state._tag === "Acquiring")
|
|
2864
|
+
return interrupt(state.fiber);
|
|
2865
|
+
return void_3;
|
|
2866
|
+
}), ref);
|
|
2867
|
+
});
|
|
2868
|
+
var getState = (self, restore) => {
|
|
2869
|
+
switch (self.state._tag) {
|
|
2870
|
+
case "Closed": {
|
|
2871
|
+
return interrupt3;
|
|
2872
|
+
}
|
|
2873
|
+
case "Acquired": {
|
|
2874
|
+
const state = self.state;
|
|
2875
|
+
state.refCount++;
|
|
2876
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2877
|
+
}
|
|
2878
|
+
case "Acquiring": {
|
|
2879
|
+
const state = self.state;
|
|
2880
|
+
state.awaiters++;
|
|
2881
|
+
return awaitAcquiring(self, state, restore);
|
|
2882
|
+
}
|
|
2883
|
+
case "Empty": {
|
|
2884
|
+
const acquiring = {
|
|
2885
|
+
_tag: "Acquiring",
|
|
2886
|
+
fiber: undefined,
|
|
2887
|
+
awaiters: 1,
|
|
2888
|
+
acquired: undefined
|
|
2889
|
+
};
|
|
2890
|
+
self.state = acquiring;
|
|
2891
|
+
const scope = makeUnsafe6();
|
|
2892
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2893
|
+
if (self.state !== acquiring) {
|
|
2894
|
+
return interrupt3;
|
|
2895
|
+
}
|
|
2896
|
+
const state = {
|
|
2897
|
+
_tag: "Acquired",
|
|
2898
|
+
value,
|
|
2899
|
+
scope,
|
|
2900
|
+
fiber: undefined,
|
|
2901
|
+
refCount: acquiring.awaiters,
|
|
2902
|
+
invalidated: false
|
|
2903
|
+
};
|
|
2904
|
+
self.state = state;
|
|
2905
|
+
acquiring.acquired = state;
|
|
2906
|
+
return succeed6(state);
|
|
2907
|
+
}), onExit((exit) => {
|
|
2908
|
+
if (isSuccess2(exit))
|
|
2909
|
+
return void_3;
|
|
2910
|
+
if (self.state === acquiring)
|
|
2911
|
+
self.state = stateEmpty;
|
|
2912
|
+
return close(scope, exit);
|
|
2913
|
+
}));
|
|
2914
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2915
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2916
|
+
}
|
|
2917
|
+
}
|
|
2918
|
+
};
|
|
2919
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2920
|
+
const acquired = acquiring.acquired;
|
|
2921
|
+
if (acquired !== undefined) {
|
|
2922
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2923
|
+
}
|
|
2924
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2925
|
+
return void_3;
|
|
2926
|
+
self.state = stateEmpty;
|
|
2927
|
+
return interrupt(acquiring.fiber);
|
|
2928
|
+
});
|
|
2929
|
+
var get2 = (self_) => {
|
|
2930
|
+
const self = self_;
|
|
2931
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2932
|
+
};
|
|
2933
|
+
var release = (self, state) => {
|
|
2934
|
+
state.refCount--;
|
|
2935
|
+
if (state.refCount > 0) {
|
|
2936
|
+
return void_3;
|
|
2937
|
+
}
|
|
2938
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2939
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2940
|
+
if (self.state === state) {
|
|
2941
|
+
self.state = stateEmpty;
|
|
2942
|
+
}
|
|
2943
|
+
return close(state.scope, void_2);
|
|
2944
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2945
|
+
return void_3;
|
|
2946
|
+
}
|
|
2947
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2948
|
+
if (self.state === state && state.refCount === 0) {
|
|
2949
|
+
self.state = stateEmpty;
|
|
2950
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2951
|
+
log: "Unhandled",
|
|
2952
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2953
|
+
});
|
|
2954
|
+
}
|
|
2955
|
+
return void_3;
|
|
2956
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2957
|
+
state.fiber = undefined;
|
|
2958
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2959
|
+
return void_3;
|
|
2960
|
+
};
|
|
2961
|
+
|
|
2962
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2963
|
+
var make10 = make6;
|
|
2964
|
+
var get3 = get2;
|
|
2965
|
+
|
|
2817
2966
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2818
|
-
var
|
|
2819
|
-
var isStream = (u) => hasProperty(u,
|
|
2967
|
+
var TypeId9 = "~effect/Stream";
|
|
2968
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2820
2969
|
var fromChannel2 = fromChannel3;
|
|
2821
2970
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2822
2971
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2823
2972
|
var toChannel2 = (stream) => stream.channel;
|
|
2824
2973
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2825
2974
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2826
|
-
var
|
|
2975
|
+
var make11 = (...values) => fromArray2(values);
|
|
2827
2976
|
var suspend = (stream) => {
|
|
2828
2977
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2829
2978
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3022,11 +3171,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3022
3171
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3023
3172
|
|
|
3024
3173
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3025
|
-
var
|
|
3174
|
+
var TypeId10 = "~effect/FileSystem";
|
|
3026
3175
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3027
|
-
var
|
|
3176
|
+
var make12 = (impl) => FileSystem.of({
|
|
3028
3177
|
...impl,
|
|
3029
|
-
[
|
|
3178
|
+
[TypeId10]: TypeId10,
|
|
3030
3179
|
glob: make2(impl),
|
|
3031
3180
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3032
3181
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3042,11 +3191,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3042
3191
|
const file = yield* impl.open(path, {
|
|
3043
3192
|
flag: "r"
|
|
3044
3193
|
});
|
|
3045
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3194
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
3046
3195
|
if (offset) {
|
|
3047
3196
|
yield* file.seek(offset, "start");
|
|
3048
3197
|
}
|
|
3049
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3198
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
3050
3199
|
let totalBytesRead = BigInt(0);
|
|
3051
3200
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3052
3201
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3082,11 +3231,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3082
3231
|
}
|
|
3083
3232
|
|
|
3084
3233
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3085
|
-
var
|
|
3234
|
+
var TypeId11 = "~effect/Path";
|
|
3086
3235
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3087
|
-
var
|
|
3236
|
+
var make13 = (impl) => Path.of({
|
|
3088
3237
|
...impl,
|
|
3089
|
-
[
|
|
3238
|
+
[TypeId11]: TypeId11,
|
|
3090
3239
|
resolveWithin(root, input) {
|
|
3091
3240
|
if (impl.parse(input).root !== "")
|
|
3092
3241
|
return none();
|
|
@@ -3159,7 +3308,7 @@ function makeProvider(load, mapInput) {
|
|
|
3159
3308
|
function makeSource(get, transform) {
|
|
3160
3309
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3161
3310
|
}
|
|
3162
|
-
function
|
|
3311
|
+
function make7(get) {
|
|
3163
3312
|
return makeSource(get, identityPath);
|
|
3164
3313
|
}
|
|
3165
3314
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3168,7 +3317,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3168
3317
|
function fromEnvRecord(env, options) {
|
|
3169
3318
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3170
3319
|
const trie = buildEnvTrie(env);
|
|
3171
|
-
return
|
|
3320
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3172
3321
|
}
|
|
3173
3322
|
function fromEnv(options) {
|
|
3174
3323
|
const env = options?.env ?? {
|
|
@@ -3221,7 +3370,7 @@ function trieNodeAt(root, path) {
|
|
|
3221
3370
|
}
|
|
3222
3371
|
|
|
3223
3372
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3224
|
-
var
|
|
3373
|
+
var TypeId12 = "~effect/Config";
|
|
3225
3374
|
class ConfigError {
|
|
3226
3375
|
_tag = "ConfigError";
|
|
3227
3376
|
name = "ConfigError";
|
|
@@ -3243,14 +3392,14 @@ var Proto2 = {
|
|
|
3243
3392
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3244
3393
|
}
|
|
3245
3394
|
}),
|
|
3246
|
-
[
|
|
3395
|
+
[TypeId12]: TypeId12,
|
|
3247
3396
|
toJSON() {
|
|
3248
3397
|
return {
|
|
3249
3398
|
_id: "Config"
|
|
3250
3399
|
};
|
|
3251
3400
|
}
|
|
3252
3401
|
};
|
|
3253
|
-
function
|
|
3402
|
+
function make14(evaluator) {
|
|
3254
3403
|
const self = Object.create(Proto2);
|
|
3255
3404
|
self.evaluator = evaluator;
|
|
3256
3405
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3258,14 +3407,14 @@ function make7(evaluator) {
|
|
|
3258
3407
|
}
|
|
3259
3408
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3260
3409
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3261
|
-
return
|
|
3410
|
+
return make14((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3262
3411
|
});
|
|
3263
3412
|
function all(arg) {
|
|
3264
3413
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3265
|
-
return
|
|
3414
|
+
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
3415
|
}
|
|
3267
3416
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3268
|
-
return
|
|
3417
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3269
3418
|
});
|
|
3270
3419
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3271
3420
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3382,9 +3531,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3382
3531
|
function schema(codec, path) {
|
|
3383
3532
|
const codecStringTree = toCodecStringTree(codec);
|
|
3384
3533
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3385
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3534
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3386
3535
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3387
|
-
return
|
|
3536
|
+
return make14((provider, pathPrefix) => {
|
|
3388
3537
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3389
3538
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3390
3539
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3514,4 +3663,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3514
3663
|
...argv
|
|
3515
3664
|
];
|
|
3516
3665
|
|
|
3517
|
-
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent,
|
|
3666
|
+
export { map, makeEquivalence, Clock, currentTimeMillis, 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, 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 };
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
toCodecJson,
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-bqbfyqx6.js";
|
|
39
39
|
import {
|
|
40
40
|
decodeText,
|
|
41
41
|
mkString,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
Path,
|
|
44
44
|
withDefault,
|
|
45
45
|
String2
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-etrfc5cn.js";
|
|
47
47
|
import {
|
|
48
48
|
SecureRandom,
|
|
49
49
|
layerWebCrypto,
|
|
@@ -60,26 +60,26 @@ import {
|
|
|
60
60
|
KitDeclarations,
|
|
61
61
|
kitmanMcpServer,
|
|
62
62
|
RunnerRpcProtocolVersion
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-kqr3ts9q.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import"./chunk-
|
|
67
|
+
} from "./chunk-nk35kh6w.js";
|
|
68
|
+
import"./chunk-ea29sbaq.js";
|
|
69
69
|
import {
|
|
70
70
|
stepDefinedTwice,
|
|
71
71
|
hostSteps,
|
|
72
72
|
exports_activities,
|
|
73
73
|
describeFlag,
|
|
74
74
|
Described
|
|
75
|
-
} from "./chunk-
|
|
76
|
-
import"./chunk-
|
|
77
|
-
import"./chunk-
|
|
75
|
+
} from "./chunk-7n64vjb2.js";
|
|
76
|
+
import"./chunk-1ay659hm.js";
|
|
77
|
+
import"./chunk-98azvx6g.js";
|
|
78
78
|
import {
|
|
79
79
|
ChildProcessSpawner,
|
|
80
80
|
make3
|
|
81
|
-
} from "./chunk-
|
|
82
|
-
import"./chunk-
|
|
81
|
+
} from "./chunk-6x08g7m6.js";
|
|
82
|
+
import"./chunk-dgqjmd95.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -1,56 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
SecureRandom,
|
|
4
|
-
makeUnsafe,
|
|
5
|
-
formatIso,
|
|
6
|
-
error,
|
|
7
|
-
parseDate,
|
|
8
|
-
currentDate,
|
|
9
|
-
scanDurableSurface,
|
|
10
|
-
redactResponseSurface,
|
|
11
|
-
canonicalSha256,
|
|
12
|
-
RunWaitUntils,
|
|
13
|
-
RunnerOwnership,
|
|
14
|
-
Session,
|
|
15
|
-
SessionEnd,
|
|
16
|
-
SessionUpdate,
|
|
17
|
-
SessionUpdateCreate,
|
|
18
|
-
KitmanAgentCapabilityNames,
|
|
19
|
-
runFileContentType,
|
|
20
|
-
digestSha256,
|
|
21
|
-
sha256Hasher,
|
|
22
|
-
layerWebSocketConstructorGlobal,
|
|
23
|
-
layerWebSocket,
|
|
24
|
-
KitmanClientError,
|
|
25
|
-
KitmanEffectClient,
|
|
26
|
-
CliError,
|
|
27
|
-
resolveConfig,
|
|
28
|
-
apiUrlFromEnv,
|
|
29
|
-
stepCredentialFromEnv,
|
|
30
|
-
stepWorkspaceFromEnv,
|
|
31
|
-
stepLogDirFromEnv,
|
|
32
|
-
stepSkillsDirFromEnv,
|
|
33
|
-
stepFittingSkillsFromEnv,
|
|
34
|
-
stepOutputOnlyFromEnv,
|
|
35
|
-
mcpCredentialNameFromEnv,
|
|
36
|
-
userAuthPath,
|
|
37
|
-
readUserConfig,
|
|
38
|
-
sessionForApi,
|
|
39
|
-
readAuthStore,
|
|
40
|
-
agentCredentialForApi,
|
|
41
|
-
make6,
|
|
42
|
-
make7,
|
|
43
|
-
Service,
|
|
44
|
-
shouldRefresh,
|
|
45
|
-
refreshSession,
|
|
46
|
-
AgentAuthClientError,
|
|
47
|
-
executeAgentCapability,
|
|
48
|
-
createAgentAuthBearerToken,
|
|
49
|
-
McpPlatformLive,
|
|
50
|
-
runMcpEffect,
|
|
51
|
-
createAgentAuthSignedFetch,
|
|
52
|
-
setupMcpAgentCredential
|
|
53
|
-
} from "./chunk-f7qdzedh.js";
|
|
54
2
|
import {
|
|
55
3
|
identity,
|
|
56
4
|
hasProperty,
|
|
@@ -170,13 +118,65 @@ import {
|
|
|
170
118
|
decodeJsonStringOption,
|
|
171
119
|
encodeJsonStringSync,
|
|
172
120
|
encodePrettyJsonString
|
|
173
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-bqbfyqx6.js";
|
|
122
|
+
import {
|
|
123
|
+
SecureRandom,
|
|
124
|
+
makeUnsafe,
|
|
125
|
+
formatIso,
|
|
126
|
+
error,
|
|
127
|
+
parseDate,
|
|
128
|
+
currentDate,
|
|
129
|
+
scanDurableSurface,
|
|
130
|
+
redactResponseSurface,
|
|
131
|
+
canonicalSha256,
|
|
132
|
+
RunWaitUntils,
|
|
133
|
+
RunnerOwnership,
|
|
134
|
+
Session,
|
|
135
|
+
SessionEnd,
|
|
136
|
+
SessionUpdate,
|
|
137
|
+
SessionUpdateCreate,
|
|
138
|
+
KitmanAgentCapabilityNames,
|
|
139
|
+
runFileContentType,
|
|
140
|
+
digestSha256,
|
|
141
|
+
sha256Hasher,
|
|
142
|
+
layerWebSocketConstructorGlobal,
|
|
143
|
+
layerWebSocket,
|
|
144
|
+
KitmanClientError,
|
|
145
|
+
KitmanEffectClient,
|
|
146
|
+
CliError,
|
|
147
|
+
resolveConfig,
|
|
148
|
+
apiUrlFromEnv,
|
|
149
|
+
stepCredentialFromEnv,
|
|
150
|
+
stepWorkspaceFromEnv,
|
|
151
|
+
stepLogDirFromEnv,
|
|
152
|
+
stepSkillsDirFromEnv,
|
|
153
|
+
stepFittingSkillsFromEnv,
|
|
154
|
+
stepOutputOnlyFromEnv,
|
|
155
|
+
mcpCredentialNameFromEnv,
|
|
156
|
+
userAuthPath,
|
|
157
|
+
readUserConfig,
|
|
158
|
+
sessionForApi,
|
|
159
|
+
readAuthStore,
|
|
160
|
+
agentCredentialForApi,
|
|
161
|
+
make6,
|
|
162
|
+
make7,
|
|
163
|
+
Service,
|
|
164
|
+
shouldRefresh,
|
|
165
|
+
refreshSession,
|
|
166
|
+
AgentAuthClientError,
|
|
167
|
+
executeAgentCapability,
|
|
168
|
+
createAgentAuthBearerToken,
|
|
169
|
+
McpPlatformLive,
|
|
170
|
+
runMcpEffect,
|
|
171
|
+
createAgentAuthSignedFetch,
|
|
172
|
+
setupMcpAgentCredential
|
|
173
|
+
} from "./chunk-kqr3ts9q.js";
|
|
174
174
|
import {
|
|
175
175
|
guard,
|
|
176
176
|
Id,
|
|
177
177
|
Timestamp,
|
|
178
178
|
ActorType
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-ea29sbaq.js";
|
|
180
180
|
import {
|
|
181
181
|
currentTimeMillis,
|
|
182
182
|
join,
|
|
@@ -194,24 +194,24 @@ import {
|
|
|
194
194
|
withDefault,
|
|
195
195
|
option,
|
|
196
196
|
String2
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-etrfc5cn.js";
|
|
198
198
|
import {
|
|
199
199
|
searchDocs2,
|
|
200
200
|
readDoc2
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-4v0dkm5t.js";
|
|
202
202
|
import {
|
|
203
203
|
nextInt
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-8b02x7vv.js";
|
|
205
205
|
import {
|
|
206
206
|
recommendationProblem
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-98azvx6g.js";
|
|
208
208
|
import {
|
|
209
209
|
layerJson,
|
|
210
210
|
make4,
|
|
211
211
|
withHeaders,
|
|
212
212
|
layerProtocolSocket,
|
|
213
213
|
ConnectionHooks
|
|
214
|
-
} from "./chunk-
|
|
214
|
+
} from "./chunk-dgqjmd95.js";
|
|
215
215
|
|
|
216
216
|
// apps/cli/src/mcp.ts
|
|
217
217
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
readOpencode2,
|
|
10
10
|
databaseStamp2,
|
|
11
11
|
runOpencodeReader2
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
15
|
-
import"./chunk-
|
|
12
|
+
} from "./chunk-cnryphhh.js";
|
|
13
|
+
import"./chunk-6x08g7m6.js";
|
|
14
|
+
import"./chunk-etrfc5cn.js";
|
|
15
|
+
import"./chunk-bqbfyqx6.js";
|
|
16
16
|
export {
|
|
17
17
|
databaseStamp2 as databaseStamp,
|
|
18
18
|
decoded2 as decoded,
|