feat: add pipeline switch command for Pi and MCP (#64)#70
Merged
Conversation
switchPipeline in core/workspace.ts rewrites status.yaml with the new pipeline's phase order in-place, preserving completed phases that exist in both old and new pipelines, post_pipeline entries, and all findings/ handoffs/usage/closeouts on disk. No data loss. Pi: /codecarto-switch-pipeline <variant> MCP: codecarto_switch_pipeline tool README updated to replace the broken hand-edit advice with the new command.
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.
What changed
switchPipeline()function incore/workspace.tsthat rewritesstatus.yamlwith a new pipeline's phase order in-place, preserving:post_pipelineentries/codecarto-switch-pipeline <variant>Pi commandcodecarto_switch_pipelineMCP toolWhy
The README told users to hand-edit
status.yamlto switch pipelines, but GUIDE.md marks that file as framework-owned. The only alternative was/codecarto-initwhich (before v0.12.4) deleted everything. Now users can switch pipelines non-destructively.Validation
npm run build— cleannpm test— 264/264 passnpx tsc --noEmit— no errorsCloses #64