@kitman-sh/cli 0.42.0 → 0.42.1

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.
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-67ybyzmq.js";
22
+ } from "./chunk-kqr3ts9q.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-5r3j4h21.js";
28
+ } from "./chunk-dgqjmd95.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -176,6 +176,11 @@ import {
176
176
  encodeUnknownJsonStringSync,
177
177
  storable
178
178
  } from "./chunk-bqbfyqx6.js";
179
+ import {
180
+ Id,
181
+ secretReference,
182
+ secretPlaceholder
183
+ } from "./chunk-ea29sbaq.js";
179
184
  import {
180
185
  SecureRandom,
181
186
  layerWebCrypto,
@@ -215,6 +220,7 @@ import {
215
220
  commandTimeoutMillisDefault,
216
221
  commandTextLimit,
217
222
  catchUpPathLimit,
223
+ verificationCap,
218
224
  createId,
219
225
  digestSha256,
220
226
  AgentEvent,
@@ -263,7 +269,7 @@ import {
263
269
  checkServicesFile,
264
270
  checkServices,
265
271
  serviceChecks
266
- } from "./chunk-67ybyzmq.js";
272
+ } from "./chunk-kqr3ts9q.js";
267
273
  import {
268
274
  currentTimeMillis,
269
275
  join,
@@ -328,8 +334,8 @@ import {
328
334
  applyAgentEnvironmentMaterialization2,
329
335
  isPathWithin2,
330
336
  skillIdentity2
331
- } from "./chunk-px1fhc26.js";
332
- import"./chunk-dtbkp9eq.js";
337
+ } from "./chunk-7091bpsv.js";
338
+ import"./chunk-nk35kh6w.js";
333
339
  import {
334
340
  egressAllowed,
335
341
  writeSecretRegistry,
@@ -356,8 +362,8 @@ import {
356
362
  rpcRunFiles,
357
363
  programHostsEnv,
358
364
  undeclaredHostsEnv
359
- } from "./chunk-zzg4b212.js";
360
- import"./chunk-jwtgfc34.js";
365
+ } from "./chunk-7n64vjb2.js";
366
+ import"./chunk-1ay659hm.js";
361
367
  import {
362
368
  nextInt
363
369
  } from "./chunk-8b02x7vv.js";
@@ -366,12 +372,7 @@ import {
366
372
  ChildProcessSpawner,
367
373
  make3
368
374
  } from "./chunk-6x08g7m6.js";
369
- import"./chunk-5r3j4h21.js";
370
- import {
371
- Id,
372
- secretReference,
373
- secretPlaceholder
374
- } from "./chunk-ea29sbaq.js";
375
+ import"./chunk-dgqjmd95.js";
375
376
 
376
377
  // packages/core/src/sync-kit.ts
377
378
  import { createHash } from "crypto";
@@ -4507,6 +4508,10 @@ var systemStepProcessesLayer = effect(StepProcesses, gen(function* () {
4507
4508
  import { availableParallelism } from "os";
4508
4509
  var threadBudget = (cores, concurrency) => Math.max(2, Math.floor(cores / concurrency));
4509
4510
  var hostThreadBudget = (concurrency) => threadBudget(availableParallelism(), concurrency);
4511
+ var checkThreadBudget = (settings) => {
4512
+ const cap = verificationCap(settings);
4513
+ return cap < settings.concurrency ? hostThreadBudget(cap) : undefined;
4514
+ };
4510
4515
  var threadBudgetVariables = [
4511
4516
  "GOMAXPROCS",
4512
4517
  "RAYON_NUM_THREADS",
@@ -4514,7 +4519,7 @@ var threadBudgetVariables = [
4514
4519
  "VITEST_MAX_WORKERS"
4515
4520
  ];
4516
4521
  var threadBudgetNames = new Set(threadBudgetVariables);
4517
- var threadBudgetEnvironment = (budget) => Object.fromEntries(threadBudgetVariables.map((name) => [name, String(budget)]));
4522
+ var threadBudgetEnvironment = (budget) => budget === undefined ? {} : Object.fromEntries(threadBudgetVariables.map((name) => [name, String(budget)]));
4518
4523
  var threadBudgetCollision = (kind, names) => {
4519
4524
  const reserved = names.filter((name) => threadBudgetNames.has(name));
4520
4525
  return reserved.length === 0 ? undefined : `The ${kind} ${reserved.join(", ")} name a thread budget variable, which the Runner sets for every attempt; rename them.`;
@@ -5167,7 +5172,7 @@ var herdrCoreAgentBackendLayer = (options) => effect(AgentBackend, gen(function*
5167
5172
  ...options.srtBinaries === undefined ? undefined : { srtBinaries: options.srtBinaries },
5168
5173
  ...options.docker === undefined ? undefined : { docker: options.docker },
5169
5174
  stepProcesses: yield* StepProcesses,
5170
- threadBudget: options.threadBudget ?? sync2(() => hostThreadBudget(1))
5175
+ threadBudget: options.threadBudget ?? undefined_
5171
5176
  };
5172
5177
  return AgentBackend.of({
5173
5178
  sandboxBackends,
@@ -10048,7 +10053,7 @@ var removeUntracked = (worktree, files) => forEach(chunksOf(files, 200), (some)
10048
10053
  "--",
10049
10054
  ...some.map((file) => `:(literal,top)${file}`)
10050
10055
  ]), { discard: true });
10051
- var afterMergeRunner = (sandbox, threadBudget = hostThreadBudget(1)) => (work, worktree, command, args) => gen(function* () {
10056
+ var afterMergeRunner = (sandbox, threadBudget) => (work, worktree, command, args) => gen(function* () {
10052
10057
  const { repoBinding } = work;
10053
10058
  if (repoBinding === undefined)
10054
10059
  return yield* new AfterMergeUnrun({ message: "The Step has no repository" });
@@ -10208,7 +10213,7 @@ var verificationExecutor = (input) => (work) => gen(function* () {
10208
10213
  failureSummary: "A shared Runner runs verifications only in `srt` or `docker`."
10209
10214
  };
10210
10215
  const cache = yield* tempDirectoryScoped(yield* FileSystem, { prefix: "kitman-verify-cache-" });
10211
- const threadBudget = input.threadBudget ?? hostThreadBudget(1);
10216
+ const threadBudget = input.threadBudget;
10212
10217
  const runIn = checkRunner(work, input.sandbox, cache, yield* inheritedEnvironment2(srtInheritedEnv2), threadBudget);
10213
10218
  const checkouts = runCheckouts(input.rootDir, input.gitCredentials);
10214
10219
  if (work.resolve !== undefined)
@@ -10419,6 +10424,7 @@ export {
10419
10424
  checkPostgresUrl,
10420
10425
  checkRegistryCacheVolume,
10421
10426
  checkRegistryMirrorArgs,
10427
+ checkThreadBudget,
10422
10428
  clearSettledCheckpoints,
10423
10429
  commandFile,
10424
10430
  commandHostProbe,
@@ -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, 2 by default. 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\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.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2214
+ var pinnedLink2 = (link, version = "0.42.1") => 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) {
@@ -23,7 +23,7 @@ import {
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-px1fhc26.js";
26
+ } from "./chunk-7091bpsv.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-67ybyzmq.js";
35
- import"./chunk-dtbkp9eq.js";
36
- import"./chunk-6x08g7m6.js";
34
+ } from "./chunk-kqr3ts9q.js";
37
35
  import"./chunk-ea29sbaq.js";
36
+ import"./chunk-nk35kh6w.js";
37
+ import"./chunk-6x08g7m6.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -253,15 +253,15 @@ import {
253
253
  harnessNames,
254
254
  herdrRunnerCapabilities2,
255
255
  declaredChecks
256
- } from "./chunk-67ybyzmq.js";
257
- import {
258
- ChildProcessSpawner,
259
- make3
260
- } from "./chunk-6x08g7m6.js";
256
+ } from "./chunk-kqr3ts9q.js";
261
257
  import {
262
258
  Id,
263
259
  Timestamp
264
260
  } from "./chunk-ea29sbaq.js";
261
+ import {
262
+ ChildProcessSpawner,
263
+ make3
264
+ } from "./chunk-6x08g7m6.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-netm7d3w.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rv8t9jzj.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-netm7d3w.js")), (module) => module.updateHerdrCore(options))
1335
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rv8t9jzj.js")), (module) => module.updateHerdrCore(options))
1336
1336
  });
1337
1337
  var herdrCoreMissing = (error) => {
1338
1338
  if (isTagged(error, "HerdrCoreMissing"))
@@ -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-01ntfatw.js"));
1799
+ const { syncKitSetup } = yield* promise(() => import("./chunk-6e1fq0ct.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.0";
3294
+ var cliVersion = "0.42.1";
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-ae26brmm.js"));
3559
+ var agentRuntime = promise(() => import("./chunk-4pcknv14.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-r4fs82ar.js"));
5098
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-8q04gtg1.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
- hostThreadBudget,
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(() => hostThreadBudget(live.settings.concurrency)),
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;
@@ -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 }, hostThreadBudget(live.settings.concurrency))(work, worktree, command, args);
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: hostThreadBudget(live.settings.concurrency),
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-mdqc88kx.js"));
5698
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-gf2np1ak.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-v8mfd1bm.js"));
6198
+ var docsModule = promise(() => import("./chunk-p4asjq9r.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-ez61p8ef.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7202
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-evpyks4h.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-ez61p8ef.js")), (build) => build.writeKit);
7222
+ var KitWriter = map9(promise(() => import("./chunk-evpyks4h.js")), (build) => build.writeKit);
7223
7223
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7224
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-ez61p8ef.js")), (build) => build.buildKit(directory))
7224
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-evpyks4h.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) });
@@ -36,10 +36,10 @@ import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-67ybyzmq.js";
39
+ } from "./chunk-kqr3ts9q.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-dtbkp9eq.js";
42
+ } from "./chunk-nk35kh6w.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -175,7 +175,13 @@ import {
175
175
  StepManifest,
176
176
  KitSetup,
177
177
  RunnerRpcError
178
- } from "./chunk-67ybyzmq.js";
178
+ } from "./chunk-kqr3ts9q.js";
179
+ import {
180
+ guard,
181
+ Id,
182
+ Timestamp,
183
+ ActorType
184
+ } from "./chunk-ea29sbaq.js";
179
185
  import {
180
186
  currentTimeMillis,
181
187
  getCurrent,
@@ -187,12 +193,6 @@ import {
187
193
  recommendationProblem,
188
194
  questionAdvice
189
195
  } from "./chunk-98azvx6g.js";
190
- import {
191
- guard,
192
- Id,
193
- Timestamp,
194
- ActorType
195
- } from "./chunk-ea29sbaq.js";
196
196
  var __defProp = Object.defineProperty;
197
197
  var __returnValue = (v) => v;
198
198
  function __exportSetter(name, newValue) {
@@ -4,9 +4,9 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-jwtgfc34.js";
8
- import"./chunk-5r3j4h21.js";
9
- import"./chunk-67ybyzmq.js";
7
+ } from "./chunk-1ay659hm.js";
8
+ import"./chunk-dgqjmd95.js";
9
+ import"./chunk-kqr3ts9q.js";
10
10
  import"./chunk-ea29sbaq.js";
11
11
  import"./chunk-etrfc5cn.js";
12
12
  import"./chunk-bqbfyqx6.js";
@@ -123,7 +123,7 @@ import {
123
123
  ParseOptions,
124
124
  RpcClientDefect,
125
125
  RpcClientError
126
- } from "./chunk-67ybyzmq.js";
126
+ } from "./chunk-kqr3ts9q.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")) {
@@ -36,6 +36,14 @@ import {
36
36
  Json,
37
37
  encodePrettyJsonString
38
38
  } from "./chunk-bqbfyqx6.js";
39
+ import {
40
+ decodeText,
41
+ mkString,
42
+ FileSystem,
43
+ Path,
44
+ withDefault,
45
+ String2
46
+ } from "./chunk-etrfc5cn.js";
39
47
  import {
40
48
  SecureRandom,
41
49
  layerWebCrypto,
@@ -52,34 +60,26 @@ import {
52
60
  KitDeclarations,
53
61
  kitmanMcpServer,
54
62
  RunnerRpcProtocolVersion
55
- } from "./chunk-67ybyzmq.js";
56
- import {
57
- decodeText,
58
- mkString,
59
- FileSystem,
60
- Path,
61
- withDefault,
62
- String2
63
- } from "./chunk-etrfc5cn.js";
63
+ } from "./chunk-kqr3ts9q.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-dtbkp9eq.js";
67
+ } from "./chunk-nk35kh6w.js";
68
+ import"./chunk-ea29sbaq.js";
68
69
  import {
69
70
  stepDefinedTwice,
70
71
  hostSteps,
71
72
  exports_activities,
72
73
  describeFlag,
73
74
  Described
74
- } from "./chunk-zzg4b212.js";
75
- import"./chunk-jwtgfc34.js";
75
+ } from "./chunk-7n64vjb2.js";
76
+ import"./chunk-1ay659hm.js";
76
77
  import"./chunk-98azvx6g.js";
