@kitman-sh/cli 0.12.13 → 0.12.14
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-cxqaccxr.js → chunk-0300vp5q.js} +6 -6
- package/dist/{chunk-20qmtmt2.js → chunk-0h49y8gf.js} +17 -17
- package/dist/{chunk-4hdk4bje.js → chunk-51ye0af0.js} +7 -7
- package/dist/{chunk-dmbcgwea.js → chunk-5wnjn5r0.js} +5 -5
- package/dist/{chunk-vp2xdw4r.js → chunk-5zhh41gb.js} +4 -4
- package/dist/{chunk-73fqehr2.js → chunk-5zth85pj.js} +2 -2
- package/dist/{chunk-ntxzkz25.js → chunk-br7t2pre.js} +23 -23
- package/dist/{chunk-853g269m.js → chunk-bzq3bz0d.js} +22 -22
- package/dist/{chunk-qpfb12g1.js → chunk-cbpb2rww.js} +7 -7
- package/dist/{chunk-n1mzvqt2.js → chunk-f0h8f3kw.js} +4 -4
- package/dist/{chunk-vnfshhpk.js → chunk-gnxa022f.js} +1 -1
- package/dist/{chunk-24h0y27w.js → chunk-gq7y5v3e.js} +1 -1
- package/dist/{chunk-mmd7mjv0.js → chunk-gy9rf14f.js} +3 -3
- package/dist/{chunk-mr95mxxv.js → chunk-hh7rg13h.js} +21 -21
- package/dist/{chunk-rjxkcjb2.js → chunk-hhnx6314.js} +7 -7
- package/dist/{chunk-5f8whb7j.js → chunk-mtkstrh3.js} +60 -14
- package/dist/{chunk-1msvjdrq.js → chunk-mxq6zpkw.js} +4 -4
- package/dist/{chunk-hb71prd2.js → chunk-q44g4vf7.js} +4 -4
- package/dist/{chunk-pxvd8w2v.js → chunk-q5w3v4k1.js} +1 -1
- package/dist/{chunk-axh2mt1y.js → chunk-tfd4pnnt.js} +1 -1
- package/dist/{chunk-vm5s72rr.js → chunk-wx3cx43j.js} +107 -107
- package/dist/{chunk-fsmh52xq.js → chunk-x7574rns.js} +18 -18
- package/dist/{chunk-vmhpnqss.js → chunk-xgdyj09a.js} +3 -3
- package/dist/{chunk-ggmwpwhf.js → chunk-y1krmnbv.js} +2 -2
- package/dist/{chunk-zgraq2y3.js → chunk-zw3gf6r5.js} +28 -70
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-51ye0af0.js";
|
|
8
|
+
import"./chunk-5wnjn5r0.js";
|
|
9
|
+
import"./chunk-wx3cx43j.js";
|
|
10
|
+
import"./chunk-q5w3v4k1.js";
|
|
11
|
+
import"./chunk-0h49y8gf.js";
|
|
12
|
+
import"./chunk-zw3gf6r5.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -201,7 +201,7 @@ import {
|
|
|
201
201
|
String4,
|
|
202
202
|
toCodecStringTree,
|
|
203
203
|
encodeUnknownJsonStringSync
|
|
204
|
-
} from "./chunk-
|
|
204
|
+
} from "./chunk-zw3gf6r5.js";
|
|
205
205
|
|
|
206
206
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
|
|
207
207
|
var headUnsafe = (self) => {
|
|
@@ -1129,7 +1129,7 @@ var MutableRefProto = {
|
|
|
1129
1129
|
};
|
|
1130
1130
|
}
|
|
1131
1131
|
};
|
|
1132
|
-
var
|
|
1132
|
+
var make8 = (value) => {
|
|
1133
1133
|
const ref = Object.create(MutableRefProto);
|
|
1134
1134
|
ref.current = value;
|
|
1135
1135
|
return ref;
|
|
@@ -1290,7 +1290,7 @@ var remove = (self, value) => filter2(self, (v) => v !== value);
|
|
|
1290
1290
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/PubSub.js
|
|
1291
1291
|
var TypeId3 = "~effect/PubSub";
|
|
1292
1292
|
var SubscriptionTypeId = "~effect/PubSub/Subscription";
|
|
1293
|
-
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false),
|
|
1293
|
+
var make5 = (options) => sync2(() => makePubSubUnsafe(options.atomicPubSub(), new Map, makeUnsafe6(), makeUnsafe2(false), make8(false), options.strategy(), make8(none())));
|
|
1294
1294
|
var unbounded = (options) => make5({
|
|
1295
1295
|
atomicPubSub: () => makeAtomicUnbounded(options),
|
|
1296
1296
|
strategy: () => new DroppingStrategy
|
|
@@ -1385,7 +1385,7 @@ var removeSubscribers = (subscribers, subscription, pollers) => {
|
|
|
1385
1385
|
subscribers.delete(subscription);
|
|
1386
1386
|
}
|
|
1387
1387
|
};
|
|
1388
|
-
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false),
|
|
1388
|
+
var makeSubscriptionUnsafe = (pubsub, subscribers, strategy, ended) => new SubscriptionImpl(pubsub, subscribers, pubsub.subscribe(), make4(), makeUnsafe2(false), make8(false), strategy, pubsub.replayWindow(), ended);
|
|
1389
1389
|
class UnboundedPubSub {
|
|
1390
1390
|
publisherHead = {
|
|
1391
1391
|
value: AbsentValue,
|
|
@@ -1802,7 +1802,7 @@ var QueueProto = {
|
|
|
1802
1802
|
};
|
|
1803
1803
|
}
|
|
1804
1804
|
};
|
|
1805
|
-
var
|
|
1805
|
+
var make9 = (options) => withFiber((fiber) => {
|
|
1806
1806
|
const self = Object.create(QueueProto);
|
|
1807
1807
|
self.dispatcher = fiber.currentDispatcher;
|
|
1808
1808
|
self.capacity = options?.capacity ?? Number.POSITIVE_INFINITY;
|
|
@@ -1817,14 +1817,14 @@ var make8 = (options) => withFiber((fiber) => {
|
|
|
1817
1817
|
};
|
|
1818
1818
|
return succeed2(self);
|
|
1819
1819
|
});
|
|
1820
|
-
var bounded = (capacity) =>
|
|
1820
|
+
var bounded = (capacity) => make9({
|
|
1821
1821
|
capacity
|
|
1822
1822
|
});
|
|
1823
|
-
var sliding = (capacity) =>
|
|
1823
|
+
var sliding = (capacity) => make9({
|
|
1824
1824
|
capacity,
|
|
1825
1825
|
strategy: "sliding"
|
|
1826
1826
|
});
|
|
1827
|
-
var unbounded2 = () =>
|
|
1827
|
+
var unbounded2 = () => make9();
|
|
1828
1828
|
var offer = /* @__PURE__ */ dual(2, (self, message) => suspend2(() => offerUnsafe(self, message) ? exitTrue : self.state._tag === "Open" && self.strategy === "suspend" ? offerOrWait(self, message) : exitFalse));
|
|
1829
1829
|
var offerUnsafe = (self, message) => {
|
|
1830
1830
|
if (self.state._tag !== "Open") {
|
|
@@ -2250,7 +2250,7 @@ var fromTransformBracket = (f) => fromTransform(fnUntraced(function* (upstream,
|
|
|
2250
2250
|
return onError(pull, onCause);
|
|
2251
2251
|
}));
|
|
2252
2252
|
var toTransform = (channel) => channel.transform;
|
|
2253
|
-
var asyncQueue = (scope, f, options) =>
|
|
2253
|
+
var asyncQueue = (scope, f, options) => make9({
|
|
2254
2254
|
capacity: options?.bufferSize,
|
|
2255
2255
|
strategy: options?.strategy
|
|
2256
2256
|
}).pipe(tap2((queue) => addFinalizer(scope, shutdown(queue))), tap2((queue) => provide(f(queue), scope).pipe(catchCause2((cause) => failCause(queue, cause)), forkIn(scope, {
|
|
@@ -2291,7 +2291,7 @@ var fromReadableStream2 = (options) => fromTransform((_, scope) => readableStrea
|
|
|
2291
2291
|
}));
|
|
2292
2292
|
var readableStreamToPullUnsafe = (options) => {
|
|
2293
2293
|
const reader = options.readable.getReader();
|
|
2294
|
-
const exit = options.exit ??
|
|
2294
|
+
const exit = options.exit ?? make8(undefined);
|
|
2295
2295
|
const pull = suspend3(() => {
|
|
2296
2296
|
if (exit.current)
|
|
2297
2297
|
return exit.current;
|
|
@@ -2905,7 +2905,7 @@ var release = (self, state) => {
|
|
|
2905
2905
|
};
|
|
2906
2906
|
|
|
2907
2907
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/RcRef.js
|
|
2908
|
-
var
|
|
2908
|
+
var make10 = make6;
|
|
2909
2909
|
var get3 = get2;
|
|
2910
2910
|
|
|
2911
2911
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Stream.js
|
|
@@ -2917,7 +2917,7 @@ var transformPull2 = (self, f) => fromChannel2(fromTransform((_, scope) => flatM
|
|
|
2917
2917
|
var toChannel2 = (stream) => stream.channel;
|
|
2918
2918
|
var callback = (f, options) => fromChannel2(callbackArray(f, options));
|
|
2919
2919
|
var empty2 = /* @__PURE__ */ fromChannel2(empty);
|
|
2920
|
-
var
|
|
2920
|
+
var make11 = (...values) => fromArray2(values);
|
|
2921
2921
|
var suspend = (stream) => {
|
|
2922
2922
|
const suspended = fromChannel2(suspend4(() => stream().channel));
|
|
2923
2923
|
suspendedStreams.set(suspended, stream);
|
|
@@ -3082,7 +3082,7 @@ var toReadableStreamEffect = /* @__PURE__ */ dual((args) => isStream(args[0]), (
|
|
|
3082
3082
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/FileSystem.js
|
|
3083
3083
|
var TypeId10 = "~effect/FileSystem";
|
|
3084
3084
|
var FileSystem = /* @__PURE__ */ Service2("effect/FileSystem");
|
|
3085
|
-
var
|
|
3085
|
+
var make12 = (impl) => FileSystem.of({
|
|
3086
3086
|
...impl,
|
|
3087
3087
|
[TypeId10]: TypeId10,
|
|
3088
3088
|
glob: make2(impl),
|
|
@@ -3142,7 +3142,7 @@ class WatchBackend extends (/* @__PURE__ */ Service2()("effect/FileSystem/WatchB
|
|
|
3142
3142
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Path.js
|
|
3143
3143
|
var TypeId11 = "~effect/Path";
|
|
3144
3144
|
var Path = /* @__PURE__ */ Service2("effect/Path");
|
|
3145
|
-
var
|
|
3145
|
+
var make13 = (impl) => Path.of({
|
|
3146
3146
|
...impl,
|
|
3147
3147
|
[TypeId11]: TypeId11,
|
|
3148
3148
|
resolveWithin(root, input) {
|
|
@@ -3217,7 +3217,7 @@ function makeProvider(load, mapInput) {
|
|
|
3217
3217
|
function makeSource(get, transform) {
|
|
3218
3218
|
return makeProvider((path) => get(transform(path)), (f) => makeSource(get, (path) => f(transform(path))));
|
|
3219
3219
|
}
|
|
3220
|
-
function
|
|
3220
|
+
function make7(get) {
|
|
3221
3221
|
return makeSource(get, identityPath);
|
|
3222
3222
|
}
|
|
3223
3223
|
function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
@@ -3226,7 +3226,7 @@ function emptyStringAsMissing(value, preserveEmptyStrings) {
|
|
|
3226
3226
|
function fromEnvRecord(env, options) {
|
|
3227
3227
|
const preserveEmptyStrings = options?.preserveEmptyStrings === true;
|
|
3228
3228
|
const trie = buildEnvTrie(env);
|
|
3229
|
-
return
|
|
3229
|
+
return make7((path) => succeed6(nodeAtEnv(trie, env, path, preserveEmptyStrings)));
|
|
3230
3230
|
}
|
|
3231
3231
|
function fromEnv(options) {
|
|
3232
3232
|
const env = options?.env ?? {
|
|
@@ -3557,4 +3557,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
|
|
|
3557
3557
|
...argv
|
|
3558
3558
|
];
|
|
3559
3559
|
|
|
3560
|
-
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2,
|
|
3560
|
+
export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-zw3gf6r5.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-0h49y8gf.js";
|
|
13
13
|
import {
|
|
14
14
|
WebSocketConstructor,
|
|
15
15
|
layerWebSocketConstructorGlobal,
|
|
@@ -19,13 +19,13 @@ import {
|
|
|
19
19
|
RunnerReplicaRpcs,
|
|
20
20
|
RunnerRunFileRpcs,
|
|
21
21
|
ProgramRpcs
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-wx3cx43j.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-5wnjn5r0.js";
|
|
29
29
|
|
|
30
30
|
// packages/live/src/rpc/runner-client.ts
|
|
31
31
|
var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
|
|
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
|
|
|
46
46
|
var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
|
|
47
47
|
var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
48
48
|
const protocol = yield* build(options.protocol);
|
|
49
|
-
const client = yield*
|
|
49
|
+
const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
|
|
50
50
|
const authorized = authorizer(options);
|
|
51
51
|
return {
|
|
52
52
|
claim: (input) => authorized(client.Claim(input)),
|
|
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
|
|
|
74
74
|
});
|
|
75
75
|
var makeProgramRpcClient2 = (options) => gen(function* () {
|
|
76
76
|
const protocol = yield* build(options.protocol);
|
|
77
|
-
const client = yield*
|
|
77
|
+
const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-zw3gf6r5.js";
|
|
100
100
|
import {
|
|
101
101
|
interrupt,
|
|
102
102
|
getCurrent,
|
|
@@ -108,7 +108,7 @@ import {
|
|
|
108
108
|
shutdownUnsafe,
|
|
109
109
|
fromQueue,
|
|
110
110
|
unwrap
|
|
111
|
-
} from "./chunk-
|
|
111
|
+
} from "./chunk-0h49y8gf.js";
|
|
112
112
|
import {
|
|
113
113
|
Clock,
|
|
114
114
|
empty,
|
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
ParseOptions,
|
|
124
124
|
RpcClientDefect,
|
|
125
125
|
RpcClientError
|
|
126
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-wx3cx43j.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")) {
|
|
@@ -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,
|
|
@@ -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 };
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
decoded2,
|
|
8
8
|
readOpencode2,
|
|
9
9
|
runOpencodeReader2
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-cbpb2rww.js";
|
|
11
|
+
import"./chunk-mtkstrh3.js";
|
|
12
|
+
import"./chunk-0h49y8gf.js";
|
|
13
|
+
import"./chunk-zw3gf6r5.js";
|
|
14
14
|
export {
|
|
15
15
|
decoded2 as decoded,
|
|
16
16
|
decodedOption2 as decodedOption,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-0h49y8gf.js";
|
|
18
|
+
import"./chunk-zw3gf6r5.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -118,7 +118,7 @@ import {
|
|
|
118
118
|
decodeJsonStringOption,
|
|
119
119
|
encodeJsonStringSync,
|
|
120
120
|
encodePrettyJsonString
|
|
121
|
-
} from "./chunk-
|
|
121
|
+
} from "./chunk-zw3gf6r5.js";
|
|
122
122
|
import {
|
|
123
123
|
currentTimeMillis,
|
|
124
124
|
SecureRandom,
|
|
@@ -158,8 +158,8 @@ import {
|
|
|
158
158
|
sessionForApi,
|
|
159
159
|
readAuthStore,
|
|
160
160
|
agentCredentialForApi,
|
|
161
|
-
make5,
|
|
162
161
|
make6,
|
|
162
|
+
make7,
|
|
163
163
|
Service,
|
|
164
164
|
shouldRefresh,
|
|
165
165
|
refreshSession,
|
|
@@ -170,13 +170,13 @@ import {
|
|
|
170
170
|
runMcpEffect,
|
|
171
171
|
createAgentAuthSignedFetch,
|
|
172
172
|
setupMcpAgentCredential
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-wx3cx43j.js";
|
|
174
174
|
import {
|
|
175
175
|
guard,
|
|
176
176
|
Id,
|
|
177
177
|
Timestamp,
|
|
178
178
|
ActorType
|
|
179
|
-
} from "./chunk-
|
|
179
|
+
} from "./chunk-q5w3v4k1.js";
|
|
180
180
|
import {
|
|
181
181
|
join,
|
|
182
182
|
interrupt,
|
|
@@ -190,21 +190,21 @@ import {
|
|
|
190
190
|
withDefault,
|
|
191
191
|
option,
|
|
192
192
|
String2
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-0h49y8gf.js";
|
|
194
194
|
import {
|
|
195
195
|
searchDocs2,
|
|
196
196
|
readDoc2
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-gnxa022f.js";
|
|
198
198
|
import {
|
|
199
199
|
nextInt
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-gq7y5v3e.js";
|
|
201
201
|
import {
|
|
202
202
|
layerJson,
|
|
203
|
-
|
|
203
|
+
make4,
|
|
204
204
|
withHeaders,
|
|
205
205
|
layerProtocolSocket,
|
|
206
206
|
ConnectionHooks
|
|
207
|
-
} from "./chunk-
|
|
207
|
+
} from "./chunk-5wnjn5r0.js";
|
|
208
208
|
|
|
209
209
|
// apps/cli/src/mcp.ts
|
|
210
210
|
import { tmpdir as tmpdir2 } from "os";
|
|
@@ -1956,56 +1956,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1956
1956
|
LivePresenceSubscriptionUpdate
|
|
1957
1957
|
]);
|
|
1958
1958
|
|
|
1959
|
-
class LiveRpcs extends make6(
|
|
1959
|
+
class LiveRpcs extends make7(make6("Session", {
|
|
1960
1960
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1961
1961
|
error: LiveRpcError
|
|
1962
|
-
}),
|
|
1962
|
+
}), make6("Subscribe", {
|
|
1963
1963
|
payload: LiveSubscribeInput,
|
|
1964
1964
|
success: LiveSubscriptionMessage,
|
|
1965
1965
|
error: LiveRpcError,
|
|
1966
1966
|
stream: true
|
|
1967
|
-
}),
|
|
1967
|
+
}), make6("Replay", {
|
|
1968
1968
|
payload: LiveReplayInput,
|
|
1969
1969
|
success: ArraySchema(LiveEvent),
|
|
1970
1970
|
error: LiveRpcError
|
|
1971
|
-
}),
|
|
1971
|
+
}), make6("Ack", {
|
|
1972
1972
|
payload: LiveAckInput,
|
|
1973
1973
|
success: LiveAckResult,
|
|
1974
1974
|
error: LiveRpcError
|
|
1975
|
-
}),
|
|
1975
|
+
}), make6("SubscribeWeb", {
|
|
1976
1976
|
payload: LiveWebSubscribeInput,
|
|
1977
1977
|
success: LiveWebSubscriptionMessage,
|
|
1978
1978
|
error: LiveRpcError,
|
|
1979
1979
|
stream: true
|
|
1980
|
-
}),
|
|
1980
|
+
}), make6("SubscriptionStatus", {
|
|
1981
1981
|
payload: { subscriptionId: String4 },
|
|
1982
1982
|
success: LiveSubscriptionStatus,
|
|
1983
1983
|
error: LiveRpcError
|
|
1984
|
-
}),
|
|
1984
|
+
}), make6("ReplayWeb", {
|
|
1985
1985
|
payload: LiveWebReplayInput,
|
|
1986
1986
|
success: LiveWebReplayResult,
|
|
1987
1987
|
error: LiveRpcError
|
|
1988
|
-
}),
|
|
1988
|
+
}), make6("AckWeb", {
|
|
1989
1989
|
payload: LiveWebAckInput,
|
|
1990
1990
|
success: LiveWebAckResult,
|
|
1991
1991
|
error: LiveRpcError
|
|
1992
|
-
}),
|
|
1992
|
+
}), make6("PublishPresence", {
|
|
1993
1993
|
payload: LivePresencePublishInput,
|
|
1994
1994
|
success: LivePresenceEntry,
|
|
1995
1995
|
error: LiveRpcError
|
|
1996
|
-
}),
|
|
1996
|
+
}), make6("SubscribePresence", {
|
|
1997
1997
|
payload: LivePresenceSubscribeInput,
|
|
1998
1998
|
success: LivePresenceSubscriptionMessage,
|
|
1999
1999
|
error: LiveRpcError,
|
|
2000
2000
|
stream: true
|
|
2001
|
-
}),
|
|
2001
|
+
}), make6("ClearPresence", {
|
|
2002
2002
|
payload: { scope: optional(LiveScope) },
|
|
2003
2003
|
error: LiveRpcError
|
|
2004
|
-
}),
|
|
2004
|
+
}), make6("RecordSessionUpdate", {
|
|
2005
2005
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
2006
2006
|
success: SessionUpdate,
|
|
2007
2007
|
error: LiveRpcError
|
|
2008
|
-
}),
|
|
2008
|
+
}), make6("EndSession", {
|
|
2009
2009
|
payload: { sessionId: String4, input: SessionEnd },
|
|
2010
2010
|
success: Session,
|
|
2011
2011
|
error: LiveRpcError
|
|
@@ -2057,7 +2057,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2057
2057
|
})
|
|
2058
2058
|
});
|
|
2059
2059
|
const layer = (isString2(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2060
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2060
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make4(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2061
2061
|
let abandon = () => {};
|
|
2062
2062
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2063
2063
|
abandon = reject;
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isFailure2,
|
|
42
42
|
hasInterrupts,
|
|
43
43
|
makeUnsafe5,
|
|
44
|
-
|
|
44
|
+
make16,
|
|
45
45
|
_await,
|
|
46
46
|
fail5,
|
|
47
47
|
isDoneUnsafe,
|
|
@@ -168,12 +168,12 @@ import {
|
|
|
168
168
|
decodeJsonStringSync,
|
|
169
169
|
encodeUnknownJsonStringSync,
|
|
170
170
|
storable
|
|
171
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-zw3gf6r5.js";
|
|
172
172
|
import {
|
|
173
173
|
Id,
|
|
174
174
|
secretReference,
|
|
175
175
|
secretPlaceholder
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-q5w3v4k1.js";
|
|
177
177
|
import {
|
|
178
178
|
currentTimeMillis,
|
|
179
179
|
SecureRandom,
|
|
@@ -247,7 +247,7 @@ import {
|
|
|
247
247
|
installCommand,
|
|
248
248
|
checkServicesFile,
|
|
249
249
|
checkServices
|
|
250
|
-
} from "./chunk-
|
|
250
|
+
} from "./chunk-wx3cx43j.js";
|
|
251
251
|
import {
|
|
252
252
|
join,
|
|
253
253
|
interrupt,
|
|
@@ -256,7 +256,7 @@ import {
|
|
|
256
256
|
unbounded2,
|
|
257
257
|
offer,
|
|
258
258
|
makeUnsafe3,
|
|
259
|
-
|
|
259
|
+
make11,
|
|
260
260
|
fromQueue,
|
|
261
261
|
fromPubSub,
|
|
262
262
|
map2,
|
|
@@ -288,7 +288,7 @@ import {
|
|
|
288
288
|
writeSrtSettings2,
|
|
289
289
|
srtStepArgv2,
|
|
290
290
|
srtArgv2
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-0h49y8gf.js";
|
|
292
292
|
import {
|
|
293
293
|
writeAgentEnvironmentConfigFile2,
|
|
294
294
|
readManifestSkillPaths2,
|
|
@@ -304,8 +304,8 @@ import {
|
|
|
304
304
|
applyAgentEnvironmentMaterialization2,
|
|
305
305
|
isPathWithin2,
|
|
306
306
|
skillIdentity2
|
|
307
|
-
} from "./chunk-
|
|
308
|
-
import"./chunk-
|
|
307
|
+
} from "./chunk-f0h8f3kw.js";
|
|
308
|
+
import"./chunk-xgdyj09a.js";
|
|
309
309
|
import {
|
|
310
310
|
egressAllowed,
|
|
311
311
|
writeSecretRegistry,
|
|
@@ -315,7 +315,7 @@ import {
|
|
|
315
315
|
secretFilter2,
|
|
316
316
|
opaqueTunnelRefusal2,
|
|
317
317
|
isOpaqueConnectReason2
|
|
318
|
-
} from "./chunk-
|
|
318
|
+
} from "./chunk-y1krmnbv.js";
|
|
319
319
|
import {
|
|
320
320
|
sliceBytes2,
|
|
321
321
|
maxLineBytes2,
|
|
@@ -323,23 +323,23 @@ import {
|
|
|
323
323
|
decodedOption2,
|
|
324
324
|
decoded2,
|
|
325
325
|
readOpencode2
|
|
326
|
-
} from "./chunk-
|
|
326
|
+
} from "./chunk-cbpb2rww.js";
|
|
327
327
|
import {
|
|
328
328
|
uploadRunFile,
|
|
329
329
|
programLease,
|
|
330
330
|
rpcRunFiles,
|
|
331
331
|
programHostsEnv,
|
|
332
332
|
undeclaredHostsEnv
|
|
333
|
-
} from "./chunk-
|
|
334
|
-
import"./chunk-
|
|
333
|
+
} from "./chunk-q44g4vf7.js";
|
|
334
|
+
import"./chunk-51ye0af0.js";
|
|
335
335
|
import {
|
|
336
336
|
nextInt
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-gq7y5v3e.js";
|
|
338
338
|
import {
|
|
339
339
|
ChildProcessSpawner,
|
|
340
|
-
|
|
341
|
-
} from "./chunk-
|
|
342
|
-
import"./chunk-
|
|
340
|
+
make3
|
|
341
|
+
} from "./chunk-mtkstrh3.js";
|
|
342
|
+
import"./chunk-5wnjn5r0.js";
|
|
343
343
|
|
|
344
344
|
// packages/core/src/sync-kit.ts
|
|
345
345
|
import { createHash } from "crypto";
|
|
@@ -7038,7 +7038,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7038
7038
|
const input = yield* unbounded2();
|
|
7039
7039
|
const pending = new Map;
|
|
7040
7040
|
let lastId = 0;
|
|
7041
|
-
const handle = yield* spawner.spawn(
|
|
7041
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
7042
7042
|
cwd: env.home,
|
|
7043
7043
|
extendEnv: true,
|
|
7044
7044
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7061,7 +7061,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7061
7061
|
return {
|
|
7062
7062
|
request: (method, params) => gen(function* () {
|
|
7063
7063
|
const id = ++lastId;
|
|
7064
|
-
const deferred = yield*
|
|
7064
|
+
const deferred = yield* make16();
|
|
7065
7065
|
pending.set(id, deferred);
|
|
7066
7066
|
yield* send({ id, method, params });
|
|
7067
7067
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -7201,10 +7201,10 @@ var handshake = [
|
|
|
7201
7201
|
`).join("");
|
|
7202
7202
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7203
7203
|
const spawner = yield* ChildProcessSpawner;
|
|
7204
|
-
const server = yield* spawner.spawn(
|
|
7204
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7205
7205
|
extendEnv: true,
|
|
7206
7206
|
env: mcp.env,
|
|
7207
|
-
stdin: { stream:
|
|
7207
|
+
stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
7208
7208
|
stderr: "ignore"
|
|
7209
7209
|
}));
|
|
7210
7210
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -7277,8 +7277,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7277
7277
|
};
|
|
7278
7278
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7279
7279
|
const spawner = yield* ChildProcessSpawner;
|
|
7280
|
-
const handle = yield* spawner.spawn(
|
|
7281
|
-
stdin:
|
|
7280
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7281
|
+
stdin: make11(new TextEncoder().encode(stdin)),
|
|
7282
7282
|
stdout: "inherit",
|
|
7283
7283
|
stderr: "inherit",
|
|
7284
7284
|
extendEnv: false,
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
isJsonObject,
|
|
26
26
|
isString2,
|
|
27
27
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zw3gf6r5.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
make11,
|
|
31
31
|
runForEach,
|
|
32
32
|
compiled2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-0h49y8gf.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make3
|
|
37
|
+
} from "./chunk-mtkstrh3.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/opencode-store.ts
|
|
40
40
|
import { lstatSync, readFileSync, realpathSync } from "fs";
|
|
@@ -167,8 +167,8 @@ var opencodeReaderCommand = () => compiled2 ? [process.execPath, "opencode-read"
|
|
|
167
167
|
var isolatedRead = (store, name, input) => gen(function* () {
|
|
168
168
|
const spawner = yield* ChildProcessSpawner;
|
|
169
169
|
const [command, ...args] = opencodeReaderCommand();
|
|
170
|
-
const handle = yield* spawner.spawn(
|
|
171
|
-
stdin:
|
|
170
|
+
const handle = yield* spawner.spawn(make3(command, args, {
|
|
171
|
+
stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
|
|
172
172
|
stderr: "ignore",
|
|
173
173
|
extendEnv: false,
|
|
174
174
|
env: {},
|
|
@@ -25,21 +25,21 @@ import {
|
|
|
25
25
|
isString2,
|
|
26
26
|
encodePrettyJsonString,
|
|
27
27
|
decodeJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zw3gf6r5.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-0h49y8gf.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-wx3cx43j.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-xgdyj09a.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -1488,7 +1488,7 @@ var pathOfLink = (link) => {
|
|
|
1488
1488
|
return page === null ? link : page[1] || "index";
|
|
1489
1489
|
};
|
|
1490
1490
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1491
|
-
var pinnedLink2 = (link, version = "0.12.
|
|
1491
|
+
var pinnedLink2 = (link, version = "0.12.14") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1492
1492
|
var pageOf = (path) => path.split("#")[0];
|
|
1493
1493
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1494
1494
|
function excerpt(text, queryTerms) {
|
|
@@ -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-y1krmnbv.js";
|
|
8
|
+
import"./chunk-q5w3v4k1.js";
|
|
9
|
+
import"./chunk-zw3gf6r5.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|