@anvpx/motion-cli 0.1.2 → 0.1.4
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
|
@@ -12,8 +12,8 @@ import type { Command } from "../types.ts";
|
|
|
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.4";
|
|
16
|
+
export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.4";
|
|
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
|
@@ -17,7 +17,7 @@ import { EXIT } from "../exit-codes.js";
|
|
|
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.4";
|
|
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");
|
package/dist/preview/command.js
CHANGED
|
@@ -811,6 +811,9 @@ export const makePreviewCommand = (env = defaultEnv, clock = () => performance.n
|
|
|
811
811
|
brightFrames: 0,
|
|
812
812
|
darkFrames: 0,
|
|
813
813
|
};
|
|
814
|
+
if (continuity.status === "warn") {
|
|
815
|
+
io.stderr(`mk preview: continuity WARN (jump ${continuity.maxJump ?? "?"} at ${continuity.atSec ?? "?"}s); change the cut with a crossfade/match/bridge and re-preview --full before asking for approval\n`);
|
|
816
|
+
}
|
|
814
817
|
let audioMix;
|
|
815
818
|
if (ctx.options.audioManifest === undefined) {
|
|
816
819
|
audioMix = SILENT_AUDIO_MIX;
|
package/dist/voice/run.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { existsSync } from "node:fs";
|
|
1
2
|
import { join } from "node:path";
|
|
2
3
|
import { alignWords, detectSilence, isJapaneseVoice, resolveVenvPython, synthesize, VOICE_PROVENANCE, wordsInSilence, } from "@anvpx/motion-audio";
|
|
3
4
|
import { resolveTimeline, validateStoryboardFull, WORDS_PER_SECOND } from "@anvpx/motion-build";
|
|
@@ -35,6 +36,10 @@ async function loadNarrated(storyboard, io) {
|
|
|
35
36
|
async function pickPython(io, explicit) {
|
|
36
37
|
if (explicit !== undefined)
|
|
37
38
|
return { python: explicit };
|
|
39
|
+
const shared = process.env.MOTION_VOICE_PYTHON?.trim();
|
|
40
|
+
if (shared !== undefined && shared !== "" && existsSync(shared)) {
|
|
41
|
+
return { python: shared };
|
|
42
|
+
}
|
|
38
43
|
const probe = await resolveVenvPython(io.run);
|
|
39
44
|
if (probe.ok)
|
|
40
45
|
return { python: probe.python };
|
|
@@ -74,7 +79,7 @@ const gateSilence = async (io, sceneId, audioPath, words) => {
|
|
|
74
79
|
.map((word) => `"${word.w}" at ${word.start.toFixed(2)}s`)
|
|
75
80
|
.join(", ");
|
|
76
81
|
const more = swallowed.length > 3 ? ", ..." : "";
|
|
77
|
-
io.stderr(`mk voice: "${sceneId}" has ${swallowed.length} word(s) inside silence (${shown}${more}); refusing fake timing
|
|
82
|
+
io.stderr(`mk voice: "${sceneId}" has ${swallowed.length} word(s) inside silence (${shown}${more}); refusing fake timing. Shorten or split the line, or extend the scene by at least 1 s, then re-run voice.\n`);
|
|
78
83
|
return { code: EXIT.ERROR };
|
|
79
84
|
}
|
|
80
85
|
return { silences: silence.intervals };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anvpx/motion-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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.4",
|
|
34
|
+
"@anvpx/motion-build": "0.1.4",
|
|
35
|
+
"@anvpx/motion-schema": "0.1.4",
|
|
36
|
+
"@anvpx/motion-templates": "0.1.4"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"test:integration": "vitest run --config vitest.integration.config.ts"
|