storyforge 0.7.0 → 0.7.1

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.
@@ -6196,10 +6196,20 @@ async function renderChunk(spec, opts = {}) {
6196
6196
  const concatTarget = path9.join(paths.tmpDir, `${spec.chunkId}_video.mp4`);
6197
6197
  await concatScenes(scenePaths, concatTarget, { signal: opts.signal });
6198
6198
  if (opts.signal?.aborted) throw new Error("aborted");
6199
- tracker.emit({ phase: "muxing", percent: 95 });
6200
- await muxAudio(concatTarget, spec.audioPath, paths.finalClipPath, {
6201
- signal: opts.signal
6202
- });
6199
+ const audioAvailable = !!spec.audioPath && fs8.existsSync(spec.audioPath);
6200
+ if (audioAvailable) {
6201
+ tracker.emit({ phase: "muxing", percent: 95 });
6202
+ await muxAudio(concatTarget, spec.audioPath, paths.finalClipPath, {
6203
+ signal: opts.signal
6204
+ });
6205
+ } else {
6206
+ if (spec.audioPath) {
6207
+ warnings.push(`audio file not found at "${spec.audioPath}" \u2014 wrote silent clip`);
6208
+ } else {
6209
+ warnings.push("no audioPath in spec \u2014 wrote silent clip");
6210
+ }
6211
+ fs8.copyFileSync(concatTarget, paths.finalClipPath);
6212
+ }
6203
6213
  tracker.emit({ phase: "done", percent: 100 });
6204
6214
  const renderTimeMs2 = (opts.now ?? Date.now)() - startedAt;
6205
6215
  return {
package/dist/index.js CHANGED
@@ -1615,7 +1615,7 @@ Return ONLY the complete updated TSX. No markdown fences, no explanation.`;
1615
1615
  return "0.0.0";
1616
1616
  })();
1617
1617
  void (async () => {
1618
- const { BridgePoller } = await import("./bridge-poller-JIP6RGMN.js");
1618
+ const { BridgePoller } = await import("./bridge-poller-NSYYEHB3.js");
1619
1619
  const poller = new BridgePoller({ baseUrl: bridgeUrl, token: bridgeToken, clientVersion: `storyforge ${pkgVersion}` });
1620
1620
  poller.start();
1621
1621
  })();
@@ -1992,7 +1992,7 @@ async function installRenderersCommand(opts = {}) {
1992
1992
  }
1993
1993
 
1994
1994
  // src/index.ts
1995
- var VERSION = "0.7.0";
1995
+ var VERSION = "0.7.1";
1996
1996
  var HELP = `
1997
1997
  storyforge \u2014 local bridge for the Forge video production web app
1998
1998
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyforge",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "StoryForge — local bridge for the Forge video production web app. Parallel clip-render orchestrator (Remotion 4 + Manim + HyperFrames + ffmpeg) + final video stitcher + dependency doctor.",
5
5
  "type": "module",
6
6
  "bin": {