MCPcopy Create free account
hub / github.com/Gan-Xing/CodexBridge / normalizeThreadCommandSkillAction

Function normalizeThreadCommandSkillAction

src/core/bridge_coordinator.ts:12924–12929  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

12922}
12923
12924function normalizeThreadCommandSkillAction(value: unknown): ThreadCommandSkillResult['action'] | null {
12925 const normalized = compactWhitespace(value).toLowerCase();
12926 return THREAD_COMMAND_SKILL_ACTIONS.has(normalized as ThreadCommandSkillResult['action'])
12927 ? normalized as ThreadCommandSkillResult['action']
12928 : null;
12929}
12930
12931function parseReviewTargetFromSkill(value: unknown): ProviderReviewTarget | null {
12932 const parsed = value && typeof value === 'object' && !Array.isArray(value)

Callers 1

Calls 2

hasMethod · 0.80
compactWhitespaceFunction · 0.70

Tested by

no test coverage detected