@madarco/agentbox 0.26.1 → 0.27.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.
- package/CHANGELOG.md +32 -0
- package/README.md +1 -1
- package/dist/{_cloud-attach-7WRQH6XZ.js → _cloud-attach-WDGM6FL5.js} +4 -4
- package/dist/{chunk-UIFL7F2G.js → chunk-26IKZRTT.js} +2 -2
- package/dist/{chunk-DJQMK4RN.js → chunk-HR7NHH5J.js} +14 -9
- package/dist/chunk-HR7NHH5J.js.map +1 -0
- package/dist/{chunk-K5KOLYIL.js → chunk-IDH5A4RR.js} +2 -2
- package/dist/{chunk-ZY7M7MXH.js → chunk-JE6UI5YR.js} +10 -10
- package/dist/{chunk-7ZZAZPYX.js → chunk-KWOEUFVA.js} +2 -2
- package/dist/{chunk-BA2VLJVU.js → chunk-LL7NCMUU.js} +3 -3
- package/dist/{chunk-I2OAJS3L.js → chunk-NEF6MDJO.js} +4 -4
- package/dist/{chunk-I2OAJS3L.js.map → chunk-NEF6MDJO.js.map} +1 -1
- package/dist/{dist-YA7EXBGG.js → chunk-SJ75AIA2.js} +486 -92
- package/dist/chunk-SJ75AIA2.js.map +1 -0
- package/dist/{chunk-PK2QF4IR.js → chunk-UJEH2NJT.js} +27 -14
- package/dist/chunk-UJEH2NJT.js.map +1 -0
- package/dist/{chunk-DQHMDDAT.js → chunk-V5XXJH63.js} +2 -2
- package/dist/{dist-DTNYMBQ5.js → dist-FTKS2GI4.js} +5 -5
- package/dist/{dist-5IICYSR6.js → dist-KQTMCVME.js} +5 -5
- package/dist/{dist-5IICYSR6.js.map → dist-KQTMCVME.js.map} +1 -1
- package/dist/{dist-AR5CHRSV.js → dist-O3LKOIE7.js} +5 -5
- package/dist/{dist-POVRY7HO.js → dist-OO52HARR.js} +3 -3
- package/dist/{dist-K4LNH3EC.js → dist-TSFVB7AI.js} +5 -5
- package/dist/{dist-XYY6SIKG.js → dist-WVYAURMF.js} +5 -5
- package/dist/dist-Z6L5MM5D.js +46 -0
- package/dist/index.js +392 -211
- package/dist/index.js.map +1 -1
- package/dist/{prepared-state-75DIZ55S-W6NU3S3B.js → prepared-state-75DIZ55S-TNJXWMXV.js} +2 -2
- package/dist/prepared-state-75DIZ55S-TNJXWMXV.js.map +1 -0
- package/package.json +7 -7
- package/runtime/hub/apps/hub/.next/BUILD_ID +1 -1
- package/runtime/hub/apps/hub/.next/app-path-routes-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/build-manifest.json +3 -3
- package/runtime/hub/apps/hub/.next/routes-manifest.json +22 -0
- package/runtime/hub/apps/hub/.next/server/app/(auth)/signin/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js +2 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/docs/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/bake/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js +8 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/[alias]/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route/build-manifest.json +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route/server-reference-manifest.json +4 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js +9 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.map +5 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route.js.nft.json +1 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/hosts/route_client-reference-manifest.js +3 -0
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js +2 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/api/v1/openapi.json/route.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/approvals/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/boxes/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/projects/[id]/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page.js.nft.json +1 -1
- package/runtime/hub/apps/hub/.next/server/app/(dashboard)/settings/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.html +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
- package/runtime/hub/apps/hub/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/runtime/hub/apps/hub/.next/server/app-paths-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/044u_hub__next-internal_server_app_(dashboard)_api_v1_hosts_route_actions_0b_404_.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/0web_next-internal_server_app_(dashboard)_api_v1_hosts_[alias]_route_actions_0swypy5.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/1jcg_server_app_(dashboard)_api_v1_hosts_[alias]_bake_route_actions_1-_pu3n.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0a7djvw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0bmro0b._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0keu6we._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0t4qmv-._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__0xh14bo._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__13ioh5z._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1h4xycg._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1hqla7-._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1md9kdw._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/_1bng7w9._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/apps_hub_app_(dashboard)_api_v1_lib_openapi_ts_1yokmzt._.js +14 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/09xn_next_dist_1uccfbf._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_03s-ah2._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0r4px38._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_18w2zeh._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0od97-d._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_boxes_components_box-table_tsx_0a9pyn_._.js +1 -1
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_app_(dashboard)_settings_page_tsx_0hv6n82._.js +3 -0
- package/runtime/hub/apps/hub/.next/server/functions-config-manifest.json +3 -0
- package/runtime/hub/apps/hub/.next/server/middleware-build-manifest.js +3 -3
- package/runtime/hub/apps/hub/.next/server/pages/500.html +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/0xdtiy_m2ygv8.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/1_ur0im1g7_s9.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/26rwu1f2gzemi.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/3v6kx35_lwjs8.js +1 -0
- package/runtime/hub/apps/hub/.next/static/chunks/{3dfjrxx-dy644.css → 42uysd_max-yq.css} +1 -1
- package/runtime/hub/apps/hub/.next/static/chunks/44j61g8lm9nvw.js +1 -0
- package/runtime/hub/apps/hub/{chunk-BARD2DI6.js → chunk-EHBJKZCL.js} +13 -8
- package/runtime/hub/apps/hub/{chunk-4QY2VZCF.js → chunk-RXYOWSSN.js} +19 -13
- package/runtime/hub/apps/hub/{chunk-XZZXPEVV.js → chunk-YJ5MJOXK.js} +1 -1
- package/runtime/hub/apps/hub/{dist-3ENKQN5G.js → dist-3I7KUI6W.js} +3 -3
- package/runtime/hub/apps/hub/{dist-WAZKGVYL.js → dist-6FPPUSWZ.js} +2 -2
- package/runtime/hub/apps/hub/{dist-NNBELNA7.js → dist-DX6IYMAH.js} +300 -109
- package/runtime/hub/apps/hub/{dist-RJJ2SDYO.js → dist-G6TXUSPZ.js} +3 -3
- package/runtime/hub/apps/hub/{dist-AE6IV4FV.js → dist-GTVVXCBP.js} +3 -3
- package/runtime/hub/apps/hub/{dist-6VGJOQYK.js → dist-JG45OFT2.js} +3 -3
- package/runtime/hub/apps/hub/{dist-TU7D6UTB.js → dist-LYDHYTP2.js} +3 -3
- package/runtime/hub/apps/hub/{prepared-state-75DIZ55S-NYEDSU2U.js → prepared-state-75DIZ55S-2IFNUHHM.js} +1 -1
- package/runtime/hub/apps/hub/server.js +136 -19
- package/dist/chunk-DJQMK4RN.js.map +0 -1
- package/dist/chunk-PK2QF4IR.js.map +0 -1
- package/dist/chunk-ZYKNSHOH.js +0 -259
- package/dist/chunk-ZYKNSHOH.js.map +0 -1
- package/dist/dist-YA7EXBGG.js.map +0 -1
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1bqbkd5._.js +0 -14
- package/runtime/hub/apps/hub/.next/server/chunks/[root-of-the-server]__1qa4a0v._.js +0 -14
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_09gdzmo._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_0tgpglr._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/_1laion6._.js +0 -3
- package/runtime/hub/apps/hub/.next/server/chunks/ssr/apps_hub_0b_hsjl._.js +0 -3
- package/runtime/hub/apps/hub/.next/static/chunks/1c5w3kqosumog.js +0 -1
- package/runtime/hub/apps/hub/.next/static/chunks/1o3ot_9-8jgzc.js +0 -1
- package/runtime/hub/apps/hub/.next/static/chunks/1z4elhg8gyq98.js +0 -1
- package/runtime/hub/apps/hub/.next/static/chunks/3uq9hf-roasav.js +0 -1
- /package/dist/{_cloud-attach-7WRQH6XZ.js.map → _cloud-attach-WDGM6FL5.js.map} +0 -0
- /package/dist/{chunk-UIFL7F2G.js.map → chunk-26IKZRTT.js.map} +0 -0
- /package/dist/{chunk-K5KOLYIL.js.map → chunk-IDH5A4RR.js.map} +0 -0
- /package/dist/{chunk-ZY7M7MXH.js.map → chunk-JE6UI5YR.js.map} +0 -0
- /package/dist/{chunk-7ZZAZPYX.js.map → chunk-KWOEUFVA.js.map} +0 -0
- /package/dist/{chunk-BA2VLJVU.js.map → chunk-LL7NCMUU.js.map} +0 -0
- /package/dist/{chunk-DQHMDDAT.js.map → chunk-V5XXJH63.js.map} +0 -0
- /package/dist/{dist-DTNYMBQ5.js.map → dist-FTKS2GI4.js.map} +0 -0
- /package/dist/{dist-AR5CHRSV.js.map → dist-O3LKOIE7.js.map} +0 -0
- /package/dist/{dist-POVRY7HO.js.map → dist-OO52HARR.js.map} +0 -0
- /package/dist/{dist-K4LNH3EC.js.map → dist-TSFVB7AI.js.map} +0 -0
- /package/dist/{dist-XYY6SIKG.js.map → dist-WVYAURMF.js.map} +0 -0
- /package/dist/{prepared-state-75DIZ55S-W6NU3S3B.js.map → dist-Z6L5MM5D.js.map} +0 -0
- /package/runtime/hub/apps/hub/.next/static/{mJYh9UHTsLaGGyRjBSvme → S-yw9-SVffiEHRGm85NzP}/_buildManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{mJYh9UHTsLaGGyRjBSvme → S-yw9-SVffiEHRGm85NzP}/_clientMiddlewareManifest.js +0 -0
- /package/runtime/hub/apps/hub/.next/static/{mJYh9UHTsLaGGyRjBSvme → S-yw9-SVffiEHRGm85NzP}/_ssgManifest.js +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,38 @@ 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.27.0] - 2026-07-16
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Hub UI: create and manage **remote-docker hosts** from the dashboard. Each
|
|
17
|
+
registered host shows up as a `Docker (<alias>)` option in the create-box
|
|
18
|
+
picker, and the Settings page nests a host list under the Remote Docker row —
|
|
19
|
+
add a host (probes ssh + docker before saving), per-host Bake/Re-bake, and
|
|
20
|
+
remove.
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- Reworked the `remote-docker` provider around named **host aliases**. Register a
|
|
25
|
+
host with `agentbox remote-docker add <alias> <[user@]host[:port]>`; boxes are
|
|
26
|
+
created against the alias (`agentbox docker:<alias> …`), and `agentbox
|
|
27
|
+
remote-docker update <alias> <new-ssh>` retargets existing boxes after an IP
|
|
28
|
+
change. `doctor`/`list`/`remove` work on aliases, and a raw connection string is
|
|
29
|
+
no longer accepted where an alias is expected. `add` now bakes the box image on the
|
|
30
|
+
host by default (`--no-bake` to skip), and `agentbox install` → Remote Docker prompts
|
|
31
|
+
for the alias + SSH connection. (Subcommands were also renamed from the old
|
|
32
|
+
`check`/`use`/`hosts` to `doctor`/`add`/`list`.)
|
|
33
|
+
- `agentbox remote-docker rm <alias>` now confirms before forgetting a host (the
|
|
34
|
+
prompt names the ssh target and how many boxes go unreachable); pass `-y`/`--yes`
|
|
35
|
+
to skip, and it refuses rather than deleting silently on a non-interactive shell.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- remote-docker onboarding/comms fixes surfaced against a real macOS/OrbStack +
|
|
40
|
+
Hetzner remote: the SSH ControlMaster socket path could overrun the `sun_path`
|
|
41
|
+
limit, attach ran the remote command in a non-login shell (docker off `PATH`),
|
|
42
|
+
and the credential seed assumed in-box passwordless sudo the image doesn't grant.
|
|
43
|
+
|
|
12
44
|
## [0.26.1] - 2026-07-15
|
|
13
45
|
|
|
14
46
|
### Fixed
|
package/README.md
CHANGED
|
@@ -96,7 +96,7 @@ Uses `portless` to give box web apps the same URL from inside the box and on the
|
|
|
96
96
|
- `agentbox daytona login` — interactive Daytona API key setup, saved to `~/.agentbox/secrets.env`
|
|
97
97
|
- `agentbox e2b login` — interactive E2B API key setup, saved to `~/.agentbox/secrets.env`
|
|
98
98
|
- `agentbox digitalocean login` — interactive DigitalOcean Personal Access Token setup, saved to `~/.agentbox/secrets.env`
|
|
99
|
-
- `agentbox remote-docker
|
|
99
|
+
- `agentbox remote-docker doctor <host>` — run boxes on a machine you already own, over SSH. No login and no token: it connects as you, using your own `~/.ssh/config`. Then `agentbox docker:<host> claude`.
|
|
100
100
|
- `agentbox prepare [--provider daytona|hetzner|vercel|e2b|digitalocean|docker:<host>]` — build the image and initial snapshot (e2b builds from a Dockerfile via `Template.build()`)
|
|
101
101
|
- `agentbox hetzner claude`, `agentbox hetzner codex`, `agentbox hetzner create`, etc.
|
|
102
102
|
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
cloudAgentAttach,
|
|
5
5
|
cloudAgentStartDetached,
|
|
6
6
|
verifyDetachedSession
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-JE6UI5YR.js";
|
|
8
|
+
import "./chunk-26IKZRTT.js";
|
|
9
9
|
import "./chunk-JGZSA5ZI.js";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-UJEH2NJT.js";
|
|
11
11
|
import "./chunk-G3H2L3O2.js";
|
|
12
12
|
import "./chunk-WJFZJZIM.js";
|
|
13
13
|
export {
|
|
@@ -16,4 +16,4 @@ export {
|
|
|
16
16
|
cloudAgentStartDetached,
|
|
17
17
|
verifyDetachedSession
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=_cloud-attach-
|
|
19
|
+
//# sourceMappingURL=_cloud-attach-WDGM6FL5.js.map
|
|
@@ -70,7 +70,7 @@ import {
|
|
|
70
70
|
syncAgentboxSshConfig,
|
|
71
71
|
trustWorkspace,
|
|
72
72
|
writeClaudeMergedRegistries
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-UJEH2NJT.js";
|
|
74
74
|
|
|
75
75
|
// ../../packages/sandbox-docker/dist/index.js
|
|
76
76
|
import { spawnSync } from "child_process";
|
|
@@ -9337,4 +9337,4 @@ export {
|
|
|
9337
9337
|
ensureBoxBrowser,
|
|
9338
9338
|
ensureBoxBrowserShowingApp
|
|
9339
9339
|
};
|
|
9340
|
-
//# sourceMappingURL=chunk-
|
|
9340
|
+
//# sourceMappingURL=chunk-26IKZRTT.js.map
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
readBoxStatus,
|
|
23
23
|
registerBoxWithRelay,
|
|
24
24
|
syncClaudeCredentials
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-26IKZRTT.js";
|
|
26
26
|
import {
|
|
27
27
|
hashProjectPath,
|
|
28
28
|
loadEffectiveConfig,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
stageOpencodeStateForUpload,
|
|
78
78
|
stageOpencodeStaticForUpload,
|
|
79
79
|
writeCredentialBackup
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-UJEH2NJT.js";
|
|
81
81
|
|
|
82
82
|
// ../../packages/sandbox-cloud/dist/index.js
|
|
83
83
|
import { basename as basename2, resolve } from "path";
|
|
@@ -387,6 +387,7 @@ function createCloudSyncTransport(init) {
|
|
|
387
387
|
}
|
|
388
388
|
return transport;
|
|
389
389
|
}
|
|
390
|
+
var CLOUD_BOX_USER = "vscode";
|
|
390
391
|
var CREDENTIALS_VOLUME = "agentbox-credentials";
|
|
391
392
|
var AGENT_SPECS = [
|
|
392
393
|
{
|
|
@@ -571,15 +572,19 @@ async function seedCredentialsOne(backend, handle, spec, opts) {
|
|
|
571
572
|
})()
|
|
572
573
|
) : (
|
|
573
574
|
// Ephemeral FS: extract straight into the box-baked `~/.agentbox-creds/
|
|
574
|
-
// <agent>/` dir
|
|
575
|
-
//
|
|
576
|
-
//
|
|
577
|
-
//
|
|
575
|
+
// <agent>/` dir, running the extract AS the box user via `backend.exec`'s
|
|
576
|
+
// `user` option — NOT an in-shell `sudo -u vscode`. Every non-volume
|
|
577
|
+
// backend resolves `user: vscode` through its own mechanism (docker `-u`,
|
|
578
|
+
// ssh-as-vscode, vercel/e2b SDK), so the files land vscode-owned WITHOUT
|
|
579
|
+
// relying on an in-box passwordless-sudo policy. That distinction matters:
|
|
580
|
+
// the shared docker image (remote-docker) does NOT grant vscode sudo, so
|
|
581
|
+
// an in-shell `sudo -u vscode` fails there ("user vscode is not allowed to
|
|
582
|
+
// execute … as vscode"), leaving the box credential-less. The
|
|
578
583
|
// `--no-same-permissions --no-same-owner -m` flags mirror what
|
|
579
584
|
// vercel/hetzner did in their old custom pushers.
|
|
580
|
-
`set -e;
|
|
585
|
+
`set -e; mkdir -p ${spec.credentialsMountPath}; tar -xzf ${remoteTar} -C ${spec.credentialsMountPath} --no-same-permissions --no-same-owner -m; rm -f ${remoteTar}`
|
|
581
586
|
);
|
|
582
|
-
const extract = await backend.exec(handle, extractCmd);
|
|
587
|
+
const extract = hasVolume ? await backend.exec(handle, extractCmd) : await backend.exec(handle, extractCmd, { user: CLOUD_BOX_USER });
|
|
583
588
|
if (extract.exitCode !== 0) {
|
|
584
589
|
const msg = `${spec.kind}: credentials extract failed (exit ${String(extract.exitCode)}); agent falls back to interactive login. stdout: ${extract.stdout.slice(-200)} stderr: ${extract.stderr.slice(-200)}`;
|
|
585
590
|
log(msg);
|
|
@@ -3184,4 +3189,4 @@ export {
|
|
|
3184
3189
|
seedAgentStaticIntoCloudBox,
|
|
3185
3190
|
openWebAppOnVncScreen
|
|
3186
3191
|
};
|
|
3187
|
-
//# sourceMappingURL=chunk-
|
|
3192
|
+
//# sourceMappingURL=chunk-HR7NHH5J.js.map
|