@kitman-sh/cli 0.27.0 → 0.28.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.
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-63cyj9dh.js";
31
+ } from "./chunk-j4b1yvcd.js";
32
32
  import {
33
33
  newerKitmanVersion,
34
34
  digestSha256,
@@ -39,7 +39,7 @@ import {
39
39
  get2,
40
40
  layer4,
41
41
  KitDigest
42
- } from "./chunk-0mg7k9b4.js";
42
+ } from "./chunk-xppw33hz.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-gap0vmj7.js";
2
+ import"./chunk-bsgvmq34.js";
3
3
  import {
4
4
  HERDR_CORE_GENERATION2,
5
5
  HERDR_CORE_INSTALL_COMMAND2,
@@ -12,8 +12,8 @@ import {
12
12
  herdrCoreLayer2,
13
13
  herdrCoreTransportLayer2,
14
14
  updateHerdrCore2
15
- } from "./chunk-0mg7k9b4.js";
16
- import"./chunk-63cyj9dh.js";
15
+ } from "./chunk-xppw33hz.js";
16
+ import"./chunk-j4b1yvcd.js";
17
17
  import"./chunk-h2f26xbd.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
@@ -1,9 +1,4 @@
1
1
  // @bun
2
- import {
3
- make11,
4
- runForEach,
5
- compiled2
6
- } from "./chunk-63cyj9dh.js";
7
2
  import {
8
3
  getOrUndefined,
9
4
  liftThrowable,
@@ -31,10 +26,15 @@ import {
31
26
  isString2,
32
27
  encodeUnknownJsonStringSync
33
28
  } from "./chunk-h2f26xbd.js";
29
+ import {
30
+ make11,
31
+ runForEach,
32
+ compiled2
33
+ } from "./chunk-j4b1yvcd.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-gap0vmj7.js";
37
+ } from "./chunk-bsgvmq34.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -15,7 +15,7 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-63cyj9dh.js";
18
+ } from "./chunk-j4b1yvcd.js";
19
19
  import"./chunk-h2f26xbd.js";
20
20
  export {
21
21
  compiled2 as compiled,
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-63cyj9dh.js";
34
+ } from "./chunk-j4b1yvcd.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;
@@ -170,7 +170,7 @@ import {
170
170
  runMcpEffect,
171
171
  createAgentAuthSignedFetch,
172
172
  setupMcpAgentCredential
173
- } from "./chunk-0mg7k9b4.js";
173
+ } from "./chunk-xppw33hz.js";
174
174
  import {
175
175
  join,
176
176
  interrupt,
@@ -187,11 +187,11 @@ import {
187
187
  withDefault,
188
188
  option,
189
189
  String2
190
- } from "./chunk-63cyj9dh.js";
190
+ } from "./chunk-j4b1yvcd.js";
191
191
  import {
192
192
  searchDocs2,
193
193
  readDoc2
194
- } from "./chunk-kagajztj.js";
194
+ } from "./chunk-w4mr1bhh.js";
195
195
  import {
196
196
  nextInt
197
197
  } from "./chunk-5kqt4bqp.js";
@@ -204,7 +204,7 @@ import {
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-cehbrs1y.js";
207
+ } from "./chunk-vv7zg8rb.js";
208
208
  import {
209
209
  guard,
210
210
  Id,
@@ -1,12 +1,4 @@
1
1
  // @bun
2
- import {
3
- decodeText,
4
- mkString,
5
- FileSystem,
6
- Path,
7
- withDefault,
8
- String2
9
- } from "./chunk-63cyj9dh.js";
10
2
  import {
11
3
  isString,
12
4
  isObject,
@@ -44,6 +36,14 @@ import {
44
36
  Json,
45
37
  encodePrettyJsonString
46
38
  } from "./chunk-h2f26xbd.js";
39
+ import {
40
+ decodeText,
41
+ mkString,
42
+ FileSystem,
43
+ Path,
44
+ withDefault,
45
+ String2
46
+ } from "./chunk-j4b1yvcd.js";
47
47
  import {
48
48
  SecureRandom,
49
49
  layerWebCrypto,
@@ -60,25 +60,25 @@ import {
60
60
  KitDeclarations,
61
61
  kitmanMcpServer,
62
62
  RunnerRpcProtocolVersion
63
- } from "./chunk-0mg7k9b4.js";
63
+ } from "./chunk-xppw33hz.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-yr7np5eb.js";
67
+ } from "./chunk-1vnvmeqr.js";
68
68
  import {
69
69
  stepDefinedTwice,
70
70
  hostSteps,
71
71
  exports_activities,
72
72
  describeFlag,
73
73
  Described
74
- } from "./chunk-3xg9zbmy.js";
75
- import"./chunk-bv4gcq1h.js";
74
+ } from "./chunk-ja48xvcs.js";
75
+ import"./chunk-t6ynnbcb.js";
76
76
  import"./chunk-tsx0347c.js";
77
77
  import {
78
78
  ChildProcessSpawner,
79
79
  make3
80
- } from "./chunk-gap0vmj7.js";
81
- import"./chunk-cehbrs1y.js";
80
+ } from "./chunk-bsgvmq34.js";
81
+ import"./chunk-vv7zg8rb.js";
82
82
  import"./chunk-4qjfn1sa.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
@@ -252,15 +252,6 @@ var makeEquivalence = (equivalence) => {
252
252
  return (self, that) => is(self, that) && is(that, self);
253
253
  };
254
254
 
255
- // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
256
- var BigInt2 = globalThis.BigInt;
257
- var toNumber = (b) => {
258
- if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
259
- return none();
260
- }
261
- return some(Number(b));
262
- };
263
-
264
255
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/ByteSize.js
265
256
  var bigint0 = /* @__PURE__ */ BigInt(0);
266
257
  var bigint1 = /* @__PURE__ */ BigInt(1);
@@ -3644,4 +3635,4 @@ var srtArgv2 = (srtCommand, settingsFile, argv) => [
3644
3635
  ...argv
3645
3636
  ];
3646
3637
 
3647
- export { map, makeEquivalence, toNumber, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
3638
+ export { map, makeEquivalence, bytes, join, interrupt, getCurrent, BadArgument, systemError, badArgument, makeUnsafe2, make8, unbounded, publishUnsafe, make9, bounded, sliding, unbounded2, offer, offerUnsafe, offerAll, fail, failCause, failCauseUnsafe, end, endUnsafe, shutdownUnsafe, take, poll, makeUnsafe3, fromTransform, mapDone, isSink, fromChannel, drain, make10, get3, isStream, fromChannel2, callback, empty2, make11, suspend, fail2, fromQueue, fromPubSub, fromReadableStream, unwrap, map2, tap, drainFork, concat, merge2, filter, catchCause, tapError, mapError, take2, mapAccum, transduce, decodeText, encodeText, splitLines, interruptWhen, ensuring, provideContext, run, runCollect, runFold, runHead, runForEach, runDrain, mkString, mkArrayBuffer, toReadableStreamEffect, FileSystem, make12, FileTypeId, WatchBackend, Path, make13, embeddedFile, extractEmbeddedFile, map3, all, withDefault, option, String2, optionalEnv, operatorConfigHome, tempDirectoryScoped, harnessesUnsupportedInSrt2, harnessesUnsupportedInDocker2, compiled2, pinnedSrtCommand2, pinnedSrtStepCommand2, runSrtCli2, kitmanCacheDirectory2, srtSettings2, srtCacheEnvironment2, srtInheritedEnv2, inheritedEnvironment2, withOnlyEnvironment2, writeSrtSettings2, srtStepArgv2, srtArgv2 };
@@ -139,11 +139,6 @@ import {
139
139
  toCodecJson,
140
140
  Json
141
141
  } from "./chunk-h2f26xbd.js";
142
- import {
143
- getCurrent,
144
- runForEach,
145
- FileSystem
146
- } from "./chunk-63cyj9dh.js";
147
142
  import {
148
143
  currentTimeMillis,
149
144
  WebCrypto,
@@ -181,7 +176,12 @@ import {
181
176
  StepManifest,
182
177
  KitSetup,
183
178
  RunnerRpcError
184
- } from "./chunk-0mg7k9b4.js";
179
+ } from "./chunk-xppw33hz.js";
180
+ import {
181
+ getCurrent,
182
+ runForEach,
183
+ FileSystem
184
+ } from "./chunk-j4b1yvcd.js";
185
185
  import {
186
186
  splitQuestionOptions,
187
187
  recommendationProblem,
@@ -173,52 +173,6 @@ import {
173
173
  encodeUnknownJsonStringSync,
174
174
  storable
175
175
  } from "./chunk-h2f26xbd.js";
176
- import {
177
- join,
178
- interrupt,
179
- unbounded,
180
- publishUnsafe,
181
- unbounded2,
182
- offer,
183
- makeUnsafe3,
184
- make11,
185
- fromQueue,
186
- fromPubSub,
187
- map2,
188
- filter,
189
- take2,
190
- mapAccum,
191
- decodeText,
192
- encodeText,
193
- splitLines,
194
- run,
195
- runCollect,
196
- runFold,
197
- runHead,
198
- runForEach,
199
- FileSystem,
200
- Path,
201
- embeddedFile,
202
- extractEmbeddedFile,
203
- optionalEnv,
204
- operatorConfigHome,
205
- tempDirectoryScoped,
206
- harnessesUnsupportedInSrt2,
207
- harnessesUnsupportedInDocker2,
208
- compiled2,
209
- pinnedSrtCommand2,
210
- pinnedSrtStepCommand2,
211
- runSrtCli2,
212
- kitmanCacheDirectory2,
213
- srtSettings2,
214
- srtCacheEnvironment2,
215
- srtInheritedEnv2,
216
- inheritedEnvironment2,
217
- withOnlyEnvironment2,
218
- writeSrtSettings2,
219
- srtStepArgv2,
220
- srtArgv2
221
- } from "./chunk-63cyj9dh.js";
222
176
  import {
223
177
  currentTimeMillis,
224
178
  SecureRandom,
@@ -307,7 +261,53 @@ import {
307
261
  checkServicesFile,
308
262
  checkServices,
309
263
  serviceChecks
310
- } from "./chunk-0mg7k9b4.js";
264
+ } from "./chunk-xppw33hz.js";
265
+ import {
266
+ join,
267
+ interrupt,
268
+ unbounded,
269
+ publishUnsafe,
270
+ unbounded2,
271
+ offer,
272
+ makeUnsafe3,
273
+ make11,
274
+ fromQueue,
275
+ fromPubSub,
276
+ map2,
277
+ filter,
278
+ take2,
279
+ mapAccum,
280
+ decodeText,
281
+ encodeText,
282
+ splitLines,
283
+ run,
284
+ runCollect,
285
+ runFold,
286
+ runHead,
287
+ runForEach,
288
+ FileSystem,
289
+ Path,
290
+ embeddedFile,
291
+ extractEmbeddedFile,
292
+ optionalEnv,
293
+ operatorConfigHome,
294
+ tempDirectoryScoped,
295
+ harnessesUnsupportedInSrt2,
296
+ harnessesUnsupportedInDocker2,
297
+ compiled2,
298
+ pinnedSrtCommand2,
299
+ pinnedSrtStepCommand2,
300
+ runSrtCli2,
301
+ kitmanCacheDirectory2,
302
+ srtSettings2,
303
+ srtCacheEnvironment2,
304
+ srtInheritedEnv2,
305
+ inheritedEnvironment2,
306
+ withOnlyEnvironment2,
307
+ writeSrtSettings2,
308
+ srtStepArgv2,
309
+ srtArgv2
310
+ } from "./chunk-j4b1yvcd.js";
311
311
  import {
312
312
  writeAgentEnvironmentConfigFile2,
313
313
  readManifestSkillPaths2,
@@ -323,8 +323,8 @@ import {
323
323
  applyAgentEnvironmentMaterialization2,
324
324
  isPathWithin2,
325
325
  skillIdentity2
326
- } from "./chunk-yaa3gkpx.js";
327
- import"./chunk-yr7np5eb.js";
326
+ } from "./chunk-zysde2fp.js";
327
+ import"./chunk-1vnvmeqr.js";
328
328
  import {
329
329
  egressAllowed,
330
330
  writeSecretRegistry,
@@ -342,15 +342,15 @@ import {
342
342
  decodedOption2,
343
343
  decoded2,
344
344
  readOpencode2
345
- } from "./chunk-my92qn4x.js";
345
+ } from "./chunk-7re3n1ze.js";
346
346
  import {
347
347
  uploadRunFile,
348
348
  programLease,
349
349
  rpcRunFiles,
350
350
  programHostsEnv,
351
351
  undeclaredHostsEnv
352
- } from "./chunk-3xg9zbmy.js";
353
- import"./chunk-bv4gcq1h.js";
352
+ } from "./chunk-ja48xvcs.js";
353
+ import"./chunk-t6ynnbcb.js";
354
354
  import {
355
355
  nextInt
356
356
  } from "./chunk-5kqt4bqp.js";
@@ -358,8 +358,8 @@ import"./chunk-tsx0347c.js";
358
358
  import {
359
359
  ChildProcessSpawner,
360
360
  make3
361
- } from "./chunk-gap0vmj7.js";
362
- import"./chunk-cehbrs1y.js";
361
+ } from "./chunk-bsgvmq34.js";
362
+ import"./chunk-vv7zg8rb.js";
363
363
  import {
364
364
  Id,
365
365
  secretReference,
@@ -4152,6 +4152,23 @@ var systemStepProcessesLayer = effect(StepProcesses, gen(function* () {
4152
4152
  return makeStepProcesses(table, { scopes: yield* systemdScopes });
4153
4153
  }));
4154
4154
 
4155
+ // packages/agent-runtime/src/thread-budget.ts
4156
+ import { availableParallelism } from "os";
4157
+ var threadBudget = (cores, concurrency) => Math.max(2, Math.floor(cores / concurrency));
4158
+ var hostThreadBudget = (concurrency) => threadBudget(availableParallelism(), concurrency);
4159
+ var threadBudgetVariables = [
4160
+ "GOMAXPROCS",
4161
+ "RAYON_NUM_THREADS",
4162
+ "UV_THREADPOOL_SIZE",
4163
+ "VITEST_MAX_WORKERS"
4164
+ ];
4165
+ var threadBudgetNames = new Set(threadBudgetVariables);
4166
+ var threadBudgetEnvironment = (budget) => Object.fromEntries(threadBudgetVariables.map((name) => [name, String(budget)]));
4167
+ var threadBudgetCollision = (kind, names) => {
4168
+ const reserved = names.filter((name) => threadBudgetNames.has(name));
4169
+ return reserved.length === 0 ? undefined : `The ${kind} ${reserved.join(", ")} name a thread budget variable, which the Runner sets for every attempt; rename them.`;
4170
+ };
4171
+
4155
4172
  // packages/agent-runtime/src/herdr-core-agent-backend.ts
4156
4173
  var launchTimeout = "120 seconds";
4157
4174
  var startupBlockedMs = 5000;
@@ -4345,6 +4362,9 @@ var runAttempt = (request, options) => gen(function* () {
4345
4362
  const bound = yield* result(requireSecretHosts(request.launch.secrets, request.launch.secretDestinations));
4346
4363
  if (isFailure(bound))
4347
4364
  return failed(bound.failure.reason, bound.failure.summary);
4365
+ const reservedSecrets = threadBudgetCollision("Secrets", Object.keys(secrets));
4366
+ if (reservedSecrets !== undefined)
4367
+ return failed("secret_name_reserved", reservedSecrets);
4348
4368
  const referenced = request.sandbox.backend === "host" ? undefined : secretReferences(secrets, request.launch.secretDestinations ?? {});
4349
4369
  const holdSecrets = (initial) => stepSecretRegistry(stepSecretDirectory(options.home, attempt.id), initial, referenced?.references ?? {}).pipe(mapError2(() => new AgentStepFailure({
4350
4370
  reason: "secret_registry_unwritable",
@@ -4376,7 +4396,10 @@ var runAttempt = (request, options) => gen(function* () {
4376
4396
  launch
4377
4397
  });
4378
4398
  const harnessArgv = [launch.binary, ...launch.args];
4379
- const marker = stepProcessEnvironment(request.runnerId, attempt.id);
4399
+ const attemptEnvironment = {
4400
+ ...stepProcessEnvironment(request.runnerId, attempt.id),
4401
+ ...threadBudgetEnvironment(yield* options.threadBudget)
4402
+ };
4380
4403
  const sandboxed = gen(function* () {
4381
4404
  switch (request.sandbox.backend) {
4382
4405
  case "srt": {
@@ -4412,7 +4435,7 @@ var runAttempt = (request, options) => gen(function* () {
4412
4435
  ...loginReferences,
4413
4436
  ...policy.environment,
4414
4437
  ...srtCacheEnvironment2(`${configDir}/cache`),
4415
- ...marker
4438
+ ...attemptEnvironment
4416
4439
  };
4417
4440
  return {
4418
4441
  argv: withOnlyEnvironment2([...Object.keys(env), "TERM", "COLORTERM"], registry === undefined ? srtArgv2(options.srtCommand ?? pinnedSrtCommand2(), settingsFile, harnessArgv) : srtStepArgv2(options.srtStepCommand ?? pinnedSrtStepCommand2(), settingsFile, registry.file, harnessArgv)),
@@ -4469,12 +4492,16 @@ var runAttempt = (request, options) => gen(function* () {
4469
4492
  command: ["sh", "-c", 'p=$(command -v -- "$1") && [ -f "$p" ] && [ -x "$p" ]', "sh", command],
4470
4493
  timeout: "30 seconds"
4471
4494
  }).pipe(map9((result) => result.exitCode === 0), mapError2(() => unavailable)));
4472
- const env = { ...policy.environment, ...marker };
4495
+ const env = { ...policy.environment, ...attemptEnvironment };
4473
4496
  return { argv: dockerExecArgv({ container, workspace, env, argv: harnessArgv }), env, registry };
4474
4497
  }
4475
4498
  default:
4476
4499
  yield* requireKitCommands(kitSetup, runsOnHost);
4477
- const env = { ...yield* inheritedEnvironment2(["SSH_AUTH_SOCK"]), ...policy.environment, ...marker };
4500
+ const env = {
4501
+ ...yield* inheritedEnvironment2(["SSH_AUTH_SOCK"]),
4502
+ ...policy.environment,
4503
+ ...attemptEnvironment
4504
+ };
4478
4505
  return { argv: harnessArgv, env, registry: undefined };
4479
4506
  }
4480
4507
  });
@@ -4650,7 +4677,8 @@ var herdrCoreAgentBackendLayer = (options) => effect(AgentBackend, gen(function*
4650
4677
  secretRevocationMs: options.secretRevocationMs ?? 30000,
4651
4678
  ...options.srtBinaries === undefined ? undefined : { srtBinaries: options.srtBinaries },
4652
4679
  ...options.docker === undefined ? undefined : { docker: options.docker },
4653
- stepProcesses: yield* StepProcesses
4680
+ stepProcesses: yield* StepProcesses,
4681
+ threadBudget: options.threadBudget ?? sync2(() => hostThreadBudget(1))
4654
4682
  };
4655
4683
  return AgentBackend.of({
4656
4684
  sandboxBackends,
@@ -8338,7 +8366,7 @@ var deployDetail = (output, exitCode) => {
8338
8366
  const ended = exitCode === undefined ? `${deployScript} did not exit in time` : `${deployScript} exited with exit code ${exitCode}`;
8339
8367
  return `${ended}: ${redactedOutputTail(output, detailLimit - ended.length - 2)}`;
8340
8368
  };
8341
- var deployTag = (work, deploy, checkouts, mayRun, timeout = deployTimeout) => gen(function* () {
8369
+ var deployTag = (work, deploy, checkouts, mayRun, env, timeout = deployTimeout) => gen(function* () {
8342
8370
  const checkout = yield* checkouts.checkout({ runId: work.runId, id: work.id, baseRevision: work.revision }, work.repoBinding);
8343
8371
  const tagRef = `refs/tags/${deploy.tag}`;
8344
8372
  if (!(yield* executableAt(checkout, "HEAD"))) {
@@ -8367,7 +8395,7 @@ var deployTag = (work, deploy, checkouts, mayRun, timeout = deployTimeout) => ge
8367
8395
  let printed = "";
8368
8396
  const ran = yield* runProcess2([`${checkout}/${deployScript}`, deploy.tag, ...deploy.previousTag === undefined ? [] : [deploy.previousTag]], {
8369
8397
  cwd: checkout,
8370
- env: { GIT_TERMINAL_PROMPT: "0" },
8398
+ env: { ...env, GIT_TERMINAL_PROMPT: "0" },
8371
8399
  timeout,
8372
8400
  onOutput: (chunk) => sync2(() => {
8373
8401
  printed = (printed + decoder.decode(chunk, { stream: true })).slice(-shellOutputTailChars2);
@@ -8671,7 +8699,7 @@ var checkSandboxPolicy = (work, sandbox, checkout, cache, filesDir, postgresHost
8671
8699
  environment: srtCacheEnvironment2(cache)
8672
8700
  });
8673
8701
  var checkGitEnvironment = { GIT_CONFIG_GLOBAL: "/dev/null", GIT_TERMINAL_PROMPT: "0" };
8674
- var checkRunner = (work, sandbox, cache, inherited) => (checkout) => ({
8702
+ var checkRunner = (work, sandbox, cache, inherited, threadBudget) => (checkout) => ({
8675
8703
  command,
8676
8704
  cwd,
8677
8705
  filesDir,
@@ -8684,7 +8712,12 @@ var checkRunner = (work, sandbox, cache, inherited) => (checkout) => ({
8684
8712
  runnerGitConfig
8685
8713
  }) => {
8686
8714
  const gitEnvironment = runnerGitConfig === true ? { GIT_TERMINAL_PROMPT: "0" } : checkGitEnvironment;
8687
- const env = { ...added, ...gitEnvironment, KITMAN_RUN_FILES_DIR: filesDir };
8715
+ const env = {
8716
+ ...added,
8717
+ ...threadBudgetEnvironment(threadBudget),
8718
+ ...gitEnvironment,
8719
+ KITMAN_RUN_FILES_DIR: filesDir
8720
+ };
8688
8721
  const output = onOutput === undefined ? undefined : { onOutput };
8689
8722
  if (sandbox === undefined || sandbox.backend === undefined) {
8690
8723
  return runShell2(command, {
@@ -9375,7 +9408,7 @@ var removeUntracked = (worktree, files) => forEach(chunksOf(files, 200), (some)
9375
9408
  "--",
9376
9409
  ...some.map((file) => `:(literal,top)${file}`)
9377
9410
  ]), { discard: true });
9378
- var afterMergeRunner = (sandbox) => (work, worktree, command, args) => gen(function* () {
9411
+ var afterMergeRunner = (sandbox, threadBudget = hostThreadBudget(1)) => (work, worktree, command, args) => gen(function* () {
9379
9412
  const { repoBinding } = work;
9380
9413
  if (repoBinding === undefined)
9381
9414
  return yield* new AfterMergeUnrun({ message: "The Step has no repository" });
@@ -9391,7 +9424,7 @@ var afterMergeRunner = (sandbox) => (work, worktree, command, args) => gen(funct
9391
9424
  repoBinding,
9392
9425
  ...work.storageOrigin === undefined ? undefined : { storageOrigin: work.storageOrigin },
9393
9426
  ...work.hosts === undefined ? undefined : { hosts: work.hosts }
9394
- }, sandbox, cache, inherited)(worktree);
9427
+ }, sandbox, cache, inherited, threadBudget)(worktree);
9395
9428
  yield* installIn(worktree, run);
9396
9429
  yield* runCommand2("git", ["-C", worktree, "reset", "--hard", "--quiet", "HEAD"]);
9397
9430
  const installed = yield* untrackedFiles(worktree);
@@ -9453,6 +9486,9 @@ var runApprovedCommand = (work, command, checkout, sandboxed, run, runFiles, rev
9453
9486
  const cwd = path.join(checkout, command.workingDirectory ?? ".");
9454
9487
  if (!(yield* commandFileFound(command, checkout)))
9455
9488
  return commandRan({ result: { status: "missing" } });
9489
+ const reserved = threadBudgetCollision("variables", Object.keys(command.env ?? {})) ?? threadBudgetCollision("Secrets", Object.keys(secretValues));
9490
+ if (reserved !== undefined)
9491
+ return commandRan({ failed: reserved });
9456
9492
  const bound = yield* result(requireSecretHosts(secretValues, command.secretDestinations));
9457
9493
  if (isFailure(bound))
9458
9494
  return commandRan({ failed: bound.failure.summary });
@@ -9532,7 +9568,8 @@ var verificationExecutor = (input) => (work) => gen(function* () {
9532
9568
  failureSummary: "A shared Runner runs verifications only in `srt` or `docker`."
9533
9569
  };
9534
9570
  const cache = yield* tempDirectoryScoped(yield* FileSystem, { prefix: "kitman-verify-cache-" });
9535
- const runIn = checkRunner(work, input.sandbox, cache, yield* inheritedEnvironment2(srtInheritedEnv2));
9571
+ const threadBudget = input.threadBudget ?? hostThreadBudget(1);
9572
+ const runIn = checkRunner(work, input.sandbox, cache, yield* inheritedEnvironment2(srtInheritedEnv2), threadBudget);
9536
9573
  const checkouts = runCheckouts(input.rootDir, input.gitCredentials);
9537
9574
  if (work.resolve !== undefined)
9538
9575
  return yield* resolveRevisions(work, work.resolve.revisions, checkouts);
@@ -9541,7 +9578,7 @@ var verificationExecutor = (input) => (work) => gen(function* () {
9541
9578
  if (work.compare !== undefined)
9542
9579
  return yield* compareRevisions(work, work.compare, checkouts);
9543
9580
  if (work.deploy !== undefined) {
9544
- const ran = yield* deployTag(work, work.deploy, checkouts, input.runsDeployScripts === true && work.deploy.runsScript === true, input.deployTimeout);
9581
+ const ran = yield* deployTag(work, work.deploy, checkouts, input.runsDeployScripts === true && work.deploy.runsScript === true, threadBudgetEnvironment(threadBudget), input.deployTimeout);
9545
9582
  if ("failed" in ran)
9546
9583
  return { status: "failed", failureSummary: ran.failed };
9547
9584
  return {
@@ -9778,6 +9815,7 @@ export {
9778
9815
  herdrRunnerCapabilitiesForRepoBinding2 as herdrRunnerCapabilitiesForRepoBinding,
9779
9816
  herdrSandboxBackends,
9780
9817
  homeDirectories,
9818
+ hostThreadBudget,
9781
9819
  inheritedEnvironment2 as inheritedEnvironment,
9782
9820
  isPathWithin2 as isPathWithin,
9783
9821
  kitMcpHosts,
@@ -9862,6 +9900,10 @@ export {
9862
9900
  systemProcessTable,
9863
9901
  systemStepProcessesLayer,
9864
9902
  systemdScopes,
9903
+ threadBudget,
9904
+ threadBudgetCollision,
9905
+ threadBudgetEnvironment,
9906
+ threadBudgetVariables,
9865
9907
  tomlKeyPath2 as tomlKeyPath,
9866
9908
  tomlTableHeader2 as tomlTableHeader,
9867
9909
  updateHerdrCore2 as updateHerdrCore,
@@ -4,11 +4,11 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-bv4gcq1h.js";
8
- import"./chunk-cehbrs1y.js";
9
- import"./chunk-0mg7k9b4.js";
7
+ } from "./chunk-t6ynnbcb.js";
8
+ import"./chunk-vv7zg8rb.js";
9
+ import"./chunk-xppw33hz.js";
10
10
  import"./chunk-4qjfn1sa.js";
11
- import"./chunk-63cyj9dh.js";
11
+ import"./chunk-j4b1yvcd.js";
12
12
  import"./chunk-h2f26xbd.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
@@ -7,9 +7,9 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-my92qn4x.js";
11
- import"./chunk-gap0vmj7.js";
12
- import"./chunk-63cyj9dh.js";
10
+ } from "./chunk-7re3n1ze.js";
11
+ import"./chunk-bsgvmq34.js";
12
+ import"./chunk-j4b1yvcd.js";
13
13
  import"./chunk-h2f26xbd.js";
14
14
  export {
15
15
  decoded2 as decoded,
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-kagajztj.js";
7
+ } from "./chunk-w4mr1bhh.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-h2f26xbd.js";
10
10
  import {
11
11
  runForEach
12
- } from "./chunk-63cyj9dh.js";
12
+ } from "./chunk-j4b1yvcd.js";
13
13
  import {
14
14
  WebSocketConstructor,
15
15
  layerWebSocketConstructorGlobal,
@@ -19,13 +19,13 @@ import {
19
19
  RunnerReplicaRpcs,
20
20
  RunnerRunFileRpcs,
21
21
  ProgramRpcs
22
- } from "./chunk-0mg7k9b4.js";
22
+ } from "./chunk-xppw33hz.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-cehbrs1y.js";
28
+ } from "./chunk-vv7zg8rb.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -108,7 +108,7 @@ import {
108
108
  shutdownUnsafe,
109
109
  fromQueue,
110
110
  unwrap
111
- } from "./chunk-63cyj9dh.js";
111
+ } from "./chunk-j4b1yvcd.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-0mg7k9b4.js";
126
+ } from "./chunk-xppw33hz.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")) {
@@ -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.27.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.28.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) {
@@ -268,7 +268,6 @@ import {
268
268
  import {
269
269
  map,
270
270
  makeEquivalence,
271
- toNumber,
272
271
  bytes,
273
272
  BadArgument,
274
273
  systemError,
@@ -333,7 +332,7 @@ import {
333
332
  optionalEnv,
334
333
  harnessesUnsupportedInSrt2,
335
334
  harnessesUnsupportedInDocker2
336
- } from "./chunk-63cyj9dh.js";
335
+ } from "./chunk-j4b1yvcd.js";
337
336
  import {
338
337
  isRedacted,
339
338
  make,
@@ -347,7 +346,7 @@ import {
347
346
  make3,
348
347
  parseFdName,
349
348
  fdName
350
- } from "./chunk-gap0vmj7.js";
349
+ } from "./chunk-bsgvmq34.js";
351
350
  import {
352
351
  isDateTime,
353
352
  Numeric,
@@ -902,6 +901,15 @@ var runMain2 = /* @__PURE__ */ makeRunMain(({
902
901
  // node_modules/.bun/@effect+platform-bun@4.1.2+edf248c88a527e3e/node_modules/@effect/platform-bun/dist/BunRuntime.js
903
902
  var runMain = runMain2;
904
903
 
904
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/BigInt.js
905
+ var BigInt2 = globalThis.BigInt;
906
+ var toNumber = (b) => {
907
+ if (b > BigInt2(Number.MAX_SAFE_INTEGER) || b < BigInt2(Number.MIN_SAFE_INTEGER)) {
908
+ return none();
909
+ }
910
+ return some(Number(b));
911
+ };
912
+
905
913
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/DateTime.js
906
914
  var makeUnsafe = makeUnsafe6;
907
915
  var make18 = make4;
@@ -1,8 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path
5
- } from "./chunk-63cyj9dh.js";
6
2
  import {
7
3
  isObject,
8
4
  isUint8Array,
@@ -18,12 +14,16 @@ import {
18
14
  decodeJsonString,
19
15
  encodePrettyJsonString
20
16
  } from "./chunk-h2f26xbd.js";
17
+ import {
18
+ FileSystem,
19
+ Path
20
+ } from "./chunk-j4b1yvcd.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-yaa3gkpx.js";
26
+ } from "./chunk-zysde2fp.js";
27
27
  import {
28
28
  instructionsStart,
29
29
  instructionsEnd,
@@ -31,9 +31,9 @@ import {
31
31
  antigravityPlugins,
32
32
  materializeKitSetup,
33
33
  tomlInline
34
- } from "./chunk-0mg7k9b4.js";
35
- import"./chunk-yr7np5eb.js";
36
- import"./chunk-gap0vmj7.js";
34
+ } from "./chunk-xppw33hz.js";
35
+ import"./chunk-1vnvmeqr.js";
36
+ import"./chunk-bsgvmq34.js";
37
37
  import"./chunk-4qjfn1sa.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
@@ -120,7 +120,7 @@ import {
120
120
  withDefault,
121
121
  option,
122
122
  String2
123
- } from "./chunk-63cyj9dh.js";
123
+ } from "./chunk-j4b1yvcd.js";
124
124
  import {
125
125
  currentTimeMillis,
126
126
  SecureRandom,
@@ -251,11 +251,11 @@ import {
251
251
  harnessNames,
252
252
  herdrRunnerCapabilities2,
253
253
  declaredChecks
254
- } from "./chunk-0mg7k9b4.js";
254
+ } from "./chunk-xppw33hz.js";
255
255
  import {
256
256
  ChildProcessSpawner,
257
257
  make3
258
- } from "./chunk-gap0vmj7.js";
258
+ } from "./chunk-bsgvmq34.js";
259
259
  import {
260
260
  Id,
261
261
  Timestamp
@@ -1326,10 +1326,10 @@ var sandboxMissing = (sandbox, missing) => ({
1326
1326
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1327
1327
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1328
1328
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1329
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-msn6rrx9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1329
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-220vzyz9.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1330
1330
  });
1331
1331
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1332
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-msn6rrx9.js")), (module) => module.updateHerdrCore(options))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-220vzyz9.js")), (module) => module.updateHerdrCore(options))
1333
1333
  });
1334
1334
  var herdrCoreMissing = (error) => {
1335
1335
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1773,7 +1773,7 @@ var syncTargets = (harness) => gen(function* () {
1773
1773
  });
1774
1774
  var syncKits = (input) => gen(function* () {
1775
1775
  const fs = yield* FileSystem;
1776
- const { syncKitSetup } = yield* promise(() => import("./chunk-tbmht2qb.js"));
1776
+ const { syncKitSetup } = yield* promise(() => import("./chunk-z05pkzhf.js"));
1777
1777
  const harnesses = yield* syncTargets(input.harness);
1778
1778
  const chain = yield* input.client.getKitChain(input.workspaceId);
1779
1779
  for (const { name, problem } of chain.skipped)
@@ -3268,7 +3268,7 @@ var shipped_steps_generated_default = {
3268
3268
  };
3269
3269
 
3270
3270
  // apps/cli/src/scaffold-files.ts
3271
- var cliVersion = "0.27.0";
3271
+ var cliVersion = "0.28.0";
3272
3272
  var shippedLoopSteps = new Map(Object.entries(shipped_steps_generated_default));
3273
3273
  var loopSteps = (loop) => shippedLoopSteps.get(loop) ?? [];
3274
3274
  var replacedStep = (loop) => loopSteps(loop).find((step) => step.from === defaultKitName && step.exported?.startsWith("steps.") === true);
@@ -3533,7 +3533,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
3533
3533
 
3534
3534
  // apps/cli/src/commands.ts
3535
3535
  var ClientId = "kitman-cli";
3536
- var agentRuntime = promise(() => import("./chunk-225hz7jt.js"));
3536
+ var agentRuntime = promise(() => import("./chunk-jhby2e0v.js"));
3537
3537
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
3538
3538
  defaultValue: () => gen(function* () {
3539
3539
  const tui = yield* tryPromise({
@@ -5072,7 +5072,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
5072
5072
  });
5073
5073
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
5074
5074
  defaultValue: () => (options) => gen(function* () {
5075
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-7j1kf6sa.js"));
5075
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-ks4q040v.js"));
5076
5076
  return yield* makeRunnerRpcClient({
5077
5077
  runnerId: options.runnerId,
5078
5078
  bearer: options.bearer,
@@ -5178,6 +5178,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5178
5178
  herdrRunnerCapabilitiesForRepoBinding,
5179
5179
  harnessesInSrt,
5180
5180
  homeDirectories,
5181
+ hostThreadBudget,
5181
5182
  kitmanBundles,
5182
5183
  kitmanMcpPreflight,
5183
5184
  lacksLoginSecret,
@@ -5336,6 +5337,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5336
5337
  const root = herdrCoreAgentBackendLayer({
5337
5338
  sandboxBackends: host.backends,
5338
5339
  srtBinaries,
5340
+ threadBudget: sync2(() => hostThreadBudget(live.settings.concurrency)),
5339
5341
  ...docker === undefined ? undefined : { docker: { ...docker, runnerId: input.runnerId } }
5340
5342
  }).pipe(provide2(succeed5(HerdrCore, core)), provide2(succeed5(StepProcesses, stepProcesses)), provide2(layer3));
5341
5343
  const activeSlots = new Set;
@@ -5484,7 +5486,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5484
5486
  runnerScope: scope,
5485
5487
  runAfterMerge: (work, worktree, command, args) => {
5486
5488
  const sandbox = checkSandbox();
5487
- return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts })(work, worktree, command, args);
5489
+ return afterMergeRunner(sandbox === undefined ? undefined : { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts }, hostThreadBudget(live.settings.concurrency))(work, worktree, command, args);
5488
5490
  },
5489
5491
  runAgent: (work, worktree, session, steered, refused, launched) => flatMap3(currentTimeMillis, (now) => agentBackend.execute({
5490
5492
  runnerId: input.runnerId,
@@ -5540,6 +5542,7 @@ function startCanonicalHerdrRunnerCommand(input) {
5540
5542
  postgres: dockerCheckPostgres(input.runnerId, replica.id),
5541
5543
  ...checkDocker === undefined ? undefined : { docker: checkDocker },
5542
5544
  runsDeployScripts: personal,
5545
+ threadBudget: hostThreadBudget(live.settings.concurrency),
5543
5546
  revokedSecrets: (unit, secrets) => rpc.heartbeat({ workUnitId: unit.id, lease: leaseOf(unit), secrets: [...secrets] }).pipe(map9((state) => state.revokedSecrets ?? [])),
5544
5547
  ...sandbox === undefined ? undefined : { sandbox: { ...sandbox, apiUrl: input.apiUrl, hosts: live.settings.checkHosts } }
5545
5548
  })(work);
@@ -5645,7 +5648,7 @@ function mcpCommand(args) {
5645
5648
  if (command.action === "run") {
5646
5649
  if (command.args.length > 0)
5647
5650
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5648
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-ezsh3z1w.js"));
5651
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-egzbfz18.js"));
5649
5652
  return yield* runMcpServerCommand({ flags: command.flags });
5650
5653
  }
5651
5654
  if (command.action !== "setup")
@@ -6145,7 +6148,7 @@ function programLoopCommand(command) {
6145
6148
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6146
6149
  });
6147
6150
  }
6148
- var docsModule = promise(() => import("./chunk-dyca90hx.js"));
6151
+ var docsModule = promise(() => import("./chunk-sgtt81qc.js"));
6149
6152
  function docsCommand(args) {
6150
6153
  return gen(function* () {
6151
6154
  const command = parseCommand(args);
@@ -7149,7 +7152,7 @@ function changeRequestCommand(args) {
7149
7152
  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}`);
7150
7153
  });
7151
7154
  }
7152
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7155
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-fpmmafh8.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7153
7156
  var loopOutline = (command) => gen(function* () {
7154
7157
  const path = yield* Path;
7155
7158
  const loop = requiredArg(command, "a Loop id");
@@ -7169,9 +7172,9 @@ var loopOutline = (command) => gen(function* () {
7169
7172
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7170
7173
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7171
7174
  });
7172
- var KitWriter = map9(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.writeKit);
7175
+ var KitWriter = map9(promise(() => import("./chunk-fpmmafh8.js")), (build) => build.writeKit);
7173
7176
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7174
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-39kjyh2y.js")), (build) => build.buildKit(directory))
7177
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-fpmmafh8.js")), (build) => build.buildKit(directory))
7175
7178
  });
7176
7179
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7177
7180
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -1,10 +1,4 @@
1
1
  // @bun
2
- import {
3
- FileSystem,
4
- Path,
5
- optionalEnv,
6
- tempDirectoryScoped
7
- } from "./chunk-63cyj9dh.js";
8
2
  import {
9
3
  Reference,
10
4
  TaggedError,
@@ -32,14 +26,20 @@ import {
32
26
  encodePrettyJsonString,
33
27
  decodeJsonStringSync
34
28
  } from "./chunk-h2f26xbd.js";
29
+ import {
30
+ FileSystem,
31
+ Path,
32
+ optionalEnv,
33
+ tempDirectoryScoped
34
+ } from "./chunk-j4b1yvcd.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-0mg7k9b4.js";
39
+ } from "./chunk-xppw33hz.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-yr7np5eb.js";
42
+ } from "./chunk-1vnvmeqr.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
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-1j38xtvp.js");
8
+ const { runSrtCli } = await import("./chunk-8t2wcrvv.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
11
  const { runSrtStep } = await import("./chunk-samxkpbz.js");
12
12
  await runSrtStep(args.slice(1));
13
13
  } else if (args[0] === "opencode-read") {
14
- const { runOpencodeReader } = await import("./chunk-js64y97w.js");
14
+ const { runOpencodeReader } = await import("./chunk-npfdbssf.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-ydq1nr9e.js");
17
+ const { runCli } = await import("./chunk-zty7be4e.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.27.0",
3
+ "version": "0.28.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {