first commit

This commit is contained in:
Ichitux
2026-04-05 03:08:53 +02:00
commit 1082d36c12
28015 changed files with 3767672 additions and 0 deletions

20
server/dist/prompts/genreTemplates.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
export type GenreType = 'fiction' | 'mystery' | 'romance' | 'scifi' | 'fantasy' | 'horror' | 'thriller' | 'children' | 'nonfiction' | 'selfhelp' | 'business' | 'memoir';
export interface GenreTemplate {
name: string;
description: string;
icon: string;
structure: string[];
prompts: {
outline: string;
chapter: string;
character?: string;
setting?: string;
};
defaults: {
tone: string;
pov: string;
typicalLength?: string;
};
}
export declare const genreTemplates: Record<GenreType, GenreTemplate>;
//# sourceMappingURL=genreTemplates.d.ts.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"genreTemplates.d.ts","sourceRoot":"","sources":["../../src/prompts/genreTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GACjB,SAAS,GACT,SAAS,GACT,SAAS,GACT,OAAO,GACP,SAAS,GACT,QAAQ,GACR,UAAU,GACV,UAAU,GACV,YAAY,GACZ,UAAU,GACV,UAAU,GACV,QAAQ,CAAC;AAEb,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,OAAO,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;QACZ,aAAa,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;CACH;AAED,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,SAAS,EAAE,aAAa,CAqL3D,CAAC"}

186
server/dist/prompts/genreTemplates.js vendored Normal file
View File

