@kitman-sh/cli 0.14.1 → 0.14.3

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/LICENSE.md +10 -0
  2. package/dist/{chunk-rbbh4f56.js → chunk-2w9a76nr.js} +28 -177
  3. package/dist/{chunk-f1y7ysjg.js → chunk-34748vfg.js} +278 -122
  4. package/dist/{chunk-kwkh8hxt.js → chunk-3f6mzrm7.js} +1 -1
  5. package/dist/{chunk-enabwyrn.js → chunk-44kx62t6.js} +7 -7
  6. package/dist/{chunk-gvs5fcvy.js → chunk-65dpe0ev.js} +3 -3
  7. package/dist/{chunk-nvncrs4n.js → chunk-7q3t3x0x.js} +6 -6
  8. package/dist/{chunk-jp7cjnng.js → chunk-7v1n7a6k.js} +4 -4
  9. package/dist/{chunk-vx4qe0fe.js → chunk-91j33xf2.js} +6 -6
  10. package/dist/{chunk-fch7pjzh.js → chunk-9anvghq2.js} +2 -2
  11. package/dist/{chunk-c80dvhxf.js → chunk-9avbsbvk.js} +1 -6
  12. package/dist/{chunk-5x44qb6d.js → chunk-a4mkjaxa.js} +6 -6
  13. package/dist/{chunk-vt8aqeby.js → chunk-bbf0jzsc.js} +1 -1
  14. package/dist/{chunk-93xj74qp.js → chunk-ctpgfdzf.js} +3 -3
  15. package/dist/{chunk-27k0egfz.js → chunk-daem5h1c.js} +28 -28
  16. package/dist/{chunk-pyss20q2.js → chunk-dhtx14r5.js} +3 -3
  17. package/dist/{chunk-zw2mzy00.js → chunk-er9n65mh.js} +9 -9
  18. package/dist/{chunk-5jqqhvv2.js → chunk-f96vy2h9.js} +4 -4
  19. package/dist/{chunk-77jk3v8v.js → chunk-hasfatd4.js} +5 -5
  20. package/dist/{chunk-a9srrnsk.js → chunk-my9vcmfw.js} +31 -31
  21. package/dist/{chunk-0axm9scx.js → chunk-rgrpvnwg.js} +23 -23
  22. package/dist/{chunk-jnpv483d.js → chunk-rvnem2bt.js} +4 -4
  23. package/dist/{chunk-zr59g5bk.js → chunk-tebzffha.js} +17 -17
  24. package/dist/{chunk-cwdrhsvk.js → chunk-y0y2gg8d.js} +2 -2
  25. package/dist/{chunk-wttgq85b.js → chunk-zpp4jg4a.js} +60 -60
  26. package/dist/{chunk-4qpmjrd2.js → chunk-zxmx605h.js} +2 -2
  27. package/dist/index.js +4 -4
  28. package/package.json +4 -3
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-wttgq85b.js";
27
+ } from "./chunk-zpp4jg4a.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-rbbh4f56.js";
31
+ } from "./chunk-2w9a76nr.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-f1y7ysjg.js";
42
+ } from "./chunk-34748vfg.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -32,8 +32,7 @@ import {
32
32
  toCodecJson,
33
33
  Json,
34
34
  encodePrettyJsonString
35
- } from "./chunk-wttgq85b.js";
36
- import"./chunk-c80dvhxf.js";
35
+ } from "./chunk-zpp4jg4a.js";
37
36
  import {
38
37
  SecureRandom,
39
38
  layerWebCrypto,
@@ -45,7 +44,7 @@ import {
45
44
  layer4,
46
45
  kitmanMcpServer,
47
46
  RunnerRpcProtocolVersion
48
- } from "./chunk-f1y7ysjg.js";
47
+ } from "./chunk-34748vfg.js";
49
48
  import {
50
49
  decodeText,
51
50
  mkString,
@@ -53,23 +52,24 @@ import {
53
52
  Path,
54
53
  withDefault,
55
54
  String2
56
- } from "./chunk-rbbh4f56.js";
55
+ } from "./chunk-2w9a76nr.js";
57
56
  import {
58
57
  Packument,
59
58
  tarballMatches
60
- } from "./chunk-pyss20q2.js";
61
- import"./chunk-vx4qe0fe.js";
59
+ } from "./chunk-dhtx14r5.js";
60
+ import"./chunk-91j33xf2.js";
62
61
  import {
63
62
  AgentDeclaration,
64
63
  KitDeclarations,
65
64
  describeFlag,
66
65
  Described
67
- } from "./chunk-nvncrs4n.js";
66
+ } from "./chunk-7q3t3x0x.js";
68
67
  import {
69
68
  ChildProcessSpawner,
70
69
  make3
71
- } from "./chunk-4qpmjrd2.js";
72
- import"./chunk-zr59g5bk.js";
70
+ } from "./chunk-zxmx605h.js";
71
+ import"./chunk-tebzffha.js";
72
+ import"./chunk-9avbsbvk.js";
73
73
 
