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

Function sanitizeAgentTypeForPath

src/tools/AgentTool/agentMemory.ts:20–22  ·  view source on GitHub ↗

* Sanitize an agent type name for use as a directory name. * Replaces colons (invalid on Windows, used in plugin-namespaced agent * types like "my-plugin:my-agent") with dashes.

(agentType: string)

Source from the content-addressed store, hash-verified

18 * types like "my-plugin:my-agent") with dashes.
19 */
20function sanitizeAgentTypeForPath(agentType: string): string {
21 return agentType.replace(/:/g, '-')
22}
23
24/**
25 * Returns the local agent memory directory, which is project-specific and not checked into VCS.

Callers 1

getAgentMemoryDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected