MCPcopy Create free account
hub / github.com/Noumena-Network/code / addInvokedSkill

Function addInvokedSkill

src/bootstrap/state.ts:1526–1540  ·  view source on GitHub ↗
(
  skillName: string,
  skillPath: string,
  content: string,
  agentId: string | null = null,
)

Source from the content-addressed store, hash-verified

1524}
1525
1526export function addInvokedSkill(
1527 skillName: string,
1528 skillPath: string,
1529 content: string,
1530 agentId: string | null = null,
1531): void {
1532 const key = `${agentId ?? ''}:${skillName}`
1533 STATE.invokedSkills.set(key, {
1534 skillName,
1535 skillPath,
1536 content,
1537 invokedAt: Date.now(),
1538 agentId,
1539 })
1540}
1541
1542export function getInvokedSkills(): Map<string, InvokedSkillInfo> {
1543 return STATE.invokedSkills

Callers 2

Calls 1

setMethod · 0.80

Tested by

no test coverage detected