74
74
  // packages/sdk/src/build/index.ts
75
75
  class DependencyInstallFailed extends TaggedError2()("DependencyInstallFailed", {
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-wttgq85b.js";
28
+ } from "./chunk-zpp4jg4a.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-rbbh4f56.js";
34
+ } from "./chunk-2w9a76nr.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-f1y7ysjg.js";
39
+ } from "./chunk-34748vfg.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-pyss20q2.js";
42
+ } from "./chunk-dhtx14r5.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -25,16 +25,16 @@ import {
25
25
  isJsonObject,
26
26
  isString2,
27
27
  encodeUnknownJsonStringSync
28
- } from "./chunk-wttgq85b.js";
28
+ } from "./chunk-zpp4jg4a.js";
29
29
  import {
30
- make11,
30
+ make10,
31
31
  runForEach,
32
32
  compiled2
33
- } from "./chunk-rbbh4f56.js";
33
+ } from "./chunk-2w9a76nr.js";
34
34
  import {
35
35
  ChildProcessSpawner,
36
36
  make3
37
- } from "./chunk-4qpmjrd2.js";
37
+ } from "./chunk-zxmx605h.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: make11(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
176
+ stdin: make10(new TextEncoder().encode(encodeUnknownJsonStringSync({ store, name, input }))),
177
177
  stderr: "ignore",
178
178
  extendEnv: false,
179
179
  env: {},
@@ -12,7 +12,7 @@ import {
12
12
  succeed,
13
13
  isSuccess,
14
14
  TaggedError,
15
- make16,
15
+ make15,
16
16
  _await,
17
17
  fail5,
18
18
  succeed5,
@@ -104,19 +104,7 @@ import {
104
104
  decodeJsonString,
105
105
  encodeJsonStringSync,
106
106
  encodePrettyJsonString
107
- } from "./chunk-wttgq85b.js";
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";
107
+ } from "./chunk-zpp4jg4a.js";
120
108
  import {
121
109
  currentTimeMillis,
122
110
  SecureRandom,
@@ -232,14 +220,26 @@ import {
232
220
  harnessNames,
233
221
  herdrRunnerCapabilities2,
234
222
  declaredChecks
235
- } from "./chunk-f1y7ysjg.js";
223
+ } from "./chunk-34748vfg.js";
236
224
  import {
237
- Id
238
- } from "./chunk-c80dvhxf.js";
225
+ tap,
226
+ mapError,
227
+ decodeText,
228
+ run,
229
+ mkString,
230
+ FileSystem,
231
+ Path,
232
+ withDefault,
233
+ option,
234
+ String2
235
+ } from "./chunk-2w9a76nr.js";
239
236
  import {
240
237
  ChildProcessSpawner,
241
238
  make3
242
- } from "./chunk-4qpmjrd2.js";
239
+ } from "./chunk-zxmx605h.js";
240
+ import {
241
+ Id
242
+ } from "./chunk-9avbsbvk.js";
243
243
 
244
244
  // apps/cli/src/cli-error.ts
