( agentId: string | undefined | null, )
| 1528 | } |
| 1529 | |
| 1530 | export function getInvokedSkillsForAgent( |
| 1531 | agentId: string | undefined | null, |
| 1532 | ): Map<string, InvokedSkillInfo> { |
| 1533 | const normalizedId = agentId ?? null |
| 1534 | const filtered = new Map<string, InvokedSkillInfo>() |
| 1535 | for (const [key, skill] of STATE.invokedSkills) { |
| 1536 | if (skill.agentId === normalizedId) { |
| 1537 | filtered.set(key, skill) |
| 1538 | } |
| 1539 | } |
| 1540 | return filtered |
| 1541 | } |
| 1542 | |
| 1543 | export function clearInvokedSkills( |
| 1544 | preservedAgentIds?: ReadonlySet<string>, |
no test coverage detected