Files
Sauci/apps/admin/src/lib/ai/index.ts
T
jjbrunton 4e40b92b16 Add MCP server and enhance AI content tools
Implement self-hosted MCP server for admin actions, update AI generation tools in admin dashboard, and refine mobile app stores and components.
2026-01-10 19:24:06 +00:00

70 lines
1.9 KiB
TypeScript

// =============================================================================
// AI Module - Main Entry Point
// Re-exports all public APIs for backwards compatibility
// =============================================================================
// Types
export type {
ModelPurpose,
CouncilGenerator,
CouncilSelectionMode,
CouncilConfig,
GeneratedPack,
GeneratedQuestion,
GeneratedCategoryIdea,
GeneratedPackIdea,
QuestionReview,
ReviewResult,
GenerationCandidate,
CouncilGenerationResult,
GeneratorStatus,
GenerationProgress,
ProgressCallback,
PooledQuestion,
CherryPickEvaluation,
CherryPickResult,
TargetAnalysis,
TextAnalysis,
DeletionAnalysis,
PropsAnalysis,
ExtractedTopic,
TopicExtractionResult,
SelectionResult,
ToneLevel,
} from './types';
// Client
export { getOpenAI, getModel, getShortModelName } from './client';
// Config
export {
getCouncilConfig,
initializeAiConfig,
TONE_LEVELS,
INTENSITY_LEVELS,
INTENSITY_GUIDE,
INTENSITY_GUIDE_SHORT,
REVIEW_GUIDELINES,
TONE_INSTRUCTIONS,
SYSTEM_MESSAGES,
} from './config';
// Generators
export { generatePack, suggestPacks } from './generators/packs';
export { generateCategory, suggestCategories } from './generators/categories';
export { generateQuestions, generateQuestionsWithModel } from './generators/questions';
export { generateQuestionsWithCouncil } from './generators/council';
// Review
export { reviewGeneratedQuestions, selectBestGeneration } from './review';
// Analyzers
export { analyzeQuestionText } from './analyzers/text';
export { analyzeQuestionTargets } from './analyzers/targets';
export { analyzeQuestionDeletions } from './analyzers/deletions';
export { analyzeQuestionProps } from './analyzers/props';
// Tools
export { polishContent } from './tools/polish';
export { extractTopicsFromPack } from './tools/topics';