MCP: Coverage (#195) #209
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!209
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-195-mcp-coverage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #195. Part of #157.
What changed
read_coveragereturns a Scene's cast and each member's Look, Wardrobe item and whether they speak. It also returns the Setups in order, each with its label, framing note, location angle, subjects and Shots. Each Shot has its label (12A, or12B·1,12B·2), its run of Lines, its length and its aspect ratio.angleChoiceslists the Tiles a Setup can take as its location angle.add_to_cast,remove_from_cast,set_cast_lookandset_cast_wardrobeeach returnread_coverage.add_setupreturns the new Setup.delete_setupandreorder_setupsreturnread_coverage.set_setup_framing_note,set_setup_location_angle,add_setup_subject,remove_setup_subjectandreorder_setup_subjectsreturn the Setup.add_shotreturns{ shotId, setup }.split_shotreturns{ shotIds, setup }.set_shot_lines,set_shot_length,set_shot_aspect_ratioanddelete_shotreturn the Setup, so the new labels show.read_shot_action_textreads the action text and summary.set_shot_action_textandset_shot_summarytake nodes; without nodes, each follows its default again.ActionNodeDtonow derivesJsonSchema.read_shot_promptreturns the composed text, the override,composerChanged,brokenTagsandqueueBlock.set_shot_prompt_override,reconcile_shot_prompt(hunks) andfinish_reconcile(rebase) complete the set.read_shot_slots,set_shot_slot_list(per medium) andreset_shot_slot_lists.SlotPlacementDtonow derivesJsonSchema.read_setup_atlases,set_setup_atlas_groups, andset_setup_atlas_size, which takes abudgetPixels,native, or neither to follow the Project's size.Review notes
read_shot_promptand the override tools returnqueueBlock, the exact error that queuing would give. The new plainApiImpl::shot_prompt_and_blockreads it from the core'squeueable_prompt. Please confirm this is how you read "an override with a broken slot tag returns the app's error".delete_setupanddelete_shotreturn the coverage or the Setup, not the undo state that the Entity deletes return. This lets a harness see the new labels straight away. The undo label is still available fromundo_state.Tests
src-tauri/tests/mcp_coverage.rshas 11 tests at the MCP boundary. Every edit goes throughh.edit, which asserts that a change event was emitted, and there are undo checks on cast, Setup, Shot and prompt edits. They cover:<Picture 9>override that returnsqueueBlock, and a reconcile that is run and finished.cargo test --workspacepasses.