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

Function getSimpleAgentId

cli/src/utils/agent-id-utils.ts:12–14  ·  view source on GitHub ↗
(qualifiedId: string)

Source from the content-addressed store, hash-verified

10 * - "publisher/my-agent@1.0.0" -> "my-agent"
11 */
12export function getSimpleAgentId(qualifiedId: string): string {
13 return qualifiedId.split('/').pop()?.split('@')[0] ?? qualifiedId
14}

Callers 5

collectDependenciesFunction · 0.90
computeDependentsFunction · 0.90
getAllPublishAgentIdsFunction · 0.90
countDependenciesFunction · 0.90
buildDepTreeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected