@kitman-sh/cli 0.42.0 → 0.42.2
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-v9y1ene9.js → chunk-17715h5w.js} +35 -35
- package/dist/{chunk-mrgeje8k.js → chunk-1gr39h4v.js} +2 -2
- package/dist/{chunk-01ntfatw.js → chunk-1w517sym.js} +7 -7
- package/dist/{chunk-cnryphhh.js → chunk-2bt9e1fj.js} +5 -5
- package/dist/{chunk-ez61p8ef.js → chunk-33zd0yt4.js} +10 -10
- package/dist/{chunk-6x08g7m6.js → chunk-3gax0xq6.js} +2 -2
- package/dist/{chunk-bqbfyqx6.js → chunk-b4td2pgc.js} +61 -61
- package/dist/{chunk-5r3j4h21.js → chunk-c3ms91a6.js} +18 -18
- package/dist/{chunk-wy6gmtd9.js → chunk-dhe1fwhw.js} +2 -2
- package/dist/{chunk-ns26fbmk.js → chunk-drw8m50d.js} +2 -2
- package/dist/{chunk-jwtgfc34.js → chunk-gqgbah9q.js} +6 -6
- package/dist/{chunk-d4vhrja4.js → chunk-hfy8nmat.js} +3 -3
- package/dist/{chunk-netm7d3w.js → chunk-hg9y4ykj.js} +4 -4
- package/dist/{chunk-r4fs82ar.js → chunk-mc0xxx2z.js} +6 -6
- package/dist/{chunk-67ybyzmq.js → chunk-q6qn9c47.js} +266 -110
- package/dist/{chunk-ea29sbaq.js → chunk-qndcafax.js} +1 -1
- package/dist/{chunk-hgvft7vy.js → chunk-r5b36fgg.js} +4 -4
- package/dist/{chunk-ae26brmm.js → chunk-rc4wvjf2.js} +29 -23
- package/dist/{chunk-zzg4b212.js → chunk-re7cr0kk.js} +8 -8
- package/dist/{chunk-etrfc5cn.js → chunk-sasjamqz.js} +29 -178
- package/dist/{chunk-dtbkp9eq.js → chunk-sbk4evb4.js} +3 -3
- package/dist/{chunk-v8mfd1bm.js → chunk-t8y2y7ha.js} +1 -1
- package/dist/{chunk-98azvx6g.js → chunk-tpmyf5mk.js} +1 -1
- package/dist/{chunk-px1fhc26.js → chunk-vjkgbsry.js} +4 -4
- package/dist/{chunk-8b02x7vv.js → chunk-wre79w3z.js} +1 -1
- package/dist/{chunk-mdqc88kx.js → chunk-y6mjtq6n.js} +8 -8
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -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
|
succeed4,
|
|
@@ -109,20 +109,7 @@ import {
|
|
|
109
109
|
decodeJsonStringOption,
|
|
110
110
|
encodeJsonStringSync,
|
|
111
111
|
encodePrettyJsonString
|
|
112
|
-
} from "./chunk-
|
|
113
|
-
import {
|
|
114
|
-
currentTimeMillis,
|
|
115
|
-
tap,
|
|
116
|
-
mapError,
|
|
117
|
-
decodeText,
|
|
118
|
-
run,
|
|
119
|
-
mkString,
|
|
120
|
-
FileSystem,
|
|
121
|
-
Path,
|
|
122
|
-
withDefault,
|
|
123
|
-
option,
|
|
124
|
-
String2
|
|
125
|
-
} from "./chunk-etrfc5cn.js";
|
|
112
|
+
} from "./chunk-b4td2pgc.js";
|
|
126
113
|
import {
|
|
127
114
|
SecureRandom,
|
|
128
115
|
layerWebCrypto,
|
|
@@ -253,15 +240,28 @@ import {
|
|
|
253
240
|
harnessNames,
|
|
254
241
|
herdrRunnerCapabilities2,
|
|
255
242
|
declaredChecks
|
|
256
|
-
} from "./chunk-
|
|
243
|
+
} from "./chunk-q6qn9c47.js";
|
|
244
|
+
import {
|
|
245
|
+
currentTimeMillis,
|
|
246
|
+
tap,
|
|
247
|
+
mapError,
|
|
248
|
+
decodeText,
|
|
249
|
+
run,
|
|
250
|
+
mkString,
|
|
251
|
+
FileSystem,
|
|
252
|
+
Path,
|
|
253
|
+
withDefault,
|
|
254
|
+
option,
|
|
255
|
+
String2
|
|
256
|
+
} from "./chunk-sasjamqz.js";
|
|
257
257
|
import {
|
|
258
258
|
ChildProcessSpawner,
|
|
259
259
|
make3
|
|
260
|
-
} from "./chunk-
|
|
260
|
+
} from "./chunk-3gax0xq6.js";
|
|
261
261
|
import {
|
|
262
262
|
Id,
|
|
263
263
|
Timestamp
|
|
264
|
-
} from "./chunk-
|
|
264
|
+
} from "./chunk-qndcafax.js";
|
|
265
265
|
|
|
266
266
|
// apps/cli/src/cli-error.ts
|
|
267
267
|
function cliErrorCode(error, status) {
|
|
@@ -1329,10 +1329,10 @@ var sandboxMissing = (sandbox, missing) => ({
|
|
|
1329
1329
|
var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
|
|
1330
1330
|
var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
|
|
1331
1331
|
var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
|
|
1332
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1332
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hg9y4ykj.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
|
|
1333
1333
|
});
|
|
1334
1334
|
var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
|
|
1335
|
-
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-
|
|
1335
|
+
defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-hg9y4ykj.js")), (module) => module.updateHerdrCore(options))
|
|
1336
1336
|
});
|
|
1337
1337
|
var herdrCoreMissing = (error) => {
|
|
1338
1338
|
if (isTagged(error, "HerdrCoreMissing"))
|
|
@@ -1643,7 +1643,7 @@ var runnerUpdater = (input) => {
|
|
|
1643
1643
|
const drain = (version) => gen(function* () {
|
|
1644
1644
|
claiming = false;
|
|
1645
1645
|
const since = yield* currentTimeMillis;
|
|
1646
|
-
const switchNow = yield*
|
|
1646
|
+
const switchNow = yield* make15();
|
|
1647
1647
|
if (version !== undefined)
|
|
1648
1648
|
draining = {
|
|
1649
1649
|
report: {
|
|
@@ -1796,7 +1796,7 @@ var syncTargets = (harness) => gen(function* () {
|
|
|
1796
1796
|
});
|
|
1797
1797
|
var syncKits = (input) => gen(function* () {
|
|
1798
1798
|
const fs = yield* FileSystem;
|
|
1799
|
-
const { syncKitSetup } = yield* promise(() => import("./chunk-
|
|
1799
|
+
const { syncKitSetup } = yield* promise(() => import("./chunk-1w517sym.js"));
|
|
1800
1800
|
const harnesses = yield* syncTargets(input.harness);
|
|
1801
1801
|
const chain = yield* input.client.getKitChain(input.workspaceId);
|
|
1802
1802
|
for (const { name, problem } of chain.skipped)
|
|
@@ -3291,7 +3291,7 @@ var shipped_steps_generated_default = {
|
|
|
3291
3291
|
};
|
|
3292
3292
|
|
|
3293
3293
|
// apps/cli/src/scaffold-files.ts
|
|
3294
|
-
var cliVersion = "0.42.
|
|
3294
|
+
var cliVersion = "0.42.2";
|
|
3295
3295
|
var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
|
|
3296
3296
|
var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
|
|
3297
3297
|
var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
|
|
@@ -3556,7 +3556,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
|
|
|
3556
3556
|
|
|
3557
3557
|
// apps/cli/src/commands.ts
|
|
3558
3558
|
var ClientId = "kitman-cli";
|
|
3559
|
-
var agentRuntime = promise(() => import("./chunk-
|
|
3559
|
+
var agentRuntime = promise(() => import("./chunk-rc4wvjf2.js"));
|
|
3560
3560
|
var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
|
|
3561
3561
|
defaultValue: () => gen(function* () {
|
|
3562
3562
|
const tui = yield* tryPromise({
|
|
@@ -5095,7 +5095,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
|
|
|
5095
5095
|
});
|
|
5096
5096
|
var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
|
|
5097
5097
|
defaultValue: () => (options) => gen(function* () {
|
|
5098
|
-
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-
|
|
5098
|
+
const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-mc0xxx2z.js"));
|
|
5099
5099
|
return yield* makeRunnerRpcClient({
|
|
5100
5100
|
runnerId: options.runnerId,
|
|
5101
5101
|
bearer: options.bearer,
|
|
@@ -5205,7 +5205,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5205
5205
|
herdrRunnerCapabilitiesForRepoBinding,
|
|
5206
5206
|
harnessesInSrt,
|
|
5207
5207
|
homeDirectories,
|
|
5208
|
-
|
|
5208
|
+
checkThreadBudget,
|
|
5209
5209
|
kitmanBundles,
|
|
5210
5210
|
kitmanMcpPreflight,
|
|
5211
5211
|
lacksLoginSecret,
|
|
@@ -5379,7 +5379,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5379
5379
|
const root = herdrCoreAgentBackendLayer({
|
|
5380
5380
|
sandboxBackends: host.backends,
|
|
5381
5381
|
srtBinaries,
|
|
5382
|
-
threadBudget: sync2(() =>
|
|
5382
|
+
threadBudget: sync2(() => checkThreadBudget(live.settings)),
|
|
5383
5383
|
...docker === undefined ? undefined : { docker: { ...docker, runnerId: input.runnerId } }
|
|
5384
5384
|
}).pipe(provide2(succeed5(HerdrCore, core)), provide2(succeed5(StepProcesses, stepProcesses)), provide2(layer3));
|
|
5385
5385
|
const activeSlots = new Set;
|
|
@@ -5431,7 +5431,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5431
5431
|
yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map9(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);
|
|
5432
5432
|
yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
|
|
5433
5433
|
const platform = yield* context();
|
|
5434
|
-
const updated = yield*
|
|
5434
|
+
const updated = yield* make15();
|
|
5435
5435
|
const scope = yield* scope2;
|
|
5436
5436
|
const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
|
|
5437
5437
|
const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
|
|
@@ -5530,7 +5530,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5530
5530
|
runnerScope: scope,
|
|
5531
5531
|
runAfterMerge: (work, worktree, command, args) => {
|
|
5532
5532
|
const sandbox = checkSandbox();
|
|
5533
|
-
return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts },
|
|
5533
|
+
return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts }, checkThreadBudget(live.settings))(work, worktree, command, args);
|
|
5534
5534
|
},
|
|
5535
5535
|
runAgent: (work, worktree, session, steered, refused, launched) => flatMap3(currentTimeMillis, (now) => agentBackend.execute({
|
|
5536
5536
|
runnerId: input.runnerId,
|
|
@@ -5586,7 +5586,7 @@ function startCanonicalHerdrRunnerCommand(input) {
|
|
|
5586
5586
|
postgres: dockerCheckPostgres(input.runnerId, replica.id),
|
|
5587
5587
|
...checkDocker === undefined ? undefined : { docker: checkDocker },
|
|
5588
5588
|
runsDeployScripts: personal,
|
|
5589
|
-
threadBudget:
|
|
5589
|
+
threadBudget: checkThreadBudget(live.settings),
|
|
5590
5590
|
revokedSecrets: (unit, secrets) => rpc.heartbeat({ workUnitId: unit.id, lease: leaseOf(unit), secrets: [...secrets] }).pipe(map9((state) => state.revokedSecrets ?? [])),
|
|
5591
5591
|
...sandbox === undefined ? undefined : { sandbox: { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts } }
|
|
5592
5592
|
})(work);
|
|
@@ -5695,7 +5695,7 @@ function mcpCommand(args) {
|
|
|
5695
5695
|
if (command.action === "run") {
|
|
5696
5696
|
if (command.args.length > 0)
|
|
5697
5697
|
return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
|
|
5698
|
-
const { runMcpServerCommand } = yield* promise(() => import("./chunk-
|
|
5698
|
+
const { runMcpServerCommand } = yield* promise(() => import("./chunk-y6mjtq6n.js"));
|
|
5699
5699
|
return yield* runMcpServerCommand({ flags: command.flags });
|
|
5700
5700
|
}
|
|
5701
5701
|
if (command.action !== "setup")
|
|
@@ -6195,7 +6195,7 @@ function programLoopCommand(command) {
|
|
|
6195
6195
|
return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
|
|
6196
6196
|
});
|
|
6197
6197
|
}
|
|
6198
|
-
var docsModule = promise(() => import("./chunk-
|
|
6198
|
+
var docsModule = promise(() => import("./chunk-t8y2y7ha.js"));
|
|
6199
6199
|
function docsCommand(args) {
|
|
6200
6200
|
return gen(function* () {
|
|
6201
6201
|
const command = parseCommand(args);
|
|
@@ -7199,7 +7199,7 @@ function changeRequestCommand(args) {
|
|
|
7199
7199
|
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}`);
|
|
7200
7200
|
});
|
|
7201
7201
|
}
|
|
7202
|
-
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-
|
|
7202
|
+
var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-33zd0yt4.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7203
7203
|
var loopOutline = (command) => gen(function* () {
|
|
7204
7204
|
const path = yield* Path;
|
|
7205
7205
|
const loop = requiredArg(command, "a Loop id");
|
|
@@ -7219,9 +7219,9 @@ var loopOutline = (command) => gen(function* () {
|
|
|
7219
7219
|
`).pipe(mapError2((error) => new CliError({ message: error.message })));
|
|
7220
7220
|
yield* log(`Wrote the outline of ${loop} to ${out}`);
|
|
7221
7221
|
});
|
|
7222
|
-
var KitWriter = map9(promise(() => import("./chunk-
|
|
7222
|
+
var KitWriter = map9(promise(() => import("./chunk-33zd0yt4.js")), (build) => build.writeKit);
|
|
7223
7223
|
var KitBuilder = Reference("kitman/cli/KitBuilder", {
|
|
7224
|
-
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-
|
|
7224
|
+
defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-33zd0yt4.js")), (build) => build.buildKit(directory))
|
|
7225
7225
|
});
|
|
7226
7226
|
var uploadKit = (client, workspaceId, built) => gen(function* () {
|
|
7227
7227
|
yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
|
|
@@ -1320,7 +1320,7 @@ Runners execute StepAttempts in user-controlled environments. A runner advertise
|
|
|
1320
1320
|
path: "runner-operations#runner-settings",
|
|
1321
1321
|
level: 3,
|
|
1322
1322
|
link: "https://kitman.sh/knowledge/docs/runner-operations#runner-settings",
|
|
1323
|
-
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to 32. It applies a change within about 10 seconds, and work in flight finishes first.\n- **Verification concurrency**: how many of those may be Verifications, the checks that test a Step's work
|
|
1323
|
+
text: "### Runner settings\n\nKitman keeps how your Runner behaves, so you change it on the Runner's page in the **Runners** tab, or with `kitman runner settings <runner>`, without touching its service. Its owner, or a Workspace admin, may change it; each change is in its History with who made it, when, and the old and new value (`kitman runner settings history <runner>`).\n\n- **Concurrency**: how many Work Units it runs at once, 1 to 32. It applies a change within about 10 seconds, and work in flight finishes first.\n- **Verification concurrency**: how many of those may be Verifications, the checks that test a Step's work. By default there is no cap: any slot can run one. Set it lower to keep a busy machine responsive; then each check is also told to use the cores divided by this number (through `GOMAXPROCS`, `RAYON_NUM_THREADS`, `UV_THREADPOOL_SIZE` and `VITEST_MAX_WORKERS`). It never runs more of them than its concurrency, even when this setting is higher. Its other slots keep taking agent Steps. It caps each Runner process, so a Runner with several replicas runs that many on each.\n- **Sandbox**: `srt` (the default), `docker` or `host`. New Steps and checks use a change; a running Step keeps its own.\n- **Docker image**: the image `docker` runs agents in, pinned by digest. It applies when the Runner restarts.\n- **Check hosts**: hosts every check this Runner runs, for any Team, may also reach.\n- **Checks' Docker image** and **checks' registry image**: for a pipeline check's own Docker daemon (below), each pinned by digest. They apply when the Runner restarts.\n\n```sh\nkitman runner settings <runner> --concurrency 2 --check-hosts github.com\n```\n\nThe Runner's page shows where what the Runner applies differs from its settings, and why.\n\nA few things stay on your machine, because they start the Runner or protect it: the Runner's id, the API URL and its credential, `KITMAN_RUNNER_FULL_ACCESS`, and your consent to run agents with no sandbox, `KITMAN_RUNNER_ALLOW_FULL_ACCESS=1`. Kitman cannot give that consent, so nobody who can change the Runner's settings, nor a compromised control plane, can turn off your machine's sandbox: a Runner set to `host` on a machine without it runs its agents in `srt` and shows the `full_access_refused` Runner Problem. A Runner set to `host` on a machine with it runs agents that use your own `kitman` login. When Kitman refuses that login, the Runner shows the `cli_session_expired` Runner Problem: run `kitman login` on the machine.\n\nBefore Kitman kept these, they were the environment variables `KITMAN_RUNNER_CONCURRENCY`, `KITMAN_RUNNER_SANDBOX`, `KITMAN_RUNNER_DOCKER_IMAGE`, `KITMAN_RUNNER_CHECK_HOSTS`, `KITMAN_RUNNER_CHECK_DOCKER_IMAGE` and `KITMAN_RUNNER_CHECK_REGISTRY_IMAGE`. The first time a Runner starts on a version with settings, Kitman adopts the values they give, once, for each setting nobody has set yet (a shared Runner's sandbox excepted); after that the Runner ignores them and warns at each start that each one still set is deprecated. Remove them from its service when its settings look right. While `KITMAN_RUNNER_SANDBOX=host` stays set, it counts as your consent to run agents on the host."
|
|
1324
1324
|
},
|
|
1325
1325
|
{
|
|
1326
1326
|
title: "Runner Operations Guide \u203A The sandbox",
|
|
@@ -2211,7 +2211,7 @@ var pathOfLink = (link) => {
|
|
|
2211
2211
|
return page === null ? link : page[1] || "index";
|
|
2212
2212
|
};
|
|
2213
2213
|
var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
|
|
2214
|
-
var pinnedLink2 = (link, version = "0.42.
|
|
2214
|
+
var pinnedLink2 = (link, version = "0.42.2") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
|
|
2215
2215
|
var pageOf = (path) => path.split("#")[0];
|
|
2216
2216
|
var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
|
|
2217
2217
|
function excerpt(text, queryTerms) {
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
isJsonObject,
|
|
14
14
|
decodeJsonString,
|
|
15
15
|
encodePrettyJsonString
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-b4td2pgc.js";
|
|
17
17
|
import {
|
|
18
18
|
FileSystem,
|
|
19
19
|
Path
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-sasjamqz.js";
|
|
21
21
|
import {
|
|
22
22
|
tomlTableHeader2,
|
|
23
23
|
tomlKeyPath2,
|
|
24
24
|
kitmanSkillEntry,
|
|
25
25
|
isPathWithin2
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-vjkgbsry.js";
|
|
27
27
|
import {
|
|
28
28
|
instructionsStart,
|
|
29
29
|
instructionsEnd,
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
antigravityPlugins,
|
|
32
32
|
materializeKitSetup,
|
|
33
33
|
tomlInline
|
|
34
|
-
} from "./chunk-
|
|
35
|
-
import"./chunk-
|
|
36
|
-
import"./chunk-
|
|
37
|
-
import"./chunk-
|
|
34
|
+
} from "./chunk-q6qn9c47.js";
|
|
35
|
+
import"./chunk-sbk4evb4.js";
|
|
36
|
+
import"./chunk-3gax0xq6.js";
|
|
37
|
+
import"./chunk-qndcafax.js";
|
|
38
38
|
|
|
39
39
|
// packages/agent-runtime/src/kit-setup-sync.ts
|
|
40
40
|
class KitSyncError extends TaggedError("KitSyncError") {
|
|
@@ -35,19 +35,19 @@ import {
|
|
|
35
35
|
isJsonObject,
|
|
36
36
|
isString2,
|
|
37
37
|
encodeUnknownJsonStringSync
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-b4td2pgc.js";
|
|
39
39
|
import {
|
|
40
40
|
currentTimeMillis,
|
|
41
|
-
|
|
41
|
+
make10,
|
|
42
42
|
runForEach,
|
|
43
43
|
toPull,
|
|
44
44
|
FileSystem,
|
|
45
45
|
compiled2
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-sasjamqz.js";
|
|
47
47
|
import {
|
|
48
48
|
ChildProcessSpawner,
|
|
49
49
|
make3
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-3gax0xq6.js";
|
|
51
51
|
|
|
52
52
|
// packages/agent-runtime/src/opencode-store.ts
|
|
53
53
|
import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
|
|
@@ -266,7 +266,7 @@ var spawnReader = (request) => gen(function* () {
|
|
|
266
266
|
const spawner = yield* ChildProcessSpawner;
|
|
267
267
|
const [command, ...args] = opencodeReaderCommand();
|
|
268
268
|
return yield* spawner.spawn(make3(command, args, {
|
|
269
|
-
stdin:
|
|
269
|
+
stdin: make10(new TextEncoder().encode(request)),
|
|
270
270
|
stderr: "ignore",
|
|
271
271
|
extendEnv: false,
|
|
272
272
|
env: {},
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
toCodecJson,
|
|
36
36
|
Json,
|
|
37
37
|
encodePrettyJsonString
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-b4td2pgc.js";
|
|
39
39
|
import {
|
|
40
40
|
SecureRandom,
|
|
41
41
|
layerWebCrypto,
|
|
@@ -52,7 +52,7 @@ import {
|
|
|
52
52
|
KitDeclarations,
|
|
53
53
|
kitmanMcpServer,
|
|
54
54
|
RunnerRpcProtocolVersion
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-q6qn9c47.js";
|
|
56
56
|
import {
|
|
57
57
|
decodeText,
|
|
58
58
|
mkString,
|
|
@@ -60,26 +60,26 @@ import {
|
|
|
60
60
|
Path,
|
|
61
61
|
withDefault,
|
|
62
62
|
String2
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-sasjamqz.js";
|
|
64
64
|
import {
|
|
65
65
|
Packument,
|
|
66
66
|
tarballMatches
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-sbk4evb4.js";
|
|
68
68
|
import {
|
|
69
69
|
stepDefinedTwice,
|
|
70
70
|
hostSteps,
|
|
71
71
|
exports_activities,
|
|
72
72
|
describeFlag,
|
|
73
73
|
Described
|
|
74
|
-
} from "./chunk-
|
|
75
|
-
import"./chunk-
|
|
76
|
-
import"./chunk-
|
|
74
|
+
} from "./chunk-re7cr0kk.js";
|
|
75
|
+
import"./chunk-gqgbah9q.js";
|
|
76
|
+
import"./chunk-tpmyf5mk.js";
|
|
77
77
|
import {
|
|
78
78
|
ChildProcessSpawner,
|
|
79
79
|
make3
|
|
80
|
-
} from "./chunk-
|
|
81
|
-
import"./chunk-
|
|
82
|
-
import"./chunk-
|
|
80
|
+
} from "./chunk-3gax0xq6.js";
|
|
81
|
+
import"./chunk-c3ms91a6.js";
|
|
82
|
+
import"./chunk-qndcafax.js";
|
|
83
83
|
|
|
84
84
|
// packages/sdk/src/build/outline/graph.ts
|
|
85
85
|
import {
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
map9,
|
|
23
23
|
raceFirst,
|
|
24
24
|
scoped
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-b4td2pgc.js";
|
|
26
26
|
import {
|
|
27
27
|
unwrap,
|
|
28
28
|
drainFork,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
runCollect,
|
|
32
32
|
runDrain,
|
|
33
33
|
mkString
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-sasjamqz.js";
|
|
35
35
|
|
|
36
36
|
// node_modules/.bun/effect@4.1.2/node_modules/effect/dist/internal/redacted.js
|
|
37
37
|
var redactedRegistry = /* @__PURE__ */ new WeakMap;
|