Grok Bot has an allowance of its own, apart from Cursor's monthly usage, and it shows on cursor.com's dashboard only. auth.usage now also reads https://cursor.com/api/dashboard/get-sand-usage-status with the sign-in as the dashboard session (WorkosCursorSessionToken, as Cursor's dashboard and CodexBar's CursorSandUsage.swift send it), and adds a "Grok Bot" window: a paid grant with its weekly reset, a live trial as "Grok Bot (trial)" without one. The window is aside, so Bot running out never stops Cursor model requests, and it comes before Total so it is among the Usage card's three rings. No grant, an expired trial, a non-2xx, a redirect (not followed), a hang past 5 s or a reply that isn't JSON each leave Cursor's own windows as they were. Rebased onto main after cursor 0.2.4 (7516d63); package version is 0.2.5. Optional pins for the 5 s AbortSignal.timeout and the Origin header are not in this commit (Codex CLI unavailable for the edits); the runtime guards stay. Tests: usagePercent 130 is shown as 100 (and -5 as 0), and a 307 to a login page is refused rather than followed; each fails with its guard removed from botUsage. HOME=$(mktemp -d) bun test packages/cursor: 73 pass, 0 fail. HOME=$(mktemp -d) bun test (whole repo, on this commit atop main7516d63): 1033 pass, 0 fail. bun scripts/check.mjs: all 15 ok. Checked by hand once before an earlier squash: a Free Cursor account linked to SuperGrok showed the Bot ring in magpie. Not tried with a paid Cursor grant.
13 lines
534 B
JSON
13 lines
534 B
JSON
{
|
|
"name": "@magpie-community/opencode-cursor-auth",
|
|
"version": "0.2.5",
|
|
"description": "Cursor subscriptions (Pro, Pro+, Ultra, Teams) in OpenCode and magpie, through the API cursor-agent talks to",
|
|
"type": "module",
|
|
"main": "./index.mjs",
|
|
"exports": "./index.mjs",
|
|
"files": ["index.mjs", "README.md"],
|
|
"keywords": ["opencode", "opencode-plugin", "magpie", "cursor"],
|
|
"license": "MIT",
|
|
"repository": { "type": "git", "url": "git+https://github.com/magpie-community/plugins.git", "directory": "packages/cursor" }
|
|
}
|