TEXT_EXT_WHITELIST = {
# common text
"txt", "text", "log", "md", "rst",
# structured
"json", "jsonl", "xml", "yaml", "yml", "toml", "ini", "conf", "cfg", "properties",
"csv", "tsv",
# code
"py", "js", "ts", "java", "c", "cc", "cpp", "h", "hpp", "go", "rs", "sh", "bat", "ps1",
"php", "rb", "sql", "css", "html"
}node_modules/* - Node.js 依赖vendor/* - Go/PHP 依赖bower_components/* - Bower 依赖.git/* - Git 仓库.svn/* - SVN 仓库__pycache__/* - Python 缓存*.pyc - Python 编译文件.venv/*, venv/*, env/*, .env/* - 虚拟环境*.egg-info/* - Python 包信息.pytest_cache/* - Pytest 缓存.tox/* - Tox 环境dist/* - 分发目录build/* - 构建目录target/* - Java/Maven 构建目录bin/*, obj/* - C# 构建目录.next/* - Next.js 缓存.nuxt/* - Nuxt.js 缓存.idea/* - IntelliJ IDEA.vscode/* - Visual Studio Code.DS_Store - macOS 系统文件*.log - 日志文件.cache/* - 缓存目录coverage/* - 测试覆盖率报告*.swp, *.swo, *~ - 编辑器临时文件curl --location --request POST 'https://api.302.ai/302/claude-code/sandbox/file/download' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"sandbox_id": "302-sandbox-xxxxxx",
"path": "/home/user/workspace/ai302-test"
}'{
"format": "text",
"path": "/home/user/.mcp.json",
"content": "{\n \"mcpServers\": {\n \"playwright\": {\n \"type\": \"stdio\",\n \"command\": \"npx\",\n \"args\": [\n \"@playwright/mcp@latest\"\n ],\n \"env\": {}\n }\n }\n}",
"filename": ".mcp.json"
}