@kokorolx/ai-sandbox-wrapper 3.0.8 → 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 +1 -1
- package/lib/install-claude.sh +0 -21
- package/package.json +1 -1
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
|
|
668
|
+
claude) echo ".claude" ;;
|
|
669
669
|
openclaw) echo ".openclaw" ;;
|
|
670
670
|
droid) echo ".config/droid" ;;
|
|
671
671
|
qoder) echo ".config/qoder" ;;
|
package/lib/install-claude.sh
CHANGED
|
@@ -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