@anvpx/motion-cli 0.1.2 → 0.1.3

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.
@@ -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.2";
16
- export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.2";
15
+ export declare const PINNED_CORE_VERSION = "0.1.3";
16
+ export declare const PINNED_NPX = "npx -y @anvpx/motion@0.1.3";
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 {
@@ -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.2";
20
+ export const PINNED_CORE_VERSION = "0.1.3";
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");
@@ -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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anvpx/motion-cli",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
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.2",
34
- "@anvpx/motion-build": "0.1.2",
35
- "@anvpx/motion-schema": "0.1.2",
36
- "@anvpx/motion-templates": "0.1.2"
33
+ "@anvpx/motion-audio": "0.1.3",
34
+ "@anvpx/motion-build": "0.1.3",
35
+ "@anvpx/motion-schema": "0.1.3",
36
+ "@anvpx/motion-templates": "0.1.3"
37
37
  },
38
38
  "scripts": {
39
39
  "test:integration": "vitest run --config vitest.integration.config.ts"