mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 07:02:04 +00:00
Update web-ui CHANGELOG.md and README.md for v0.31.0
Breaking changes: - Agent class moved to @mariozechner/pi-agent-core - Transport abstraction removed (ProviderTransport, AppTransport) - AppMessage renamed to AgentMessage - UserMessageWithAttachments now has role: 'user-with-attachments' - CustomMessages interface replaced with CustomAgentMessages - agent.appendMessage() removed (use queueMessage()) - New agent event types from pi-agent-core Added: - defaultConvertToLlm, convertAttachments utilities - isUserMessageWithAttachments, isArtifactMessage type guards - createStreamFn for CORS proxy support - Default streamFn and getApiKey on AgentInterface - Proxy utilities exported README completely rewritten to reflect new architecture.
This commit is contained in:
parent
93f8d6e659
commit
3e11b3e68b
2 changed files with 294 additions and 183 deletions
|
|
@ -14,6 +14,10 @@
|
|||
|
||||
- **`CustomMessages` interface removed**: Use declaration merging on `CustomAgentMessages` from `@mariozechner/pi-agent-core` instead.
|
||||
|
||||
- **`agent.appendMessage()` removed**: Use `agent.queueMessage()` instead.
|
||||
|
||||
- **Agent event types changed**: `AgentInterface` now handles new event types from `@mariozechner/pi-agent-core`: `message_start`, `message_end`, `message_update`, `turn_start`, `turn_end`, `agent_start`, `agent_end`.
|
||||
|
||||
### Added
|
||||
|
||||
- **`defaultConvertToLlm`**: Default message transformer that handles `UserMessageWithAttachments` and `ArtifactMessage`. Apps can extend this for custom message types.
|
||||
|
|
@ -38,6 +42,7 @@
|
|||
- `AgentTransport` interface
|
||||
- `AgentRunConfig` type
|
||||
- `ProxyAssistantMessageEvent` type
|
||||
- `test-sessions.ts` example file
|
||||
|
||||
### Migration Guide
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue