MCPcopy Create free account
hub / github.com/freecodexyz/free-code / getInvokedSkillsForAgent

Function getInvokedSkillsForAgent

src/bootstrap/state.ts:1530–1541  ·  view source on GitHub ↗
(
  agentId: string | undefined | null,
)

Source from the content-addressed store, hash-verified

1528}
1529
1530export 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
1543export function clearInvokedSkills(
1544 preservedAgentIds?: ReadonlySet<string>,

Callers 2

findProjectSkillFunction · 0.85

Calls 1

setMethod · 0.80

Tested by

no test coverage detected