feat(op-png): add clotho_adapter — OM scene_plan → Clotho flow.yaml#22
Open
jonata97 wants to merge 3 commits intocalesthio:mainfrom
Open
feat(op-png): add clotho_adapter — OM scene_plan → Clotho flow.yaml#22jonata97 wants to merge 3 commits intocalesthio:mainfrom
jonata97 wants to merge 3 commits intocalesthio:mainfrom
Conversation
- lib/clotho_adapter.py: pure-Python adapter converting OM scene_plan dicts into Clotho-valid flow.yaml. No Clotho package import. Handles generated/broll (still→i2v), local passthrough (video.trim), skip types (text_card, animation, diagram, transition). Applies model selection rules (kling-3.0-pro for wide+multichar, kling-2.5-turbo-pro for human/refs, None for non-human scenes). Uses image_size for Flux (B1 gotcha), string duration enum (B4), omits references/model keys when empty (v1.2 contract). - lib/shot_prompt_builder.py: add build_motion_prompt() alongside build_shot_prompt() — builds the movement/action prompt for video.image_to_video nodes. - tests/lib/test_clotho_adapter.py: 25 unit tests, all passing. Covers model selection, references, duration clamping, aspect ratio, skip types, cost estimation, output write, and error paths. Fixes: video.trim params use 'from'/'to' (not 'start'/'end') per Clotho registry KindSpec, as identified during analysis. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.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
lib/clotho_adapter.py: converts OpenMontagescene_planJSON/YAML to Clothoflow.yamlDAGbuild_motion_prompttolib/shot_prompt_builder.py(spec-preferred approach over duplicating_MOVEMENT_PHRASES)tests/lib/test_clotho_adapter.pycovering all 12 spec-required cases + 13 edge casesValidation
pipeline/reviews/op-png-review.md)Bead
op-png— merged and validated by openmontage/integrator🤖 Generated with Claude Code