Files
opencode-manager/backend/src
Chris ScottandChris Scott c267bce42e fix minimax use (#44)
* Fix provider API key storage to match OpenCode schema

Backend was writing credentials with type 'apiKey' and field 'apiKey',
but OpenCode expects type 'api' and field 'key'. This caused UI-set
credentials to be silently ignored while environment variables worked.

- Update AuthEntrySchema to use 'api' type and 'key' field
- Update AuthService.set() to write new format
- Add migration to convert existing entries on read

Fixes #40

* Add auth service tests to validate schema fix and migration

Tests verify:
- Migration from old 'apiKey' format to 'api' format
- New credentials are written in correct format
- getAll, set, delete, list, and has methods work correctly

---------

Co-authored-by: Chris Scott <chris@cstech.dev>
2025-12-31 19:33:35 -05:00
..
2025-12-31 19:33:35 -05:00