MCPcopy Create free account
hub / github.com/cursor/plugins / normalizeEnumValue

Function normalizeEnumValue

orchestrate/skills/orchestrate/scripts/core/handoff.ts:140–142  ·  view source on GitHub ↗
(raw: string)

Source from the content-addressed store, hash-verified

138}
139
140function normalizeEnumValue(raw: string): string {
141 return raw.toLowerCase().replace(/[\s_]+/g, "-");
142}
143
144function isFailureMode(value: string): value is FailureMode {
145 return (FAILURE_MODE_VALUES as readonly string[]).includes(value);

Callers 3

parseHandoffVerificationFunction · 0.85
parseHandoffFailureModeFunction · 0.85
mapLegacyVerdictFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected