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

Function normalizeAgentCommandSkillAction

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

Source from the content-addressed store, hash-verified

13429}
13430
13431function normalizeAgentCommandSkillAction(value: unknown): AgentCommandSkillResult['action'] | null {
13432 const normalized = compactWhitespace(value).toLowerCase();
13433 return AGENT_COMMAND_SKILL_ACTIONS.has(normalized as AgentCommandSkillResult['action'])
13434 ? normalized as AgentCommandSkillResult['action']
13435 : null;
13436}
13437
13438function isAllowedAgentCommandSkillActionForSubcommand(
13439 subcommand: 'add' | 'edit' | 'natural',

Callers 1

Calls 2

hasMethod · 0.80
compactWhitespaceFunction · 0.70

Tested by

no test coverage detected