Bohdan Triapitsyn
a8f0f99c3d
fix(quota): normalize OpenCode Go reset timestamps
...
Go returns ISO reset dates, but the shared usage contract requires numeric timestamps. Convert dates to milliseconds before building usage windows.
Verified all three windows against the live Go API. Added numeric timestamp and partial-window regressions; 14 focused tests, web type-check, lint, and syntax checks pass.
2026-09-09 23:23:22 +03:00
Bohdan Triapitsyn
85bf0a99de
fix: identify OpenCode Go requests by session
2026-09-03 11:49:35 +03:00
Bohdan Triapitsyn
5917325d49
feat: switch OpenCode Go usage to API
...
OpenCode Go now reads quota usage with a bearer API key from OpenCode auth.json
Removes the old workspace ID and browser cookie credential flow
Deletes legacy OpenCode Go credential files during upgrade
2026-08-12 01:49:22 +03:00
Bohdan Triapitsyn
b09614fd68
refactor(quota): secure managed provider credentials ( #2160 )
...
- add shared owner-only credential storage for OpenCode Go, Ollama Cloud, and Cursor
- validate credentials before atomic writes using 0700 directories and 0600 files
- replace provider-specific credential routes with an allowlisted lifecycle API
- stop automatically reading Ollama's legacy cookie file
- stop reading or modifying Cursor's database during regular quota requests
- add explicit one-time Cursor credential import without mutating Cursor storage
- persist refreshed Cursor credentials only in OpenChamber-managed storage
- add Ollama Cloud and Cursor credential controls to provider settings
- preserve OpenCode Go tracking through the shared credential flow
- add VS Code credential management and Cursor quota parity
- reject authentication redirects, enforce request timeouts, and fail on unparseable usage pages
- mask stored secrets in API responses and extend quota security coverage
- update quota provider documentation
2026-07-12 16:21:38 +03:00
Bohdan Triapitsyn
3d90eddcaf
feat(quota): add OpenCode Go usage tracking ( #2155 )
...
* feat(quota): add OpenCode Go usage tracking
* fix(quota): align OpenCode Go VS Code parsing
2026-07-12 14:48:50 +03:00