(sessionID, name, args)
| 450 | } |
| 451 | |
| 452 | function commandKey(sessionID, name, args) { return `${sessionID || "no-session"}:${name || ""}:${normalizeArgsForKey(args)}` } |
| 453 | function markHandled(sessionID, name, args) { |
| 454 | handledCommands.set(commandKey(sessionID, name, args), now()) |
| 455 | for (const [key, time] of handledCommands.entries()) if (now() - time > 30_000) handledCommands.delete(key) |
| 456 | } |
| 457 | function wasHandled(sessionID, name, args) { |
| 458 | const time = handledCommands.get(commandKey(sessionID, name, args)) |
no test coverage detected