Repository navigation
fix: restore dropped _build_continuation_prompt, sync dashboard lock, add free TTS skill - #93
Open
kevindevops wants to merge 4 commits into
Open
kevindevops wants to merge 4 commits into
kevindevops wants to merge 4 commits into
Conversation
…ctor Commit 76c4d3f (provider-neutral platform refactor) removed the _build_continuation_prompt definition but left both call sites in operations.py intact, so any CONTINUATION scene's image generation or edit hit a NameError at runtime. No existing test set parent_scene_id on the scene fixture, so the dead code path went uncaught by the suite - it only surfaced against a live Flow project. Restores the original transformation-prefix helper and adds a regression test per call site that fails with the exact NameError when the function is removed again. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
npm ci failed with "Missing: @emnapi/core@1.11.3 from lock file" and a peer-dependency mismatch on @babel/core — the lock file had drifted out of sync with package.json. Regenerated via npm install. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
python -m agent.main run through a bash background job dies silently once the launching shell session ends (Windows doesn't fully detach nohup'd processes under Git Bash job control). start_agent.ps1 uses Start-Process to launch the agent as an independent Windows process that survives the parent shell closing, and is idempotent — it checks /health first and no-ops if an agent is already listening. Also adds venv/ and the agent_out/err.log files this script writes to .gitignore. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…l voices /fk-gen-narrator hard-aborts without a voice template (OmniVoice clone), which needs /fk-gen-tts-template or /fk-import-voice set up first. For a one-off project or a language with no trained template yet, that's a real barrier before any narration can be heard. This skill drives Microsoft Edge TTS instead — no account, no API key, just `pip install edge-tts`. Produces the same tts/scene_<IDX3>_<id>.wav layout /fk-concat --with-tts already expects, so it's a drop-in alternative, not a parallel pipeline. Also documents a duration-fit loop for Step 4: unlike the cloned-voice path, Edge TTS has no built-in word-count gate against the 8s scene length, so narration can run long and get clipped by concat. Generate once, probe with ffprobe, and only escalate the speaking rate if it doesn't fit under the clip — found by hand during a real narrated video where one scene's TTS (8.26s) overran its 8s clip. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
_build_continuation_promptwas removed in 76c4d3f (provider-neutral platform refactor) but both call sites inagent/sdk/services/operations.py(generate_scene_image,edit_scene_image) were left calling it. Any CONTINUATION scene hit aNameErrorat runtime, discovered while running a real multi-scene project end-to-end through the batch API. Restored the original helper and added a regression test per call site — each fails with the exactNameErrorif the function is removed again (verified by reverting locally before opening this PR).dashboard/package-lock.jsonhad drifted out of sync withpackage.json—npm cifailed withMissing: @emnapi/core@1.11.3 from lock file. Regenerated vianpm install.fk-gen-narrator-free:/fk-gen-narratorhard-aborts without a voice template (/fk-gen-tts-template//fk-import-voice), which is a real barrier for a one-off project. This skill drives Microsoft Edge TTS instead (no account, no API key), writing the sametts/scene_<IDX3>_<id>.wavlayout/fk-concat --with-ttsalready expects. Also documents a duration-fit-and-retry loop for Step 4, since Edge TTS has no built-in word-count gate against the scene's 8s clip length — found by hand when one scene's narration (8.26s) overran its clip.python -m agent.mainlaunched through a bash background job dies once the launching shell session ends (Windows doesn't fully detachnohup'd processes under Git Bash job control). This script usesStart-Processto launch the agent as an independent, detached Windows process, and is idempotent (checks/healthfirst).Test plan
python -m pytest tests/unit— 510 passed, 1 skipped (full suite, unchanged pass count plus the 2 new regression tests)NameError, then restored itfk-gen-narrator-freeskill and mixed it into the final video