@anvpx/motion-cli 0.1.18 → 0.1.20
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/dist/plugin/install.d.ts
CHANGED
|
@@ -6,14 +6,14 @@ import type { Command } from "../types.ts";
|
|
|
6
6
|
* version", which also pins `.claude-plugin/plugin.json`). `0.0.0` is the
|
|
7
7
|
* pre-publish placeholder: an isolated `npm install` of the packed tarball
|
|
8
8
|
* rewrites internal `workspace:*` to `0.0.0`, which is private/unpublished,
|
|
9
|
-
* so `npx -y @anvpx/motion@0.1.
|
|
9
|
+
* so `npx -y @anvpx/motion@0.1.20` 404s in isolation (qualify-pack exits 2
|
|
10
10
|
* BLOCKED with `unpublishedInternals`). Do NOT unpin or float the range to
|
|
11
11
|
* work around it. Publish path is choiceA (publish internal @anvpx/motion-*
|
|
12
12
|
* at real versions) or choiceB (bundle into one tarball); either lands with
|
|
13
13
|
* a version bump of core manifest + this pin + plugin.json together.
|
|
14
14
|
*/
|
|
15
|
-
export declare const PINNED_CORE_VERSION = "0.1.
|
|
16
|
-
export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.
|
|
15
|
+
export declare const PINNED_CORE_VERSION = "0.1.20";
|
|
16
|
+
export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.20";
|
|
17
17
|
/** Skill file whose sha256 must survive `plugin install` byte for byte. */
|
|
18
18
|
export declare const PLUGIN_SKILL: string;
|
|
19
19
|
export interface PluginEnv {
|
package/dist/plugin/install.js
CHANGED
|
@@ -11,13 +11,13 @@ import { EXIT } from "../exit-codes.js";
|
|
|
11
11
|
* version", which also pins `.claude-plugin/plugin.json`). `0.0.0` is the
|
|
12
12
|
* pre-publish placeholder: an isolated `npm install` of the packed tarball
|
|
13
13
|
* rewrites internal `workspace:*` to `0.0.0`, which is private/unpublished,
|
|
14
|
-
* so `npx -y @anvpx/motion@0.1.
|
|
14
|
+
* so `npx -y @anvpx/motion@0.1.20` 404s in isolation (qualify-pack exits 2
|
|
15
15
|
* BLOCKED with `unpublishedInternals`). Do NOT unpin or float the range to
|
|
16
16
|
* work around it. Publish path is choiceA (publish internal @anvpx/motion-*
|
|
17
17
|
* at real versions) or choiceB (bundle into one tarball); either lands with
|
|
18
18
|
* a version bump of core manifest + this pin + plugin.json together.
|
|
19
19
|
*/
|
|
20
|
-
export const PINNED_CORE_VERSION = "0.1.
|
|
20
|
+
export const PINNED_CORE_VERSION = "0.1.20";
|
|
21
21
|
export const PINNED_NPX = `npx -y @anvpx/motion@${PINNED_CORE_VERSION}`;
|
|
22
22
|
/** Skill file whose sha256 must survive `plugin install` byte for byte. */
|
|
23
23
|
export const PLUGIN_SKILL = join("skills", "motion-kit", "SKILL.md");
|
|
@@ -28,4 +28,6 @@ export declare function exportArtifact(io: Io, outDir: string, format: Exclude<D
|
|
|
28
28
|
export declare const deliveryFailureProblems: (delivery: {
|
|
29
29
|
problems: readonly string[];
|
|
30
30
|
}) => string[];
|
|
31
|
+
/** A browser page error in the render log, or undefined when the page was clean. */
|
|
32
|
+
export declare function pageErrorIn(io: Io, outDir: string): Promise<string | undefined>;
|
|
31
33
|
export declare const renderCommand: Command;
|
package/dist/workflow/render.js
CHANGED
|
@@ -6,7 +6,7 @@ import { buildApprovalInputManifest, hashApprovalInput, } from "../approval/hash
|
|
|
6
6
|
import { textFlag, usageError } from "../args.js";
|
|
7
7
|
import { EXIT } from "../exit-codes.js";
|
|
8
8
|
import { readJsonFile } from "../storyboard/load.js";
|
|
9
|
-
import { runInProject } from "../tooling/session.js";
|
|
9
|
+
import { LOG_FILE, runInProject } from "../tooling/session.js";
|
|
10
10
|
import { finalExpectation } from "../verify/expectation.js";
|
|
11
11
|
import { finishRender } from "./finish.js";
|
|
12
12
|
import { parseBuildArgs, prepareProject } from "./project.js";
|
|
@@ -611,6 +611,20 @@ async function discardAttempt(io, outDir) {
|
|
|
611
611
|
await io.host.remove(join(outDir, name)).catch(() => undefined);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
+
/** A browser page error in the render log, or undefined when the page was clean. */
|
|
615
|
+
export async function pageErrorIn(io, outDir) {
|
|
616
|
+
let log;
|
|
617
|
+
try {
|
|
618
|
+
log = await io.host.readText(join(outDir, LOG_FILE));
|
|
619
|
+
}
|
|
620
|
+
catch {
|
|
621
|
+
return undefined;
|
|
622
|
+
}
|
|
623
|
+
const match = /\[Browser:PAGEERROR\]([^\n]*)/.exec(log);
|
|
624
|
+
if (match === null)
|
|
625
|
+
return undefined;
|
|
626
|
+
return match[1]?.trim() ?? "a page error";
|
|
627
|
+
}
|
|
614
628
|
/**
|
|
615
629
|
* ADR-0008 D3: publishes this attempt's temp over final.mp4 only after the last
|
|
616
630
|
* gate passed. It covers both shapes: a mixed temp, and the direct video of a
|
|
@@ -678,6 +692,16 @@ export const renderCommand = {
|
|
|
678
692
|
const run = await runRender(io, prepared.outDir, plan, approved, plan.request);
|
|
679
693
|
if (run.code !== 0)
|
|
680
694
|
return run.code;
|
|
695
|
+
// A scene that throws while drawing still exits 0 and still writes a video —
|
|
696
|
+
// of blank frames. The log is the only place that failure surfaces, so a page
|
|
697
|
+
// error blocks publication instead of shipping a deliverable that is empty.
|
|
698
|
+
const pageError = await pageErrorIn(io, prepared.outDir);
|
|
699
|
+
if (pageError !== undefined) {
|
|
700
|
+
io.stderr(`mk render: the page threw while drawing and the frames are blank — ${pageError}\n` +
|
|
701
|
+
` full log: ${join(prepared.outDir, LOG_FILE)}\n`);
|
|
702
|
+
await discardAttempt(io, prepared.outDir);
|
|
703
|
+
return EXIT.ERROR;
|
|
704
|
+
}
|
|
681
705
|
// The last gate runs before publication, so a refusal never replaces a
|
|
682
706
|
// previous final.mp4 with this attempt's bytes (ADR-0008 D3).
|
|
683
707
|
if (plan.gated) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvpx/motion-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.20",
|
|
4
4
|
"description": "The mk CLI for @anvpx/motion: validate, preview, approve and render storyboards.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "anvpx",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"dist/**/*.d.ts"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@anvpx/motion-audio": "0.1.
|
|
34
|
-
"@anvpx/motion-build": "0.1.
|
|
35
|
-
"@anvpx/motion-schema": "0.1.
|
|
36
|
-
"@anvpx/motion-templates": "0.1.
|
|
33
|
+
"@anvpx/motion-audio": "0.1.20",
|
|
34
|
+
"@anvpx/motion-build": "0.1.20",
|
|
35
|
+
"@anvpx/motion-schema": "0.1.20",
|
|
36
|
+
"@anvpx/motion-templates": "0.1.20"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"test:integration": "vitest run --config vitest.integration.config.ts"
|