@kitman-sh/cli 0.36.0 → 0.37.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-vwaf8peb.js → chunk-2nqsmnx7.js} +4 -4
  2. package/dist/{chunk-th0znqwv.js → chunk-2pqqspes.js} +70 -25
  3. package/dist/{chunk-x29m7k25.js → chunk-310dsxts.js} +2 -2
  4. package/dist/{chunk-49hz9619.js → chunk-3xfsv475.js} +8 -8
  5. package/dist/{chunk-s34am3kw.js → chunk-5jnye659.js} +3 -3
  6. package/dist/{chunk-5kqt4bqp.js → chunk-8b02x7vv.js} +1 -1
  7. package/dist/{chunk-tsx0347c.js → chunk-98azvx6g.js} +1 -1
  8. package/dist/{chunk-gnq1ryhx.js → chunk-av744yc8.js} +4 -4
  9. package/dist/{chunk-ewf73f4k.js → chunk-ay4s5qnv.js} +15 -15
  10. package/dist/{chunk-pn7egyb2.js → chunk-b4gf06xg.js} +5 -5
  11. package/dist/{chunk-h2f26xbd.js → chunk-bqbfyqx6.js} +3 -1
  12. package/dist/{chunk-wckr96wg.js → chunk-bvpa6jrp.js} +7 -7
  13. package/dist/{chunk-crw9pdwb.js → chunk-cb6yfbkf.js} +6 -6
  14. package/dist/{chunk-samxkpbz.js → chunk-d4vhrja4.js} +3 -3
  15. package/dist/{chunk-4qjfn1sa.js → chunk-ea29sbaq.js} +1 -1
  16. package/dist/{chunk-dw0v4ke8.js → chunk-g0vpp6p9.js} +6 -6
  17. package/dist/{chunk-c2ngtf1e.js → chunk-gfzzgz3h.js} +4 -4
  18. package/dist/{chunk-9nbqzdqp.js → chunk-k9fnm7ds.js} +2 -2
  19. package/dist/{chunk-6bwf81dt.js → chunk-kk1wfhhz.js} +1 -1
  20. package/dist/{chunk-wab1jevd.js → chunk-mpw74rad.js} +28 -28
  21. package/dist/{chunk-rbj2eant.js → chunk-pdcj5cfz.js} +1 -1
  22. package/dist/{chunk-8fyfsajs.js → chunk-vyx49k26.js} +1 -1
  23. package/dist/{chunk-vz38kngm.js → chunk-wy6gmtd9.js} +2 -2
  24. package/dist/{chunk-t89zj8wf.js → chunk-xmdyfzf3.js} +4 -4
  25. package/dist/{chunk-96bzt4ck.js → chunk-ymzkqbye.js} +3 -3
  26. package/dist/{chunk-3t6aayxz.js → chunk-za4cezh6.js} +17 -17
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-9nbqzdqp.js";
2
+ import"./chunk-k9fnm7ds.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-t89zj8wf.js";
16
- import"./chunk-8fyfsajs.js";
17
- import"./chunk-h2f26xbd.js";
15
+ } from "./chunk-xmdyfzf3.js";
16
+ import"./chunk-vyx49k26.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,
@@ -36,6 +36,7 @@ import {
36
36
  isResult,
37
37
  isFailure,
38
38
  isSuccess,
39
+ getSuccess,
39
40
  chunksOf,
40
41
  TaggedError,
41
42
  succeed3,
@@ -174,7 +175,7 @@ import {
174
175
  decodeJsonStringSync,
175
176
  encodeUnknownJsonStringSync,
176
177
  storable
177
- } from "./chunk-h2f26xbd.js";
178
+ } from "./chunk-bqbfyqx6.js";
178
179
  import {
179
180
  SecureRandom,
180
181
  layerWebCrypto,
@@ -262,7 +263,7 @@ import {
262
263
  checkServicesFile,
263
264
  checkServices,
264
265
  serviceChecks
265
- } from "./chunk-t89zj8wf.js";
266
+ } from "./chunk-xmdyfzf3.js";
266
267
  import {
267
268
  currentTimeMillis,
268
269
  join,
@@ -311,7 +312,7 @@ import {
311
312
  writeSrtSettings2,
312
313
  srtStepArgv2,
313
314
  srtArgv2
314
- } from "./chunk-8fyfsajs.js";
315
+ } from "./chunk-vyx49k26.js";
315
316
  import {
316
317
  writeAgentEnvironmentConfigFile2,
317
318
  readManifestSkillPaths2,
@@ -327,8 +328,8 @@ import {
327
328
  applyAgentEnvironmentMaterialization2,
328
329
  isPathWithin2,
329
330
  skillIdentity2
330
- } from "./chunk-c2ngtf1e.js";
331
- import"./chunk-96bzt4ck.js";
331
+ } from "./chunk-gfzzgz3h.js";
332
+ import"./chunk-ymzkqbye.js";
332
333
  import {
333
334
  egressAllowed,
334
335
  writeSecretRegistry,
@@ -338,7 +339,7 @@ import {
338
339
  secretFilter2,
339
340
  opaqueTunnelRefusal2,
340
341
  isOpaqueConnectReason2
341
- } from "./chunk-vz38kngm.js";
342
+ } from "./chunk-wy6gmtd9.js";
342
343
  import {
343
344
  sliceBytes2,
344
345
  maxLineBytes2,
@@ -348,29 +349,29 @@ import {
348
349
  lookAtOpencode2,
349
350
  readOpencode2,
350
351
  databaseStamp2
351
- } from "./chunk-s34am3kw.js";
352
+ } from "./chunk-5jnye659.js";
352
353
  import {
353
354
  uploadRunFile,
354
355
  programLease,
355
356
  rpcRunFiles,
356
357
  programHostsEnv,
357
358
  undeclaredHostsEnv
358
- } from "./chunk-pn7egyb2.js";
359
- import"./chunk-dw0v4ke8.js";
359
+ } from "./chunk-b4gf06xg.js";
360
+ import"./chunk-g0vpp6p9.js";
360
361
  import {
361
362
  nextInt
362
- } from "./chunk-5kqt4bqp.js";
363
- import"./chunk-tsx0347c.js";
363
+ } from "./chunk-8b02x7vv.js";
364
+ import"./chunk-98azvx6g.js";
364
365
  import {
365
366
  ChildProcessSpawner,
366
367
  make3
367
- } from "./chunk-9nbqzdqp.js";
368
- import"./chunk-ewf73f4k.js";
368
+ } from "./chunk-k9fnm7ds.js";
369
+ import"./chunk-ay4s5qnv.js";
369
370
  import {
370
371
  Id,
371
372
  secretReference,
372
373
  secretPlaceholder
373
- } from "./chunk-4qjfn1sa.js";
374
+ } from "./chunk-ea29sbaq.js";
374
375
 
