@kitman-sh/cli 0.16.1 → 0.17.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-hwqecp0m.js → chunk-0f67q0tf.js} +8 -8
  2. package/dist/{chunk-ft3gnwd1.js → chunk-0wqkz371.js} +3 -3
  3. package/dist/{chunk-bcqqrwsk.js → chunk-2928qj8m.js} +42 -26
  4. package/dist/{chunk-eavx040m.js → chunk-2sazk478.js} +4 -4
  5. package/dist/{chunk-tc7td60t.js → chunk-5me7tnrw.js} +3 -3
  6. package/dist/{chunk-8f632x21.js → chunk-829r4kya.js} +4 -4
  7. package/dist/{chunk-tx7et9g7.js → chunk-8r1a93rc.js} +4 -4
  8. package/dist/{chunk-djdhep8n.js → chunk-9a6wbk11.js} +3 -3
  9. package/dist/{chunk-9qfyb5r2.js → chunk-ebpjd7kg.js} +6 -6
  10. package/dist/{chunk-5s4sgrak.js → chunk-ekyj0bps.js} +7 -7
  11. package/dist/{chunk-1r026thg.js → chunk-g3jqqpky.js} +9 -9
  12. package/dist/{chunk-dxfab1aj.js → chunk-j37p2y71.js} +183 -348
  13. package/dist/{chunk-yja59yh8.js → chunk-jg1pjhba.js} +21 -21
  14. package/dist/{chunk-xy3hcdhr.js → chunk-kx8rpa62.js} +5 -5
  15. package/dist/{chunk-gwzzacep.js → chunk-m1qp6swh.js} +1 -1
  16. package/dist/{chunk-e42hjb3j.js → chunk-nf9rfrvv.js} +33 -33
  17. package/dist/{chunk-3b198ntn.js → chunk-nqh0pbgt.js} +1 -1
  18. package/dist/{chunk-f2y0z04q.js → chunk-pd3azxev.js} +1 -1
  19. package/dist/{chunk-4yjcehqr.js → chunk-pnckztvv.js} +19 -19
  20. package/dist/{chunk-scwj3w7m.js → chunk-qjxgew0k.js} +2 -2
  21. package/dist/{chunk-x83q18w0.js → chunk-r2kzvdrg.js} +1 -1
  22. package/dist/{chunk-b0b9v7t9.js → chunk-r3d2yjsh.js} +24 -24
  23. package/dist/{chunk-g1f0cjqe.js → chunk-vh2a72d1.js} +14 -60
  24. package/dist/{chunk-rfnasm3c.js → chunk-y64ssczv.js} +289 -71
  25. package/dist/{chunk-bkteq6b3.js → chunk-z59pvcbk.js} +187 -172
  26. package/dist/{chunk-sd8b4k1t.js → chunk-zy21drtv.js} +2 -2
  27. package/dist/index.js +4 -4
  28. package/package.json +1 -1
@@ -12,7 +12,7 @@ import {
12
12
  empty3,
13
13
  add,
14
14
  getOrUndefined2,
15
- get3,
15
+ get4,
16
16
  merge3,
17
17
  Reference,
18
18
  fromInputUnsafe,
@@ -138,7 +138,7 @@ import {
138
138
  toJsonSchemaDocument,
139
139
  toCodecJson,
140
140
  Json
141
- } from "./chunk-rfnasm3c.js";
141
+ } from "./chunk-y64ssczv.js";
142
142
  import {
143
143
  currentTimeMillis,
144
144
  WebCrypto,
@@ -176,23 +176,23 @@ import {
176
176
  StepManifest,
177
177
  KitSetup,
178
178
  RunnerRpcError
179
- } from "./chunk-dxfab1aj.js";
179
+ } from "./chunk-j37p2y71.js";
180
180
  import {
181
181
  getCurrent,
182
182
  runForEach,
183
183
  FileSystem
184
- } from "./chunk-bkteq6b3.js";
184
+ } from "./chunk-z59pvcbk.js";
185
185
  import {
186
186
  splitQuestionOptions,
187
187
  recommendationProblem,
188
188
  questionAdvice
189
- } from "./chunk-f2y0z04q.js";
189
+ } from "./chunk-pd3azxev.js";
190
190
  import {
191
191
  guard,
192
192
  Id,
193
193
  Timestamp,
194
194
  ActorType
195
- } from "./chunk-x83q18w0.js";
195
+ } from "./chunk-r2kzvdrg.js";
196
196
  var __defProp = Object.defineProperty;
