@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 +1 -1
- package/requirements.txt +1 -0
- package/seed/skills/mpt_agent.py +20 -0
package/package.json
CHANGED
package/requirements.txt
CHANGED
package/seed/skills/mpt_agent.py
CHANGED
|
@@ -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,
|