@madarco/agentbox 0.20.0 → 0.20.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.
- package/CHANGELOG.md +21 -0
- package/dist/{_cloud-attach-THTN4CFZ.js → _cloud-attach-MH7NKIZY.js} +3 -3
- package/dist/{chunk-ZX6DTA4X.js → chunk-3465NDRZ.js} +95 -7
- package/dist/chunk-3465NDRZ.js.map +1 -0
- package/dist/{chunk-7RWFYLF3.js → chunk-4ATVA3RM.js} +7 -7
- package/dist/{chunk-3VFY3N4A.js → chunk-5N7GA2X7.js} +58 -76
- package/dist/chunk-5N7GA2X7.js.map +1 -0
- package/dist/{dist-3PLT2EK2.js → dist-AJWL4WLW.js} +4 -2
- package/dist/{dist-3WFNXXPE.js → dist-CTTTHG6U.js} +5 -4
- package/dist/{dist-3WFNXXPE.js.map → dist-CTTTHG6U.js.map} +1 -1
- package/dist/{dist-7ELDXBAG.js → dist-G5PDFWKH.js} +7 -4
- package/dist/{dist-7ELDXBAG.js.map → dist-G5PDFWKH.js.map} +1 -1
- package/dist/{dist-CZ6CRADC.js → dist-LUEH7MER.js} +3 -3
- package/dist/dist-LUEH7MER.js.map +1 -0
- package/dist/{dist-C3YRC3PP.js → dist-T3JIYHCA.js} +3 -3
- package/dist/index.js +29 -29
- package/package.json +5 -5
- package/runtime/docker/Dockerfile.box +13 -0
- package/runtime/e2b/attach-helper.cjs +4 -1
- package/runtime/e2b/scripts/build-template.sh +10 -0
- package/runtime/hetzner/scripts/install-box.sh +9 -0
- package/runtime/vercel/scripts/provision.sh +20 -0
- package/dist/chunk-3VFY3N4A.js.map +0 -1
- package/dist/chunk-ZX6DTA4X.js.map +0 -1
- package/dist/dist-CZ6CRADC.js.map +0 -1
- /package/dist/{_cloud-attach-THTN4CFZ.js.map → _cloud-attach-MH7NKIZY.js.map} +0 -0
- /package/dist/{chunk-7RWFYLF3.js.map → chunk-4ATVA3RM.js.map} +0 -0
- /package/dist/{dist-3PLT2EK2.js.map → dist-AJWL4WLW.js.map} +0 -0
- /package/dist/{dist-C3YRC3PP.js.map → dist-T3JIYHCA.js.map} +0 -0
|
@@ -68,6 +68,7 @@ RUN apt-get update \
|
|
|
68
68
|
python3-venv \
|
|
69
69
|
build-essential \
|
|
70
70
|
git \
|
|
71
|
+
git-lfs \
|
|
71
72
|
tmux \
|
|
72
73
|
vim \
|
|
73
74
|
libcap2-bin \
|
|
@@ -112,6 +113,18 @@ RUN mkdir -p /home/vscode/.cache/node/corepack \
|
|
|
112
113
|
# bind-mount of ~/.gitconfig from the host.
|
|
113
114
|
RUN git config --system --add safe.directory '*'
|
|
114
115
|
|
|
116
|
+
# git-lfs (installed above) must register its filter.lfs.* hooks, otherwise a
|
|
117
|
+
# checkout of an LFS-tracked repo skips smudge/clean entirely. More to the
|
|
118
|
+
# point: the host's ~/.gitconfig is bind-mounted RO into the box and a user who
|
|
119
|
+
# ran `git lfs install` on the host has `filter.lfs.process = git-lfs
|
|
120
|
+
# filter-process` in it. The in-container `git worktree add` (seedWorkspace)
|
|
121
|
+
# then spawns that filter on checkout, so the `git-lfs` binary has to be on
|
|
122
|
+
# PATH or the add dies with "git-lfs: not found / the remote end hung up
|
|
123
|
+
# unexpectedly". `--system` writes /etc/gitconfig (the host-config bind only
|
|
124
|
+
# covers ~/.gitconfig), so repos that declare LFS purely via .gitattributes
|
|
125
|
+
# resolve too. `--skip-repo` keeps it from touching any checkout at build time.
|
|
126
|
+
RUN git lfs install --system --skip-repo
|
|
127
|
+
|
|
115
128
|
# Docker-in-Docker. dockerd inside the box lets the agent run
|
|
116
129
|
# `docker build`/`docker run` in its own namespace without exposing the host
|
|
117
130
|
# daemon. The storage driver is NOT pinned here: agentbox-dockerd-start picks
|
|
@@ -127,7 +127,10 @@ async function main() {
|
|
|
127
127
|
envs: {
|
|
128
128
|
LANG: "C.UTF-8",
|
|
129
129
|
LC_ALL: "C.UTF-8",
|
|
130
|
-
|
|
130
|
+
// Forwarded from the host by build-attach.ts. The inner command's TERM
|
|
131
|
+
// guard (renderInnerCommand) downgrades to xterm-256color when the box's
|
|
132
|
+
// terminfo lacks it, so an exotic host TERM never breaks the attach.
|
|
133
|
+
TERM: process.env.AGENTBOX_HOST_TERM || "xterm-256color"
|
|
131
134
|
},
|
|
132
135
|
// Long-lived. We don't want the SDK reaping the PTY mid-session.
|
|
133
136
|
timeoutMs: 55 * 6e4,
|
|
@@ -54,6 +54,7 @@ apt-get update -y -q
|
|
|
54
54
|
apt-get install -y -q --no-install-recommends \
|
|
55
55
|
ca-certificates \
|
|
56
56
|
git \
|
|
57
|
+
git-lfs \
|
|
57
58
|
tar \
|
|
58
59
|
gzip \
|
|
59
60
|
curl \
|
|
@@ -132,6 +133,15 @@ git config --system --add safe.directory '*' 2>/dev/null || true
|
|
|
132
133
|
sudo -u vscode -H git config --global --add safe.directory '*' 2>/dev/null || true
|
|
133
134
|
done_ "git system-wide safe.directory"
|
|
134
135
|
|
|
136
|
+
step "git-lfs system filter"
|
|
137
|
+
# Register filter.lfs.* system-wide (and for vscode) so an in-box checkout of an
|
|
138
|
+
# LFS repo smudges instead of writing pointer files. Cloud boxes have no
|
|
139
|
+
# bind-mounted ~/.gitconfig, so --system is the only place the filter lives.
|
|
140
|
+
# --skip-repo never touches a checkout at bake time.
|
|
141
|
+
git lfs install --system --skip-repo 2>/dev/null || true
|
|
142
|
+
sudo -u vscode -H git lfs install --skip-repo 2>/dev/null || true
|
|
143
|
+
done_ "git-lfs system filter"
|
|
144
|
+
|
|
135
145
|
step "agentbox-ctl install"
|
|
136
146
|
install -m 0755 /tmp/agentbox-ctl /usr/local/bin/agentbox-ctl
|
|
137
147
|
done_ "agentbox-ctl install"
|
|
@@ -69,6 +69,7 @@ apt-get install -y --no-install-recommends \
|
|
|
69
69
|
python3-venv \
|
|
70
70
|
build-essential \
|
|
71
71
|
git \
|
|
72
|
+
git-lfs \
|
|
72
73
|
tmux \
|
|
73
74
|
vim \
|
|
74
75
|
libcap2-bin \
|
|
@@ -134,6 +135,14 @@ step "git system-wide safe.directory"
|
|
|
134
135
|
git config --system --add safe.directory '*'
|
|
135
136
|
done_ "git system-wide safe.directory"
|
|
136
137
|
|
|
138
|
+
step "git-lfs system filter"
|
|
139
|
+
# Register filter.lfs.* in /etc/gitconfig so an in-box checkout of an LFS repo
|
|
140
|
+
# smudges instead of writing pointer files. Unlike docker, cloud boxes have no
|
|
141
|
+
# bind-mounted ~/.gitconfig, so --system is the only place the filter lives.
|
|
142
|
+
# --skip-repo keeps install from touching a checkout at bake time.
|
|
143
|
+
git lfs install --system --skip-repo
|
|
144
|
+
done_ "git-lfs system filter"
|
|
145
|
+
|
|
137
146
|
step "docker + iptables for in-VPS DinD"
|
|
138
147
|
apt-get install -y --no-install-recommends \
|
|
139
148
|
docker.io \
|
|
@@ -144,6 +144,26 @@ git config --system --add safe.directory '*' 2>/dev/null || true
|
|
|
144
144
|
sudo -u vscode -H git config --global --add safe.directory '*' 2>/dev/null || true
|
|
145
145
|
done_ "git system-wide safe.directory"
|
|
146
146
|
|
|
147
|
+
step "git-lfs (binary + system filter)"
|
|
148
|
+
# Not in the atomic base dnf transaction on purpose: AL2023 may not carry
|
|
149
|
+
# git-lfs in its default repos, and a missing package would abort the whole
|
|
150
|
+
# (atomic) base install. Best-effort here — try dnf, then git-lfs's official
|
|
151
|
+
# packagecloud rpm repo as a fallback. If both miss, LFS repos degrade to
|
|
152
|
+
# pointer files rather than breaking the bake.
|
|
153
|
+
if ! command -v git-lfs >/dev/null 2>&1; then
|
|
154
|
+
dnf install -y -q git-lfs 2>/dev/null || {
|
|
155
|
+
curl -fsSL https://packagecloud.io/install/repositories/github/git-lfs/script.rpm.sh | bash 2>&1 | tail -3 || true
|
|
156
|
+
dnf install -y -q git-lfs 2>&1 | tail -3 || true
|
|
157
|
+
}
|
|
158
|
+
fi
|
|
159
|
+
# Register filter.lfs.* in the (Vercel-relocated /opt/git/etc) system gitconfig
|
|
160
|
+
# AND for vscode, so an in-box checkout of an LFS repo smudges instead of writing
|
|
161
|
+
# pointers. Cloud boxes have no bind-mounted ~/.gitconfig, so this is the only
|
|
162
|
+
# place the filter lives. --skip-repo never touches a checkout at bake time.
|
|
163
|
+
git lfs install --system --skip-repo 2>/dev/null || true
|
|
164
|
+
sudo -u vscode -H git lfs install --skip-repo 2>/dev/null || true
|
|
165
|
+
done_ "git-lfs (binary + system filter)"
|
|
166
|
+
|
|
147
167
|
step "agentbox-ctl install"
|
|
148
168
|
install -m 0755 /tmp/agentbox-ctl /usr/local/bin/agentbox-ctl
|
|
149
169
|
done_ "agentbox-ctl install"
|