(value: unknown)
| 13429 | } |
| 13430 | |
| 13431 | function 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 | |
| 13438 | function isAllowedAgentCommandSkillActionForSubcommand( |
| 13439 | subcommand: 'add' | 'edit' | 'natural', |
no test coverage detected