245
245
  function cliErrorCode(error, status) {
@@ -439,7 +439,7 @@ var Usage = [
439
439
  " kitman pair [<pairing code>] [--api-url <url>] (what the command the web shows runs; no code finishes or re-keys with your session)",
440
440
  " kitman pair <runner pairing code> --credential-file <path> (writes a shared Runner's credential for a container or its replicas to mount)",
441
441
  " kitman runner start --credential-file <path> (or KITMAN_RUNNER_CREDENTIAL_FILE; starts the Runner the file holds)",
442
- " kitman runner settings <runner> [--concurrency <1-4>] [--sandbox srt|docker|host] [--docker-image <image@sha256:\u2026>|none]",
442
+ " kitman runner settings <runner> [--concurrency <1-32>] [--sandbox srt|docker|host] [--docker-image <image@sha256:\u2026>|none]",
443
443
  " [--check-hosts <host,\u2026>|none] [--check-docker-image <image@sha256:\u2026>|none] [--check-registry-image <image@sha256:\u2026>|none]",
444
444
  " kitman runner settings history <runner> (each change: who, when, old and new value)",
445
445
  "",
@@ -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-jnpv483d.js")), ({ HerdrCore, herdrCoreLayer }) => provide3(service(HerdrCore), herdrCoreLayer(options)))
1023
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rvnem2bt.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-jnpv483d.js")), (module) => module.updateHerdrCore(options))
1026
+ defaultValue: () => (options) => flatMap3(promise(() => import("./chunk-rvnem2bt.js")), (module) => module.updateHerdrCore(options))
1027
1027
  });
1028
1028
  var herdrCoreMissing = (error) => {
1029
1029
  if (isTagged(error, "HerdrCoreMissing"))
@@ -1172,7 +1172,7 @@ var settingFromFlag = (flag, value) => {
1172
1172
  return update;
1173
1173
  };
1174
1174
  var settingFlagRefused = {
1175
- concurrency: "--concurrency takes a whole number from 1 to 4",
1175
+ concurrency: `--concurrency takes a whole number from 1 to ${MaxRunnerConcurrency}`,
1176
1176
  sandbox: "--sandbox takes srt, docker or host",
1177
1177
  dockerImage: "--docker-image takes an image pinned by digest (name@sha256:...), or none",
1178
1178
  checkHosts: "--check-hosts takes comma-separated hosts, such as registry.npmjs.org,*.example.com, or none",
@@ -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-enabwyrn.js"));
1452
+ const { syncKitSetup } = yield* promise(() => import("./chunk-44kx62t6.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.1";
2371
+ var cliVersion = "0.14.3";
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-0axm9scx.js"));
2523
+ var agentRuntime = promise(() => import("./chunk-rgrpvnwg.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-5x44qb6d.js"));
3559
+ const { makeRunnerRpcClient, runnerRpcUrl, runnerWebSocketProtocol } = yield* promise(() => import("./chunk-a4mkjaxa.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* make16();
3871
+ const updated = yield* make15();
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-27k0egfz.js"));
4126
+ const { runMcpServerCommand } = yield* promise(() => import("./chunk-daem5h1c.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-kwkh8hxt.js"));
4614
+ var docsModule = promise(() => import("./chunk-3f6mzrm7.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-zw2mzy00.js")), (build) => build.writeKit);
5456
+ var KitWriter = map8(promise(() => import("./chunk-er9n65mh.js")), (build) => build.writeKit);
5457
5457
  var KitBuilder = Reference("kitman/cli/KitBuilder", {
5458
- defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-zw2mzy00.js")), (build) => build.buildKit(directory))
5458
+ defaultValue: () => (directory) => flatMap3(promise(() => import("./chunk-er9n65mh.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) });
@@ -41,7 +41,7 @@ import {
41
41
  isFailure2,
42
42
  hasInterrupts,
43
43
  makeUnsafe5,
44
- make16,
44
+ make15,
45
45
  _await,
46
46
  fail5,
47
47
  isDoneUnsafe,
@@ -168,12 +168,7 @@ import {
168
168
  decodeJsonStringSync,
169
169
  encodeUnknownJsonStringSync,
170
170
  storable
171
- } from "./chunk-wttgq85b.js";
172
- import {
173
- Id,
174
- secretReference,
175
- secretPlaceholder
176
- } from "./chunk-c80dvhxf.js";
171
+ } from "./chunk-zpp4jg4a.js";
177
172
  import {
178
173
  currentTimeMillis,
179
174
  SecureRandom,
@@ -254,7 +249,7 @@ import {
254
249
  checkServicesFile,
255
250
  checkServices,
256
251
  serviceChecks
257
- } from "./chunk-f1y7ysjg.js";
252
+ } from "./chunk-34748vfg.js";
258
253
  import {
259
254
  join,
260
255
  interrupt,
@@ -263,7 +258,7 @@ import {
263
258
  unbounded2,
264
259
  offer,
265
260
  makeUnsafe3,
266
- make11,
261
+ make10,
267
262
  fromQueue,
268
263
  fromPubSub,
269
264
  map2,
@@ -298,7 +293,7 @@ import {
298
293
  writeSrtSettings2,
299
294
  srtStepArgv2,
300
295
  srtArgv2
301
- } from "./chunk-rbbh4f56.js";
296
+ } from "./chunk-2w9a76nr.js";
302
297
  import {
303
298
  writeAgentEnvironmentConfigFile2,
304
299
  readManifestSkillPaths2,
@@ -314,8 +309,8 @@ import {
314
309
  applyAgentEnvironmentMaterialization2,
315
310
  isPathWithin2,
316
311
  skillIdentity2
317
- } from "./chunk-5jqqhvv2.js";
318
- import"./chunk-pyss20q2.js";
312
+ } from "./chunk-f96vy2h9.js";
313
+ import"./chunk-dhtx14r5.js";
319
314
  import {
320
315
  egressAllowed,
321
316
  writeSecretRegistry,
@@ -325,7 +320,7 @@ import {
325
320
  secretFilter2,
326
321
  opaqueTunnelRefusal2,
327
322
  isOpaqueConnectReason2
328
- } from "./chunk-cwdrhsvk.js";
323
+ } from "./chunk-y0y2gg8d.js";
329
324
  import {
330
325
  sliceBytes2,
331
326
  maxLineBytes2,
@@ -333,23 +328,28 @@ import {
333
328
  decodedOption2,
334
329
  decoded2,
335
330
  readOpencode2
336
- } from "./chunk-77jk3v8v.js";
331
+ } from "./chunk-hasfatd4.js";
337
332
  import {
338
333
  uploadRunFile,
339
334
  programLease,
340
335
  rpcRunFiles,
341
336
  programHostsEnv,
342
337
  undeclaredHostsEnv
343
- } from "./chunk-nvncrs4n.js";
344
- import"./chunk-vx4qe0fe.js";
338
+ } from "./chunk-7q3t3x0x.js";
339
+ import"./chunk-91j33xf2.js";
345
340
  import {
346
341
  nextInt
347
- } from "./chunk-vt8aqeby.js";
342
+ } from "./chunk-bbf0jzsc.js";
348
343
  import {
349
344
  ChildProcessSpawner,
350
345
  make3
351
- } from "./chunk-4qpmjrd2.js";
352
- import"./chunk-zr59g5bk.js";
346
+ } from "./chunk-zxmx605h.js";
347
+ import"./chunk-tebzffha.js";
348
+ import {
349
+ Id,
350
+ secretReference,
351
+ secretPlaceholder
352
+ } from "./chunk-9avbsbvk.js";
353
353
 
354
354
  // packages/core/src/sync-kit.ts
355
355
  import { createHash } from "crypto";
@@ -6904,7 +6904,7 @@ var dockerCheckPostgres = (runnerId, replicaId) => (id) => gen(function* () {
6904
6904
  "fsync=off",
6905
6905
  "-c",
6906
6906
  "full_page_writes=off"
6907
- ], "30 minutes"), () => ignore(docker(["rm", "--force", "--volumes", container])));
6907
+ ], "30 minutes"), () => ignore(docker(["rm", "--force", "--volumes", container], "1 minute").pipe(retry({ schedule: spaced("1 second"), times: 2 }))));
6908
6908
  const hostPort = publishedPort(yield* docker(["port", container, `${checkPostgresSandboxPort}/tcp`]));
6909
6909
  if (hostPort === undefined)
6910
6910
  return yield* new CheckPostgresUnavailable({ reason: "docker published no port" });
@@ -7175,7 +7175,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7175
7175
  return {
7176
7176
  request: (method, params) => gen(function* () {
7177
7177
  const id = ++lastId;
7178
- const deferred = yield* make16();
7178
+ const deferred = yield* make15();
7179
7179
  pending.set(id, deferred);
7180
7180
  yield* send({ id, method, params });
7181
7181
  return yield* _await(deferred).pipe(mapError2((error) => new CodexAppServerFailed({ reason: `${method}: ${error.message}` })));
@@ -7318,7 +7318,7 @@ var kitmanMcpPreflight = (mcp) => gen(function* () {
7318
7318
  const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
7319
7319
  extendEnv: true,
7320
7320
  env: mcp.env,
7321
- stdin: { stream: make11(new TextEncoder().encode(handshake)), endOnDone: false },
7321
+ stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
7322
7322
  stderr: "ignore"
7323
7323
  }));
7324
7324
  const reply = yield* server.stdout.pipe(decodeText, splitLines, map2((line) => getOrUndefined(decodeJsonStringOption(line))), filter((message) => isJsonObject(message) && message.id === 2), runHead);
@@ -7392,7 +7392,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
7392
7392
  const exitCode = sandbox === undefined ? yield* gen(function* () {
7393
7393
  const spawner = yield* ChildProcessSpawner;
7394
7394
  const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
7395
- stdin: make11(new TextEncoder().encode(stdin)),
7395
+ stdin: make10(new TextEncoder().encode(stdin)),
7396
7396
  stdout: "inherit",
7397
7397
  stderr: "inherit",
7398
7398
  extendEnv: false,
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-4qpmjrd2.js";
2
+ import"./chunk-zxmx605h.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-f1y7ysjg.js";
16
- import"./chunk-rbbh4f56.js";
17
- import"./chunk-wttgq85b.js";
15
+ } from "./chunk-34748vfg.js";
16
+ import"./chunk-2w9a76nr.js";
17
+ import"./chunk-zpp4jg4a.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -12,7 +12,7 @@ import {
12
12
  add,
13
13
  getOrUndefinedUnsafe,
14
14
  getUnsafe,
15
- get4,
15
+ get3,
16
16
  Reference,
17
17
  toMillis,
18
18
  isSuccess,
@@ -96,19 +96,7 @@ import {
96
96
  Defect,
97
97
  Exit,
98
98
  toCodecJson
99
- } from "./chunk-wttgq85b.js";
100
- import {
101
- interrupt,
102
- getCurrent,
103
- makeUnsafe2,
104
- bounded,
105
- offerAll,
106
- failCause,
107
- end,
108
- shutdownUnsafe,
109
- fromQueue,
110
- unwrap
111
- } from "./chunk-rbbh4f56.js";
99
+ } from "./chunk-zpp4jg4a.js";
112
100
  import {
113
101
  Clock,
114
102
  empty,
@@ -123,7 +111,19 @@ import {
123
111
  ParseOptions,
124
112
  RpcClientDefect,
125
113
  RpcClientError
126
- } from "./chunk-f1y7ysjg.js";
114
+ } from "./chunk-34748vfg.js";
115
+ import {
116
+ interrupt,
117
+ getCurrent,
118
+ makeUnsafe2,
119
+ bounded,
120
+ offerAll,
121
+ failCause,
122
+ end,
123
+ shutdownUnsafe,
124
+ fromQueue,
125
+ unwrap
126
+ } from "./chunk-2w9a76nr.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")) {
@@ -237,7 +237,7 @@ var makeNoSerialization = /* @__PURE__ */ fnUntraced(function* (group, options)
237
237
  const disableTracing = options?.disableTracing ?? false;
238
238
  const generateRequestId = options?.generateRequestId ?? (() => requestIdCounter++);
239
239
  const services = yield* context();
240
- const scope = get4(services, Scope);
240
+ const scope = get3(services, Scope);
241
241
  const entries = new Map;
242
242
  let isShutdown = false;
243
243
  yield* addFinalizer(scope, withFiber2((parent) => {
@@ -643,7 +643,7 @@ var makeRpcSchemas = (codecFor) => {
643
643
  return entry;
644
644
  }
645
645
  const streamSchemas = getStreamSchemas(rpc.successSchema);
646
- const parseOptions = get4(rpc.annotations, ParseOptions);
646
+ const parseOptions = get3(rpc.annotations, ParseOptions);
647
647
  const exitSchema2 = exitSchema(rpc);
648
648
  let decodeDiscardExit;
649
649
  entry = {
@@ -13,11 +13,11 @@ import {
13
13
  ArraySchema,
14
14
  decodeJsonStringOption,
15
15
  encodeUnknownJsonStringSync
16
- } from "./chunk-wttgq85b.js";
16
+ } from "./chunk-zpp4jg4a.js";
17
17
  import {
18
18
  replaceSecretReferences,
19
19
  secretReferencesIn
20
- } from "./chunk-c80dvhxf.js";
20
+ } from "./chunk-9avbsbvk.js";
21
21
 
22
22
  // packages/agent-runtime/src/srt-step.ts
23
23
  import { SandboxRuntimeConfigSchema } from "@anthropic-ai/sandbox-runtime";