feat: recipe architecture redesign — UserInput + prepTemplate + runTemplate#87
Merged
aaronbrezel merged 13 commits intodevelopfrom Apr 15, 2026
Merged
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…trategy Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…on and PrepRecipeParams shapes Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…runTemplate Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Consistent naming across all layers: the discriminated union is now FillStrategy (it describes how a column gets filled at prep time) and the field on PrepColSpec is fillStrategy. No behaviour change. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Each PrepColSpec now carries an optional role (file-prompt, text-prompt, system-prompt, output). RecipePanel builds the column-referencing parts of RunConfig via buildRunTemplate() instead of reading a manually-written runTemplate. Non-column AI settings move to RecipeDefinition.settings. RecipeDefinition.runTemplate removed — column titles now exist in exactly one place. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ColumnRole had no payload on any variant — the object wrapper was unnecessary ceremony. Now a plain string union. RecipeSettings is now Pick<RunConfig, ...> so it tracks RunConfig automatically instead of duplicating field declarations. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
PrepColSpec (shared RPC type) no longer carries role — the server never reads it. RecipeColumn extends PrepColSpec client-side and adds role, keeping ColumnRole out of the RPC boundary. UserInput renamed to RecipeInput to make its scope explicit — it's a recipe-specific concept, not a generic form primitive. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ColumnDefmodel with three focused structures:UserInput[](journalist-facing form),prepTemplate: PrepColSpec[](spreadsheet prep), andrunTemplate: Partial<RunConfig>(AI run config)RecipePanelnow renders onlyinputs[]— no column section cards, no lockable fields per column — and collectsinputValuesby id before callingprepRecipeinterpolateTemplate()utility toutils.tsfor{{inputId}}placeholder substitution in the newtemplateColStrategy variant; serverprepRecipe()resolveslist-drive-folderviainputIdand handles the newtemplatestrategyUserInput.idmust be camelCase/underscore (no hyphens) — documented in JSDoc;runTemplateis a plainPartial<RunConfig>so recipe authors work with types already familiar from the rest of the systemTest Plan
npm run test:coverage)npm run typecheck)npm run build)Design doc
docs/plans/2026-04-14-recipe-architecture-redesign.md🤖 Generated with Claude Code