37 lines
1.0 KiB
TypeScript
37 lines
1.0 KiB
TypeScript
/**
|
|
* Prompt System - Simplified prompt management
|
|
*
|
|
* Features:
|
|
* - File-based prompt storage in templates/
|
|
* - Snippet composition via {{snippet:name}} syntax
|
|
* - Conditional blocks via {{#if flag}}...{{/if}} syntax
|
|
* - Variable interpolation via {{variable}} syntax
|
|
*/
|
|
|
|
// Types
|
|
import type { PromptId } from './types';
|
|
export type { PromptId, SnippetId, LoadedPrompt } from './types';
|
|
|
|
// Loader functions
|
|
export {
|
|
loadPrompt,
|
|
loadSnippet,
|
|
buildPrompt,
|
|
interpolateVariables,
|
|
processSnippets,
|
|
processConditionalBlocks,
|
|
} from './loader';
|
|
|
|
// Prompt IDs constant
|
|
export const PROMPT_IDS = {
|
|
INTERACTIVE_OUTLINES: 'interactive-outlines',
|
|
TASK_ENGINE_OUTLINES: 'task-engine-outlines',
|
|
WEB_SEARCH_QUERY_REWRITE: 'web-search-query-rewrite',
|
|
AGENT_SYSTEM: 'agent-system',
|
|
AGENT_SYSTEM_WB_TEACHER: 'agent-system-wb-teacher',
|
|
AGENT_SYSTEM_WB_ASSISTANT: 'agent-system-wb-assistant',
|
|
AGENT_SYSTEM_WB_STUDENT: 'agent-system-wb-student',
|
|
DIRECTOR: 'director',
|
|
COURSE_FRAMEWORK: 'course-framework',
|
|
} as const satisfies Record<string, PromptId>;
|