Skip to content

feat: wire AI-generated pipelines into YAML preview and wizard context#40

Merged
williams21v merged 2 commits intomainfrom
paython-mcp
Dec 16, 2025
Merged

feat: wire AI-generated pipelines into YAML preview and wizard context#40
williams21v merged 2 commits intomainfrom
paython-mcp

Conversation

@PVeazie951
Copy link
Copy Markdown
Contributor

This PR connects the AI YAML wizard to the pipeline store so wizard-generated workflows appear immediately in the YAML preview. It also introduces lightweight wizard context state (via Zustand) to improve repo-aware messaging and reduce confusing or generic responses.

What changed

Frontend
• Added a dedicated useWizardStore to persist AI wizard context (repo, pipeline info, last tool called)
• Wired wizard-generated YAML into usePipelineStore via hydrateFromWizard
• Ensured YAML preview and manual edit mode reflect AI-generated pipelines
• Improved wizard responses to be context-aware (e.g. referencing the active repo)
• Preserved clean separation between chat UI, wizard context, and pipeline state

Backend
• Updated MCP tools (repo_reader, pipeline_generator, oidc_adapter) to support improved data flow and context handling for the wizard
• Ensured pipeline generator returns usable YAML for frontend hydration

Current behavior
• AI-generated pipelines now immediately appear in the GitHub Actions YAML preview
• Users can edit the generated YAML manually or proceed toward opening a PR
• Wizard messaging reflects the selected repo instead of falling back to generic prompts

Known limitations / follow-ups
• Open PR with YAML is currently blocked when the backend PR tool is not implemented
• Future work will:
• Add explicit repo precedence when users mention a repo in chat
• Wire the PR creation MCP tool
• Enhance wizard guidance based on existing pipeline state

Copy link
Copy Markdown
Contributor

@williams21v williams21v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@williams21v williams21v merged commit a93cd3b into main Dec 16, 2025
11 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants