Repository navigation
Add get_motion_recipe (on-demand recipes + 13 looks) and validator self-review - #24
Merged
Merged
Conversation
…e, ui-mockup, scene-bg, 13 looks), TEXT_OVERLAP, UNKNOWN_EASE, review checklist, kf-text fit fix
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully 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
One new on-demand tool in the existing connector (no second connector or endpoint; the 4 publishing tools are untouched):
get_motion_recipe(name?), plus a self-review step invalidate_json.get_motion_recipe()returns an index (~240 tokens). With a name it returns a recipe built from a composition fragment that is the same JSON shown to the model:riso,choreography,audio,camera,code-texture,ui-mockup,scene-bg,looks(13 looks in one table) andlook:<id>×13 (ported from StudiolookSample, contract c75a0b3). Plain-text result, no outputSchema. Useful content arrives in tool results, not ininitialize.instructions, so it works with the connector alone on claude.ai Free.textTEXT_DOES_NOT_FIT false positive fixed (measures every value);TEXT_OVERLAP;UNKNOWN_EASE(kf ease, kf spring mode, animEase);TEXT_FIT_UNEVALUATEDfor expression text.checklistis added tovalidate_json/create_hcmotionresults only when the composition is valid / created (never next to errors).get_capabilitiesSTART has one line pointing toget_motion_recipe; SKILL.md has one added line (header unchanged).Tokens (tiktoken cl100k, an estimate; Claude's tokenizer counts a bit higher)
Validation
tests/recipes.test.js: every recipe fragment passesvalidateJson(0 errors, 0 warnings other than CONTRACT_NOT_CHECKED) and the text contains the tested JSON.npm test: 122 pass, 0 fail.checkCompositionclean on all;normalizeAudioon the audio recipe: 3 tracks and 4 sfx kept, 0 warnings.Not verified / risks
TEXT_OVERLAPdoes not measure flow/flex/CSS-class html pieces: it missed the overlaps in the A experiment.src/looks.jsis a copy of the Studio looks; it needs a refresh when they change.