375
376
  // packages/core/src/sync-kit.ts
376
377
  import { createHash } from "crypto";
@@ -3392,6 +3393,7 @@ var prepareDockerHome = (input) => gen(function* () {
3392
3393
  ...anthropicKey === undefined ? undefined : { customApiKeyResponses: { approved: [anthropicKey.slice(approvedKeyEnd)], rejected: [] } }
3393
3394
  }), { mode: 384 });
3394
3395
  yield* trustClaudeWorkspace(input.home, input.workspace);
3396
+ yield* trustClaudeWorkspace(input.home, input.configDir);
3395
3397
  }
3396
3398
  if (input.adapter.id === "codex" && openaiKey !== undefined) {
3397
3399
  yield* fs.makeDirectory(`${input.home}/.codex`, { recursive: true });
@@ -4662,18 +4664,45 @@ var aborted = (signal) => signal === undefined ? never : callback3((resume) => {
4662
4664
  });
4663
4665
  var canceled = { status: "canceled", reason: "canceled" };
4664
4666
  var loginRefusedError = /(OAuth token revoked|OAuth access token is invalid|Login expired)\W{0,12}Please run \/login/;
4667
+ var setupPromptPoll = "1 second";
4665
4668
  var screenTail = (screen) => screen.split(`
4666
4669
  `).slice(-12);
4667
4670
  var loginRefused = (screen) => loginRefusedError.test(screenTail(screen).join(" "));
4668
4671
  var setupPrompts = [
4669
- { confirm: /^Yes, I trust this folder$/, cancel: /^No, (exit|continue without these permissions)$/ },
4670
- { confirm: /^Yes, turn on Code Mode$/, cancel: /^No, start without it$/ }
4672
+ {
4673
+ name: "folder trust prompt",
4674
+ confirm: /^Yes, I trust this folder$/,
4675
+ cancel: /^No, (exit|continue without these permissions)$/
4676
+ },
4677
+ { name: "Code Mode prompt", confirm: /^Yes, turn on Code Mode$/, cancel: /^No, start without it$/ }
4671
4678
  ];
4672
4679
  var menuOption = (line) => line.replace(/^[\s\u276F\u203A>]*(\d+\.\s*)?/, "").trim();
4673
- var atSetupPrompt = (screen) => {
4680
+ var addedDirectoryDialog = {
4681
+ name: "trust prompt for an added directory",
4682
+ lines: 30,
4683
+ title: /^Adding a new directory:\s*([~/].*)?$/,
4684
+ path: /^[~/]/,
4685
+ confirm: /^Yes, add it$/,
4686
+ cancel: /^No, (exit|leave it out)$/
4687
+ };
4688
+ var atAddedDirectoryDialog = (screen) => {
4689
+ const { lines, title, path, confirm, cancel } = addedDirectoryDialog;
4690
+ const rows = screen.trimEnd().split(`
4691
+ `).slice(-lines).map((row) => menuOption(row.replace(/^[\u2500\u2502\u256D|]+/, "")));
4692
+ const menu = rows.findLastIndex((row, index) => confirm.test(row) && cancel.test(rows[index + 1] ?? "") || cancel.test(row) && confirm.test(rows[index + 1] ?? ""));
4693
+ const heading = rows.findLastIndex((row, index) => index < menu && title.test(row));
4694
+ if (menu < 0 || heading < 0)
4695
+ return false;
4696
+ const directory = title.exec(rows[heading] ?? "")?.[1] ?? rows.slice(heading + 1, menu).find((row) => row !== "");
4697
+ return directory !== undefined && path.test(directory);
4698
+ };
4699
+ var setupPromptOn = (screen, harness) => {
4700
+ if (harness === "claude" && atAddedDirectoryDialog(screen))
4701
+ return addedDirectoryDialog.name;
4674
4702
  const options = screenTail(screen).map(menuOption);
4675
- return setupPrompts.some(({ confirm, cancel }) => options.some((option) => confirm.test(option)) && options.some((option) => cancel.test(option)));
4703
+ return setupPrompts.find(({ confirm, cancel }) => options.some((option) => confirm.test(option)) && options.some((option) => cancel.test(option)))?.name;
4676
4704
  };
4705
+ var addsDirectory = (args, directory) => args.some((arg, index) => arg === directory && args[index - 1] === "--add-dir");
4677
4706
  var watchSecretRegistry = (registry, request, revocationMs) => gen(function* () {
4678
4707
  const fs = yield* FileSystem;
4679
4708
  const log = secretRefusalLog(registry.file);
@@ -4842,6 +4871,7 @@ var runAttempt = (request, options) => gen(function* () {
4842
4871
  adapter,
4843
4872
  home: dockerHome(configDir),
4844
4873
  workspace,
4874
+ configDir,
4845
4875
  environment: policy.environment
4846
4876
  }).pipe(tapError2((error) => logWarning("docker_home_unwritable", error.message)), mapError2(harnessConfigUnwritable));
4847
4877
  yield* requireKitCommands(kitSetup, (command) => options.docker === undefined ? fail7(unavailable) : options.docker.containers.exec({
@@ -4881,7 +4911,9 @@ var runAttempt = (request, options) => gen(function* () {
4881
4911
  if (isFailure(command))
4882
4912
  return failed(command.failure.reason, command.failure.summary);
4883
4913
  if (adapter.id === "claude" && request.sandbox.backend !== "docker") {
4884
- const trusted = yield* result(trustClaudeWorkspace(launch.globalConfig === undefined ? options.home : (yield* Path).dirname(launch.globalConfig.path), workspace));
4914
+ const home = launch.globalConfig === undefined ? options.home : (yield* Path).dirname(launch.globalConfig.path);
4915
+ const directories = addsDirectory(launch.args, configDir) ? [workspace, configDir] : [workspace];
4916
+ const trusted = yield* result(forEach(directories, (directory) => trustClaudeWorkspace(home, directory), { discard: true }));
4885
4917
  if (isFailure(trusted)) {
4886
4918
  yield* logWarning("claude_trust_failed", trusted.failure);
4887
4919
  return failed("harness_launch_failed", `Kitman could not record the workspace's trust, so Claude Code would wait on its folder trust prompt: ${trusted.failure.message}`);
@@ -4917,7 +4949,11 @@ var runAttempt = (request, options) => gen(function* () {
4917
4949
  let accepted = false;
4918
4950
  const outputSubmitted = suspend3(() => accepted ? succeed6(true) : request.settled.pipe(orElseSucceed(() => false), tap2((settled) => sync2(() => accepted ||= settled))));
4919
4951
  const readScreen = map9(option2(call((connection) => connection.read(address))), (screen) => isSome(screen) ? redactCredentials(screen.value).trim() : "");
4920
- const setupPromptFailure = (shown) => failed("harness_setup_prompt", `The agent stopped at a prompt Kitman answers before launch. Its screen ended: ${shown.slice(-blockedScreenChars)}`);
4952
+ const setupPromptShown = adapter.id === "claude" ? readScreen.pipe(repeat({
4953
+ until: (shown) => setupPromptOn(shown, adapter.id) !== undefined,
4954
+ schedule: spaced(setupPromptPoll)
4955
+ })) : never;
4956
+ const setupPromptFailure = (shown, prompt) => failed("harness_setup_prompt", `The agent stopped at its ${prompt}, which Kitman answers before launch. Its screen ended: ${shown.slice(-blockedScreenChars)}`);
4921
4957
  const judge = (last) => gen(function* () {
4922
4958
  if (yield* outputSubmitted)
4923
4959
  return { status: "settled" };
@@ -4939,8 +4975,9 @@ var runAttempt = (request, options) => gen(function* () {
4939
4975
  yield* logWarning("agent_blocked", { attempt: attempt.id, address, screen: shown });
4940
4976
  if (loginRefused(shown))
4941
4977
  return failed("harness_login_lost", `The Harness's login was refused before it submitted its Output. Its screen ended: ${shown.slice(-blockedScreenChars)}`);
4942
- if (atSetupPrompt(shown))
4943
- return setupPromptFailure(shown);
4978
+ const prompt = setupPromptOn(shown, adapter.id);
4979
+ if (prompt !== undefined)
4980
+ return setupPromptFailure(shown, prompt);
4944
4981
  return {
4945
4982
  status: "blocked",
4946
4983
  summary: `The agent stopped for input before submitting its Output.${shown === "" ? "" : ` Its screen ended: ${shown.slice(-blockedScreenChars)}`}`
@@ -4950,12 +4987,20 @@ var runAttempt = (request, options) => gen(function* () {
4950
4987
  });
4951
4988
  const ended = (signal) => (outcome) => ({ signal, outcome });
4952
4989
  const ending = gen(function* () {
4953
- const ready = yield* raceFirst(until(seen, (last) => last.end !== undefined || last.status !== null && !["working", "blocked"].includes(last.status)), lastingStatus(seen, "blocked", Math.min(options.blockedGraceMs, startupBlockedMs))).pipe(timeoutOption(launchTimeout));
4990
+ const started = raceFirst(until(seen, (last) => last.end !== undefined || last.status !== null && !["working", "blocked"].includes(last.status)), lastingStatus(seen, "blocked", Math.min(options.blockedGraceMs, startupBlockedMs)));
4991
+ const launchedOrPrompted = yield* raceFirst(map9(started, succeed), map9(setupPromptShown, fail3)).pipe(timeoutOption(launchTimeout));
4992
+ if (isSome(launchedOrPrompted) && isFailure(launchedOrPrompted.value)) {
4993
+ const shown = launchedOrPrompted.value.failure;
4994
+ yield* logWarning("agent_setup_prompt", { attempt: attempt.id, address, screen: shown });
4995
+ return ended("setup_prompt")(setupPromptFailure(shown, setupPromptOn(shown, adapter.id) ?? "setup prompt"));
4996
+ }
4997
+ const ready = flatMap(launchedOrPrompted, getSuccess);
4954
4998
  if (isNone(ready)) {
4955
4999
  const shown = yield* readScreen;
4956
5000
  yield* logWarning("agent_launch_timeout", { attempt: attempt.id, address, screen: shown });
4957
- if (atSetupPrompt(shown))
4958
- return ended("launch_timeout")(setupPromptFailure(shown));
5001
+ const prompt = setupPromptOn(shown, adapter.id);
5002
+ if (prompt !== undefined)
5003
+ return ended("launch_timeout")(setupPromptFailure(shown, prompt));
4959
5004
  return ended("launch_timeout")(failed("harness_launch_timeout", `The Harness reported no status within 120 s of its launch.${shown === "" ? " Its screen was empty." : ` Its screen ended: ${shown.slice(-blockedScreenChars)}`}`));
4960
5005
  }
4961
5006
  if (ready.value.end !== undefined)
@@ -15,8 +15,8 @@ import {
15
15
  writeSrtSettings2,
16
16
  srtStepArgv2,
17
17
  srtArgv2
18
- } from "./chunk-8fyfsajs.js";
19
- import"./chunk-h2f26xbd.js";
18
+ } from "./chunk-vyx49k26.js";
19
+ import"./chunk-bqbfyqx6.js";
20
20
  export {
21
21
  compiled2 as compiled,
22
22
  harnessesUnsupportedInDocker2 as harnessesUnsupportedInDocker,
@@ -118,7 +118,7 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-h2f26xbd.js";
121
+ } from "./chunk-bqbfyqx6.js";
122
122
  import {
123
123
  SecureRandom,
124
124
  makeUnsafe,
@@ -169,7 +169,7 @@ import {
169
169
  runMcpEffect,
170
170
  createAgentAuthSignedFetch,
171
171
  setupMcpAgentCredential
172
- } from "./chunk-t89zj8wf.js";
172
+ } from "./chunk-xmdyfzf3.js";
173
173
  import {
174
174
  currentTimeMillis,
175
175
  join,
@@ -187,30 +187,30 @@ import {
187
187
  withDefault,
188
188
  option,
189
189
  String2
190
- } from "./chunk-8fyfsajs.js";
190
+ } from "./chunk-vyx49k26.js";
191
191
  import {
192
192
  searchDocs2,
193
193
  readDoc2
194
- } from "./chunk-6bwf81dt.js";
194
+ } from "./chunk-kk1wfhhz.js";
195
195
  import {
196
196
  nextInt
197
- } from "./chunk-5kqt4bqp.js";
197
+ } from "./chunk-8b02x7vv.js";
198
198
  import {
199
199
  recommendationProblem
200
- } from "./chunk-tsx0347c.js";
200
+ } from "./chunk-98azvx6g.js";
201
201
  import {
202
202
  layerJson,
203
203
  make4,
204
204
  withHeaders,
205
205
  layerProtocolSocket,
206
206
  ConnectionHooks
207
- } from "./chunk-ewf73f4k.js";
207
+ } from "./chunk-ay4s5qnv.js";
208
208
  import {
209
209
  guard,
210
210
  Id,
211
211
  Timestamp,
212
212
  ActorType
213
- } from "./chunk-4qjfn1sa.js";
213
+ } from "./chunk-ea29sbaq.js";
214
214
 
215
215
  // apps/cli/src/mcp.ts
216
216
  import { tmpdir as tmpdir2 } from "os";
@@ -35,7 +35,7 @@ import {
35
35
  isJsonObject,
36
36
  isString2,
37
37
  encodeUnknownJsonStringSync
38
- } from "./chunk-h2f26xbd.js";
38
+ } from "./chunk-bqbfyqx6.js";
39
39
  import {
40
40
  currentTimeMillis,
41
41
  make11,
@@ -43,11 +43,11 @@ import {
43
43
  toPull,
44
44
  FileSystem,
45
45
  compiled2
46
- } from "./chunk-8fyfsajs.js";
46
+ } from "./chunk-vyx49k26.js";
47
47
  import {
48
48
  ChildProcessSpawner,
49
49
  make3
50
- } from "./chunk-9nbqzdqp.js";
50
+ } from "./chunk-k9fnm7ds.js";
51
51
 
52
52
  // packages/agent-runtime/src/opencode-store.ts
53
53
  import { lstatSync, readFileSync, realpathSync, writeSync } from "fs";
@@ -3,7 +3,7 @@ import {
3
3
  Random,
4
4
  succeed6,
5
5
  withFiber2
6
- } from "./chunk-h2f26xbd.js";
6
+ } from "./chunk-bqbfyqx6.js";
7
7
 
8
8
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Random.js
9
9
  var Random2 = Random;
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  import {
3
3
  isString2
4
- } from "./chunk-h2f26xbd.js";
4
+ } from "./chunk-bqbfyqx6.js";
5
5
 
6
6
  // packages/core/src/question-recommendation.ts
7
7
  var optionValue = (option) => isString2(option) ? option : option.value;
@@ -9,10 +9,10 @@ import {
9
9
  readOpencode2,
10
10
  databaseStamp2,
11
11
  runOpencodeReader2
12
- } from "./chunk-s34am3kw.js";
13
- import"./chunk-9nbqzdqp.js";
14
- import"./chunk-8fyfsajs.js";
15
- import"./chunk-h2f26xbd.js";
12
+ } from "./chunk-5jnye659.js";
13
+ import"./chunk-k9fnm7ds.js";
14
+ import"./chunk-vyx49k26.js";
15
+ import"./chunk-bqbfyqx6.js";
16
16
  export {
17
17
  databaseStamp2 as databaseStamp,
18
18
  decoded2 as decoded,
@@ -96,7 +96,20 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-h2f26xbd.js";
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-vyx49k26.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-t89zj8wf.js";
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-8fyfsajs.js";
126
+ } from "./chunk-xmdyfzf3.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")) {
@@ -138,7 +138,7 @@ import {
138
138
  toJsonSchemaDocument,
139
139
  toCodecJson,
140
140
  Json
141
- } from "./chunk-h2f26xbd.js";
141
+ } from "./chunk-bqbfyqx6.js";
142
142
  import {
143
143
  WebCrypto,
144
144
  makeUnsafe,
@@ -175,24 +175,24 @@ import {
175
175
  StepManifest,
176
176
  KitSetup,
177
177
  RunnerRpcError
178
- } from "./chunk-t89zj8wf.js";
178
+ } from "./chunk-xmdyfzf3.js";
179
179
  import {
180
180
  currentTimeMillis,
181
181
  getCurrent,
182
182
  runForEach,
183
183
  FileSystem
184
- } from "./chunk-8fyfsajs.js";
184
+ } from "./chunk-vyx49k26.js";
185
185
  import {
186
186
  splitQuestionOptions,
187
187
  recommendationProblem,
188
188
  questionAdvice
189
- } from "./chunk-tsx0347c.js";
189
+ } from "./chunk-98azvx6g.js";
190
190
  import {
191
191
  guard,
192
192
  Id,
193
193
  Timestamp,
194
194
  ActorType
195
- } from "./chunk-4qjfn1sa.js";
195
+ } from "./chunk-ea29sbaq.js";
196
196
  var __defProp = Object.defineProperty;
197
197
  var __returnValue = (v) => v;
198
198
  function __exportSetter(name, newValue) {
@@ -1490,6 +1490,7 @@ var SuccessImpl = function(success) {
1490
1490
  };
1491
1491
  SuccessImpl.prototype = SuccessProto;
1492
1492
  var succeed7 = (success) => new SuccessImpl(success);
1493
+ var getSuccess2 = (self) => isFailure3(self) ? none2 : some2(self.success);
1493
1494
 
1494
1495
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Order.js
1495
1496
  function make(compare) {
@@ -2252,6 +2253,7 @@ var try_ = (evaluate) => {
2252
2253
  var isResult = isResult2;
2253
2254
  var isFailure = isFailure3;
2254
2255
  var isSuccess = isSuccess3;
2256
+ var getSuccess = getSuccess2;
2255
2257
  var map5 = /* @__PURE__ */ dual(2, (self, f) => isSuccess(self) ? succeed(f(self.success)) : self);
2256
2258
  var match3 = /* @__PURE__ */ dual(2, (self, {
2257
2259
  onFailure,
@@ -11741,4 +11743,4 @@ var encodeUnknownJsonStringSync = encodeSync(fromJsonString(Unknown));
11741
11743
  var storableText = (text) => text.replaceAll("\x00", "").replaceAll(/\p{Cs}/gu, "");
11742
11744
  var storable = (value) => isString2(value) ? storableText(value) : Array.isArray(value) ? value.map(storable) : isJsonObject(value) ? Object.fromEntries(Object.entries(value).map(([key, field]) => [storableText(key), storable(field)])) : value;
11743
11745
 
11744
- export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, chunksOf, empty4, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, map8, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, upTo, while_, setInputType, isEffect, all3, validate, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map9, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, encode3, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map10, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, link, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, TaggedClass2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
11746
+ export { pipeArguments, dual, identity, constant, constTrue, constFalse, constVoid, pipe, flow, memoize, isString, isNumber, isBoolean, isFunction, isUndefined, isNotUndefined, isNotNull, isNullish, isObject, hasProperty, isTagged, isUint8Array, symbol, hash, combine, number, string, structure, array, symbol2, equals, asEquivalence, symbolRedactable, redact, currentFiberTypeId, format, NodeInspectSymbol, toJson, BaseProto, Class, getStackTraceLimit, setStackTraceLimit, assignProperty, args, evaluate, PipeInspectableProto, isExit, causeFail, makePrimitive, exitSucceed, exitFailCause, exitFail, withFiber, Done, Prototype, make14, strictEqual, Tuple, String3, Number2, mapInput, none, some, isNone, isSome, match, getOrElse, orElse, fromNullishOr, fromUndefinedOr, getOrUndefined, liftThrowable, map4, flatMap, toArray, filter2, exists, Service2, makeUnsafe4, empty3, make15, add, getOrUndefined2, getOrUndefinedUnsafe, getUnsafe, get4, merge3, Reference, fromInputUnsafe, isFinite, zero, infinity, millis, seconds, minutes, toMillis, toMinutes, min, max, subtract, format2, normalize, succeed, fail3, try_, isResult, isFailure, isSuccess, getSuccess, map5, getOrElse2, getOrThrow, all2, allocate, fromIterable, isArray, isArrayNonEmpty, isReadonlyArrayNonEmpty, isCanonicalArrayIndex, getUnsafe2, sort, chunksOf, empty4, of, map6, makeEquivalence2, TaggedClass, Error2, TaggedError, encode, DisablePropagation, getCurrentFiber, fiberJoin, fiberInterrupt, succeed2, sync, suspend2, succeedNone, void_, callback2, asSome, andThen, flatMap2, map7, exitInterrupt, exitVoid, exitZipRight, scopeAddFinalizer, scope, onExitPrimitive, onExitUnsafe, uninterruptibleMask, fiberRunIn, makeLatchUnsafe, makeLatch, ClockRef, currentTimeMillis2, ConsoleRef, succeed3, failCause2, fail4, die, interrupt2, void_2, isSuccess2, isFailure2, hasInterrupts, map8, asVoidAll, makeUnsafe5, make16, _await, fail5, interruptWith, isDone, isDoneUnsafe, succeed4, doneUnsafe, TracerTimingEnabled, Scope, makeUnsafe6, provide, addFinalizerExit, addFinalizer, forkUnsafe, close, build, buildWithScope, succeed5, effect, effectContext, effectDiscard, mergeAll, provide2, provideMerge, isCause, isFailReason, isDieReason, fromReasons, fail6, die2, makeFailReason, makeDieReason, hasInterruptsOnly, combine2, squash, findError, findErrorOption, hasInterrupts2, interruptors, pretty, isDone2, Done2, done, IllegalArgumentError, UnknownError, reasonAnnotations, Random, catchDone, isDoneCause, filterDone, doneExitFromCause, matchEffect, max2, during, min2, exponential, jittered, spaced, upTo, while_, setInputType, isEffect, all3, validate, findFirst, forEach, whileLoop, promise, tryPromise, succeed6, suspend3, sync2, void_3, undefined_, callback3, never, gen, fail7, failSync, failCause3, die3, try_2, yieldNow, withFiber2, fromResult, fromNullishOr2, flatMap3, flatten, andThen2, tap2, result, option2, exit, map9, as, asSome2, asVoid, zipWith, catch_, catchTag, catchTags, catchReason, catchCause2, catchDefect, catchIf, catchCauseIf, mapError2, orDie, tapError2, tapCause, retry, retryOrElse, sandbox, ignore, ignoreCause, orElseSucceed, timeout, timeoutOption, timeoutOrElse, delay, sleep, raceAllFirst, raceFirst, filter3, filterOrFail, when, matchCauseEffect, matchEffect2, context, contextWith, provide3, provideContext2, service, serviceOption, updateContext, updateService, provideService, scope2, scoped, scopedWith, acquireRelease, acquireUseRelease, addFinalizer2, ensuring2, onError, onExitPrimitive2, onExit, cached, interrupt3, interruptible, onInterrupt, uninterruptible, uninterruptibleMask2, forever, repeat, annotateCurrentSpan, makeSpanScoped, useSpan, withSpan, withParentSpan, forkChild, forkIn, forkScoped, forkDetach, runFork, runForkWith, runPromise, runPromiseWith, runSync, runSyncExitWith, fnUntraced, fn, clockWith, logWarning, logError, logInfo, annotateLogs, effectify, mapEager, flatMapEager, catchEager, encode2, decode, encode3, Pointer, makeFormatterStandardSchemaV1, passthrough, transform, transformEffect, encodeBase64Url, decodeBase64UrlString, Transformation, transform2, defaultParseOptions, unknown, getIndexSignatureKeys, applyToSelfOrLastLinkEncoding, decodeTo, toEncoded, decodeUnknownEffect, omit, map10, declare, SchemaError, is, decodeUnknownEffect2, decodeEffect, decodeUnknownExit, decodeUnknownOption, decodeOption, decodeSync, encodeUnknownEffect, encodeEffect, encodeSync, make17, isSchema, optionalKey, optional, toType, Literal, Never, Unknown, Null, String4, Boolean2, Void, Struct, Record, StructWithRest, Tuple2, ArraySchema, NonEmptyArray, Union, Literals, NullOr, UndefinedOr, suspend4, decodeTo2, withDecodingDefaultKey, tag, TaggedStruct, link, makeFilter, isPattern, Finite, isGreaterThan, isGreaterThanOrEqualTo, isLessThanOrEqualTo, isBetween, Int, isMinLength, isMaxLength, isMinProperties, isMaxProperties, isUnique, NonEmptyString, Defect, Date2, fromJsonString, FiniteFromString, Cause, Exit, Class2, TaggedClass2, Error3, TaggedError2, toEquivalence, toJsonSchemaDocument, toCodecJson, toCodecStringTree, Json, JsonObject, toJsonValue, isOneOf, isKeyOf, toJsonObject, isBigInt, isBoolean2, isFunction2, isNumber2, isObject2, isJsonObject, isString2, isSymbol, isUndefined2, kindOf, decodeJsonString, decodeJsonStringOption, encodeJsonStringSync, encodePrettyJsonString, decodeJsonStringSync, encodeUnknownJsonStringSync, storable };
@@ -13,17 +13,17 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-h2f26xbd.js";
16
+ } from "./chunk-bqbfyqx6.js";
17
17
  import {
18
18
  FileSystem,
19
19
  Path
20
- } from "./chunk-8fyfsajs.js";
20
+ } from "./chunk-vyx49k26.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-c2ngtf1e.js";
26
+ } from "./chunk-gfzzgz3h.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-t89zj8wf.js";
35
- import"./chunk-96bzt4ck.js";
36
- import"./chunk-9nbqzdqp.js";
37
- import"./chunk-4qjfn1sa.js";
34
+ } from "./chunk-xmdyfzf3.js";
35
+ import"./chunk-ymzkqbye.js";
36
+ import"./chunk-k9fnm7ds.js";
37
+ import"./chunk-ea29sbaq.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-dw0v4ke8.js";
8
- import"./chunk-ewf73f4k.js";
9
- import"./chunk-t89zj8wf.js";
10
- import"./chunk-4qjfn1sa.js";
11
- import"./chunk-8fyfsajs.js";
12
- import"./chunk-h2f26xbd.js";
7
+ } from "./chunk-g0vpp6p9.js";
8
+ import"./chunk-ay4s5qnv.js";
9
+ import"./chunk-xmdyfzf3.js";
10
+ import"./chunk-ea29sbaq.js";
11
+ import"./chunk-vyx49k26.js";
12
+ import"./chunk-bqbfyqx6.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-vz38kngm.js";
8
- import"./chunk-4qjfn1sa.js";
9
- import"./chunk-h2f26xbd.js";
7
+ } from "./chunk-wy6gmtd9.js";
8
+ import"./chunk-ea29sbaq.js";
9
+ import"./chunk-bqbfyqx6.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -18,7 +18,7 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-h2f26xbd.js";
21
+ } from "./chunk-bqbfyqx6.js";
22
22
 
23
23
  // packages/core/src/schema.ts
24
24
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -6,7 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-h2f26xbd.js";
9
+ } from "./chunk-bqbfyqx6.js";
10
+ import {
11
+ runForEach
12
+ } from "./chunk-vyx49k26.js";
10
13
  import {
11
14
  WebSocketConstructor,
12
15
  layerWebSocketConstructorGlobal,
@@ -16,16 +19,13 @@ import {
16
19
  RunnerReplicaRpcs,
17
20
  RunnerRunFileRpcs,
18
21
  ProgramRpcs
19
- } from "./chunk-t89zj8wf.js";
20
- import {
21
- runForEach
22
- } from "./chunk-8fyfsajs.js";
22
+ } from "./chunk-xmdyfzf3.js";
23
23
  import {
24
24
  layerJson,
25
25
  make4,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-ewf73f4k.js";
28
+ } from "./chunk-ay4s5qnv.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-h2f26xbd.js";
28
+ } from "./chunk-bqbfyqx6.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-8fyfsajs.js";
34
+ } from "./chunk-vyx49k26.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-t89zj8wf.js";
39
+ } from "./chunk-xmdyfzf3.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-96bzt4ck.js";
42
+ } from "./chunk-ymzkqbye.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -22,7 +22,7 @@ import {
22
22
  map9,
