Skip to main content

Module fetch

Module fetch 

Source
Expand description

Fetch Cursor’s included-usage summary from GET /api/usage-summary, authenticated with the session token read out of the local state.vscdb (see db.rs). Cache/stale/error-fallback shape mirrors kimi::fetch.

Structs§

Endpoints
FetchOutcome

Constants§

BASE_URL

Functions§

fetch_snapshot
Cache-aware fetch. db_path is Cursor’s state.vscdb — the caller resolves [cursor] db_path (config override) vs db::default_db_path, the same override pattern as openai.codex_auth_path.