@madarco/agentbox 0.17.1 → 0.19.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 (60) hide show
  1. package/CHANGELOG.md +78 -0
  2. package/README.md +4 -3
  3. package/dist/{_cloud-attach-RUD4W33P.js → _cloud-attach-YM2KOWHO.js} +4 -4
  4. package/dist/{chunk-6QFPYU4Z.js → chunk-7K2A3NLE.js} +8 -5
  5. package/dist/chunk-7K2A3NLE.js.map +1 -0
  6. package/dist/{chunk-HFQZJO73.js → chunk-A5OFRJDI.js} +1322 -216
  7. package/dist/chunk-A5OFRJDI.js.map +1 -0
  8. package/dist/{chunk-YUGLNTT2.js → chunk-JK5V4OLT.js} +349 -16
  9. package/dist/chunk-JK5V4OLT.js.map +1 -0
  10. package/dist/{chunk-IA6YHH52.js → chunk-MODNW54N.js} +6 -3
  11. package/dist/{chunk-IA6YHH52.js.map → chunk-MODNW54N.js.map} +1 -1
  12. package/dist/{chunk-46NXCJ6Z.js → chunk-NXX3KQZ6.js} +2 -2
  13. package/dist/{chunk-3JXSW6PN.js → chunk-P6UT5XGE.js} +2 -2
  14. package/dist/{chunk-KTDJ5JTE.js → chunk-SPUUOEW2.js} +273 -54
  15. package/dist/chunk-SPUUOEW2.js.map +1 -0
  16. package/dist/{chunk-XWBFWUY2.js → chunk-Y6PUCLOE.js} +2 -2
  17. package/dist/{dist-VAATGBAR.js → dist-EKSNZHDY.js} +13 -3
  18. package/dist/{dist-TEKY3GFT.js → dist-FTCDWRAL.js} +18 -7
  19. package/dist/dist-FTCDWRAL.js.map +1 -0
  20. package/dist/{dist-CNABE32V.js → dist-PRDYMXCX.js} +10 -5
  21. package/dist/dist-PRDYMXCX.js.map +1 -0
  22. package/dist/{dist-BO2R55FX.js → dist-U2BHTWG4.js} +17 -5
  23. package/dist/dist-U2BHTWG4.js.map +1 -0
  24. package/dist/{dist-CROGTJ7N.js → dist-VQSZVBT3.js} +20 -6
  25. package/dist/dist-VQSZVBT3.js.map +1 -0
  26. package/dist/index.js +1009 -449
  27. package/dist/index.js.map +1 -1
  28. package/dist/{prepared-state-MQHD3M5F-OVABNV66.js → prepared-state-MQHD3M5F-5ZMCNY43.js} +2 -2
  29. package/package.json +3 -3
  30. package/runtime/docker/apps/cli/share/agentbox-setup/SKILL.md +1 -1
  31. package/runtime/docker/packages/ctl/dist/bin.cjs +142 -110
  32. package/runtime/docker/packages/sandbox-docker/scripts/agentbox-dockerd-start +13 -0
  33. package/runtime/e2b/agentbox-setup-skill.md +1 -1
  34. package/runtime/e2b/ctl.cjs +142 -110
  35. package/runtime/hetzner/agentbox-dockerd-start +13 -0
  36. package/runtime/hetzner/agentbox-setup-skill.md +1 -1
  37. package/runtime/hetzner/ctl.cjs +142 -110
  38. package/runtime/relay/bin.cjs +270 -66
  39. package/runtime/vercel/agentbox-dockerd-start +145 -0
  40. package/runtime/vercel/agentbox-setup-skill.md +1 -1
  41. package/runtime/vercel/ctl.cjs +142 -110
  42. package/runtime/vercel/custom-system-CLAUDE.md +5 -4
  43. package/runtime/vercel/scripts/provision.sh +20 -5
  44. package/share/agentbox-setup/SKILL.md +1 -1
  45. package/share/host-skills/agentbox/SKILL.md +2 -2
  46. package/share/host-skills/codex/agentbox.md +10 -2
  47. package/dist/chunk-6QFPYU4Z.js.map +0 -1
  48. package/dist/chunk-HFQZJO73.js.map +0 -1
  49. package/dist/chunk-KTDJ5JTE.js.map +0 -1
  50. package/dist/chunk-YUGLNTT2.js.map +0 -1
  51. package/dist/dist-BO2R55FX.js.map +0 -1
  52. package/dist/dist-CNABE32V.js.map +0 -1
  53. package/dist/dist-CROGTJ7N.js.map +0 -1
  54. package/dist/dist-TEKY3GFT.js.map +0 -1
  55. /package/dist/{_cloud-attach-RUD4W33P.js.map → _cloud-attach-YM2KOWHO.js.map} +0 -0
  56. /package/dist/{chunk-46NXCJ6Z.js.map → chunk-NXX3KQZ6.js.map} +0 -0
  57. /package/dist/{chunk-3JXSW6PN.js.map → chunk-P6UT5XGE.js.map} +0 -0
  58. /package/dist/{chunk-XWBFWUY2.js.map → chunk-Y6PUCLOE.js.map} +0 -0
  59. /package/dist/{dist-VAATGBAR.js.map → dist-EKSNZHDY.js.map} +0 -0
  60. /package/dist/{prepared-state-MQHD3M5F-OVABNV66.js.map → prepared-state-MQHD3M5F-5ZMCNY43.js.map} +0 -0
@@ -9,6 +9,11 @@
9
9
  set -euo pipefail
10
10
 
11
11
  if pgrep -x dockerd >/dev/null; then
12
+ # dockerd already up — but a prior run may have died after the daemon became
13
+ # ready yet before it widened the socket, leaving it 0660 and unreachable by
14
+ # the unprivileged box user. Re-assert the chmod (see the note on the
15
+ # fresh-start path below) before the idempotent early exit.
16
+ chmod 666 /var/run/docker.sock 2>/dev/null || true
12
17
  exit 0
13
18
  fi
14
19
 
@@ -129,4 +134,12 @@ for _ in $(seq 1 300); do
129
134
  sleep 0.1
130
135
  done
131
136
 
137
+ # Open the socket to the unprivileged box user. dockerd creates it root:docker
138
+ # 0660; the in-box agent and the ctl supervisor's `image:` services run as the
139
+ # box user, whose already-running session may not carry the docker group, so
140
+ # widen to 0666. Single-tenant box, so this is safe; correctly timed here (run
141
+ # as root, right after the socket is ready) so the cloud launcher's poll — which
142
+ # runs `docker info` as the box user — can succeed.
143
+ chmod 666 /var/run/docker.sock 2>/dev/null || true
144
+
132
145
  disown -a
@@ -276,7 +276,7 @@ On Vercel: this actually STOPS the sandbox, so warn the user about it. Also the
276
276
 
277
277
  - For Nextjs/Vite/Tasnstack projects, makes sure to forward also websocket for hot reload.
278
278
 
279
- - Service like flask, nextjs, BETTER_AUTH_URL, NEXT_PUBLIC_APP_URL should use the `<boxname>.localhost` url for the local development so that on the host it will use the same url as the box. Render this automatically instead of hand-writing `sed` — see section 6c.
279
+ - Service like flask, nextjs, BETTER_AUTH_URL, NEXT_PUBLIC_APP_URL should use the env-init `{{AGENTBOX_BOX_HOST}}` in agentbox.yaml so it will be automatically replaced.
280
280
 
281
281
  - The `install` task above uses `run_once: true`, so it is a no-op on warm boots. Do **not** wrap it in a manual marker check too. To force a one-off rebuild, run `agentbox-ctl run-task install --force` (which bypasses the run_once marker), or edit the command (a changed command invalidates the hash and re-runs).
282
282