Buckets:

download
raw
2.57 kB
{
"role_mappings": [
{
"role": "Entity",
"status": "missing",
"symbol": "",
"file": "",
"lines": "",
"notes": "Callers of the FastAPI app in super_dev/web/api.py are external HTTP clients; no in-repo UI/SDK calling /api/* routes was found (searched JS/TS/HTML files; only tests hit the API)."
},
{
"role": "Enforcer",
"status": "present",
"symbol": "__call__",
"file": "super_dev/web/rate_limit.py",
"lines": "51",
"notes": "ASGI __call__ of RateLimitMiddleware, registered via app.add_middleware(RateLimitMiddleware) at super_dev/web/api.py:373; it derives the client IP via _client_ip (rate_limit.py:30) and returns 429 with Retry-After or forwards to self.app. The rate decision is inline here, so it is also the Limiter."
},
{
"role": "Limiter",
"status": "present",
"symbol": "__call__",
"file": "super_dev/web/rate_limit.py",
"lines": "51",
"notes": "Same method as the Enforcer (tie-break rule 2): __call__ prunes the per-IP deque to the window and blocks when len(dq) >= max_requests (rate_limit.py:68), else appends the timestamp (line 88). No smaller helper makes the decision; _cleanup (line 40) only prunes old entries."
},
{
"role": "HistoryProvider",
"status": "present",
"symbol": "_hits",
"file": "super_dev/web/rate_limit.py",
"lines": "26",
"notes": "In-memory dict of client_ip -> deque of request timestamps in RateLimitMiddleware, read and updated directly by the Limiter __call__ (rate_limit.py:62, 88); no retrieval method exists, so the field is cited. _cleanup (line 40) prunes it. Per-process, non-persistent."
},
{
"role": "PolicyProvider",
"status": "present",
"symbol": "__init__",
"file": "super_dev/web/rate_limit.py",
"lines": "19",
"notes": "RateLimitMiddleware.__init__ loads the policy from env vars SUPER_DEV_RATE_LIMIT (default 100) and SUPER_DEV_RATE_WINDOW (default 60s) into self.max_requests/self.window, which the Limiter __call__ uses at rate_limit.py:64 and 68. Single global policy for all IPs."
},
{
"role": "System",
"status": "present",
"symbol": "run_workflow",
"file": "super_dev/web/api.py",
"lines": "1968",
"notes": "Representative FastAPI route handler (POST /api/workflow/run) reached when the Enforcer __call__ forwards via await self.app(...) at rate_limit.py:89; the middleware covers every route of the app in super_dev/web/api.py."
}
]
}

Xet Storage Details

Size:
2.57 kB
·
Xet hash:
c928cc5beeba7eae293f7d505c515d8a9ba01ed1b4dcb0106dc96894f83b6fe4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.