huashu-motion 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cli/lib/check.js
CHANGED
|
@@ -116,7 +116,7 @@ export function checkSource(project) {
|
|
|
116
116
|
// A film about a product is made of the product: its logo as a file, its real interface, its pictures. A composition
|
|
117
117
|
// that loads no image, video or logo file at all drew everything itself (the grey-box UI of one-line films, 2026-10).
|
|
118
118
|
const media = [...html.matchAll(/(?:src|poster|href)\s*=\s*["'`]([^"'`]+\.(?:png|jpe?g|webp|gif|svg|avif|mp4|mov|webm))|url\(\s*["']?([^"')]+\.(?:png|jpe?g|webp|gif|svg|avif))|["'`]((?:\.\/)?(?:assets|materials|media|img|images)\/[^"'`]+\.(?:png|jpe?g|webp|gif|svg|avif|mp4|mov|webm))/gi)]
|
|
119
|
-
.map((m) => m[1] || m[2] || m[3]).filter((u) => u && !/^data:|vendor
|
|
119
|
+
.map((m) => m[1] || m[2] || m[3]).filter((u) => u && !/^data:|vendor\/|^om-/.test(u));
|
|
120
120
|
for (const m of html.matchAll(/placehold\.co|placeholder\.com|via\.placeholder|dummyimage\.com|picsum\.photos|placekitten|fakeimg\.pl|\blorem ipsum\b/gi)) add('warning', 'placeholder', `"${m[0]}" is a placeholder — use real content: the product's own images and text, a real one found online, or an openly licensed image (source in materials.md)`, m.index);
|
|
121
121
|
if (!media.length) add('warning', 'no-real-material', 'the film loads no image, video or logo file — if it is about a product, it is drawing the product instead of showing it. Collect the real material first (om grab <url|folder>) and build from it: the logo file, real screenshots or recordings, a rebuild only traced over a capture (SKILL.md step 1)');
|
|
122
122
|
else if (media.every((u) => /icon|logo|favicon|wordmark|avatar/i.test(u))) add('warning', 'only-logo', `the only files the film loads are icons or logos (${[...new Set(media)].slice(0, 3).join(', ')}) — the interface and pictures are drawn, not shown. Use real screenshots or recordings of the product (om grab), or rebuild only over a capture`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "huashu-motion",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Make motion graphics with your own coding agent — point at the frame to change it. Open, local, with sound.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": { "om": "cli/om.js", "huashu-motion": "cli/om.js" },
|