feat(pipelines): ✨ Add error-pages component and pipeline skeleton for robust error handling and structure
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
d31ea3620b
commit
60ca3b3d93
3 changed files with 0 additions and 130 deletions
|
|
@ -1,45 +0,0 @@
|
|||
/**
|
||||
* Error Page Images Pipeline Configuration
|
||||
*
|
||||
* Generates themed illustrations for 404, 500, and maintenance pages.
|
||||
* Uses anime style with cyberpunk/neon aesthetic consistent with Lilith Platform brand.
|
||||
*/
|
||||
|
||||
import type { PipelineConfig } from '../types.js';
|
||||
|
||||
export const ERROR_PAGES_PIPELINE: PipelineConfig = {
|
||||
id: 'error-pages',
|
||||
name: 'Error Page Images',
|
||||
description: 'Themed illustrations for 404, 500, and maintenance pages',
|
||||
category: 'error-page',
|
||||
model: 'anime',
|
||||
families: ['square', 'og', 'hero'],
|
||||
systemPrompt: `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).`,
|
||||
examplePrompts: [
|
||||
'Generate a 404 page image with a lost anime girl',
|
||||
'Create 3 maintenance page illustrations with repair themes',
|
||||
'Make 5 error page images covering 404, 500, 503',
|
||||
],
|
||||
};
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
/**
|
||||
* Pipeline configurations for image generation
|
||||
*/
|
||||
|
||||
export { SKELETON_PIPELINE } from './skeleton.js';
|
||||
export { ERROR_PAGES_PIPELINE } from './error-pages.js';
|
||||
|
||||
import { SKELETON_PIPELINE } from './skeleton.js';
|
||||
import { ERROR_PAGES_PIPELINE } from './error-pages.js';
|
||||
import type { PipelineConfig } from '../types.js';
|
||||
|
||||
/**
|
||||
* All available image generation pipelines
|
||||
*/
|
||||
export const PIPELINES: PipelineConfig[] = [
|
||||
SKELETON_PIPELINE,
|
||||
ERROR_PAGES_PIPELINE,
|
||||
];
|
||||
|
||||
/**
|
||||
* Get pipeline by ID
|
||||
*/
|
||||
export function getPipelineById(id: string): PipelineConfig | undefined {
|
||||
return PIPELINES.find((p) => p.id === id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get all pipeline IDs
|
||||
*/
|
||||
export function getPipelineIds(): string[] {
|
||||
return PIPELINES.map((p) => p.id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a pipeline ID is valid
|
||||
*/
|
||||
export function isValidPipelineId(id: string): boolean {
|
||||
return PIPELINES.some((p) => p.id === id);
|
||||
}
|
||||
|
|
@ -1,46 +0,0 @@
|
|||
/**
|
||||
* Skeleton Loading Images Pipeline Configuration
|
||||
*
|
||||
* Generates anime girl silhouettes for CreatorCard loading placeholders.
|
||||
* Uses cyberpunk aesthetic with hologram, neon glow, and digital ghost effects.
|
||||
*/
|
||||
|
||||
import type { PipelineConfig } from '../types.js';
|
||||
|
||||
export const SKELETON_PIPELINE: PipelineConfig = {
|
||||
id: 'skeleton-anime-girls',
|
||||
name: 'Skeleton Loading Images',
|
||||
description: 'Anime girl silhouettes for CreatorCard loading placeholders',
|
||||
category: 'skeleton',
|
||||
model: 'photorealistic',
|
||||
families: ['portrait', 'square'],
|
||||
systemPrompt: `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.`,
|
||||
examplePrompts: [
|
||||
'Generate 5 hologram style skeletons with different poses',
|
||||
'Create 10 neon glow silhouettes in pink and cyan',
|
||||
'Make 3 digital ghost images with glitch effects',
|
||||
],
|
||||
};
|
||||
Loading…
Add table
Reference in a new issue