(ctx: ExecutionContext)
| 140 | } |
| 141 | |
| 142 | private requireWorkspaceId(ctx: ExecutionContext): string { |
| 143 | if (!ctx.workspaceId) { |
| 144 | throw new Error('workspaceId is required for memory operations') |
| 145 | } |
| 146 | return ctx.workspaceId |
| 147 | } |
| 148 | |
| 149 | private applyWindow(messages: Message[], limit: number): Message[] { |
| 150 | return messages.slice(-limit) |
no outgoing calls
no test coverage detected