Commit Graph

2 Commits

Author SHA1 Message Date
Nehr d71434287a fix(grok): honest benchmark cost rates + fail-closed auth
Pin Grok unit rates to official xAI pricing (docs.x.ai), parse headless
JSON usage when present (zero tokens when omitted — never invent), and
reject empty/invalid auth.json or whitespace-only API keys in available().
2026-07-13 02:13:48 +07:00
Nehr 14eb95c32d test(grok-build): dual-write parity + packaging behavior coverage
Add free tests for remaining code-review debt: runtimeRoot vs setup parity,
generateSpecSpawn fail-closed allowlist, GrokAdapter auth/HOME/prompt-file,
compat-audit fixture exit codes, and preflight-no-wipe setup smoke. Prefer
HOME for auth discovery so hermetic tests work under Bun; pipe stderr so
token-shaped CLI errors never inherit onto the parent console.
2026-07-13 02:04:30 +07:00