@kitman-sh/cli 0.14.6 → 0.14.7
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-hyenk9x1.js → chunk-64zvzv63.js} +6 -6
- package/dist/{chunk-b4ymnz4g.js → chunk-79g5zh2p.js} +2 -2
- package/dist/{chunk-c80dvhxf.js → chunk-8k6adfg7.js} +1 -1
- package/dist/{chunk-n60tz2ah.js → chunk-9yenzg12.js} +18 -18
- package/dist/{chunk-2v47x00x.js → chunk-ag19ejy7.js} +16 -16
- package/dist/{chunk-cg7y7f6e.js → chunk-aj2608jz.js} +329 -131
- package/dist/{chunk-drrpqwtz.js → chunk-b009hdm0.js} +8 -8
- package/dist/{chunk-vt8aqeby.js → chunk-bbf0jzsc.js} +1 -1
- package/dist/{chunk-x1szvb5k.js → chunk-bdd62njv.js} +33 -185
- package/dist/{chunk-wwq069wt.js → chunk-bpx2zjh7.js} +2 -2
- package/dist/{chunk-admtq6ke.js → chunk-bty0mbn4.js} +62 -62
- package/dist/{chunk-thb5bz9d.js → chunk-c9j28q63.js} +13 -13
- package/dist/{chunk-wxvrkx85.js → chunk-cn86thbx.js} +9 -9
- package/dist/{chunk-psvspmpe.js → chunk-d2bqqd9t.js} +8 -8
- package/dist/{chunk-0pw5z0kz.js → chunk-gnhfwa99.js} +1 -1
- package/dist/{chunk-whwwydvq.js → chunk-htxs2z8d.js} +1 -1
- package/dist/{chunk-2re6c3f2.js → chunk-hz4t408c.js} +4 -4
- package/dist/{chunk-19q771ek.js → chunk-jv4p85q5.js} +10 -10
- package/dist/{chunk-s601j5bt.js → chunk-qkh0dhad.js} +3 -3
- package/dist/{chunk-70ghvmwm.js → chunk-rjz0pnf9.js} +4 -4
- package/dist/{chunk-hap4y0ps.js → chunk-s7rhz991.js} +6 -6
- package/dist/{chunk-93xj74qp.js → chunk-w8pevmva.js} +3 -3
- package/dist/{chunk-6ayt58hs.js → chunk-xxx61cda.js} +29 -29
- package/dist/{chunk-cwdrhsvk.js → chunk-y6njjend.js} +2 -2
- package/dist/{chunk-wttgq85b.js → chunk-zpp4jg4a.js} +60 -60
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
make11,
|
|
4
|
-
runForEach,
|
|
5
|
-
compiled2
|
|
6
|
-
} from "./chunk-x1szvb5k.js";
|
|
7
2
|
import {
|
|
8
3
|
getOrUndefined,
|
|
9
4
|
liftThrowable,
|
|
@@ -30,11 +25,16 @@ import {
|
|
|
30
25
|
isJsonObject,
|
|
31
26
|
isString2,
|
|
32
27
|
encodeUnknownJsonStringSync
|
|
33
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zpp4jg4a.js";
|
|
29
|
+
import {
|
|
30
|
+
make10,
|
|
31
|
+
runForEach,
|
|
32
|
+
compiled2
|
|
33
|
+
} from "./chunk-bdd62njv.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
36
|
make3
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-79g5zh2p.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -173,7 +173,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
|
|
|
173
173
|
const spawner = yield* ChildProcessSpawner;
|
|
174
174
|
const [command, ...args] = opencodeReaderCommand();
|
|
175
175
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
176
|
-
stdin:
|
|
176
|
+
stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
177
177
|
stderr: "ignore",
|
|
178
178
|
extendEnv: false,
|
|
179
179
|
env: {},
|
|
@@ -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,
|
|
@@ -79,12 +76,13 @@ import {
|
|
|
79
76
|
fiberRunIn,
|
|
80
77
|
makeLatchUnsafe,
|
|
81
78
|
makeLatch,
|
|
79
|
+
ClockRef,
|
|
80
|
+
currentTimeMillis2,
|
|
82
81
|
succeed3,
|
|
83
82
|
failCause2,
|
|
84
83
|
fail4,
|
|
85
84
|
interrupt2,
|
|
86
85
|
void_2,
|
|
87
|
-
isSuccess2,
|
|
88
86
|
isFailure2,
|
|
89
87
|
asVoidAll,
|
|
90
88
|
makeUnsafe5,
|
|
@@ -156,14 +154,12 @@ import {
|
|
|
156
154
|
tapError2,
|
|
157
155
|
ignoreCause,
|
|
158
156
|
orElseSucceed,
|
|
159
|
-
sleep,
|
|
160
157
|
raceFirst,
|
|
161
158
|
when,
|
|
162
159
|
matchCauseEffect,
|
|
163
160
|
context,
|
|
164
161
|
contextWith,
|
|
165
162
|
provideContext2,
|
|
166
|
-
scope2,
|
|
167
163
|
scoped,
|
|
168
164
|
scopedWith,
|
|
169
165
|
acquireRelease,
|
|
@@ -174,7 +170,6 @@ import {
|
|
|
174
170
|
interrupt3,
|
|
175
171
|
onInterrupt,
|
|
176
172
|
uninterruptible,
|
|
177
|
-
uninterruptibleMask2,
|
|
178
173
|
forever,
|
|
179
174
|
forkChild,
|
|
180
175
|
forkIn,
|
|
@@ -197,11 +192,11 @@ import {
|
|
|
197
192
|
toEncoded,
|
|
198
193
|
decodeUnknownEffect,
|
|
199
194
|
SchemaError,
|
|
200
|
-
|
|
195
|
+
make16,
|
|
201
196
|
String4,
|
|
202
197
|
toCodecStringTree,
|
|
203
198
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-zpp4jg4a.js";
|
|
205
200
|
|
|
206
201
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
202
|
var headUnsafe = (self) => {
|
|
@@ -250,14 +245,9 @@ var makeEquivalence = (equivalence) => {
|
|
|
250
245
|
return (self, that) => is(self, that) && is(that, self);
|
|
251
246
|
};
|
|
252
247
|
|
|
253
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/
|
|
254
|
-
var
|
|
255
|
-
var
|
|
256
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
257
|
-
return none();
|
|
258
|
-
}
|
|
259
|
-
return some(Number(b));
|
|
260
|
-
};
|
|
248
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Clock.js
|
|
249
|
+
var Clock = ClockRef;
|
|
250
|
+
var currentTimeMillis = currentTimeMillis2;
|
|
261
251
|
|
|
262
252
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
263
253
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
@@ -379,7 +369,7 @@ var fromStringUnsafe = (input) => {
|
|
|
379
369
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
380
370
|
return make(value);
|
|
381
371
|
};
|
|
382
|
-
var
|
|
372
|
+
var fromInputUnsafe = (input) => {
|
|
383
373
|
switch (typeof input) {
|
|
384
374
|
case "bigint":
|
|
385
375
|
if (input < bigint0)
|
|
@@ -392,7 +382,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
392
382
|
}
|
|
393
383
|
return invalid(`unsupported input ${input}`);
|
|
394
384
|
};
|
|
395
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
385
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
396
386
|
|
|
397
387
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
398
388
|
var join = fiberJoin;
|
|
@@ -1318,7 +1308,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1318
1308
|
return false;
|
|
1319
1309
|
});
|
|
1320
1310
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1321
|
-
const localScope =
|
|
1311
|
+
const localScope = get3(services, Scope);
|
|
1322
1312
|
const scope = forkUnsafe(self.scope);
|
|
1323
1313
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1324
1314
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2775,158 +2765,16 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2775
2765
|
}), catchDone(() => endVoid)));
|
|
2776
2766
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2777
2767
|
|
|
2778
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2779
|
-
var TypeId8 = "~effect/RcRef";
|
|
2780
|
-
var stateEmpty = {
|
|
2781
|
-
_tag: "Empty"
|
|
2782
|
-
};
|
|
2783
|
-
var stateClosed = {
|
|
2784
|
-
_tag: "Closed"
|
|
2785
|
-
};
|
|
2786
|
-
var variance2 = {
|
|
2787
|
-
_A: identity,
|
|
2788
|
-
_E: identity
|
|
2789
|
-
};
|
|
2790
|
-
|
|
2791
|
-
class RcRefImpl {
|
|
2792
|
-
[TypeId8] = variance2;
|
|
2793
|
-
pipe() {
|
|
2794
|
-
return pipeArguments(this, arguments);
|
|
2795
|
-
}
|
|
2796
|
-
state = stateEmpty;
|
|
2797
|
-
acquire;
|
|
2798
|
-
context;
|
|
2799
|
-
scope;
|
|
2800
|
-
idleTimeToLive;
|
|
2801
|
-
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2802
|
-
this.acquire = acquire;
|
|
2803
|
-
this.context = context;
|
|
2804
|
-
this.scope = scope;
|
|
2805
|
-
this.idleTimeToLive = idleTimeToLive;
|
|
2806
|
-
}
|
|
2807
|
-
}
|
|
2808
|
-
var make6 = (options) => withFiber2((fiber) => {
|
|
2809
|
-
const context = fiber.context;
|
|
2810
|
-
const scope = get4(context, Scope);
|
|
2811
|
-
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2812
|
-
return as(addFinalizerExit(scope, () => {
|
|
2813
|
-
const state = ref.state;
|
|
2814
|
-
ref.state = stateClosed;
|
|
2815
|
-
if (state._tag === "Acquired")
|
|
2816
|
-
return close(state.scope, void_2);
|
|
2817
|
-
if (state._tag === "Acquiring")
|
|
2818
|
-
return interrupt(state.fiber);
|
|
2819
|
-
return void_3;
|
|
2820
|
-
}), ref);
|
|
2821
|
-
});
|
|
2822
|
-
var getState = (self, restore) => {
|
|
2823
|
-
switch (self.state._tag) {
|
|
2824
|
-
case "Closed": {
|
|
2825
|
-
return interrupt3;
|
|
2826
|
-
}
|
|
2827
|
-
case "Acquired": {
|
|
2828
|
-
const state = self.state;
|
|
2829
|
-
state.refCount++;
|
|
2830
|
-
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2831
|
-
}
|
|
2832
|
-
case "Acquiring": {
|
|
2833
|
-
const state = self.state;
|
|
2834
|
-
state.awaiters++;
|
|
2835
|
-
return awaitAcquiring(self, state, restore);
|
|
2836
|
-
}
|
|
2837
|
-
case "Empty": {
|
|
2838
|
-
const acquiring = {
|
|
2839
|
-
_tag: "Acquiring",
|
|
2840
|
-
fiber: undefined,
|
|
2841
|
-
awaiters: 1,
|
|
2842
|
-
acquired: undefined
|
|
2843
|
-
};
|
|
2844
|
-
self.state = acquiring;
|
|
2845
|
-
const scope = makeUnsafe6();
|
|
2846
|
-
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2847
|
-
if (self.state !== acquiring) {
|
|
2848
|
-
return interrupt3;
|
|
2849
|
-
}
|
|
2850
|
-
const state = {
|
|
2851
|
-
_tag: "Acquired",
|
|
2852
|
-
value,
|
|
2853
|
-
scope,
|
|
2854
|
-
fiber: undefined,
|
|
2855
|
-
refCount: acquiring.awaiters,
|
|
2856
|
-
invalidated: false
|
|
2857
|
-
};
|
|
2858
|
-
self.state = state;
|
|
2859
|
-
acquiring.acquired = state;
|
|
2860
|
-
return succeed6(state);
|
|
2861
|
-
}), onExit((exit) => {
|
|
2862
|
-
if (isSuccess2(exit))
|
|
2863
|
-
return void_3;
|
|
2864
|
-
if (self.state === acquiring)
|
|
2865
|
-
self.state = stateEmpty;
|
|
2866
|
-
return close(scope, exit);
|
|
2867
|
-
}));
|
|
2868
|
-
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2869
|
-
return awaitAcquiring(self, acquiring, restore);
|
|
2870
|
-
}
|
|
2871
|
-
}
|
|
2872
|
-
};
|
|
2873
|
-
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2874
|
-
const acquired = acquiring.acquired;
|
|
2875
|
-
if (acquired !== undefined) {
|
|
2876
|
-
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2877
|
-
}
|
|
2878
|
-
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2879
|
-
return void_3;
|
|
2880
|
-
self.state = stateEmpty;
|
|
2881
|
-
return interrupt(acquiring.fiber);
|
|
2882
|
-
});
|
|
2883
|
-
var get2 = (self_) => {
|
|
2884
|
-
const self = self_;
|
|
2885
|
-
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2886
|
-
};
|
|
2887
|
-
var release = (self, state) => {
|
|
2888
|
-
state.refCount--;
|
|
2889
|
-
if (state.refCount > 0) {
|
|
2890
|
-
return void_3;
|
|
2891
|
-
}
|
|
2892
|
-
const idleTimeToLive = self.idleTimeToLive;
|
|
2893
|
-
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2894
|
-
if (self.state === state) {
|
|
2895
|
-
self.state = stateEmpty;
|
|
2896
|
-
}
|
|
2897
|
-
return close(state.scope, void_2);
|
|
2898
|
-
} else if (!isFinite(idleTimeToLive)) {
|
|
2899
|
-
return void_3;
|
|
2900
|
-
}
|
|
2901
|
-
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2902
|
-
if (self.state === state && state.refCount === 0) {
|
|
2903
|
-
self.state = stateEmpty;
|
|
2904
|
-
return ignoreCause(close(state.scope, void_2), {
|
|
2905
|
-
log: "Unhandled",
|
|
2906
|
-
message: "Unhandled error in RcRef finalizer"
|
|
2907
|
-
});
|
|
2908
|
-
}
|
|
2909
|
-
return void_3;
|
|
2910
|
-
})).pipe(ensuring2(sync2(() => {
|
|
2911
|
-
state.fiber = undefined;
|
|
2912
|
-
})), runForkWith(self.context), runIn(self.scope));
|
|
2913
|
-
return void_3;
|
|
2914
|
-
};
|
|
2915
|
-
|
|
2916
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2917
|
-
var make10 = make6;
|
|
2918
|
-
var get3 = get2;
|
|
2919
|
-
|
|
2920
2768
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2921
|
-
var
|
|
2922
|
-
var isStream = (u) => hasProperty(u,
|
|
2769
|
+
var TypeId8 = "~effect/Stream";
|
|
2770
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2923
2771
|
var fromChannel2 = fromChannel3;
|
|
2924
2772
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2925
2773
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2926
2774
|
var toChannel2 = (stream) => stream.channel;
|
|
2927
2775
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2928
2776
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2929
|
-
var
|
|
2777
|
+
var make10 = (...values) => fromArray2(values);
|
|
2930
2778
|
var suspend = (stream) => {
|
|
2931
2779
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2932
2780
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3107,11 +2955,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3107
2955
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3108
2956
|
|
|
3109
2957
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3110
|
-
var
|
|
2958
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3111
2959
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3112
|
-
var
|
|
2960
|
+
var make11 = (impl) => FileSystem.of({
|
|
3113
2961
|
...impl,
|
|
3114
|
-
[
|
|
2962
|
+
[TypeId9]: TypeId9,
|
|
3115
2963
|
glob: make2(impl),
|
|
3116
2964
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3117
2965
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3127,11 +2975,11 @@ var make12 = (impl) => FileSystem.of({
|
|
|
3127
2975
|
const file = yield* impl.open(path, {
|
|
3128
2976
|
flag: "r"
|
|
3129
2977
|
});
|
|
3130
|
-
const offset = options?.offset === undefined ? undefined :
|
|
2978
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3131
2979
|
if (offset) {
|
|
3132
2980
|
yield* file.seek(offset, "start");
|
|
3133
2981
|
}
|
|
3134
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
2982
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3135
2983
|
let totalBytesRead = BigInt(0);
|
|
3136
2984
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3137
2985
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3167,11 +3015,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3167
3015
|
}
|
|
3168
3016
|
|
|
3169
3017
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3170
|
-
var
|
|
3018
|
+
var TypeId10 = "~effect/Path";
|
|
3171
3019
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3172
|
-
var
|
|
3020
|
+
var make12 = (impl) => Path.of({
|
|
3173
3021
|
...impl,
|
|
3174
|
-
[
|
|
3022
|
+
[TypeId10]: TypeId10,
|
|
3175
3023
|
resolveWithin(root, input) {
|
|
3176
3024
|
if (impl.parse(input).root !== "")
|
|
3177
3025
|
return none();
|
|
@@ -3244,7 +3092,7 @@ function makeProvider(load, mapInput) {
|
|
|
3244
3092
|
function makeSource(get, transform) {
|
|
3245
3093
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3246
3094
|
}
|
|
3247
|
-
function
|
|
3095
|
+
function make6(get) {
|
|
3248
3096
|
return makeSource(get, identityPath);
|
|
3249
3097
|
}
|
|
3250
3098
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3253,7 +3101,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3253
3101
|
function fromEnvRecord(env, options) {
|
|
3254
3102
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3255
3103
|
const trie = buildEnvTrie(env);
|
|
3256
|
-
return
|
|
3104
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3257
3105
|
}
|
|
3258
3106
|
function fromEnv(options) {
|
|
3259
3107
|
const env = options?.env ?? {
|
|
@@ -3306,7 +3154,7 @@ function trieNodeAt(root, path) {
|
|
|
3306
3154
|
}
|
|
3307
3155
|
|
|
3308
3156
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3309
|
-
var
|
|
3157
|
+
var TypeId11 = "~effect/Config";
|
|
3310
3158
|
class ConfigError {
|
|
3311
3159
|
_tag = "ConfigError";
|
|
3312
3160
|
name = "ConfigError";
|
|
@@ -3328,14 +3176,14 @@ var Proto2 = {
|
|
|
3328
3176
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3329
3177
|
}
|
|
3330
3178
|
}),
|
|
3331
|
-
[
|
|
3179
|
+
[TypeId11]: TypeId11,
|
|
3332
3180
|
toJSON() {
|
|
3333
3181
|
return {
|
|
3334
3182
|
_id: "Config"
|
|
3335
3183
|
};
|
|
3336
3184
|
}
|
|
3337
3185
|
};
|
|
3338
|
-
function
|
|
3186
|
+
function make7(evaluator) {
|
|
3339
3187
|
const self = Object.create(Proto2);
|
|
3340
3188
|
self.evaluator = evaluator;
|
|
3341
3189
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3343,14 +3191,14 @@ function make14(evaluator) {
|
|
|
3343
3191
|
}
|
|
3344
3192
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3345
3193
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3346
|
-
return
|
|
3194
|
+
return make7((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3347
3195
|
});
|
|
3348
3196
|
function all(arg) {
|
|
3349
3197
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3350
|
-
return
|
|
3198
|
+
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));
|
|
3351
3199
|
}
|
|
3352
3200
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3353
|
-
return
|
|
3201
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3354
3202
|
});
|
|
3355
3203
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3356
3204
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3467,9 +3315,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3467
3315
|
function schema(codec, path) {
|
|
3468
3316
|
const codecStringTree = toCodecStringTree(codec);
|
|
3469
3317
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3470
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3318
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3471
3319
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3472
|
-
return
|
|
3320
|
+
return make7((provider, pathPrefix) => {
|
|
3473
3321
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3474
3322
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3475
3323
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3585,4 +3433,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3585
3433
|
...argv
|
|
3586
3434
|
];
|
|
3587
3435
|
|
|
3588
|
-
export { map, makeEquivalence,
|
|
3436
|
+
export { map, makeEquivalence, Clock, currentTimeMillis, 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, take2, 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, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
writeSrtSettings2,
|
|
16
16
|
srtStepArgv2,
|
|
17
17
|
srtArgv2
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import"./chunk-
|
|
18
|
+
} from "./chunk-bdd62njv.js";
|
|
19
|
+
import"./chunk-zpp4jg4a.js";
|
|
20
20
|
export {
|
|
21
21
|
compiled2 as compiled,
|
|
22
22
|
harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
isFailure2,
|
|
43
43
|
hasInterrupts,
|
|
44
44
|
makeUnsafe5,
|
|
45
|
-
|
|
45
|
+
make15,
|
|
46
46
|
_await,
|
|
47
47
|
fail5,
|
|
48
48
|
isDoneUnsafe,
|
|
@@ -169,59 +169,13 @@ import {
|
|
|
169
169
|
decodeJsonStringSync,
|
|
170
170
|
encodeUnknownJsonStringSync,
|
|
171
171
|
storable
|
|
172
|
-
} from "./chunk-
|
|
173
|
-
import {
|
|
174
|
-
join,
|
|
175
|
-
interrupt,
|
|
176
|
-
unbounded,
|
|
177
|
-
publishUnsafe,
|
|
178
|
-
unbounded2,
|
|
179
|
-
offer,
|
|
180
|
-
makeUnsafe3,
|
|
181
|
-
make11,
|
|
182
|
-
fromQueue,
|
|
183
|
-
fromPubSub,
|
|
184
|
-
map2,
|
|
185
|
-
filter,
|
|
186
|
-
take2,
|
|
187
|
-
decodeText,
|
|
188
|
-
encodeText,
|
|
189
|
-
splitLines,
|
|
190
|
-
run,
|
|
191
|
-
runCollect,
|
|
192
|
-
runFold,
|
|
193
|
-
runHead,
|
|
194
|
-
runForEach,
|
|
195
|
-
FileSystem,
|
|
196
|
-
Path,
|
|
197
|
-
embeddedFile,
|
|
198
|
-
extractEmbeddedFile,
|
|
199
|
-
optionalEnv,
|
|
200
|
-
operatorConfigHome,
|
|
201
|
-
tempDirectoryScoped,
|
|
202
|
-
harnessesUnsupportedInSrt2,
|
|
203
|
-
harnessesUnsupportedInDocker2,
|
|
204
|
-
compiled2,
|
|
205
|
-
pinnedSrtCommand2,
|
|
206
|
-
pinnedSrtStepCommand2,
|
|
207
|
-
runSrtCli2,
|
|
208
|
-
kitmanCacheDirectory2,
|
|
209
|
-
srtSettings2,
|
|
210
|
-
srtCacheEnvironment2,
|
|
211
|
-
srtInheritedEnv2,
|
|
212
|
-
inheritedEnvironment2,
|
|
213
|
-
withOnlyEnvironment2,
|
|
214
|
-
writeSrtSettings2,
|
|
215
|
-
srtStepArgv2,
|
|
216
|
-
srtArgv2
|
|
217
|
-
} from "./chunk-x1szvb5k.js";
|
|
172
|
+
} from "./chunk-zpp4jg4a.js";
|
|
218
173
|
import {
|
|
219
174
|
Id,
|
|
220
175
|
secretReference,
|
|
221
176
|
secretPlaceholder
|
|
222
|
-
} from "./chunk-
|
|
177
|
+
} from "./chunk-8k6adfg7.js";
|
|
223
178
|
import {
|
|
224
|
-
currentTimeMillis,
|
|
225
179
|
SecureRandom,
|
|
226
180
|
layerWebCrypto,
|
|
227
181
|
layer,
|
|
@@ -300,7 +254,53 @@ import {
|
|
|
300
254
|
checkServicesFile,
|
|
301
255
|
checkServices,
|
|
302
256
|
serviceChecks
|
|
303
|
-
} from "./chunk-
|
|
257
|
+
} from "./chunk-aj2608jz.js";
|
|
258
|
+
import {
|
|
259
|
+
currentTimeMillis,
|
|
260
|
+
join,
|
|
261
|
+
interrupt,
|
|
262
|
+
unbounded,
|
|
263
|
+
publishUnsafe,
|
|
264
|
+
unbounded2,
|
|
265
|
+
offer,
|
|
266
|
+
makeUnsafe3,
|
|
267
|
+
make10,
|
|
268
|
+
fromQueue,
|
|
269
|
+
fromPubSub,
|
|
270
|
+
map2,
|
|
271
|
+
filter,
|
|
272
|
+
take2,
|
|
273
|
+
decodeText,
|
|
274
|
+
encodeText,
|
|
275
|
+
splitLines,
|
|
276
|
+
run,
|
|
277
|
+
runCollect,
|
|
278
|
+
runFold,
|
|
279
|
+
runHead,
|
|
280
|
+
runForEach,
|
|
281
|
+
FileSystem,
|
|
282
|
+
Path,
|
|
283
|
+
embeddedFile,
|
|
284
|
+
extractEmbeddedFile,
|
|
285
|
+
optionalEnv,
|
|
286
|
+
operatorConfigHome,
|
|
287
|
+
tempDirectoryScoped,
|
|
288
|
+
harnessesUnsupportedInSrt2,
|
|
289
|
+
harnessesUnsupportedInDocker2,
|
|
290
|
+
compiled2,
|
|
291
|
+
pinnedSrtCommand2,
|
|
292
|
+
pinnedSrtStepCommand2,
|
|
293
|
+
runSrtCli2,
|
|
294
|
+
kitmanCacheDirectory2,
|
|
295
|
+
srtSettings2,
|
|
296
|
+
srtCacheEnvironment2,
|
|
297
|
+
srtInheritedEnv2,
|
|
298
|
+
inheritedEnvironment2,
|
|
299
|
+
withOnlyEnvironment2,
|
|
300
|
+
writeSrtSettings2,
|
|
301
|
+
srtStepArgv2,
|
|
302
|
+
srtArgv2
|
|
303
|
+
} from "./chunk-bdd62njv.js";
|
|
304
304
|
import {
|
|
305
305
|
writeAgentEnvironmentConfigFile2,
|
|
306
306
|
readManifestSkillPaths2,
|
|
@@ -316,8 +316,8 @@ import {
|
|
|
316
316
|
applyAgentEnvironmentMaterialization2,
|
|
317
317
|
isPathWithin2,
|
|
318
318
|
skillIdentity2
|
|
319
|
-
} from "./chunk-
|
|
320
|
-
import"./chunk-
|
|
319
|
+
} from "./chunk-cn86thbx.js";
|
|
320
|
+
import"./chunk-qkh0dhad.js";
|
|
321
321
|
import {
|
|
322
322
|
egressAllowed,
|
|
323
323
|
writeSecretRegistry,
|
|
@@ -327,7 +327,7 @@ import {
|
|
|
327
327
|
secretFilter2,
|
|
328
328
|
opaqueTunnelRefusal2,
|
|
329
329
|
isOpaqueConnectReason2
|
|
330
|
-
} from "./chunk-
|
|
330
|
+
} from "./chunk-y6njjend.js";
|
|
331
331
|
import {
|
|
332
332
|
sliceBytes2,
|
|
333
333
|
maxLineBytes2,
|
|
@@ -335,23 +335,23 @@ import {
|
|
|
335
335
|
decodedOption2,
|
|
336
336
|
decoded2,
|
|
337
337
|
readOpencode2
|
|
338
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-b009hdm0.js";
|
|
339
339
|
import {
|
|
340
340
|
uploadRunFile,
|
|
341
341
|
programLease,
|
|
342
342
|
rpcRunFiles,
|
|
343
343
|
programHostsEnv,
|
|
344
344
|
undeclaredHostsEnv
|
|
345
|
-
} from "./chunk-
|
|
346
|
-
import"./chunk-
|
|
345
|
+
} from "./chunk-d2bqqd9t.js";
|
|
346
|
+
import"./chunk-s7rhz991.js";
|
|
347
347
|
import {
|
|
348
348
|
nextInt
|
|
349
|
-
} from "./chunk-
|
|
349
|
+
} from "./chunk-bbf0jzsc.js";
|
|
350
350
|
import {
|
|
351
351
|
ChildProcessSpawner,
|
|
352
352
|
make3
|
|
353
|
-
} from "./chunk-
|
|
354
|
-
import"./chunk-
|
|
353
|
+
} from "./chunk-79g5zh2p.js";
|
|
354
|
+
import"./chunk-9yenzg12.js";
|
|
355
355
|
|
|
356
356
|
// packages/core/src/sync-kit.ts
|
|
357
357
|
import { createHash } from "crypto";
|
|
@@ -7346,7 +7346,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7346
7346
|
return {
|
|
7347
7347
|
request: (method, params) => gen(function* () {
|
|
7348
7348
|
const id = ++lastId;
|
|
7349
|
-
const deferred = yield*
|
|
7349
|
+
const deferred = yield* make15();
|
|
7350
7350
|
pending.set(id, deferred);
|
|
7351
7351
|
yield* send({ id, method, params });
|
|
7352
7352
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7489,7 +7489,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
|
7489
7489
|
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7490
7490
|
extendEnv: true,
|
|
7491
7491
|
env: mcp.env,
|
|
7492
|
-
stdin: { stream:
|
|
7492
|
+
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7493
7493
|
stderr: "ignore"
|
|
7494
7494
|
}));
|
|
7495
7495
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7563,7 +7563,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7563
7563
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7564
7564
|
const spawner = yield* ChildProcessSpawner;
|
|
7565
7565
|
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7566
|
-
stdin:
|
|
7566
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7567
7567
|
stdout: "inherit",
|
|
7568
7568
|
stderr: "inherit",
|
|
7569
7569
|
extendEnv: false,
|