@kitman-sh/cli 0.10.57 → 0.10.58
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-a1yf46xt.js → chunk-4jbn6hma.js} +3 -3
- package/dist/{chunk-wd0rvdt4.js → chunk-59n1m39j.js} +8 -8
- package/dist/{chunk-7evwar6b.js → chunk-76y7v9rj.js} +1 -1
- package/dist/{chunk-4kssrezn.js → chunk-8y8ax1bt.js} +1 -1
- package/dist/{chunk-mjzvfh9d.js → chunk-9rxwzn7y.js} +11 -11
- package/dist/{chunk-q5s64k8g.js → chunk-ac19vqmc.js} +61 -61
- package/dist/{chunk-99ver3za.js → chunk-ac851090.js} +4 -4
- package/dist/{chunk-x3mgznk2.js → chunk-ahtfwz4b.js} +2 -2
- package/dist/{chunk-h8s4vh47.js → chunk-bbsh3a70.js} +37 -37
- package/dist/{chunk-nrkwrajj.js → chunk-c6gyfqv4.js} +7 -7
- package/dist/{chunk-g53wn1q8.js → chunk-ec5df6ea.js} +2 -2
- package/dist/{chunk-fmhy6tss.js → chunk-edf91eyv.js} +4 -4
- package/dist/{chunk-23vene3j.js → chunk-hegberew.js} +7 -7
- package/dist/{chunk-gwcqz1bj.js → chunk-jd8xhqgm.js} +1 -1
- package/dist/{chunk-cy5fbrfm.js → chunk-kvv9vzzr.js} +45 -191
- package/dist/{chunk-hwd2gg2f.js → chunk-mfhmj6r6.js} +9 -9
- package/dist/{chunk-253add07.js → chunk-n1m89pnt.js} +5 -5
- package/dist/{chunk-61k67vxh.js → chunk-nk5h4cvx.js} +115 -73
- package/dist/{chunk-jc920h47.js → chunk-qbyxcjy1.js} +11 -11
- package/dist/{chunk-kyqsbr2n.js → chunk-qkbnbr47.js} +22 -22
- package/dist/{chunk-qhpyzn7c.js → chunk-qmmer308.js} +349 -198
- package/dist/{chunk-5tfxtw9z.js → chunk-tr80mjnp.js} +14 -60
- package/dist/{chunk-de4cfe40.js → chunk-zc214v7k.js} +9 -9
- package/dist/{chunk-v43h8s08.js → chunk-zxs37afg.js} +19 -19
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -24,11 +24,11 @@ import {
|
|
|
24
24
|
Record,
|
|
25
25
|
Int,
|
|
26
26
|
fromJsonString
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-nk5h4cvx.js";
|
|
28
28
|
import {
|
|
29
29
|
withDefault,
|
|
30
30
|
String2
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-kvv9vzzr.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-qmmer308.js";
|
|
42
42
|
|
|
43
43
|
// packages/core/src/npm-registry.ts
|
|
44
44
|
var KitManifest = Struct({
|
|
@@ -75,11 +75,16 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-nk5h4cvx.js";
|
|
79
|
+
import {
|
|
80
|
+
runForEach,
|
|
81
|
+
FileSystem
|
|
82
|
+
} from "./chunk-kvv9vzzr.js";
|
|
79
83
|
import {
|
|
80
84
|
guard
|
|
81
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-8y8ax1bt.js";
|
|
82
86
|
import {
|
|
87
|
+
currentTimeMillis,
|
|
83
88
|
WebCrypto,
|
|
84
89
|
SafeJson,
|
|
85
90
|
AgentSandboxNetwork,
|
|
@@ -104,12 +109,7 @@ import {
|
|
|
104
109
|
KitDigest,
|
|
105
110
|
KitSetup,
|
|
106
111
|
RunnerRpcError
|
|
107
|
-
} from "./chunk-
|
|
108
|
-
import {
|
|
109
|
-
currentTimeMillis,
|
|
110
|
-
runForEach,
|
|
111
|
-
FileSystem
|
|
112
|
-
} from "./chunk-cy5fbrfm.js";
|
|
112
|
+
} from "./chunk-qmmer308.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");
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-nk5h4cvx.js";
|
|
22
22
|
|
|
23
23
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
|
|
24
24
|
var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path
|
|
5
|
+
} from "./chunk-kvv9vzzr.js";
|
|
2
6
|
import {
|
|
3
7
|
isObject2,
|
|
4
8
|
isUint8Array,
|
|
@@ -12,30 +16,26 @@ import {
|
|
|
12
16
|
orElseSucceed,
|
|
13
17
|
decodeJsonString,
|
|
14
18
|
encodePrettyJsonString
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import"./chunk-
|
|
19
|
+
} from "./chunk-nk5h4cvx.js";
|
|
20
|
+
import"./chunk-8y8ax1bt.js";
|
|
17
21
|
import {
|
|
18
22
|
isJsonObject
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
FileSystem,
|
|
22
|
-
Path
|
|
23
|
-
} from "./chunk-cy5fbrfm.js";
|
|
23
|
+
} from "./chunk-76y7v9rj.js";
|
|
24
24
|
import {
|
|
25
25
|
tomlTableHeader2,
|
|
26
26
|
tomlKeyPath2,
|
|
27
27
|
kitmanSkillEntry,
|
|
28
28
|
isPathWithin2
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-mfhmj6r6.js";
|
|
30
30
|
import {
|
|
31
31
|
instructionsStart,
|
|
32
32
|
instructionsEnd,
|
|
33
33
|
renderMcpServer,
|
|
34
34
|
materializeKitSetup,
|
|
35
35
|
tomlInline
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import"./chunk-
|
|
38
|
-
import"./chunk-
|
|
36
|
+
} from "./chunk-qmmer308.js";
|
|
37
|
+
import"./chunk-4jbn6hma.js";
|
|
38
|
+
import"./chunk-tr80mjnp.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -5,7 +5,46 @@ import {
|
|
|
5
5
|
isObject,
|
|
6
6
|
isJsonObject,
|
|
7
7
|
isString
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-76y7v9rj.js";
|
|
9
|
+
import {
|
|
10
|
+
join,
|
|
11
|
+
interrupt,
|
|
12
|
+
unbounded,
|
|
13
|
+
publishUnsafe,
|
|
14
|
+
unbounded2,
|
|
15
|
+
offer,
|
|
16
|
+
makeUnsafe3,
|
|
17
|
+
make9,
|
|
18
|
+
fromQueue,
|
|
19
|
+
fromPubSub,
|
|
20
|
+
map2,
|
|
21
|
+
filter,
|
|
22
|
+
decodeText,
|
|
23
|
+
encodeText,
|
|
24
|
+
splitLines,
|
|
25
|
+
run,
|
|
26
|
+
runHead,
|
|
27
|
+
runForEach,
|
|
28
|
+
FileSystem,
|
|
29
|
+
Path,
|
|
30
|
+
embeddedFile,
|
|
31
|
+
extractEmbeddedFile,
|
|
32
|
+
optionalEnv,
|
|
33
|
+
harnessesUnsupportedInSrt2,
|
|
34
|
+
compiled2,
|
|
35
|
+
pinnedSrtCommand2,
|
|
36
|
+
pinnedSrtStepCommand2,
|
|
37
|
+
runSrtCli2,
|
|
38
|
+
kitmanCacheDirectory2,
|
|
39
|
+
srtSettings2,
|
|
40
|
+
srtCacheEnvironment2,
|
|
41
|
+
srtInheritedEnv2,
|
|
42
|
+
inheritedEnvironment2,
|
|
43
|
+
withOnlyEnvironment2,
|
|
44
|
+
writeSrtSettings2,
|
|
45
|
+
srtStepArgv2,
|
|
46
|
+
srtArgv2
|
|
47
|
+
} from "./chunk-kvv9vzzr.js";
|
|
9
48
|
import {
|
|
10
49
|
pipeArguments,
|
|
11
50
|
dual,
|
|
@@ -42,7 +81,7 @@ import {
|
|
|
42
81
|
isFailure2,
|
|
43
82
|
hasInterrupts,
|
|
44
83
|
makeUnsafe5,
|
|
45
|
-
|
|
84
|
+
make14,
|
|
46
85
|
_await,
|
|
47
86
|
fail5,
|
|
48
87
|
isDoneUnsafe,
|
|
@@ -155,12 +194,13 @@ import {
|
|
|
155
194
|
encodePrettyJsonString,
|
|
156
195
|
decodeJsonStringSync,
|
|
157
196
|
encodeUnknownJsonStringSync
|
|
158
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-nk5h4cvx.js";
|
|
159
198
|
import {
|
|
160
199
|
Id,
|
|
161
200
|
secretReference
|
|
162
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-8y8ax1bt.js";
|
|
163
202
|
import {
|
|
203
|
+
currentTimeMillis,
|
|
164
204
|
SecureRandom,
|
|
165
205
|
layerWebCrypto,
|
|
166
206
|
layer,
|
|
@@ -223,47 +263,7 @@ import {
|
|
|
223
263
|
installCommand,
|
|
224
264
|
checkServicesFile,
|
|
225
265
|
checkServices
|
|
226
|
-
} from "./chunk-
|
|
227
|
-
import {
|
|
228
|
-
currentTimeMillis,
|
|
229
|
-
join,
|
|
230
|
-
interrupt,
|
|
231
|
-
unbounded,
|
|
232
|
-
publishUnsafe,
|
|
233
|
-
unbounded2,
|
|
234
|
-
offer,
|
|
235
|
-
makeUnsafe3,
|
|
236
|
-
make11,
|
|
237
|
-
fromQueue,
|
|
238
|
-
fromPubSub,
|
|
239
|
-
map2,
|
|
240
|
-
filter,
|
|
241
|
-
decodeText,
|
|
242
|
-
encodeText,
|
|
243
|
-
splitLines,
|
|
244
|
-
run,
|
|
245
|
-
runHead,
|
|
246
|
-
runForEach,
|
|
247
|
-
FileSystem,
|
|
248
|
-
Path,
|
|
249
|
-
embeddedFile,
|
|
250
|
-
extractEmbeddedFile,
|
|
251
|
-
optionalEnv,
|
|
252
|
-
harnessesUnsupportedInSrt2,
|
|
253
|
-
compiled2,
|
|
254
|
-
pinnedSrtCommand2,
|
|
255
|
-
pinnedSrtStepCommand2,
|
|
256
|
-
runSrtCli2,
|
|
257
|
-
kitmanCacheDirectory2,
|
|
258
|
-
srtSettings2,
|
|
259
|
-
srtCacheEnvironment2,
|
|
260
|
-
srtInheritedEnv2,
|
|
261
|
-
inheritedEnvironment2,
|
|
262
|
-
withOnlyEnvironment2,
|
|
263
|
-
writeSrtSettings2,
|
|
264
|
-
srtStepArgv2,
|
|
265
|
-
srtArgv2
|
|
266
|
-
} from "./chunk-cy5fbrfm.js";
|
|
266
|
+
} from "./chunk-qmmer308.js";
|
|
267
267
|
import {
|
|
268
268
|
writeAgentEnvironmentConfigFile2,
|
|
269
269
|
readManifestSkillPaths2,
|
|
@@ -279,8 +279,8 @@ import {
|
|
|
279
279
|
applyAgentEnvironmentMaterialization2,
|
|
280
280
|
isPathWithin2,
|
|
281
281
|
skillIdentity2
|
|
282
|
-
} from "./chunk-
|
|
283
|
-
import"./chunk-
|
|
282
|
+
} from "./chunk-mfhmj6r6.js";
|
|
283
|
+
import"./chunk-4jbn6hma.js";
|
|
284
284
|
import {
|
|
285
285
|
sliceBytes2,
|
|
286
286
|
maxLineBytes2,
|
|
@@ -288,28 +288,28 @@ import {
|
|
|
288
288
|
decodedOption2,
|
|
289
289
|
decoded2,
|
|
290
290
|
readOpencode2
|
|
291
|
-
} from "./chunk-
|
|
291
|
+
} from "./chunk-qbyxcjy1.js";
|
|
292
292
|
import {
|
|
293
293
|
writeSecretRegistry,
|
|
294
294
|
secretRefusalLog,
|
|
295
295
|
parseSecretRefusals
|
|
296
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-ec5df6ea.js";
|
|
297
297
|
import {
|
|
298
298
|
uploadRunFile,
|
|
299
299
|
programLease,
|
|
300
300
|
rpcRunFiles,
|
|
301
301
|
programHostsEnv,
|
|
302
302
|
undeclaredHostsEnv
|
|
303
|
-
} from "./chunk-
|
|
304
|
-
import"./chunk-
|
|
303
|
+
} from "./chunk-59n1m39j.js";
|
|
304
|
+
import"./chunk-hegberew.js";
|
|
305
305
|
import {
|
|
306
306
|
nextInt
|
|
307
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-jd8xhqgm.js";
|
|
308
308
|
import {
|
|
309
309
|
ChildProcessSpawner,
|
|
310
|
-
|
|
311
|
-
} from "./chunk-
|
|
312
|
-
import"./chunk-
|
|
310
|
+
make2
|
|
311
|
+
} from "./chunk-tr80mjnp.js";
|
|
312
|
+
import"./chunk-zc214v7k.js";
|
|
313
313
|
|
|
314
314
|
// packages/core/src/sync-kit.ts
|
|
315
315
|
import { createHash } from "crypto";
|
|
@@ -5711,7 +5711,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
5711
5711
|
const input = yield* unbounded2();
|
|
5712
5712
|
const pending = new Map;
|
|
5713
5713
|
let lastId = 0;
|
|
5714
|
-
const handle = yield* spawner.spawn(
|
|
5714
|
+
const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
|
|
5715
5715
|
cwd: env.home,
|
|
5716
5716
|
extendEnv: true,
|
|
5717
5717
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -5734,7 +5734,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
5734
5734
|
return {
|
|
5735
5735
|
request: (method, params) => gen(function* () {
|
|
5736
5736
|
const id = ++lastId;
|
|
5737
|
-
const deferred = yield*
|
|
5737
|
+
const deferred = yield* make14();
|
|
5738
5738
|
pending.set(id, deferred);
|
|
5739
5739
|
yield* send({ id, method, params });
|
|
5740
5740
|
return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
|
|
@@ -5874,10 +5874,10 @@ var handshake = [
|
|
|
5874
5874
|
`).join("");
|
|
5875
5875
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
5876
5876
|
const spawner = yield* ChildProcessSpawner;
|
|
5877
|
-
const server = yield* spawner.spawn(
|
|
5877
|
+
const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
|
|
5878
5878
|
extendEnv: true,
|
|
5879
5879
|
env: mcp.env,
|
|
5880
|
-
stdin: { stream:
|
|
5880
|
+
stdin: { stream: make9(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
5881
5881
|
stderr: "ignore"
|
|
5882
5882
|
}));
|
|
5883
5883
|
const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
|
|
@@ -5950,8 +5950,8 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
5950
5950
|
};
|
|
5951
5951
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
5952
5952
|
const spawner = yield* ChildProcessSpawner;
|
|
5953
|
-
const handle = yield* spawner.spawn(
|
|
5954
|
-
stdin:
|
|
5953
|
+
const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
|
|
5954
|
+
stdin: make9(new TextEncoder().encode(stdin)),
|
|
5955
5955
|
stdout: "inherit",
|
|
5956
5956
|
stderr: "inherit",
|
|
5957
5957
|
extendEnv: false,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
3
|
-
import"./chunk-
|
|
4
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-nk5h4cvx.js";
|
|
3
|
+
import"./chunk-8y8ax1bt.js";
|
|
4
|
+
import"./chunk-76y7v9rj.js";
|
|
5
5
|
import {
|
|
6
6
|
decideSecretRequest,
|
|
7
7
|
readSecretRegistry,
|
|
8
8
|
appendSecretRefusals
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ec5df6ea.js";
|
|
10
10
|
|
|
11
11
|
// packages/agent-runtime/src/srt-step.ts
|
|
12
12
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-kvv9vzzr.js";
|
|
18
|
+
import"./chunk-nk5h4cvx.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|
|
@@ -102,8 +102,9 @@ import {
|
|
|
102
102
|
decodeJsonStringOption,
|
|
103
103
|
encodeJsonStringSync,
|
|
104
104
|
encodePrettyJsonString
|
|
105
|
-
} from "./chunk-
|
|
105
|
+
} from "./chunk-nk5h4cvx.js";
|
|
106
106
|
import {
|
|
107
|
+
currentTimeMillis,
|
|
107
108
|
SecureRandom,
|
|
108
109
|
makeUnsafe,
|
|
109
110
|
formatIso,
|
|
@@ -140,8 +141,8 @@ import {
|
|
|
140
141
|
sessionForApi,
|
|
141
142
|
readAuthStore,
|
|
142
143
|
agentCredentialForApi,
|
|
144
|
+
make5,
|
|
143
145
|
make6,
|
|
144
|
-
make7,
|
|
145
146
|
Service,
|
|
146
147
|
shouldRefresh,
|
|
147
148
|
refreshSession,
|
|
@@ -152,13 +153,27 @@ import {
|
|
|
152
153
|
runMcpEffect,
|
|
153
154
|
createAgentAuthSignedFetch,
|
|
154
155
|
setupMcpAgentCredential
|
|
155
|
-
} from "./chunk-
|
|
156
|
+
} from "./chunk-qmmer308.js";
|
|
157
|
+
import {
|
|
158
|
+
join,
|
|
159
|
+
interrupt,
|
|
160
|
+
runForEach,
|
|
161
|
+
FileSystem,
|
|
162
|
+
Path,
|
|
163
|
+
embeddedFile,
|
|
164
|
+
extractEmbeddedFile,
|
|
165
|
+
map3,
|
|
166
|
+
all,
|
|
167
|
+
withDefault,
|
|
168
|
+
option,
|
|
169
|
+
String2
|
|
170
|
+
} from "./chunk-kvv9vzzr.js";
|
|
156
171
|
import {
|
|
157
172
|
guard,
|
|
158
173
|
Id,
|
|
159
174
|
Timestamp,
|
|
160
175
|
ActorType
|
|
161
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-8y8ax1bt.js";
|
|
162
177
|
import {
|
|
163
178
|
toJsonValue,
|
|
164
179
|
isOneOf,
|
|
@@ -172,32 +187,17 @@ import {
|
|
|
172
187
|
isJsonObject,
|
|
173
188
|
isString,
|
|
174
189
|
kindOf
|
|
175
|
-
} from "./chunk-
|
|
176
|
-
import {
|
|
177
|
-
currentTimeMillis,
|
|
178
|
-
join,
|
|
179
|
-
interrupt,
|
|
180
|
-
runForEach,
|
|
181
|
-
FileSystem,
|
|
182
|
-
Path,
|
|
183
|
-
embeddedFile,
|
|
184
|
-
extractEmbeddedFile,
|
|
185
|
-
map3,
|
|
186
|
-
all,
|
|
187
|
-
withDefault,
|
|
188
|
-
option,
|
|
189
|
-
String2
|
|
190
|
-
} from "./chunk-cy5fbrfm.js";
|
|
190
|
+
} from "./chunk-76y7v9rj.js";
|
|
191
191
|
import {
|
|
192
192
|
nextInt
|
|
193
|
-
} from "./chunk-
|
|
193
|
+
} from "./chunk-jd8xhqgm.js";
|
|
194
194
|
import {
|
|
195
195
|
layerJson,
|
|
196
|
-
|
|
196
|
+
make3,
|
|
197
197
|
withHeaders,
|
|
198
198
|
layerProtocolSocket,
|
|
199
199
|
ConnectionHooks
|
|
200
|
-
} from "./chunk-
|
|
200
|
+
} from "./chunk-zc214v7k.js";
|
|
201
201
|
|
|
202
202
|
// apps/cli/src/mcp.ts
|
|
203
203
|
import { tmpdir } from "os";
|
|
@@ -1941,56 +1941,56 @@ var LivePresenceSubscriptionMessage = Union([
|
|
|
1941
1941
|
LivePresenceSubscriptionUpdate
|
|
1942
1942
|
]);
|
|
1943
1943
|
|
|
1944
|
-
class LiveRpcs extends
|
|
1944
|
+
class LiveRpcs extends make6(make5("Session", {
|
|
1945
1945
|
success: Struct({ workspaceId: String4, clientKind: String4 }),
|
|
1946
1946
|
error: LiveRpcError
|
|
1947
|
-
}),
|
|
1947
|
+
}), make5("Subscribe", {
|
|
1948
1948
|
payload: LiveSubscribeInput,
|
|
1949
1949
|
success: LiveSubscriptionMessage,
|
|
1950
1950
|
error: LiveRpcError,
|
|
1951
1951
|
stream: true
|
|
1952
|
-
}),
|
|
1952
|
+
}), make5("Replay", {
|
|
1953
1953
|
payload: LiveReplayInput,
|
|
1954
1954
|
success: ArraySchema(LiveEvent),
|
|
1955
1955
|
error: LiveRpcError
|
|
1956
|
-
}),
|
|
1956
|
+
}), make5("Ack", {
|
|
1957
1957
|
payload: LiveAckInput,
|
|
1958
1958
|
success: LiveAckResult,
|
|
1959
1959
|
error: LiveRpcError
|
|
1960
|
-
}),
|
|
1960
|
+
}), make5("SubscribeWeb", {
|
|
1961
1961
|
payload: LiveWebSubscribeInput,
|
|
1962
1962
|
success: LiveWebSubscriptionMessage,
|
|
1963
1963
|
error: LiveRpcError,
|
|
1964
1964
|
stream: true
|
|
1965
|
-
}),
|
|
1965
|
+
}), make5("SubscriptionStatus", {
|
|
1966
1966
|
payload: { subscriptionId: String4 },
|
|
1967
1967
|
success: LiveSubscriptionStatus,
|
|
1968
1968
|
error: LiveRpcError
|
|
1969
|
-
}),
|
|
1969
|
+
}), make5("ReplayWeb", {
|
|
1970
1970
|
payload: LiveWebReplayInput,
|
|
1971
1971
|
success: LiveWebReplayResult,
|
|
1972
1972
|
error: LiveRpcError
|
|
1973
|
-
}),
|
|
1973
|
+
}), make5("AckWeb", {
|
|
1974
1974
|
payload: LiveWebAckInput,
|
|
1975
1975
|
success: LiveWebAckResult,
|
|
1976
1976
|
error: LiveRpcError
|
|
1977
|
-
}),
|
|
1977
|
+
}), make5("PublishPresence", {
|
|
1978
1978
|
payload: LivePresencePublishInput,
|
|
1979
1979
|
success: LivePresenceEntry,
|
|
1980
1980
|
error: LiveRpcError
|
|
1981
|
-
}),
|
|
1981
|
+
}), make5("SubscribePresence", {
|
|
1982
1982
|
payload: LivePresenceSubscribeInput,
|
|
1983
1983
|
success: LivePresenceSubscriptionMessage,
|
|
1984
1984
|
error: LiveRpcError,
|
|
1985
1985
|
stream: true
|
|
1986
|
-
}),
|
|
1986
|
+
}), make5("ClearPresence", {
|
|
1987
1987
|
payload: { scope: optional(LiveScope) },
|
|
1988
1988
|
error: LiveRpcError
|
|
1989
|
-
}),
|
|
1989
|
+
}), make5("RecordSessionUpdate", {
|
|
1990
1990
|
payload: { sessionId: String4, input: SessionUpdateCreate },
|
|
1991
1991
|
success: SessionUpdate,
|
|
1992
1992
|
error: LiveRpcError
|
|
1993
|
-
}),
|
|
1993
|
+
}), make5("EndSession", {
|
|
1994
1994
|
payload: { sessionId: String4, input: SessionEnd },
|
|
1995
1995
|
success: Session,
|
|
1996
1996
|
error: LiveRpcError
|
|
@@ -2042,7 +2042,7 @@ function connectKitmanLiveRoot(protocol) {
|
|
|
2042
2042
|
})
|
|
2043
2043
|
});
|
|
2044
2044
|
const layer = (isString(protocol) ? liveWebSocketProtocol(protocol) : protocol()).pipe(provideMerge(hooks));
|
|
2045
|
-
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) =>
|
|
2045
|
+
const client = await runPromise(buildWithScope(layer, scope).pipe(flatMap3((context) => make3(LiveRpcs).pipe(provideContext2(context))), provide(scope)));
|
|
2046
2046
|
let abandon = () => {};
|
|
2047
2047
|
const abandoned = new Promise((_resolve, reject) => {
|
|
2048
2048
|
abandon = reject;
|
|
@@ -4,13 +4,13 @@ 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-
|
|
13
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-hegberew.js";
|
|
8
|
+
import"./chunk-zc214v7k.js";
|
|
9
|
+
import"./chunk-qmmer308.js";
|
|
10
|
+
import"./chunk-8y8ax1bt.js";
|
|
11
|
+
import"./chunk-76y7v9rj.js";
|
|
12
|
+
import"./chunk-kvv9vzzr.js";
|
|
13
|
+
import"./chunk-nk5h4cvx.js";
|
|
14
14
|
export {
|
|
15
15
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
16
16
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
ArraySchema,
|
|
12
12
|
decodeJsonStringOption,
|
|
13
13
|
encodeUnknownJsonStringSync
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-nk5h4cvx.js";
|
|
15
15
|
import {
|
|
16
16
|
replaceSecretReferences,
|
|
17
17
|
secretReferencesIn
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-8y8ax1bt.js";
|
|
19
19
|
|
|
20
20
|
// packages/agent-runtime/src/secret-proxy.ts
|
|
21
21
|
import { appendFileSync, readFileSync, renameSync, writeFileSync } from "fs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-tr80mjnp.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-qmmer308.js";
|
|
16
|
+
import"./chunk-kvv9vzzr.js";
|
|
17
|
+
import"./chunk-nk5h4cvx.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-nk5h4cvx.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-kvv9vzzr.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-qmmer308.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make3,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zc214v7k.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* make3(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* make3(ProgramRpcs).pipe(provideContext2(protocol));
|
|
78
78
|
const authorized = authorizer(options);
|
|
79
79
|
return {
|
|
80
80
|
recordActivity: (input) => authorized(client.RecordActivity(input)),
|