@@ -0,0 +1,186 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.genreTemplates = void 0;
exports.genreTemplates = {
fiction: {
name: 'Fiction',
description: 'General literary fiction with focus on character development and narrative',
icon: '📖',
structure: ['Introduction', 'Rising Action', 'Climax', 'Falling Action', 'Resolution'],
prompts: {
outline: 'Create a compelling fiction outline with well-developed characters and a satisfying narrative arc.',
chapter: 'Write a chapter that advances the plot while deepening character development.'
},
defaults: {
tone: 'engaging and literary',
pov: 'third-person or first-person',
typicalLength: '70,000-100,000 words'
}
},
mystery: {
name: 'Mystery',
description: 'Puzzle-driven narratives with clues, suspects, and a satisfying reveal',
icon: '🔍',
structure: ['Crime/Discovery', 'Investigation', 'Red Herrings', 'Breakthrough', 'Confrontation', 'Resolution'],
prompts: {
outline: 'Create a mystery outline with a compelling crime, multiple suspects with motives, red herrings, and a surprising but logical solution.',
chapter: 'Write a mystery chapter that reveals clues while maintaining suspense. Balance investigation scenes with character development.'
},
defaults: {
tone: 'suspenseful and methodical',
pov: 'third-person limited or first-person detective',
typicalLength: '80,000-100,000 words'
}
},
romance: {
name: 'Romance',
description: 'Love-centered stories with emotional intimacy and satisfying relationship resolution',
icon: '💕',
structure: ['Meet Cute', 'Attraction', 'Conflict', 'Dark Moment', 'Grand Gesture', 'HEA/HFN'],
prompts: {
outline: 'Create a romance outline with compelling chemistry, meaningful conflict, and an emotionally satisfying happy-ever-after or happy-for-now ending.',
chapter: 'Write a romance chapter that develops the relationship, creates emotional depth, and builds romantic tension.'
},
defaults: {
tone: 'warm and emotionally engaging',
pov: 'dual POV or single POV',
typicalLength: '50,000-90,000 words'
}
},
scifi: {
name: 'Science Fiction',
description: 'Speculative fiction exploring technology, space, time, and their impact on humanity',
icon: '🚀',
structure: ['Status Quo', 'Inciting Discovery', 'Exploration', 'Crisis', 'Resolution/New Order'],
prompts: {
outline: 'Create a sci-fi outline with believable technology/science, compelling world-building, and exploration of big ideas about humanity and progress.',
chapter: 'Write a sci-fi chapter that balances technical concepts with character emotion. Show the impact of technology on human experience.'
},
defaults: {
tone: 'thoughtful and imaginative',
pov: 'third-person omniscient or limited',
typicalLength: '90,000-120,000 words'
}
},
fantasy: {
name: 'Fantasy',
description: 'Magical worlds with supernatural elements, quests, and epic stakes',
icon: '🐉',
structure: ['Ordinary World', 'Call to Adventure', 'Trials', 'Ordeal', 'Reward', 'Return'],
prompts: {
outline: 'Create a fantasy outline with consistent magic systems, rich world-building, memorable characters, and an epic quest or conflict.',
chapter: 'Write a fantasy chapter that showcases the magic system and world while advancing character arcs and plot.'
},
defaults: {
tone: 'epic and wondrous',
pov: 'third-person limited or multiple POV',
typicalLength: '100,000-150,000 words'
}
},
horror: {
name: 'Horror',
description: 'Fear-driven narratives designed to unsettle, frighten, and provoke dread',
icon: '👻',
structure: ['Normalcy', 'First Disturbance', 'Escalation', 'All Is Lost', 'Confrontation', 'Aftermath'],
prompts: {
outline: 'Create a horror outline with building dread, effective scares, and psychological depth. Balance tension with release.',
chapter: 'Write a horror chapter that builds atmosphere and dread. Use pacing and sensory details to create fear.'
},
defaults: {
tone: 'dark and unsettling',
pov: 'first-person or close third-person',
typicalLength: '70,000-90,000 words'
}
},
thriller: {
name: 'Thriller',
description: 'High-stakes, fast-paced narratives with constant tension and danger',
icon: '⚡',
structure: ['Status Quo', 'Threat Emerges', 'Cat and Mouse', 'All Is Lost', 'Final Confrontation'],
prompts: {
outline: 'Create a thriller outline with relentless pacing, high stakes, and a formidable antagonist. Keep tension high throughout.',
chapter: 'Write a thriller chapter with strong pacing, cliffhangers, and escalating stakes. Keep readers on edge.'
},
defaults: {
tone: 'intense and gripping',
pov: 'multiple POV or close third-person',
typicalLength: '80,000-100,000 words'
}
},
children: {
name: "Children's Book",
description: 'Age-appropriate stories with clear morals, simple language, and engaging characters',
icon: '🧸',
structure: ['Introduction', 'Problem', 'Attempts', 'Solution', 'Lesson'],
prompts: {
outline: 'Create a children\'s book outline with age-appropriate themes, simple but engaging plot, and a clear positive message or lesson.',
chapter: 'Write a children\'s book chapter with simple vocabulary, engaging rhythm, and clear imagery. Keep sentences short and lively.'
},
defaults: {
tone: 'warm and encouraging',
pov: 'third-person simple',
typicalLength: '500-1000 words (picture book) or 10,000-30,000 (chapter book)'
}
},
nonfiction: {
name: 'Non-Fiction',
description: 'Factual, informative content organized around a central topic or argument',
icon: '📚',
structure: ['Introduction/Thesis', 'Background', 'Main Arguments', 'Evidence', 'Conclusion'],
prompts: {
outline: 'Create a non-fiction outline with clear organization, logical flow, and well-supported arguments or information.',
chapter: 'Write a non-fiction chapter that is informative, well-organized, and engaging. Use examples and clear explanations.'
},
defaults: {
tone: 'authoritative and accessible',
pov: 'authoritative voice',
typicalLength: '60,000-80,000 words'
}
},
selfhelp: {
name: 'Self-Help',
description: 'Practical guidance for personal improvement and growth',
icon: '🌱',
structure: ['Problem Identification', 'Root Causes', 'Solution Framework', 'Implementation', 'Maintenance'],
prompts: {
outline: 'Create a self-help outline with actionable advice, practical exercises, and a clear transformation path for readers.',
chapter: 'Write a self-help chapter with clear takeaways, practical exercises, and motivating examples. Balance theory with action.'
},
defaults: {
tone: 'encouraging and practical',
pov: 'direct address to reader',
typicalLength: '50,000-70,000 words'
}
},
business: {
name: 'Business',
description: 'Professional insights, strategies, and case studies for business success',
icon: '💼',
structure: ['Current Landscape', 'Key Principles', 'Case Studies', 'Implementation Guide', 'Future Outlook'],
prompts: {
outline: 'Create a business book outline with actionable strategies, real-world examples, and clear frameworks readers can apply.',
chapter: 'Write a business chapter with data-driven insights, case studies, and actionable takeaways. Balance theory with practice.'
},
defaults: {
tone: 'professional and authoritative',
pov: 'expert voice',
typicalLength: '60,000-80,000 words'
}
},
memoir: {
name: 'Memoir',
description: 'Personal life stories focused on transformation and universal themes',
icon: '✍️',
structure: ['Before', 'Catalyst', 'Journey', 'Transformation', 'After/Reflection'],
prompts: {
outline: 'Create a memoir outline that weaves personal narrative with universal themes. Focus on transformation and meaning.',
chapter: 'Write a memoir chapter with vivid scenes, honest reflection, and emotional truth. Show, don\'t tell.'
},
defaults: {
tone: 'intimate and reflective',
pov: 'first-person',
typicalLength: '70,000-90,000 words'
}
}
};
//# sourceMappingURL=genreTemplates.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"genreTemplates.js","sourceRoot":"","sources":["../../src/prompts/genreTemplates.ts"],"names":[],"mappings":";;;AAgCa,QAAA,cAAc,GAAqC;IAC9D,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,4EAA4E;QACzF,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,CAAC;QACtF,OAAO,EAAE;YACP,OAAO,EAAE,oGAAoG;YAC7G,OAAO,EAAE,+EAA+E;SACzF;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,uBAAuB;YAC7B,GAAG,EAAE,8BAA8B;YACnC,aAAa,EAAE,sBAAsB;SACtC;KACF;IACD,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,wEAAwE;QACrF,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,CAAC,iBAAiB,EAAE,eAAe,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,YAAY,CAAC;QAC9G,OAAO,EAAE;YACP,OAAO,EAAE,wIAAwI;YACjJ,OAAO,EAAE,iIAAiI;SAC3I;QACD,QAAQ,EAAE;YACR,IAAI,EAAE,4BAA4B;YAClC,GAAG,EAAE,gDAAgD;YACrD,aAAa,EAAE,sBAAsB;SACtC;KACF;IACD,OAAO,EAAE;QACP,IAAI,EAAE,SAAS;QACf,WAAW,EAAE,sFAAsF;QACnG,IAAI,EAAE,IAAI;QACV,SAAS,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,eAAe,EAAE,SAAS,CAAC;QAC7F,OAAO,EAAE;YACP,OAAO,EAAE,kJAAkJ;YAC3J,OA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