mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
feat: add global toast system with installation event notifications
- Add SSE event types for installation updates - Implement global toast system using Sonner - Add restart functionality directly in toast actions - Update .gitignore to exclude temp directory
This commit is contained in:
1 parent
ae929a7c96
commit
37b00e27ea
5 files changed
+148
No files matched your search
@@ -102,6 +102,20 @@ export interface SSEPermissionRepliedEvent {
|
||||
}
|
||||
}
|
||||
|
||||
export interface SSEInstallationUpdatedEvent {
|
||||
type: 'installation.updated'
|
||||
properties: {
|
||||
version: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface SSEInstallationUpdateAvailableEvent {
|
||||
type: 'installation.update-available'
|
||||
properties: {
|
||||
version: string
|
||||
}
|
||||
}
|
||||
|
||||
export type SSEEvent =
|
||||
| SSEMessagePartUpdatedEvent
|
||||
| SSEMessageUpdatedEvent
|
||||
@@ -113,6 +127,8 @@ export type SSEEvent =
|
||||
| SSETodoUpdatedEvent
|
||||
| SSEPermissionUpdatedEvent
|
||||
| SSEPermissionRepliedEvent
|
||||
| SSEInstallationUpdatedEvent
|
||||
| SSEInstallationUpdateAvailableEvent
|
||||
|
||||
export type ContentPart =
|
||||
| { type: 'text', content: string }
|
||||
|
||||
Reference in new issue
Block a user