feat(FN-1547): verify and lock Kimi usage endpoint configuration with regression tests

- Verify underscore endpoint (/v1/coding_plan/usage) as primary (Codexbar-validated)
- Add hyphen endpoint (/v1/coding-plan/usage) as legacy fallback
- Short-circuit 401/403 errors immediately without fallback attempts
- Fallback to alternate endpoint on 404, return sanitized url.not_found error on final 404
- Add regression tests for all error scenarios
This commit is contained in:
gsxdsm
2026-04-10 10:36:42 -07:00
parent 8295872158
commit c78ffaab5c

View File

@@ -0,0 +1,5 @@
---
"@gsxdsm/fusion": patch
---
Verify and lock Kimi usage endpoint configuration with regression tests. The underscore endpoint (`/v1/coding_plan/usage`) is primary (Codexbar-validated), with hyphen endpoint (`/v1/coding-plan/usage`) as legacy fallback. Error handling: 401/403 short-circuits immediately, 404 triggers fallback to alternate endpoint, final 404 `url.not_found` returns sanitized error message without leaking raw upstream JSON.