storyforge 0.11.4 → 0.11.5

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.
Files changed (2) hide show
  1. package/dist/index.js +18 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39,10 +39,26 @@ function loadCredentials() {
39
39
  return null;
40
40
  }
41
41
  }
42
+ function findEnvFilesWalkingUp(startDir) {
43
+ const found = [];
44
+ const home = os.homedir();
45
+ let dir = startDir;
46
+ for (let i = 0; i < 10; i++) {
47
+ const env = path.join(dir, ".env");
48
+ if (fs.existsSync(env)) found.push(env);
49
+ const nextEnv = path.join(dir, "apps", "web", ".env.local");
50
+ if (fs.existsSync(nextEnv)) found.push(nextEnv);
51
+ const parent = path.dirname(dir);
52
+ if (parent === dir || dir === home) break;
53
+ dir = parent;
54
+ }
55
+ return found;
56
+ }
42
57
  function loadDotEnv() {
43
58
  const loaded = [];
44
59
  const sources = [];
45
- const candidates = [path.resolve(process.cwd(), ".env"), ...FORGE_ENV_PATHS];
60
+ const walkedUp = findEnvFilesWalkingUp(path.resolve(process.cwd()));
61
+ const candidates = [...walkedUp, ...FORGE_ENV_PATHS];
46
62
  for (const file of candidates) {
47
63
  let content;
48
64
  try {
@@ -2438,7 +2454,7 @@ function resolveBridgeToken2(explicit) {
2438
2454
  // package.json
2439
2455
  var package_default = {
2440
2456
  name: "storyforge",
2441
- version: "0.11.4",
2457
+ version: "0.11.5",
2442
2458
  description: "StoryForge \u2014 local bridge for the Forge video production web app. Parallel clip-render orchestrator (Remotion 4 + Manim + HyperFrames + ffmpeg) + final video stitcher + dependency doctor.",
2443
2459
  type: "module",
2444
2460
  bin: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyforge",
3
- "version": "0.11.4",
3
+ "version": "0.11.5",
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": {