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

Function normalizeHelpTarget

src/core/bridge_coordinator.ts:17544–17550  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

17542}
17543
17544function normalizeHelpTarget(value) {
17545 const normalized = normalizeCommandName(String(value ?? '').replace(/^\//u, ''));
17546 if (!normalized) {
17547 return '';
17548 }
17549 return isHelpFlag(normalized) ? 'helps' : normalized;
17550}
17551
17552function resolveCommandHelpSpec(name, i18n: Translator) {
17553 const normalized = normalizeHelpTarget(name);

Callers 2

handleHelpsCommandMethod · 0.85
resolveCommandHelpSpecFunction · 0.85

Calls 2

normalizeCommandNameFunction · 0.85
isHelpFlagFunction · 0.85

Tested by

no test coverage detected