(id: string, updates: Partial<Session>)
| 144 | } |
| 145 | |
| 146 | update(id: string, updates: Partial<Session>): void { |
| 147 | const session = this.sessions.get(id); |
| 148 | if (!session) { |
| 149 | throw new Error(`Session ${id} not found`); |
| 150 | } |
| 151 | |
| 152 | Object.assign(session, updates, { updatedAt: Date.now() }); |
| 153 | this.persist(); |
| 154 | } |
| 155 | |
| 156 | addMessage(id: string, message: Message): void { |
| 157 | const session = this.sessions.get(id); |
no test coverage detected