23
23
  raceFirst,
24
24
  scoped
25
- } from "./chunk-h2f26xbd.js";
25
+ } from "./chunk-bqbfyqx6.js";
26
26
  import {
27
27
  unwrap,
28
28
  drainFork,
@@ -31,7 +31,7 @@ import {
31
31
  runCollect,
32
32
  runDrain,
33
33
  mkString
34
- } from "./chunk-8fyfsajs.js";
34
+ } from "./chunk-vyx49k26.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;
@@ -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.36.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.37.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) {
@@ -109,7 +109,20 @@ import {
109
109
  decodeJsonStringOption,
110
110
  encodeJsonStringSync,
111
111
  encodePrettyJsonString
112
- } from "./chunk-h2f26xbd.js";
112
+ } from "./chunk-bqbfyqx6.js";
113
+ import {
114
+ currentTimeMillis,
115
+ tap,
116
+ mapError,
117
+ decodeText,
118
+ run,
119
+ mkString,
120
+ FileSystem,
121
+ Path,
122
+ withDefault,
123
+ option,
124
+ String2
125
+ } from "./chunk-vyx49k26.js";
113
126
  import {
114
127
  SecureRandom,
115
128
  layerWebCrypto,
@@ -240,28 +253,15 @@ import {
240
253
  harnessNames,
241
254
  herdrRunnerCapabilities2,
242
255
  declaredChecks
243
- } from "./chunk-t89zj8wf.js";
244
- import {
245
- currentTimeMillis,
246
- tap,
247
- mapError,
248
- decodeText,
249
- run,
250
- mkString,
251
- FileSystem,
252
- Path,
253
- withDefault,
254
- option,
255
- String2
256
- } from "./chunk-8fyfsajs.js";
256
+ } from "./chunk-xmdyfzf3.js";
257
257
  import {
258
258
  ChildProcessSpawner,
259
259
  make3
260
- } from "./chunk-9nbqzdqp.js";
260
+ } from "./chunk-k9fnm7ds.js";
261
261
  import {
262
262
  Id,
263
263
  Timestamp
264
- } from "./chunk-4qjfn1sa.js";
264
+ } from "./chunk-ea29sbaq.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-vwaf8peb.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1332
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-2nqsmnx7.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-vwaf8peb.js")), (module) => module.updateHerdrCore(options))
1335
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-2nqsmnx7.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-wckr96wg.js"));
1799
+ const { syncKitSetup } = yield* promise(() => import("./chunk-bvpa6jrp.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.36.0";
3294
+ var cliVersion = "0.37.0";
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-th0znqwv.js"));
3559
+ var agentRuntime = promise(() => import("./chunk-2pqqspes.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-crw9pdwb.js"));
5098
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-cb6yfbkf.js"));
5099
5099
  return yield* makeRunnerRpcClient({
5100
5100
  runnerId: options.runnerId,
5101
5101
  bearer: options.bearer,
@@ -5692,7 +5692,7 @@ function mcpCommand(args) {
5692
5692
  if (command.action === "run") {
5693
5693
  if (command.args.length > 0)
5694
5694
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
5695
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-49hz9619.js"));
5695
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-3xfsv475.js"));
5696
5696
  return yield* runMcpServerCommand({ flags: command.flags });
5697
5697
  }
5698
5698
  if (command.action !== "setup")
@@ -6192,7 +6192,7 @@ function programLoopCommand(command) {
6192
6192
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
6193
6193
  });
6194
6194
  }
6195
- var docsModule = promise(() => import("./chunk-rbj2eant.js"));
6195
+ var docsModule = promise(() => import("./chunk-pdcj5cfz.js"));
6196
6196
  function docsCommand(args) {
6197
6197
  return gen(function* () {
6198
6198
  const command = parseCommand(args);
@@ -7196,7 +7196,7 @@ function changeRequestCommand(args) {
7196
7196
  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}`);
7197
7197
  });
7198
7198
  }
7199
- var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-3t6aayxz.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7199
+ var readOutlines = (directory) => flatMap3(promise(() => import("./chunk-za4cezh6.js")), (build) => build.readOutlines(directory)).pipe(mapError2((error) => new CliError({ message: error.message })));
7200
7200
  var loopOutline = (command) => gen(function* () {
7201
7201
  const path = yield* Path;
7202
7202
  const loop = requiredArg(command, "a Loop id");
@@ -7216,9 +7216,9 @@ var loopOutline = (command) => gen(function* () {
7216
7216
  `).pipe(mapError2((error) => new CliError({ message: error.message })));
7217
7217
  yield* log(`Wrote the outline of ${loop} to ${out}`);
7218
7218
  });
7219
- var KitWriter = map9(promise(() => import("./chunk-3t6aayxz.js")), (build) => build.writeKit);
7219
+ var KitWriter = map9(promise(() => import("./chunk-za4cezh6.js")), (build) => build.writeKit);
7220
7220
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
7221
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-3t6aayxz.js")), (build) => build.buildKit(directory))
7221
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-za4cezh6.js")), (build) => build.buildKit(directory))
7222
7222
  });
7223
7223
  var uploadKit = (client, workspaceId, built) => gen(function* () {
7224
7224
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -4,7 +4,7 @@ import {
4
4
  searchDocs2,
5
5
  readDoc2,
6
6
  pinnedLink2
7
- } from "./chunk-6bwf81dt.js";
7
+ } from "./chunk-kk1wfhhz.js";
8
8
  export {
9
9
  DefaultDocsSearchLimit2 as DefaultDocsSearchLimit,
10
10
  pinnedLink2 as pinnedLink,
@@ -205,7 +205,7 @@ import {
205
205
  String4,
206
206
  toCodecStringTree,
207
207
  encodeUnknownJsonStringSync
208
- } from "./chunk-h2f26xbd.js";
208
+ } from "./chunk-bqbfyqx6.js";
209
209
 
210
210
  // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/Iterable.js
211
211
  var headUnsafe = (self) => {
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-h2f26xbd.js";
16
+ } from "./chunk-bqbfyqx6.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-4qjfn1sa.js";
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";
@@ -262,7 +262,7 @@ import {
262
262
  decodeJsonStringOption,
263
263
  encodeJsonStringSync,
264
264
  encodePrettyJsonString
265
- } from "./chunk-h2f26xbd.js";
265
+ } from "./chunk-bqbfyqx6.js";
266
266
  import {
267
267
  map,
268
268
  makeEquivalence,
@@ -332,7 +332,7 @@ import {
332
332
  optionalEnv,
333
333
  harnessesUnsupportedInSrt2,
334
334
  harnessesUnsupportedInDocker2
335
- } from "./chunk-8fyfsajs.js";
335
+ } from "./chunk-vyx49k26.js";
336
336
  import {
337
337
  isRedacted,
338
338
  make,
@@ -346,7 +346,7 @@ import {
346
346
  make3,
347
347
  parseFdName,
348
348
  fdName
349
- } from "./chunk-9nbqzdqp.js";
349
+ } from "./chunk-k9fnm7ds.js";
350
350
  import {
351
351
  isDateTime,
352
352
  Numeric,
@@ -359,7 +359,7 @@ import {
359
359
  SecretScope,
360
360
  SecretHosts,
361
361
  isSecretReference
362
- } from "./chunk-4qjfn1sa.js";
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;
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-h2f26xbd.js";
27
+ } from "./chunk-bqbfyqx6.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-8fyfsajs.js";
31
+ } from "./chunk-vyx49k26.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-t89zj8wf.js";
42
+ } from "./chunk-xmdyfzf3.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -35,7 +35,15 @@ import {
35
35
  toCodecJson,
