* 创建 MsgStore
(sessionId: string, _agentType?: string, _workingDir?: string)
| 370 | * Session MsgStore 管理器 |
| 371 | * 管理多个会话的 MsgStore |
| 372 | */ |
| 373 | class SessionMsgStoreManager { |
| 374 | private stores = new Map<string, MsgStore>(); |
| 375 | |
| 376 | /** |
| 377 | * 创建 MsgStore |
| 378 | */ |
| 379 | create(sessionId: string, _agentType?: string, _workingDir?: string): MsgStore { |
| 380 | let store = this.stores.get(sessionId); |
| 381 | if (!store) { |
| 382 | store = new MsgStore(); |
no test coverage detected