(recipe)
| 727 | }; |
| 728 | |
| 729 | const runRecipe = async (recipe) => { |
| 730 | if (!recipe || !recipe.prompt) return; |
| 731 | if (recipe.scopeMode === 'saved') { |
| 732 | setWorkspace({ |
| 733 | sourceId: recipe.sourceId || 'local', |
| 734 | rootPath: recipe.rootPath || 'root' |
| 735 | }); |
| 736 | } |
| 737 | await sendMessage({ |
| 738 | message: recipe.prompt, |
| 739 | recipeId: recipe.builtin ? '' : recipe.id |
| 740 | }); |
| 741 | }; |
| 742 | |
| 743 | const updateScopeSummary = () => { |
| 744 | const hintSource = normalizeSourceId(currentChatLocation().sourceId); |
no test coverage detected