@kitman-sh/cli 0.14.0 → 0.14.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.
Files changed (27) hide show
  1. package/dist/{chunk-9j4cnz4j.js → chunk-0axm9scx.js} +38 -32
  2. package/dist/{chunk-w8vxzc7w.js → chunk-27k0egfz.js} +13 -13
  3. package/dist/{chunk-r9tzwrnb.js → chunk-4qpmjrd2.js} +2 -2
  4. package/dist/{chunk-bmkc5r0p.js → chunk-5jqqhvv2.js} +4 -4
  5. package/dist/{chunk-gbr4s7nk.js → chunk-5x44qb6d.js} +6 -6
  6. package/dist/{chunk-w34sq09e.js → chunk-77jk3v8v.js} +5 -5
  7. package/dist/{chunk-ctpgfdzf.js → chunk-93xj74qp.js} +3 -3
  8. package/dist/{chunk-t2zzamex.js → chunk-a9srrnsk.js} +30 -30
  9. package/dist/{chunk-9avbsbvk.js → chunk-c80dvhxf.js} +6 -1
  10. package/dist/{chunk-y0y2gg8d.js → chunk-cwdrhsvk.js} +2 -2
  11. package/dist/{chunk-wb3wsm86.js → chunk-enabwyrn.js} +7 -7
  12. package/dist/{chunk-f2ycw5bp.js → chunk-f1y7ysjg.js} +129 -280
  13. package/dist/{chunk-c4mf5mgt.js → chunk-fch7pjzh.js} +2 -2
  14. package/dist/{chunk-gmdd1a74.js → chunk-gvs5fcvy.js} +2 -2
  15. package/dist/{chunk-vth8h56e.js → chunk-jnpv483d.js} +4 -4
  16. package/dist/{chunk-hq2xzj6f.js → chunk-jp7cjnng.js} +4 -4
  17. package/dist/{chunk-84fcym2g.js → chunk-kwkh8hxt.js} +1 -1
  18. package/dist/{chunk-5d2sdzbz.js → chunk-nvncrs4n.js} +7 -7
  19. package/dist/{chunk-5129s1vg.js → chunk-pyss20q2.js} +3 -3
  20. package/dist/{chunk-h7zb6d3z.js → chunk-rbbh4f56.js} +177 -34
  21. package/dist/{chunk-bbf0jzsc.js → chunk-vt8aqeby.js} +1 -1
  22. package/dist/{chunk-bscvbpa1.js → chunk-vx4qe0fe.js} +6 -6
  23. package/dist/{chunk-zpp4jg4a.js → chunk-wttgq85b.js} +60 -60
  24. package/dist/{chunk-099ybrqz.js → chunk-zr59g5bk.js} +18 -18
  25. package/dist/{chunk-4c6w8sb7.js → chunk-zw2mzy00.js} +9 -9
  26. package/dist/index.js +4 -4
  27. package/package.json +1 -1