36
36
  Json,
37
37
  encodePrettyJsonString
38
- } from "./chunk-h2f26xbd.js";
38
+ } from "./chunk-bqbfyqx6.js";
39
+ import {
40
+ decodeText,
41
+ mkString,
42
+ FileSystem,
43
+ Path,
44
+ withDefault,
45
+ String2
46
+ } from "./chunk-vyx49k26.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-t89zj8wf.js";
56
- import {
57
- decodeText,
58
- mkString,
59
- FileSystem,
60
- Path,
61
- withDefault,
62
- String2
63
- } from "./chunk-8fyfsajs.js";
63
+ } from "./chunk-xmdyfzf3.js";
64
64
  import {
65
65
  Packument,
66
66
  tarballMatches
67
- } from "./chunk-96bzt4ck.js";
67
+ } from "./chunk-ymzkqbye.js";
68
68
  import {
69
69
  stepDefinedTwice,
70
70
  hostSteps,
71
71
  exports_activities,
72
72
  describeFlag,
73
73
  Described
74
- } from "./chunk-pn7egyb2.js";
75
- import"./chunk-dw0v4ke8.js";
76
- import"./chunk-tsx0347c.js";
74
+ } from "./chunk-b4gf06xg.js";
75
+ import"./chunk-g0vpp6p9.js";
76
+ import"./chunk-98azvx6g.js";
77
77
  import {
78
78
  ChildProcessSpawner,
79
79
  make3
80
- } from "./chunk-9nbqzdqp.js";
81
- import"./chunk-ewf73f4k.js";
82
- import"./chunk-4qjfn1sa.js";
80
+ } from "./chunk-k9fnm7ds.js";
81
+ import"./chunk-ay4s5qnv.js";
82
+ import"./chunk-ea29sbaq.js";
83
83
 
84
84
  // packages/sdk/src/build/outline/graph.ts
85
85
  import {
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-x29m7k25.js");
8
+ const { runSrtCli } = await import("./chunk-310dsxts.js");
9
9
  await runSrtCli();
10
10
  } else if (args[0] === "srt-step") {
11
- const { runSrtStep } = await import("./chunk-samxkpbz.js");
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-gnq1ryhx.js");
14
+ const { runOpencodeReader } = await import("./chunk-av744yc8.js");
15
15
  runOpencodeReader();
16
16
  } else {
17
- const { runCli } = await import("./chunk-wab1jevd.js");
17
+ const { runCli } = await import("./chunk-mpw74rad.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.36.0",
3
+ "version": "0.37.0",
4
4
  "type": "module",
5
5
  "license": "SEE LICENSE IN LICENSE.md",
6
6
  "bin": {