storyforge 0.1.0 → 0.1.2

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 +10 -8
  2. package/package.json +21 -6
package/dist/index.js CHANGED
@@ -54,7 +54,9 @@ var DEFAULT_USER_ID = "00000000-0000-0000-0000-000000000001";
54
54
  var CORS_HEADERS = {
55
55
  "Access-Control-Allow-Origin": "*",
56
56
  "Access-Control-Allow-Methods": "GET, POST, PATCH, OPTIONS",
57
- "Access-Control-Allow-Headers": "Content-Type"
57
+ "Access-Control-Allow-Headers": "Content-Type, Access-Control-Request-Private-Network",
58
+ // Required for Chrome Private Network Access (CORS-RFC1918) — HTTPS pages fetching from localhost
59
+ "Access-Control-Allow-Private-Network": "true"
58
60
  };
59
61
  function metaPath(dir) {
60
62
  return path2.join(dir, "forge.json");
@@ -271,13 +273,13 @@ async function devCommand(options) {
271
273
  }
272
274
  if (pathname === "/api/assets") {
273
275
  const assets = {
274
- audio: collectFiles(path2.join(dir, "audio")),
275
- imagesH: collectFiles(path2.join(dir, "images-horizontal")),
276
- imagesV: collectFiles(path2.join(dir, "images-vertical")),
277
- clips: collectFiles(path2.join(dir, "clips")),
278
- scripts: collectFiles(path2.join(dir, "scripts")),
279
- prompts: collectFiles(path2.join(dir, "gemini-prompts")),
280
- brand: collectFiles(path2.join(dir, "brand"))
276
+ audio: collectFiles(path2.join(dir, "audio"), "audio"),
277
+ imagesH: collectFiles(path2.join(dir, "images-horizontal"), "images-horizontal"),
278
+ imagesV: collectFiles(path2.join(dir, "images-vertical"), "images-vertical"),
279
+ clips: collectFiles(path2.join(dir, "clips"), "clips"),
280
+ scripts: collectFiles(path2.join(dir, "scripts"), "scripts"),
281
+ prompts: collectFiles(path2.join(dir, "gemini-prompts"), "gemini-prompts"),
282
+ brand: collectFiles(path2.join(dir, "brand"), "brand")
281
283
  };
282
284
  res.writeHead(200, { ...CORS_HEADERS, "Content-Type": "application/json" });
283
285
  res.end(JSON.stringify(assets));
package/package.json CHANGED
@@ -1,10 +1,15 @@
1
1
  {
2
2
  "name": "storyforge",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "StoryForge — local bridge for the Forge video production web app. Zero runtime dependencies.",
5
5
  "type": "module",
6
- "bin": { "storyforge": "./dist/index.js" },
7
- "files": ["dist/", "README.md"],
6
+ "bin": {
7
+ "storyforge": "./dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist/",
11
+ "README.md"
12
+ ],
8
13
  "scripts": {
9
14
  "build": "tsup",
10
15
  "lint": "tsc --noEmit",
@@ -15,10 +20,20 @@
15
20
  "tsup": "8.5.0",
16
21
  "typescript": "5.8.3"
17
22
  },
18
- "publishConfig": { "access": "public" },
19
- "keywords": ["video", "remotion", "storyforge", "cli", "forge"],
23
+ "publishConfig": {
24
+ "access": "public"
25
+ },
26
+ "keywords": [
27
+ "video",
28
+ "remotion",
29
+ "storyforge",
30
+ "cli",
31
+ "forge"
32
+ ],
20
33
  "license": "MIT",
21
- "engines": { "node": ">=18.0.0" },
34
+ "engines": {
35
+ "node": ">=18.0.0"
36
+ },
22
37
  "repository": {
23
38
  "type": "git",
24
39
  "url": "git+https://github.com/backspacevenkat/forge.git",