Skip to content

Commit 1eb0c70

Browse files
fix: use nodejs/npm instead of bun for Claude CLI
1 parent 0cce3d8 commit 1eb0c70

1 file changed

Lines changed: 4 additions & 12 deletions

File tree

src/policyengine_api/agent_sandbox.py

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,14 @@
66

77
import modal
88

9-
# Sandbox image with Bun and Claude Code CLI
9+
# Sandbox image with Node.js and Claude Code CLI
1010
sandbox_image = (
1111
modal.Image.debian_slim(python_version="3.12")
12-
.apt_install("curl", "git", "unzip")
12+
.apt_install("curl", "git", "unzip", "nodejs", "npm")
1313
.pip_install("logfire")
1414
.run_commands(
15-
# Install Bun
16-
"curl -fsSL https://bun.sh/install | bash",
17-
# Add bun to PATH and install Claude Code CLI globally
18-
"export BUN_INSTALL=/root/.bun && export PATH=$BUN_INSTALL/bin:$PATH && bun install -g @anthropic-ai/claude-code",
19-
)
20-
.env(
21-
{
22-
"BUN_INSTALL": "/root/.bun",
23-
"PATH": "/root/.bun/bin:/usr/local/bin:/usr/bin:/bin",
24-
}
15+
# Install Claude Code CLI globally via npm
16+
"npm install -g @anthropic-ai/claude-code",
2517
)
2618
)
2719

0 commit comments

Comments
 (0)