Files
continue/.github/workflows/runloop-blueprint-template.json
Nate a80c8fc394 Fix npm cache corruption in base blueprint
Add `npm cache clean --force` at the end of the base blueprint setup
to prevent "idealTree already exists" errors in child blueprints.

The npm global install leaves cache state that can cause issues when
child blueprints run their own npm install commands.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-26 13:32:18 -05:00

32 lines
1.5 KiB
JSON

{
"name": "cn",
"dockerfile": "FROM runloop:runloop/universal-ubuntu-24.04-x86_64-dnd",
"system_setup_commands": [
"npm i -g @continuedev/cli@latest",
"sudo apt update",
"printf '#!/bin/sh\\nexit 101\\n' | sudo tee /usr/sbin/policy-rc.d > /dev/null && sudo chmod +x /usr/sbin/policy-rc.d",
"sudo apt install -y --no-install-recommends ripgrep chromium chromium-driver xvfb",
"sudo rm /usr/sbin/policy-rc.d",
"sudo mkdir -p /opt/google/chrome",
"sudo ln -s /usr/bin/chromium /opt/google/chrome/chrome",
"curl -1sLf 'https://artifacts-cli.infisical.com/setup.deb.sh' | sudo -E bash",
"sudo apt-get install -y infisical",
"curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg",
"sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg",
"echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main' | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null",
"sudo apt update",
"sudo apt install -y gh",
"npm cache clean --force"
],
"launch_parameters": {
"launch_commands": [
"export DISPLAY=:99",
"export PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium",
"nohup Xvfb :99 -screen 0 1920x1080x24 > /tmp/xvfb.log 2>&1 &",
"sleep 2",
"sudo mkdir -p /home/user",
"for dir in /root/*; do [ -d \"$dir\" ] && [ -d \"$dir/.git\" ] && sudo ln -sf \"$dir\" \"/home/user/$(basename \"$dir\")\"; done"
]
}
}