(command: SlashCommand)
| 153 | }; |
| 154 | |
| 155 | const handleEdit = (command: SlashCommand) => { |
| 156 | setEditingCommand(command); |
| 157 | setCommandForm({ |
| 158 | name: command.name, |
| 159 | namespace: command.namespace || "", |
| 160 | content: command.content, |
| 161 | description: command.description || "", |
| 162 | allowedTools: command.allowed_tools, |
| 163 | scope: command.scope as 'project' | 'user' |
| 164 | }); |
| 165 | setEditDialogOpen(true); |
| 166 | }; |
| 167 | |
| 168 | const handleSave = async () => { |
| 169 | try { |
no outgoing calls
no test coverage detected