- Remove unused imports for system prompt-related functions
- Comment out unused variables related to system prompt building
- Fix type safety issue with OAuth email field
- All changes are part of migration to pi-agent-core 0.50.4 which
removed system prompt customization from CreateAgentSessionOptions
- Upgrade all pi packages from 0.49.3 to 0.50.4
- Replace discoverAuthStorage() with new AuthStorage()
- Replace discoverModels() with new ModelRegistry()
- Remove deprecated CreateAgentSessionOptions properties:
- systemPrompt (removed from API)
- skills (removed from API)
- contextFiles (removed from API)
- additionalExtensionPaths (removed from API)
- Fix type issues with OAuth credentials email field
- Update test mocks to work with new ModelRegistry class
- Add null check for runner.task() in telegram monitor
Resolves#4165
When the primary model supports vision natively (e.g., Claude Opus 4.5),
skip the image understanding call entirely. The image will be injected
directly into the model context instead, saving an API call and avoiding
redundant descriptions.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Move dynamic import of @mariozechner/pi-coding-agent into the try/catch so transient module resolution errors don't poison the model catalog cache with a rejected promise.
This previously caused Discord/Telegram handlers and heartbeat to fail until process restart if the import failed once.