@kitman-sh/cli 0.10.58 → 0.10.59
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-qbyxcjy1.js → chunk-09jf8588.js} +16 -11
- package/dist/{chunk-kvv9vzzr.js → chunk-0fdgam8v.js} +186 -46
- package/dist/{chunk-ec5df6ea.js → chunk-1w81w56v.js} +2 -2
- package/dist/{chunk-ahtfwz4b.js → chunk-1z9p4q8b.js} +2 -2
- package/dist/{chunk-bbsh3a70.js → chunk-5y050gx7.js} +38 -38
- package/dist/{chunk-zxs37afg.js → chunk-88257wax.js} +19 -19
- package/dist/{chunk-4jbn6hma.js → chunk-a4798jzf.js} +3 -3
- package/dist/{chunk-nk5h4cvx.js → chunk-d3ksv8y1.js} +76 -117
- package/dist/{chunk-ac19vqmc.js → chunk-d8awdfdj.js} +204 -88
- package/dist/{chunk-zc214v7k.js → chunk-e3tv8mv2.js} +8 -8
- package/dist/{chunk-tr80mjnp.js → chunk-eawcprsb.js} +60 -14
- package/dist/{chunk-9rxwzn7y.js → chunk-hvev0dve.js} +11 -11
- package/dist/{chunk-hegberew.js → chunk-hxkk42cg.js} +7 -7
- package/dist/{chunk-59n1m39j.js → chunk-phmma642.js} +7 -7
- package/dist/{chunk-jd8xhqgm.js → chunk-q3c7vmby.js} +1 -1
- package/dist/{chunk-qkbnbr47.js → chunk-r76gsqds.js} +31 -21
- package/dist/{chunk-8y8ax1bt.js → chunk-rrnee9mk.js} +1 -1
- package/dist/{chunk-n1m89pnt.js → chunk-rrz0v4fg.js} +5 -5
- package/dist/{chunk-qmmer308.js → chunk-sdpjvc1r.js} +201 -344
- package/dist/{chunk-c6gyfqv4.js → chunk-smgvtzd2.js} +7 -7
- package/dist/{chunk-76y7v9rj.js → chunk-v01c0k6j.js} +1 -1
- package/dist/{chunk-edf91eyv.js → chunk-wkccjgwb.js} +4 -4
- package/dist/{chunk-ac851090.js → chunk-wtpwkjws.js} +4 -4
- package/dist/{chunk-mfhmj6r6.js → chunk-z0z56a72.js} +9 -9
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import {
|
|
3
|
-
make9,
|
|
4
|
-
runForEach,
|
|
5
|
-
compiled2
|
|
6
|
-
} from "./chunk-kvv9vzzr.js";
|
|
7
2
|
import {
|
|
8
3
|
getOrUndefined,
|
|
9
4
|
liftThrowable,
|
|
@@ -27,16 +22,21 @@ import {
|
|
|
27
22
|
NullOr,
|
|
28
23
|
Finite,
|
|
29
24
|
encodeUnknownJsonStringSync
|
|
30
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-d3ksv8y1.js";
|
|
31
26
|
import {
|
|
32
27
|
isNumber,
|
|
33
28
|
isJsonObject,
|
|
34
29
|
isString
|
|
35
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-v01c0k6j.js";
|
|
31
|
+
import {
|
|
32
|
+
make11,
|
|
33
|
+
runForEach,
|
|
34
|
+
compiled2
|
|
35
|
+
} from "./chunk-0fdgam8v.js";
|
|
36
36
|
import {
|
|
37
37
|
ChildProcessSpawner,
|
|
38
|
-
|
|
39
|
-
} from "./chunk-
|
|
38
|
+
make3
|
|
39
|
+
} from "./chunk-eawcprsb.js";
|
|
40
40
|
|
|
41
41
|
// packages/agent-runtime/src/opencode-store.ts
|
|
42
42
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -144,6 +144,11 @@ var readings = {
|
|
|
144
144
|
}
|
|
145
145
|
return messages;
|
|
146
146
|
}),
|
|
147
|
+
lastError: reading(Parsed, (db, { v2 }, sessionId) => {
|
|
148
|
+
const error = unlessLong("json_extract(data, '$.error')");
|
|
149
|
+
const row = v2 ? db.prepare(`select ${error} as error from session_message where session_id = ? and type = 'assistant' order by seq desc limit 1`).get(sessionId) : db.prepare(`select ${error} as error from message where session_id = ? and json_extract(data, '$.role') = 'assistant' order by time_created desc, rowid desc limit 1`).get(sessionId);
|
|
150
|
+
return isString(row?.error) ? decoded2(row.error) ?? null : null;
|
|
151
|
+
}),
|
|
147
152
|
extent: reading(Finite, (db, _input, sessionId) => Number(db.prepare(`with recursive sessions(id) as (select ? union select session_v2.id from session_v2 join sessions on session_v2.parent_id = sessions.id)
|
|
148
153
|
select coalesce(max(time_updated), 0) as extent from session_message where session_id in sessions`).get(sessionId)?.extent))
|
|
149
154
|
};
|
|
@@ -164,8 +169,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
164
169
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
165
170
|
const spawner = yield* ChildProcessSpawner;
|
|
166
171
|
const [command, ...args] = opencodeReaderCommand();
|
|
167
|
-
const handle = yield* spawner.spawn(
|
|
168
|
-
stdin:
|
|
172
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
173
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
169
174
|
stderr: "ignore",
|
|
170
175
|
extendEnv: false,
|
|
171
176
|
env: {},
|
|
@@ -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-d3ksv8y1.js";
|
|
196
203
|
|
|
197
204
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
198
205
|
var headUnsafe = (self) => {
|
|
@@ -241,15 +248,6 @@ var makeEquivalence = (equivalence) => {
|
|
|
241
248
|
return (self, that) => is(self, that) && is(that, self);
|
|
242
249
|
};
|
|
243
250
|
|
|
244
|
-
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
|
|
245
|
-
var BigInt2 = globalThis.BigInt;
|
|
246
|
-
var toNumber = (b) => {
|
|
247
|
-
if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
|
|
248
|
-
return none();
|
|
249
|
-
}
|
|
250
|
-
return some(Number(b));
|
|
251
|
-
};
|
|
252
|
-
|
|
253
251
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
|
|
254
252
|
var bigint0 = /* @__PURE__ */ BigInt(0);
|
|
255
253
|
var bigint1 = /* @__PURE__ */ BigInt(1);
|
|
@@ -370,7 +368,7 @@ var fromStringUnsafe = (input) => {
|
|
|
370
368
|
return invalid(`${JSON.stringify(input)} does not represent an integral number of bytes`);
|
|
371
369
|
return make(value);
|
|
372
370
|
};
|
|
373
|
-
var
|
|
371
|
+
var fromInputUnsafe2 = (input) => {
|
|
374
372
|
switch (typeof input) {
|
|
375
373
|
case "bigint":
|
|
376
374
|
if (input < bigint0)
|
|
@@ -383,7 +381,7 @@ var fromInputUnsafe = (input) => {
|
|
|
383
381
|
}
|
|
384
382
|
return invalid(`unsupported input ${input}`);
|
|
385
383
|
};
|
|
386
|
-
var bytes = (value) => typeof value === "bigint" ?
|
|
384
|
+
var bytes = (value) => typeof value === "bigint" ? fromInputUnsafe2(value) : fromNumber(value);
|
|
387
385
|
|
|
388
386
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Fiber.js
|
|
389
387
|
var join = fiberJoin;
|
|
@@ -1129,7 +1127,7 @@ var MutableRefProto = {
|
|
|
1129
1127
|
};
|
|
1130
1128
|
}
|
|
1131
1129
|
};
|
|
1132
|
-
var
|
|
1130
|
+
var make8 = (value) => {
|
|
1133
1131
|
const ref = Object.create(MutableRefProto);
|
|
1134
1132
|
ref.current = value;
|
|
1135
1133
|
return ref;
|
|
@@ -1290,7 +1288,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1288
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1289
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1290
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1291
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1294
1292
|
var unbounded = (options) => make5({
|
|
1295
1293
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1294
|
strategy: () => new DroppingStrategy
|
|
@@ -1309,7 +1307,7 @@ var publishUnsafe = /* @__PURE__ */ dual(2, (self, value) => {
|
|
|
1309
1307
|
return false;
|
|
1310
1308
|
});
|
|
1311
1309
|
var subscribe = (self) => uninterruptible(contextWith((services) => {
|
|
1312
|
-
const localScope =
|
|
1310
|
+
const localScope = get4(services, Scope);
|
|
1313
1311
|
const scope = forkUnsafe(self.scope);
|
|
1314
1312
|
const subscription = makeSubscriptionUnsafe(self.pubsub, self.subscribers, self.strategy, self.ended);
|
|
1315
1313
|
return addFinalizer(scope, unsubscribe(subscription)).pipe(andThen2(addFinalizerExit(localScope, (exit) => close(scope, exit))), as(subscription));
|
|
@@ -1385,7 +1383,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1383
|
subscribers.delete(subscription);
|
|
1386
1384
|
}
|
|
1387
1385
|
};
|
|
1388
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1386
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1387
|
class UnboundedPubSub {
|
|
1390
1388
|
publisherHead = {
|
|
1391
1389
|
value: AbsentValue,
|
|
@@ -1802,7 +1800,7 @@ var QueueProto = {
|
|
|
1802
1800
|
};
|
|
1803
1801
|
}
|
|
1804
1802
|
};
|
|
1805
|
-
var
|
|
1803
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1806
1804
|
const self = Object.create(QueueProto);
|
|
1807
1805
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1806
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1817,14 +1815,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1817
1815
|
};
|
|
1818
1816
|
return succeed2(self);
|
|
1819
1817
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1818
|
+
var bounded = (capacity) => make9({
|
|
1821
1819
|
capacity
|
|
1822
1820
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1821
|
+
var sliding = (capacity) => make9({
|
|
1824
1822
|
capacity,
|
|
1825
1823
|
strategy: "sliding"
|
|
1826
1824
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1825
|
+
var unbounded2 = () => make9();
|
|
1828
1826
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1827
|
var offerUnsafe = (self, message) => {
|
|
1830
1828
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2248,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2248
|
return onError(pull, onCause);
|
|
2251
2249
|
}));
|
|
2252
2250
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2251
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2254
2252
|
capacity: options?.bufferSize,
|
|
2255
2253
|
strategy: options?.strategy
|
|
2256
2254
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2289,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2289
|
}));
|
|
2292
2290
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2291
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2292
|
+
const exit = options.exit ?? make8(undefined);
|
|
2295
2293
|
const pull = suspend3(() => {
|
|
2296
2294
|
if (exit.current)
|
|
2297
2295
|
return exit.current;
|
|
@@ -2766,16 +2764,158 @@ var forEachArray = (f) => fromTransform2((upstream) => upstream.pipe(flatMap3(f)
|
|
|
2766
2764
|
}), catchDone(() => endVoid)));
|
|
2767
2765
|
var unwrap3 = (effect) => fromChannel(unwrap2(map8(effect, toChannel)));
|
|
2768
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
|
+
|
|
2769
2909
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
2770
|
-
var
|
|
2771
|
-
var isStream = (u) => hasProperty(u,
|
|
2910
|
+
var TypeId9 = "~effect/Stream";
|
|
2911
|
+
var isStream = (u) => hasProperty(u, TypeId9);
|
|
2772
2912
|
var fromChannel2 = fromChannel3;
|
|
2773
2913
|
var fromPull2 = (pull) => fromChannel2(fromPull(pull));
|
|
2774
2914
|
var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatMap3(toPullScoped(self.channel, scope), (pull) => f(pull, scope))));
|
|
2775
2915
|
var toChannel2 = (stream) => stream.channel;
|
|
2776
2916
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2777
2917
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2778
|
-
var
|
|
2918
|
+
var make11 = (...values) => fromArray2(values);
|
|
2779
2919
|
var suspend = (stream) => {
|
|
2780
2920
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2781
2921
|
suspendedStreams.set(suspended, stream);
|
|
@@ -2938,11 +3078,11 @@ var toReadableStreamWith = /* @__PURE__ */ dual((args) => isStream(args[0]), (se
|
|
|
2938
3078
|
var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (self, options) => map8(context(), (context) => toReadableStreamWith(self, context, options)));
|
|
2939
3079
|
|
|
2940
3080
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
2941
|
-
var
|
|
3081
|
+
var TypeId10 = "~effect/FileSystem";
|
|
2942
3082
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
2943
|
-
var
|
|
3083
|
+
var make12 = (impl) => FileSystem.of({
|
|
2944
3084
|
...impl,
|
|
2945
|
-
[
|
|
3085
|
+
[TypeId10]: TypeId10,
|
|
2946
3086
|
glob: make2(impl),
|
|
2947
3087
|
exists: (path) => pipe(impl.access(path), as(true), catchTag("PlatformError", (e) => e.reason._tag === "NotFound" ? succeed6(false) : fail7(e))),
|
|
2948
3088
|
readFileString: (path, encoding) => flatMap3(impl.readFile(path), (_) => try_2({
|
|
@@ -2958,11 +3098,11 @@ var make10 = (impl) => FileSystem.of({
|
|
|
2958
3098
|
const file = yield* impl.open(path, {
|
|
2959
3099
|
flag: "r"
|
|
2960
3100
|
});
|
|
2961
|
-
const offset = options?.offset === undefined ? undefined :
|
|
3101
|
+
const offset = options?.offset === undefined ? undefined : fromInputUnsafe2(options.offset);
|
|
2962
3102
|
if (offset) {
|
|
2963
3103
|
yield* file.seek(offset, "start");
|
|
2964
3104
|
}
|
|
2965
|
-
const bytesToRead = options?.bytesToRead === undefined ? undefined :
|
|
3105
|
+
const bytesToRead = options?.bytesToRead === undefined ? undefined : fromInputUnsafe2(options.bytesToRead);
|
|
2966
3106
|
let totalBytesRead = BigInt(0);
|
|
2967
3107
|
const chunkSize = Number(BigInt(options?.chunkSize ?? 64 * 1024));
|
|
2968
3108
|
const readChunk = file.readAlloc(chunkSize);
|
|
@@ -2998,11 +3138,11 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
2998
3138
|
}
|
|
2999
3139
|
|
|
3000
3140
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3001
|
-
var
|
|
3141
|
+
var TypeId11 = "~effect/Path";
|
|
3002
3142
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3003
|
-
var
|
|
3143
|
+
var make13 = (impl) => Path.of({
|
|
3004
3144
|
...impl,
|
|
3005
|
-
[
|
|
3145
|
+
[TypeId11]: TypeId11,
|
|
3006
3146
|
resolveWithin(root, input) {
|
|
3007
3147
|
if (impl.parse(input).root !== "")
|
|
3008
3148
|
return none();
|
|
@@ -3075,7 +3215,7 @@ function makeProvider(load, mapInput) {
|
|
|
3075
3215
|
function makeSource(get, transform) {
|
|
3076
3216
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3077
3217
|
}
|
|
3078
|
-
function
|
|
3218
|
+
function make7(get) {
|
|
3079
3219
|
return makeSource(get, identityPath);
|
|
3080
3220
|
}
|
|
3081
3221
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3084,7 +3224,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3084
3224
|
function fromEnvRecord(env, options) {
|
|
3085
3225
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3086
3226
|
const trie = buildEnvTrie(env);
|
|
3087
|
-
return
|
|
3227
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3088
3228
|
}
|
|
3089
3229
|
function fromEnv(options) {
|
|
3090
3230
|
const env = options?.env ?? {
|
|
@@ -3137,7 +3277,7 @@ function trieNodeAt(root, path) {
|
|
|
3137
3277
|
}
|
|
3138
3278
|
|
|
3139
3279
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Config.js
|
|
3140
|
-
var
|
|
3280
|
+
var TypeId12 = "~effect/Config";
|
|
3141
3281
|
class ConfigError {
|
|
3142
3282
|
_tag = "ConfigError";
|
|
3143
3283
|
name = "ConfigError";
|
|
@@ -3159,14 +3299,14 @@ var Proto2 = {
|
|
|
3159
3299
|
return this.parse(fiber.getRef(ConfigProvider));
|
|
3160
3300
|
}
|
|
3161
3301
|
}),
|
|
3162
|
-
[
|
|
3302
|
+
[TypeId12]: TypeId12,
|
|
3163
3303
|
toJSON() {
|
|
3164
3304
|
return {
|
|
3165
3305
|
_id: "Config"
|
|
3166
3306
|
};
|
|
3167
3307
|
}
|
|
3168
3308
|
};
|
|
3169
|
-
function
|
|
3309
|
+
function make14(evaluator) {
|
|
3170
3310
|
const self = Object.create(Proto2);
|
|
3171
3311
|
self.evaluator = evaluator;
|
|
3172
3312
|
self.parse = (provider) => flatMapEager(evaluator(provider, []), fromResult);
|
|
@@ -3174,14 +3314,14 @@ function make12(evaluator) {
|
|
|
3174
3314
|
}
|
|
3175
3315
|
var evaluateAt = (self, provider, pathPrefix) => self.evaluator(provider, pathPrefix);
|
|
3176
3316
|
var map3 = /* @__PURE__ */ dual(2, (self, f) => {
|
|
3177
|
-
return
|
|
3317
|
+
return make14((provider, pathPrefix) => map8(evaluateAt(self, provider, pathPrefix), map5(f)));
|
|
3178
3318
|
});
|
|
3179
3319
|
function all(arg) {
|
|
3180
3320
|
const configs = globalThis.Array.isArray(arg) ? arg : (Symbol.iterator in arg) ? [...arg] : arg;
|
|
3181
|
-
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));
|
|
3182
3322
|
}
|
|
3183
3323
|
var withDefault = /* @__PURE__ */ dual(2, (self, defaultValue) => {
|
|
3184
|
-
return
|
|
3324
|
+
return make14((provider, pathPrefix) => mapEager(evaluateAt(self, provider, pathPrefix), (resolution) => isFailure(resolution) ? succeed(defaultValue) : resolution));
|
|
3185
3325
|
});
|
|
3186
3326
|
var option = (self) => self.pipe(map3(some), withDefault(none()));
|
|
3187
3327
|
var isSourceError = (u) => isTagged(u, "SourceError");
|
|
@@ -3298,9 +3438,9 @@ var toConfigCursorAST = /* @__PURE__ */ memoize((root) => {
|
|
|
3298
3438
|
function schema(codec, path) {
|
|
3299
3439
|
const codecStringTree = toCodecStringTree(codec);
|
|
3300
3440
|
const encodedAst = toEncoded(codecStringTree.ast);
|
|
3301
|
-
const decodeCursor = decodeUnknownEffect(
|
|
3441
|
+
const decodeCursor = decodeUnknownEffect(make17(toConfigCursorAST(codecStringTree.ast)));
|
|
3302
3442
|
const localPath = typeof path === "string" ? [path] : path ?? [];
|
|
3303
|
-
return
|
|
3443
|
+
return make14((provider, pathPrefix) => {
|
|
3304
3444
|
const fullPath = [...pathPrefix, ...localPath];
|
|
3305
3445
|
return loadCursor(provider, fullPath).pipe(flatMapEager((cursor) => decodeCursor(cursor).pipe(mapEager(succeed), catchEager((issue) => {
|
|
3306
3446
|
const error = new ConfigError(new SchemaError(fullPath.length > 0 ? new Pointer(fullPath, issue) : issue));
|
|
@@ -3411,4 +3551,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3411
3551
|
...argv
|
|
3412
3552
|
];
|
|
3413
3553
|
|
|
3414
|
-
export { map, makeEquivalence,
|
|
3554
|
+
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, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
ArraySchema,
|
|
12
12
|
decodeJsonStringOption,
|
|
13
13
|
encodeUnknownJsonStringSync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-d3ksv8y1.js";
|
|
15
15
|
import {
|
|
16
16
|
replaceSecretReferences,
|
|
17
17
|
secretReferencesIn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-rrnee9mk.js";
|
|
19
19
|
|
|
20
20
|
// packages/agent-runtime/src/secret-proxy.ts
|
|
21
21
|
import { appendFileSync, readFileSync, renameSync, writeFileSync } from "fs";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-0fdgam8v.js";
|
|
18
|
+
import"./chunk-d3ksv8y1.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|