MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getLoadedAgentsData

Function getLoadedAgentsData

cli/src/utils/local-agent-registry.ts:438–450  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

436}
437
438export const getLoadedAgentsData = (): {
439 agents: LocalAgentInfo[]
440 agentsDir: string
441} | null => {
442 const agents = loadLocalAgents()
443 const agentsDir = findAgentsDirectory()
444
445 if (!agentsDir || !agents.length) {
446 return null
447 }
448
449 return { agents, agentsDir }
450}
451
452// ============================================================================
453// Testing utilities

Callers 3

ValidationErrorPopoverFunction · 0.90
handlePublishFunction · 0.90

Calls 2

loadLocalAgentsFunction · 0.90
findAgentsDirectoryFunction · 0.85

Tested by

no test coverage detected