Implements B2 from docs/Extra.md Part 1 (Macro / recipe). - Domain: Recipe (named, ordered list of catalog command ids). - Application: IRecipeStore port + pure RecipeFlow.ShouldStop (stop on failure / cancel / reboot-required). - Infrastructure: JsonRecipeStore -> %AppData%\CommandForge\recipes.json (source-gen, schema version, corrupt-file fallback). No telemetry; recipes reference only vetted catalog ids. - WPF: ExecutionViewModel.RunRecipeAsync runs steps sequentially through the same broker session (one UAC for an all-admin chain), streaming a per-step header and stopping per RecipeFlow. New Recipes shell section (sidebar + View menu) with RecipesViewModel/RecipesView: build/reorder/remove steps from the catalog, save/delete recipes, and Run with a single aggregated confirmation (warns on dangerous steps). Each finished step is recorded in the execution history. - EN/VI .resx keys; tests for RecipeFlow and the recipe store. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
27 lines
683 B
C#
27 lines
683 B
C#
namespace CommandForge.Wpf.ViewModels;
|
|
|
|
/// <summary>The active section of the main shell content area.</summary>
|
|
public enum ShellSection
|
|
{
|
|
/// <summary>The Home dashboard (recent commands, favorites, system status).</summary>
|
|
Home,
|
|
|
|
/// <summary>The command catalog (browse/search/run).</summary>
|
|
Catalog,
|
|
|
|
/// <summary>The execution-history screen (past runs, re-run).</summary>
|
|
History,
|
|
|
|
/// <summary>The recipes screen (build/run command chains).</summary>
|
|
Recipes,
|
|
|
|
/// <summary>The Settings screen.</summary>
|
|
Settings,
|
|
|
|
/// <summary>The Log Viewer.</summary>
|
|
LogViewer,
|
|
|
|
/// <summary>The Debug panel.</summary>
|
|
Debug,
|
|
}
|