@madarco/agentbox 0.3.0 → 0.4.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.
@@ -25,7 +25,7 @@ import {
25
25
  removeBoxWorktree,
26
26
  verifyOverlay,
27
27
  vscodeServerVolumeName
28
- } from "./chunk-MOC54XL6.js";
28
+ } from "./chunk-NSIECUCS.js";
29
29
  import {
30
30
  findBox,
31
31
  readState,
@@ -56,7 +56,7 @@ import {
56
56
  volumeExists
57
57
  } from "./chunk-SOMIKEN2.js";
58
58
 
59
- // ../../packages/sandbox-docker/dist/chunk-6GQGGQBQ.js
59
+ // ../../packages/sandbox-docker/dist/chunk-6N6PI6KX.js
60
60
  import { execa } from "execa";
61
61
  import { readdir, rm, stat } from "fs/promises";
62
62
  import { join as join2 } from "path";
@@ -504,6 +504,7 @@ async function snapshotPresent(path) {
504
504
  }
505
505
 
506
506
  export {
507
+ getBoxEndpoints,
507
508
  listBoxes,
508
509
  BoxNotFoundError,
509
510
  AmbiguousBoxError,
@@ -518,4 +519,4 @@ export {
518
519
  pruneBoxes,
519
520
  snapshotPresent
520
521
  };
521
- //# sourceMappingURL=chunk-7NQFIBQG.js.map
522
+ //# sourceMappingURL=chunk-FQD6ZWYW.js.map
@@ -9,7 +9,7 @@ import {
9
9
  volumeExists
10
10
  } from "./chunk-SOMIKEN2.js";
11
11
 
12
- // ../../packages/sandbox-docker/dist/chunk-DVEY57YJ.js
12
+ // ../../packages/sandbox-docker/dist/chunk-NY7PB7KY.js
13
13
  import { spawnSync } from "child_process";
14
14
  import { mkdir, mkdtemp, readdir, readFile, rm, stat, writeFile } from "fs/promises";
15
15
  import { homedir, tmpdir } from "os";
@@ -41,7 +41,7 @@ var RELAY_NETWORK_NAME = "agentbox-net";
41
41
  var RELAY_IMAGE_REF = "agentbox/relay:dev";
42
42
  var MAX_BODY_BYTES = 1024 * 1024;
43
43
 
44
- // ../../packages/sandbox-docker/dist/chunk-DVEY57YJ.js
44
+ // ../../packages/sandbox-docker/dist/chunk-NY7PB7KY.js
45
45
  function isHostPathHookCommand(command, hostHome) {
46
46
  if (typeof command !== "string" || command.length === 0) return false;
47
47
  if (hostHome.length === 0) return false;
@@ -664,6 +664,30 @@ function buildClaudeStatusBarArgs(sessionName, boxName) {
664
664
  const s = sessionName;
665
665
  const name = boxName;
666
666
  return [
667
+ // Server-global (no -t): remap prefix Ctrl-b -> Ctrl+a, bind `q` to detach
668
+ // so Ctrl+a q matches the dashboard's quit chord. `send-prefix` makes a
669
+ // double Ctrl+a reach Claude as a literal Ctrl+a.
670
+ ";",
671
+ "set",
672
+ "-g",
673
+ "prefix",
674
+ "C-a",
675
+ ";",
676
+ "set",
677
+ "-g",
678
+ "prefix2",
679
+ "None",
680
+ ";",
681
+ "unbind-key",
682
+ "C-b",
683
+ ";",
684
+ "bind-key",
685
+ "C-a",
686
+ "send-prefix",
687
+ ";",
688
+ "bind-key",
689
+ "q",
690
+ "detach-client",
667
691
  ";",
668
692
  "set",
669
693
  "-t",
@@ -705,7 +729,7 @@ function buildClaudeStatusBarArgs(sessionName, boxName) {
705
729
  "-t",
706
730
  s,
707
731
  "status-right",
708
- "#[fg=colour245]Ctrl-b d detach ",
732
+ "#[fg=colour255]Control+a q#[fg=colour245]: detach ",
709
733
  ";",
710
734
  "set",
711
735
  "-t",
@@ -2212,4 +2236,4 @@ export {
2212
2236
  ConfigError,
2213
2237
  loadConfig
2214
2238
  };
2215
- //# sourceMappingURL=chunk-MOC54XL6.js.map
2239
+ //# sourceMappingURL=chunk-NSIECUCS.js.map