mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-16 08:02:17 +00:00
Export OAuth and model config functions for AgentSession scripts
Exports getAvailableModels, getApiKeyForModel, findModel, login, logout, and getOAuthProviders from @mariozechner/pi-coding-agent so scripts using AgentSession directly can reuse OAuth token storage and model resolution. Fixes #245
This commit is contained in:
parent
b8dd9be3d0
commit
de1f1cc344
2 changed files with 12 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue