@kitman-sh/cli 0.10.100 → 0.10.101
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-1kww1jdz.js → chunk-30mfra3r.js} +1 -1
- package/dist/{chunk-wyh06par.js → chunk-4kxjvd6d.js} +138 -292
- package/dist/{chunk-p3kwtm82.js → chunk-5esfnamp.js} +2 -2
- package/dist/{chunk-1nw7sbtr.js → chunk-756n3pq8.js} +4 -4
- package/dist/{chunk-mjrr0wzp.js → chunk-9nrr1dwr.js} +177 -28
- package/dist/{chunk-cpx45jzk.js → chunk-afy705a7.js} +5 -5
- package/dist/{chunk-5z0cwmet.js → chunk-b1cn9zfa.js} +75 -28
- package/dist/{chunk-gs6qdy2k.js → chunk-c7ym0ce7.js} +2 -2
- package/dist/{chunk-ayfdkptb.js → chunk-che5w0y4.js} +60 -60
- package/dist/{chunk-tk85pw4z.js → chunk-e70qpgft.js} +9 -9
- package/dist/{chunk-6sanfepb.js → chunk-hv44tcjs.js} +6 -6
- package/dist/{chunk-wzkdjdb7.js → chunk-hxqxdy21.js} +1 -1
- package/dist/{chunk-mtz8f1hn.js → chunk-hzf25za9.js} +7 -7
- package/dist/{chunk-hcpjfshb.js → chunk-ne0vptcd.js} +6 -6
- package/dist/{chunk-1k3cvdbt.js → chunk-psz28edd.js} +4 -4
- package/dist/{chunk-9xj0djtp.js → chunk-q492wb19.js} +8 -8
- package/dist/{chunk-tqw2rkc9.js → chunk-qhyzesdb.js} +3 -3
- package/dist/{chunk-vatjyw59.js → chunk-r16msggg.js} +17 -17
- package/dist/{chunk-4c78jfqk.js → chunk-s27r6x3a.js} +5 -5
- package/dist/{chunk-qv9te9gr.js → chunk-tbrpndp2.js} +2 -2
- package/dist/{chunk-r3rap6hz.js → chunk-x75d47ez.js} +19 -19
- package/dist/{chunk-mk8vsaj7.js → chunk-xckn5gax.js} +1 -1
- package/dist/{chunk-cy7cy84h.js → chunk-xyfs9f2k.js} +10 -10
- package/dist/{chunk-0rf10v29.js → chunk-yjnrw9yb.js} +4 -4
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map8,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-che5w0y4.js";
|
|
26
26
|
import {
|
|
27
27
|
unwrap,
|
|
28
28
|
drainFork,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runCollect,
|
|
32
32
|
runDrain,
|
|
33
33
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-9nrr1dwr.js";
|
|
35
35
|
|
|
36
36
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
37
|
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-che5w0y4.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-30mfra3r.js";
|
|
82
82
|
import {
|
|
83
83
|
currentTimeMillis,
|
|
84
84
|
WebCrypto,
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-4kxjvd6d.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-9nrr1dwr.js";
|
|
113
113
|
|
|
114
114
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/crypto/internal/webCrypto.js
|
|
115
115
|
var subtleUnavailable = () => new Error("crypto.subtle is unavailable; browsers expose it only in secure contexts");
|
|
@@ -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,
|
|
@@ -81,6 +84,7 @@ import {
|
|
|
81
84
|
fail4,
|
|
82
85
|
interrupt2,
|
|
83
86
|
void_2,
|
|
87
|
+
isSuccess2,
|
|
84
88
|
isFailure2,
|
|
85
89
|
asVoidAll,
|
|
86
90
|
makeUnsafe5,
|
|
@@ -152,12 +156,14 @@ import {
|
|
|
152
156
|
tapError2,
|
|
153
157
|
ignoreCause,
|
|
154
158
|
orElseSucceed,
|
|
159
|
+
sleep,
|
|
155
160
|
raceFirst,
|
|
156
161
|
when,
|
|
157
162
|
matchCauseEffect,
|
|
158
163
|
context,
|
|
159
164
|
contextWith,
|
|
160
165
|
provideContext2,
|
|
166
|
+
scope2,
|
|
161
167
|
scoped,
|
|
162
168
|
scopedWith,
|
|
163
169
|
ensuring2,
|
|
@@ -167,6 +173,7 @@ import {
|
|
|
167
173
|
interrupt3,
|
|
168
174
|
onInterrupt,
|
|
169
175
|
uninterruptible,
|
|
176
|
+
uninterruptibleMask2,
|
|
170
177
|
forever,
|
|
171
178
|
forkChild,
|
|
172
179
|
forkIn,
|
|
@@ -188,11 +195,11 @@ import {
|
|
|
188
195
|
toEncoded,
|
|
189
196
|
decodeUnknownEffect,
|
|
190
197
|
SchemaError,
|
|
191
|
-
|
|
198
|
+
make17,
|
|
192
199
|
String4,
|
|
193
200
|
toCodecStringTree,
|
|
194
201
|
encodeUnknownJsonStringSync
|
|
195
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-che5w0y4.js";
|
|
196
203
|
|
|
197
204
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
198
205
|
var headUnsafe = (self) => {
|
|
@@ -361,7 +368,7 @@ var fromStringUnsafe = (input) => {
|
|
|
361
368
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
362
369
|
return make(value);
|
|
363
370
|
};
|
|
364
|
-
var
|
|
371
|
+
var fromInputUnsafe2 = (input) => {
|
|
365
372
|
switch (typeof input) {
|
|
366
373
|
case "bigint":
|
|
367
374
|
if (input < bigint0)
|
|
@@ -374,7 +381,7 @@ var fromInputUnsafe = (input) => {
|
|
|
374
381
|
}
|
|
375
382
|
return invalid(`unsupported input ${input}`);
|
|
376
383
|
};
|
|
377
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
384
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
378
385
|
|
|
379
386
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
380
387
|
var join = fiberJoin;
|
|
@@ -1300,7 +1307,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1300
1307
|
return false;
|
|
1301
1308
|
});
|
|
1302
1309
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1303
|
-
const localScope =
|
|
1310
|
+
const localScope = get4(services, Scope);
|
|
1304
1311
|
const scope = forkUnsafe(self.scope);
|
|
1305
1312
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1306
1313
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2757,16 +2764,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2757
2764
|
}), catchDone(() => endVoid)));
|
|
2758
2765
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2759
2766
|
|
|
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
|
+
|
|
2760
2909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2761
|
-
var
|
|
2762
|
-
var isStream = (u) => hasProperty(u,
|
|
2910
|
+
var TypeId9 = "~effect/Stream";
|
|
2911
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2763
2912
|
var fromChannel2 = fromChannel3;
|
|
2764
2913
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2765
2914
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2766
2915
|
var toChannel2 = (stream) => stream.channel;
|
|
2767
2916
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2768
2917
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2769
|
-
var
|
|
2918
|
+
var make11 = (...values) => fromArray2(values);
|
|
2770
2919
|
var suspend = (stream) => {
|
|
2771
2920
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2772
2921
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2929,11 +3078,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
2929
3078
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
2930
3079
|
|
|
2931
3080
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
2932
|
-
var
|
|
3081
|
+
var TypeId10 = "~effect/FileSystem";
|
|
2933
3082
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
2934
|
-
var
|
|
3083
|
+
var make12 = (impl) => FileSystem.of({
|
|
2935
3084
|
...impl,
|
|
2936
|
-
[
|
|
3085
|
+
[TypeId10]: TypeId10,
|
|
2937
3086
|
glob: make2(impl),
|
|
2938
3087
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
2939
3088
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -2949,11 +3098,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
2949
3098
|
const file = yield* impl.open(path, {
|
|
2950
3099
|
flag: "r"
|
|
2951
3100
|
});
|
|
2952
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3101
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
2953
3102
|
if (offset) {
|
|
2954
3103
|
yield* file.seek(offset, "start");
|
|
2955
3104
|
}
|
|
2956
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3105
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
2957
3106
|
let totalBytesRead = BigInt(0);
|
|
2958
3107
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
2959
3108
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -2989,11 +3138,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
2989
3138
|
}
|
|
2990
3139
|
|
|
2991
3140
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
2992
|
-
var
|
|
3141
|
+
var TypeId11 = "~effect/Path";
|
|
2993
3142
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
2994
|
-
var
|
|
3143
|
+
var make13 = (impl) => Path.of({
|
|
2995
3144
|
...impl,
|
|
2996
|
-
[
|
|
3145
|
+
[TypeId11]: TypeId11,
|
|
2997
3146
|
resolveWithin(root, input) {
|
|
2998
3147
|
if (impl.parse(input).root !== "")
|
|
2999
3148
|
return none();
|
|
@@ -3066,7 +3215,7 @@ function makeProvider(load, mapInput) {
|
|
|
3066
3215
|
function makeSource(get, transform) {
|
|
3067
3216
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3068
3217
|
}
|
|
3069
|
-
function
|
|
3218
|
+
function make7(get) {
|
|
3070
3219
|
return makeSource(get, identityPath);
|
|
3071
3220
|
}
|
|
3072
3221
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3075,7 +3224,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3075
3224
|
function fromEnvRecord(env, options) {
|
|
3076
3225
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3077
3226
|
const trie = buildEnvTrie(env);
|
|
3078
|
-
return
|
|
3227
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3079
3228
|
}
|
|
3080
3229
|
function fromEnv(options) {
|
|
3081
3230
|
const env = options?.env ?? {
|
|
@@ -3128,7 +3277,7 @@ function trieNodeAt(root, path) {
|
|
|
3128
3277
|
}
|
|
3129
3278
|
|
|
3130
3279
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3131
|
-
var
|
|
3280
|
+
var TypeId12 = "~effect/Config";
|
|
3132
3281
|
class ConfigError {
|
|
3133
3282
|
_tag = "ConfigError";
|
|
3134
3283
|
name = "ConfigError";
|
|
@@ -3150,14 +3299,14 @@ var Proto2 = {
|
|
|
3150
3299
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3151
3300
|
}
|
|
3152
3301
|
}),
|
|
3153
|
-
[
|
|
3302
|
+
[TypeId12]: TypeId12,
|
|
3154
3303
|
toJSON() {
|
|
3155
3304
|
return {
|
|
3156
3305
|
_id: "Config"
|
|
3157
3306
|
};
|
|
3158
3307
|
}
|
|
3159
3308
|
};
|
|
3160
|
-
function
|
|
3309
|
+
function make14(evaluator) {
|
|
3161
3310
|
const self = Object.create(Proto2);
|
|
3162
3311
|
self.evaluator = evaluator;
|
|
3163
3312
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3165,14 +3314,14 @@ function make7(evaluator) {
|
|
|
3165
3314
|
}
|
|
3166
3315
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3167
3316
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3168
|
-
return
|
|
3317
|
+
return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3169
3318
|
});
|
|
3170
3319
|
function all(arg) {
|
|
3171
3320
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3172
|
-
return
|
|
3321
|
+
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));
|
|
3173
3322
|
}
|
|
3174
3323
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3175
|
-
return
|
|
3324
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3176
3325
|
});
|
|
3177
3326
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3178
3327
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3289,9 +3438,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3289
3438
|
function schema(codec, path) {
|
|
3290
3439
|
const codecStringTree = toCodecStringTree(codec);
|
|
3291
3440
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3292
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3441
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3293
3442
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3294
|
-
return
|
|
3443
|
+
return make14((provider, pathPrefix) => {
|
|
3295
3444
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3296
3445
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3297
3446
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3403,4 +3552,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3403
3552
|
...argv
|
|
3404
3553
|
];
|
|
3405
3554
|
|
|
3406
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent,
|
|
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, make10, get3, isStream, fromChannel2, callback, empty2, make11, 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, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -23,24 +23,24 @@ import {
|
|
|
23
23
|
fnUntraced,
|
|
24
24
|
encodePrettyJsonString,
|
|
25
25
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-che5w0y4.js";
|
|
27
27
|
import {
|
|
28
28
|
isJsonObject,
|
|
29
29
|
isString
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-hxqxdy21.js";
|
|
31
31
|
import {
|
|
32
32
|
FileSystem,
|
|
33
33
|
Path,
|
|
34
34
|
optionalEnv
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-9nrr1dwr.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentHarnessIds,
|
|
38
38
|
sha2562,
|
|
39
39
|
runCommand2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-4kxjvd6d.js";
|
|
41
41
|
import {
|
|
42
42
|
NpmRegistry
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-qhyzesdb.js";
|
|
44
44
|
|
|
45
45
|
// packages/agent-runtime/src/config-convergence.ts
|
|
46
46
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOrUndefined,
|
|
7
7
|
Reference,
|
|
8
8
|
TaggedError,
|
|
9
|
-
|
|
9
|
+
make16,
|
|
10
10
|
_await,
|
|
11
11
|
fail5,
|
|
12
12
|
succeed5,
|
|
@@ -87,7 +87,19 @@ import {
|
|
|
87
87
|
decodeJsonString,
|
|
88
88
|
encodeJsonStringSync,
|
|
89
89
|
encodePrettyJsonString
|
|
90
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-che5w0y4.js";
|
|
91
|
+
import {
|
|
92
|
+
tap,
|
|
93
|
+
mapError,
|
|
94
|
+
decodeText,
|
|
95
|
+
run,
|
|
96
|
+
mkString,
|
|
97
|
+
FileSystem,
|
|
98
|
+
Path,
|
|
99
|
+
withDefault,
|
|
100
|
+
option,
|
|
101
|
+
String2
|
|
102
|
+
} from "./chunk-9nrr1dwr.js";
|
|
91
103
|
import {
|
|
92
104
|
currentTimeMillis,
|
|
93
105
|
SecureRandom,
|
|
@@ -195,10 +207,10 @@ import {
|
|
|
195
207
|
harnessNames,
|
|
196
208
|
herdrRunnerCapabilities2,
|
|
197
209
|
declaredChecks
|
|
198
|
-
} from "./chunk-
|
|
210
|
+
} from "./chunk-4kxjvd6d.js";
|
|
199
211
|
import {
|
|
200
212
|
Id
|
|
201
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-30mfra3r.js";
|
|
202
214
|
import {
|
|
203
215
|
toJsonValue,
|
|
204
216
|
isOneOf,
|
|
@@ -208,23 +220,11 @@ import {
|
|
|
208
220
|
isObject,
|
|
209
221
|
isJsonObject,
|
|
210
222
|
isString
|
|
211
|
-
} from "./chunk-
|
|
212
|
-
import {
|
|
213
|
-
tap,
|
|
214
|
-
mapError,
|
|
215
|
-
decodeText,
|
|
216
|
-
run,
|
|
217
|
-
mkString,
|
|
218
|
-
FileSystem,
|
|
219
|
-
Path,
|
|
220
|
-
withDefault,
|
|
221
|
-
option,
|
|
222
|
-
String2
|
|
223
|
-
} from "./chunk-mjrr0wzp.js";
|
|
223
|
+
} from "./chunk-hxqxdy21.js";
|
|
224
224
|
import {
|
|
225
225
|
ChildProcessSpawner,
|
|
226
226
|
make3
|
|
227
|
-
} from "./chunk-
|
|
227
|
+
} from "./chunk-5esfnamp.js";
|
|
228
228
|
|
|
229
229
|
// apps/cli/src/cli-error.ts
|
|
230
230
|
function cliErrorCode(error, status) {
|
|
@@ -507,10 +507,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
507
507
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
508
508
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
509
509
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
510
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
510
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-psz28edd.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
511
511
|
});
|
|
512
512
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
513
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
513
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-psz28edd.js")), (module) => module.updateHerdrCore(options))
|
|
514
514
|
});
|
|
515
515
|
var herdrCoreMissing = (error) => {
|
|
516
516
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -861,7 +861,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
861
861
|
});
|
|
862
862
|
var syncKits = (input) => gen(function* () {
|
|
863
863
|
const fs = yield* FileSystem;
|
|
864
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
864
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-q492wb19.js"));
|
|
865
865
|
const harnesses = yield* syncTargets(input.harness);
|
|
866
866
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
867
867
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1779,7 +1779,7 @@ var package_default = {
|
|
|
1779
1779
|
};
|
|
1780
1780
|
|
|
1781
1781
|
// apps/cli/src/scaffold.ts
|
|
1782
|
-
var cliVersion = "0.10.
|
|
1782
|
+
var cliVersion = "0.10.101";
|
|
1783
1783
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
1784
1784
|
name,
|
|
1785
1785
|
private: true,
|
|
@@ -1968,6 +1968,8 @@ var Usage = [
|
|
|
1968
1968
|
" kitman inbox read|unread|done|undone|unsnooze <task:id|run:id|proposal:id|project_update:id>...",
|
|
1969
1969
|
" kitman inbox snooze <task:id|run:id|proposal:id|project_update:id>... --until <time>",
|
|
1970
1970
|
" kitman inbox unsubscribe <task>...",
|
|
1971
|
+
" kitman cr approve <id|url> [--summary <text>] (approves the head Kitman last saw; only a person, not an agent or a tool acting for one)",
|
|
1972
|
+
" kitman cr request-changes <id|url> --summary <text>",
|
|
1971
1973
|
"",
|
|
1972
1974
|
"",
|
|
1973
1975
|
"Loops and Agents the Kits deployed here declare (kitman deploy changes them):",
|
|
@@ -2032,7 +2034,7 @@ var Usage = [
|
|
|
2032
2034
|
"Every run, loop, agent, verify, constraint, secret, claim, deploy, dev and kit command takes --json."
|
|
2033
2035
|
].join(`
|
|
2034
2036
|
`);
|
|
2035
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2037
|
+
var agentRuntime = promise(() => import("./chunk-x75d47ez.js"));
|
|
2036
2038
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2037
2039
|
defaultValue: () => gen(function* () {
|
|
2038
2040
|
const tui = yield* tryPromise({
|
|
@@ -2111,6 +2113,8 @@ function runEffect(args) {
|
|
|
2111
2113
|
return yield* networkHostCommand(args);
|
|
2112
2114
|
if (command === "claim")
|
|
2113
2115
|
return yield* claimCommand(args);
|
|
2116
|
+
if (command === "cr")
|
|
2117
|
+
return yield* changeRequestCommand(args);
|
|
2114
2118
|
if (command === "deploy")
|
|
2115
2119
|
return yield* rest[0] === "bind" || rest[0] === "bindings" || rest[0] === "unbind" ? deployBindingCommand(args) : deployCommand(["deploy", "deploy", ...rest]);
|
|
2116
2120
|
if (command === "dev")
|
|
@@ -2926,7 +2930,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
2926
2930
|
});
|
|
2927
2931
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
2928
2932
|
defaultValue: () => (options) => gen(function* () {
|
|
2929
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
2933
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-hzf25za9.js"));
|
|
2930
2934
|
return yield* makeRunnerRpcClient({
|
|
2931
2935
|
runnerId: options.runnerId,
|
|
2932
2936
|
bearer: options.bearer,
|
|
@@ -3165,7 +3169,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3165
3169
|
});
|
|
3166
3170
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3167
3171
|
const platform = yield* context();
|
|
3168
|
-
const updated = yield*
|
|
3172
|
+
const updated = yield* make16();
|
|
3169
3173
|
const scope = yield* scope2;
|
|
3170
3174
|
yield* listenForSignals({
|
|
3171
3175
|
rpc,
|
|
@@ -3403,7 +3407,7 @@ function mcpCommand(args) {
|
|
|
3403
3407
|
if (command.action === "run") {
|
|
3404
3408
|
if (command.args.length > 0)
|
|
3405
3409
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
3406
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
3410
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-e70qpgft.js"));
|
|
3407
3411
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
3408
3412
|
}
|
|
3409
3413
|
if (command.action !== "setup")
|
|
@@ -4614,9 +4618,52 @@ function claimCommand(args) {
|
|
|
4614
4618
|
}
|
|
4615
4619
|
});
|
|
4616
4620
|
}
|
|
4617
|
-
var
|
|
4621
|
+
var urlLookupLimit = 100;
|
|
4622
|
+
var changeRequestNamed = (client, workspaceId, ref) => gen(function* () {
|
|
4623
|
+
if (!/^https?:\/\//i.test(ref))
|
|
4624
|
+
return yield* client.getChangeRequest(ref);
|
|
4625
|
+
const wanted = ref.replace(/\/+$/, "");
|
|
4626
|
+
for (const team of (yield* client.listTeams(workspaceId)).items)
|
|
4627
|
+
for (const status of ["open", "draft"]) {
|
|
4628
|
+
const found = (yield* client.listChangeRequests(team.id, { status, limit: urlLookupLimit })).items.find((candidate) => candidate.url.replace(/\/+$/, "") === wanted);
|
|
4629
|
+
if (found !== undefined)
|
|
4630
|
+
return found;
|
|
4631
|
+
}
|
|
4632
|
+
return yield* new CliError({
|
|
4633
|
+
message: `No open or draft ChangeRequest among each Team's ${urlLookupLimit} most recently updated has the URL ${ref}; name it by its id instead`
|
|
4634
|
+
});
|
|
4635
|
+
});
|
|
4636
|
+
function changeRequestCommand(args) {
|
|
4637
|
+
return gen(function* () {
|
|
4638
|
+
const command = parseCommand(args);
|
|
4639
|
+
const client = yield* loopClientFor(yield* resolveApiUrl(command.flags.apiUrl));
|
|
4640
|
+
const workspaceId = yield* activeWorkspaceId(command.flags);
|
|
4641
|
+
if (command.action !== "approve" && command.action !== "request-changes")
|
|
4642
|
+
return yield* new CliError({ message: `Unknown cr command: ${command.action}` });
|
|
4643
|
+
const { summary } = command.flags;
|
|
4644
|
+
if (command.action === "request-changes" && summary === undefined)
|
|
4645
|
+
return yield* new CliError({ message: "Say what should change with --summary <text>" });
|
|
4646
|
+
const named = yield* changeRequestNamed(client, workspaceId, requiredArg(command, "a ChangeRequest id or URL"));
|
|
4647
|
+
const changeRequest = yield* client.refreshChangeRequest(named.id).pipe(catch_((error2) => as(error(`warning: could not read ${named.title} from the forge (${error2.message}), so this names the head Kitman last saw`), named)));
|
|
4648
|
+
const head = changeRequest.providerMetadata?.headCommitSha;
|
|
4649
|
+
if (command.action === "approve" && head === undefined)
|
|
4650
|
+
return yield* new CliError({
|
|
4651
|
+
message: `Kitman has not seen the head of ${changeRequest.title}; refresh it on ${changeRequest.url} and try again`
|
|
4652
|
+
});
|
|
4653
|
+
const short = head?.slice(0, 12) ?? "the head";
|
|
4654
|
+
const review = yield* client.recordChangeRequestReview(changeRequest.id, {
|
|
4655
|
+
outcome: command.action === "approve" ? "approved" : "changes_requested",
|
|
4656
|
+
summary: summary ?? `Approved ${short} with the Kitman CLI.`,
|
|
4657
|
+
...head === undefined ? undefined : { headCommitSha: head }
|
|
4658
|
+
});
|
|
4659
|
+
if (command.flags.json)
|
|
4660
|
+
return yield* printJson(review);
|
|
4661
|
+
yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
|
|
4662
|
+
});
|
|
4663
|
+
}
|
|
4664
|
+
var KitWriter = map8(promise(() => import("./chunk-xyfs9f2k.js")), (build) => build.writeKit);
|
|
4618
4665
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
4619
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
4666
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-xyfs9f2k.js")), (build) => build.buildKit(directory))
|
|
4620
4667
|
});
|
|
4621
4668
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
4622
4669
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-9nrr1dwr.js";
|
|
18
|
+
import"./chunk-che5w0y4.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|