@kokorolx/ai-sandbox-wrapper 3.0.7 → 3.1.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/bin/ai-run CHANGED
@@ -665,7 +665,7 @@ get_tool_configs() {
665
665
  case "$1" in
666
666
  amp) echo ".config/amp .local/share/amp" ;;
667
667
  opencode) echo ".config/opencode .local/share/opencode" ;;
668
- claude) echo ".claude .ccs" ;;
668
+ claude) echo ".claude" ;;
669
669
  openclaw) echo ".openclaw" ;;
670
670
  droid) echo ".config/droid" ;;
671
671
  qoder) echo ".config/qoder" ;;
@@ -783,15 +783,12 @@ if [[ -d "$HOST_SKILLS_DIR" ]]; then
783
783
  SHARED_CACHE_MOUNTS="$SHARED_CACHE_MOUNTS -v $HOST_SKILLS_DIR:/home/agent/.config/opencode/skills:ro"
784
784
  fi
785
785
 
786
- # Nano-brain mount: data/index read-only, logs + memory writable
787
- # Parent :ro protects index/sqlite/config from container writes
788
- # Sub-mount :rw on logs/ allows CLI logging (appendFileSync in logger.ts)
789
- # Sub-mount :rw on memory/ allows CLI write command (npx nano-brain write)
786
+ # Nano-brain mount: writable so container can modify config, write memory, logs, etc.
790
787
  NANO_BRAIN_MOUNT=""
791
788
  if [[ -d "$HOME/.nano-brain" ]]; then
792
789
  mkdir -p "$HOME/.nano-brain/logs" "$HOME/.nano-brain/memory"
793
- NANO_BRAIN_MOUNT="-v $HOME/.nano-brain:/home/agent/.nano-brain:ro -v $HOME/.nano-brain/logs:/home/agent/.nano-brain/logs:rw -v $HOME/.nano-brain/memory:/home/agent/.nano-brain/memory:rw"
794
- echo "ℹ️ Mounted .nano-brain (ro) with logs/ + memory/ overlay (rw)"
790
+ NANO_BRAIN_MOUNT="-v $HOME/.nano-brain:/home/agent/.nano-brain:delegated"
791
+ echo "ℹ️ Mounted .nano-brain (rw)"
795
792
  fi
796
793
 
797
794
 
@@ -4,12 +4,6 @@ set -e
4
4
  dockerfile_snippet() {
5
5
  cat <<'SNIPPET'
6
6
  USER root
7
- RUN apt-get update && apt-get install -y --no-install-recommends tmux && rm -rf /var/lib/apt/lists/*
8
- RUN npm install -g @kaitranntt/ccs --ignore-scripts && \
9
- mkdir -p /home/agent/.ccs && \
10
- chown -R agent:agent /home/agent/.ccs && \
11
- which ccs && ccs --version && \
12
- sed -i 's/fs\.symlinkSync(sourcePath, targetPath, symlinkType)/fs\.symlinkSync(require("path").relative(require("path").dirname(targetPath), sourcePath), targetPath, symlinkType)/g' /usr/local/lib/node_modules/@kaitranntt/ccs/dist/utils/claude-symlink-manager.js
13
7
  RUN export HOME=/root && curl -fsSL https://claude.ai/install.sh | bash && \
14
8
  mkdir -p /usr/local/share && \
15
9
  mv /root/.local/share/claude /usr/local/share/claude && \
@@ -36,17 +30,6 @@ cat <<'EOF' > "dockerfiles/$TOOL/Dockerfile"
36
30
  FROM ai-base:latest
37
31
 
38
32
  USER root
39
- # Install tmux for Agent Teams split-pane mode
40
- RUN apt-get update && apt-get install -y --no-install-recommends tmux && rm -rf /var/lib/apt/lists/*
41
-
42
- # Install CCS (Claude Code Switch) for multi-provider model switching
43
- # Use --ignore-scripts to avoid postinstall failures when HOME=/home/agent but running as root
44
- RUN npm install -g @kaitranntt/ccs --ignore-scripts && \
45
- mkdir -p /home/agent/.ccs && \
46
- chown -R agent:agent /home/agent/.ccs && \
47
- which ccs && ccs --version && \
48
- sed -i 's/fs\.symlinkSync(sourcePath, targetPath, symlinkType)/fs\.symlinkSync(require("path").relative(require("path").dirname(targetPath), sourcePath), targetPath, symlinkType)/g' /usr/local/lib/node_modules/@kaitranntt/ccs/dist/utils/claude-symlink-manager.js
49
-
50
33
  # Install Claude Code using official native installer
51
34
  RUN export HOME=/root && curl -fsSL https://claude.ai/install.sh | bash && \
52
35
  mkdir -p /usr/local/share && \
@@ -68,11 +51,7 @@ echo " ✓ Official native binary"
68
51
  echo " ✓ Claude 3.5 Sonnet/Opus models"
69
52
  echo " ✓ Agentic coding with file editing"
70
53
  echo " ✓ Web search and fetch built-in"
71
- echo " ✓ Agent Teams (multi-agent tmux split-pane workflows)"
72
- echo " ✓ CCS (Claude Code Switch) for multi-provider model switching"
73
54
  echo ""
74
55
  echo "Usage: ai-run claude"
75
56
  echo "Auth: Set ANTHROPIC_API_KEY in ~/.ai-sandbox/env"
76
57
  echo ""
77
- echo "Agent Teams: Add CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS=1 to ~/.ai-sandbox/env"
78
- echo "CCS: Run 'ai-run claude --shell' then 'ccs help' to configure providers"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kokorolx/ai-sandbox-wrapper",
3
- "version": "3.0.7",
3
+ "version": "3.1.0",
4
4
  "description": "Docker-based security sandbox for AI coding agents. Isolate Claude, Gemini, Aider, and other AI tools from your host system.",
5
5
  "keywords": [
6
6
  "ai",