Repository navigation
fix(check): report motion sidecars next to sub-compositions - #8508
Open
zhengqiuyang wants to merge 1 commit into
Open
zhengqiuyang wants to merge 1 commit into
zhengqiuyang wants to merge 1 commit into
Conversation
Preview approval requiredThis pull request comes from a fork, so Mintlify won't build a preview until someone with write access approves commit |
zhengqiuyang
force-pushed
the
fix/motion-sidecar-subcomposition
branch
from
November 22, 2026 16:21
f9ae08d to
0eefd29
Compare
zhengqiuyang
force-pushed
the
fix/motion-sidecar-subcomposition
branch
from
November 26, 2026 12:39
0eefd29 to
2d31764
Compare
This branch has not been deployed
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.
What
checknow notices a*.motion.jsonsidecar next to a sub-composition and reports it as an ignored warning instead of returning"motion": { "enabled": false, "specPath": null }.Why
The motion-sidecar docs said "next to the composition", but
findMotionSpeconly reads the project root, so a sidecar incompositions/disappeared without a word. The issue offers two acceptable outcomes: evaluate scene sidecars, or document that only the root sidecar is supported. This PR takes the second path and makes the limitation visible rather than silent.The JSON sidecar contract is root-timeline relative: selectors and
bySecare sampled against the entry composition's seeked timeline. Mapping them to a sub-composition needs a selector scope plus a start-time offset, which is a separate change. Until then, a warning plus accurate docs is better than a silent no-op.How
findNestedMotionSpecs(projectDir)walks below the project root (skippingnode_modules,distand dot-directories) and returns sidecars not in the root.runCheckPipelineadds amotion_spec_ignoredwarning for each one, pointing at the sidecar path and telling the author to move the assertions intoindex.motion.json.docs/packages/cli.mdx,skills/hyperframes-cli/references/lint-validate-inspect.md) now say only the entry composition's sidecar is evaluated.Refs #8464.
Test plan
bunx vitest run packages/cli/src/commands/check.test.ts packages/cli/src/utils/motionSpec.test.ts— 233 passedcompositions/scene-b.motion.jsonproducesmotion_spec_ignoredwithwarningCount >= 1oxlint/oxfmt --checkclean; skill mirror and pre-commit hooks pass