Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
fix storyboard prepare crashing with "d is not defined" once scenes are planned
[._.]/ Adam Eivydd8c94c64f3b
diff --git a/server/routes/musicVideoProductionReview.test.js b/server/routes/musicVideoProductionReview.test.jsindex 016e47f228..0117785cbb 100644--- a/server/routes/musicVideoProductionReview.test.js+++ b/server/routes/musicVideoProductionReview.test.js@@ -78,6 +78,17 @@ beforeEach(async () => {afterAll(cleanupTempDataRoots);describe('human-reviewed Music Video workflow', () => {+ it('drafts storyboard shots for planned scenes, taking camera and transition from the Cast & Sets world', async () => {+ await save({ ...draft, storyboard: [] });+ await store.mutateProjectRecord(project.id, current => ({ project: { ...current,+ castAndSets: { status: 'approved', direction: { world: { camera: 'Chase cam behind the plane', transitions: 'Warp streaks' } } } } }));+ expect((await approve('art')).status).toBe(200);+ const prepared = await request(app).post(`${base}/production-review/prepare`).send({});+ expect(prepared.status).toBe(200);+ expect(prepared.body.project.productionReview.draft.storyboard).toEqual([expect.objectContaining({+ lyricCueIds: ['line-a'], action: 'A paper figure opens a painted doorway.', camera: 'Chase cam behind the plane', transition: 'Warp streaks' })]);+ });+it('prepares an absent code-first medium plan before human storyboard approval and real authoring admission', async () => {await store.updateProject(project.id, { mediaMode: 'code-only', composition: { mode: 'document', authoringRenderer: 'canvas' },productionPolicy: { strategy: 'code-first', maxGeneratedVideoPercent: 0 } });diff --git a/server/services/musicVideo/productionReviewService.js b/server/services/musicVideo/productionReviewService.jsindex be09503efc..db226565df 100644--- a/server/services/musicVideo/productionReviewService.js+++ b/server/services/musicVideo/productionReviewService.js@@ -225,11 +225,13 @@ export async function prepareProductionReview(id, options = {}) {const { project: planned } = await mutateProjectRecord(id, current => {const latest = current.productionReview.draft;if (latest.storyboardSource === 'document') return { project: current };+ // New shots borrow the Cast & Sets world's camera and transition language when the scene has none.+ const world = current.castAndSets?.direction?.world || {};const storyboard = [...latest.storyboard, ...current.scenes.filter(scene => !latest.storyboard.some(shot => shot.sceneId === scene.sceneId)).map(scene => ({sceneId: scene.sceneId,lyricCueIds: (current.lyricCues || []).filter(c => c.startSec < scene.endSec && c.endSec > scene.startSec).map(c => c.id),action: scene.visualIntent || scene.prompt || '', staging: scene.framePrompt || '',- camera: scene.direction?.camera || d.world?.camera || '', transition: d.world?.transitions || '',+ camera: scene.direction?.camera || world.camera || '', transition: world.transitions || '',}))];return { project: { ...current, productionReview: { ...current.productionReview, draft: { ...latest, storyboard } } } };});