| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- // Models
- export { type BookConfig, type Platform, type Genre, type BookStatus, BookConfigSchema, PlatformSchema, GenreSchema, BookStatusSchema } from "./models/book.js";
- export { type ChapterMeta, type ChapterStatus, ChapterMetaSchema, ChapterStatusSchema } from "./models/chapter.js";
- export { type ProjectConfig, type LLMConfig, type NotifyChannel, type DetectionConfig, type QualityGates, type AgentLLMOverride, ProjectConfigSchema, LLMConfigSchema, AgentLLMOverrideSchema, DetectionConfigSchema, QualityGatesSchema } from "./models/project.js";
- export { type CurrentState, type ParticleLedger, type PendingHooks, type PendingHook, type LedgerEntry } from "./models/state.js";
- export { type GenreProfile, type ParsedGenreProfile, GenreProfileSchema, parseGenreProfile } from "./models/genre-profile.js";
- export { type BookRules, type ParsedBookRules, BookRulesSchema, parseBookRules } from "./models/book-rules.js";
- export { type DetectionHistoryEntry, type DetectionStats } from "./models/detection.js";
- export { type StyleProfile } from "./models/style-profile.js";
- // LLM
- export { createLLMClient, chatCompletion, chatWithTools, createStreamMonitor, PartialResponseError, type LLMClient, type LLMResponse, type LLMMessage, type ToolDefinition, type ToolCall, type AgentMessage, type ChatWithToolsResult, type StreamProgress, type OnStreamProgress } from "./llm/provider.js";
- // Agents
- export { BaseAgent, type AgentContext } from "./agents/base.js";
- export { ArchitectAgent, type ArchitectOutput } from "./agents/architect.js";
- export { WriterAgent, type WriteChapterInput, type WriteChapterOutput, type TokenUsage } from "./agents/writer.js";
- export { ContinuityAuditor, type AuditResult, type AuditIssue } from "./agents/continuity.js";
- export { ReviserAgent, type ReviseOutput, type ReviseMode } from "./agents/reviser.js";
- export { RadarAgent, type RadarResult, type RadarRecommendation } from "./agents/radar.js";
- export { FanqieRadarSource, QidianRadarSource, TextRadarSource, type RadarSource, type PlatformRankings, type RankingEntry } from "./agents/radar-source.js";
- export { readGenreProfile, readBookRules, listAvailableGenres, getBuiltinGenresDir } from "./agents/rules-reader.js";
- export { buildWriterSystemPrompt } from "./agents/writer-prompts.js";
- export { analyzeAITells, type AITellResult, type AITellIssue } from "./agents/ai-tells.js";
- export { analyzeSensitiveWords, type SensitiveWordResult, type SensitiveWordMatch } from "./agents/sensitive-words.js";
- export { detectAIContent, type DetectionResult } from "./agents/detector.js";
- export { analyzeStyle } from "./agents/style-analyzer.js";
- export { analyzeDetectionInsights } from "./agents/detection-insights.js";
- export { validatePostWrite, type PostWriteViolation } from "./agents/post-write-validator.js";
- export { ChapterAnalyzerAgent, type AnalyzeChapterInput, type AnalyzeChapterOutput } from "./agents/chapter-analyzer.js";
- export { parseWriterOutput, parseCreativeOutput, type ParsedWriterOutput, type CreativeOutput } from "./agents/writer-parser.js";
- export { buildSettlerSystemPrompt, buildSettlerUserPrompt } from "./agents/settler-prompts.js";
- export { parseSettlementOutput, type SettlementOutput } from "./agents/settler-parser.js";
- // Utils
- export { fetchUrl } from "./utils/web-search.js";
- export { splitChapters, type SplitChapter } from "./utils/chapter-splitter.js";
- export { createLogger, createStderrSink, createJsonLineSink, nullSink, type Logger, type LogSink, type LogLevel, type LogEntry } from "./utils/logger.js";
- // Pipeline
- export { PipelineRunner, type PipelineConfig, type ChapterPipelineResult, type DraftResult, type ReviseResult, type TruthFiles, type BookStatusInfo, type ImportChaptersInput, type ImportChaptersResult, type TokenUsageSummary } from "./pipeline/runner.js";
- export { Scheduler, type SchedulerConfig } from "./pipeline/scheduler.js";
- export { runAgentLoop, AGENT_TOOLS as AGENT_TOOLS, type AgentLoopOptions } from "./pipeline/agent.js";
- export { detectChapter, detectAndRewrite, loadDetectionHistory, type DetectChapterResult, type DetectAndRewriteResult } from "./pipeline/detection-runner.js";
- // State
- export { StateManager } from "./state/manager.js";
- // Notify
- export { dispatchNotification, dispatchWebhookEvent, type NotifyMessage } from "./notify/dispatcher.js";
- export { sendTelegram, type TelegramConfig } from "./notify/telegram.js";
- export { sendFeishu, type FeishuConfig } from "./notify/feishu.js";
- export { sendWechatWork, type WechatWorkConfig } from "./notify/wechat-work.js";
- export { sendWebhook, type WebhookConfig, type WebhookEvent, type WebhookPayload } from "./notify/webhook.js";
|