You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
anime.js adapter and skill document v3 API while loading the v4 CDN bundle #3293
The anime.js adapter and its skill document v3 API while loading the v4 CDN bundle, so any agent or user following the docs writes code that fails at runtime.
Where
packages/core/src/runtime/adapters/animejs.ts — the docblock states "Supports anime.js v4+ (the .seek(timeMs) API)", then the usage example right below it uses v3:
skills/animejs/SKILL.md has the same problem in both examples — the basic pattern uses anime({ targets: ..., easing: "easeOutExpo" }) and the timeline pattern uses anime.timeline({ ... }).
In anime.js v4 the global callable anime() and anime.timeline() were removed in favour of anime.animate(target, params) and anime.createTimeline(params); targets is now the first argument rather than a property, and easing was renamed to ease.
Evidence that v4 is the intended target
The integration test under packages/producer/tests/animejs-adapter/src/index.html already uses the correct v4 API:
So the test and the docs disagree, and the test is the one that runs.
Impact
Agents are explicitly told to read the skill before authoring, so the broken snippets are the most likely thing to get copied. The failure is silent at author time and only shows up as a dead composition at render.
Suggested fix
Align the docblock in adapters/animejs.ts and both examples in skills/animejs/SKILL.md with the v4 API already exercised by the adapter test — or, if v3 is still meant to be supported, pin the CDN example to animejs@3 so the snippet at least matches the bundle it loads.
Activity