77
78
  import {
78
79
  ChildProcessSpawner,
79
80
  make3
80
81
  } from "./chunk-6x08g7m6.js";
81
- import"./chunk-5r3j4h21.js";
82
- import"./chunk-ea29sbaq.js";
82
+ import"./chunk-dgqjmd95.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
@@ -170,7 +170,13 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-67ybyzmq.js";
173
+ } from "./chunk-kqr3ts9q.js";
174
+ import {
175
+ guard,
176
+ Id,
177
+ Timestamp,
178
+ ActorType
179
+ } from "./chunk-ea29sbaq.js";
174
180
  import {
175
181
  currentTimeMillis,
176
182
  join,
@@ -192,7 +198,7 @@ import {
192
198
  import {
193
199
  searchDocs2,
194
200
  readDoc2
195
- } from "./chunk-mrgeje8k.js";
201
+ } from "./chunk-4v0dkm5t.js";
196
202
  import {
197
203
  nextInt
198
204
  } from "./chunk-8b02x7vv.js";
@@ -205,13 +211,7 @@ import {
205
211
  withHeaders,
206
212
  layerProtocolSocket,
207
213
  ConnectionHooks
208
- } from "./chunk-5r3j4h21.js";
209
- import {
210
- guard,
211
- Id,
212
- Timestamp,
213
- ActorType
214
- } from "./chunk-ea29sbaq.js";
214
+ } from "./chunk-dgqjmd95.js";
215
215
 
