MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / normalizeSkillSlug

Function normalizeSkillSlug

packages/cli/src/telemetry/skill.ts:18–22  ·  view source on GitHub ↗
(raw: unknown)

Source from the content-addressed store, hash-verified

16 * simply omitted rather than carrying garbage).
17 */
18export function normalizeSkillSlug(raw: unknown): string | undefined {
19 if (typeof raw !== "string") return undefined;
20 const slug = raw.trim();
21 return SKILL_SLUG.test(slug) ? slug : undefined;
22}

Callers 2

skill.test.tsFile · 0.85
runFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected