( agentId: string | undefined | null, )
| 1544 | } |
| 1545 | |
| 1546 | export function getInvokedSkillsForAgent( |
| 1547 | agentId: string | undefined | null, |
| 1548 | ): Map<string, InvokedSkillInfo> { |
| 1549 | const normalizedId = agentId ?? null |
| 1550 | const filtered = new Map<string, InvokedSkillInfo>() |
| 1551 | for (const [key, skill] of STATE.invokedSkills) { |
| 1552 | if (skill.agentId === normalizedId) { |
| 1553 | filtered.set(key, skill) |
| 1554 | } |
| 1555 | } |
| 1556 | return filtered |
| 1557 | } |
| 1558 | |
| 1559 | export function clearInvokedSkills( |
| 1560 | preservedAgentIds?: ReadonlySet<string>, |
no test coverage detected