Files
oh-my-pi/packages/coding-agent/src/session/auth-storage.ts
T
can1357 e6ff1cb47b feat(coding-agent): added live saved-reset listing for all Codex accounts
- Added AuthStorage.listResetCredits to query each stored Codex account from the reset-credits endpoint and return live availability plus active or error state.
- Exposed the new status fetch through AgentSession and switched reset-usage selectors and commands to consume it via toResetUsageAccounts.
- Updated reset-usage UI and slash-command output to show per-account errors and updated empty-state messaging when resets could not be loaded.
2026-06-12 05:32:33 +02:00

34 lines
756 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,
CredentialOrigin,
CredentialOriginKind,
OAuthAccountIdentity,
OAuthCredential,
ResetCreditAccountStatus,
ResetCreditRedeemOutcome,
ResetCreditTarget,
SerializedAuthStorage,
SnapshotResponse,
StoredAuthCredential,
} from "@oh-my-pi/pi-ai";
export {
AuthBrokerClient,
AuthStorage,
DEFAULT_SNAPSHOT_CACHE_TTL_MS,
REMOTE_REFRESH_SENTINEL,
RemoteAuthCredentialStore,
readAuthBrokerSnapshotCache,
SqliteAuthCredentialStore,
writeAuthBrokerSnapshotCache,
} from "@oh-my-pi/pi-ai";