Files
oh-my-pi/packages/coding-agent/src/session/auth-storage.ts
T
can1357 c3f5a60c22 feat(auth): added auth-broker for remote credential vault
- Added `AuthBrokerClient`, `RemoteAuthCredentialStore`, `AuthBrokerRefresher`, and `startAuthBroker` server in `packages/ai/src/auth-broker`.
- Renamed `AuthCredentialStore` class to `SqliteAuthCredentialStore`; extracted `AuthCredentialStore` as a persistence interface.
- Added `exportSnapshot`, `forceRefreshCredentialById`, `disableCredentialById`, and `upsertCredential` to `AuthStorage` for broker wire protocol.
- Added `omp auth-broker` CLI subcommand (serve, token, login, logout, import, status) and `discoverAuthStorage` broker-mode path keyed on `OMP_AUTH_BROKER_URL`.
2026-05-16 20:44:07 +02:00

24 lines
505 B
TypeScript

/**
* Re-exports from @oh-my-pi/pi-ai.
* All credential storage types and the AuthStorage class now live in the ai package.
*/
export type {
ApiKeyCredential,
AuthCredential,
AuthCredentialEntry,
AuthCredentialStore,
AuthStorageData,
AuthStorageOptions,
OAuthCredential,
SerializedAuthStorage,
StoredAuthCredential,
} from "@oh-my-pi/pi-ai";
export {
AuthBrokerClient,
AuthStorage,
REMOTE_REFRESH_SENTINEL,
RemoteAuthCredentialStore,
SqliteAuthCredentialStore,
} from "@oh-my-pi/pi-ai";