MCPcopy Create free account
hub / github.com/error311/FileRise / runRecipe

Function runRecipe

public/js/aiChat.js:729–741  ·  view source on GitHub ↗
(recipe)

Source from the content-addressed store, hash-verified

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);

Callers 1

addRecipeButtonFunction · 0.85

Calls 2

setWorkspaceFunction · 0.85
sendMessageFunction · 0.70

Tested by

no test coverage detected