Add configurable OAuth storage backend and respect --models in model selector
- Add setOAuthStorage() and resetOAuthStorage() to pi-ai for custom storage backends - Configure coding-agent to use its own configurable OAuth path via getOAuthPath() - Model selector (/model command) now only shows models from --models scope when set - Rewrite OAuth documentation in pi-ai README with examples Fixes #255
This commit is contained in:
@@ -64,11 +64,8 @@ src/
|
||||
│ ├── slash-commands.ts # loadSlashCommands() from ~/.pi/agent/commands/
|
||||
│ ├── system-prompt.ts # buildSystemPrompt(), loadProjectContextFiles()
|
||||
│ │
|
||||
│ ├── oauth/ # OAuth authentication
|
||||
│ │ ├── index.ts # OAuth exports
|
||||
│ │ ├── anthropic.ts # Anthropic OAuth (Claude Pro/Max)
|
||||
│ │ ├── github-copilot.ts # GitHub Copilot OAuth
|
||||
│ │ └── storage.ts # Token persistence
|
||||
│ ├── oauth/ # OAuth authentication (thin wrapper)
|
||||
│ │ └── index.ts # Re-exports from @mariozechner/pi-ai with convenience wrappers
|
||||
│ │
|
||||
│ ├── hooks/ # Hook system for extending behavior
|
||||
│ │ ├── index.ts # Hook exports
|
||||
|
||||
Reference in New Issue
Block a user