Bot & Automation
AI Creator Studio Telegram
/root/hermes-projects/AI Creator Studio Telegram
packages/prompts/src/prompt-enhancer.ts
text
import { PRESET_DEFINITIONS, type EnhancedPrompt } from "@ai-creator/core";
interface EnhancePromptInput {
prompt: string;
preset: string;
mode: string;
}
export function enhancePrompt(input: EnhancePromptInput): EnhancedPrompt {
const preset = PRESET_DEFINITIONS.find((item) => item.id === input.preset || item.label === input.preset);
const prompt = input.prompt.trim();
const presetBias = preset?.promptBias ?? "cinematic, professional, clean composition";
const isVideo = input.mode.includes("video");
return {
subject: prompt,
style: `${preset?.label ?? input.preset} style, ${presetBias}, premium creator studio output`,
cameraMovement: isVideo
? "Smooth cinematic camera movement with controlled pacing and stable subject tracking"
: "Camera framing optimized for a strong hero composition",
environment: "Environment should support the subject clearly with professional production design",
lighting: "Controlled high-quality lighting, balanced contrast, clean highlights, natural shadows",
composition: "Clear subject hierarchy, strong framing, uncluttered background, professional visual balance",
motion: isVideo
? "Intentional motion with consistent subject geometry and clean temporal continuity"
: "Implied motion only where it improves the visual story",
qualitySettings: "High detail, clean texture, minimal artifacts, production-ready, social and commercial ready",
negativePrompt:
"low quality, distortion, warped anatomy, broken geometry, unreadable text, artifacts, noisy texture",
providerNotes: "Hermes should select the provider by capability, quota, expected quality, latency, and cost.",
};
}