@kitman-sh/cli 0.42.2 → 0.43.0
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-q6qn9c47.js → chunk-0qfaf9h3.js} +111 -266
- package/dist/{chunk-gqgbah9q.js → chunk-27e7m975.js} +6 -6
- package/dist/{chunk-3gax0xq6.js → chunk-6x08g7m6.js} +2 -2
- package/dist/{chunk-sbk4evb4.js → chunk-7ygg19wj.js} +3 -3
- package/dist/{chunk-wre79w3z.js → chunk-8b02x7vv.js} +1 -1
- package/dist/{chunk-re7cr0kk.js → chunk-91tvnb8f.js} +8 -8
- package/dist/{chunk-tpmyf5mk.js → chunk-98azvx6g.js} +1 -1
- package/dist/{chunk-17715h5w.js → chunk-b2btevxm.js} +34 -34
- package/dist/{chunk-y6mjtq6n.js → chunk-bbq7q5r6.js} +8 -8
- package/dist/{chunk-b4td2pgc.js → chunk-bqbfyqx6.js} +61 -61
- package/dist/{chunk-33zd0yt4.js → chunk-bqebfc06.js} +17 -17
- package/dist/{chunk-2bt9e1fj.js → chunk-cnryphhh.js} +5 -5
- package/dist/{chunk-hfy8nmat.js → chunk-d4vhrja4.js} +3 -3
- package/dist/{chunk-qndcafax.js → chunk-ea29sbaq.js} +1 -1
- package/dist/{chunk-sasjamqz.js → chunk-etrfc5cn.js} +178 -29
- package/dist/{chunk-vjkgbsry.js → chunk-fbddgx6q.js} +4 -4
- package/dist/{chunk-t8y2y7ha.js → chunk-fekh3jwz.js} +1 -1
- package/dist/{chunk-r5b36fgg.js → chunk-hgvft7vy.js} +4 -4
- package/dist/{chunk-rc4wvjf2.js → chunk-jq5h43a4.js} +43 -24
- package/dist/{chunk-1w517sym.js → chunk-jvwjreb0.js} +7 -7
- package/dist/{chunk-drw8m50d.js → chunk-ns26fbmk.js} +2 -2
- package/dist/{chunk-hg9y4ykj.js → chunk-qqc567gx.js} +4 -4
- package/dist/{chunk-c3ms91a6.js → chunk-qxpwkb5f.js} +18 -18
- package/dist/{chunk-1gr39h4v.js → chunk-rbt72xjw.js} +2 -2
- package/dist/{chunk-mc0xxx2z.js → chunk-wv8kt4rb.js} +6 -6
- package/dist/{chunk-dhe1fwhw.js → chunk-wy6gmtd9.js} +2 -2
- package/dist/index.js +4 -4
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-6x08g7m6.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-0qfaf9h3.js";
|
|
16
|
+
import"./chunk-etrfc5cn.js";
|
|
17
|
+
import"./chunk-bqbfyqx6.js";
|
|
18
18
|
export {
|
|
19
19
|
HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
|
|
20
20
|
HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
add,
|
|
13
13
|
getOrUndefinedUnsafe,
|
|
14
14
|
getUnsafe,
|
|
15
|
-
|
|
15
|
+
get4,
|
|
16
16
|
Reference,
|
|
17
17
|
toMillis,
|
|
18
18
|
isSuccess,
|
|
@@ -96,7 +96,20 @@ import {
|
|
|
96
96
|
Defect,
|
|
97
97
|
Exit,
|
|
98
98
|
toCodecJson
|
|
99
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-bqbfyqx6.js";
|
|
100
|
+
import {
|
|
101
|
+
Clock,
|
|
102
|
+
interrupt,
|
|
103
|
+
getCurrent,
|
|
104
|
+
makeUnsafe2,
|
|
105
|
+
bounded,
|
|
106
|
+
offerAll,
|
|
107
|
+
failCause,
|
|
108
|
+
end,
|
|
109
|
+
shutdownUnsafe,
|
|
110
|
+
fromQueue,
|
|
111
|
+
unwrap
|
|
112
|
+
} from "./chunk-etrfc5cn.js";
|
|
100
113
|
import {
|
|
101
114
|
empty,
|
|
102
115
|
fromInput,
|
|
@@ -110,20 +123,7 @@ import {
|
|
|
110
123
|
ParseOptions,
|
|
111
124
|
RpcClientDefect,
|
|
112
125
|
RpcClientError
|
|
113
|
-
} from "./chunk-
|
|
114
|
-
import {
|
|
115
|
-
Clock,
|
|
116
|
-
interrupt,
|
|
117
|
-
getCurrent,
|
|
118
|
-
makeUnsafe2,
|
|
119
|
-
bounded,
|
|
120
|
-
offerAll,
|
|
121
|
-
failCause,
|
|
122
|
-
end,
|
|
123
|
-
shutdownUnsafe,
|
|
124
|
-
fromQueue,
|
|
125
|
-
unwrap
|
|
126
|
-
} from "./chunk-sasjamqz.js";
|
|
126
|
+
} from "./chunk-0qfaf9h3.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 = get4(services, Scope);
|
|
241
241
|
const entries = new Map;
|
|
242
242
|
let isShutdown = false;
|
|
243
243
|
yield* addFinalizer(scope, withFiber2((parent) => {
|
|
@@ -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 = get4(rpc.annotations, ParseOptions);
|
|
647
647
|
const exitSchema2 = exitSchema(rpc);
|
|
648
648
|
let decodeDiscardExit;
|
|
649
649
|
entry = {
|
|
@@ -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. By default
|
|
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, 32, it runs one Verification per 3 of its machine's cores: 8 on 24 cores, 3 on 8. The cores are those the Runner may use, so a container or pod with a CPU limit of 4 counts 4. Set a number to choose it yourself. When Verifications are capped below the concurrency, each check is also told to use the cores divided by the cap (through `GOMAXPROCS`, `RAYON_NUM_THREADS`, `UV_THREADPOOL_SIZE` and `VITEST_MAX_WORKERS`); tools that read none of these size their own pools. 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.
|
|
2214
|
+
var pinnedLink2 = (link, version = "0.43.0") => 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) {
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
runnerRpcUrl2,
|
|
5
5
|
makeRunnerRpcClient2,
|
|
6
6
|
makeProgramRpcClient2
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
7
|
+
} from "./chunk-27e7m975.js";
|
|
8
|
+
import"./chunk-qxpwkb5f.js";
|
|
9
|
+
import"./chunk-0qfaf9h3.js";
|
|
10
|
+
import"./chunk-ea29sbaq.js";
|
|
11
|
+
import"./chunk-etrfc5cn.js";
|
|
12
|
+
import"./chunk-bqbfyqx6.js";
|
|
13
13
|
export {
|
|
14
14
|
makeProgramRpcClient2 as makeProgramRpcClient,
|
|
15
15
|
makeRunnerRpcClient2 as makeRunnerRpcClient,
|
|
@@ -13,11 +13,11 @@ import {
|
|
|
13
13
|
ArraySchema,
|
|
14
14
|
decodeJsonStringOption,
|
|
15
15
|
encodeUnknownJsonStringSync
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-bqbfyqx6.js";
|
|
17
17
|
import {
|
|
18
18
|
replaceSecretReferences,
|
|
19
19
|
secretReferencesIn
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-ea29sbaq.js";
|
|
21
21
|
|
|
22
22
|
// packages/agent-runtime/src/srt-step.ts
|
|
23
23
|
import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
|
package/dist/index.js
CHANGED
|
@@ -5,15 +5,15 @@
|
|
|
5
5
|
var args = process.argv.slice(2);
|
|
6
6
|
if (args[0] === "srt") {
|
|
7
7
|
process.argv.splice(2, 1);
|
|
8
|
-
const { runSrtCli } = await import("./chunk-
|
|
8
|
+
const { runSrtCli } = await import("./chunk-ns26fbmk.js");
|
|
9
9
|
await runSrtCli();
|
|
10
10
|
} else if (args[0] === "srt-step") {
|
|
11
|
-
const { runSrtStep } = await import("./chunk-
|
|
11
|
+
const { runSrtStep } = await import("./chunk-d4vhrja4.js");
|
|
12
12
|
await runSrtStep(args.slice(1));
|
|
13
13
|
} else if (args[0] === "opencode-read") {
|
|
14
|
-
const { runOpencodeReader } = await import("./chunk-
|
|
14
|
+
const { runOpencodeReader } = await import("./chunk-hgvft7vy.js");
|
|
15
15
|
runOpencodeReader();
|
|
16
16
|
} else {
|
|
17
|
-
const { runCli } = await import("./chunk-
|
|
17
|
+
const { runCli } = await import("./chunk-b2btevxm.js");
|
|
18
18
|
runCli(args);
|
|
19
19
|
}
|