Merged
Conversation
Add ProofStatus interface, runProof/getProofStatus methods, and imageCaptioning field on PageDetail to support the proof phase (image captioning) frontend integration.
Extend StepName union with "image-captioning" for the proof phase.
Add label to STEP_LABELS ("Caption Images") but intentionally NOT
to STEP_ORDER — proof uses its own single-step display.
New use-proof.ts with three hooks mirroring the pipeline pattern: - useProofSSE: real-time SSE subscription with polling fallback - useRunProof: mutation to trigger proof run - useProofStatus: query for proof status polling
Displays proof phase progress with a single StepIndicator for image-captioning, run/retry/re-run button, and status messages.
Add proof hooks, SSE auto-reconnect, and ProofProgress card to the book detail route. Proof section shown after storyboard is accepted.
Add ImageCaptionList component showing caption text, image thumbnail, and collapsible reasoning for each captioned image.
Include the new step in the STEPS array and STEP_LABELS so proof LLM calls appear in the debug panel.
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
Changes
ProofStatus,runProof,getProofStatus,imageCaptioningonPageDetail)StepNameunion with"image-captioning", add label (not added toSTEP_ORDER— proof-only)use-proof.ts—useProofSSE,useRunProof,useProofStatushooksProofProgresscard component with single step indicatorImageCaptionListcomponent in page detail with thumbnails and collapsible reasoningTest plan
pnpm test— all existing tests pass