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

Function resolveCommandHelpSpec

src/core/bridge_coordinator.ts:17552–17560  ·  view source on GitHub ↗
(name, i18n: Translator)

Source from the content-addressed store, hash-verified

17550}
17551
17552function resolveCommandHelpSpec(name, i18n: Translator) {
17553 const normalized = normalizeHelpTarget(name);
17554 if (!normalized) {
17555 return null;
17556 }
17557 const specs = getCommandHelpSpecs(i18n);
17558 const canonical = buildCommandCanonicalNameMap(specs, HIDDEN_COMMAND_ALIASES).get(normalized) ?? null;
17559 return canonical ? specs[canonical] ?? null : null;
17560}
17561
17562function renderCommandCatalog(i18n: Translator, {
17563 showGoal = true,

Callers 1

handleHelpsCommandMethod · 0.85

Calls 4

normalizeHelpTargetFunction · 0.85
getCommandHelpSpecsFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected