create-aura3d 1.0.8 → 1.0.10

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 (44) hide show
  1. package/dist/cli.js +0 -0
  2. package/dist/index.d.ts +1 -1
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +4 -2
  5. package/dist/index.js.map +1 -1
  6. package/package.json +8 -4
  7. package/templates/cartoon-channel/package.json +1 -1
  8. package/templates/cartoon-studio/README.md +46 -0
  9. package/templates/cartoon-studio/index.html +13 -0
  10. package/templates/cartoon-studio/package.json +21 -0
  11. package/templates/cartoon-studio/playwright.config.ts +13 -0
  12. package/templates/cartoon-studio/src/aura-assets.ts +14 -0
  13. package/templates/cartoon-studio/src/characters.ts +28 -0
  14. package/templates/cartoon-studio/src/contract.ts +1 -0
  15. package/templates/cartoon-studio/src/episode.ts +300 -0
  16. package/templates/cartoon-studio/src/main.ts +265 -0
  17. package/templates/cartoon-studio/src/render-plan.ts +405 -0
  18. package/templates/cartoon-studio/src/sets.ts +14 -0
  19. package/templates/cartoon-studio/src/studio.ts +101 -0
  20. package/templates/cartoon-studio/tests/route-health.spec.ts +7 -0
  21. package/templates/cartoon-studio/tests/storyboard-playback.spec.ts +91 -0
  22. package/templates/cartoon-studio/tsconfig.json +12 -0
  23. package/templates/cinematic-scene/package.json +1 -1
  24. package/templates/episode-builder/README.md +46 -0
  25. package/templates/episode-builder/index.html +13 -0
  26. package/templates/episode-builder/package.json +21 -0
  27. package/templates/episode-builder/playwright.config.ts +13 -0
  28. package/templates/episode-builder/src/aura-assets.ts +14 -0
  29. package/templates/episode-builder/src/builder.ts +78 -0
  30. package/templates/episode-builder/src/characters.ts +28 -0
  31. package/templates/episode-builder/src/contract.ts +1 -0
  32. package/templates/episode-builder/src/episode.ts +300 -0
  33. package/templates/episode-builder/src/main.ts +265 -0
  34. package/templates/episode-builder/src/render-plan.ts +405 -0
  35. package/templates/episode-builder/src/sets.ts +14 -0
  36. package/templates/episode-builder/tests/route-health.spec.ts +7 -0
  37. package/templates/episode-builder/tests/storyboard-playback.spec.ts +98 -0
  38. package/templates/episode-builder/tsconfig.json +12 -0
  39. package/templates/fighting-game/package.json +1 -1
  40. package/templates/fighting-game/src/game/stage.ts +18 -4
  41. package/templates/fighting-game/src/main.ts +3 -2
  42. package/templates/mini-game/package.json +1 -1
  43. package/templates/product-viewer/package.json +1 -1
  44. package/templates/prompt-cartoon-channel/package.json +1 -1
package/dist/cli.js CHANGED
File without changes
package/dist/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const CREATE_AURA3D_TEMPLATES: readonly ["product-viewer", "cinematic-scene", "mini-game", "fighting-game", "cartoon-channel", "prompt-cartoon-channel"];
1
+ export declare const CREATE_AURA3D_TEMPLATES: readonly ["product-viewer", "cinematic-scene", "mini-game", "fighting-game", "cartoon-channel", "prompt-cartoon-channel", "cartoon-studio", "episode-builder"];
2
2
  export type CreateA3DTemplate = (typeof CREATE_AURA3D_TEMPLATES)[number];
3
3
  export interface CreateA3DProjectOptions {
4
4
  readonly targetDir: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/create-aura3d/src/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,2HAO1B,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,sBAAsB,CA6BzF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAGvF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/create-aura3d/src/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,gKAS1B,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,uBAAuB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,QAAQ,EAAE,iBAAiB,CAAC;IACrC,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAC;CACnC;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,sBAAsB,CA6BzF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,sBAAsB,GAAG,IAAI,CAGvF"}
package/dist/index.js CHANGED
@@ -7,7 +7,9 @@ export const CREATE_AURA3D_TEMPLATES = [
7
7
  "mini-game",
8
8
  "fighting-game",
9
9
  "cartoon-channel",
10
- "prompt-cartoon-channel"
10
+ "prompt-cartoon-channel",
11
+ "cartoon-studio",
12
+ "episode-builder"
11
13
  ];
12
14
  export function createA3DProject(options) {
13
15
  const template = options.template ?? "product-viewer";
@@ -28,7 +30,7 @@ export function createA3DProject(options) {
28
30
  const packageJson = JSON.parse(readFileSync(packagePath, "utf8"));
29
31
  packageJson.dependencies = {
30
32
  ...(packageJson.dependencies ?? {}),
31
- "@aura3d/engine": options.packageVersion ?? "1.0.6"
33
+ "@aura3d/engine": options.packageVersion ?? "1.0.10"
32
34
  };
33
35
  writeFileSync(packagePath, `${JSON.stringify(packageJson, null, 2)}\n`);
34
36
  return {
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/create-aura3d/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAClG,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzC,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,gBAAgB;IAChB,iBAAiB;IACjB,WAAW;IACX,eAAe;IACf,iBAAiB;IACjB,wBAAwB;CAChB,CAAC;AAgBX,MAAM,UAAU,gBAAgB,CAAC,OAAgC;IAC/D,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,gBAAgB,CAAC;IACtD,IAAI,CAAC,uBAAuB,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,KAAK,CAAC,mCAAmC,QAAQ,0BAA0B,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC7H,CAAC;IACD,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,uBAAuB,EAAE,CAAC;IAC7D,MAAM,WAAW,GAAG,OAAO,CAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,CAAC,CAAC;IAC5D,IAAI,CA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
  "type": "module",
5
5
  "bin": {
6
6
  "create-aura3d": "dist/cli.js"
@@ -12,7 +12,9 @@
12
12
  "templates/mini-game",
13
13
  "templates/fighting-game",
14
14
  "templates/cartoon-channel",
15
- "templates/prompt-cartoon-channel"
15
+ "templates/prompt-cartoon-channel",
16
+ "templates/cartoon-studio",
17
+ "templates/episode-builder"
16
18
  ],
17
19
  "publishConfig": {
18
20
  "access": "public"
@@ -25,7 +27,7 @@
25
27
  },
26
28
  "main": "./dist/index.js",
27
29
  "types": "./dist/index.d.ts",
28
- "description": "Scaffold Aura3D browser 3D apps for product viewers, cinematic scenes, mini-games, fighting-game runtimes, and prompt-driven cartoon channels.",
30
+ "description": "Scaffold Aura3D browser 3D apps for product viewers, cinematic scenes, mini-games, fighting-game runtimes, prompt-driven cartoon channels, cartoon studios, and episode builders.",
29
31
  "keywords": [
30
32
  "create-aura3d",
31
33
  "vite",
@@ -34,6 +36,8 @@
34
36
  "product-viewer",
35
37
  "fighting-game",
36
38
  "prompt-cartoon-channel",
39
+ "cartoon-studio",
40
+ "episode-builder",
37
41
  "cartoon-animation",
38
42
  "prompt-to-video",
39
43
  "game-runtime",
@@ -52,4 +56,4 @@
52
56
  "url": "https://github.com/auraoneai/aura3d/issues"
53
57
  },
54
58
  "license": "MIT"
55
- }
59
+ }
@@ -11,7 +11,7 @@
11
11
  "test": "playwright test tests/route-health.spec.ts tests/storyboard-playback.spec.ts --workers=1"
12
12
  },
13
13
  "dependencies": {
14
- "@aura3d/engine": "1.0.5"
14
+ "@aura3d/engine": "1.0.10"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@playwright/test": "^1.52.0",
@@ -0,0 +1,46 @@
1
+ # Aura3D Cartoon Studio Template
2
+
3
+ This template demonstrates a compact cartoon production workspace on top of the
4
+ AuraVoice-to-Aura3D prompt-animation contract.
5
+
6
+ It uses:
7
+
8
+ - `compilePromptEpisodePlan(...)` for prompt-to-episode planning.
9
+ - Optional typed GLB characters from `./src/aura-assets` with primitive runtime fallbacks until assets are added.
10
+ - `createShotPlaybackPlan(...)` plus `installShotPlayback(...)` so `app.onFrame` updates nodes without recreating the app.
11
+ - `createAuraVoiceBridgePackage(...)`, `validateAuraVoiceBridgePackage(...)`, `collectPromptAnimationEvidence(...)`, and `evaluatePromptAnimationPublishReadiness(...)` for source-level AuraVoice/Aura3D handoff declarations.
12
+ - Caption HUD and caption timing proof metadata.
13
+ - Render queue metadata and three deterministic screenshot fixture records.
14
+ - Child-safe, reduced-motion, and high-contrast accessibility proof defaults.
15
+ - Primitive-mouth and typed-GLB viseme examples.
16
+ - Phoneme/viseme/dub source proof metadata for stable shot, storyboard, caption, line, and word timing ids.
17
+ - A source-level studio panel with shot, dialogue, and render timeline tracks.
18
+ - Asset library slot metadata for required characters and optional props.
19
+ - Render pipeline metadata that agents can inspect before running full browser evidence.
20
+
21
+ Replace primitive characters with typed GLB assets by running:
22
+
23
+ ```bash
24
+ npx @aura3d/cli@latest assets add ./assets/miko.glb --name miko
25
+ npx @aura3d/cli@latest assets add ./assets/luma.glb --name luma
26
+ npx @aura3d/cli@latest assets validate-cartoon
27
+ ```
28
+
29
+ Then import `assets.miko` and `assets.luma` from `src/aura-assets.ts` and pass them to `model(assets.miko)` and `model(assets.luma)`.
30
+
31
+ The GLB path must keep typed assets:
32
+
33
+ ```ts
34
+ import { model } from "@aura3d/engine";
35
+ import { assets } from "./aura-assets";
36
+
37
+ model(assets.miko);
38
+ ```
39
+
40
+ Do not replace this with a string asset id or a raw loader.
41
+
42
+ This scaffold intentionally does not claim publish readiness from source alone.
43
+ Before closing build, route, asset, screenshot, render, or visual-quality gates,
44
+ archive the matching `npm run build`, `assets validate-cartoon`, browser
45
+ evidence, screenshot hashes, render outputs, and human or automated review
46
+ artifacts.
@@ -0,0 +1,13 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Aura3D Cartoon Studio</title>
7
+ </head>
8
+ <body>
9
+ <div id="app"></div>
10
+ <script type="module" src="/src/main.ts"></script>
11
+ </body>
12
+ </html>
13
+
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "aura3d-cartoon-studio",
3
+ "version": "0.1.0",
4
+ "private": true,
5
+ "type": "module",
6
+ "scripts": {
7
+ "dev": "vite --host 0.0.0.0",
8
+ "typecheck": "tsc --noEmit",
9
+ "build": "npm run typecheck && vite build",
10
+ "preview": "vite preview --host 0.0.0.0",
11
+ "test": "playwright test tests/route-health.spec.ts tests/storyboard-playback.spec.ts --workers=1"
12
+ },
13
+ "dependencies": {
14
+ "@aura3d/engine": "1.0.10"
15
+ },
16
+ "devDependencies": {
17
+ "@playwright/test": "^1.52.0",
18
+ "typescript": "^5.9.3",
19
+ "vite": "^7.2.4"
20
+ }
21
+ }
@@ -0,0 +1,13 @@
1
+ import { defineConfig } from "@playwright/test";
2
+
3
+ export default defineConfig({
4
+ webServer: {
5
+ command: "npm run dev -- --port 4180",
6
+ url: "http://127.0.0.1:4180",
7
+ reuseExistingServer: !process.env.CI
8
+ },
9
+ use: {
10
+ baseURL: "http://127.0.0.1:4180"
11
+ }
12
+ });
13
+
@@ -0,0 +1,14 @@
1
+ import { defineAuraAssets } from "@aura3d/engine";
2
+ import { AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID } from "./contract";
3
+
4
+ export const assetContractId = AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID;
5
+
6
+ export const assets = defineAuraAssets({
7
+ /*
8
+ * Add character GLBs with the Aura3D CLI, then keep these generated keys:
9
+ *
10
+ * npx @aura3d/cli@latest assets add ./assets/miko.glb --name miko
11
+ * npx @aura3d/cli@latest assets add ./assets/luma.glb --name luma
12
+ * npx @aura3d/cli@latest assets validate-cartoon
13
+ */
14
+ });
@@ -0,0 +1,28 @@
1
+ import { AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID } from "./contract";
2
+
3
+ export const characterContractId = AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID;
4
+
5
+ export const characters = [
6
+ {
7
+ id: "miko",
8
+ name: "Miko",
9
+ palette: ["#7de2ff", "#f7ffe8"],
10
+ primitiveFallback: "round robot with antenna",
11
+ typedAssetKey: "miko",
12
+ runtimeNodeId: "miko",
13
+ primitiveMouthNodeId: "miko:mouth",
14
+ performanceChannels: ["body", "facial", "gesture", "blocking", "gaze"],
15
+ glbUpgrade: "After assets add, use model(assets.miko) and keep viseme blendshape metadata."
16
+ },
17
+ {
18
+ id: "luma",
19
+ name: "Luma",
20
+ palette: ["#ffe18e", "#40ffbf"],
21
+ primitiveFallback: "small moon-garden helper",
22
+ typedAssetKey: "luma",
23
+ runtimeNodeId: "luma",
24
+ primitiveMouthNodeId: "luma:mouth",
25
+ performanceChannels: ["body", "facial", "gesture", "blocking", "gaze"],
26
+ glbUpgrade: "After assets add, use model(assets.luma) and keep viseme blendshape metadata."
27
+ }
28
+ ];
@@ -0,0 +1 @@
1
+ export const AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID = "auravoice-aura3d-prompt-animation/v1" as const;
@@ -0,0 +1,300 @@
1
+ import { compilePromptEpisodePlan, type AuraAssetRef } from "@aura3d/engine";
2
+ import { assets } from "./aura-assets";
3
+ import { AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID } from "./contract";
4
+
5
+ export const episodeContractId = AURAVOICE_AURA3D_PROMPT_ANIMATION_CONTRACT_ID;
6
+
7
+ export type CartoonAssetKey = "miko" | "luma" | "glowBroom" | "glowStones" | "moonLilies";
8
+
9
+ type TypedCartoonAssets = Partial<Record<CartoonAssetKey, AuraAssetRef<"model">>>;
10
+
11
+ const typedCartoonAssets = assets as TypedCartoonAssets;
12
+
13
+ export const requiredCartoonCharacterAssets = ["miko", "luma"] as const;
14
+ export const optionalCartoonPropAssets = ["glowBroom", "glowStones", "moonLilies"] as const;
15
+ export const publicCartoonAssetInstructions = [
16
+ "npx @aura3d/cli@latest assets add ./assets/miko.glb --name miko",
17
+ "npx @aura3d/cli@latest assets add ./assets/luma.glb --name luma",
18
+ "npx @aura3d/cli@latest assets validate-cartoon"
19
+ ] as const;
20
+
21
+ export const missingCartoonCharacterAssets = requiredCartoonCharacterAssets.filter((key) => !typedCartoonAssets[key]);
22
+ export const typedCartoonAssetSummary = {
23
+ requiredCharacterAssets: requiredCartoonCharacterAssets,
24
+ optionalPropAssets: optionalCartoonPropAssets,
25
+ typedCharacterAssetCount: requiredCartoonCharacterAssets.length - missingCartoonCharacterAssets.length,
26
+ missingCharacterAssets: missingCartoonCharacterAssets
27
+ } as const;
28
+
29
+ function typedAsset(key: CartoonAssetKey): AuraAssetRef<"model"> | undefined {
30
+ return typedCartoonAssets[key];
31
+ }
32
+
33
+ export const youtubeDraftMetadata = {
34
+ contractId: episodeContractId,
35
+ title: "Moon Garden Cleanup | Aura3D Cartoon Studio",
36
+ description: "Two tiny robots clean a glowing moon garden with soft captions and reduced-flash visuals.",
37
+ tags: ["Aura3D", "kids cartoon", "moon garden", "robots"],
38
+ madeForKids: true,
39
+ thumbnailCaptureTime: 10,
40
+ defaultLanguage: "en",
41
+ privacyStatus: "private"
42
+ } as const;
43
+
44
+ export const episodeAudioCues = [
45
+ {
46
+ id: "music:moon-garden-lullaby",
47
+ role: "music",
48
+ path: "assets/audio/music/moon-garden-lullaby-loop.wav",
49
+ startTime: 0,
50
+ duration: 60,
51
+ gainDb: -18,
52
+ ducking: "under-dialogue"
53
+ },
54
+ {
55
+ id: "ambience:moon-garden-night",
56
+ role: "ambience",
57
+ path: "assets/audio/ambience/moon-garden-night.wav",
58
+ startTime: 0,
59
+ duration: 60,
60
+ gainDb: -22,
61
+ ducking: "none"
62
+ },
63
+ {
64
+ id: "sfx:glow-stone-chime",
65
+ role: "sfx",
66
+ path: "assets/audio/sfx/glow-stone-chime.wav",
67
+ startTime: 38.5,
68
+ duration: 1.25,
69
+ gainDb: -9,
70
+ ducking: "none"
71
+ }
72
+ ] as const;
73
+
74
+ export const episodeSampleDescription = {
75
+ contractId: episodeContractId,
76
+ runtimeSeconds: 60,
77
+ shotCount: 3,
78
+ speakingCharacters: ["miko", "luma"],
79
+ captionSource: "captions are derived one-to-one from the AuraVoice dialogue track",
80
+ performanceSource: "body, facial, gesture, blocking, and gaze cues are generated from the cartoon director",
81
+ musicAmbience: ["music:moon-garden-lullaby", "ambience:moon-garden-night"],
82
+ sfxCue: "sfx:glow-stone-chime",
83
+ thumbnailCaptureTime: youtubeDraftMetadata.thumbnailCaptureTime,
84
+ thumbnailSource: "same Aura3D scene state and AuraVoice timestamp as the render queue capture",
85
+ typedAssetSource: "./src/aura-assets",
86
+ requiredTypedAssets: requiredCartoonCharacterAssets,
87
+ missingTypedAssets: missingCartoonCharacterAssets,
88
+ assetCommands: publicCartoonAssetInstructions,
89
+ reviewPackageRequiredPaths: ["video", "captions", "thumbnail", "timeline", "audio-stems", "evidence-json", "youtube-draft-metadata"],
90
+ accessibilityProof: ["captions", "reduced motion", "high contrast"]
91
+ } as const;
92
+
93
+ export const episode = compilePromptEpisodePlan({
94
+ episodeId: "moon-garden-cleanup-001",
95
+ title: "Moon Garden Cleanup",
96
+ prompt: "Two tiny robots clean a glowing moon garden.",
97
+ language: "en",
98
+ runtime: {
99
+ duration: 60,
100
+ frameRate: 30,
101
+ resolution: { width: 1920, height: 1080 },
102
+ aspectRatio: "16:9",
103
+ reducedMotion: true,
104
+ highContrast: true,
105
+ maxTimingDriftFrames: 1
106
+ },
107
+ route: "/",
108
+ characters: [
109
+ {
110
+ id: "miko",
111
+ name: "Miko",
112
+ role: "hero",
113
+ voiceId: "auravoice-miko-soft",
114
+ style: "round cyan robot",
115
+ ...(typedAsset("miko") ? { asset: typedAsset("miko") } : {})
116
+ },
117
+ {
118
+ id: "luma",
119
+ name: "Luma",
120
+ role: "sidekick",
121
+ voiceId: "auravoice-luma-bright",
122
+ style: "small gold garden helper",
123
+ ...(typedAsset("luma") ? { asset: typedAsset("luma") } : {})
124
+ }
125
+ ],
126
+ locations: [
127
+ {
128
+ id: "moon-garden",
129
+ name: "Moon Garden",
130
+ description: "A tiny crater garden with glowing pebbles, sleepy flowers, and a blue planet skyline.",
131
+ mood: "soft neon bedtime"
132
+ }
133
+ ],
134
+ props: [
135
+ {
136
+ id: "glow-broom",
137
+ name: "Glow Broom",
138
+ role: "hero-prop",
139
+ description: "A soft crescent broom that sweeps moon dust without sharp motion.",
140
+ ownerCharacterId: "miko",
141
+ locationId: "moon-garden",
142
+ ...(typedAsset("glowBroom") ? { asset: typedAsset("glowBroom") } : {}),
143
+ primitiveFallback: "thin rounded cylinder handle with a crescent brush head",
144
+ styleNotes: ["cyan rim light", "oversized safe silhouette"],
145
+ safetyNotes: ["not a weapon", "slow sweeping arcs only"]
146
+ },
147
+ {
148
+ id: "glow-stones",
149
+ name: "Glow Stones",
150
+ role: "interactive",
151
+ description: "Small moon pebbles that pulse gently after cleanup.",
152
+ locationId: "moon-garden",
153
+ ...(typedAsset("glowStones") ? { asset: typedAsset("glowStones") } : {}),
154
+ primitiveFallback: "small low-poly spheres with bloom",
155
+ styleNotes: ["warm yellow glow", "reduced-flash pulse"],
156
+ safetyNotes: ["no rapid flashing"]
157
+ },
158
+ {
159
+ id: "moon-lilies",
160
+ name: "Moon Lilies",
161
+ role: "set-dressing",
162
+ description: "Sleepy flowers that brighten when the garden is clean.",
163
+ locationId: "moon-garden",
164
+ ...(typedAsset("moonLilies") ? { asset: typedAsset("moonLilies") } : {}),
165
+ primitiveFallback: "rounded petal cards around tiny stems",
166
+ styleNotes: ["soft white petals", "blue shadow edges"]
167
+ }
168
+ ],
169
+ styleGuide: {
170
+ visualStyle: "rounded bedtime sci-fi cartoon with toy-like robot silhouettes",
171
+ palette: ["#081b2a", "#7de2ff", "#ffe18e", "#40ffbf", "#f8fff2"],
172
+ shapeLanguage: "circles, capsules, crescent props, and chunky moon-garden forms",
173
+ lighting: "soft blue night key, warm prop glows, no hard flashes",
174
+ cameraLanguage: "wide establishing shot, medium teamwork shot, gentle final push-in, cuts only at shot boundaries",
175
+ motionRules: [
176
+ "Keep brooms, waves, and glow pulses reduced-motion safe.",
177
+ "Mouth cards and GLB blendshapes sample AuraVoice visemes at the same frame rate as captions.",
178
+ "Do not change storyboard, shot, line, caption, or character ids during dubbing."
179
+ ],
180
+ captionStyle: "bottom-center high-contrast rounded plate with line-safe captions",
181
+ continuityRules: [
182
+ "Miko stays cyan on screen-left unless shot blocking explicitly moves them.",
183
+ "Luma stays warm gold on screen-right unless shot blocking explicitly moves them.",
184
+ "Glow stones brighten only after the teamwork shot begins."
185
+ ]
186
+ },
187
+ continuityRules: [
188
+ "Story bible ids, shot ids, caption ids, and AuraVoice line ids stay stable across language dubs.",
189
+ "Props can upgrade to typed GLBs only through generated ./aura-assets imports."
190
+ ],
191
+ safety: {
192
+ childSafe: true,
193
+ captionRequired: true,
194
+ reducedMotionDefault: true,
195
+ highContrastDefault: true,
196
+ flashing: "reduced"
197
+ },
198
+ beats: [
199
+ {
200
+ id: "beat-open",
201
+ sceneId: "storyboard-moon-garden",
202
+ shotId: "shot-moon-garden-open",
203
+ locationId: "moon-garden",
204
+ summary: "Miko notices moon dust dimming the garden lights.",
205
+ visualIntent: "Wide moon-garden reveal with two robot silhouettes and readable bottom captions.",
206
+ duration: 20,
207
+ characters: ["miko", "luma"],
208
+ props: ["moon-lilies", "glow-stones"],
209
+ gestureByCharacterId: { miko: "gentle-point", luma: "soft-nod" },
210
+ blockingByCharacterId: {
211
+ miko: { position: [-0.8, 0.75, 0], layer: "midground" },
212
+ luma: { position: [0.8, 0.72, 0], layer: "midground" }
213
+ },
214
+ dialogue: [
215
+ {
216
+ speakerId: "miko",
217
+ text: "Luma, the moon lilies are losing their sparkle.",
218
+ emotion: "concerned",
219
+ delivery: "natural",
220
+ audioFile: "assets/audio/en/shot-moon-garden-open-line-1.wav"
221
+ },
222
+ {
223
+ speakerId: "luma",
224
+ text: "Then we sweep softly and wake the glow stones.",
225
+ emotion: "happy",
226
+ delivery: "slow",
227
+ audioFile: "assets/audio/en/shot-moon-garden-open-line-2.wav"
228
+ }
229
+ ]
230
+ },
231
+ {
232
+ id: "beat-teamwork",
233
+ sceneId: "storyboard-moon-garden",
234
+ shotId: "shot-glow-stone-teamwork",
235
+ locationId: "moon-garden",
236
+ summary: "The robots clean in rhythm while the glow stones pulse back on.",
237
+ visualIntent: "Medium two-shot with gentle broom arcs, stable character ids, and no flashing.",
238
+ duration: 22,
239
+ characters: ["miko", "luma"],
240
+ props: ["glow-broom", "glow-stones"],
241
+ gestureByCharacterId: { miko: "curious-lean", luma: "small-wave" },
242
+ blockingByCharacterId: {
243
+ miko: { position: [-0.55, 0.75, 0.05], layer: "foreground" },
244
+ luma: { position: [0.62, 0.72, -0.02], layer: "foreground" }
245
+ },
246
+ dialogue: [
247
+ {
248
+ speakerId: "miko",
249
+ text: "I will polish the blue stones one tiny circle at a time.",
250
+ emotion: "curious",
251
+ delivery: "natural",
252
+ audioFile: "assets/audio/en/shot-glow-stone-teamwork-line-1.wav"
253
+ },
254
+ {
255
+ speakerId: "luma",
256
+ text: "And I will hum the garden's sleepy cleanup song.",
257
+ emotion: "happy",
258
+ delivery: "sing-song",
259
+ audioFile: "assets/audio/en/shot-glow-stone-teamwork-line-2.wav"
260
+ }
261
+ ]
262
+ },
263
+ {
264
+ id: "beat-finish",
265
+ sceneId: "storyboard-moon-garden",
266
+ shotId: "shot-moon-garden-finish",
267
+ locationId: "moon-garden",
268
+ summary: "The moon garden glows again and the robots wave goodnight.",
269
+ visualIntent: "Soft push-in to a finished garden, thumbnail-safe framing, and final caption hold.",
270
+ duration: 18,
271
+ characters: ["miko", "luma"],
272
+ props: ["moon-lilies", "glow-stones"],
273
+ gestureByCharacterId: { miko: "small-wave", luma: "two-hand-wave" },
274
+ blockingByCharacterId: {
275
+ miko: { position: [-0.65, 0.75, 0], layer: "midground" },
276
+ luma: { position: [0.68, 0.72, 0], layer: "midground" }
277
+ },
278
+ dialogue: [
279
+ {
280
+ speakerId: "luma",
281
+ text: "The moon lilies are twinkling again.",
282
+ emotion: "excited",
283
+ delivery: "natural",
284
+ audioFile: "assets/audio/en/shot-moon-garden-finish-line-1.wav"
285
+ },
286
+ {
287
+ speakerId: "miko",
288
+ text: "Goodnight, little garden. Keep glowing.",
289
+ emotion: "happy",
290
+ delivery: "slow",
291
+ audioFile: "assets/audio/en/shot-moon-garden-finish-line-2.wav"
292
+ }
293
+ ]
294
+ }
295
+ ],
296
+ generatedAt: "2026-06-03T00:00:00.000Z"
297
+ });
298
+
299
+ export const storyBible = episode.storyBible;
300
+ export const shotList = storyBible.shotList;