@kitman-sh/cli 0.10.83 → 0.10.84
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-999xbcaa.js → chunk-0mgbryyd.js} +9 -9
- package/dist/{chunk-dzthc6th.js → chunk-2k1qfyvx.js} +6 -6
- package/dist/{chunk-xbyd16q3.js → chunk-2tpysgqk.js} +3 -3
- package/dist/{chunk-2fqry6rd.js → chunk-397fax43.js} +185 -33
- package/dist/{chunk-by54dw1n.js → chunk-62565d52.js} +2 -2
- package/dist/{chunk-93vddjpx.js → chunk-76ctrqm6.js} +1 -1
- package/dist/{chunk-adqabkwv.js → chunk-7qbchfkf.js} +9 -9
- package/dist/{chunk-66fhj0c3.js → chunk-92mjxge4.js} +10 -10
- package/dist/{chunk-20rbya07.js → chunk-93b1hdfa.js} +31 -31
- package/dist/{chunk-ptp9p22x.js → chunk-98r2t1s6.js} +18 -18
- package/dist/{chunk-hccw303w.js → chunk-9gztfcvf.js} +7 -7
- package/dist/{chunk-bjexx93x.js → chunk-cakmwaed.js} +2 -2
- package/dist/{chunk-tnqzvx55.js → chunk-d53rckf0.js} +143 -303
- package/dist/{chunk-qnnsy306.js → chunk-ebd5zjnx.js} +2 -2
- package/dist/{chunk-7wag4s6j.js → chunk-hgx1dq68.js} +4 -4
- package/dist/{chunk-xq4k0mgr.js → chunk-jbwk6k6m.js} +60 -60
- package/dist/{chunk-7bsf0fyh.js → chunk-kgdppbdr.js} +6 -1
- package/dist/{chunk-2rpwpzt5.js → chunk-kp01bv8f.js} +25 -25
- package/dist/{chunk-1chta572.js → chunk-krh0gek1.js} +17 -17
- package/dist/{chunk-mr30hj39.js → chunk-kxtmk59a.js} +5 -5
- package/dist/{chunk-72232jhj.js → chunk-ky974pcr.js} +4 -4
- package/dist/{chunk-292vjjdz.js → chunk-tzz4fv17.js} +1 -1
- package/dist/{chunk-6kt28g8r.js → chunk-ynn6jk0w.js} +62 -62
- package/dist/{chunk-smnx6fad.js → chunk-ze0f51ds.js} +11 -11
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
make11,
|
|
4
|
+
runForEach,
|
|
5
|
+
compiled2
|
|
6
|
+
} from "./chunk-397fax43.js";
|
|
2
7
|
import {
|
|
3
8
|
getOrUndefined,
|
|
4
9
|
liftThrowable,
|
|
@@ -22,21 +27,16 @@ import {
|
|
|
22
27
|
NullOr,
|
|
23
28
|
Finite,
|
|
24
29
|
encodeUnknownJsonStringSync
|
|
25
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-jbwk6k6m.js";
|
|
26
31
|
import {
|
|
27
32
|
isNumber,
|
|
28
33
|
isJsonObject,
|
|
29
34
|
isString
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
make10,
|
|
33
|
-
runForEach,
|
|
34
|
-
compiled2
|
|
35
|
-
} from "./chunk-2fqry6rd.js";
|
|
35
|
+
} from "./chunk-tzz4fv17.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
38
|
make3
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-cakmwaed.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -170,7 +170,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
|
|
|
170
170
|
const spawner = yield* ChildProcessSpawner;
|
|
171
171
|
const [command, ...args] = opencodeReaderCommand();
|
|
172
172
|
const handle = yield* spawner.spawn(make3(command, args, {
|
|
173
|
-
stdin:
|
|
173
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
174
174
|
stderr: "ignore",
|
|
175
175
|
extendEnv: false,
|
|
176
176
|
env: {},
|
|
@@ -6,7 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-jbwk6k6m.js";
|
|
10
|
+
import {
|
|
11
|
+
runForEach
|
|
12
|
+
} from "./chunk-397fax43.js";
|
|
10
13
|
import {
|
|
11
14
|
WebSocketConstructor,
|
|
12
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -16,16 +19,13 @@ import {
|
|
|
16
19
|
RunnerReplicaRpcs,
|
|
17
20
|
RunnerRunFileRpcs,
|
|
18
21
|
ProgramRpcs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
runForEach
|
|
22
|
-
} from "./chunk-2fqry6rd.js";
|
|
22
|
+
} from "./chunk-d53rckf0.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
25
|
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-98r2t1s6.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-jbwk6k6m.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-397fax43.js";
|
|
32
32
|
import {
|
|
33
33
|
digestSha256,
|
|
34
34
|
digestSha512,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
get2,
|
|
39
39
|
layer4,
|
|
40
40
|
KitDigest
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-d53rckf0.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|
|
@@ -34,8 +34,11 @@ import {
|
|
|
34
34
|
getOrUndefined,
|
|
35
35
|
map4,
|
|
36
36
|
Service2,
|
|
37
|
-
|
|
37
|
+
add,
|
|
38
|
+
get4,
|
|
38
39
|
Reference,
|
|
40
|
+
fromInputUnsafe,
|
|
41
|
+
isFinite,
|
|
39
42
|
normalize,
|
|
40
43
|
succeed,
|
|
41
44
|
fail3,
|
|
@@ -76,13 +79,12 @@ import {
|
|
|
76
79
|
fiberRunIn,
|
|
77
80
|
makeLatchUnsafe,
|
|
78
81
|
makeLatch,
|
|
79
|
-
ClockRef,
|
|
80
|
-
currentTimeMillis2,
|
|
81
82
|
succeed3,
|
|
82
83
|
failCause2,
|
|
83
84
|
fail4,
|
|
84
85
|
interrupt2,
|
|
85
86
|
void_2,
|
|
87
|
+
isSuccess2,
|
|
86
88
|
isFailure2,
|
|
87
89
|
asVoidAll,
|
|
88
90
|
makeUnsafe5,
|
|
@@ -154,12 +156,14 @@ import {
|
|
|
154
156
|
tapError2,
|
|
155
157
|
ignoreCause,
|
|
156
158
|
orElseSucceed,
|
|
159
|
+
sleep,
|
|
157
160
|
raceFirst,
|
|
158
161
|
when,
|
|
159
162
|
matchCauseEffect,
|
|
160
163
|
context,
|
|
161
164
|
contextWith,
|
|
162
165
|
provideContext2,
|
|
166
|
+
scope2,
|
|
163
167
|
scoped,
|
|
164
168
|
scopedWith,
|
|
165
169
|
ensuring2,
|
|
@@ -169,6 +173,7 @@ import {
|
|
|
169
173
|
interrupt3,
|
|
170
174
|
onInterrupt,
|
|
171
175
|
uninterruptible,
|
|
176
|
+
uninterruptibleMask2,
|
|
172
177
|
forever,
|
|
173
178
|
forkChild,
|
|
174
179
|
forkIn,
|
|
@@ -190,11 +195,11 @@ import {
|
|
|
190
195
|
toEncoded,
|
|
191
196
|
decodeUnknownEffect,
|
|
192
197
|
SchemaError,
|
|
193
|
-
|
|
198
|
+
make17,
|
|
194
199
|
String4,
|
|
195
200
|
toCodecStringTree,
|
|
196
201
|
encodeUnknownJsonStringSync
|
|
197
|
-
} from "./chunk-
|
|
202
|
+
} from "./chunk-jbwk6k6m.js";
|
|
198
203
|
|
|
199
204
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
200
205
|
var headUnsafe = (self) => {
|
|
@@ -243,9 +248,14 @@ var makeEquivalence = (equivalence) => {
|
|
|
243
248
|
return (self, that) => is(self, that) && is(that, self);
|
|
244
249
|
};
|
|
245
250
|
|
|
246
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/
|
|
247
|
-
var
|
|
248
|
-
var
|
|
251
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
252
|
+
var BigInt2 = globalThis.BigInt;
|
|
253
|
+
var toNumber = (b) => {
|
|
254
|
+
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
255
|
+
return none();
|
|
256
|
+
}
|
|
257
|
+
return some(Number(b));
|
|
258
|
+
};
|
|
249
259
|
|
|
250
260
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
251
261
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
@@ -367,7 +377,7 @@ var fromStringUnsafe = (input) => {
|
|
|
367
377
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
368
378
|
return make(value);
|
|
369
379
|
};
|
|
370
|
-
var
|
|
380
|
+
var fromInputUnsafe2 = (input) => {
|
|
371
381
|
switch (typeof input) {
|
|
372
382
|
case "bigint":
|
|
373
383
|
if (input < bigint0)
|
|
@@ -380,7 +390,7 @@ var fromInputUnsafe = (input) => {
|
|
|
380
390
|
}
|
|
381
391
|
return invalid(`unsupported input ${input}`);
|
|
382
392
|
};
|
|
383
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
393
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
384
394
|
|
|
385
395
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
386
396
|
var join = fiberJoin;
|
|
@@ -1306,7 +1316,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1306
1316
|
return false;
|
|
1307
1317
|
});
|
|
1308
1318
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1309
|
-
const localScope =
|
|
1319
|
+
const localScope = get4(services, Scope);
|
|
1310
1320
|
const scope = forkUnsafe(self.scope);
|
|
1311
1321
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1312
1322
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -2763,16 +2773,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2763
2773
|
}), catchDone(() => endVoid)));
|
|
2764
2774
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2765
2775
|
|
|
2776
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/rcRef.js
|
|
2777
|
+
var TypeId8 = "~effect/RcRef";
|
|
2778
|
+
var stateEmpty = {
|
|
2779
|
+
_tag: "Empty"
|
|
2780
|
+
};
|
|
2781
|
+
var stateClosed = {
|
|
2782
|
+
_tag: "Closed"
|
|
2783
|
+
};
|
|
2784
|
+
var variance2 = {
|
|
2785
|
+
_A: identity,
|
|
2786
|
+
_E: identity
|
|
2787
|
+
};
|
|
2788
|
+
|
|
2789
|
+
class RcRefImpl {
|
|
2790
|
+
[TypeId8] = variance2;
|
|
2791
|
+
pipe() {
|
|
2792
|
+
return pipeArguments(this, arguments);
|
|
2793
|
+
}
|
|
2794
|
+
state = stateEmpty;
|
|
2795
|
+
acquire;
|
|
2796
|
+
context;
|
|
2797
|
+
scope;
|
|
2798
|
+
idleTimeToLive;
|
|
2799
|
+
constructor(acquire, context, scope, idleTimeToLive) {
|
|
2800
|
+
this.acquire = acquire;
|
|
2801
|
+
this.context = context;
|
|
2802
|
+
this.scope = scope;
|
|
2803
|
+
this.idleTimeToLive = idleTimeToLive;
|
|
2804
|
+
}
|
|
2805
|
+
}
|
|
2806
|
+
var make6 = (options) => withFiber2((fiber) => {
|
|
2807
|
+
const context = fiber.context;
|
|
2808
|
+
const scope = get4(context, Scope);
|
|
2809
|
+
const ref = new RcRefImpl(options.acquire, context, scope, options.idleTimeToLive !== undefined ? fromInputUnsafe(options.idleTimeToLive) : undefined);
|
|
2810
|
+
return as(addFinalizerExit(scope, () => {
|
|
2811
|
+
const state = ref.state;
|
|
2812
|
+
ref.state = stateClosed;
|
|
2813
|
+
if (state._tag === "Acquired")
|
|
2814
|
+
return close(state.scope, void_2);
|
|
2815
|
+
if (state._tag === "Acquiring")
|
|
2816
|
+
return interrupt(state.fiber);
|
|
2817
|
+
return void_3;
|
|
2818
|
+
}), ref);
|
|
2819
|
+
});
|
|
2820
|
+
var getState = (self, restore) => {
|
|
2821
|
+
switch (self.state._tag) {
|
|
2822
|
+
case "Closed": {
|
|
2823
|
+
return interrupt3;
|
|
2824
|
+
}
|
|
2825
|
+
case "Acquired": {
|
|
2826
|
+
const state = self.state;
|
|
2827
|
+
state.refCount++;
|
|
2828
|
+
return state.fiber ? as(interrupt(state.fiber), state) : succeed6(state);
|
|
2829
|
+
}
|
|
2830
|
+
case "Acquiring": {
|
|
2831
|
+
const state = self.state;
|
|
2832
|
+
state.awaiters++;
|
|
2833
|
+
return awaitAcquiring(self, state, restore);
|
|
2834
|
+
}
|
|
2835
|
+
case "Empty": {
|
|
2836
|
+
const acquiring = {
|
|
2837
|
+
_tag: "Acquiring",
|
|
2838
|
+
fiber: undefined,
|
|
2839
|
+
awaiters: 1,
|
|
2840
|
+
acquired: undefined
|
|
2841
|
+
};
|
|
2842
|
+
self.state = acquiring;
|
|
2843
|
+
const scope = makeUnsafe6();
|
|
2844
|
+
const acquire = provideContext2(self.acquire, add(self.context, Scope, scope)).pipe(flatMap3((value) => {
|
|
2845
|
+
if (self.state !== acquiring) {
|
|
2846
|
+
return interrupt3;
|
|
2847
|
+
}
|
|
2848
|
+
const state = {
|
|
2849
|
+
_tag: "Acquired",
|
|
2850
|
+
value,
|
|
2851
|
+
scope,
|
|
2852
|
+
fiber: undefined,
|
|
2853
|
+
refCount: acquiring.awaiters,
|
|
2854
|
+
invalidated: false
|
|
2855
|
+
};
|
|
2856
|
+
self.state = state;
|
|
2857
|
+
acquiring.acquired = state;
|
|
2858
|
+
return succeed6(state);
|
|
2859
|
+
}), onExit((exit) => {
|
|
2860
|
+
if (isSuccess2(exit))
|
|
2861
|
+
return void_3;
|
|
2862
|
+
if (self.state === acquiring)
|
|
2863
|
+
self.state = stateEmpty;
|
|
2864
|
+
return close(scope, exit);
|
|
2865
|
+
}));
|
|
2866
|
+
acquiring.fiber = runForkWith(getCurrent().context)(acquire);
|
|
2867
|
+
return awaitAcquiring(self, acquiring, restore);
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
};
|
|
2871
|
+
var awaitAcquiring = (self, acquiring, restore) => onExit(restore(join(acquiring.fiber)), (exit) => {
|
|
2872
|
+
const acquired = acquiring.acquired;
|
|
2873
|
+
if (acquired !== undefined) {
|
|
2874
|
+
return isFailure2(exit) ? release(self, acquired) : void_3;
|
|
2875
|
+
}
|
|
2876
|
+
if (--acquiring.awaiters > 0 || self.state !== acquiring)
|
|
2877
|
+
return void_3;
|
|
2878
|
+
self.state = stateEmpty;
|
|
2879
|
+
return interrupt(acquiring.fiber);
|
|
2880
|
+
});
|
|
2881
|
+
var get2 = (self_) => {
|
|
2882
|
+
const self = self_;
|
|
2883
|
+
return uninterruptibleMask2((restore) => flatMap3(scope2, (scope) => flatMap3(getState(self, restore), (state) => as(addFinalizerExit(scope, () => release(self, state)), state.value))));
|
|
2884
|
+
};
|
|
2885
|
+
var release = (self, state) => {
|
|
2886
|
+
state.refCount--;
|
|
2887
|
+
if (state.refCount > 0) {
|
|
2888
|
+
return void_3;
|
|
2889
|
+
}
|
|
2890
|
+
const idleTimeToLive = self.idleTimeToLive;
|
|
2891
|
+
if (idleTimeToLive === undefined || state.invalidated) {
|
|
2892
|
+
if (self.state === state) {
|
|
2893
|
+
self.state = stateEmpty;
|
|
2894
|
+
}
|
|
2895
|
+
return close(state.scope, void_2);
|
|
2896
|
+
} else if (!isFinite(idleTimeToLive)) {
|
|
2897
|
+
return void_3;
|
|
2898
|
+
}
|
|
2899
|
+
state.fiber = uninterruptibleMask2((restore) => flatMap3(restore(sleep(idleTimeToLive)), () => {
|
|
2900
|
+
if (self.state === state && state.refCount === 0) {
|
|
2901
|
+
self.state = stateEmpty;
|
|
2902
|
+
return ignoreCause(close(state.scope, void_2), {
|
|
2903
|
+
log: "Unhandled",
|
|
2904
|
+
message: "Unhandled error in RcRef finalizer"
|
|
2905
|
+
});
|
|
2906
|
+
}
|
|
2907
|
+
return void_3;
|
|
2908
|
+
})).pipe(ensuring2(sync2(() => {
|
|
2909
|
+
state.fiber = undefined;
|
|
2910
|
+
})), runForkWith(self.context), runIn(self.scope));
|
|
2911
|
+
return void_3;
|
|
2912
|
+
};
|
|
2913
|
+
|
|
2914
|
+
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2915
|
+
var make10 = make6;
|
|
2916
|
+
var get3 = get2;
|
|
2917
|
+
|
|
2766
2918
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2767
|
-
var
|
|
2768
|
-
var isStream = (u) => hasProperty(u,
|
|
2919
|
+
var TypeId9 = "~effect/Stream";
|
|
2920
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2769
2921
|
var fromChannel2 = fromChannel3;
|
|
2770
2922
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2771
2923
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2772
2924
|
var toChannel2 = (stream) => stream.channel;
|
|
2773
2925
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2774
2926
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2775
|
-
var
|
|
2927
|
+
var make11 = (...values) => fromArray2(values);
|
|
2776
2928
|
var suspend = (stream) => {
|
|
2777
2929
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2778
2930
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2935,11 +3087,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
2935
3087
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
2936
3088
|
|
|
2937
3089
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
2938
|
-
var
|
|
3090
|
+
var TypeId10 = "~effect/FileSystem";
|
|
2939
3091
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
2940
|
-
var
|
|
3092
|
+
var make12 = (impl) => FileSystem.of({
|
|
2941
3093
|
...impl,
|
|
2942
|
-
[
|
|
3094
|
+
[TypeId10]: TypeId10,
|
|
2943
3095
|
glob: make2(impl),
|
|
2944
3096
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
2945
3097
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -2955,11 +3107,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
2955
3107
|
const file = yield* impl.open(path, {
|
|
2956
3108
|
flag: "r"
|
|
2957
3109
|
});
|
|
2958
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3110
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
2959
3111
|
if (offset) {
|
|
2960
3112
|
yield* file.seek(offset, "start");
|
|
2961
3113
|
}
|
|
2962
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3114
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
2963
3115
|
let totalBytesRead = BigInt(0);
|
|
2964
3116
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
2965
3117
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -2995,11 +3147,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
2995
3147
|
}
|
|
2996
3148
|
|
|
2997
3149
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
2998
|
-
var
|
|
3150
|
+
var TypeId11 = "~effect/Path";
|
|
2999
3151
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3000
|
-
var
|
|
3152
|
+
var make13 = (impl) => Path.of({
|
|
3001
3153
|
...impl,
|
|
3002
|
-
[
|
|
3154
|
+
[TypeId11]: TypeId11,
|
|
3003
3155
|
resolveWithin(root, input) {
|
|
3004
3156
|
if (impl.parse(input).root !== "")
|
|
3005
3157
|
return none();
|
|
@@ -3072,7 +3224,7 @@ function makeProvider(load, mapInput) {
|
|
|
3072
3224
|
function makeSource(get, transform) {
|
|
3073
3225
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3074
3226
|
}
|
|
3075
|
-
function
|
|
3227
|
+
function make7(get) {
|
|
3076
3228
|
return makeSource(get, identityPath);
|
|
3077
3229
|
}
|
|
3078
3230
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3081,7 +3233,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3081
3233
|
function fromEnvRecord(env, options) {
|
|
3082
3234
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3083
3235
|
const trie = buildEnvTrie(env);
|
|
3084
|
-
return
|
|
3236
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3085
3237
|
}
|
|
3086
3238
|
function fromEnv(options) {
|
|
3087
3239
|
const env = options?.env ?? {
|
|
@@ -3134,7 +3286,7 @@ function trieNodeAt(root, path) {
|
|
|
3134
3286
|
}
|
|
3135
3287
|
|
|
3136
3288
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3137
|
-
var
|
|
3289
|
+
var TypeId12 = "~effect/Config";
|
|
3138
3290
|
class ConfigError {
|
|
3139
3291
|
_tag = "ConfigError";
|
|
3140
3292
|
name = "ConfigError";
|
|
@@ -3156,14 +3308,14 @@ var Proto2 = {
|
|
|
3156
3308
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3157
3309
|
}
|
|
3158
3310
|
}),
|
|
3159
|
-
[
|
|
3311
|
+
[TypeId12]: TypeId12,
|
|
3160
3312
|
toJSON() {
|
|
3161
3313
|
return {
|
|
3162
3314
|
_id: "Config"
|
|
3163
3315
|
};
|
|
3164
3316
|
}
|
|
3165
3317
|
};
|
|
3166
|
-
function
|
|
3318
|
+
function make14(evaluator) {
|
|
3167
3319
|
const self = Object.create(Proto2);
|
|
3168
3320
|
self.evaluator = evaluator;
|
|
3169
3321
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3171,14 +3323,14 @@ function make7(evaluator) {
|
|
|
3171
3323
|
}
|
|
3172
3324
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3173
3325
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3174
|
-
return
|
|
3326
|
+
return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3175
3327
|
});
|
|
3176
3328
|
function all(arg) {
|
|
3177
3329
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3178
|
-
return
|
|
3330
|
+
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));
|
|
3179
3331
|
}
|
|
3180
3332
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3181
|
-
return
|
|
3333
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3182
3334
|
});
|
|
3183
3335
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3184
3336
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3295,9 +3447,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3295
3447
|
function schema(codec, path) {
|
|
3296
3448
|
const codecStringTree = toCodecStringTree(codec);
|
|
3297
3449
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3298
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3450
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3299
3451
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3300
|
-
return
|
|
3452
|
+
return make14((provider, pathPrefix) => {
|
|
3301
3453
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3302
3454
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3303
3455
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3409,4 +3561,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3409
3561
|
...argv
|
|
3410
3562
|
];
|
|
3411
3563
|
|
|
3412
|
-
export { map, makeEquivalence,
|
|
3564
|
+
export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, 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 };
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-jbwk6k6m.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-kgdppbdr.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path,
|
|
5
|
+
optionalEnv
|
|
6
|
+
} from "./chunk-397fax43.js";
|
|
2
7
|
import {
|
|
3
8
|
Reference,
|
|
4
9
|
TaggedError,
|
|
@@ -23,24 +28,19 @@ import {
|
|
|
23
28
|
fnUntraced,
|
|
24
29
|
encodePrettyJsonString,
|
|
25
30
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-jbwk6k6m.js";
|
|
27
32
|
import {
|
|
28
33
|
isJsonObject,
|
|
29
34
|
isString
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
FileSystem,
|
|
33
|
-
Path,
|
|
34
|
-
optionalEnv
|
|
35
|
-
} from "./chunk-2fqry6rd.js";
|
|
35
|
+
} from "./chunk-tzz4fv17.js";
|
|
36
36
|
import {
|
|
37
37
|
AgentHarnessIds,
|
|
38
38
|
sha2562,
|
|
39
39
|
runCommand2
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-d53rckf0.js";
|
|
41
41
|
import {
|
|
42
42
|
NpmRegistry
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-2tpysgqk.js";
|
|
44
44
|
|
|
45
45
|
// packages/agent-runtime/src/config-convergence.ts
|
|
46
46
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -75,8 +75,16 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-jbwk6k6m.js";
|
|
79
79
|
import {
|
|
80
|
+
runForEach,
|
|
81
|
+
FileSystem
|
|
82
|
+
} from "./chunk-397fax43.js";
|
|
83
|
+
import {
|
|
84
|
+
guard
|
|
85
|
+
} from "./chunk-kgdppbdr.js";
|
|
86
|
+
import {
|
|
87
|
+
currentTimeMillis,
|
|
80
88
|
WebCrypto,
|
|
81
89
|
SafeJson,
|
|
82
90
|
AgentSandboxNetwork,
|
|
@@ -101,15 +109,7 @@ import {
|
|
|
101
109
|
KitDigest,
|
|
102
110
|
KitSetup,
|
|
103
111
|
RunnerRpcError
|
|
104
|
-
} from "./chunk-
|
|
105
|
-
import {
|
|
106
|
-
currentTimeMillis,
|
|
107
|
-
runForEach,
|
|
108
|
-
FileSystem
|
|
109
|
-
} from "./chunk-2fqry6rd.js";
|
|
110
|
-
import {
|
|
111
|
-
guard
|
|
112
|
-
} from "./chunk-7bsf0fyh.js";
|
|
112
|
+
} from "./chunk-d53rckf0.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");
|