diff --git a/packages/coding-agent/CHANGELOG.md b/packages/coding-agent/CHANGELOG.md index 1ba912da..c82c6353 100644 --- a/packages/coding-agent/CHANGELOG.md +++ b/packages/coding-agent/CHANGELOG.md @@ -4,6 +4,8 @@ ### Added +- **OAuth and model config exports**: Scripts using `AgentSession` directly can now import `getAvailableModels`, `getApiKeyForModel`, `findModel`, `login`, `logout`, and `getOAuthProviders` from `@mariozechner/pi-coding-agent` to reuse OAuth token storage and model resolution. ([#245](https://github.com/badlogic/pi-mono/issues/245)) + - **xhigh thinking level for gpt-5.2 models**: The thinking level selector and shift+tab cycling now show xhigh option for gpt-5.2 and gpt-5.2-codex models (in addition to gpt-5.1-codex-max). ([#236](https://github.com/badlogic/pi-mono/pull/236) by [@theBucky](https://github.com/theBucky)) ### Fixed diff --git a/packages/coding-agent/src/index.ts b/packages/coding-agent/src/index.ts index aa5a4bbb..c1c8f59e 100644 --- a/packages/coding-agent/src/index.ts +++ b/packages/coding-agent/src/index.ts @@ -73,6 +73,16 @@ export { isWriteToolResult, } from "./core/hooks/index.js"; export { messageTransformer } from "./core/messages.js"; +// Model configuration and OAuth +export { findModel, getApiKeyForModel, getAvailableModels } from "./core/model-config.js"; +export { + getOAuthProviders, + login, + logout, + type OAuthAuthInfo, + type OAuthPrompt, + type SupportedOAuthProvider, +} from "./core/oauth/index.js"; export { type CompactionEntry, createSummaryMessage,