(args: string[])
| 136 | } |
| 137 | |
| 138 | async function handleImportSkill(args: string[]): Promise<SlashCommandResult> { |
| 139 | const query = args.join(" ").trim(); |
| 140 | |
| 141 | if (!query) { |
| 142 | return { |
| 143 | exit: false, |
| 144 | output: chalk.yellow( |
| 145 | "Please provide a skill URL or name. Usage: /import-skill <url-or-name>", |
| 146 | ), |
| 147 | }; |
| 148 | } |
| 149 | |
| 150 | return { |
| 151 | newInput: buildImportSkillPrompt(query), |
| 152 | }; |
| 153 | } |
| 154 | |
| 155 | function handleSessions() { |
| 156 | return { openSessionSelector: true }; |
no test coverage detected