MCPcopy Index your code
hub / github.com/codeaashu/claude-code / clearInvokedSkills

Function clearInvokedSkills

src/bootstrap/state.ts:1543–1555  ·  view source on GitHub ↗
(
  preservedAgentIds?: ReadonlySet<string>,
)

Source from the content-addressed store, hash-verified

1541}
1542
1543export function clearInvokedSkills(
1544 preservedAgentIds?: ReadonlySet<string>,
1545): void {
1546 if (!preservedAgentIds || preservedAgentIds.size === 0) {
1547 STATE.invokedSkills.clear()
1548 return
1549 }
1550 for (const [key, skill] of STATE.invokedSkills) {
1551 if (skill.agentId === null || !preservedAgentIds.has(skill.agentId)) {
1552 STATE.invokedSkills.delete(key)
1553 }
1554 }
1555}
1556
1557export function clearInvokedSkillsForAgent(agentId: string): void {
1558 for (const [key, skill] of STATE.invokedSkills) {

Callers 1

clearSessionCachesFunction · 0.85

Calls 3

deleteMethod · 0.65
clearMethod · 0.45
hasMethod · 0.45

Tested by

no test coverage detected