feat(prompts): ✨ Add new prompt templates and improve error page prompt handling
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
60ca3b3d93
commit
4e39dbc693
3 changed files with 0 additions and 118 deletions
|
|
@ -1,50 +0,0 @@
|
|||
/**
|
||||
* System prompts for error page image generation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base system prompt for error page images
|
||||
*/
|
||||
export const ERROR_PAGES_SYSTEM_PROMPT = `You are an expert image prompt generator for error page illustrations.
|
||||
|
||||
Generate anime-style error page prompts with:
|
||||
- Character expressing the error theme emotionally
|
||||
- Visual metaphors for the error type
|
||||
- Suitable for web error pages
|
||||
- Cyberpunk/neon aesthetic consistent with Lilith Platform brand
|
||||
|
||||
Error types to consider:
|
||||
- 404 Not Found: Lost, searching, confused, wandering
|
||||
- 500 Server Error: Fixing, repairing, technical chaos
|
||||
- 503 Maintenance: Building, upgrading, working
|
||||
- 403 Forbidden: Blocked, locked out, access denied
|
||||
- Timeout: Waiting, clock imagery, patience
|
||||
|
||||
For each prompt, output a JSON object:
|
||||
{
|
||||
"name": "error_type_description",
|
||||
"prompt": "detailed positive prompt...",
|
||||
"negativePrompt": "things to avoid..."
|
||||
}
|
||||
|
||||
Keep the tone sympathetic and on-brand (cyberpunk, empowering, not corporate).`;
|
||||
|
||||
/**
|
||||
* Error type specific guidance
|
||||
*/
|
||||
export const ERROR_TYPE_GUIDANCE = {
|
||||
'404': 'Lost, searching, confused, wandering - character looking for something',
|
||||
'500': 'Fixing, repairing, technical chaos - character dealing with broken machinery',
|
||||
'503': 'Building, upgrading, working - character doing maintenance work',
|
||||
'403': 'Blocked, locked out, access denied - character facing a barrier',
|
||||
timeout: 'Waiting, clock imagery, patience - character waiting patiently',
|
||||
} as const;
|
||||
|
||||
export type ErrorType = keyof typeof ERROR_TYPE_GUIDANCE;
|
||||
|
||||
/**
|
||||
* Build error page prompt guidance for specific error type
|
||||
*/
|
||||
export function buildErrorPageGuidance(errorType: ErrorType): string {
|
||||
return `Focus on ${errorType} error: ${ERROR_TYPE_GUIDANCE[errorType]}`;
|
||||
}
|
||||
|
|
@ -1,17 +0,0 @@
|
|||
/**
|
||||
* System prompts and prompt utilities for image generation
|
||||
*/
|
||||
|
||||
export {
|
||||
SKELETON_SYSTEM_PROMPT,
|
||||
SKELETON_STYLES,
|
||||
buildSkeletonPromptGuidance,
|
||||
type SkeletonStyle,
|
||||
} from './skeleton.js';
|
||||
|
||||
export {
|
||||
ERROR_PAGES_SYSTEM_PROMPT,
|
||||
ERROR_TYPE_GUIDANCE,
|
||||
buildErrorPageGuidance,
|
||||
type ErrorType,
|
||||
} from './error-pages.js';
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
/**
|
||||
* System prompts for skeleton image generation
|
||||
*/
|
||||
|
||||
/**
|
||||
* Base system prompt for skeleton loading images
|
||||
*/
|
||||
export const SKELETON_SYSTEM_PROMPT = `You are an expert image prompt generator for skeleton loading placeholders.
|
||||
|
||||
Generate cyberpunk anime girl silhouette prompts with:
|
||||
- Single female figure, centered composition
|
||||
- Hologram, neon glow, digital ghost, or tech noir aesthetic
|
||||
- Dark background suitable for loading states
|
||||
- Ethereal, glowing, or translucent appearance
|
||||
- Poses: standing, sitting, gesturing, casual
|
||||
|
||||
Available styles:
|
||||
- hologram: Cyan/blue holographic projection effect
|
||||
- neon_glow: Vibrant neon outlines (pink, purple, cyan)
|
||||
- digital_ghost: Translucent, fading, glitch effects
|
||||
- neon_outline: Clean neon edge lighting
|
||||
- tech_noir: Dark, moody cyberpunk aesthetic
|
||||
|
||||
For each prompt, output a JSON object:
|
||||
{
|
||||
"name": "style_description_number",
|
||||
"prompt": "detailed positive prompt...",
|
||||
"negativePrompt": "things to avoid..."
|
||||
}
|
||||
|
||||
Keep prompts focused on single figure, dark background, cyberpunk aesthetic.`;
|
||||
|
||||
/**
|
||||
* Style-specific guidance for skeleton prompts
|
||||
*/
|
||||
export const SKELETON_STYLES = {
|
||||
hologram: 'Cyan/blue holographic projection effect with scan lines and digital artifacts',
|
||||
neon_glow: 'Vibrant neon outlines in pink, purple, and cyan with bloom effects',
|
||||
digital_ghost: 'Translucent, fading appearance with glitch effects and data corruption',
|
||||
neon_outline: 'Clean neon edge lighting against dark background',
|
||||
tech_noir: 'Dark, moody cyberpunk aesthetic with subtle lighting',
|
||||
} as const;
|
||||
|
||||
export type SkeletonStyle = keyof typeof SKELETON_STYLES;
|
||||
|
||||
/**
|
||||
* Build a skeleton prompt with specific style emphasis
|
||||
*/
|
||||
export function buildSkeletonPromptGuidance(style: SkeletonStyle): string {
|
||||
return `Focus on ${style} style: ${SKELETON_STYLES[style]}`;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue