@kitman-sh/cli 0.43.0 → 0.45.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.
Files changed (28) hide show
  1. package/dist/{chunk-8b02x7vv.js → chunk-04wqa07j.js} +1 -1
  2. package/dist/{chunk-27e7m975.js → chunk-0dfg674z.js} +7 -7
  3. package/dist/{chunk-ea29sbaq.js → chunk-4vxbxjf8.js} +1 -1
  4. package/dist/{chunk-91tvnb8f.js → chunk-5gbt1vhm.js} +9 -9
  5. package/dist/{chunk-d4vhrja4.js → chunk-5pjbxhxy.js} +3 -3
  6. package/dist/{chunk-etrfc5cn.js → chunk-5smh4dp2.js} +35 -32
  7. package/dist/{chunk-0qfaf9h3.js → chunk-69y8j7fs.js} +140 -138
  8. package/dist/{chunk-cnryphhh.js → chunk-8gkrs473.js} +7 -7
  9. package/dist/{chunk-b2btevxm.js → chunk-9qvgbp6k.js} +60 -46
  10. package/dist/{chunk-98azvx6g.js → chunk-9ykh05hz.js} +1 -1
  11. package/dist/{chunk-ns26fbmk.js → chunk-a71b15k3.js} +2 -2
  12. package/dist/{chunk-fekh3jwz.js → chunk-e3dv8hzy.js} +1 -1
  13. package/dist/{chunk-7ygg19wj.js → chunk-es6rnmyw.js} +3 -3
  14. package/dist/{chunk-qxpwkb5f.js → chunk-f957cxrx.js} +7 -7
  15. package/dist/{chunk-bbq7q5r6.js → chunk-fmvdwf5h.js} +69 -49
  16. package/dist/{chunk-6x08g7m6.js → chunk-fqh4pj6b.js} +14 -60
  17. package/dist/{chunk-fbddgx6q.js → chunk-g26y214g.js} +4 -4
  18. package/dist/{chunk-bqbfyqx6.js → chunk-k462v2v7.js} +103 -51
  19. package/dist/{chunk-qqc567gx.js → chunk-k7eh8tac.js} +4 -4
  20. package/dist/{chunk-wy6gmtd9.js → chunk-n3jpxd14.js} +2 -2
  21. package/dist/{chunk-rbt72xjw.js → chunk-qzwsh96c.js} +22 -3
  22. package/dist/{chunk-hgvft7vy.js → chunk-tfwgeqx5.js} +4 -4
  23. package/dist/{chunk-bqebfc06.js → chunk-tqv14b4c.js} +12 -12
  24. package/dist/{chunk-jq5h43a4.js → chunk-tx9aey19.js} +287 -59
  25. package/dist/{chunk-wv8kt4rb.js → chunk-yyz9xrc1.js} +6 -6
  26. package/dist/{chunk-jvwjreb0.js → chunk-zx86g3dw.js} +7 -7
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -731,7 +731,7 @@ Once it lands, each Task the original delivers moves back to its Team's first st
731
731
  path: "loop-operations#agents-and-effort",
732
732
  level: 2,
733
733
  link: "https://kitman.sh/knowledge/docs/loop-operations#agents-and-effort",
734
- text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `planned-implementer`, `reviewer`, `plan-reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort; the `plan-reviewer` runs on the same, with Opus at `high` effort; the `planner` runs on Claude Fable 5.2 at `high` effort; and the `implementer` runs on Claude alone, waiting out a known quota reset rather than falling back to Pi. The `planned-implementer` extends `implementer` at `low` effort: Build runs it for the first implementation of a Task that plan review passed, and `implementer` at `medium` for everything else. The implementers and the others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nimport { defineKit } from '@kitman-sh/sdk/loop'\n\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nimport { defineKit } from '@kitman-sh/sdk/loop'\n\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A Step that ran on a later choice than its first is marked on the Run page and in `kitman run show` with the Harness and model it ran on and why its first choice was passed over. The mark follows the latest attempt whose Harness started, which its Runner shows by reporting what the Harness spent or its agent by submitting an Output. A claim alone does not move it: a retry on the first choice clears it once its Harness starts, and an attempt given back before its Harness started, one whose Harness failed to start, and a base sync the Runner found up to date ran no agent and are not marked. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
734
+ text: "## Agents and effort\n\nKitman ships the Agents `implementer`, `planned-implementer`, `reviewer`, `plan-reviewer`, `planner`, `releaser`, `investigator` and `judge`. The `reviewer` runs on Pi with GPT-6.2 Sol, then Claude Opus at `medium` effort; the `plan-reviewer` runs on the same, with Opus at `high` effort; the `planner` runs on Claude Opus at `high` effort; and the `implementer` runs on Claude alone, waiting out a known quota reset rather than falling back to Pi. The `planned-implementer` extends `implementer` at `low` effort: Build runs it for the first implementation of a Task that plan review passed, and `implementer` at `medium` for everything else. The implementers and the others name no model, so a Step runs on whatever model the Runner's harness is logged in to. A Workspace or Team overrides one, such as its harness, model or effort, by declaring an Agent of the same id that extends it, in a Kit it deploys. Each declaration is a layer over the Agent it extends:\n\n```ts\nimport { defineKit } from '@kitman-sh/sdk/loop'\n\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n instructions: `## House rules\nNever approve a migration that edits a released one.`,\n effort: 'high'\n }\n }\n})\n```\n\nA declared Agent replaces only the fields it names. Its instructions merge by `## ` heading:\n\n- A section it names replaces the parent's section with that heading.\n- A new heading is appended.\n- Any text before its first heading replaces the parent's.\n\nAn Agent can list fallbacks for a Runner that does not offer its Harness:\n\n```ts\nimport { defineKit } from '@kitman-sh/sdk/loop'\n\nexport default defineKit({\n agents: {\n reviewer: {\n extends: 'reviewer',\n harness: 'claude',\n effort: 'high',\n fallbacks: [\n { harness: 'codex', model: 'gpt-5.5' },\n { harness: 'pi', effort: 'medium' }\n ]\n }\n }\n})\n```\n\nA Step launches the first choice the claiming Runner offers, and the Run page's Step view shows the choices it skipped and why. A Step that ran on a later choice than its first is marked on the Run page and in `kitman run show` with the Harness and model it ran on and why its first choice was passed over. The mark follows the latest attempt whose Harness started, which its Runner shows by reporting what the Harness spent or its agent by submitting an Output. A claim alone does not move it: a retry on the first choice clears it once its Harness starts, and an attempt given back before its Harness started, one whose Harness failed to start, and a base sync the Runner found up to date ran no agent and are not marked. A fallback with no effort runs at the Agent's effort, and one with no model runs on the Harness's own model. An Agent that extends another inherits its fallbacks; naming `fallbacks` replaces them, and `fallbacks: []` clears them.\n\nEffort (`low`, `medium`, `high` or `xhigh`) is recorded on each StepAttempt. `kitman agent list --team <team>` shows each Agent merged as that Team's Runs resolve it, with the layer each field came from, so a Team Kit's override reads `claude (team)`. Without `--team` it uses the active Team, or only the workspace layer when there is none, and its first line says which."
735
735
  },
736
736
  {
737
737
  title: "Projects and Saved Views",
@@ -1320,7 +1320,26 @@ 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, 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."
1323
+ text: `### Runner settings
1324
+
1325
+ Kitman 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>\`).
1326
+
1327
+ - **Concurrency**: how many Work Units it runs at once, any whole number from 1. It applies a change within about 10 seconds, without a restart, and work in flight finishes first.
1328
+ - **Verification concurrency**: how many of those may be Verifications, the checks that test a Step's work. By default, \`auto\`, it runs one Verification per 3 of its machine's cores, rounded up: 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. The Runner's page shows the number it applies, such as "auto (8 on this machine)". Set a whole number from 1 to choose it yourself; 32 means exactly 32. 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.
1329
+ - **Sandbox**: \`srt\` (the default), \`docker\` or \`host\`. New Steps and checks use a change; a running Step keeps its own.
1330
+ - **Docker image**: the image \`docker\` runs agents in, pinned by digest. It applies when the Runner restarts.
1331
+ - **Check hosts**: hosts every check this Runner runs, for any Team, may also reach.
1332
+ - **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.
1333
+
1334
+ \`\`\`sh
1335
+ kitman runner settings <runner> --concurrency 2 --check-hosts github.com
1336
+ \`\`\`
1337
+
1338
+ The Runner's page shows where what the Runner applies differs from its settings, and why.
1339
+
1340
+ A 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.
1341
+
1342
+ Before 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
1343
  },
1325
1344
  {
1326
1345
  title: "Runner Operations Guide \u203A The sandbox",
@@ -2211,7 +2230,7 @@ var pathOfLink = (link) => {
2211
2230
  return page === null ? link : page[1] || "index";
2212
2231
  };
2213
2232
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
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}/`);
2233
+ var pinnedLink2 = (link, version = "0.45.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2215
2234
  var pageOf = (path) => path.split("#")[0];
2216
2235
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2217
2236
  function excerpt(text, queryTerms) {
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-cnryphhh.js";
13
- import"./chunk-6x08g7m6.js";
14
- import"./chunk-etrfc5cn.js";
15
- import"./chunk-bqbfyqx6.js";
12
+ } from "./chunk-8gkrs473.js";
13
+ import"./chunk-fqh4pj6b.js";
14
+ import"./chunk-5smh4dp2.js";
15
+ import"./chunk-k462v2v7.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -35,7 +35,7 @@ import {
35
35
  toCodecJson,
36
36
  Json,
37
37
  encodePrettyJsonString
38
- } from "./chunk-bqbfyqx6.js";
38
+ } from "./chunk-k462v2v7.js";
39
39
  import {
40
40
  decodeText,
41
41
  mkString,
@@ -43,7 +43,7 @@ import {
43
43
  Path,
44
44
  withDefault,
45
45
  String2
46
- } from "./chunk-etrfc5cn.js";
46
+ } from "./chunk-5smh4dp2.js";
47
47
  import {
48
48
  SecureRandom,
49
49
  layerWebCrypto,
@@ -60,26 +60,26 @@ import {
60
60
  KitDeclarations,
61
61
  kitmanMcpServer,
62
62
  RunnerRpcProtocolVersion
63
- } from "./chunk-0qfaf9h3.js";
63
+ } from "./chunk-69y8j7fs.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-7ygg19wj.js";
67
+ } from "./chunk-es6rnmyw.js";
68
68
  import {
69
69
  stepDefinedTwice,
70
70
  hostSteps,
71
71
  exports_activities,
72
72
  describeFlag,
73
73
  Described
74
- } from "./chunk-91tvnb8f.js";
75
- import"./chunk-27e7m975.js";
76
- import"./chunk-98azvx6g.js";
74
+ } from "./chunk-5gbt1vhm.js";
75
+ import"./chunk-0dfg674z.js";
76
+ import"./chunk-9ykh05hz.js";
77
77
  import {
78
78
  ChildProcessSpawner,
79
- make3
80
- } from "./chunk-6x08g7m6.js";
81
- import"./chunk-qxpwkb5f.js";
82
- import"./chunk-ea29sbaq.js";
79
+ make2
80
+ } from "./chunk-fqh4pj6b.js";
81
+ import"./chunk-f957cxrx.js";
82
+ import"./chunk-4vxbxjf8.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -3891,7 +3891,7 @@ var ConfigAgents = Record(String4, Struct({
3891
3891
  }));
3892
3892
  var run = (command, args, cwd) => gen(function* () {
3893
3893
  const spawner = yield* ChildProcessSpawner;
3894
- const handle = yield* spawner.spawn(make3(command, args, { cwd, stdin: "ignore" }));
3894
+ const handle = yield* spawner.spawn(make2(command, args, { cwd, stdin: "ignore" }));
3895
3895
  const [stdout, stderr, exitCode] = yield* all3([
3896
3896
  mkString(decodeText(handle.stdout)),
3897
3897
  mkString(decodeText(handle.stderr)),