216
216
  // apps/cli/src/mcp.ts
217
217
  import { tmpdir as tmpdir2 } from "os";
@@ -333,6 +333,19 @@ import {
333
333
  harnessesUnsupportedInSrt2,
334
334
  harnessesUnsupportedInDocker2
335
335
  } from "./chunk-etrfc5cn.js";
336
+ import {
337
+ isDateTime,
338
+ Numeric,
339
+ isWholeNumber,
340
+ guard,
341
+ Id,
342
+ Timestamp,
343
+ ActorType,
344
+ SecretName,
345
+ SecretScope,
346
+ SecretHosts,
347
+ isSecretReference
348
+ } from "./chunk-ea29sbaq.js";
336
349
  import {
337
350
  isRedacted,
338
351
  make,
@@ -347,19 +360,6 @@ import {
347
360
  parseFdName,
348
361
  fdName
349
362
  } from "./chunk-6x08g7m6.js";
350
- import {
351
- isDateTime,
352
- Numeric,
353
- isWholeNumber,
354
- guard,
355
- Id,
356
- Timestamp,
357
- ActorType,
358
- SecretName,
359
- SecretScope,
360
- SecretHosts,
361
- isSecretReference
362
- } from "./chunk-ea29sbaq.js";
363
363
 
364
364
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Tuple.js
365
365
  var makeEquivalence3 = Tuple;
@@ -8381,7 +8381,7 @@ var RunnerCapabilities = Struct({
8381
8381
  applyChange: optionalKey(Boolean2)
8382
8382
  });
8383
8383
  var MaxRunnerConcurrency = 32;
8384
- var DefaultVerificationConcurrency = 2;
8384
+ var DefaultVerificationConcurrency = MaxRunnerConcurrency;
8385
8385
  var verificationCap = (settings) => Math.min(settings.concurrency, settings.verificationConcurrency);
8386
8386
  var PinnedImage = String4.check(isMaxLength(500), isPattern(new RegExp("^[^\\s@]+@sha256:[a-f0-9]{64}$", "u")));
8387
8387
  var RunnerSettings = Struct({
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-67ybyzmq.js";
42
+ } from "./chunk-kqr3ts9q.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-mrgeje8k.js";
7
+ } from "./chunk-4v0dkm5t.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -12,7 +12,7 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-67ybyzmq.js";
15
+ } from "./chunk-kqr3ts9q.js";
16
16
  import"./chunk-etrfc5cn.js";
17
17
  import"./chunk-bqbfyqx6.js";
18
18
  export {
package/dist/index.js CHANGED
@@ -14,6 +14,6 @@ if (args[0] === "srt") {
14
14
  const { runOpencodeReader } = await import("./chunk-hgvft7vy.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-v9y1ene9.js");
17
+ const { runCli } = await import("./chunk-6xnkbrs7.js");
18
18
  runCli(args);
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kitman-sh/cli",
3
- "version": "0.42.0",
3
+ "version": "0.42.1",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {