storyforge 0.4.7 → 0.4.8

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 +11 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -689,8 +689,19 @@ async function findOrCreateProject(dir) {
689
689
  };
690
690
  saveMeta(dir, meta);
691
691
  log.success(`Saved ${metaPath(dir)}`);
692
+ ensureProjectAssetTree(dir, channel.slug, project.slug);
692
693
  return meta;
693
694
  }
695
+ function ensureProjectAssetTree(dir, channelSlug, projectSlug) {
696
+ const base = path2.join(dir, "channels", channelSlug, "projects", projectSlug);
697
+ const kinds = ["images", "audio", "clips", "scripts", "brand", "renders", "shorts", "gemini-scenes"];
698
+ for (const k of kinds) {
699
+ const p = path2.join(base, k);
700
+ fs2.mkdirSync(p, { recursive: true });
701
+ const keep = path2.join(p, ".gitkeep");
702
+ if (!fs2.existsSync(keep)) fs2.writeFileSync(keep, "");
703
+ }
704
+ }
694
705
  function findMonorepoRoot(startDir) {
695
706
  let d = startDir;
696
707
  for (let i = 0; i < 6; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "storyforge",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "StoryForge — local bridge for the Forge video production web app. Zero runtime dependencies.",
5
5
  "type": "module",
6
6
  "bin": {