@kitman-sh/cli 0.12.10 → 0.12.11
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-gxbcvd4q.js → chunk-0njchsxe.js} +4 -4
- package/dist/{chunk-7afnkx5b.js → chunk-1ghm4zsk.js} +7 -7
- package/dist/{chunk-0h49y8gf.js → chunk-20qmtmt2.js} +17 -17
- package/dist/{chunk-gq7y5v3e.js → chunk-24h0y27w.js} +1 -1
- package/dist/{chunk-azfjx5d8.js → chunk-2dqvrn6w.js} +3 -3
- package/dist/{chunk-mtkstrh3.js → chunk-5f8whb7j.js} +14 -60
- package/dist/{chunk-5zth85pj.js → chunk-73fqehr2.js} +2 -2
- package/dist/{chunk-4w0c1ykv.js → chunk-8a4ffbzt.js} +107 -107
- package/dist/{chunk-7hb5jp84.js → chunk-8gk97z6d.js} +1 -1
- package/dist/{chunk-05sytbsa.js → chunk-9q0g02fa.js} +21 -21
- package/dist/{chunk-fr79hgq2.js → chunk-bk7wagcc.js} +5 -5
- package/dist/{chunk-cmrvjdff.js → chunk-dy4py3gq.js} +1 -1
- package/dist/{chunk-y1krmnbv.js → chunk-ggmwpwhf.js} +2 -2
- package/dist/{chunk-gy9rf14f.js → chunk-mmd7mjv0.js} +3 -3
- package/dist/{chunk-nb1x1swa.js → chunk-p1zn2jqf.js} +11 -11
- package/dist/{chunk-q5w3v4k1.js → chunk-pxvd8w2v.js} +1 -1
- package/dist/{chunk-cbpb2rww.js → chunk-qpfb12g1.js} +7 -7
- package/dist/{chunk-jn7w2ntt.js → chunk-qx20n32j.js} +4 -4
- package/dist/{chunk-gwnyxm1r.js → chunk-rg75c9js.js} +22 -22
- package/dist/{chunk-4gy4ty6k.js → chunk-ssq2j5xm.js} +4 -4
- package/dist/{chunk-en5mb363.js → chunk-vdt7d6ad.js} +23 -23
- package/dist/{chunk-5zhh41gb.js → chunk-vp2xdw4r.js} +4 -4
- package/dist/{chunk-vkg40ysx.js → chunk-x8t3czke.js} +7 -7
- package/dist/{chunk-zw3gf6r5.js → chunk-zgraq2y3.js} +70 -28
- package/dist/{chunk-ywzxwgrz.js → chunk-zp5xdkyw.js} +6 -6
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1481,7 +1481,7 @@ var pathOfLink = (link) => {
|
|
|
1481
1481
|
return page === null ? link : page[1] || "index";
|
|
1482
1482
|
};
|
|
1483
1483
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
1484
|
-
var pinnedLink2 = (link, version = "0.12.
|
|
1484
|
+
var pinnedLink2 = (link, version = "0.12.11") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
1485
1485
|
var pageOf = (path) => path.split("#")[0];
|
|
1486
1486
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
1487
1487
|
function excerpt(text, queryTerms) {
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
succeed,
|
|
13
13
|
isSuccess,
|
|
14
14
|
TaggedError,
|
|
15
|
-
|
|
15
|
+
make15,
|
|
16
16
|
_await,
|
|
17
17
|
fail5,
|
|
18
18
|
succeed5,
|
|
@@ -104,7 +104,7 @@ import {
|
|
|
104
104
|
decodeJsonString,
|
|
105
105
|
encodeJsonStringSync,
|
|
106
106
|
encodePrettyJsonString
|
|
107
|
-
} from "./chunk-
|
|
107
|
+
} from "./chunk-zgraq2y3.js";
|
|
108
108
|
import {
|
|
109
109
|
tap,
|
|
110
110
|
mapError,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
withDefault,
|
|
117
117
|
option,
|
|
118
118
|
String2
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-20qmtmt2.js";
|
|
120
120
|
import {
|
|
121
121
|
currentTimeMillis,
|
|
122
122
|
SecureRandom,
|
|
@@ -166,7 +166,7 @@ import {
|
|
|
166
166
|
digestSha256,
|
|
167
167
|
sha256Hasher,
|
|
168
168
|
raw,
|
|
169
|
-
|
|
169
|
+
make4,
|
|
170
170
|
get,
|
|
171
171
|
put,
|
|
172
172
|
HttpClient,
|
|
@@ -228,14 +228,14 @@ import {
|
|
|
228
228
|
harnessNames,
|
|
229
229
|
herdrRunnerCapabilities2,
|
|
230
230
|
declaredChecks
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-8a4ffbzt.js";
|
|
232
232
|
import {
|
|
233
233
|
Id
|
|
234
|
-
} from "./chunk-
|
|
234
|
+
} from "./chunk-pxvd8w2v.js";
|
|
235
235
|
import {
|
|
236
236
|
ChildProcessSpawner,
|
|
237
|
-
|
|
238
|
-
} from "./chunk-
|
|
237
|
+
make2
|
|
238
|
+
} from "./chunk-5f8whb7j.js";
|
|
239
239
|
|
|
240
240
|
// apps/cli/src/cli-error.ts
|
|
241
241
|
function cliErrorCode(error, status) {
|
|
@@ -989,10 +989,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
989
989
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
990
990
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
991
991
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
992
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
992
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-0njchsxe.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
993
993
|
});
|
|
994
994
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
995
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
995
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-0njchsxe.js")), (module) => module.updateHerdrCore(options))
|
|
996
996
|
});
|
|
997
997
|
var herdrCoreMissing = (error) => {
|
|
998
998
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1412,7 +1412,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1412
1412
|
});
|
|
1413
1413
|
var syncKits = (input) => gen(function* () {
|
|
1414
1414
|
const fs = yield* FileSystem;
|
|
1415
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1415
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-x8t3czke.js"));
|
|
1416
1416
|
const harnesses = yield* syncTargets(input.harness);
|
|
1417
1417
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1418
1418
|
for (const { name, problem } of chain.skipped)
|
|
@@ -1929,7 +1929,7 @@ var ServiceManager = Reference("kitman/cli/ServiceManager", {
|
|
|
1929
1929
|
run: (command, args) => runCommand2(command, args),
|
|
1930
1930
|
attach: (command, args) => gen(function* () {
|
|
1931
1931
|
const spawner = yield* ChildProcessSpawner;
|
|
1932
|
-
const handle = yield* spawner.spawn(
|
|
1932
|
+
const handle = yield* spawner.spawn(make2(command, args, { stdin: "inherit", stdout: "inherit", stderr: "inherit" }));
|
|
1933
1933
|
const exitCode = yield* handle.exitCode;
|
|
1934
1934
|
if (exitCode !== 0)
|
|
1935
1935
|
return yield* new CommandFailed2({ command, reason: `exit code ${exitCode}` });
|
|
@@ -2331,7 +2331,7 @@ var package_default = {
|
|
|
2331
2331
|
};
|
|
2332
2332
|
|
|
2333
2333
|
// apps/cli/src/scaffold.ts
|
|
2334
|
-
var cliVersion = "0.12.
|
|
2334
|
+
var cliVersion = "0.12.11";
|
|
2335
2335
|
var packageJson = (name, scaffold) => `${JSON.stringify({
|
|
2336
2336
|
name,
|
|
2337
2337
|
private: true,
|
|
@@ -2483,7 +2483,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
2483
2483
|
|
|
2484
2484
|
// apps/cli/src/commands.ts
|
|
2485
2485
|
var ClientId = "kitman-cli";
|
|
2486
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
2486
|
+
var agentRuntime = promise(() => import("./chunk-rg75c9js.js"));
|
|
2487
2487
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
2488
2488
|
defaultValue: () => gen(function* () {
|
|
2489
2489
|
const tui = yield* tryPromise({
|
|
@@ -3507,7 +3507,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
3507
3507
|
});
|
|
3508
3508
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
3509
3509
|
defaultValue: () => (options) => gen(function* () {
|
|
3510
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
3510
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-zp5xdkyw.js"));
|
|
3511
3511
|
return yield* makeRunnerRpcClient({
|
|
3512
3512
|
runnerId: options.runnerId,
|
|
3513
3513
|
bearer: options.bearer,
|
|
@@ -3787,7 +3787,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
3787
3787
|
const checkouts = runCheckouts(path.join(runnerRootDir, ".kitman"), rpc.gitCredential);
|
|
3788
3788
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
|
|
3789
3789
|
const platform = yield* context();
|
|
3790
|
-
const updated = yield*
|
|
3790
|
+
const updated = yield* make15();
|
|
3791
3791
|
const scope = yield* scope2;
|
|
3792
3792
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
3793
3793
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -4039,7 +4039,7 @@ function mcpCommand(args) {
|
|
|
4039
4039
|
if (command.action === "run") {
|
|
4040
4040
|
if (command.args.length > 0)
|
|
4041
4041
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
4042
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
4042
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-vdt7d6ad.js"));
|
|
4043
4043
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
4044
4044
|
}
|
|
4045
4045
|
if (command.action !== "setup")
|
|
@@ -4527,7 +4527,7 @@ function programLoopCommand(command) {
|
|
|
4527
4527
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
4528
4528
|
});
|
|
4529
4529
|
}
|
|
4530
|
-
var docsModule = promise(() => import("./chunk-
|
|
4530
|
+
var docsModule = promise(() => import("./chunk-dy4py3gq.js"));
|
|
4531
4531
|
function docsCommand(args) {
|
|
4532
4532
|
return gen(function* () {
|
|
4533
4533
|
const command = parseCommand(args);
|
|
@@ -5361,9 +5361,9 @@ function changeRequestCommand(args) {
|
|
|
5361
5361
|
yield* log(command.action === "approve" ? `Approved ${short} of ${changeRequest.title}. A Run waiting on approval of ${short} resumes; one waiting on another head does not.` : `Requested changes to ${short} of ${changeRequest.title}`);
|
|
5362
5362
|
});
|
|
5363
5363
|
}
|
|
5364
|
-
var KitWriter = map8(promise(() => import("./chunk-
|
|
5364
|
+
var KitWriter = map8(promise(() => import("./chunk-p1zn2jqf.js")), (build) => build.writeKit);
|
|
5365
5365
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
5366
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
5366
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-p1zn2jqf.js")), (build) => build.buildKit(directory))
|
|
5367
5367
|
});
|
|
5368
5368
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
5369
5369
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -6140,7 +6140,7 @@ function downloadPresignedAsset(download, outputPath) {
|
|
|
6140
6140
|
return gen(function* () {
|
|
6141
6141
|
const fs = yield* FileSystem;
|
|
6142
6142
|
const failed = (cause) => new CliError({ message: `Asset download failed: ${String(cause)}` });
|
|
6143
|
-
const response = yield* send(
|
|
6143
|
+
const response = yield* send(make4(download.method)(download.url), failed);
|
|
6144
6144
|
if (response.status < 200 || response.status >= 300)
|
|
6145
6145
|
return yield* new CliError({ message: `Asset download failed with ${response.status}` });
|
|
6146
6146
|
const body = yield* response.arrayBuffer.pipe(mapError2((error) => failed(error.message)));
|
|
@@ -96,7 +96,7 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-zgraq2y3.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-20qmtmt2.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-8a4ffbzt.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 make3 = /* @__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, make3, withHeaders, layerProtocolSocket, ConnectionHooks };
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-zgraq2y3.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-pxvd8w2v.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
opaqueTunnelRefusal2,
|
|
5
5
|
isOpaqueConnectReason2,
|
|
6
6
|
runSrtStep2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-ggmwpwhf.js";
|
|
8
|
+
import"./chunk-pxvd8w2v.js";
|
|
9
|
+
import"./chunk-zgraq2y3.js";
|
|
10
10
|
export {
|
|
11
11
|
isOpaqueConnectReason2 as isOpaqueConnectReason,
|
|
12
12
|
opaqueTunnelRefusal2 as opaqueTunnelRefusal,
|
|
@@ -32,8 +32,8 @@ import {
|
|
|
32
32
|
toCodecJson,
|
|
33
33
|
Json,
|
|
34
34
|
encodePrettyJsonString
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import"./chunk-
|
|
35
|
+
} from "./chunk-zgraq2y3.js";
|
|
36
|
+
import"./chunk-pxvd8w2v.js";
|
|
37
37
|
import {
|
|
38
38
|
SecureRandom,
|
|
39
39
|
layerWebCrypto,
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
layer4,
|
|
46
46
|
kitmanMcpServer,
|
|
47
47
|
RunnerRpcProtocolVersion
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-8a4ffbzt.js";
|
|
49
49
|
import {
|
|
50
50
|
decodeText,
|
|
51
51
|
mkString,
|
|
@@ -53,23 +53,23 @@ import {
|
|
|
53
53
|
Path,
|
|
54
54
|
withDefault,
|
|
55
55
|
String2
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-20qmtmt2.js";
|
|
57
57
|
import {
|
|
58
58
|
Packument,
|
|
59
59
|
tarballMatches
|
|
60
|
-
} from "./chunk-
|
|
61
|
-
import"./chunk-
|
|
60
|
+
} from "./chunk-2dqvrn6w.js";
|
|
61
|
+
import"./chunk-1ghm4zsk.js";
|
|
62
62
|
import {
|
|
63
63
|
AgentDeclaration,
|
|
64
64
|
KitDeclarations,
|
|
65
65
|
describeFlag,
|
|
66
66
|
Described
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-ssq2j5xm.js";
|
|
68
68
|
import {
|
|
69
69
|
ChildProcessSpawner,
|
|
70
|
-
|
|
71
|
-
} from "./chunk-
|
|
72
|
-
import"./chunk-
|
|
70
|
+
make2
|
|
71
|
+
} from "./chunk-5f8whb7j.js";
|
|
72
|
+
import"./chunk-bk7wagcc.js";
|
|
73
73
|
|
|
74
74
|
// packages/sdk/src/build/index.ts
|
|
75
75
|
class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
|
|
@@ -108,7 +108,7 @@ var ConfigAgents = Record(String4, Struct({
|
|
|
108
108
|
}));
|
|
109
109
|
var run = (command, args, cwd) => gen(function* () {
|
|
110
110
|
const spawner = yield* ChildProcessSpawner;
|
|
111
|
-
const handle = yield* spawner.spawn(
|
|
111
|
+
const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
|
|
112
112
|
const [stdout, stderr, exitCode] = yield* all3([
|
|
113
113
|
mkString(decodeText(handle.stdout)),
|
|
114
114
|
mkString(decodeText(handle.stderr)),
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
isMinLength,
|
|
19
19
|
isMaxLength,
|
|
20
20
|
FiniteFromString
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-zgraq2y3.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"];
|
|
@@ -25,16 +25,16 @@ import {
|
|
|
25
25
|
isJsonObject,
|
|
26
26
|
isString2,
|
|
27
27
|
encodeUnknownJsonStringSync
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-zgraq2y3.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
30
|
+
make10,
|
|
31
31
|
runForEach,
|
|
32
32
|
compiled2
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-20qmtmt2.js";
|
|
34
34
|
import {
|
|
35
35
|
ChildProcessSpawner,
|
|
36
|
-
|
|
37
|
-
} from "./chunk-
|
|
36
|
+
make2
|
|
37
|
+
} from "./chunk-5f8whb7j.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(make2(command, args, {
|
|
171
|
+
stdin: make10(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-zgraq2y3.js";
|
|
29
29
|
import {
|
|
30
30
|
FileSystem,
|
|
31
31
|
Path,
|
|
32
32
|
optionalEnv,
|
|
33
33
|
tempDirectoryScoped
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-20qmtmt2.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentHarnessIds,
|
|
37
37
|
sha2562,
|
|
38
38
|
runCommand2
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-8a4ffbzt.js";
|
|
40
40
|
import {
|
|
41
41
|
NpmRegistry
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2dqvrn6w.js";
|
|
43
43
|
|
|
44
44
|
// packages/agent-runtime/src/config-convergence.ts
|
|
45
45
|
var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
|
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
isFailure2,
|
|
42
42
|
hasInterrupts,
|
|
43
43
|
makeUnsafe5,
|
|
44
|
-
|
|
44
|
+
make15,
|
|
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-zgraq2y3.js";
|
|
172
172
|
import {
|
|
173
173
|
Id,
|
|
174
174
|
secretReference,
|
|
175
175
|
secretPlaceholder
|
|
176
|
-
} from "./chunk-
|
|
176
|
+
} from "./chunk-pxvd8w2v.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-8a4ffbzt.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
|
+
make10,
|
|
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-20qmtmt2.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-qx20n32j.js";
|
|
308
|
+
import"./chunk-2dqvrn6w.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-ggmwpwhf.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-qpfb12g1.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-ssq2j5xm.js";
|
|
334
|
+
import"./chunk-1ghm4zsk.js";
|
|
335
335
|
import {
|
|
336
336
|
nextInt
|
|
337
|
-
} from "./chunk-
|
|
337
|
+
} from "./chunk-24h0y27w.js";
|
|
338
338
|
import {
|
|
339
339
|
ChildProcessSpawner,
|
|
340
|
-
|
|
341
|
-
} from "./chunk-
|
|
342
|
-
import"./chunk-
|
|
340
|
+
make2
|
|
341
|
+
} from "./chunk-5f8whb7j.js";
|
|
342
|
+
import"./chunk-bk7wagcc.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(make2(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* make15();
|
|
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(make2(mcp.command, [...mcp.args], {
|
|
7205
7205
|
extendEnv: true,
|
|
7206
7206
|
env: mcp.env,
|
|
7207
|
-
stdin: { stream:
|
|
7207
|
+
stdin: { stream: make10(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(make2(input.bun ?? process.execPath, [file], {
|
|
7281
|
+
stdin: make10(new TextEncoder().encode(stdin)),
|
|
7282
7282
|
stdout: "inherit",
|
|
7283
7283
|
stderr: "inherit",
|
|
7284
7284
|
extendEnv: false,
|
|
@@ -75,10 +75,10 @@ import {
|
|
|
75
75
|
toEquivalence,
|
|
76
76
|
toCodecJson,
|
|
77
77
|
Json
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-zgraq2y3.js";
|
|
79
79
|
import {
|
|
80
80
|
guard
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-pxvd8w2v.js";
|
|
82
82
|
import {
|
|
83
83
|
currentTimeMillis,
|
|
84
84
|
WebCrypto,
|
|
@@ -105,11 +105,11 @@ import {
|
|
|
105
105
|
KitDigest,
|
|
106
106
|
KitSetup,
|
|
107
107
|
RunnerRpcError
|
|
108
|
-
} from "./chunk-
|
|
108
|
+
} from "./chunk-8a4ffbzt.js";
|
|
109
109
|
import {
|
|
110
110
|
runForEach,
|
|
111
111
|
FileSystem
|
|
112
|
-
} from "./chunk-
|
|
112
|
+
} from "./chunk-20qmtmt2.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");
|