MCPcopy
hub / github.com/EveryInc/compound-engineering-plugin / normalizeCodexName

Function normalizeCodexName

src/utils/codex-content.ts:107–118  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

105}
106
107export function normalizeCodexName(value: string): string {
108 const trimmed = value.trim()
109 if (!trimmed) return "item"
110 const normalized = trimmed
111 .toLowerCase()
112 .replace(/[\\/]+/g, "-")
113 .replace(/[:\s]+/g, "-")
114 .replace(/[^a-z0-9_-]+/g, "-")
115 .replace(/-+/g, "-")
116 .replace(/^-+|-+$/g, "")
117 return normalized || "item"
118}

Callers 7

getLegacyCodexArtifactsFunction · 0.90
convertClaudeToCodexFunction · 0.90
convertCommandSkillFunction · 0.90
buildAgentTargetsFunction · 0.90
buildCodexAgentNameFunction · 0.90
transformContentForCodexFunction · 0.85
resolveAgentTargetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected