@kitman-sh/cli 0.32.0 → 0.34.0
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-nb6h112w.js → chunk-0m8ktgmz.js} +360 -187
- package/dist/{chunk-awx0zevr.js → chunk-2a40hhfz.js} +4 -4
- package/dist/{chunk-ah59jrtr.js → chunk-2gz59jcx.js} +1 -1
- package/dist/{chunk-z0gqrc8c.js → chunk-337drcr7.js} +35 -184
- package/dist/{chunk-r3mjxsmn.js → chunk-3jxdtkwd.js} +20 -20
- package/dist/{chunk-q8e58p57.js → chunk-6387vj9z.js} +2 -2
- package/dist/{chunk-4qrb09w4.js → chunk-6hxtg6eb.js} +3 -3
- package/dist/{chunk-rnm5ybw4.js → chunk-89ygm64f.js} +4 -4
- package/dist/{chunk-4tzzmrz2.js → chunk-8p5csa63.js} +64 -64
- package/dist/{chunk-5hp8ams4.js → chunk-9da9b7ys.js} +19 -19
- package/dist/{chunk-6e6t0f8y.js → chunk-a230abnk.js} +2 -2
- package/dist/{chunk-af8kftyw.js → chunk-d64j8v9n.js} +7 -7
- package/dist/{chunk-x4d4t28n.js → chunk-djzfaqaq.js} +352 -29
- package/dist/{chunk-61dmxexa.js → chunk-ew07nt2d.js} +60 -102
- package/dist/{chunk-c8eg05nh.js → chunk-fr0qseam.js} +4 -4
- package/dist/{chunk-56gs4z53.js → chunk-g5b61tek.js} +5 -5
- package/dist/{chunk-er0e8d8v.js → chunk-gy7nygep.js} +60 -14
- package/dist/{chunk-1hgsf81a.js → chunk-haq904fk.js} +1 -1
- package/dist/{chunk-qqb6djs7.js → chunk-hwjp28rh.js} +2 -2
- package/dist/{chunk-acmyagwp.js → chunk-phx3zffc.js} +8 -8
- package/dist/{chunk-rbpn35g5.js → chunk-qvpkwnky.js} +1 -1
- package/dist/{chunk-3cneth9k.js → chunk-r90j80q5.js} +9 -9
- package/dist/{chunk-abyssa8p.js → chunk-swc0ctf2.js} +3 -3
- package/dist/{chunk-a0bjjbhg.js → chunk-w8hf2etp.js} +81 -49
- package/dist/{chunk-1an3xh3b.js → chunk-wkbsbxp8.js} +6 -6
- package/dist/{chunk-znhjs0t6.js → chunk-y7bth30s.js} +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ew07nt2d.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-337drcr7.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-0m8ktgmz.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-swc0ctf2.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -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,
|
|
@@ -88,7 +85,6 @@ import {
|
|
|
88
85
|
fail4,
|
|
89
86
|
interrupt2,
|
|
90
87
|
void_2,
|
|
91
|
-
isSuccess2,
|
|
92
88
|
isFailure2,
|
|
93
89
|
asVoidAll,
|
|
94
90
|
makeUnsafe5,
|
|
@@ -160,14 +156,12 @@ import {
|
|
|
160
156
|
tapError2,
|
|
161
157
|
ignoreCause,
|
|
162
158
|
orElseSucceed,
|
|
163
|
-
sleep,
|
|
164
159
|
raceFirst,
|
|
165
160
|
when,
|
|
166
161
|
matchCauseEffect,
|
|
167
162
|
context,
|
|
168
163
|
contextWith,
|
|
169
164
|
provideContext2,
|
|
170
|
-
scope2,
|
|
171
165
|
scoped,
|
|
172
166
|
scopedWith,
|
|
173
167
|
acquireRelease,
|
|
@@ -178,7 +172,6 @@ import {
|
|
|
178
172
|
interrupt3,
|
|
179
173
|
onInterrupt,
|
|
180
174
|
uninterruptible,
|
|
181
|
-
uninterruptibleMask2,
|
|
182
175
|
forever,
|
|
183
176
|
forkChild,
|
|
184
177
|
forkIn,
|
|
@@ -201,11 +194,11 @@ import {
|
|
|
201
194
|
toEncoded,
|
|
202
195
|
decodeUnknownEffect,
|
|
203
196
|
SchemaError,
|
|
204
|
-
|
|
197
|
+
make16,
|
|
205
198
|
String4,
|
|
206
199
|
toCodecStringTree,
|
|
207
200
|
encodeUnknownJsonStringSync
|
|
208
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-ew07nt2d.js";
|
|
209
202
|
|
|
210
203
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
211
204
|
var headUnsafe = (self) => {
|
|
@@ -378,7 +371,7 @@ var fromStringUnsafe = (input) => {
|
|
|
378
371
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
379
372
|
return make(value);
|
|
380
373
|
};
|
|
381
|
-
var
|
|
374
|
+
var fromInputUnsafe = (input) => {
|
|
382
375
|
switch (typeof input) {
|
|
383
376
|
case "bigint":
|
|
384
377
|
if (input < bigint0)
|
|
@@ -391,7 +384,7 @@ var fromInputUnsafe2 = (input) => {
|
|
|
391
384
|
}
|
|
392
385
|
return invalid(`unsupported input ${input}`);
|
|
393
386
|
};
|
|
394
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
387
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe(value) : fromNumber(value);
|
|
395
388
|
|
|
396
389
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
397
390
|
var join = fiberJoin;
|
|
@@ -1137,7 +1130,7 @@ var MutableRefProto = {
|
|
|
1137
1130
|
};
|
|
1138
1131
|
}
|
|
1139
1132
|
};
|
|
1140
|
-
var
|
|
1133
|
+
var make8 = (value) => {
|
|
1141
1134
|
const ref = Object.create(MutableRefProto);
|
|
1142
1135
|
ref.current = value;
|
|
1143
1136
|
return ref;
|
|
@@ -1298,7 +1291,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1298
1291
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1299
1292
|
var TypeId3 = "~effect/PubSub";
|
|
1300
1293
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1301
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1294
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1302
1295
|
var unbounded = (options) => make5({
|
|
1303
1296
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1304
1297
|
strategy: () => new DroppingStrategy
|
|
@@ -1317,7 +1310,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1317
1310
|
return false;
|
|
1318
1311
|
});
|
|
1319
1312
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1320
|
-
const localScope =
|
|
1313
|
+
const localScope = get3(services, Scope);
|
|
1321
1314
|
const scope = forkUnsafe(self.scope);
|
|
1322
1315
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1323
1316
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1393,7 +1386,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1393
1386
|
subscribers.delete(subscription);
|
|
1394
1387
|
}
|
|
1395
1388
|
};
|
|
1396
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1389
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1397
1390
|
class UnboundedPubSub {
|
|
1398
1391
|
publisherHead = {
|
|
1399
1392
|
value: AbsentValue,
|
|
@@ -1810,7 +1803,7 @@ var QueueProto = {
|
|
|
1810
1803
|
};
|
|
1811
1804
|
}
|
|
1812
1805
|
};
|
|
1813
|
-
var
|
|
1806
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1814
1807
|
const self = Object.create(QueueProto);
|
|
1815
1808
|
self.dispatcher = fiber.currentDispatcher;
|
|
1816
1809
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1825,14 +1818,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1825
1818
|
};
|
|
1826
1819
|
return succeed2(self);
|
|
1827
1820
|
});
|
|
1828
|
-
var bounded = (capacity) =>
|
|
1821
|
+
var bounded = (capacity) => make9({
|
|
1829
1822
|
capacity
|
|
1830
1823
|
});
|
|
1831
|
-
var sliding = (capacity) =>
|
|
1824
|
+
var sliding = (capacity) => make9({
|
|
1832
1825
|
capacity,
|
|
1833
1826
|
strategy: "sliding"
|
|
1834
1827
|
});
|
|
1835
|
-
var unbounded2 = () =>
|
|
1828
|
+
var unbounded2 = () => make9();
|
|
1836
1829
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1837
1830
|
var offerUnsafe = (self, message) => {
|
|
1838
1831
|
if (self.state._tag !== "Open") {
|
|
@@ -2258,7 +2251,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2258
2251
|
return onError(pull, onCause);
|
|
2259
2252
|
}));
|
|
2260
2253
|
var toTransform = (channel) => channel.transform;
|
|
2261
|
-
var asyncQueue = (scope, f, options) =>
|
|
2254
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2262
2255
|
capacity: options?.bufferSize,
|
|
2263
2256
|
strategy: options?.strategy
|
|
2264
2257
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2299,7 +2292,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2299
2292
|
}));
|
|
2300
2293
|
var readableStreamToPullUnsafe = (options) => {
|
|
2301
2294
|
const reader = options.readable.getReader();
|
|
2302
|
-
const exit = options.exit ??
|
|
2295
|
+
const exit = options.exit ?? make8(undefined);
|
|
2303
2296
|
const pull = suspend3(() => {
|
|
2304
2297
|
if (exit.current)
|
|
2305
2298
|
return exit.current;
|
|
@@ -2760,7 +2753,7 @@ var runFold2 = /* @__PURE__ */ dual(3, (self, initial, f) => suspend3(() => {
|
|
|
2760
2753
|
var toPull2 = /* @__PURE__ */ fnUntraced(function* (self) {
|
|
2761
2754
|
const semaphore = makeUnsafe3(1);
|
|
2762
2755
|
const context2 = yield* context();
|
|
2763
|
-
const scope =
|
|
2756
|
+
const scope = get3(context2, Scope);
|
|
2764
2757
|
const pull = yield* toTransform(self)(done(), scope);
|
|
2765
2758
|
return pull.pipe(provideContext2(context2), semaphore.withPermits(1));
|
|
2766
2759
|
}, /* @__PURE__ */ catchCause2((cause) => succeed6(failCause3(cause))));
|
|
@@ -2821,151 +2814,9 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2821
2814
|
}), catchDone(() => endVoid)));
|
|
2822
2815
|
var unwrap3 = (effect) => fromChannel(unwrap2(map9(effect, toChannel)));
|
|
2823
2816
|
|
|
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 make9 = make6;
|
|
2964
|
-
var get3 = get2;
|
|
2965
|
-
|
|
2966
2817
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2967
|
-
var
|
|
2968
|
-
var isStream = (u) => hasProperty(u,
|
|
2818
|
+
var TypeId8 = "~effect/Stream";
|
|
2819
|
+
var isStream = (u) => hasProperty(u, TypeId8);
|
|
2969
2820
|
var fromChannel2 = fromChannel3;
|
|
2970
2821
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2971
2822
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
@@ -3171,11 +3022,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
3171
3022
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map9(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
3172
3023
|
|
|
3173
3024
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3174
|
-
var
|
|
3025
|
+
var TypeId9 = "~effect/FileSystem";
|
|
3175
3026
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3176
3027
|
var make11 = (impl) => FileSystem.of({
|
|
3177
3028
|
...impl,
|
|
3178
|
-
[
|
|
3029
|
+
[TypeId9]: TypeId9,
|
|
3179
3030
|
glob: make2(impl),
|
|
3180
3031
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
3181
3032
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -3191,11 +3042,11 @@ var make11 = (impl) => FileSystem.of({
|
|
|
3191
3042
|
const file = yield* impl.open(path, {
|
|
3192
3043
|
flag: "r"
|
|
3193
3044
|
});
|
|
3194
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3045
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe(options.offset);
|
|
3195
3046
|
if (offset) {
|
|
3196
3047
|
yield* file.seek(offset, "start");
|
|
3197
3048
|
}
|
|
3198
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3049
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe(options.bytesToRead);
|
|
3199
3050
|
let totalBytesRead = BigInt(0);
|
|
3200
3051
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
3201
3052
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -3231,11 +3082,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3231
3082
|
}
|
|
3232
3083
|
|
|
3233
3084
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3234
|
-
var
|
|
3085
|
+
var TypeId10 = "~effect/Path";
|
|
3235
3086
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3236
3087
|
var make12 = (impl) => Path.of({
|
|
3237
3088
|
...impl,
|
|
3238
|
-
[
|
|
3089
|
+
[TypeId10]: TypeId10,
|
|
3239
3090
|
resolveWithin(root, input) {
|
|
3240
3091
|
if (impl.parse(input).root !== "")
|
|
3241
3092
|
return none();
|
|
@@ -3308,7 +3159,7 @@ function makeProvider(load, mapInput) {
|
|
|
3308
3159
|
function makeSource(get, transform) {
|
|
3309
3160
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3310
3161
|
}
|
|
3311
|
-
function
|
|
3162
|
+
function make6(get) {
|
|
3312
3163
|
return makeSource(get, identityPath);
|
|
3313
3164
|
}
|
|
3314
3165
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3317,7 +3168,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3317
3168
|
function fromEnvRecord(env, options) {
|
|
3318
3169
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3319
3170
|
const trie = buildEnvTrie(env);
|
|
3320
|
-
return
|
|
3171
|
+
return make6((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3321
3172
|
}
|
|
3322
3173
|
function fromEnv(options) {
|
|
3323
3174
|
const env = options?.env ?? {
|
|
@@ -3370,7 +3221,7 @@ function trieNodeAt(root, path) {
|
|
|
3370
3221
|
}
|
|
3371
3222
|
|
|
3372
3223
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3373
|
-
var
|
|
3224
|
+
var TypeId11 = "~effect/Config";
|
|
3374
3225
|
class ConfigError {
|
|
3375
3226
|
_tag = "ConfigError";
|
|
3376
3227
|
name = "ConfigError";
|
|
@@ -3392,14 +3243,14 @@ var Proto2 = {
|
|
|
3392
3243
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3393
3244
|
}
|
|
3394
3245
|
}),
|
|
3395
|
-
[
|
|
3246
|
+
[TypeId11]: TypeId11,
|
|
3396
3247
|
toJSON() {
|
|
3397
3248
|
return {
|
|
3398
3249
|
_id: "Config"
|
|
3399
3250
|
};
|
|
3400
3251
|
}
|
|
3401
3252
|
};
|
|
3402
|
-
function
|
|
3253
|
+
function make7(evaluator) {
|
|
3403
3254
|
const self = Object.create(Proto2);
|
|
3404
3255
|
self.evaluator = evaluator;
|
|
3405
3256
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3407,14 +3258,14 @@ function make14(evaluator) {
|
|
|
3407
3258
|
}
|
|
3408
3259
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3409
3260
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3410
|
-
return
|
|
3261
|
+
return make7((provider, pathPrefix) => map9(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3411
3262
|
});
|
|
3412
3263
|
function all(arg) {
|
|
3413
3264
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3414
|
-
return
|
|
3265
|
+
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));
|
|
3415
3266
|
}
|
|
3416
3267
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3417
|
-
return
|
|
3268
|
+
return make7((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3418
3269
|
});
|
|
3419
3270
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3420
3271
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3531,9 +3382,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3531
3382
|
function schema(codec, path) {
|
|
3532
3383
|
const codecStringTree = toCodecStringTree(codec);
|
|
3533
3384
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3534
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3385
|
+
const decodeCursor = decodeUnknownEffect(make16(toConfigCursorAST(codecStringTree.ast)));
|
|
3535
3386
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3536
|
-
return
|
|
3387
|
+
return make7((provider, pathPrefix) => {
|
|
3537
3388
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3538
3389
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3539
3390
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3649,4 +3500,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3649
3500
|
...argv
|
|
3650
3501
|
];
|
|
3651
3502
|
|
|
3652
|
-
export { map, makeEquivalence, Clock, currentTimeMillis, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3503
|
+
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, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, toPull, 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 };
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get3,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -96,20 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
100
|
-
import {
|
|
101
|
-
Clock,
|
|
102
|
-
interrupt,
|
|
103
|
-
getCurrent,
|
|
104
|
-
makeUnsafe2,
|
|
105
|
-
bounded,
|
|
106
|
-
offerAll,
|
|
107
|
-
failCause,
|
|
108
|
-
end,
|
|
109
|
-
shutdownUnsafe,
|
|
110
|
-
fromQueue,
|
|
111
|
-
unwrap
|
|
112
|
-
} from "./chunk-z0gqrc8c.js";
|
|
99
|
+
} from "./chunk-ew07nt2d.js";
|
|
113
100
|
import {
|
|
114
101
|
empty,
|
|
115
102
|
fromInput,
|
|
@@ -123,7 +110,20 @@ import {
|
|
|
123
110
|
ParseOptions,
|
|
124
111
|
RpcClientDefect,
|
|
125
112
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
113
|
+
} from "./chunk-0m8ktgmz.js";
|
|
114
|
+
import {
|
|
115
|
+
Clock,
|
|
116
|
+
interrupt,
|
|
117
|
+
getCurrent,
|
|
118
|
+
makeUnsafe2,
|
|
119
|
+
bounded,
|
|
120
|
+
offerAll,
|
|
121
|
+
failCause,
|
|
122
|
+
end,
|
|
123
|
+
shutdownUnsafe,
|
|
124
|
+
fromQueue,
|
|
125
|
+
unwrap
|
|
126
|
+
} from "./chunk-337drcr7.js";
|
|
127
127
|
|
|
128
128
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/workers/Transferable.js
|
|
129
129
|
class Collector extends (/* @__PURE__ */ Service2()("effect/workers/Transferable/Collector")) {
|
|
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
237
237
|
const disableTracing = options?.disableTracing ?? false;
|
|
238
238
|
const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
|
|
239
239
|
const services = yield* context();
|
|
240
|
-
const scope =
|
|
240
|
+
const scope = get3(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -483,7 +483,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
|
|
|
483
483
|
};
|
|
484
484
|
});
|
|
485
485
|
var clientIdCounter = 0;
|
|
486
|
-
var
|
|
486
|
+
var make4 = /* @__PURE__ */ fnUntraced(function* (group, options) {
|
|
487
487
|
const clientId = clientIdCounter++;
|
|
488
488
|
const {
|
|
489
489
|
codecFor,
|
|
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
|
|
|
643
643
|
return entry;
|
|
644
644
|
}
|
|
645
645
|
const streamSchemas = getStreamSchemas(rpc.successSchema);
|
|
646
|
-
const parseOptions =
|
|
646
|
+
const parseOptions = get3(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|
|
@@ -829,4 +829,4 @@ var layerProtocolSocket = (options) => effect(Protocol)(makeProtocolSocket(optio
|
|
|
829
829
|
class ConnectionHooks extends (/* @__PURE__ */ Service2()("effect/rpc/RpcClient/ConnectionHooks")) {
|
|
830
830
|
}
|
|
831
831
|
|
|
832
|
-
export { layerJson,
|
|
832
|
+
export { layerJson, make4, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ew07nt2d.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-qvpkwnky.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-6387vj9z.js";
|
|
8
|
+
import"./chunk-qvpkwnky.js";
|
|
9
|
+
import"./chunk-ew07nt2d.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-gy7nygep.js";
|
|
3
3
|
import {
|
|
4
4
|
HERDR_CORE_GENERATION2,
|
|
5
5
|
HERDR_CORE_INSTALL_COMMAND2,
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
herdrCoreLayer2,
|
|
13
13
|
herdrCoreTransportLayer2,
|
|
14
14
|
updateHerdrCore2
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
15
|
+
} from "./chunk-0m8ktgmz.js";
|
|
16
|
+
import"./chunk-337drcr7.js";
|
|
17
|
+
import"./chunk-ew07nt2d.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|