@danhachuel/thunderbolt 0.5.95 → 0.5.96

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danhachuel/thunderbolt",
3
- "version": "0.5.95",
3
+ "version": "0.5.96",
4
4
  "description": "Thunderbolt — interface local para operação de canais faceless e motor MoneyPrinterTurbo",
5
5
  "license": "MIT",
6
6
  "main": "scripts/cli.mjs",
package/requirements.txt CHANGED
@@ -6,6 +6,7 @@ pandas>=2.0,<3
6
6
  openpyxl>=3.1,<4
7
7
  xlrd>=2.0,<3
8
8
  imageio-ffmpeg>=0.6,<1
9
+ moviepy==2.2.1
9
10
  toml>=0.10,<1
10
11
  google-auth>=2.29,<3
11
12
  google-auth-oauthlib>=1.2,<2
@@ -24,6 +24,7 @@ PROJECT_ARCHIVE_URL = (
24
24
  "https://github.com/harry0703/MoneyPrinterTurbo/archive/refs/heads/main.zip"
25
25
  )
26
26
  DEFAULT_ROOT = Path.home() / "MoneyPrinterTurbo"
27
+ MOVIEPY_REQUIREMENT = "moviepy==2.2.1"
27
28
  CHUNKED_SYNTHESIS_TIMEOUT_SECONDS = 15 * 60
28
29
  DEPENDENCY_SYNC_TIMEOUT_SECONDS = 15 * 60
29
30
  DEFAULT_VOICE_NAME = "zh-CN-XiaoxiaoNeural-Female"
@@ -686,6 +687,22 @@ def run_checked(command: list[str], *, cwd: Path) -> None:
686
687
  log("project dependencies verified with uv")
687
688
 
688
689
 
690
+ def ensure_moviepy(root: Path, uv: str) -> None:
691
+ """Ensure the render engine matches MoneyPrinterTurbo's MoviePy release."""
692
+ run_checked(
693
+ [
694
+ uv,
695
+ "run",
696
+ "--with",
697
+ MOVIEPY_REQUIREMENT,
698
+ "python",
699
+ "-c",
700
+ "import moviepy; assert moviepy.__version__ == '2.2.1'",
701
+ ],
702
+ cwd=root,
703
+ )
704
+
705
+
689
706
  def generate_video(
690
707
  root: Path,
691
708
  subject: str,
@@ -696,6 +713,7 @@ def generate_video(
696
713
  if not uv:
697
714
  raise SkillError("uv was not found; reopen the terminal or add uv to PATH")
698
715
  run_checked([uv, "sync", "--frozen"], cwd=root)
716
+ ensure_moviepy(root, uv)
699
717
  config_path = ensure_config(root)
700
718
 
701
719
  task_id = str(uuid.uuid4())
@@ -748,6 +766,8 @@ def generate_video(
748
766
  command = [
749
767
  uv,
750
768
  "run",
769
+ "--with",
770
+ MOVIEPY_REQUIREMENT,
751
771
  "python",
752
772
  "cli.py",
753
773
  *forwarded_args,