The open-source full-stack studio for Opus 5.5 motion video. Reverse engineering for any video. Code video with HTML: recreate, edit and render. BYOA + BYOK · Motion.md · Images, Video, Music & Voice.
TypeScript agent-skillsagentic-aiai-agentsai-videobyokclaude-codecodexdeepseek-harnessdsh-plugingenerative-ailocal-firstmcpmotionmotion-graphicsmultimodalopenmotionreverse-engineeringvideo-editingvideo-generationworkbuddy
Scan standalone Library sources in bounded batches
bone3deep1962-collabc7b11fcffd6e
diff --git a/.github/scripts/motion-scan.mjs b/.github/scripts/motion-scan.mjsindex 5026f58a..3b717f5f 100644--- a/.github/scripts/motion-scan.mjs+++ b/.github/scripts/motion-scan.mjs@@ -111,12 +111,14 @@ export async function scanSource(source, binary) {const names = (await runFile('git', ['ls-files', '-z'], { cwd: source })).split('\0').filter(Boolean);const work = await mkdtemp(path.join(os.tmpdir(), 'motion-source-scan-'));try {- // Scan the public gallery separately so neither batch exceeds the archive scan budget.+ // Scan the gallery and standalone Library packages separately under the same per-batch budget.+ // Every tracked path is still copied and checked; archive expansion limits are unchanged.const batches = new Set();for (const name of names) {assert(!name.split('/').includes('..') && !path.isAbsolute(name), 'Unsafe tracked path');const file = path.join(source, name); assert((await lstat(file)).isFile(), 'Tracked links are forbidden');- const batch = name.startsWith('docs/readme/') ? 'gallery' : 'source';+ const skill = /^library\/skills\/([^/]+)\//.exec(name)?.[1];+ const batch = name.startsWith('docs/readme/') ? 'gallery' : skill ? 'skill-' + skill : 'source';batches.add(batch);const destination = path.join(work, batch, name);await mkdir(path.dirname(destination), { recursive: true }); await cp(file, destination);diff --git a/tests/release-scan.test.mjs b/tests/release-scan.test.mjsindex 2246c8b3..acb2e306 100644--- a/tests/release-scan.test.mjs+++ b/tests/release-scan.test.mjs@@ -36,6 +36,22 @@ test('tracked source is scanned without ignore-file bypasses; secret errors expoawait assert.rejects(scanSource(source, binary), /Tracked links/);});+test('standalone Library packages are scanned in separate bounded batches without omitting aliases', async t => {+ const { work, binary } = await scanner(t), log = path.join(work, 'batches.jsonl');+ await writeFile(binary, `#!/usr/bin/env node\nimport{appendFileSync,writeFileSync}from'node:fs';const args=process.argv.slice(2);appendFileSync(${JSON.stringify(log)},JSON.stringify(args[1])+'\\n');writeFileSync(args[args.indexOf('--report-path')+1],'[]');\n`);+ const source = path.join(work, 'source'); await mkdir(source);+ await runFile('git', ['init', '-q', source]);+ const files = ['README.md', 'docs/readme/cover.txt', 'library/skills/motion-design-remix/NOTICE.md', 'library/skills/openmotion-design-remix/NOTICE.md'];+ for (const file of files) { await mkdir(path.dirname(path.join(source, file)), { recursive: true }); await writeFile(path.join(source, file), 'public fixture'); }+ await runFile('git', ['add', '.'], { cwd: source });+ const report = await scanSource(source, binary);+ assert.equal(report.files, files.length);+ assert.equal(report.bytes, files.length * Buffer.byteLength('public fixture'));+ assert.equal(new Set((await readFile(log, 'utf8')).trim().split('\n')).size, 4);+ await writeFile(path.join(source, files[3]), 'https://' + 'private.' + 'feishu.cn/document');+ await assert.rejects(scanSource(source, binary), error => error.message.includes(files[3]) && error.message.includes('internal-link'));+});+test('the scanner opens the nested application, rejects hidden private content and rejects linked archive entries', async t => {const f = await candidateFixture(t), { binary } = await scanner(t);assert.equal((await scanPackage(path.join(f.directory, f.candidate.tgz), binary)).status, 'passed');