Skip to content

Commit 79a3b3e

Browse files
linuxdevelclaude
andcommitted
fix(ci): build sandbox-runtime from linuxdevel fork to get dist
The @anthropic-ai/sandbox-runtime package gitignores dist/, so GitHub source tarballs don't include type declarations causing TS2307 in CI. Fix: switch dependency to linuxdevel/sandbox-runtime fork and add a CI step that clones the fork, builds it, and copies dist/ into the installed package location before lint/build/test run. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 926e1eb commit 79a3b3e

5 files changed

Lines changed: 23 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ jobs:
2828
- name: Install dependencies
2929
run: pnpm install --frozen-lockfile
3030

31+
- name: Build sandbox-runtime from source
32+
run: |
33+
git clone --depth 1 https://github.com/linuxdevel/sandbox-runtime /tmp/sandbox-runtime
34+
cd /tmp/sandbox-runtime && npm install && npm run build
35+
SRT_DIR=$(node -e "console.log(require.resolve('@anthropic-ai/sandbox-runtime/package.json').replace('/package.json',''))")
36+
cp -r /tmp/sandbox-runtime/dist "$SRT_DIR/"
37+
3138
- name: Lint
3239
run: pnpm lint
3340

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ jobs:
3838
- name: Install dependencies
3939
run: pnpm install --frozen-lockfile
4040

41+
- name: Build sandbox-runtime from source
42+
run: |
43+
git clone --depth 1 https://github.com/linuxdevel/sandbox-runtime /tmp/sandbox-runtime
44+
cd /tmp/sandbox-runtime && npm install && npm run build
45+
SRT_DIR=$(node -e "console.log(require.resolve('@anthropic-ai/sandbox-runtime/package.json').replace('/package.json',''))")
46+
cp -r /tmp/sandbox-runtime/dist "$SRT_DIR/"
47+
4148
- name: Run tests
4249
run: pnpm test
4350

packages/cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"build": "tsc -p tsconfig.json"
1313
},
1414
"dependencies": {
15-
"@anthropic-ai/sandbox-runtime": "git+ssh://git@github.com/anthropic-experimental/sandbox-runtime.git#20f5176a94314038695bee13779eb9eebbbaeb49",
15+
"@anthropic-ai/sandbox-runtime": "git+ssh://git@github.com/linuxdevel/sandbox-runtime.git#20f5176a94314038695bee13779eb9eebbbaeb49",
1616
"@safeclaw/core": "workspace:*",
1717
"@safeclaw/gateway": "workspace:*",
1818
"@safeclaw/sandbox": "workspace:*",

packages/sandbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"build": "tsc -p tsconfig.json"
1010
},
1111
"dependencies": {
12-
"@anthropic-ai/sandbox-runtime": "git+ssh://git@github.com/anthropic-experimental/sandbox-runtime.git#20f5176a94314038695bee13779eb9eebbbaeb49"
12+
"@anthropic-ai/sandbox-runtime": "git+ssh://git@github.com/linuxdevel/sandbox-runtime.git#20f5176a94314038695bee13779eb9eebbbaeb49"
1313
},
1414
"files": ["dist"]
1515
}

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)