Files
hack/tools/scripts/llm-key-hunter/results/_cache/content/chenyongda2018_smartperfetto.json
T

1 line
14 KiB
JSON

{"repo": "chenyongda2018/smartperfetto", "files": {"backend/.env.example": {"c78e8934c86c612f6b7ce2f42f21c35c99de00ce": {"t": 1785746591.1997037, "n": 10361, "h": "08997993ba6d6700", "c": "# ===================================================\n# SmartPerfetto Configuration\n# ===================================================\n# Copy this file to .env and fill in your API key:\n# cp .env.example .env\n#\n# Minimum required: ANTHROPIC_API_KEY (for Claude Agent SDK)\n\n# ---------------------------------------------------\n# AI Service Configuration\n# ---------------------------------------------------\n# SmartPerfetto uses the Claude Agent SDK as its AI runtime.\n# You can connect it to Anthropic directly, or to any LLM\n# provider via an API proxy that translates requests to\n# Anthropic Messages API format.\n#\n# Two ways to connect:\n#\n# 1. Direct Anthropic (default) — just set ANTHROPIC_API_KEY\n# 2. Third-party LLM via proxy — set ANTHROPIC_BASE_URL to\n# a proxy (one-api / new-api / LiteLLM) that converts\n# Anthropic Messages API -> provider's OpenAI-compatible API\n#\n# ┌──────────────────────────────────────────────────┐\n# │ SmartPerfetto │\n# │ │ (Claude Agent SDK) │\n# │ ▼ │\n# │ ANTHROPIC_BASE_URL ──► API Proxy (one-api等) │\n# │ │ │\n# │ ┌─────────┼─────────┐ │\n# │ ▼ ▼ ▼ │\n# │ GLM-5.1 DeepSeek Qwen │\n# └──────────────────────────────────────────────────┘\n#\n# Popular open-source API proxies:\n# - one-api: https://github.com/songquanpeng/one-api\n# - new-api: https://github.com/Calcium-Ion/new-api\n# - LiteLLM: https://github.com/BerriAI/litellm\n\n# ===================================================\n# Option 1: Anthropic Direct (default, recommended)\n# ===================================================\n# Get your API key at https://console.anthropic.com/\nANTHROPIC_API_KEY=your_anthropic_api_key_here\n\n# ===================================================\n# Option 2: AWS Bedrock (Bearer Token)\n# ===================================================\n# Use Claude via AWS Bedrock with bearer token authentication.\n# CLAUDE_CODE_USE_BEDROCK=1\n# ANTHROPIC_BEDROCK_BASE_URL=https://bedrock-runtime.us-east-1.amazonaws.com\n# AWS_BEARER_TOKEN_BEDROCK=your_bearer_token_here\n\n# ===================================================\n# Option 3: Third-party LLM via API Proxy\n# ===================================================\n# Uncomment ONE provider block below. All require a proxy\n# (one-api / new-api / LiteLLM) that accepts Anthropic API\n# format and forwards to the provider's OpenAI-compatible API.\n#\n# In your proxy, create a channel for the provider and map\n# the model names below. Then point ANTHROPIC_BASE_URL at\n# the proxy's Anthropic-compatible endpoint.\n\n# --- Proxy Connection (required for all providers below) ---\n# ANTHROPIC_BASE_URL=http://localhost:3000 # Your proxy address\n# ANTHROPIC_API_KEY=sk-proxy-xxx # Proxy auth token\n\n# ---------------------------------------------------\n# GLM / Z.ai (智谱AI / ZhipuAI)\n# ---------------------------------------------------\n# Console: https://open.bigmodel.cn/\n# Proxy backend URL: https://open.bigmodel.cn/api/paas/v4\n# CLAUDE_MODEL=glm-5.1\n# CLAUDE_LIGHT_MODEL=glm-4.7-flash\n\n# ---------------------------------------------------\n# DeepSeek\n# ---------------------------------------------------\n# Console: https://platform.deepseek.com/\n# Proxy backend URL: https://api.deepseek.com\n# Note: deepseek-chat / deepseek-reasoner are legacy compatibility aliases.\n# CLAUDE_MODEL=deepseek-v4-pro\n# CLAUDE_LIGHT_MODEL=deepseek-v4-flash\n\n# ---------------------------------------------------\n# Qwen (通义千问 / Alibaba Cloud)\n# ---------------------------------------------------\n# Console: https://dashscope.console.aliyun.com/\n# Proxy backend URL: https://dashscope.aliyuncs.com/compatible-mode/v1\n# CLAUDE_MODEL=qwen3-max\n# CLAUDE_LIGHT_MODEL=qwen3.5-flash\n\n# ---------------------------------------------------\n# Kimi (月之暗面 / Moonshot AI)\n# ---------------------------------------------------\n# Console: https://platform.moonshot.cn/\n# Proxy backend URL: https://api.moonshot.cn/v1\n# CLAUDE_MODEL=kimi-k2.6\n# CLAUDE_LIGHT_MODEL=kimi-k2.5\n\n# ---------------------------------------------------\n# Doubao (豆包 / ByteDance Volcano Engine)\n# ---------------------------------------------------\n# Console: https://console.volcengine.com/ark\n# Proxy backend URL: https://ark.cn-beijing.volces.com/api/v3\n# Note: Production Ark deployments often use endpoint IDs (ep-xxx).\n# Coding Plan setups may also expose model names such as\n# doubao-seed-2.0-code or doubao-seed-code.\n# CLAUDE_MODEL=ep-your-doubao-pro-endpoint-id\n# CLAUDE_LIGHT_MODEL=ep-your-doubao-lite-endpoint-id\n\n# ---------------------------------------------------\n# MiniMax\n# ---------------------------------------------------\n# Console: https://platform.minimaxi.com/\n# Proxy backend URL: https://api.minimaxi.com/v1\n# CLAUDE_MODEL=MiniMax-M2.7\n# CLAUDE_LIGHT_MODEL=MiniMax-M2.5\n\n# ---------------------------------------------------\n# Legacy / account-specific proxy examples\n# ---------------------------------------------------\n# The providers below are kept for users whose proxy accounts still expose\n# these model IDs. Verify the current model catalog and OpenAI-compatible\n# backend URL in the provider console before use.\n\n# ---------------------------------------------------\n# Baichuan (百川智能)\n# ---------------------------------------------------\n# Console: https://platform.baichuan-ai.com/\n# Proxy backend URL: https://api.baichuan-ai.com/v1\n# CLAUDE_MODEL=Baichuan4\n# CLAUDE_LIGHT_MODEL=Baichuan3-Turbo\n\n# ---------------------------------------------------\n# Yi (零一万物 / 01.AI)\n# ---------------------------------------------------\n# Console: https://platform.lingyiwanwu.com/\n# Proxy backend URL: https://api.lingyiwanwu.com/v1\n# CLAUDE_MODEL=yi-large\n# CLAUDE_LIGHT_MODEL=yi-lightning\n\n# ---------------------------------------------------\n# Spark (讯飞星火 / iFlytek)\n# ---------------------------------------------------\n# Console: https://console.xfyun.cn/\n# Proxy backend URL: https://spark-api-open.xf-yun.com/v1\n# CLAUDE_MODEL=4.0Ultra\n# CLAUDE_LIGHT_MODEL=generalv3.5\n\n# ---------------------------------------------------\n# Hunyuan (腾讯混元 / Tencent)\n# ---------------------------------------------------\n# Console: https://cloud.tencent.com/product/hunyuan\n# Proxy backend URL: https://api.hunyuan.cloud.tencent.com/v1\n# CLAUDE_MODEL=hunyuan-turbo-latest\n# CLAUDE_LIGHT_MODEL=hunyuan-lite\n\n# ---------------------------------------------------\n# OpenAI\n# ---------------------------------------------------\n# Console: https://platform.openai.com/\n# Proxy backend URL: https://api.openai.com/v1\n# CLAUDE_MODEL=gpt-5.5\n# CLAUDE_LIGHT_MODEL=gpt-5.4-mini\n\n# ---------------------------------------------------\n# Google Gemini\n# ---------------------------------------------------\n# Console: https://aistudio.google.com/\n# Proxy backend URL: https://generativelanguage.googleapis.com/v1beta/openai\n# Preview path:\n# CLAUDE_MODEL=gemini-3-pro-preview\n# CLAUDE_LIGHT_MODEL=gemini-3-flash-preview\n# Stable path:\n# CLAUDE_MODEL=gemini-2.5-pro\n# CLAUDE_LIGHT_MODEL=gemini-2.5-flash\n\n# ---------------------------------------------------\n# Ollama (local, free)\n# ---------------------------------------------------\n# Install: https://ollama.com/\n# No proxy needed if proxy supports Ollama backend,\n# or point proxy backend URL at: http://localhost:11434/v1\n# Verify the chosen local tag supports tool calling before full analysis.\n# CLAUDE_MODEL=qwen3:30b\n# CLAUDE_LIGHT_MODEL=qwen3:30b\n\n# ---------------------------------------------------\n# Model & Agent Tuning (optional, for all providers)\n# ---------------------------------------------------\n# CLAUDE_MAX_TURNS=30 # Max reasoning turns per analysis\n# CLAUDE_QUICK_MAX_TURNS=5 # Quick/fast mode max reasoning turns (default 5)\n# CLAUDE_MAX_BUDGET_USD=5 # Per-analysis budget cap (Anthropic only)\n# CLAUDE_EFFORT=high # SDK extended thinking: low|medium|high|max (Anthropic only)\n# CLAUDE_ENABLE_SUB_AGENTS=false # Sub-agent delegation (research preview, off by default for all users)\n# CLAUDE_SUB_AGENT_MODEL=sonnet # Sub-agent model: haiku|sonnet|opus|inherit\n\n# Per-turn timeouts — raise for slower LLMs (DeepSeek / Ollama / GLM / Qwen etc).\n# Defaults are tuned for Claude Sonnet / Haiku; most non-Anthropic providers need larger values.\n# CLAUDE_FULL_PER_TURN_MS=60000 # Full analysis per-turn budget (default 60s)\n# CLAUDE_QUICK_PER_TURN_MS=40000 # Quick (fast mode) per-turn budget (default 40s)\n# CLAUDE_VERIFIER_TIMEOUT_MS=60000 # Verifier single-turn LLM timeout (default 60s)\n# CLAUDE_CLASSIFIER_TIMEOUT_MS=30000 # Query complexity classifier timeout (default 30s)\n\n# ---------------------------------------------------\n# Server\n# ---------------------------------------------------\nPORT=3000\nNODE_ENV=development\nFRONTEND_URL=http://localhost:10000\n\n# ---------------------------------------------------\n# API Authentication (optional, recommended for shared/public deployments)\n# ---------------------------------------------------\n# If set, all protected APIs require:\n# Authorization: Bearer <SMARTPERFETTO_API_KEY>\n# SMARTPERFETTO_API_KEY=replace_with_a_strong_random_secret\n\n# ---------------------------------------------------\n# Request Throttling (optional, in-memory, per API key/IP)\n# ---------------------------------------------------\n# SMARTPERFETTO_USAGE_MAX_REQUESTS=200\n# SMARTPERFETTO_USAGE_MAX_TRACE_REQUESTS=100\n# SMARTPERFETTO_USAGE_WINDOW_MS=86400000\n\n# ---------------------------------------------------\n# Agent Safety Limits (optional)\n# ---------------------------------------------------\n# AGENT_SQL_MAX_ROWS=1000\n# AGENT_SQL_TABLE_CACHE_TTL_MS=300000\n# AGENT_TASK_TIMEOUT_MS=180000\n\n# ---------------------------------------------------\n# Trace Processor (optional -- auto-detected if not set)\n# ---------------------------------------------------\n# TRACE_PROCESSOR_PATH=/path/to/trace_processor_shell\n# PERFETTO_PATH=/path/to/perfetto\n\n# ---------------------------------------------------\n# File Upload\n# ---------------------------------------------------\nMAX_FILE_SIZE=2147483648\nUPLOAD_DIR=./uploads\n"}}, ".env.example": {"c78e8934c86c612f6b7ce2f42f21c35c99de00ce": {"t": 1785747105.3157814, "n": 2791, "h": "c30cbf20c49646d8", "c": "# Server Configuration\nPORT=3000\nNODE_ENV=development\n\n# API Authentication (recommended in any shared environment)\n# SMARTPERFETTO_API_KEY=replace_with_a_strong_random_secret\n\n# AI Service Configuration\n# Default runtime is agentv3 (Claude Agent SDK) when AI_SERVICE is unset.\n# Set AI_SERVICE=deepseek only for the deprecated agentv2 fallback.\n# AI_SERVICE=claude-code\n\n# OpenAI Configuration\n# OPENAI_API_KEY=your_openai_api_key_here\n# OPENAI_MODEL=gpt-5.4\n\n# Claude Configuration\n# ANTHROPIC_API_KEY=your_claude_api_key_here\n# CLAUDE_MODEL=claude-sonnet-4-6\n\n# DeepSeek Configuration (legacy agentv2 fallback)\nDEEPSEEK_API_KEY=your_deepseek_api_key_here\nDEEPSEEK_BASE_URL=https://api.deepseek.com\n# OpenAI-compatible DeepSeek endpoint also supports: https://api.deepseek.com/v1\n# Note: /v1 here is API path compatibility only, not model version.\nDEEPSEEK_MODEL=deepseek-v4-flash\n# deepseek-v4-flash = efficient DeepSeek V4 path\n# deepseek-v4-pro = stronger DeepSeek V4 path\n# deepseek-chat / deepseek-reasoner are legacy compatibility aliases.\n# Optional dedicated reasoning model for fallback after provider/model failures\n# DEEPSEEK_REASONING_MODEL=deepseek-v4-pro\n# Router order (default): glm-5.1 -> deepseek-v4-pro -> deepseek-v4-flash\n# Optional override:\n# MODEL_DEFAULT=glm-5.1\n# MODEL_FALLBACK_CHAIN=deepseek-v4-pro,deepseek-v4-flash\n# Native OpenAI-compatible invocation defaults (enabled by default)\n# MODEL_NATIVE_OPTIONS_ENABLED=true\n# MODEL_NATIVE_TOOLS=[{\"type\":\"function\",\"function\":{\"name\":\"inspect_trace\",\"description\":\"Inspect trace signals\",\"parameters\":{\"type\":\"object\",\"properties\":{\"focus\":{\"type\":\"string\"}}}}}]\n# MODEL_NATIVE_TOOL_CHOICE=auto\n# MODEL_NATIVE_REASONING={\"effort\":\"medium\"}\n# Optional per-task reasoning override (JSON object)\n# MODEL_NATIVE_REASONING_BY_TASK={\"planning\":{\"effort\":\"high\"},\"evaluation\":{\"effort\":\"high\"},\"formatting\":{\"effort\":\"low\"}}\n\n# GLM (Zhipu AI) Configuration\n# GLM_API_KEY=your_glm_api_key_here\n# GLM_BASE_URL=https://open.bigmodel.cn/api/paas/v4\n# GLM_CODING_BASE_URL=https://open.bigmodel.cn/api/coding/paas/v4\n# GLM_MODEL=glm-5.1\n\n# Strict startup guard for trace-analysis AI credentials.\n# When true, backend startup fails fast if required env (e.g. DEEPSEEK_API_KEY) is missing.\nTRACE_ANALYSIS_STRICT_STARTUP=false\n\n# File Upload\nMAX_FILE_SIZE=2147483648 # 2GB\nUPLOAD_DIR=./uploads\n\n# Perfetto Configuration (optional - uses default paths if not set)\n# TRACE_PROCESSOR_PATH=/path/to/trace_processor_shell\n# PERFETTO_PATH=/path/to/perfetto\n\n# CORS\nFRONTEND_URL=http://localhost:10000\n\n# Agent feature flags\nFEATURE_AGENT_SCENE_RECONSTRUCT=true\nFEATURE_AGENT_LOGS_API=true\n\n# ADB full-mode guard (default false). Requires this flag AND per-request allowAgentFullMode=true.\nSMARTPERFETTO_ALLOW_AGENT_ADB_FULL_MODE=false\n"}}}}