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

Function freezeCommandHelp

src/core/bridge_coordinator.ts:20660–20668  ·  view source on GitHub ↗
(spec: CommandHelpSpec)

Source from the content-addressed store, hash-verified

20658}
20659
20660function freezeCommandHelp(spec: CommandHelpSpec): CommandHelpSpec {
20661 return Object.freeze({
20662 ...spec,
20663 aliases: Object.freeze([...(spec.aliases ?? [])]),
20664 usage: Object.freeze([...(spec.usage ?? [])]),
20665 examples: Object.freeze([...(spec.examples ?? [])]),
20666 notes: Object.freeze([...(spec.notes ?? [])]),
20667 });
20668}
20669
20670function normalizeHelpFlag(value) {
20671 return String(value ?? '')

Callers 1

getCommandHelpSpecsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected