{
  "repo": "pingcap/ossinsight",
  "binary": "web",
  "binary_path": "apps/web/package.json",
  "dependencies": {
    "Runtime OSSInsightWeb.serve": {
      "infrastructure": {
        "openai_api": {
          "conditions": [
            "OPENAI_API_TOKEN or OPENAI_API_KEY configured for explorer features"
          ],
          "operations": [
            {
              "operation": "LLM plan generation",
              "trigger": "Explorer ask flow generates readonly SQL plans",
              "implementation": "apps/web/app/api/explorer/ask/route.ts"
            }
          ]
        },
        "upstash_redis": {
          "conditions": [
            "Explorer rate limiting enabled"
          ],
          "operations": [
            {
              "operation": "Sliding-window rate limit",
              "trigger": "Explorer ask requests are rate limited",
              "implementation": "apps/web/lib/rate-limit.ts"
            }
          ]
        },
        "tidb_serverless": {
          "conditions": [
            "Analytics, explorer, or MCP requests resolve to data-access helpers"
          ],
          "operations": [
            {
              "operation": "SQL execution and analytics reads",
              "trigger": "Analytics queries, explorer SQL execution, or MCP/internal API helpers run",
              "implementation": "apps/web/lib/data-service/routes.ts; apps/web/lib/explorer/query.ts; apps/web/lib/server/internal-api.ts"
            }
          ]
        }
      },
      "services": []
    }
  }
}
