Repository navigation
fix(flow): bind verified scene signals and emit clip assets - #46
Conversation
- Add verified su and B6 scene builder descriptors and probe checks - Derive scene aspectRatio and Dc collection ID in createScene - Select clips via su.Gc signals after Dx readiness without video click - Emit <sceneId>:<wfId> video clip assets and watch extend updates - Validate VIDEO workflows and confirm add_clips via store refetch
byteland-app
left a comment
There was a problem hiding this comment.
ts/read_store_snapshot.ts uses ${sceneId}:${wfId} for each clip. If the same workflow appears twice, the later occurrence overwrites the first. A local fixture with two occurrences and different trim points returned only one. The exported ID also fails as an asset_ids input for a scene-only clip. Use a stable identity for each occurrence and resolve that identity consistently in the scene consumers. Verify both repeated clips and a scene-only clip passed back to a tool.
|
Changes requested.
The clip ID rule conflicts with the multi-clip export in #44. This PR also overlaps with #28, #38, #43 and #51. Decide the order and rebase. |
- Parse <sceneId>:<wfId> IDs in rename, trim, trash, and edit paths - Keep scene names off clip items so scene queries match scene tiles - Add TL, rE, and Od to SceneBuilderFormat and check them in probeStore - Match exact identifier boundaries in hasDeferredSceneRoute - Surface submit errors from mutateAndVerify in sceneOp add_clips - Ignore unrelated stand-alone video updates in collect_extended_videos - Document scene clip IDs and open-scene prepare_extend behavior
|
Addressed in
Clip ID rule (
|
|
Closing this pull request. It conflicts with |
|
Opened #61 on current
|
Summary
This pull request binds verified Google Flow scene builder signals, derives scene orientation and collection placement from clip metadata, emits distinct
<sceneId>:<wfId>scene clip assets with full consumer support, and confirms scene clip mutations throughPROJECT_TILESrefetches.Scene Clip ID Rule and Behavior Notes
<sceneId>:<wfId>):id(<id>), and scenes keepid: <sceneId>(kind: "scene",name: st.displayName).sceneTile.Uc) appear inflow_assetsaskind: "video"items with ID<sceneId>:<wfId>. Clip items do not copy the parent scene'sdisplayName, andmatch_assetprefers top-level tiles for non-colon name and ID-substring queries so scene names and partial<sceneId>queries always resolve to theSCENEtile (compatible with multi-clip scene export in feat: export multi-clip scenes and frame custom voice audio #44).ts/asset_ops.ts(rename),ts/video_ops.ts(trimviaset_scene_clip_primary_mediaandprepare_extend),ts/asset_trash.ts(trashAssetOpviascene_delete_clip_mutation),ts/open_edit_asset.ts(/scene/<sceneId>navigation),ts/scene_ops.ts, andsrc/assets.rs(match_asset) all accept<sceneId>:<wfId>.prepare_extendopen-scene behavior change:scene_idnames an existing scene),prepare_extendcheckssu.Uc()in that scene and returnsscene_clip_not_found:<wfId>if the target clip is absent, instead of reusing the open scene for an unrelated stand-alone video. Whenflow_video"extend"runs withoutscene_idfor a stand-alone video, it returns to the project root first and creates a new scene for that clip.main(34de8f5, clean) to establish the<sceneId>:<wfId>clip ID contract and verified scene signals, then rebase fix(flow): bound scene clip addition wait and confirm on timeout #28 (scene clip addition timeout), feat: export multi-clip scenes and frame custom voice audio #44 (split PRs for multi-clip scene export / audio framing), fix(flow): parse rpc error envelopes and workflow history #38 / fix(flow): bind edit composers and exclude non-composer panels across builds #43 (history/edit), and fix(flow): cascade read-only stores and add UI fallbacks #51 (store cascade) ontomain.Changes
probeStore()(ts/scene_tiles.ts,ts/frontend_builds.ts,ts/frontend_compatibility.ts,ts/angular.ts):sceneBuilderdescriptors (controller: "su",timeline: "B6",player: "Gc",playerReady: "Dx",selectedClip: "la",clips: "Uc",extendDisabledReason: "Yo",activeExtendClip: "TL",exitExtend: "rE",modelsQuery: "Od"),sceneCreated: "y6a", and scene clip mutation fields (clipTrimStart: "Ji",clipTrimEnd: "Ci",clipIndex: "ik") onNOVEMBER_20_STORE.su,B6,Gc,Uc,Yo,TL,rE, andOdinprobeStore()both on_.suwhen<flow-scene-builder>is unmounted and on the live controller when mounted, and match exact identifier boundaries inhasDeferredSceneRoute.aspectRatioincreateScene(0.5625for9:16clips from verifiedKb.aspectRatioorBcdimensions,16 / 9for16:9clips or empty scenes) and pass clip0's verifiedDccollection ID viaFc.su.Gcclip selection (ts/video_ops.ts,ts/scene_tiles.ts):<sceneId>:<wfId>asset IDs viasplitSceneClipId, resolve the livesucontroller on<flow-scene-builder>withresolveLView, wait untilsu.Gc.Dx()returnstrue, never click<video>, usesbFormatdescriptors forTL,rE, andOd(returningscene_builder_signals_missingif any required function is absent), select viasu.Gc.la.set(selectedWfId), confirm.clip.selected, surfacesu.Yo()disabled reasons, and openAdd clipthenExtend.<sceneId>:<wfId>clip assets, consumers, and extend polling (ts/read_store_snapshot.ts,ts/asset_ops.ts,ts/asset_trash.ts,ts/video_ops.ts,ts/open_edit_asset.ts,src/assets.rs,src/scenes.rs):VIDEOentries whensceneTile.Ucdiverges, skipCg-only history entries, emit<sceneId>:<wfId>per activeUcclip without inheritingst.displayName, support<sceneId>:<wfId>across rename/trim/trash/edit/match consumers, and restrictcollect_extended_videostowatched_idsand<opened_scene_id>:*scene clips so unrelated stand-alone video updates are never accepted.ts/scene_ops.ts,ts/project_store.ts,src/scenes.rs,docs/*/tools-reference.md):scene_idnames a non-trashedSCENEtile and allasset_idsincreateandadd_clipsresolve to non-trashedVIDEOworkflow IDs, forwardsubmitProjectMutationerrors throughmutateAndVerify(onSubmitError) soadd_clipsreports submit failures instead of onlyadd_clips_not_confirmed, and document<sceneId>:<wfId>andprepare_extendbehavior inen,zh-CN, andjatool references.Verification
cargo xtask ci(cargo fmt --check,cargo xtask check,tsc,clippy -D warnings,cargo doc --document-private-items -D warnings,cargo build, andcargo deny)._.su(Gc,Uc,Yo,TL,Od,rE) andB6(Yo) against Google Flowboq_labs-ai-sandbox-frontend_20261120.00_p0.hasDeferredSceneRoute.sum/.subrejection,probeStore()checks forTL/rE/Od,<sceneId>:<wfId>acrossreadStoreSnapshot/assetOps/videoOp(trim&prepare_extend)/trashAssetOp/openEditAsset/match_asset,mutateAndVerifysubmit error propagation, andcollect_extended_videosfiltering of unrelated stand-alone videos.Automated PR initiated by user @byteland-app via Stitch Loop.