@madarco/agentbox 0.18.0 → 0.20.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 (71) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/README.md +4 -3
  3. package/dist/_cloud-attach-THTN4CFZ.js +18 -0
  4. package/dist/{chunk-U7IZS2ZP.js → chunk-3VFY3N4A.js} +1388 -234
  5. package/dist/chunk-3VFY3N4A.js.map +1 -0
  6. package/dist/{chunk-XWBFWUY2.js → chunk-52LKNUY7.js} +6 -3
  7. package/dist/chunk-52LKNUY7.js.map +1 -0
  8. package/dist/{chunk-6QFPYU4Z.js → chunk-7K2A3NLE.js} +8 -5
  9. package/dist/chunk-7K2A3NLE.js.map +1 -0
  10. package/dist/{chunk-5BO6SGMI.js → chunk-7RWFYLF3.js} +194 -34
  11. package/dist/chunk-7RWFYLF3.js.map +1 -0
  12. package/dist/{chunk-IA6YHH52.js → chunk-MODNW54N.js} +6 -3
  13. package/dist/{chunk-IA6YHH52.js.map → chunk-MODNW54N.js.map} +1 -1
  14. package/dist/{chunk-46NXCJ6Z.js → chunk-NXX3KQZ6.js} +2 -2
  15. package/dist/{chunk-3JXSW6PN.js → chunk-P6UT5XGE.js} +2 -2
  16. package/dist/{chunk-OG4KMYOJ.js → chunk-ZX6DTA4X.js} +276 -56
  17. package/dist/chunk-ZX6DTA4X.js.map +1 -0
  18. package/dist/{dist-CFSKUAS5.js → dist-3PLT2EK2.js} +17 -3
  19. package/dist/{dist-T7ESSBCZ.js → dist-3WFNXXPE.js} +20 -6
  20. package/dist/dist-3WFNXXPE.js.map +1 -0
  21. package/dist/{dist-3UYQZOAO.js → dist-7ELDXBAG.js} +19 -6
  22. package/dist/dist-7ELDXBAG.js.map +1 -0
  23. package/dist/{dist-4BHW7DCO.js → dist-C3YRC3PP.js} +10 -5
  24. package/dist/dist-C3YRC3PP.js.map +1 -0
  25. package/dist/{dist-7BS2JS27.js → dist-CZ6CRADC.js} +18 -7
  26. package/dist/dist-CZ6CRADC.js.map +1 -0
  27. package/dist/index.js +1218 -560
  28. package/dist/index.js.map +1 -1
  29. package/dist/{prepared-state-MQHD3M5F-OVABNV66.js → prepared-state-MQHD3M5F-5ZMCNY43.js} +2 -2
  30. package/package.json +4 -4
  31. package/runtime/docker/apps/cli/share/agentbox-setup/SKILL.md +1 -1
  32. package/runtime/docker/packages/ctl/dist/bin.cjs +255 -169
  33. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-dockerd-start +13 -0
  34. package/runtime/docker/packages/sandbox-docker/scripts/claude-managed-settings.json +4 -4
  35. package/runtime/e2b/agentbox-dockerd-start +145 -0
  36. package/runtime/e2b/agentbox-setup-skill.md +1 -1
  37. package/runtime/e2b/attach-helper.cjs +23 -2
  38. package/runtime/e2b/claude-managed-settings.json +4 -4
  39. package/runtime/e2b/ctl.cjs +255 -169
  40. package/runtime/e2b/scripts/build-template.sh +22 -5
  41. package/runtime/hetzner/agentbox-dockerd-start +13 -0
  42. package/runtime/hetzner/agentbox-setup-skill.md +1 -1
  43. package/runtime/hetzner/claude-managed-settings.json +4 -4
  44. package/runtime/hetzner/ctl.cjs +255 -169
  45. package/runtime/relay/bin.cjs +267 -63
  46. package/runtime/vercel/agentbox-dockerd-start +145 -0
  47. package/runtime/vercel/agentbox-setup-skill.md +1 -1
  48. package/runtime/vercel/claude-managed-settings.json +4 -4
  49. package/runtime/vercel/ctl.cjs +255 -169
  50. package/runtime/vercel/custom-system-CLAUDE.md +5 -4
  51. package/runtime/vercel/scripts/provision.sh +20 -5
  52. package/share/agentbox-setup/SKILL.md +1 -1
  53. package/share/host-skills/agentbox/SKILL.md +4 -4
  54. package/share/host-skills/agentbox-info/SKILL.md +6 -6
  55. package/share/host-skills/codex/agentbox.md +12 -4
  56. package/share/host-skills/opencode/agentbox.md +2 -2
  57. package/dist/_cloud-attach-3UC3IL62.js +0 -16
  58. package/dist/chunk-5BO6SGMI.js.map +0 -1
  59. package/dist/chunk-6QFPYU4Z.js.map +0 -1
  60. package/dist/chunk-OG4KMYOJ.js.map +0 -1
  61. package/dist/chunk-U7IZS2ZP.js.map +0 -1
  62. package/dist/chunk-XWBFWUY2.js.map +0 -1
  63. package/dist/dist-3UYQZOAO.js.map +0 -1
  64. package/dist/dist-4BHW7DCO.js.map +0 -1
  65. package/dist/dist-7BS2JS27.js.map +0 -1
  66. package/dist/dist-T7ESSBCZ.js.map +0 -1
  67. /package/dist/{_cloud-attach-3UC3IL62.js.map → _cloud-attach-THTN4CFZ.js.map} +0 -0
  68. /package/dist/{chunk-46NXCJ6Z.js.map → chunk-NXX3KQZ6.js.map} +0 -0
  69. /package/dist/{chunk-3JXSW6PN.js.map → chunk-P6UT5XGE.js.map} +0 -0
  70. /package/dist/{dist-CFSKUAS5.js.map → dist-3PLT2EK2.js.map} +0 -0
  71. /package/dist/{prepared-state-MQHD3M5F-OVABNV66.js.map → prepared-state-MQHD3M5F-5ZMCNY43.js.map} +0 -0
package/CHANGELOG.md CHANGED
@@ -9,6 +9,124 @@ Entries are generated from the commit history with `/release-notes` and then
9
9
  hand-reviewed — they describe what changed for someone using the `agentbox`
10
10
  CLI, not the raw commits.
11
11
 
12
+ ## [0.20.0] - 2026-06-24
13
+
14
+ ### Added
15
+
16
+ - **Boxes resume your running agent across a restart.** When a box stops (or a
17
+ cloud box idle-pauses and resumes), `agentbox start` — and attaching to a
18
+ down box, and cloud idle-wake — now relaunches the agent resuming the *same*
19
+ conversation (`claude --resume`, `codex resume --last`) instead of opening a
20
+ fresh session, so background/`-i` work isn't lost. Verified on docker,
21
+ vercel, and hetzner. Requires a docker image rebuild / cloud re-`prepare`;
22
+ until then it no-ops.
23
+ - **Headless `agentbox claude login` for non-interactive use.** Sign in without
24
+ a TTY (CI, an orchestrating agent) via a two-call protocol:
25
+ `agentbox claude login --headless` prints the approval URL (and a greppable
26
+ `AGENTBOX_LOGIN_URL=` marker), then `agentbox claude login --code <CODE>`
27
+ completes it. Headless mode is auto-selected when stdin is not a TTY;
28
+ interactive login is unchanged.
29
+ - **E2B now runs docker-in-docker by default.** In-box docker is baked into the
30
+ E2B base template and `dockerd` auto-starts on create/resume — nested
31
+ containers work on E2B (full root + namespaces), matching the other cloud
32
+ providers. Re-`prepare --provider e2b` to pick it up.
33
+ - **Configurable E2B session timeout.** New `box.e2bTimeoutMs` config key
34
+ (default 45m, mirrors `box.vercelTimeoutMs`) records the box's real session
35
+ lifetime so the keepalive holds the box open precisely while the agent is
36
+ working.
37
+
38
+ ### Changed
39
+
40
+ - **Non-interactive runs fail fast on a missing or expired Claude login.** The
41
+ `-i` queue preflight and TTY-less foreground runs now check credential
42
+ validity (expiry is consulted on cloud) and exit early with an
43
+ `agentbox claude login` hint, instead of creating a box whose agent silently
44
+ parks on its `/login` screen.
45
+ - **Herdr plugin is discoverable from the marketplace.** The `herdr-plugin.toml`
46
+ manifest moved to the repo root, so the install shorthand is now
47
+ `herdr plugin install madarco/agentbox`.
48
+
49
+ ### Fixed
50
+
51
+ - **Multi-line `-i` seed prompts survive on cloud.** A multi-paragraph seed
52
+ prompt passed to a detached cloud `-i` run was being split into one argument
53
+ per line, killing the agent at launch; prompts are now encoded so embedded
54
+ newlines are preserved.
55
+ - **`-i` fan-out reliably opens its Herdr terminal.** Concurrent box launches no
56
+ longer trip "herdr gave no pane id" — JSON-RPC replies are now matched by
57
+ request id (ignoring interleaved notifications), and pane ids with letters
58
+ (`:pA`, `:pB`, …) are accepted.
59
+ - **Cloud `-i` start failures surface instead of reporting done.** A detached
60
+ cloud session that fails to launch (transient SDK error, agent crash, stale
61
+ in-box credentials) is now marked failed with an actionable hint, rather than
62
+ silently writing `status: done` with no agent running.
63
+ - **`agentbox create --provider <cloud> -w ../repo`** now resolves a relative
64
+ workspace path to absolute, fixing the git seed that failed with "does not
65
+ appear to be a git repository".
66
+ - **E2B fixes:** the dashboard attach now forwards the provider env so the
67
+ attach helper gets its inner command (right pane no longer blank); the
68
+ create→attach pre-start no longer hangs the CLI on a blank screen.
69
+ - **Docker Claude config sync** no longer aborts (rsync exit 23) on nested
70
+ symlinked skill dirs that point outside the box, and a box whose shared-volume
71
+ login token was blanked by a failed in-box refresh now re-offers sign-in
72
+ before launch instead of booting into a login error.
73
+
74
+ ## [0.19.0] - 2026-06-23
75
+
76
+ ### Added
77
+
78
+ - **Codex in boxes now sees your full setup.** Running `agentbox codex` syncs
79
+ your complete skill set (from `~/.agents/skills`, the cross-agent skills dir,
80
+ not just the handful of runtime skills), sanitizes the box's `config.toml`
81
+ (strips host-only MCP servers, `notify`, and macOS-desktop marketplaces that
82
+ can't resolve in a Linux box), and pre-trusts `/workspace` so Codex no longer
83
+ pops a "trust this folder?" prompt on attach. Skills that were symlinks on the
84
+ host are materialized as real dirs in the box.
85
+ - **`agentbox fork` autodetects the agent and session.** A bare `agentbox fork`
86
+ now works from inside either Claude Code or Codex — it detects which agent
87
+ launched it (and which session to resume) from the environment. You can also
88
+ pass the provider positionally (`agentbox fork hetzner`). Explicit `--agent`
89
+ still wins.
90
+ - **`/agentbox` fork skill installs via the `skills` CLI.** `agentbox install`
91
+ now registers the `/agentbox` fork skill through `npx skills add`, so it shows
92
+ up on the skills.sh directory; it falls back to a plain copy offline.
93
+ - **Cloud boxes no longer die mid-work.** A new host-relay keepalive renews a
94
+ cloud box's session timeout while its agent is actively working (Vercel and
95
+ E2B), so a long test or build run is no longer cut off when the 45-minute
96
+ create timeout elapses. Idle boxes still lapse as before. (Bounded by each
97
+ plan's hard session cap.)
98
+ - **In-box Docker on Vercel.** Vercel Sandbox now supports nested containers, so
99
+ `dockerd` is baked into the Vercel base snapshot and auto-started — `docker
100
+ run` works inside a Vercel box. Re-run `agentbox prepare --provider vercel` to
101
+ pick it up.
102
+ - **Checkpoint restore carries your host state on cloud boxes.** Creating a
103
+ cloud box from a checkpoint now re-branches onto a fresh `agentbox/<box>`
104
+ branch at your current host tip, ships the missing commits as a delta bundle,
105
+ and replays your stash + untracked files (conflicts resolve box-wins and are
106
+ reported back) — matching docker, instead of booting the frozen snapshot
107
+ verbatim. Honors `--no-resync`.
108
+ - **`status --inspect` and cloud `status` list tasks/services/ports.** The
109
+ inspect view now renders each task, service, and port (live from the in-box
110
+ daemon when running, else the persisted snapshot) instead of just a count.
111
+ - **`{{AGENTBOX_BOX_HOST}}` resolves to the public preview host** on public-URL
112
+ cloud boxes (Vercel/Daytona/E2B), so env-init substitution targets a reachable
113
+ host instead of an unreachable `*.localhost`.
114
+
115
+ ### Fixed
116
+
117
+ - **`agentbox fork --agent codex` resumes straight into `/workspace`.** The
118
+ teleport now rewrites the working directory in every Codex per-turn record
119
+ (and stops seeding Codex's host-wide session-index DBs into the box), so a
120
+ forked Codex session no longer pops "Choose working directory" or resumes at
121
+ the host path — and your cross-project Codex history no longer leaks into the
122
+ box.
123
+ - **In-box `agentbox-ctl cp`/`download` with a relative host path** now resolves
124
+ against the box's workspace, not whatever directory the long-lived relay was
125
+ started from (files could land in an unrelated project's folder).
126
+ - **In-box docker socket** is reliably world-accessible — the dockerd start
127
+ helper re-asserts the socket permissions even when it exits early on an
128
+ already-running daemon, so the unprivileged box user can always reach it.
129
+
12
130
  ## [0.18.0] - 2026-06-18
13
131
 
14
132
  ### Added
package/README.md CHANGED
@@ -7,7 +7,7 @@
7
7
 
8
8
  Run multiple agents in parallel, with a single command, on your PC, self-hosted, or in the cloud
9
9
 
10
- Works with [iterm2](https://agent-box.sh/docs/integrations-iterm2) - [cmux](https://agent-box.sh/docs/integrations-cmux) - [tmux](https://agent-box.sh/docs/integrations-tmux)
10
+ Works with [iterm2](https://agent-box.sh/docs/integrations-iterm2) - [cmux](https://agent-box.sh/docs/integrations-cmux) - [tmux](https://agent-box.sh/docs/integrations-tmux) - [Herdr](https://agent-box.sh/docs/integrations-herdr)
11
11
  <br>
12
12
 
13
13
  <p align="center">
@@ -45,14 +45,14 @@ agentbox claude
45
45
  agentbox hetzner claude # or vercel, daytona
46
46
 
47
47
  # Ctrl+a d to detach, claude keep going, to reconnect later:
48
- agentbox claude attach 1
48
+ agentbox attach 1
49
49
 
50
50
  # To open a persistent shell inside the box:
51
51
  agentbox shell 1
52
52
 
53
53
  # Create a second box:
54
54
  agentbox claude
55
- agentbox claude attach 2
55
+ agentbox attach 2
56
56
  agentbox shell 2
57
57
 
58
58
  # Open your web project on a .local url tunnel on your pc
@@ -173,3 +173,4 @@ The full development workflow, stack, end-to-end smoke tests, and teardown live
173
173
  # License
174
174
 
175
175
  MIT. See [LICENSE](https://github.com/madarco/agentbox/blob/main/LICENSE).
176
+
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ buildCloudAttachInnerCommand,
4
+ cloudAgentAttach,
5
+ cloudAgentStartDetached,
6
+ verifyDetachedSession
7
+ } from "./chunk-7RWFYLF3.js";
8
+ import "./chunk-3VFY3N4A.js";
9
+ import "./chunk-7K2A3NLE.js";
10
+ import "./chunk-G3H2L3O2.js";
11
+ import "./chunk-WJFZJZIM.js";
12
+ export {
13
+ buildCloudAttachInnerCommand,
14
+ cloudAgentAttach,
15
+ cloudAgentStartDetached,
16
+ verifyDetachedSession
17
+ };
18
+ //# sourceMappingURL=_cloud-attach-THTN4CFZ.js.map