197
197
  var __returnValue = (v) => v;
198
198
  function __exportSetter(name, newValue) {
@@ -769,7 +769,7 @@ class Suspended extends (/* @__PURE__ */ Class2("effect/workflow/Workflow/Suspen
769
769
  [ResultTypeId] = ResultTypeId;
770
770
  }
771
771
  var wrapActivityResult = (effect, isSuspend) => contextWith((context) => {
772
- const instance = get3(context, InstanceTag);
772
+ const instance = get4(context, InstanceTag);
773
773
  return acquireUseRelease(sync2(() => adoptActivityUnsafe(context, instance) ?? registerActivityUnsafe(instance)), () => effect, (registration, exit) => {
774
774
  releaseActivityUnsafe(registration);
775
775
  const isSuspended = isSuccess2(exit) && isSuspend(exit.value);
@@ -1420,7 +1420,7 @@ var scopingActivities = (engine) => ({
1420
1420
  }),
1421
1421
  activityExecute: (activity, attempt) => gen(function* () {
1422
1422
  const scope = yield* StepScope;
1423
- if (scope === "" || get3(activity.annotations, ActivityNamed))
1423
+ if (scope === "" || get4(activity.annotations, ActivityNamed))
1424
1424
  return yield* engine.activityExecute(activity, attempt);
1425
1425
  return yield* engine.activityExecute(renamed(activity, scopedName(scope, activity.name)), attempt);
1426
1426
  })
@@ -24,11 +24,11 @@ import {
24
24
  Record,
25
25
  Int,
26
26
  fromJsonString
27
- } from "./chunk-rfnasm3c.js";
27
+ } from "./chunk-y64ssczv.js";
28
28
  import {
29
29
  withDefault,
30
30
  String2
31
- } from "./chunk-bkteq6b3.js";
31
+ } from "./chunk-z59pvcbk.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-dxfab1aj.js";
42
+ } from "./chunk-j37p2y71.js";
43
43
 
44
44
  // packages/core/src/npm-registry.ts
45
45
  var KitManifest = Struct({
@@ -60,7 +60,9 @@ import {
60
60
  exponential,
61
61
  jittered,
62
62
  spaced,
63
+ upTo,
63
64
  all3,
65
+ validate,
64
66
  findFirst,
65
67
  forEach,
66
68
  promise,
@@ -170,7 +172,7 @@ import {
170
172
  decodeJsonStringSync,
171
173
  encodeUnknownJsonStringSync,
172
174
  storable
173
- } from "./chunk-rfnasm3c.js";
175
+ } from "./chunk-y64ssczv.js";
174
176
  import {
175
177
  currentTimeMillis,
176
178
  SecureRandom,
@@ -259,7 +261,7 @@ import {
259
261
  checkServicesFile,
260
262
  checkServices,
261
263
  serviceChecks
262
- } from "./chunk-dxfab1aj.js";
264
+ } from "./chunk-j37p2y71.js";
263
265
  import {
264
266
  join,
265
267
  interrupt,
@@ -305,7 +307,7 @@ import {
305
307
  writeSrtSettings2,
306
308
  srtStepArgv2,
307
309
  srtArgv2
308
- } from "./chunk-bkteq6b3.js";
310
+ } from "./chunk-z59pvcbk.js";
309
311
  import {
310
312
  writeAgentEnvironmentConfigFile2,
311
313
  readManifestSkillPaths2,
@@ -321,8 +323,12 @@ import {
321
323
  applyAgentEnvironmentMaterialization2,
322
324
  isPathWithin2,
323
325
  skillIdentity2
324
- } from "./chunk-tx7et9g7.js";
325
- import"./chunk-ft3gnwd1.js";
326
+ } from "./chunk-8r1a93rc.js";
327
+ import"./chunk-0wqkz371.js";
328
+ import {
329
+ ChildProcessSpawner,
330
+ make2
331
+ } from "./chunk-vh2a72d1.js";
326
332
  import {
327
333
  egressAllowed,
328
334
  writeSecretRegistry,
@@ -332,7 +338,7 @@ import {
332
338
  secretFilter2,
333
339
  opaqueTunnelRefusal2,
334
340
  isOpaqueConnectReason2
335
- } from "./chunk-sd8b4k1t.js";
341
+ } from "./chunk-zy21drtv.js";
336
342
  import {
337
343
  sliceBytes2,
338
344
  maxLineBytes2,
@@ -340,29 +346,25 @@ import {
340
346
  decodedOption2,
341
347
  decoded2,
342
348
  readOpencode2
343
- } from "./chunk-xy3hcdhr.js";
349
+ } from "./chunk-kx8rpa62.js";
344
350
  import {
345
351
  uploadRunFile,
346
352
  programLease,
347
353
  rpcRunFiles,
348
354
  programHostsEnv,
349
355
  undeclaredHostsEnv
350
- } from "./chunk-hwqecp0m.js";
351
- import"./chunk-1r026thg.js";
356
+ } from "./chunk-0f67q0tf.js";
357
+ import"./chunk-g3jqqpky.js";
352
358
  import {
353
359
  nextInt
354
- } from "./chunk-gwzzacep.js";
355
- import"./chunk-f2y0z04q.js";
356
- import {
357
- ChildProcessSpawner,
358
- make3
359
- } from "./chunk-g1f0cjqe.js";
360
- import"./chunk-4yjcehqr.js";
360
+ } from "./chunk-m1qp6swh.js";
361
+ import"./chunk-pd3azxev.js";
362
+ import"./chunk-pnckztvv.js";
361
363
  import {
362
364
  Id,
363
365
  secretReference,
364
366
  secretPlaceholder
365
- } from "./chunk-x83q18w0.js";
367
+ } from "./chunk-r2kzvdrg.js";
366
368
 
367
369
  // packages/core/src/sync-kit.ts
368
370
  import { createHash } from "crypto";
@@ -7873,6 +7875,19 @@ var daemonLogs = (container) => gen(function* () {
7873
7875
  return `${state.trim()}
7874
7876
  ${logs.trim().slice(-3000)}`;
7875
7877
  }).pipe(orElseSucceed(() => "nothing, since docker could not show its state or logs"));
7878
+ var addressPoolsExhausted = /address pools have been fully subnetted/;
7879
+ var networkGone = /not found|no such network/i;
7880
+ var unusedNetworks = (own) => gen(function* () {
7881
+ const names = (yield* runCommand2("docker", ["network", "ls", "--filter", "type=custom", "--format", "{{.Name}}"])).split(`
7882
+ `).map((name) => name.trim()).filter((name) => name !== "" && !own.includes(name));
7883
+ const unused = yield* forEach(names, (name) => runCommand2("docker", ["network", "inspect", "--format", "{{len .Containers}}", name]).pipe(map9((containers) => containers.trim() === "0" ? [name] : []), orElseSucceed(() => [])), { concurrency: 8 });
7884
+ return unused.flat();
7885
+ }).pipe(orElseSucceed(() => {
7886
+ return;
7887
+ }));
7888
+ var noAddressPool = (unused) => fail7(new CheckDockerUnavailable({
7889
+ reason: `Docker has no free address pool for the check's networks, as all predefined address pools have been fully subnetted. ${unused === undefined ? "Docker could not list its networks to show which are left behind." : unused.length === 0 ? "Each network of its own has a container attached, so none looks left behind." : `These networks have no container attached, and may have been left behind: ${unused.join(", ")}. Remove the ones nothing uses with docker network rm.`}`
7890
+ }));
7876
7891
  var randomHex2 = () => Array.from(crypto.getRandomValues(new Uint8Array(4)), (byte) => byte.toString(16).padStart(2, "0")).join("");
7877
7892
  var dockerCheckDaemon = (input) => ({ id, network: allowed }) => gen(function* () {
7878
7893
  const run = `${dockerName2(id)}-${randomHex2()}`;
@@ -7890,16 +7905,17 @@ var dockerCheckDaemon = (input) => ({ id, network: allowed }) => gen(function* (
7890
7905
  ];
7891
7906
  const labelArgs = labels.flatMap(([key, value]) => ["--label", `${key}=${value}`]);
7892
7907
  const docker = (args, timeout = "30 seconds") => runCommand2("docker", args, { timeout }).pipe(mapError2((error) => new CheckDockerUnavailable({ reason: error.message })));
7893
- yield* acquireRelease(void_3, () => gen(function* () {
7908
+ const removeContainers = gen(function* () {
7894
7909
  const ids = (yield* docker(["ps", "--all", "--quiet", "--filter", `label=${runLabel}=${run}`])).split(`
7895
7910
  `).filter((line) => line.trim() !== "");
7896
7911
  if (ids.length > 0)
7897
7912
  yield* docker(["rm", "--force", "--volumes", ...ids], "2 minutes");
7898
- yield* ignore(docker(["network", "rm", network]));
7899
- yield* ignore(docker(["network", "rm", outside]));
7900
- }).pipe(ignore));
7901
- yield* docker(["network", "create", "--opt", "com.docker.network.bridge.enable_icc=false", ...labelArgs, outside]);
7902
- yield* docker(["network", "create", ...allowed === "open" ? [] : ["--internal"], ...labelArgs, network]);
7913
+ });
7914
+ const removeNetwork = (name) => docker(["network", "rm", name]).pipe(catchIf((error) => networkGone.test(error.reason), () => void_3));
7915
+ yield* acquireRelease(void_3, () => ignore(removeContainers).pipe(andThen2(validate([network, outside], removeNetwork, { discard: true })), retry(spaced("2 seconds").pipe(upTo({ duration: "3 minutes" }))), ignore));
7916
+ const createNetwork = (args) => docker(["network", "create", ...args]).pipe(catchIf((error) => addressPoolsExhausted.test(error.reason), () => flatMap3(unusedNetworks([network, outside]), noAddressPool)));
7917
+ yield* createNetwork(["--opt", "com.docker.network.bridge.enable_icc=false", ...labelArgs, outside]);
7918
+ yield* createNetwork([...allowed === "open" ? [] : ["--internal"], ...labelArgs, network]);
7903
7919
  const addressOn = (container) => gen(function* () {
7904
7920
  yield* docker(["network", "connect", network, container]);
7905
7921
  const address = (yield* docker([
@@ -7988,7 +8004,7 @@ var codexAppServer = (binary = "codex") => (env) => gen(function* () {
7988
8004
  const input = yield* unbounded2();
7989
8005
  const pending = new Map;
7990
8006
  let lastId = 0;
7991
- const handle = yield* spawner.spawn(make3(binary, ["app-server"], {
8007
+ const handle = yield* spawner.spawn(make2(binary, ["app-server"], {
7992
8008
  cwd: env.home,
7993
8009
  extendEnv: true,
7994
8010
  env: { HOME: env.home, CODEX_HOME: env.codexHome },
@@ -8151,7 +8167,7 @@ var handshake = [
8151
8167
  `).join("");
8152
8168
  var kitmanMcpPreflight = (mcp) => gen(function* () {
8153
8169
  const spawner = yield* ChildProcessSpawner;
8154
- const server = yield* spawner.spawn(make3(mcp.command, [...mcp.args], {
8170
+ const server = yield* spawner.spawn(make2(mcp.command, [...mcp.args], {
8155
8171
  extendEnv: true,
8156
8172
  env: mcp.env,
8157
8173
  stdin: { stream: make10(new TextEncoder().encode(handshake)), endOnDone: false },
@@ -8227,7 +8243,7 @@ var programProcessExecutor = (input) => (work) => gen(function* () {
8227
8243
  };
8228
8244
  const exitCode = sandbox === undefined ? yield* gen(function* () {
8229
8245
  const spawner = yield* ChildProcessSpawner;
8230
- const handle = yield* spawner.spawn(make3(input.bun ?? process.execPath, [file], {
8246
+ const handle = yield* spawner.spawn(make2(input.bun ?? process.execPath, [file], {
8231
8247
  stdin: make10(new TextEncoder().encode(stdin)),
8232
8248
  stdout: "inherit",
8233
8249
  stderr: "inherit",
@@ -7,10 +7,10 @@ import {
7
7
  decoded2,
8
8
  readOpencode2,
9
9
  runOpencodeReader2
10
- } from "./chunk-xy3hcdhr.js";
11
- import"./chunk-g1f0cjqe.js";
12
- import"./chunk-bkteq6b3.js";
13
- import"./chunk-rfnasm3c.js";
10
+ } from "./chunk-kx8rpa62.js";
11
+ import"./chunk-vh2a72d1.js";
12
+ import"./chunk-z59pvcbk.js";
13
+ import"./chunk-y64ssczv.js";
14
14
  export {
15
15
  decoded2 as decoded,
16
16
  decodedOption2 as decodedOption,
@@ -801,7 +801,7 @@ From a terminal, \`kitman project show <project>\` shows the same, and \`kitman
801
801
  path: "projects-and-views#where-a-projects-work-lands",
802
802
  level: 3,
803
803
  link: "https://kitman.sh/knowledge/docs/projects-and-views#where-a-projects-work-lands",
804
- text: "### Where a Project's work lands\n\nBy default every Task's ChangeRequest targets the repository's default branch, or the target branch its Task, Milestone or Project names. Under **Settings \u2192 Delivery and releases**, the Workspace sets where delivery lands, and a Team can choose its own; a Project sets its own on its page, under **Delivery**, and otherwise inherits its Team's. On an epic branch, each sub-task's Build branches from its epic's branch (`feature/KIT-1` by default) on a branch of its own (`feature/KIT-1-KIT-2`), its ChangeRequest targets the epic branch, and Shepherd merges it there and keeps the epic branch up to date with the default branch. Once every sub-task is done, the epic's ChangeRequest to the default branch opens, and Release runs only after it merges. A Build, Review, Shepherd or Release Run can override it for itself with `deliveryTarget: default_branch`, for example to ship a hotfix from a sub-task straight to the default branch. Every such Run shows where it landed and where that came from.\n\nFrom a terminal, `kitman land workspace|team <team>|project <project> [default|epic|inherit]` reads or sets it; Code Mode's `workspaces.deliveryTarget`, `teams.deliveryTarget` and `projects.deliveryTarget` do the same."
804
+ text: "### Where a Project's work lands\n\nBy default every Task's ChangeRequest targets the repository's default branch, or the target branch its Task, Milestone or Project names. Under **Settings \u2192 Delivery and releases**, the Workspace sets where delivery lands, and a Team can choose its own; a Project sets its own on its page, under **Delivery**, and otherwise inherits its Team's. On an epic branch, each sub-task's Build branches from its epic's branch (`feature/KIT-1` by default) on a branch of its own (`feature/KIT-1-KIT-2`), its ChangeRequest targets the epic branch, and Shepherd merges it there and keeps the epic branch up to date with the default branch. A sub-task lands where its epic does, by its epic's Project and Team rather than its own, including a Task moved under the epic after it was made; a Task moved out of an epic lands by its own Project or Team again. Once every sub-task is done, the epic's ChangeRequest to the default branch opens, and Release runs only after it merges. A Build, Review, Shepherd or Release Run can override it for itself with `deliveryTarget: default_branch`, for example to ship a hotfix from a sub-task straight to the default branch. Every such Run shows where it landed and where that came from.\n\nFrom a terminal, `kitman land workspace|team <team>|project <project> [default|epic|inherit]` reads or sets it; Code Mode's `workspaces.deliveryTarget`, `teams.deliveryTarget` and `projects.deliveryTarget` do the same."
805
805
  },
806
806
  {
807
807
  title: "Projects and Saved Views \u203A The branch a Project's, a Milestone's or a Task's work merges into",
@@ -908,7 +908,7 @@ Every list of Tasks has **Filter**, **Group by** and **Order by** controls. A fi
908
908
 
909
909
  Group by state, Task Type, assignee, priority, repository, Project, Milestone or Release, and order by your manual order, priority, creation, last update or key. **Triage** includes Triage Tasks, which are left out otherwise.
910
910
 
911
- Switch between the list and board layouts. A board has a column per Workflow State: drag a card to another column, or use **Move to** on a card from the keyboard. Dragging within a column changes the manual order.`
911
+ Switch between the list and board layouts. A board has a column per Workflow State the filter can match, so the Active tab leaves out Backlog, Done and Canceled. Drag a card to another column, or use **Move to**, the arrow button on a card, from the keyboard. Both still offer the states the filter hides: while you drag, they appear as drop targets at the bottom of the board. Dragging within a column changes the manual order.`
912
912
  },
913
913
  {
914
914
  title: "Projects and Saved Views \u203A Saved Views",
@@ -2195,7 +2195,7 @@ var pathOfLink = (link) => {
2195
2195
  return page === null ? link : page[1] || "index";
2196
2196
  };
2197
2197
  var UnpinnedSdkLink = "https://cdn.jsdelivr.net/npm/@kitman-sh/sdk/";
2198
- var pinnedLink2 = (link, version = "0.16.1") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2198
+ var pinnedLink2 = (link, version = "0.17.0") => version === undefined || !link.startsWith(UnpinnedSdkLink) ? link : link.replace(UnpinnedSdkLink, `https://cdn.jsdelivr.net/npm/@kitman-sh/sdk@${version}/`);
2199
2199
  var pageOf = (path) => path.split("#")[0];
2200
2200
  var exportName = (section) => section.path.startsWith("sdk/") ? section.path.split("#")[1] ?? "" : "";
2201
2201
  function excerpt(text, queryTerms) {
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./chunk-g1f0cjqe.js";
2
+ import"./chunk-vh2a72d1.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-dxfab1aj.js";
16
- import"./chunk-bkteq6b3.js";
17
- import"./chunk-rfnasm3c.js";
15
+ } from "./chunk-j37p2y71.js";
16
+ import"./chunk-z59pvcbk.js";
17
+ import"./chunk-y64ssczv.js";
18
18
  export {
19
19
  HERDR_CORE_GENERATION2 as HERDR_CORE_GENERATION,
20
20
  HERDR_CORE_INSTALL_COMMAND2 as HERDR_CORE_INSTALL_COMMAND,
@@ -25,21 +25,21 @@ import {
25
25
  isString2,
26
26
  encodePrettyJsonString,
27
27
  decodeJsonStringSync
28
- } from "./chunk-rfnasm3c.js";
28
+ } from "./chunk-y64ssczv.js";
29
29
  import {
30
30
  FileSystem,
31
31
  Path,
32
32
  optionalEnv,
33
33
  tempDirectoryScoped
34
- } from "./chunk-bkteq6b3.js";
34
+ } from "./chunk-z59pvcbk.js";
35
35
  import {
36
36
  AgentHarnessIds,
37
37
  sha2562,
38
38
  runCommand2
39
- } from "./chunk-dxfab1aj.js";
39
+ } from "./chunk-j37p2y71.js";
40
40
  import {
41
41
  NpmRegistry
42
- } from "./chunk-ft3gnwd1.js";
42
+ } from "./chunk-0wqkz371.js";
43
43
 
44
44
  // packages/agent-runtime/src/config-convergence.ts
45
45
  var writeAgentEnvironmentConfigFile2 = fnUntraced(function* (file, content, keep = {}) {
@@ -4,9 +4,9 @@ import {
4
4
  opaqueTunnelRefusal2,
5
5
  isOpaqueConnectReason2,
6
6
  runSrtStep2
7
- } from "./chunk-sd8b4k1t.js";
8
- import"./chunk-x83q18w0.js";
9
- import"./chunk-rfnasm3c.js";
7
+ } from "./chunk-zy21drtv.js";
8
+ import"./chunk-r2kzvdrg.js";
9
+ import"./chunk-y64ssczv.js";
10
10
  export {
11
11
  isOpaqueConnectReason2 as isOpaqueConnectReason,
12
12
  opaqueTunnelRefusal2 as opaqueTunnelRefusal,
@@ -4,12 +4,12 @@ import {
4
4
  runnerRpcUrl2,
5
5
  makeRunnerRpcClient2,
6
6
  makeProgramRpcClient2
7
- } from "./chunk-1r026thg.js";
8
- import"./chunk-4yjcehqr.js";
9
- import"./chunk-dxfab1aj.js";
10
- import"./chunk-x83q18w0.js";
11
- import"./chunk-bkteq6b3.js";
12
- import"./chunk-rfnasm3c.js";
7
+ } from "./chunk-g3jqqpky.js";
8
+ import"./chunk-pnckztvv.js";
9
+ import"./chunk-j37p2y71.js";
10
+ import"./chunk-r2kzvdrg.js";
11
+ import"./chunk-z59pvcbk.js";
12
+ import"./chunk-y64ssczv.js";
13
13
  export {
14
14
  makeProgramRpcClient2 as makeProgramRpcClient,
15
15
  makeRunnerRpcClient2 as makeRunnerRpcClient,
@@ -13,17 +13,17 @@ import {
13
13
  isJsonObject,
14
14
  decodeJsonString,
15
15
  encodePrettyJsonString
16
- } from "./chunk-rfnasm3c.js";
16
+ } from "./chunk-y64ssczv.js";
17
17
  import {
18
18
  FileSystem,
19
19
  Path
20
- } from "./chunk-bkteq6b3.js";
20
+ } from "./chunk-z59pvcbk.js";
21
21
  import {
22
22
  tomlTableHeader2,
23
23
  tomlKeyPath2,
24
24
  kitmanSkillEntry,
25
25
  isPathWithin2
26
- } from "./chunk-tx7et9g7.js";
26
+ } from "./chunk-8r1a93rc.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-dxfab1aj.js";
35
- import"./chunk-ft3gnwd1.js";
36
- import"./chunk-g1f0cjqe.js";
37
- import"./chunk-x83q18w0.js";
34
+ } from "./chunk-j37p2y71.js";
35
+ import"./chunk-vh2a72d1.js";
36
+ import"./chunk-0wqkz371.js";
37
+ import"./chunk-r2kzvdrg.js";
38
38
 
39
39
  // packages/agent-runtime/src/kit-setup-sync.ts
40
40
  class KitSyncError extends TaggedError("KitSyncError") {
@@ -6,7 +6,10 @@ import {
6
6
  gen,
7
7
  flatMap3,
8
8
  provideContext2
9
- } from "./chunk-rfnasm3c.js";
9
+ } from "./chunk-y64ssczv.js";
10
+ import {
11
+ runForEach
12
+ } from "./chunk-z59pvcbk.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-dxfab1aj.js";
20
- import {
21
- runForEach
22
- } from "./chunk-bkteq6b3.js";
22
+ } from "./chunk-j37p2y71.js";
23
23
  import {
24
24
  layerJson,
25
- make4,
25
+ make3,
26
26
  withHeaders,
27
27
  layerProtocolSocket
28
- } from "./chunk-4yjcehqr.js";
28
+ } from "./chunk-pnckztvv.js";
29
29
 
30
30
  // packages/live/src/rpc/runner-client.ts
31
31
  var proxiedWebSocket = (proxy) => succeed5(WebSocketConstructor)((target) => {
@@ -46,7 +46,7 @@ var authorizer = (options) => (call) => flatMap3(options.bearer, (token) => with
46
46
  var RunnerProcessRpcs = RunnerReplicaRpcs.merge(RunnerRunFileRpcs);
47
47
  var makeRunnerRpcClient2 = (options) => gen(function* () {
48
48
  const protocol = yield* build(options.protocol);
49
- const client = yield* make4(RunnerProcessRpcs).pipe(provideContext2(protocol));
49
+ const client = yield* make3(RunnerProcessRpcs).pipe(provideContext2(protocol));
50
50
  const authorized = authorizer(options);
51
51
  return {
52
52
  claim: (input) => authorized(client.Claim(input)),
@@ -74,7 +74,7 @@ var makeRunnerRpcClient2 = (options) => gen(function* () {
74
74
  });
75
75
  var makeProgramRpcClient2 = (options) => gen(function* () {
76
76
  const protocol = yield* build(options.protocol);
77
- const client = yield* make4(ProgramRpcs).pipe(provideContext2(protocol));
77
+ const client = yield* make3(ProgramRpcs).pipe(provideContext2(protocol));
78
78
  const authorized = authorizer(options);
79
79
  return {
80
80
  recordActivity: (input) => authorized(client.RecordActivity(input)),