Commit Graph

13 Commits

Author SHA1 Message Date
Dery Ferdika
f4ac2ed0e1 fix(http): use one sanitised rule for download disposition headers (#623)
Download responses built the header in five places. Studio's render download and the shared studio host stripped quotes and non-ASCII from the plain parameter, but the diagnostics, integration-guide, asset, brand-kit and project-archive downloads did not, and the two sanitised sites disagreed on the delimiter set: one escaped ! alongside '()* and the other did not.

Node rejects CRLF with ERR_INVALID_CHAR, so this was never response splitting, but a bare quote passed straight through into a header value. Add shared/http-header.ts with the reasoning and route every site through it, including the render download, which keeps its portable OpenMotion<extension> plain name through the helper's override.

The override is sanitised inside the helper, so passing a plain name explicitly cannot bypass the rule. RFC 5987 attr-char technically allows !, and the shared encoder escapes the whole delimiter set anyway: percent-encoding an allowed character stays valid, and one predictable rule is easier to trust than a per-site choice.

Two sites still built their own header when this change first landed: the scenario bundle download ran a second sanitizer over the plain name and the Design Studio project download interpolated the raw name with only quotes removed. Both now use attachmentDisposition, with the scenario caller defaulting its name first, so no download response keeps a private rule that can drift from the shared one.

Covered by a unit test for the sanitiser and encoder, including an explicit override and the attr-char rationale, and by the server suite. The scenario bundle, scenario run, design project and archive suites run in CI; locally they need FFmpeg, symlink privileges and the refreshed dependency tree this checkout does not carry.

Validation:
- node --experimental-strip-types --test tests/server.test.ts
- npm run check
- node --test tests/ci-scope.test.mjs
2026-11-23 11:18:48 +08:00
open-design-crew[bot]
af77bd9091 feat(studio): integrate React Router Data Router, KeepAliveOutlet, useBlocker guard, and SPA route fallback (#821)
* feat(studio): integrate React Router Data Router, KeepAliveOutlet, useBlocker guard, and SPA route fallback

* fix(studio): map SPA pathnames, await router navigation commits, localize blocker error, and schedule spa-routes CI

---------

Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-22 12:41:29 +08:00
open-design-crew[bot]
6d865cb28e [OPEND-5413] feat(templates): unify interactive motion guide previews (#615)
Unify each template’s existing guide preview, preserve its authored content, support declared drafts and native project continuation, and register privacy-preserving guide analytics.

Includes reviewed retry, source-bundle, handbook and build-path fixes. Latest main conflicts are resolved; all 15 checks pass.
2026-11-19 14:42:46 +08:00
Tom Huang
942457a98e Connect Explore, media scenes and studios in the creative workspace (#637)
* Connect Explore, media scenes and studios in the creative workspace

* Keep the related template preview open while retrying playback

* Exercise the project MCP entry in the review handoff browser test

* Ship the Studio soundtrack and complete navigation translations

* Localize Studio entry points and searchable destination names

---------

Co-authored-by: pftom <26423749+pftom@users.noreply.github.com>
2026-11-19 14:25:19 +08:00
huihui-crypto
161879c1dc fix(studio): ship Skill cover videos and GIFs with the app (#528)
* fix(studio): ship Skill cover videos and GIFs with the app

Every bundled Skill cover video was silently dropped from the npm
distribution: the studio/build walk only collected html/js/css/json/svg/
png/jpg/webp/fonts/txt, so 12 local cover mp4 files never shipped and their
cards fell back to the motif illustration. Collect gif and mp4 there and
assert both ship.

Also bundle the anime-js and lottie-web GIF covers (MIT, source credited)
instead of hot-linking raw.githubusercontent.com, which some networks cannot
reach, and let the editor server serve image/gif from editor-assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(studio): bundle the motionmaxxing cover and fall back to its poster

Folds in #527. The cover video and poster now ship with the app instead of
being hot-linked from raw GitHub, and a failed cover video falls back to its
poster before the motif illustration.

Each 16:9 before/after panel is scaled whole into its half of a 1280x720
frame, so the split cover shows both panels without cropping. The cover
inventory records motionmaxxing (Apache-2.0) and the two bundled GIFs (MIT),
and the GIF test asserts both covers resolve to local assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 15:00:58 +08:00
huihui-crypto
90ce736cd2 Add Skills page with localized Agent instructions (#449)
* Add Skills page for open-source motion techniques

Add a Skills entry to the application rail next to the template library.
The page lists 18 curated open-source motion projects with an illustrated
cover, category, upstream repository and license. Selecting a skill opens a
brief form (subject, duration, aspect ratio, style) that produces an Agent
instruction to copy into Codex, Claude Code or another MCP client; the
instruction drives the existing OpenMotion MCP tools to build an editable
Hyperframes project. Clipboard failures select the instruction for manual copy.

The page is routed as ?page=skills&skill=<id>, keeps the editor mounted like
the Assets page, and ships Chinese translations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Use the public phase-one MCP tools in Skills instructions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add video-shotcraft to the Skills catalog

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Group Skills by scenario and add Higgsfield and Black Friday skills

Reorganize categories around the video the user wants to make: Campaigns,
Product promos, Explainers, Brand & covers, People & AI media, and Motion
techniques for the open-source libraries. Add seven Higgsfield workflow skills
(product photoshoot, marketplace cards, faceless video, brand kit, YouTube
thumbnail, media generation, consistent character) and an OpenMotion Black
Friday sale skill. Skills that need generated media route through
openmotion_media_use instead of third-party CLIs. OpenMotion-authored skills
have no upstream repository and keep translated names; upstream names stay
verbatim.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Reset the Skills brief when the selected skill changes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Remove the Black Friday skill for now

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Restyle Skills like the template library

Reuse the template library header, category pills, masonry grid, intro block
and gallery cards. Cards can show an upstream demo poster and play its video
while hovered or focused, falling back to the illustration. Column count
follows the list width so the detail panel never crowds the cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Remove the Skills footer note

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Start Skills instructions with the template install guidance

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Use upstream demo videos and GIFs as Skills covers

Hotlink official demos from each project's README or docs: Motion and Manim
videos, and video-shotcraft, Ola, Anime.js and Lottie Web GIFs. Videos and
GIFs play only while the card is hovered or focused; other skills keep the
illustration until verified media is found.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show the concrete deliverable of each skill

Each skill states what the Agent will make (for example a narrated explainer
with no presenter). Cards and the detail panel show it, and the instruction
sends it as the deliverable. Remove source avatars from cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Use short task titles and official demo covers for Skills

Card titles name the task in plain words (for example Product promo, Faceless
explainer) with the upstream project as a subtitle. Add verified official demo
videos and stills for 14 more skills, including six Higgsfield skills from
Higgsfield's own marketing pages. Drop the bracketed suffix from the Motion
techniques category label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Update the Skills search test for task titles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add Connect Agent and pin Skills actions to the panel bottom

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Remove the hint under the Skills actions

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add motionmaxxing first and a copyable Agent command

Add the motionmaxxing anti-slop skill as the first card, with its official
before/after comparison video as the cover. Connect Agent now opens a popover
with a short command that any AI Agent can run, including the OpenMotion
install guide, instead of linking to settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show only the task title on Skills cards

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Update the Skills copy test for task titles

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Remove the media generation and consistent character skills

Both only wrap Higgsfield platform access (model calls and paid face training)
rather than a way to make a film, so they read as unclear in OpenMotion. Drop
the People & AI media category with them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Label the before/after cover and drop the misleading Ola cover

Show the motionmaxxing comparison video whole with Before/After labels. The
Ola dots GIF did not read as animated numbers, so the card falls back to its
illustration until a counter sample is produced.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Make Skills cards say when to use each skill

Cards keep the cover clean and list the task name, when to use it and what it
makes underneath, like a skills gallery. Add a when-to-use line for every
skill. Show four columns on wide lists. Move search into the category row and
drop the page title and count. Render the motionmaxxing before/after demo as a
split cover with captions on the footage, and rename it to Remove the AI look
from motion.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show one when-to-use line under each Skills card

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Label the before/after divider with the skill action

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Add sample and recorded demo covers for the remaining skills

Eleven skills without usable upstream video now have real covers: recorded
official live demos for Three.js, LUME and Proton, and OpenMotion-made samples
for the rest (animated numbers, loading easing, shapes to logo, step tour,
looping GIF sticker, whiteboard demo, character animation, diagram explainer).
Each file is under 1 MiB. The editor server now serves bundled mp4 assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Autoplay visible Skills covers and lead with the anti-slop skill

Covers play while at least half the card is on screen (hover-to-play under
reduced motion). Move the intro above the grid so the first card sits top-left,
retitle it, and move the looping GIF sticker to second.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Replace the 3D turntable cover with a product turntable sample

The Babylon.js physics sandbox clip did not show a product turntable. Use a
Babylon.js rendered turntable of the Khronos MaterialsVariantsShoe sample
(model © 2021 Shopify, CC BY 4.0) until a final cover is chosen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Play Skills covers in place and buffer them a screen ahead

The video element now owns its poster, so playback starts without an
image-to-video swap, and covers begin buffering before they scroll into view.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Use an orbiting Three.js recording and a richer character animation cover

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Keep both halves of the before/after cover in the detail panel

The large-media display rule overrode the split grid, collapsing both halves
to zero width so the detail cover rendered black.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Use the antique camera turntable as the 3D product cover

Model AntiqueCamera by UX3D, CC0, from KhronosGroup/glTF-Sample-Assets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Use the detailed antique camera close-up as the 3D product cover

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Localize the Skills page and Agent instructions in all supported languages

Translate the Skills UI strings and the Agent instruction and command templates
into the nine other Studio languages, matching the template library. Prompts
move to a locale-keyed JSON with English fallback. A test checks every locale
has every string with matching placeholders.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Refresh failed-copy text on brief changes and reset detail media per skill

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Ignore late copy failures for a brief that has since changed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fall back to the illustration when a still cover fails to load

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Show Skills cover provenance and credit bundled cover clips

Render cover.source in the skill detail next to the upstream link, credit
the Littlest Tokyo model (CC BY 4.0) in the three-js cover, and list every
bundled cover with its source and license in docs/readme/ASSETS.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: zhanghuihua <zhanghuihua@huihuideMacBook-Pro.local>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 20:54:24 +08:00
Tom Huang
61ee4787c8 Unify Home navigation, provider settings, and local Agent selection (#393)
* Unify Studio navigation, provider settings, and local Agent workflows

* Serve the public provider notice from the editor file handler

The provider icon set added by this branch publishes
packages/design-system/providers/NOTICE.md through publicDesignFiles, but
serveEditorFile rejected .md because its MIME table only knew application
assets. The distribution regression test requests every public design file
and got 404 for the notice, so the attribution file was unreachable in the
editor package.

Map .md like the existing application server does (text/plain, UTF-8) so
the published notice is served with its bytes intact.

Generated-By: looper 0.16.2 (runner=fixer, agent=pi)

* Include the provider icon manifest in the bundled adapter fixture

export-adapters.ts and the bundled runtime import
packages/design-system/index.js, which now also imports provider-icons.js to
publish the provider artwork. The adapter fixture copied every runtime file
the export reads except that new module, so the bundled launch failed with
ERR_MODULE_NOT_FOUND for provider-icons.js in the distribution regression
job.

Copy the icon manifest into the fixture alongside index.js, matching the
runtime distribution list that already ships it.

Generated-By: looper 0.16.2 (runner=fixer, agent=pi)

---------

Co-authored-by: pftom <pftom@pftomdeMacBook-Pro.local>
Co-authored-by: 罗高 <luogao@users.noreply.github.com>
2026-11-15 11:56:47 +08:00
Tom Huang
e4338631fd feat: centralize the design system and add a standalone source editor (#358)
Integrate the reviewed change after successful current-head CI and focused validation against the latest main.
2026-11-13 19:03:25 +08:00
open-design-crew[bot]
507f8dfb81 [OPEND-5244] perf: reduce shallow checkout with local WebP references (#355)
* perf: compress local reference images and gallery covers as WebP

* fix: reuse WebP covers without requiring an FFmpeg WebP encoder

* fix: update documentation gallery links to WebP covers

---------

Co-authored-by: lefarcen <935902669@qq.com>
2026-11-13 15:05:32 +08:00
open-design-crew[bot]
1b23a49562 fix: name exported video files after the project (#348)
Co-authored-by: stevenguotj <stevenguotj@stevenguotjdeMacBook-Pro.local>
2026-11-13 11:28:12 +08:00
stevenguotj
b6280a2668 fix: name render downloads after the project 2026-11-13 00:56:18 +08:00
lefarcen
420b7c78af fix: support LFS contributions and published brand icons 2026-11-12 23:48:55 +08:00
罗高
4250e10dbb feat(motion): replace legacy app with standalone OpenMotion 2026-11-06 12:31:58 +08:00