(input: string)
| 14 | * 如果执行了某项扩展则返回 true |
| 15 | */ |
| 16 | export async function execExtensionTaskQueue(input: string) { |
| 17 | const queue = [ |
| 18 | checkExit, // 检查退出 |
| 19 | toggleModel, // 切换模型 |
| 20 | ] |
| 21 | |
| 22 | for (const task of queue) { |
| 23 | if (await task(input)) return true |
| 24 | } |
| 25 | |
| 26 | return false |
| 27 | } |
| 28 | |
| 29 | /** |
| 30 | * 检查退出状态 |