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
feat: mood board image analysis now captures emotion and feel, not just literal content
[._.]/ Adam Eivy40fa5136858a
diff --git a/server/services/mediaPromptFromMedia.js b/server/services/mediaPromptFromMedia.jsindex 92b4ef8976..54f7350082 100644--- a/server/services/mediaPromptFromMedia.js+++ b/server/services/mediaPromptFromMedia.js@@ -74,13 +74,14 @@ export function buildPromptFromMediaPrompt({ targets, mediaKind, frameCount, max' "videoNegativePrompt": "<what a video model should avoid, or empty string>",',);}- fields.push(' "rationale": "<one concise sentence about the look and, if video, the motion>"');+ fields.push(' "rationale": "<one concise sentence about the look, the emotion/feel it evokes, and, if video, the motion>"');const rules = ['- Output ONLY valid JSON. Replace every <…> with real content; do NOT emit the literal angle-bracket text.','- Each prompt field must be the COMPLETE ready-to-render text, paragraph-style — not a summary, not a caption of the file, not a list of changes.','- Start directly with the subject or scene content. Never prefix prompts with instructions such as Create, Generate, Make, or Render an image/video of. No conversational preamble.',- '- Describe what is actually visible: subject, setting, materials, lighting, color, composition, camera, mood, style.',+ '- Describe what is actually visible: subject, setting, materials, lighting, color palette, composition, camera, style.',+ '- Capture the EMOTION and FEEL, not just the literal content. A flat machine label ("a woman with her fingers near her lips") is a failure; read expression, gaze, posture, gesture tension, and atmosphere, and say what they convey ("a woman overcome with passion, her fingers pressing awkwardly into her lips, eyes half-lost"). Name the mood in evocative, concrete language (longing, unease, tenderness, restless energy) and tie it to the visual choices that produce it (color temperature, contrast, grain, softness, framing).','- Do not invent brands, logos, or named characters that are not visible.',];if (wantImage) {diff --git a/server/services/mediaPromptFromMedia.test.js b/server/services/mediaPromptFromMedia.test.jsindex d13e03f6d0..1de35ff773 100644--- a/server/services/mediaPromptFromMedia.test.js+++ b/server/services/mediaPromptFromMedia.test.js@@ -98,6 +98,12 @@ beforeEach(() => {});describe('buildPromptFromMediaPrompt', () => {+ it('asks for emotion and feel, not just literal content', () => {+ const prompt = buildPromptFromMediaPrompt({ targets: ['image'], mediaKind: 'image', frameCount: 1 });+ expect(prompt).toMatch(/EMOTION and FEEL/);+ expect(prompt).toMatch(/expression, gaze, posture/);+ });+it('asks only for image fields when that is the target', () => {const prompt = buildPromptFromMediaPrompt({ targets: ['image'], mediaKind: 'image', frameCount: 1 });expect(prompt).toContain('imagePrompt');