@kitman-sh/cli 0.12.0-rc.4 → 0.12.0-rc.5
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-t2mr6z38.js → chunk-26mj3vr6.js} +37 -37
- package/dist/{chunk-b50dvx41.js → chunk-2s4x5t92.js} +5 -5
- package/dist/{chunk-74txrt4s.js → chunk-31hk2bjb.js} +4 -4
- package/dist/{chunk-k81ay8y5.js → chunk-3530xts6.js} +10 -10
- package/dist/{chunk-zmcghp8w.js → chunk-5zzfsv07.js} +43 -183
- package/dist/{chunk-ezf2myj0.js → chunk-6x9e1etb.js} +3 -3
- package/dist/{chunk-r1z41qx6.js → chunk-77k89h98.js} +329 -181
- package/dist/{chunk-ydydx55z.js → chunk-bbadvwds.js} +1 -1
- package/dist/{chunk-bq55md8p.js → chunk-bj73db3f.js} +1 -1
- package/dist/{chunk-6b0k02x4.js → chunk-bv9e34qz.js} +1 -1
- package/dist/{chunk-xavcp9se.js → chunk-cegdw7gw.js} +2 -2
- package/dist/{chunk-nzsrse8d.js → chunk-dd8hae73.js} +61 -60
- package/dist/{chunk-kybp1mkk.js → chunk-e838cw9z.js} +11 -11
- package/dist/{chunk-w0aj9mkz.js → chunk-gr816kwr.js} +10 -10
- package/dist/{chunk-ckkpqcfv.js → chunk-hrds2xy2.js} +7 -7
- package/dist/{chunk-e7q2frvs.js → chunk-k9jd2dm0.js} +7 -7
- package/dist/{chunk-w6cm939j.js → chunk-kvm7j3ed.js} +19 -19
- package/dist/{chunk-7kjsvwzv.js → chunk-nc1rxeav.js} +8 -8
- package/dist/{chunk-pw10mq9e.js → chunk-rjdptgqf.js} +4 -4
- package/dist/{chunk-aafxvmj1.js → chunk-s1pjsak4.js} +7 -7
- package/dist/{chunk-xy5f2nv9.js → chunk-s661f8p0.js} +2 -2
- package/dist/{chunk-79gx7ek9.js → chunk-txyp31q5.js} +59 -101
- package/dist/{chunk-qjd6w9sw.js → chunk-x70r99jg.js} +2 -2
- package/dist/{chunk-c9007k48.js → chunk-xmq9zpr1.js} +1 -1
- package/dist/{chunk-jntxtx9j.js → chunk-y2mkzww9.js} +60 -14
- package/dist/{chunk-rjasmnav.js → chunk-yafg281p.js} +39 -26
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-txyp31q5.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"];
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-txyp31q5.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-bv9e34qz.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -6,7 +6,48 @@ import {
|
|
|
6
6
|
isObject,
|
|
7
7
|
isJsonObject,
|
|
8
8
|
isString
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-xmq9zpr1.js";
|
|
10
|
+
import {
|
|
11
|
+
join,
|
|
12
|
+
interrupt,
|
|
13
|
+
unbounded,
|
|
14
|
+
publishUnsafe,
|
|
15
|
+
unbounded2,
|
|
16
|
+
offer,
|
|
17
|
+
makeUnsafe3,
|
|
18
|
+
make10,
|
|
19
|
+
fromQueue,
|
|
20
|
+
fromPubSub,
|
|
21
|
+
map2,
|
|
22
|
+
filter,
|
|
23
|
+
decodeText,
|
|
24
|
+
encodeText,
|
|
25
|
+
splitLines,
|
|
26
|
+
run,
|
|
27
|
+
runHead,
|
|
28
|
+
runForEach,
|
|
29
|
+
FileSystem,
|
|
30
|
+
Path,
|
|
31
|
+
embeddedFile,
|
|
32
|
+
extractEmbeddedFile,
|
|
33
|
+
optionalEnv,
|
|
34
|
+
operatorConfigHome,
|
|
35
|
+
tempDirectoryScoped,
|
|
36
|
+
harnessesUnsupportedInSrt2,
|
|
37
|
+
compiled2,
|
|
38
|
+
pinnedSrtCommand2,
|
|
39
|
+
pinnedSrtStepCommand2,
|
|
40
|
+
runSrtCli2,
|
|
41
|
+
kitmanCacheDirectory2,
|
|
42
|
+
srtSettings2,
|
|
43
|
+
srtCacheEnvironment2,
|
|
44
|
+
srtInheritedEnv2,
|
|
45
|
+
inheritedEnvironment2,
|
|
46
|
+
withOnlyEnvironment2,
|
|
47
|
+
writeSrtSettings2,
|
|
48
|
+
srtStepArgv2,
|
|
49
|
+
srtArgv2
|
|
50
|
+
} from "./chunk-5zzfsv07.js";
|
|
10
51
|
import {
|
|
11
52
|
pipeArguments,
|
|
12
53
|
dual,
|
|
@@ -169,12 +210,12 @@ import {
|
|
|
169
210
|
encodePrettyJsonString,
|
|
170
211
|
decodeJsonStringSync,
|
|
171
212
|
encodeUnknownJsonStringSync
|
|
172
|
-
} from "./chunk-
|
|
213
|
+
} from "./chunk-txyp31q5.js";
|
|
173
214
|
import {
|
|
174
215
|
Id,
|
|
175
216
|
secretReference,
|
|
176
217
|
secretPlaceholder
|
|
177
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-bv9e34qz.js";
|
|
178
219
|
import {
|
|
179
220
|
currentTimeMillis,
|
|
180
221
|
SecureRandom,
|
|
@@ -248,48 +289,7 @@ import {
|
|
|
248
289
|
installCommand,
|
|
249
290
|
checkServicesFile,
|
|
250
291
|
checkServices
|
|
251
|
-
} from "./chunk-
|
|
252
|
-
import {
|
|
253
|
-
join,
|
|
254
|
-
interrupt,
|
|
255
|
-
unbounded,
|
|
256
|
-
publishUnsafe,
|
|
257
|
-
unbounded2,
|
|
258
|
-
offer,
|
|
259
|
-
makeUnsafe3,
|
|
260
|
-
make10,
|
|
261
|
-
fromQueue,
|
|
262
|
-
fromPubSub,
|
|
263
|
-
map2,
|
|
264
|
-
filter,
|
|
265
|
-
decodeText,
|
|
266
|
-
encodeText,
|
|
267
|
-
splitLines,
|
|
268
|
-
run,
|
|
269
|
-
runHead,
|
|
270
|
-
runForEach,
|
|
271
|
-
FileSystem,
|
|
272
|
-
Path,
|
|
273
|
-
embeddedFile,
|
|
274
|
-
extractEmbeddedFile,
|
|
275
|
-
optionalEnv,
|
|
276
|
-
operatorConfigHome,
|
|
277
|
-
tempDirectoryScoped,
|
|
278
|
-
harnessesUnsupportedInSrt2,
|
|
279
|
-
compiled2,
|
|
280
|
-
pinnedSrtCommand2,
|
|
281
|
-
pinnedSrtStepCommand2,
|
|
282
|
-
runSrtCli2,
|
|
283
|
-
kitmanCacheDirectory2,
|
|
284
|
-
srtSettings2,
|
|
285
|
-
srtCacheEnvironment2,
|
|
286
|
-
srtInheritedEnv2,
|
|
287
|
-
inheritedEnvironment2,
|
|
288
|
-
withOnlyEnvironment2,
|
|
289
|
-
writeSrtSettings2,
|
|
290
|
-
srtStepArgv2,
|
|
291
|
-
srtArgv2
|
|
292
|
-
} from "./chunk-zmcghp8w.js";
|
|
292
|
+
} from "./chunk-77k89h98.js";
|
|
293
293
|
import {
|
|
294
294
|
writeAgentEnvironmentConfigFile2,
|
|
295
295
|
readManifestSkillPaths2,
|
|
@@ -305,8 +305,8 @@ import {
|
|
|
305
305
|
applyAgentEnvironmentMaterialization2,
|
|
306
306
|
isPathWithin2,
|
|
307
307
|
skillIdentity2
|
|
308
|
-
} from "./chunk-
|
|
309
|
-
import"./chunk-
|
|
308
|
+
} from "./chunk-gr816kwr.js";
|
|
309
|
+
import"./chunk-6x9e1etb.js";
|
|
310
310
|
import {
|
|
311
311
|
egressAllowed,
|
|
312
312
|
writeSecretRegistry,
|
|
@@ -316,7 +316,7 @@ import {
|
|
|
316
316
|
secretFilter2,
|
|
317
317
|
opaqueTunnelRefusal2,
|
|
318
318
|
isOpaqueConnectReason2
|
|
319
|
-
} from "./chunk-
|
|
319
|
+
} from "./chunk-cegdw7gw.js";
|
|
320
320
|
import {
|
|
321
321
|
sliceBytes2,
|
|
322
322
|
maxLineBytes2,
|
|
@@ -324,23 +324,23 @@ import {
|
|
|
324
324
|
decodedOption2,
|
|
325
325
|
decoded2,
|
|
326
326
|
readOpencode2
|
|
327
|
-
} from "./chunk-
|
|
327
|
+
} from "./chunk-3530xts6.js";
|
|
328
328
|
import {
|
|
329
329
|
uploadRunFile,
|
|
330
330
|
programLease,
|
|
331
331
|
rpcRunFiles,
|
|
332
332
|
programHostsEnv,
|
|
333
333
|
undeclaredHostsEnv
|
|
334
|
-
} from "./chunk-
|
|
335
|
-
import"./chunk-
|
|
334
|
+
} from "./chunk-hrds2xy2.js";
|
|
335
|
+
import"./chunk-k9jd2dm0.js";
|
|
336
336
|
import {
|
|
337
337
|
nextInt
|
|
338
|
-
} from "./chunk-
|
|
338
|
+
} from "./chunk-bj73db3f.js";
|
|
339
339
|
import {
|
|
340
340
|
ChildProcessSpawner,
|
|
341
|
-
|
|
342
|
-
} from "./chunk-
|
|
343
|
-
import"./chunk-
|
|
341
|
+
make3
|
|
342
|
+
} from "./chunk-y2mkzww9.js";
|
|
343
|
+
import"./chunk-nc1rxeav.js";
|
|
344
344
|
|
|
345
345
|
// packages/core/src/sync-kit.ts
|
|
346
346
|
import { createHash } from "crypto";
|
|
@@ -5966,11 +5966,12 @@ var clearSettledCheckpoints = (rpc, checkouts) => gen(function* () {
|
|
|
5966
5966
|
var deleteRef = (checkouts, repoBinding, ref) => gen(function* () {
|
|
5967
5967
|
const repository = yield* checkouts.clone(repoBinding);
|
|
5968
5968
|
const env = yield* checkouts.transferEnv(repoBinding);
|
|
5969
|
-
|
|
5969
|
+
const onOrigin = map8(runCommand2("git", ["-C", repository, "ls-remote", "origin", ref], { env }), (listed) => listed.trim() !== "");
|
|
5970
|
+
if (yield* onOrigin)
|
|
5970
5971
|
yield* runCommand2("git", ["-C", repository, ...stallLimit, "push", "origin", "--delete", ref], {
|
|
5971
5972
|
...transfer,
|
|
5972
5973
|
env
|
|
5973
|
-
});
|
|
5974
|
+
}).pipe(catch_((failed) => flatMap3(orElseSucceed(onOrigin, () => true), (kept) => kept ? fail7(failed) : void_3)));
|
|
5974
5975
|
});
|
|
5975
5976
|
var listenForSignals = (input) => gen(function* () {
|
|
5976
5977
|
const services = yield* context();
|
|
@@ -7013,7 +7014,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
|
|
|
7013
7014
|
const input = yield* unbounded2();
|
|
7014
7015
|
const pending = new Map;
|
|
7015
7016
|
let lastId = 0;
|
|
7016
|
-
const handle = yield* spawner.spawn(
|
|
7017
|
+
const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
|
|
7017
7018
|
cwd: env.home,
|
|
7018
7019
|
extendEnv: true,
|
|
7019
7020
|
env: { HOME: env.home, CODEX_HOME: env.codexHome },
|
|
@@ -7176,7 +7177,7 @@ var handshake = [
|
|
|
7176
7177
|
`).join("");
|
|
7177
7178
|
var kitmanMcpPreflight = (mcp) => gen(function* () {
|
|
7178
7179
|
const spawner = yield* ChildProcessSpawner;
|
|
7179
|
-
const server = yield* spawner.spawn(
|
|
7180
|
+
const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
|
|
7180
7181
|
extendEnv: true,
|
|
7181
7182
|
env: mcp.env,
|
|
7182
7183
|
stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
|
|
@@ -7252,7 +7253,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
|
|
|
7252
7253
|
};
|
|
7253
7254
|
const exitCode = sandbox === undefined ? yield* gen(function* () {
|
|
7254
7255
|
const spawner = yield* ChildProcessSpawner;
|
|
7255
|
-
const handle = yield* spawner.spawn(
|
|
7256
|
+
const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
|
|
7256
7257
|
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7257
7258
|
stdout: "inherit",
|
|
7258
7259
|
stderr: "inherit",
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path
|
|
5
|
+
} from "./chunk-5zzfsv07.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-txyp31q5.js";
|
|
20
|
+
import"./chunk-bv9e34qz.js";
|
|
17
21
|
import {
|
|
18
22
|
isJsonObject
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import {
|
|
21
|
-
FileSystem,
|
|
22
|
-
Path
|
|
23
|
-
} from "./chunk-zmcghp8w.js";
|
|
23
|
+
} from "./chunk-xmq9zpr1.js";
|
|
24
24
|
import {
|
|
25
25
|
tomlTableHeader2,
|
|
26
26
|
tomlKeyPath2,
|
|
27
27
|
kitmanSkillEntry,
|
|
28
28
|
isPathWithin2
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-gr816kwr.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-77k89h98.js";
|
|
37
|
+
import"./chunk-6x9e1etb.js";
|
|
38
|
+
import"./chunk-y2mkzww9.js";
|
|
39
39
|
|
|
40
40
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
41
41
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
FileSystem,
|
|
4
|
+
Path,
|
|
5
|
+
optionalEnv,
|
|
6
|
+
tempDirectoryScoped
|
|
7
|
+
} from "./chunk-5zzfsv07.js";
|
|
2
8
|
import {
|
|
3
9
|
Reference,
|
|
4
10
|
TaggedError,
|
|
@@ -23,25 +29,19 @@ import {
|
|
|
23
29
|
fnUntraced,
|
|
24
30
|
encodePrettyJsonString,
|
|
25
31
|
decodeJsonStringSync
|
|
26
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-txyp31q5.js";
|
|
27
33
|
import {
|
|
28
34
|
isJsonObject,
|
|
29
35
|
isString
|
|
30
|
-
} from "./chunk-
|
|
31
|
-
import {
|
|
32
|
-
FileSystem,
|
|
33
|
-
Path,
|
|
34
|
-
optionalEnv,
|
|
35
|
-
tempDirectoryScoped
|
|
36
|
-
} from "./chunk-zmcghp8w.js";
|
|
36
|
+
} from "./chunk-xmq9zpr1.js";
|
|
37
37
|
import {
|
|
38
38
|
AgentHarnessIds,
|
|
39
39
|
sha2562,
|
|
40
40
|
runCommand2
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-77k89h98.js";
|
|
42
42
|
import {
|
|
43
43
|
NpmRegistry
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-6x9e1etb.js";
|
|
45
45
|
|
|
46
46
|
// packages/agent-runtime/src/config-convergence.ts
|
|
47
47
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -75,10 +75,14 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-txyp31q5.js";
|
|
79
|
+
import {
|
|
80
|
+
runForEach,
|
|
81
|
+
FileSystem
|
|
82
|
+
} from "./chunk-5zzfsv07.js";
|
|
79
83
|
import {
|
|
80
84
|
guard
|
|
81
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-bv9e34qz.js";
|
|
82
86
|
import {
|
|
83
87
|
currentTimeMillis,
|
|
84
88
|
WebCrypto,
|
|
@@ -105,11 +109,7 @@ import {
|
|
|
105
109
|
KitDigest,
|
|
106
110
|
KitSetup,
|
|
107
111
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
109
|
-
import {
|
|
110
|
-
runForEach,
|
|
111
|
-
FileSystem
|
|
112
|
-
} from "./chunk-zmcghp8w.js";
|
|
112
|
+
} from "./chunk-77k89h98.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");
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
gen,
|
|
7
7
|
flatMap3,
|
|
8
8
|
provideContext2
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-txyp31q5.js";
|
|
10
10
|
import {
|
|
11
11
|
runForEach
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-5zzfsv07.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-77k89h98.js";
|
|
23
23
|
import {
|
|
24
24
|
layerJson,
|
|
25
|
-
|
|
25
|
+
make4,
|
|
26
26
|
withHeaders,
|
|
27
27
|
layerProtocolSocket
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-nc1rxeav.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)),
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
|
+
import {
|
|
3
|
+
decodeText,
|
|
4
|
+
mkString,
|
|
5
|
+
FileSystem,
|
|
6
|
+
Path,
|
|
7
|
+
withDefault,
|
|
8
|
+
String2
|
|
9
|
+
} from "./chunk-5zzfsv07.js";
|
|
2
10
|
import {
|
|
3
11
|
isString2,
|
|
4
12
|
hasProperty,
|
|
@@ -32,9 +40,9 @@ import {
|
|
|
32
40
|
toCodecJson,
|
|
33
41
|
Json,
|
|
34
42
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
43
|
+
} from "./chunk-txyp31q5.js";
|
|
44
|
+
import"./chunk-bv9e34qz.js";
|
|
45
|
+
import"./chunk-xmq9zpr1.js";
|
|
38
46
|
import {
|
|
39
47
|
SecureRandom,
|
|
40
48
|
layerWebCrypto,
|
|
@@ -46,31 +54,23 @@ import {
|
|
|
46
54
|
layer4,
|
|
47
55
|
kitmanMcpServer,
|
|
48
56
|
RunnerRpcProtocolVersion
|
|
49
|
-
} from "./chunk-
|
|
50
|
-
import {
|
|
51
|
-
decodeText,
|
|
52
|
-
mkString,
|
|
53
|
-
FileSystem,
|
|
54
|
-
Path,
|
|
55
|
-
withDefault,
|
|
56
|
-
String2
|
|
57
|
-
} from "./chunk-zmcghp8w.js";
|
|
57
|
+
} from "./chunk-77k89h98.js";
|
|
58
58
|
import {
|
|
59
59
|
Packument,
|
|
60
60
|
tarballMatches
|
|
61
|
-
} from "./chunk-
|
|
62
|
-
import"./chunk-
|
|
61
|
+
} from "./chunk-6x9e1etb.js";
|
|
62
|
+
import"./chunk-k9jd2dm0.js";
|
|
63
63
|
import {
|
|
64
64
|
AgentDeclaration,
|
|
65
65
|
KitDeclarations,
|
|
66
66
|
describeFlag,
|
|
67
67
|
Described
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-hrds2xy2.js";
|
|
69
69
|
import {
|
|
70
70
|
ChildProcessSpawner,
|
|
71
|
-
|
|
72
|
-
} from "./chunk-
|
|
73
|
-
import"./chunk-
|
|
71
|
+
make3
|
|
72
|
+
} from "./chunk-y2mkzww9.js";
|
|
73
|
+
import"./chunk-nc1rxeav.js";
|
|
74
74
|
|
|
75
75
|
// packages/sdk/src/build/index.ts
|
|
76
76
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -109,7 +109,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
109
109
|
}));
|
|
110
110
|
var run = (command, args, cwd) => gen(function* () {
|
|
111
111
|
const spawner = yield* ChildProcessSpawner;
|
|
112
|
-
const handle = yield* spawner.spawn(
|
|
112
|
+
const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
|
|
113
113
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
114
114
|
mkString(decodeText(handle.stdout)),
|
|
115
115
|
mkString(decodeText(handle.stderr)),
|
|
@@ -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,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-txyp31q5.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-5zzfsv07.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-77k89h98.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 };
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-cegdw7gw.js";
|
|
8
|
+
import"./chunk-bv9e34qz.js";
|
|
9
|
+
import"./chunk-xmq9zpr1.js";
|
|
10
|
+
import"./chunk-txyp31q5.js";
|
|
11
11
|
export {
|
|
12
12
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
13
13
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -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-k9jd2dm0.js";
|
|
8
|
+
import"./chunk-nc1rxeav.js";
|
|
9
|
+
import"./chunk-77k89h98.js";
|
|
10
|
+
import"./chunk-bv9e34qz.js";
|
|
11
|
+
import"./chunk-xmq9zpr1.js";
|
|
12
|
+
import"./chunk-5zzfsv07.js";
|
|
13
|
+
import"./chunk-txyp31q5.js";
|
|
14
14
|
export {
|
|
15
15
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
16
16
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -14,8 +14,8 @@ import {
|
|
|
14
14
|
writeSrtSettings2,
|
|
15
15
|
srtStepArgv2,
|
|
16
16
|
srtArgv2
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import"./chunk-
|
|
17
|
+
} from "./chunk-5zzfsv07.js";
|
|
18
|
+
import"./chunk-txyp31q5.js";
|
|
19
19
|
export {
|
|
20
20
|
compiled2 as compiled,
|
|
21
21
|
harnessesUnsupportedInSrt2 as harnessesUnsupportedInSrt,
|