feat: refactor HomePage to integrate agents store and update related components
feat: add runtime event handling for providers in ProvidersSection feat: update routing to include Channels and Agents pages feat: extend route types and navigation items for Channels and Agents feat: implement agents store for managing agent data and interactions fix: update chat store to utilize agents store for agent-related functionality chore: export agents store from index fix: enhance runtime types for better event handling fix: update Vite config to handle dev server URL correctly
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
import type { RawMessage } from '@runtime/shared/chat-model';
|
||||
|
||||
export type RuntimeRefreshTopic =
|
||||
| 'providers'
|
||||
| 'models'
|
||||
| 'agents'
|
||||
| 'channels'
|
||||
| 'channel-targets';
|
||||
|
||||
/// Gateway 向 Renderer 推送的事件类型
|
||||
export type GatewayEvent =
|
||||
| {
|
||||
@@ -28,6 +35,15 @@ export type GatewayEvent =
|
||||
| {
|
||||
type: 'gateway:status';
|
||||
status: 'connected' | 'disconnected' | 'reconnecting';
|
||||
}
|
||||
| {
|
||||
type: 'runtime:changed';
|
||||
topics: RuntimeRefreshTopic[];
|
||||
reason?: string;
|
||||
syncedAt: string;
|
||||
warnings?: string[];
|
||||
channelType?: string;
|
||||
accountId?: string;
|
||||
};
|
||||
|
||||
/// Gateway RPC 方法参数映射
|
||||
|
||||
Reference in New Issue
Block a user