@@ -41,7 +41,7 @@ import {
41
41
  isFailure2,
42
42
  hasInterrupts,
43
43
  makeUnsafe5,
44
- make15,
44
+ make16,
45
45
  _await,
46
46
  fail5,
47
47
  isDoneUnsafe,
@@ -168,8 +168,14 @@ import {
168
168
  decodeJsonStringSync,
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
- } from "./chunk-zpp4jg4a.js";
171
+ } from "./chunk-wttgq85b.js";
172
172
  import {
173
+ Id,
174
+ secretReference,
175
+ secretPlaceholder
176
+ } from "./chunk-c80dvhxf.js";
177
+ import {
178
+ currentTimeMillis,
173
179
  SecureRandom,
174
180
  layerWebCrypto,
175
181
  layer,
@@ -248,9 +254,8 @@ import {
248
254
  checkServicesFile,
249
255
  checkServices,
250
256
  serviceChecks
251
- } from "./chunk-f2ycw5bp.js";
257
+ } from "./chunk-f1y7ysjg.js";
252
258
  import {
253
- currentTimeMillis,
254
259
  join,
255
260
  interrupt,
256
261
  unbounded,
@@ -258,7 +263,7 @@ import {
258
263
  unbounded2,
259
264
  offer,
260
265
  makeUnsafe3,
261
- make10,
266
+ make11,
262
267
  fromQueue,
263
268
  fromPubSub,
264
269
  map2,
@@ -293,7 +298,7 @@ import {
293
298
  writeSrtSettings2,
294
299
  srtStepArgv2,
295
300
  srtArgv2
296
- } from "./chunk-h7zb6d3z.js";
301
+ } from "./chunk-rbbh4f56.js";
297
302
  import {
298
303
  writeAgentEnvironmentConfigFile2,
299
304
  readManifestSkillPaths2,
@@ -309,8 +314,8 @@ import {
309
314
  applyAgentEnvironmentMaterialization2,
310
315
  isPathWithin2,
311
316
  skillIdentity2
312
- } from "./chunk-bmkc5r0p.js";
313
- import"./chunk-5129s1vg.js";
317
+ } from "./chunk-5jqqhvv2.js";
318
+ import"./chunk-pyss20q2.js";
314
319
  import {
315
320
  egressAllowed,
316
321
  writeSecretRegistry,
@@ -320,7 +325,7 @@ import {
320
325
  secretFilter2,
321
326
  opaqueTunnelRefusal2,
322
327
  isOpaqueConnectReason2
323
- } from "./chunk-y0y2gg8d.js";
328
+ } from "./chunk-cwdrhsvk.js";
324
329
  import {
325
330
  sliceBytes2,
326
331
  maxLineBytes2,
@@ -328,28 +333,23 @@ import {
328
333
  decodedOption2,
329
334
  decoded2,
330
335
  readOpencode2
331
- } from "./chunk-w34sq09e.js";
336
+ } from "./chunk-77jk3v8v.js";
332
337
  import {
333
338
  uploadRunFile,
334
339
  programLease,
335
340
  rpcRunFiles,
336
341
  programHostsEnv,
337
342
  undeclaredHostsEnv
338
- } from "./chunk-5d2sdzbz.js";
339
- import"./chunk-bscvbpa1.js";
343
+ } from "./chunk-nvncrs4n.js";
344
+ import"./chunk-vx4qe0fe.js";
340
345
  import {
341
346
  nextInt
342
- } from "./chunk-bbf0jzsc.js";
347
+ } from "./chunk-vt8aqeby.js";
343
348
  import {
344
349
  ChildProcessSpawner,
345
350
  make3
346
- } from "./chunk-r9tzwrnb.js";
347
- import"./chunk-099ybrqz.js";
348
- import {
349
- Id,
350
- secretReference,
351
- secretPlaceholder
352
- } from "./chunk-9avbsbvk.js";
351
+ } from "./chunk-4qpmjrd2.js";
352
+ import"./chunk-zr59g5bk.js";
353
353
 
354
354
  // packages/core/src/sync-kit.ts
355
355
  import { createHash } from "crypto";
@@ -1744,7 +1744,7 @@ var HarnessAdapters = [
1744
1744
  ],
