feat: 카드·영상 스크립트를 윈도우에서도 돌게 — 외부 프로그램 위치를 scripts/bin.mjs 로 모음, 크롬이 45초 넘게 멈추면 그 장만 다시 찍음, claude 프롬프트는 stdin 으로
This commit is contained in:
1 parent
63b4fa74fe
commit
e28359ff47
15 files changed
+150
-51
No files matched your search
@@ -30,12 +30,12 @@ def main():
|
||||
"",
|
||||
Path(args.prompt_file).read_text(encoding="utf-8").strip(),
|
||||
])
|
||||
command = ["codex", "exec", "--skip-git-repo-check", "-C", str(work), "-s", "workspace-write", "-m", IMAGE_MODEL,
|
||||
command = [os.environ.get("CODEX_BIN") or shutil.which("codex") or "codex", "exec", "--skip-git-repo-check", "-C", str(work), "-s", "workspace-write", "-m", IMAGE_MODEL,
|
||||
"-c", 'model_reasoning_effort="low"']
|
||||
for image in args.image:
|
||||
command += ["-i", str(Path(image).resolve())]
|
||||
try:
|
||||
subprocess.run(command, input=task, text=True, stdout=subprocess.DEVNULL, check=True)
|
||||
subprocess.run(command, input=task, encoding="utf-8", stdout=subprocess.DEVNULL, check=True)
|
||||
result = work / "result.png"
|
||||
if not result.is_file():
|
||||
pngs = sorted(work.glob("*.png"))
|
||||
|
||||
Reference in new issue
Block a user