feat(api): add stepsDone, stepsTotal, durationMinutes to story API responses#11
Merged
johnazariah merged 2 commits intomainfrom Feb 21, 2026
Conversation
… detection Add next_step, start_step, step_context operations to aura_workflow MCP tool for driving stories interactively from Copilot CLI. Add branch-ahead detection to CreateStoryFromIssueAsync that warns when a worktree branch already has commits ahead of the default branch (pre-existing work from another session). - McpHandler.Workflow.cs: 3 new operations + BuildStepContext helper - McpHandler.cs: inject IGitService, update tool schema enum - patterns/interactive-story.md: operational pattern for interactive flow - .github/prompts/aura.work-on-story.prompt.md: bootstrap prompt - .github/copilot-instructions.md: document interactive story workflow - Tests updated with IGitService mock parameter Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…sponses Add computed fields to all three story endpoints (list, get, get-by-path): - stepsDone: count of completed steps - stepsTotal: total step count - durationMinutes: elapsed time from createdAt to completedAt (or now) Also align list endpoint with get endpoint fields (automationMode, issueProvider, issueOwner, issueRepo). Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.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
Add computed fields to all three story endpoints (list, get, get-by-path):
Also aligns the list endpoint response with the get endpoint by adding previously missing fields (automationMode, issueProvider, issueOwner, issueRepo).
Changes
src/Aura.Api/Endpoints/DeveloperEndpoints.cs- 3 endpoints updatedTesting
Generated via interactive /work-on-story pattern