1745
1745
  tools: {
1746
1746
  flag: "--tools",
1747
- base: ["Bash", "Read", "Edit", "Write", "Grep", "Glob", "Monitor", "TaskStop"],
1747
+ base: ["Bash", "Read", "Edit", "Write", "Grep", "Glob", "Monitor", "TaskStop", "REPL"],
1748
1748
  skill: "Skill",
1749
1749
  capabilities: {
1750
1750
  web: ["WebFetch", "WebSearch"],
@@ -1753,7 +1753,7 @@ var HarnessAdapters = [
1753
1753
  },
1754
1754
  args: ["--strict-mcp-config"]
1755
1755
  },
1756
- browserArgs: { on: ["--chrome"], off: ["--no-chrome"] },
1756
+ browserArgs: { on: ["--chrome"], off: ["--no-chrome"], onEnv: { CLAUDE_CODE_EXPERIMENTAL_CODE_MODE: "0" } },
1757
1757
  toolless: { args: ["--tools", "", "--strict-mcp-config"] },
1758
1758
  mcp: { kind: "json_arg", flag: "--mcp-config" },
1759
1759
  brief: { kind: "file_flag", flag: "--append-system-prompt-file" },
@@ -1764,7 +1764,8 @@ var HarnessAdapters = [
1764
1764
  CLAUDE_CODE_DISABLE_AUTO_MEMORY: "1",
1765
1765
  CLAUDE_CODE_DISABLE_ADVISOR_TOOL: "1",
1766
1766
  CLAUDE_CODE_DISABLE_FEATURE_FLAGS: "1",
1767
- ENABLE_TOOL_SEARCH: "false"
1767
+ ENABLE_TOOL_SEARCH: "false",
1768
+ CLAUDE_CODE_EXPERIMENTAL_CODE_MODE: "1"
1768
1769
  },
1769
1770
  mcpToolTimeout: { kind: "env", variables: ["MCP_TOOL_TIMEOUT", "CLAUDE_CODE_MCP_TOOL_IDLE_TIMEOUT"], unit: "ms" },
1770
1771
  tempDirectoryVariable: "CLAUDE_CODE_TMPDIR",
@@ -2193,6 +2194,7 @@ function mcpLaunch(input, skillsDir) {
2193
2194
  const allowlist = adapter.tools;
2194
2195
  const listsSkills = (input.kitSetup?.skills ?? []).length > 0;
2195
2196
  const browser = adapter.browserArgs === undefined ? [] : capabilities.includes("browser") ? adapter.browserArgs.on : adapter.browserArgs.off;
2197
+ const browserEnv = capabilities.includes("browser") ? adapter.browserArgs?.onEnv ?? {} : {};
2196
2198
  const toolArgs = allowlist === undefined ? [] : [
2197
2199
  allowlist.flag,
2198
2200
  [
@@ -2233,7 +2235,7 @@ function mcpLaunch(input, skillsDir) {
2233
2235
  JSON.stringify({ mcpServers: { kitman: { ...server, ...serverFields } } }),
2234
2236
  ...Object.keys(kitServers).length === 0 ? [] : [`${input.configDir}/.mcp.json`]
2235
2237
  ],
2236
- env: timeoutEnv,
2238
+ env: { ...timeoutEnv, ...browserEnv },
2237
2239
  files: []
2238
2240
  };
2239
2241
  case "toml_overrides": {
@@ -2256,7 +2258,7 @@ function mcpLaunch(input, skillsDir) {
2256
2258
  `mcp_servers.${/^[A-Za-z0-9_-]+$/u.test(name) ? name : JSON.stringify(name)}=${tomlInline(value)}`
2257
2259
  ])
2258
2260
  ],
2259
- env: timeoutEnv,
2261
+ env: { ...timeoutEnv, ...browserEnv },
2260
2262
  files: []
2261
2263
  };
2262
2264
  }
@@ -2264,7 +2266,7 @@ function mcpLaunch(input, skillsDir) {
2264
2266
  return {
2265
2267
  binary: adapter.binary,
2266
2268
  args: [...session, ...accessArgs, ...model],
2267
- env: timeoutEnv,
2269
+ env: { ...timeoutEnv, ...browserEnv },
2268
2270
  files: [{ path: `${input.configDir}/${delivery.path}`, content: fileConfig() }]
2269
2271
  };
2270
2272
  case "config_env":
@@ -2273,6 +2275,7 @@ function mcpLaunch(input, skillsDir) {
2273
2275
  args: [...session, ...accessArgs, ...model],
2274
2276
  env: {
2275
2277
  ...timeoutEnv,
2278
+ ...browserEnv,
2276
2279
  [delivery.variable]: JSON.stringify({
2277
2280
  ...input.model === undefined ? undefined : { model: input.model },
2278
2281
  mcp: {
@@ -3159,6 +3162,8 @@ class ClaudeTrustNotRecorded extends TaggedError("ClaudeTrustNotRecorded") {
3159
3162
  class ConfigLockHeld extends TaggedError("ConfigLockHeld") {
3160
3163
  }
3161
3164
  var withEntry = (object, key, value) => Object.fromEntries([...Object.entries(object), [key, value]]);
3165
+ var codeModeCaveats = ["codeModeCaveatsAcceptedV1", "codeModeAutoModeCaveatAcceptedV1"];
3166
+ var isSettled = (config, workspace) => projectOf(config, workspace).project.hasTrustDialogAccepted === true && codeModeCaveats.every((key) => config[key] === true);
3162
3167
  var configLockStaleMs = 1e4;
3163
3168
  var configLockPollMs = 25;
3164
3169
  var configLockPolls = 2 * configLockStaleMs / configLockPollMs;
@@ -3200,7 +3205,7 @@ var projectOf = (config, workspace) => {
3200
3205
  const project = isJsonObject(projects[workspace]) ? projects[workspace] : {};
3201
3206
  return { projects, project };
3202
3207
  };
3203
- var isTrusted = (file, workspace) => map8(readConfig(file), (config) => isSome(config) ? projectOf(config.value, workspace).project.hasTrustDialogAccepted === true : false);
3208
+ var isTrusted = (file, workspace) => map8(readConfig(file), (config) => isSome(config) && isSettled(config.value, workspace));
3204
3209
  var holdConfigLock = (file) => gen(function* () {
3205
3210
  const fs = yield* FileSystem;
3206
3211
  const lock = `${file}.lock`;
@@ -3224,9 +3229,10 @@ var record = (home, workspace) => gen(function* () {
3224
3229
  if (isNone(config))
3225
3230
  return yield* new ClaudeTrustNotRecorded({ file, reason: "it is not a JSON object" });
3226
3231
  const { projects, project } = projectOf(config.value, workspace);
3227
- if (project.hasTrustDialogAccepted === true)
3232
+ if (isSettled(config.value, workspace))
3228
3233
  return;
3229
- const json = yield* encodePrettyJsonString(withEntry(config.value, "projects", withEntry(projects, workspace, withEntry(project, "hasTrustDialogAccepted", true))));
3234
+ const trusted = withEntry(config.value, "projects", withEntry(projects, workspace, withEntry(project, "hasTrustDialogAccepted", true)));
3235
+ const json = yield* encodePrettyJsonString(codeModeCaveats.reduce((settled, key) => withEntry(settled, key, true), trusted));
3230
3236
  const temporary = yield* fs.makeTempFile({ directory: home, prefix: ".claude.json.kitman-" });
3231
3237
  yield* fs.chmod(temporary, 384);
3232
3238
  yield* fs.writeFileString(temporary, `${json}
@@ -7169,7 +7175,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7169
7175
  return {
7170
7176
  request: (method, params) => gen(function* () {
7171
7177
  const id = ++lastId;
7172
- const deferred = yield* make15();
7178
+ const deferred = yield* make16();
7173
7179
  pending.set(id, deferred);
7174
7180
  yield* send({ id, method, params });
7175
7181
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -7312,7 +7318,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
7312
7318
  const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
7313
7319
  extendEnv: true,
7314
7320
  env: mcp.env,
7315
- stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
7321
+ stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
7316
7322
  stderr: "ignore"
7317
7323
  }));
7318
7324
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -7386,7 +7392,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7386
7392
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7387
7393
  const spawner = yield* ChildProcessSpawner;
7388
7394
  const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7389
- stdin: make10(new TextEncoder().encode(stdin)),
7395
+ stdin: make11(new TextEncoder().encode(stdin)),
7390
7396
  stdout: "inherit",
7391
7397
  stderr: "inherit",
7392
7398
  extendEnv: false,
@@ -118,8 +118,9 @@ import {
118
118
  decodeJsonStringOption,
119
119
  encodeJsonStringSync,
120
120
  encodePrettyJsonString
121
- } from "./chunk-zpp4jg4a.js";
121
+ } from "./chunk-wttgq85b.js";
122
122
  import {
123
+ currentTimeMillis,
123
124
  SecureRandom,
124
125
  makeUnsafe,
125
126
  formatIso,
@@ -169,9 +170,14 @@ import {
169
170
  runMcpEffect,
170
171
  createAgentAuthSignedFetch,
171
172
  setupMcpAgentCredential
172
- } from "./chunk-f2ycw5bp.js";
173
+ } from "./chunk-f1y7ysjg.js";
174
+ import {
175
+ guard,
176
+ Id,
177
+ Timestamp,
178
+ ActorType
179
+ } from "./chunk-c80dvhxf.js";
173
180
  import {
174
- currentTimeMillis,
175
181
  join,
176
182
  interrupt,
177
183
  empty2,
@@ -187,27 +193,21 @@ import {
187
193
  withDefault,
188
194
  option,
189
195
  String2
190
- } from "./chunk-h7zb6d3z.js";
196
+ } from "./chunk-rbbh4f56.js";
191
197
  import {
192
198
  searchDocs2,
193
199
  readDoc2
194
- } from "./chunk-gmdd1a74.js";
200
+ } from "./chunk-gvs5fcvy.js";
195
201
  import {
196
202
  nextInt
197
- } from "./chunk-bbf0jzsc.js";
203
+ } from "./chunk-vt8aqeby.js";
198
204
  import {
199
205
  layerJson,
200
206
  make4,
201
207
  withHeaders,
202
208
  layerProtocolSocket,
203
209
  ConnectionHooks
204
- } from "./chunk-099ybrqz.js";
205
- import {
206
- guard,
207
- Id,
208
- Timestamp,
209
- ActorType
210
- } from "./chunk-9avbsbvk.js";
210
+ } from "./chunk-zr59g5bk.js";
211
211
 
212
212
  // apps/cli/src/mcp.ts
213
213
  import { tmpdir as tmpdir2 } from "os";
@@ -22,7 +22,7 @@ import {
22
22
  map8,
23
23
  raceFirst,
24
24
  scoped
25
- } from "./chunk-zpp4jg4a.js";
25
+ } from "./chunk-wttgq85b.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-h7zb6d3z.js";
34
+ } from "./chunk-rbbh4f56.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;
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-zpp4jg4a.js";
28
+ } from "./chunk-wttgq85b.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-h7zb6d3z.js";
34
+ } from "./chunk-rbbh4f56.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-f2ycw5bp.js";
39
+ } from "./chunk-f1y7ysjg.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-5129s1vg.js";
42
+ } from "./chunk-pyss20q2.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-bscvbpa1.js";
8
- import"./chunk-099ybrqz.js";
9
- import"./chunk-f2ycw5bp.js";
10
- import"./chunk-9avbsbvk.js";
11
- import"./chunk-h7zb6d3z.js";
12
- import"./chunk-zpp4jg4a.js";
7
+ } from "./chunk-vx4qe0fe.js";
8
+ import"./chunk-zr59g5bk.js";
9
+ import"./chunk-f1y7ysjg.js";
10
+ import"./chunk-c80dvhxf.js";
11
+ import"./chunk-rbbh4f56.js";
12
+ import"./chunk-wttgq85b.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -25,16 +25,16 @@ import {
25
25
  isJsonObject,
26
26
  isString2,
27
27
  encodeUnknownJsonStringSync
28
- } from "./chunk-zpp4jg4a.js";
28
+ } from "./chunk-wttgq85b.js";
29
29
  import {
30
- make10,
30
+ make11,
31
31
  runForEach,
32
32
  compiled2
33
- } from "./chunk-h7zb6d3z.js";
33
+ } from "./chunk-rbbh4f56.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-r9tzwrnb.js";
37
+ } from "./chunk-4qpmjrd2.js";
38
38
 
39
39
  // packages/agent-runtime/src/opencode-store.ts
40
40
  import { lstatSync, readFileSync, realpathSync } from "fs";
@@ -173,7 +173,7 @@ var isolatedRead = (store, name, input) => gen(function* () {
173
173
  const spawner = yield* ChildProcessSpawner;
174
174
  const [command, ...args] = opencodeReaderCommand();
175
175
  const handle = yield* spawner.spawn(make3(command, args, {
176
- stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
176
+ stdin: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
177
177
  stderr: "ignore",
178
178
  extendEnv: false,
179
179
  env: {},
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-y0y2gg8d.js";
8
- import"./chunk-9avbsbvk.js";
9
- import"./chunk-zpp4jg4a.js";
7
+ } from "./chunk-cwdrhsvk.js";
8
+ import"./chunk-c80dvhxf.js";
9
+ import"./chunk-wttgq85b.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make15,
15
+ make16,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -104,8 +104,21 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-zpp4jg4a.js";
107
+ } from "./chunk-wttgq85b.js";
108
108
  import {
109
+ tap,
110
+ mapError,
111
+ decodeText,
112
+ run,
113
+ mkString,
114
+ FileSystem,
115
+ Path,
116
+ withDefault,
117
+ option,
118
+ String2
119
+ } from "./chunk-rbbh4f56.js";
120
+ import {
121
+ currentTimeMillis,
109
122
  SecureRandom,
110
123
  layerWebCrypto,
111
124
  runMain,
@@ -219,27 +232,14 @@ import {
219
232
  harnessNames,
220
233
  herdrRunnerCapabilities2,
221
234
  declaredChecks
222
- } from "./chunk-f2ycw5bp.js";
235
+ } from "./chunk-f1y7ysjg.js";
223
236
  import {
224
- currentTimeMillis,
225
- tap,
226
- mapError,
227
- decodeText,
228
- run,
229
- mkString,
230
- FileSystem,
231
- Path,
232
- withDefault,
233
- option,
234
- String2
235
- } from "./chunk-h7zb6d3z.js";
237
+ Id
238
+ } from "./chunk-c80dvhxf.js";
236
239
  import {
237
240
  ChildProcessSpawner,
238
241
  make3
239
- } from "./chunk-r9tzwrnb.js";
240
- import {
241
- Id
242
- } from "./chunk-9avbsbvk.js";
242
+ } from "./chunk-4qpmjrd2.js";
243
243
 
244
244
  // apps/cli/src/cli-error.ts
245
245
  function cliErrorCode(error, status) {
@@ -1020,10 +1020,10 @@ var sandboxMissing = (sandbox, missing) => ({
1020
1020
  var personalCheckBackend = (agentSandbox, dockerAvailable) => agentSandbox === "srt" || agentSandbox === "docker" && dockerAvailable ? agentSandbox : undefined;
1021
1021
  var herdrCoreSession = (runnerId, personal) => personal ? undefined : `kitman-${sha2562(runnerId).slice(0, 16)}`;
1022
1022
  var OpenHerdrCore = Reference("kitman/cli/OpenHerdrCore", {
1023
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-vth8h56e.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1023
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-jnpv483d.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1024
1024
  });
1025
1025
  var UpdateHerdrCore = Reference("kitman/cli/UpdateHerdrCore", {
1026
- defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-vth8h56e.js")), (module) => module.updateHerdrCore(options))
1026
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-jnpv483d.js")), (module) => module.updateHerdrCore(options))
1027
1027
  });
1028
1028
  var herdrCoreMissing = (error) => {
1029
1029
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1449,7 +1449,7 @@ var syncTargets = (harness) => gen(function* () {
1449
1449
  });
1450
1450
  var syncKits = (input) => gen(function* () {
1451
1451
  const fs = yield* FileSystem;
1452
- const { syncKitSetup } = yield* promise(() => import("./chunk-wb3wsm86.js"));
1452
+ const { syncKitSetup } = yield* promise(() => import("./chunk-enabwyrn.js"));
1453
1453
  const harnesses = yield* syncTargets(input.harness);
1454
1454
  const chain = yield* input.client.getKitChain(input.workspaceId);
1455
1455
  for (const { name, problem } of chain.skipped)
@@ -2368,7 +2368,7 @@ var package_default = {
2368
2368
  };
2369
2369
 
2370
2370
  // apps/cli/src/scaffold.ts
2371
- var cliVersion = "0.14.0";
2371
+ var cliVersion = "0.14.1";
2372
2372
  var packageJson = (name, scaffold) => `${JSON.stringify({
2373
2373
  name,
2374
2374
  private: true,
@@ -2520,7 +2520,7 @@ var scaffoldKit = (directory, scaffold = {}) => gen(function* () {
2520
2520
 
2521
2521
  // apps/cli/src/commands.ts
2522
2522
  var ClientId = "kitman-cli";
2523
- var agentRuntime = promise(() => import("./chunk-9j4cnz4j.js"));
2523
+ var agentRuntime = promise(() => import("./chunk-0axm9scx.js"));
2524
2524
  var TuiLauncher = Reference("kitman/cli/TuiLauncher", {
2525
2525
  defaultValue: () => gen(function* () {
2526
2526
  const tui = yield* tryPromise({
@@ -3556,7 +3556,7 @@ var SandboxHostProbe = Reference("kitman/cli/SandboxHostProbe", {
3556
3556
  });
3557
3557
  var OpenRunnerRpc = Reference("kitman/cli/OpenRunnerRpc", {
3558
3558
  defaultValue: () => (options) => gen(function* () {
3559
- const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-gbr4s7nk.js"));
3559
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-5x44qb6d.js"));
3560
3560
  return yield* makeRunnerRpcClient({
3561
3561
  runnerId: options.runnerId,
3562
3562
  bearer: options.bearer,
@@ -3868,7 +3868,7 @@ function startCanonicalHerdrRunnerCommand(input) {
3868
3868
  yield* controlPlane.client.listRepoBindings(runner.workspaceId).pipe(flatMap3(({ items }) => forEach(items.filter((binding) => binding.status === "active" && (teamId === undefined || binding.teamId === teamId)), (repoBinding) => map8(checkouts.reaches(repoBinding), (reachable) => ({ repoBinding, reachable })), { concurrency: 4 })), tap2((probed) => sync2(() => reached = probed)), catch_((error) => logWarning("runner_repository_probe_failed", error.message)), flatMap3(() => sleep(reached.some((probe) => !probe.reachable) ? repositoryRetryInterval : repositoryProbeInterval)), forever, forkScoped);
3869
3869
  yield* suspend3(() => sleep(ownerLogin.expired() ? ownerLoginRetryInterval : ownerLoginInterval)).pipe(andThen2(checkOwnerLogin), forever, forkScoped);
3870
3870
  const platform = yield* context();
3871
- const updated = yield* make15();
3871
+ const updated = yield* make16();
3872
3872
  const scope = yield* scope2;
3873
3873
  const startUpdate = (update) => update.pipe(catch_((error) => andThen2(restartOntoUpdate(input.runnerId), fail5(updated, error))), provideContext2(platform), forkIn(scope), asVoid);
3874
3874
  const refusedForProtocol = container ? updater.stopWhenDrained(new RunnerStopped({ problem: updateRequired })).pipe(catch_((stopped) => fail5(updated, stopped)), forkIn(scope), asVoid) : startUpdate(updater.updateRequired);
@@ -4123,7 +4123,7 @@ function mcpCommand(args) {
4123
4123
  if (command.action === "run") {
4124
4124
  if (command.args.length > 0)
4125
4125
  return yield* new CliError({ message: `Unknown command: ${args.join(" ")}` });
4126
- const { runMcpServerCommand } = yield* promise(() => import("./chunk-w8vxzc7w.js"));
4126
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-27k0egfz.js"));
4127
4127
  return yield* runMcpServerCommand({ flags: command.flags });
4128
4128
  }
4129
4129
  if (command.action !== "setup")
@@ -4611,7 +4611,7 @@ function programLoopCommand(command) {
4611
4611
  return yield* new CliError({ message: `Unknown loop command: ${command.action}` });
4612
4612
  });
4613
4613
  }
4614
- var docsModule = promise(() => import("./chunk-84fcym2g.js"));
4614
+ var docsModule = promise(() => import("./chunk-kwkh8hxt.js"));
4615
4615
  function docsCommand(args) {
4616
4616
  return gen(function* () {
4617
4617
  const command = parseCommand(args);
@@ -5453,9 +5453,9 @@ function changeRequestCommand(args) {
5453
5453
  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}`);
5454
5454
  });
5455
5455
  }
5456
- var KitWriter = map8(promise(() => import("./chunk-4c6w8sb7.js")), (build) => build.writeKit);
5456
+ var KitWriter = map8(promise(() => import("./chunk-zw2mzy00.js")), (build) => build.writeKit);
5457
5457
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5458
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-4c6w8sb7.js")), (build) => build.buildKit(directory))
5458
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-zw2mzy00.js")), (build) => build.buildKit(directory))
5459
5459
  });
5460
5460
  var uploadKit = (client, workspaceId, built) => gen(function* () {
5461
5461
  yield* client.uploadKitBundle(workspaceId, built.digest, { bundle: encode2(built.bundle) });
@@ -18,7 +18,12 @@ import {
18
18
  isMinLength,
19
19
  isMaxLength,
20
20
  FiniteFromString
21
- } from "./chunk-zpp4jg4a.js";
21
+ } from "./chunk-wttgq85b.js";
22
+
23
+ // node_modules/.bun/effect@4.1.2/node_modules/effect/dist/JsonSchema.js
24
+ var PRE_2020_TO_2020_COLLISIONS = ["$anchor", "$defs", "$dynamicAnchor", "$dynamicRef", "$vocabulary", "contentSchema", "dependentRequired", "dependentSchemas", "maxContains", "minContains", "prefixItems", "unevaluatedItems", "unevaluatedProperties"];
25
+ var DRAFT_07_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "deprecated"];
26
+ var OPEN_API_30_TO_2020_COLLISIONS = [...PRE_2020_TO_2020_COLLISIONS, "$comment", "$id", "$schema", "const", "contains", "contentEncoding", "contentMediaType", "else", "examples", "if", "patternProperties", "propertyNames", "then"];
22
27
 
23
28
  // packages/core/src/schema.ts
24
29
  var Days = [0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-zpp4jg4a.js";
16
+ } from "./chunk-wttgq85b.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-9avbsbvk.js";
20
+ } from "./chunk-c80dvhxf.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";
@@ -13,27 +13,27 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-zpp4jg4a.js";
16
+ } from "./chunk-wttgq85b.js";
17
+ import"./chunk-c80dvhxf.js";
17
18
  import {
18
19
  FileSystem,
19
20
  Path
20
- } from "./chunk-h7zb6d3z.js";
21
+ } from "./chunk-rbbh4f56.js";
21
22
  import {
22
23
  tomlTableHeader2,
23
24
  tomlKeyPath2,
24
25
  kitmanSkillEntry,
25
26
  isPathWithin2
26
- } from "./chunk-bmkc5r0p.js";
27
+ } from "./chunk-5jqqhvv2.js";
27
28
  import {
28
29
  instructionsStart,
29
30
  instructionsEnd,
30
31
  renderMcpServer,
31
32
  materializeKitSetup,
32
33
  tomlInline
33
- } from "./chunk-f2ycw5bp.js";
34
- import"./chunk-5129s1vg.js";
35
- import"./chunk-r9tzwrnb.js";
36
- import"./chunk-9avbsbvk.js";
34
+ } from "./chunk-f1y7ysjg.js";
35
+ import"./chunk-pyss20q2.js";
36
+ import"./chunk-4qpmjrd2.js";
37
37
 
38
38
  // packages/agent-runtime/src/kit-setup-sync.ts
39
39
  class KitSyncError extends TaggedError("KitSyncError") {