Skip to content

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.

test(release): rehearse the stable gate with real npm manifests

罗高5ace58c654c8
diff --git a/docs/product/changes.md b/docs/product/changes.md
index 49ca1ae8..5edb024d 100644
--- a/docs/product/changes.md
+++ b/docs/product/changes.md
@@ -3,7 +3,7 @@
## 2026-11-12: Match stable installation reports to the candidate manifest
- Stable promotion and archive recovery compare native MCP Tool and Skill counts with the verified candidate manifest. Packages with compatibility Skill aliases no longer fail the obsolete five-Skill assertion, while mismatched reports still block promotion.
-- Regression coverage includes ten-Skill promotion and archiving, older five-Skill candidates, and missing or extra Tools/Skills on either platform. Registry and storage writes are mocked; publication remains a separate authorized operation.
+- Regression coverage includes ten-Skill promotion and archiving, older five-Skill candidates, and missing or extra Tools/Skills on either platform. The existing stable npm packaging test also passes its real generated manifest through the promotion report gate, catching contract drift during both PR checks and candidate builds. Native reports and external writes are simulated; publication remains a separate authorized operation.
## 2026-11-12: Save SVG styles and initialize the initial project on open
diff --git a/tests/npm-package.test.ts b/tests/npm-package.test.ts
index 67b16891..b6388f82 100644
--- a/tests/npm-package.test.ts
+++ b/tests/npm-package.test.ts
@@ -9,6 +9,7 @@ import { extractArchive, runFile, sha256 } from '../scripts/runtime-assets.mjs';
import { protocolClient } from '../scripts/smoke-test-package.mjs';
import { packagedSkills } from '../shared/workflow.ts';
import { mcpRegistry } from '../mcp.ts';
+import { stableReports } from '../.github/scripts/motion-release.mjs';
const json = async (file: string) => JSON.parse(await readFile(file, 'utf8'));
async function verifyTrackingPolicy(application: string, mode: 'test' | 'stable') {
@@ -185,7 +186,15 @@ test('stable artifacts stage publication instead of replacing latest and retain
const built = await packageNpm(path.join(directory, 'build'), '0.6.4');
await extractArchive(built.installer, path.join(directory, 'npm'));
const metadata = await json(path.join(directory, 'npm/package/package.json'));
- assert.equal((await json(built.manifest)).templateEnvironment, 'prod');
+ const release = await json(built.manifest);
+ assert.equal(release.templateEnvironment, 'prod');
+ const identity = { version: release.version, sourceCommit: release.commit, tgzSHA256: release.installer.sha256 };
+ for (const platform of ['darwin-arm64', 'win32-x64']) await writeFile(path.join(path.dirname(built.manifest), `registry-${platform}.json`), JSON.stringify({
+ ...identity, platform, status: 'passed', templateEnvironment: release.templateEnvironment,
+ registryColdInstall: 'passed', nativePreparation: 'passed', repeatSetup: 'passed', resources: 'passed',
+ mcpTools: release.mcp.tools.length, skills: release.skills.length,
+ }));
+ assert.equal((await stableReports(path.dirname(built.manifest), identity)).length, 2);
const application = path.join(directory, 'app'); await extractArchive(built.application, application);
const diagnosticFile = path.join(directory, 'stable-diagnostics.zip');
await runFile(process.execPath, [path.join(application, 'scripts/diagnostics.mjs'), '--data-dir', path.join(directory, 'missing-data'), '--output', diagnosticFile]);