llm-content-creator 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +309 -0
- package/dist/application/workflow/SyncExecutor.d.ts +75 -0
- package/dist/application/workflow/SyncExecutor.d.ts.map +1 -0
- package/dist/application/workflow/SyncExecutor.js +370 -0
- package/dist/application/workflow/SyncExecutor.js.map +1 -0
- package/dist/application/workflow/types.d.ts +46 -0
- package/dist/application/workflow/types.d.ts.map +1 -0
- package/dist/application/workflow/types.js +7 -0
- package/dist/application/workflow/types.js.map +1 -0
- package/dist/config/index.d.ts +173 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +288 -0
- package/dist/config/index.js.map +1 -0
- package/dist/domain/entities/QualityCheck.d.ts +181 -0
- package/dist/domain/entities/QualityCheck.d.ts.map +1 -0
- package/dist/domain/entities/QualityCheck.js +39 -0
- package/dist/domain/entities/QualityCheck.js.map +1 -0
- package/dist/domain/entities/Result.d.ts +103 -0
- package/dist/domain/entities/Result.d.ts.map +1 -0
- package/dist/domain/entities/Result.js +15 -0
- package/dist/domain/entities/Result.js.map +1 -0
- package/dist/domain/entities/Task.d.ts +130 -0
- package/dist/domain/entities/Task.d.ts.map +1 -0
- package/dist/domain/entities/Task.js +64 -0
- package/dist/domain/entities/Task.js.map +1 -0
- package/dist/domain/entities/TaskStep.d.ts +160 -0
- package/dist/domain/entities/TaskStep.d.ts.map +1 -0
- package/dist/domain/entities/TaskStep.js +30 -0
- package/dist/domain/entities/TaskStep.js.map +1 -0
- package/dist/domain/entities/TokenUsage.d.ts +70 -0
- package/dist/domain/entities/TokenUsage.d.ts.map +1 -0
- package/dist/domain/entities/TokenUsage.js +42 -0
- package/dist/domain/entities/TokenUsage.js.map +1 -0
- package/dist/domain/entities/index.d.ts +11 -0
- package/dist/domain/entities/index.d.ts.map +1 -0
- package/dist/domain/entities/index.js +16 -0
- package/dist/domain/entities/index.js.map +1 -0
- package/dist/domain/repositories/QualityCheckRepository.d.ts +49 -0
- package/dist/domain/repositories/QualityCheckRepository.d.ts.map +1 -0
- package/dist/domain/repositories/QualityCheckRepository.js +5 -0
- package/dist/domain/repositories/QualityCheckRepository.js.map +1 -0
- package/dist/domain/repositories/ResultRepository.d.ts +43 -0
- package/dist/domain/repositories/ResultRepository.d.ts.map +1 -0
- package/dist/domain/repositories/ResultRepository.js +5 -0
- package/dist/domain/repositories/ResultRepository.js.map +1 -0
- package/dist/domain/repositories/TaskRepository.d.ts +240 -0
- package/dist/domain/repositories/TaskRepository.d.ts.map +1 -0
- package/dist/domain/repositories/TaskRepository.js +7 -0
- package/dist/domain/repositories/TaskRepository.js.map +1 -0
- package/dist/domain/workflow/CheckpointManager.d.ts +94 -0
- package/dist/domain/workflow/CheckpointManager.d.ts.map +1 -0
- package/dist/domain/workflow/CheckpointManager.js +224 -0
- package/dist/domain/workflow/CheckpointManager.js.map +1 -0
- package/dist/domain/workflow/ContentCreatorGraph.d.ts +17 -0
- package/dist/domain/workflow/ContentCreatorGraph.d.ts.map +1 -0
- package/dist/domain/workflow/ContentCreatorGraph.js +381 -0
- package/dist/domain/workflow/ContentCreatorGraph.js.map +1 -0
- package/dist/domain/workflow/State.d.ts +172 -0
- package/dist/domain/workflow/State.d.ts.map +1 -0
- package/dist/domain/workflow/State.js +184 -0
- package/dist/domain/workflow/State.js.map +1 -0
- package/dist/domain/workflow/index.d.ts +11 -0
- package/dist/domain/workflow/index.d.ts.map +1 -0
- package/dist/domain/workflow/index.js +15 -0
- package/dist/domain/workflow/index.js.map +1 -0
- package/dist/domain/workflow/nodes/BaseNode.d.ts +134 -0
- package/dist/domain/workflow/nodes/BaseNode.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/BaseNode.js +253 -0
- package/dist/domain/workflow/nodes/BaseNode.js.map +1 -0
- package/dist/domain/workflow/nodes/CheckImageNode.d.ts +43 -0
- package/dist/domain/workflow/nodes/CheckImageNode.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/CheckImageNode.js +254 -0
- package/dist/domain/workflow/nodes/CheckImageNode.js.map +1 -0
- package/dist/domain/workflow/nodes/CheckTextNode.d.ts +66 -0
- package/dist/domain/workflow/nodes/CheckTextNode.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/CheckTextNode.js +530 -0
- package/dist/domain/workflow/nodes/CheckTextNode.js.map +1 -0
- package/dist/domain/workflow/nodes/GenerateImageNode.d.ts +44 -0
- package/dist/domain/workflow/nodes/GenerateImageNode.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/GenerateImageNode.js +272 -0
- package/dist/domain/workflow/nodes/GenerateImageNode.js.map +1 -0
- package/dist/domain/workflow/nodes/OrganizeNode.d.ts +49 -0
- package/dist/domain/workflow/nodes/OrganizeNode.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/OrganizeNode.js +241 -0
- package/dist/domain/workflow/nodes/OrganizeNode.js.map +1 -0
- package/dist/domain/workflow/nodes/SearchNode.d.ts +48 -0
- package/dist/domain/workflow/nodes/SearchNode.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/SearchNode.js +151 -0
- package/dist/domain/workflow/nodes/SearchNode.js.map +1 -0
- package/dist/domain/workflow/nodes/WriteNode.d.ts +68 -0
- package/dist/domain/workflow/nodes/WriteNode.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/WriteNode.js +431 -0
- package/dist/domain/workflow/nodes/WriteNode.js.map +1 -0
- package/dist/domain/workflow/nodes/config/index.js +287 -0
- package/dist/domain/workflow/nodes/domain/entities/Task.js +68 -0
- package/dist/domain/workflow/nodes/domain/workflow/State.js +200 -0
- package/dist/domain/workflow/nodes/domain/workflow/nodes/BaseNode.js +328 -0
- package/dist/domain/workflow/nodes/domain/workflow/nodes/CheckTextNode.js +500 -0
- package/dist/domain/workflow/nodes/index.d.ts +13 -0
- package/dist/domain/workflow/nodes/index.d.ts.map +1 -0
- package/dist/domain/workflow/nodes/index.js +13 -0
- package/dist/domain/workflow/nodes/index.js.map +1 -0
- package/dist/domain/workflow/nodes/infrastructure/logging/logger.js +275 -0
- package/dist/domain/workflow/nodes/services/llm/EnhancedLLMService.js +559 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +34 -0
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/cache/CacheService.d.ts +139 -0
- package/dist/infrastructure/cache/CacheService.d.ts.map +1 -0
- package/dist/infrastructure/cache/CacheService.js +419 -0
- package/dist/infrastructure/cache/CacheService.js.map +1 -0
- package/dist/infrastructure/cache/index.d.ts +5 -0
- package/dist/infrastructure/cache/index.d.ts.map +1 -0
- package/dist/infrastructure/cache/index.js +6 -0
- package/dist/infrastructure/cache/index.js.map +1 -0
- package/dist/infrastructure/database/BaseRepository.d.ts +98 -0
- package/dist/infrastructure/database/BaseRepository.d.ts.map +1 -0
- package/dist/infrastructure/database/BaseRepository.js +178 -0
- package/dist/infrastructure/database/BaseRepository.js.map +1 -0
- package/dist/infrastructure/database/MemoryTaskRepository.d.ts +77 -0
- package/dist/infrastructure/database/MemoryTaskRepository.d.ts.map +1 -0
- package/dist/infrastructure/database/MemoryTaskRepository.js +309 -0
- package/dist/infrastructure/database/MemoryTaskRepository.js.map +1 -0
- package/dist/infrastructure/database/PostgresQualityCheckRepository.d.ts +36 -0
- package/dist/infrastructure/database/PostgresQualityCheckRepository.d.ts.map +1 -0
- package/dist/infrastructure/database/PostgresQualityCheckRepository.js +89 -0
- package/dist/infrastructure/database/PostgresQualityCheckRepository.js.map +1 -0
- package/dist/infrastructure/database/PostgresTaskRepository.d.ts +94 -0
- package/dist/infrastructure/database/PostgresTaskRepository.d.ts.map +1 -0
- package/dist/infrastructure/database/PostgresTaskRepository.js +364 -0
- package/dist/infrastructure/database/PostgresTaskRepository.js.map +1 -0
- package/dist/infrastructure/database/ResultRepository.d.ts +41 -0
- package/dist/infrastructure/database/ResultRepository.d.ts.map +1 -0
- package/dist/infrastructure/database/ResultRepository.js +86 -0
- package/dist/infrastructure/database/ResultRepository.js.map +1 -0
- package/dist/infrastructure/database/SQLiteTaskRepository.d.ts +101 -0
- package/dist/infrastructure/database/SQLiteTaskRepository.d.ts.map +1 -0
- package/dist/infrastructure/database/SQLiteTaskRepository.js +548 -0
- package/dist/infrastructure/database/SQLiteTaskRepository.js.map +1 -0
- package/dist/infrastructure/database/index.d.ts +32 -0
- package/dist/infrastructure/database/index.d.ts.map +1 -0
- package/dist/infrastructure/database/index.js +72 -0
- package/dist/infrastructure/database/index.js.map +1 -0
- package/dist/infrastructure/logging/logger.d.ts +69 -0
- package/dist/infrastructure/logging/logger.d.ts.map +1 -0
- package/dist/infrastructure/logging/logger.js +169 -0
- package/dist/infrastructure/logging/logger.js.map +1 -0
- package/dist/infrastructure/monitoring/LoggingService.d.ts +109 -0
- package/dist/infrastructure/monitoring/LoggingService.d.ts.map +1 -0
- package/dist/infrastructure/monitoring/LoggingService.js +198 -0
- package/dist/infrastructure/monitoring/LoggingService.js.map +1 -0
- package/dist/infrastructure/monitoring/MetricsService.d.ts +112 -0
- package/dist/infrastructure/monitoring/MetricsService.d.ts.map +1 -0
- package/dist/infrastructure/monitoring/MetricsService.js +362 -0
- package/dist/infrastructure/monitoring/MetricsService.js.map +1 -0
- package/dist/infrastructure/monitoring/SentryService.d.ts +108 -0
- package/dist/infrastructure/monitoring/SentryService.d.ts.map +1 -0
- package/dist/infrastructure/monitoring/SentryService.js +282 -0
- package/dist/infrastructure/monitoring/SentryService.js.map +1 -0
- package/dist/infrastructure/monitoring/index.d.ts +7 -0
- package/dist/infrastructure/monitoring/index.d.ts.map +1 -0
- package/dist/infrastructure/monitoring/index.js +10 -0
- package/dist/infrastructure/monitoring/index.js.map +1 -0
- package/dist/infrastructure/queue/TaskQueue.d.ts +110 -0
- package/dist/infrastructure/queue/TaskQueue.d.ts.map +1 -0
- package/dist/infrastructure/queue/TaskQueue.js +363 -0
- package/dist/infrastructure/queue/TaskQueue.js.map +1 -0
- package/dist/infrastructure/queue/index.d.ts +5 -0
- package/dist/infrastructure/queue/index.d.ts.map +1 -0
- package/dist/infrastructure/queue/index.js +5 -0
- package/dist/infrastructure/queue/index.js.map +1 -0
- package/dist/infrastructure/redis/connection.d.ts +61 -0
- package/dist/infrastructure/redis/connection.d.ts.map +1 -0
- package/dist/infrastructure/redis/connection.js +184 -0
- package/dist/infrastructure/redis/connection.js.map +1 -0
- package/dist/infrastructure/redis/index.d.ts +5 -0
- package/dist/infrastructure/redis/index.d.ts.map +1 -0
- package/dist/infrastructure/redis/index.js +5 -0
- package/dist/infrastructure/redis/index.js.map +1 -0
- package/dist/infrastructure/security/ApiKeyService.d.ts +103 -0
- package/dist/infrastructure/security/ApiKeyService.d.ts.map +1 -0
- package/dist/infrastructure/security/ApiKeyService.js +250 -0
- package/dist/infrastructure/security/ApiKeyService.js.map +1 -0
- package/dist/infrastructure/security/QuotaService.d.ts +87 -0
- package/dist/infrastructure/security/QuotaService.d.ts.map +1 -0
- package/dist/infrastructure/security/QuotaService.js +303 -0
- package/dist/infrastructure/security/QuotaService.js.map +1 -0
- package/dist/infrastructure/security/RateLimiter.d.ts +104 -0
- package/dist/infrastructure/security/RateLimiter.d.ts.map +1 -0
- package/dist/infrastructure/security/RateLimiter.js +331 -0
- package/dist/infrastructure/security/RateLimiter.js.map +1 -0
- package/dist/infrastructure/security/index.d.ts +7 -0
- package/dist/infrastructure/security/index.d.ts.map +1 -0
- package/dist/infrastructure/security/index.js +10 -0
- package/dist/infrastructure/security/index.js.map +1 -0
- package/dist/monitoring/index.d.ts +5 -0
- package/dist/monitoring/index.d.ts.map +1 -0
- package/dist/monitoring/index.js +5 -0
- package/dist/monitoring/index.js.map +1 -0
- package/dist/monitoring/server.d.ts +14 -0
- package/dist/monitoring/server.d.ts.map +1 -0
- package/dist/monitoring/server.js +99 -0
- package/dist/monitoring/server.js.map +1 -0
- package/dist/presentation/cli/commands/cancel.d.ts +8 -0
- package/dist/presentation/cli/commands/cancel.d.ts.map +1 -0
- package/dist/presentation/cli/commands/cancel.js +57 -0
- package/dist/presentation/cli/commands/cancel.js.map +1 -0
- package/dist/presentation/cli/commands/create.d.ts +8 -0
- package/dist/presentation/cli/commands/create.d.ts.map +1 -0
- package/dist/presentation/cli/commands/create.js +368 -0
- package/dist/presentation/cli/commands/create.js.map +1 -0
- package/dist/presentation/cli/commands/result.d.ts +8 -0
- package/dist/presentation/cli/commands/result.d.ts.map +1 -0
- package/dist/presentation/cli/commands/result.js +121 -0
- package/dist/presentation/cli/commands/result.js.map +1 -0
- package/dist/presentation/cli/commands/status.d.ts +8 -0
- package/dist/presentation/cli/commands/status.d.ts.map +1 -0
- package/dist/presentation/cli/commands/status.js +92 -0
- package/dist/presentation/cli/commands/status.js.map +1 -0
- package/dist/presentation/cli/index.d.ts +8 -0
- package/dist/presentation/cli/index.d.ts.map +1 -0
- package/dist/presentation/cli/index.js +32 -0
- package/dist/presentation/cli/index.js.map +1 -0
- package/dist/presentation/cli/utils/cleanup.d.ts +14 -0
- package/dist/presentation/cli/utils/cleanup.d.ts.map +1 -0
- package/dist/presentation/cli/utils/cleanup.js +62 -0
- package/dist/presentation/cli/utils/cleanup.js.map +1 -0
- package/dist/presentation/cli/utils/formatter.d.ts +28 -0
- package/dist/presentation/cli/utils/formatter.d.ts.map +1 -0
- package/dist/presentation/cli/utils/formatter.js +68 -0
- package/dist/presentation/cli/utils/formatter.js.map +1 -0
- package/dist/presentation/cli.d.ts +7 -0
- package/dist/presentation/cli.d.ts.map +1 -0
- package/dist/presentation/cli.js +8 -0
- package/dist/presentation/cli.js.map +1 -0
- package/dist/presentation/monitor-cli.d.ts +8 -0
- package/dist/presentation/monitor-cli.d.ts.map +1 -0
- package/dist/presentation/monitor-cli.js +44 -0
- package/dist/presentation/monitor-cli.js.map +1 -0
- package/dist/presentation/worker-cli.d.ts +8 -0
- package/dist/presentation/worker-cli.d.ts.map +1 -0
- package/dist/presentation/worker-cli.js +51 -0
- package/dist/presentation/worker-cli.js.map +1 -0
- package/dist/schedulers/TaskScheduler.d.ts +99 -0
- package/dist/schedulers/TaskScheduler.d.ts.map +1 -0
- package/dist/schedulers/TaskScheduler.js +233 -0
- package/dist/schedulers/TaskScheduler.js.map +1 -0
- package/dist/schedulers/index.d.ts +5 -0
- package/dist/schedulers/index.d.ts.map +1 -0
- package/dist/schedulers/index.js +5 -0
- package/dist/schedulers/index.js.map +1 -0
- package/dist/services/image/ImageService.d.ts +68 -0
- package/dist/services/image/ImageService.d.ts.map +1 -0
- package/dist/services/image/ImageService.js +166 -0
- package/dist/services/image/ImageService.js.map +1 -0
- package/dist/services/index.d.ts +8 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +12 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/llm/EnhancedLLMService.d.ts +148 -0
- package/dist/services/llm/EnhancedLLMService.d.ts.map +1 -0
- package/dist/services/llm/EnhancedLLMService.js +425 -0
- package/dist/services/llm/EnhancedLLMService.js.map +1 -0
- package/dist/services/llm/LLMService.d.ts +103 -0
- package/dist/services/llm/LLMService.d.ts.map +1 -0
- package/dist/services/llm/LLMService.js +212 -0
- package/dist/services/llm/LLMService.js.map +1 -0
- package/dist/services/quality/HardRuleChecker.d.ts +143 -0
- package/dist/services/quality/HardRuleChecker.d.ts.map +1 -0
- package/dist/services/quality/HardRuleChecker.js +353 -0
- package/dist/services/quality/HardRuleChecker.js.map +1 -0
- package/dist/services/quality/LLMEvaluator.d.ts +105 -0
- package/dist/services/quality/LLMEvaluator.d.ts.map +1 -0
- package/dist/services/quality/LLMEvaluator.js +312 -0
- package/dist/services/quality/LLMEvaluator.js.map +1 -0
- package/dist/services/quality/QualityCheckService.d.ts +112 -0
- package/dist/services/quality/QualityCheckService.d.ts.map +1 -0
- package/dist/services/quality/QualityCheckService.js +342 -0
- package/dist/services/quality/QualityCheckService.js.map +1 -0
- package/dist/services/quality/QualityService.d.ts +75 -0
- package/dist/services/quality/QualityService.d.ts.map +1 -0
- package/dist/services/quality/QualityService.js +360 -0
- package/dist/services/quality/QualityService.js.map +1 -0
- package/dist/services/quality/index.d.ts +7 -0
- package/dist/services/quality/index.d.ts.map +1 -0
- package/dist/services/quality/index.js +10 -0
- package/dist/services/quality/index.js.map +1 -0
- package/dist/services/search/SearchService.d.ts +79 -0
- package/dist/services/search/SearchService.d.ts.map +1 -0
- package/dist/services/search/SearchService.js +193 -0
- package/dist/services/search/SearchService.js.map +1 -0
- package/dist/workers/TaskWorker.d.ts +61 -0
- package/dist/workers/TaskWorker.d.ts.map +1 -0
- package/dist/workers/TaskWorker.js +256 -0
- package/dist/workers/TaskWorker.js.map +1 -0
- package/dist/workers/index.d.ts +5 -0
- package/dist/workers/index.d.ts.map +1 -0
- package/dist/workers/index.js +5 -0
- package/dist/workers/index.js.map +1 -0
- package/docs/DOCUMENTATION-ANALYSIS.md +190 -0
- package/docs/README.md +145 -0
- package/docs/SOURCE-CODE-ANALYSIS.md +1107 -0
- package/docs/architecture-complete.md +5524 -0
- package/docs/archive/implementation/implementation-analysis/README.md +244 -0
- package/docs/archive/implementation/implementation-analysis/implementation-analysis-context.md +483 -0
- package/docs/archive/implementation/implementation-analysis/implementation-analysis-plan.md +1242 -0
- package/docs/archive/implementation/implementation-analysis/implementation-analysis-tasks.md +777 -0
- package/docs/archive/phases/phase-1/phase-1-completion-summary.md +284 -0
- package/docs/archive/phases/phase-1/phase-1-implementation-guide.md +1380 -0
- package/docs/archive/phases/phase-2/phase-2a/phase-2a-completion-summary.md +443 -0
- package/docs/archive/phases/phase-2/phase-2b/phase-2b-completion-report.md +430 -0
- package/docs/archive/phases/phase-2/phase-2b/phase-2b-completion-summary.md +592 -0
- package/docs/archive/phases/phase-2/phase-2b/phase-2b-final-summary.md +371 -0
- package/docs/archive/phases/phase-2/phase-2b/phase-2b-preparation-complete.md +343 -0
- package/docs/archive/phases/phase-2/phase-2b/phase-2b-preparation.md +945 -0
- package/docs/archive/phases/phase-2/phase-2b/phase-2b-progress-update.md +366 -0
- package/docs/archive/phases/phase-3/phase-3-completion-summary.md +354 -0
- package/docs/archive/phases/phase-3/phase-3-development-plan.md +878 -0
- package/docs/archive/phases/phase-3/phase-3-quick-start.md +324 -0
- package/docs/archive/phases/phase-4/phase-4-completion-summary.md +708 -0
- package/docs/archive/phases/phase-4/phase-4-development-plan.md +740 -0
- package/docs/archive/phases/phase-4/phase-4-quick-start.md +632 -0
- package/docs/archive/phases/phase-4/phase-4-session-3-security-testing.md +484 -0
- package/docs/archive/phases/phase-4/phase-4-session-4-unit-tests.md +550 -0
- package/docs/archive/phases/phase-4/phase-4-session-5-security-tests.md +564 -0
- package/docs/archive/phases/phase-4/phase-4-session-6-cache-integration.md +456 -0
- package/docs/archive/phases/phase-4/phase-4-session-7-test-fixes.md +348 -0
- package/docs/archive/phases/phase-4/phase-4-session-8-taskqueue-fixes.md +323 -0
- package/docs/archive/phases/phase-4/phase-4-session-summary-continued.md +373 -0
- package/docs/archive/phases/phase-4/phase-4-session-summary.md +595 -0
- package/docs/archive/reports/progress-reports/PHASE_0_PROGRESS.md +242 -0
- package/docs/archive/reports/progress-reports/PHASE_0_SUMMARY.md +262 -0
- package/docs/archive/reports/progress-reports/PHASE_1_2_ISSUES.md +399 -0
- package/docs/archive/reports/progress-reports/PHASE_1_PROGRESS.md +388 -0
- package/docs/archive/reports/progress-reports/PHASE_3_PREPARATION.md +574 -0
- package/docs/archive/reports/progress-reports/current-progress-update.md +294 -0
- package/docs/archive/reports/progress-reports/final-summary.md +215 -0
- package/docs/archive/reports/progress-reports/implementation-summary.md +287 -0
- package/docs/archive/reports/progress-reports/project-progress-report.md +440 -0
- package/docs/archive/reports/progress-reports/project-progress.md +386 -0
- package/docs/archive/reports/test-reports/TEST-COVERAGE-REPORT.md +441 -0
- package/docs/archive/reports/test-reports/e2e-test-report.md +293 -0
- package/docs/archive/reports/test-reports/final-test-report.md +367 -0
- package/docs/archive/reports/test-reports/real-env-test-report.md +391 -0
- package/docs/archive/reports/test-reports/test-completion-summary.md +356 -0
- package/docs/archive/reports/test-reports/test-report.md +371 -0
- package/docs/archive/sessions/session-2-summary.md +429 -0
- package/docs/archive/sessions/session-3-summary.md +395 -0
- package/docs/archive/sessions/session-summary.md +370 -0
- package/docs/config-system-update.md +239 -0
- package/docs/database-refactoring-PLAN.md +199 -0
- package/docs/database-refactoring-SUMMARY.md +384 -0
- package/docs/quality-check-architecture.md +1030 -0
- package/docs/quick-start.md +388 -0
- package/docs/references/bullmq-quick-reference.md +525 -0
- package/docs/references/monitoring-optimization-guide.md +871 -0
- package/docs/references/performance-optimization-guide.md +933 -0
- package/docs/storage-guide.md +612 -0
- package/docs/test-implementation-PLAN.md +223 -0
- package/docs/test-implementation-SUMMARY.md +194 -0
- package/docs/user-guide.md +719 -0
- package/docs/workflow-architecture.md +549 -0
- package/package.json +126 -0
- package/src/application/workflow/SyncExecutor.ts +444 -0
- package/src/application/workflow/types.ts +57 -0
- package/src/config/index.ts +352 -0
- package/src/domain/entities/QualityCheck.ts +202 -0
- package/src/domain/entities/Result.ts +130 -0
- package/src/domain/entities/Task.ts +178 -0
- package/src/domain/entities/TaskStep.ts +188 -0
- package/src/domain/entities/TokenUsage.ts +119 -0
- package/src/domain/entities/index.ts +20 -0
- package/src/domain/repositories/QualityCheckRepository.ts +52 -0
- package/src/domain/repositories/ResultRepository.ts +47 -0
- package/src/domain/repositories/TaskRepository.ts +271 -0
- package/src/domain/workflow/CheckpointManager.ts +283 -0
- package/src/domain/workflow/ContentCreatorGraph.ts +446 -0
- package/src/domain/workflow/State.ts +321 -0
- package/src/domain/workflow/index.ts +18 -0
- package/src/domain/workflow/nodes/BaseNode.ts +325 -0
- package/src/domain/workflow/nodes/CheckImageNode.ts +325 -0
- package/src/domain/workflow/nodes/CheckTextNode.ts +709 -0
- package/src/domain/workflow/nodes/GenerateImageNode.ts +342 -0
- package/src/domain/workflow/nodes/OrganizeNode.ts +304 -0
- package/src/domain/workflow/nodes/SearchNode.ts +192 -0
- package/src/domain/workflow/nodes/WriteNode.ts +505 -0
- package/src/domain/workflow/nodes/index.ts +13 -0
- package/src/index.ts +43 -0
- package/src/infrastructure/cache/CacheService.ts +483 -0
- package/src/infrastructure/cache/index.ts +6 -0
- package/src/infrastructure/database/BaseRepository.ts +214 -0
- package/src/infrastructure/database/MemoryTaskRepository.ts +377 -0
- package/src/infrastructure/database/PostgresQualityCheckRepository.ts +115 -0
- package/src/infrastructure/database/PostgresTaskRepository.ts +424 -0
- package/src/infrastructure/database/ResultRepository.ts +113 -0
- package/src/infrastructure/database/SQLiteTaskRepository.ts +651 -0
- package/src/infrastructure/database/index.ts +83 -0
- package/src/infrastructure/logging/logger.ts +231 -0
- package/src/infrastructure/monitoring/LoggingService.ts +292 -0
- package/src/infrastructure/monitoring/MetricsService.ts +468 -0
- package/src/infrastructure/monitoring/SentryService.ts +345 -0
- package/src/infrastructure/monitoring/index.ts +12 -0
- package/src/infrastructure/queue/TaskQueue.ts +429 -0
- package/src/infrastructure/queue/index.ts +5 -0
- package/src/infrastructure/redis/connection.ts +215 -0
- package/src/infrastructure/redis/index.ts +5 -0
- package/src/infrastructure/security/ApiKeyService.ts +340 -0
- package/src/infrastructure/security/QuotaService.ts +411 -0
- package/src/infrastructure/security/RateLimiter.ts +417 -0
- package/src/infrastructure/security/index.ts +12 -0
- package/src/monitoring/index.ts +5 -0
- package/src/monitoring/server.ts +109 -0
- package/src/presentation/cli/commands/cancel.ts +64 -0
- package/src/presentation/cli/commands/create.ts +400 -0
- package/src/presentation/cli/commands/result.ts +136 -0
- package/src/presentation/cli/commands/status.ts +102 -0
- package/src/presentation/cli/index.ts +39 -0
- package/src/presentation/cli/utils/cleanup.ts +65 -0
- package/src/presentation/cli/utils/formatter.ts +74 -0
- package/src/presentation/cli.ts +8 -0
- package/src/presentation/monitor-cli.ts +52 -0
- package/src/presentation/worker-cli.ts +62 -0
- package/src/schedulers/TaskScheduler.ts +314 -0
- package/src/schedulers/index.ts +11 -0
- package/src/services/image/ImageService.ts +221 -0
- package/src/services/index.ts +15 -0
- package/src/services/llm/EnhancedLLMService.ts +596 -0
- package/src/services/llm/LLMService.ts +310 -0
- package/src/services/quality/HardRuleChecker.ts +509 -0
- package/src/services/quality/LLMEvaluator.ts +400 -0
- package/src/services/quality/QualityCheckService.ts +473 -0
- package/src/services/quality/QualityService.ts +445 -0
- package/src/services/quality/index.ts +12 -0
- package/src/services/search/SearchService.ts +266 -0
- package/src/types/global.d.ts +17 -0
- package/src/workers/TaskWorker.ts +320 -0
- package/src/workers/index.ts +5 -0
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 质量检查服务
|
|
3
|
+
*
|
|
4
|
+
* 整合硬规则检查和 LLM 评估的完整质量检查服务
|
|
5
|
+
* 支持智能反馈生成、自动重试机制和结果缓存
|
|
6
|
+
*/
|
|
7
|
+
import crypto from 'crypto';
|
|
8
|
+
import { HardRuleChecker } from './HardRuleChecker.js';
|
|
9
|
+
import { LLMEvaluator } from './LLMEvaluator.js';
|
|
10
|
+
import { createLogger } from '../../infrastructure/logging/logger.js';
|
|
11
|
+
import { cacheService } from '../../infrastructure/cache/CacheService.js';
|
|
12
|
+
import { metricsService } from '../../infrastructure/monitoring/MetricsService.js';
|
|
13
|
+
const logger = createLogger('QualityCheck');
|
|
14
|
+
/**
|
|
15
|
+
* 质量检查服务类
|
|
16
|
+
*/
|
|
17
|
+
export class QualityCheckService {
|
|
18
|
+
hardRuleChecker;
|
|
19
|
+
llmEvaluator;
|
|
20
|
+
enableCache;
|
|
21
|
+
// 统计信息
|
|
22
|
+
stats = {
|
|
23
|
+
totalChecks: 0,
|
|
24
|
+
passedChecks: 0,
|
|
25
|
+
failedChecks: 0,
|
|
26
|
+
averageAttempts: 0,
|
|
27
|
+
averageDuration: 0,
|
|
28
|
+
passRate: 0,
|
|
29
|
+
};
|
|
30
|
+
constructor() {
|
|
31
|
+
this.hardRuleChecker = new HardRuleChecker();
|
|
32
|
+
this.llmEvaluator = new LLMEvaluator();
|
|
33
|
+
this.enableCache = true; // 默认启用缓存
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 生成缓存键
|
|
37
|
+
*/
|
|
38
|
+
generateCacheKey(content, requirements, options) {
|
|
39
|
+
// 只包含影响检查结果的参数
|
|
40
|
+
const cacheData = {
|
|
41
|
+
content,
|
|
42
|
+
requirements,
|
|
43
|
+
hardRules: options.hardRules,
|
|
44
|
+
softScoring: options.softScoring,
|
|
45
|
+
};
|
|
46
|
+
const hash = crypto
|
|
47
|
+
.createHash('sha256')
|
|
48
|
+
.update(JSON.stringify(cacheData))
|
|
49
|
+
.digest('hex');
|
|
50
|
+
return hash;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* 检查内容质量(支持缓存)
|
|
54
|
+
*/
|
|
55
|
+
async check(content, requirements, options = {}) {
|
|
56
|
+
const startTime = Date.now();
|
|
57
|
+
let attempts = 0;
|
|
58
|
+
const maxAttempts = options.softScoring?.maxAttempts ?? 3;
|
|
59
|
+
logger.debug('Starting quality check', {
|
|
60
|
+
contentLength: content.length,
|
|
61
|
+
options,
|
|
62
|
+
});
|
|
63
|
+
// 尝试从缓存获取(如果未跳过缓存)
|
|
64
|
+
if (this.enableCache && !options.skipCache) {
|
|
65
|
+
try {
|
|
66
|
+
const cacheKey = this.generateCacheKey(content, requirements, options);
|
|
67
|
+
const cached = await cacheService.getCachedQualityCheck(cacheKey);
|
|
68
|
+
if (cached) {
|
|
69
|
+
logger.debug('Quality check result retrieved from cache', { cacheKey });
|
|
70
|
+
metricsService.recordCacheHit('quality_check');
|
|
71
|
+
// 更新缓存结果的时间戳
|
|
72
|
+
cached.checkedAt = Date.now();
|
|
73
|
+
this.updateStats(cached);
|
|
74
|
+
return cached;
|
|
75
|
+
}
|
|
76
|
+
metricsService.recordCacheMiss('quality_check');
|
|
77
|
+
}
|
|
78
|
+
catch (error) {
|
|
79
|
+
logger.warn('Failed to retrieve from cache', error);
|
|
80
|
+
// 继续执行,不阻断请求
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
try {
|
|
84
|
+
// 第一步:硬规则检查
|
|
85
|
+
const hardRuleResult = this.hardRuleChecker.check(content, options.hardRules || {});
|
|
86
|
+
logger.debug('Hard rule check completed', {
|
|
87
|
+
passed: hardRuleResult.passed,
|
|
88
|
+
score: hardRuleResult.score,
|
|
89
|
+
});
|
|
90
|
+
// 如果硬规则不通过,直接返回失败
|
|
91
|
+
if (!hardRuleResult.passed) {
|
|
92
|
+
const result = {
|
|
93
|
+
passed: false,
|
|
94
|
+
score: 0,
|
|
95
|
+
hardConstraintsPassed: false,
|
|
96
|
+
details: {
|
|
97
|
+
hardRuleCheck: hardRuleResult,
|
|
98
|
+
},
|
|
99
|
+
fixSuggestions: this.generateFixSuggestions(hardRuleResult, null),
|
|
100
|
+
attempts: 1,
|
|
101
|
+
checkedAt: Date.now(),
|
|
102
|
+
duration: Date.now() - startTime,
|
|
103
|
+
};
|
|
104
|
+
this.updateStats(result);
|
|
105
|
+
// 缓存失败结果(异步,不等待)
|
|
106
|
+
if (this.enableCache && !options.skipCache) {
|
|
107
|
+
const cacheKey = this.generateCacheKey(content, requirements, options);
|
|
108
|
+
cacheService.setCachedQualityCheck(cacheKey, result).catch((error) => {
|
|
109
|
+
logger.warn('Failed to cache quality check result', error);
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
return result;
|
|
113
|
+
}
|
|
114
|
+
// 第二步:LLM 软评分(如果启用)
|
|
115
|
+
if (options.softScoring?.enabled !== false) {
|
|
116
|
+
let llmResult = null;
|
|
117
|
+
// 重试机制
|
|
118
|
+
for (let attempt = 1; attempt <= maxAttempts; attempt++) {
|
|
119
|
+
attempts = attempt;
|
|
120
|
+
logger.debug(`LLM evaluation attempt ${attempt}/${maxAttempts}`);
|
|
121
|
+
llmResult = await this.llmEvaluator.evaluate(content, requirements, {
|
|
122
|
+
passThreshold: options.softScoring?.passThreshold,
|
|
123
|
+
timeout: options.timeout,
|
|
124
|
+
});
|
|
125
|
+
// 如果通过,跳出重试循环
|
|
126
|
+
if (llmResult.passed) {
|
|
127
|
+
logger.info(`LLM evaluation passed on attempt ${attempt}`);
|
|
128
|
+
break;
|
|
129
|
+
}
|
|
130
|
+
// 最后一次尝试仍不通过
|
|
131
|
+
if (attempt === maxAttempts) {
|
|
132
|
+
logger.warn('LLM evaluation failed after all attempts', {
|
|
133
|
+
score: llmResult.score,
|
|
134
|
+
threshold: options.softScoring?.passThreshold,
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
const result = {
|
|
139
|
+
passed: llmResult.passed,
|
|
140
|
+
score: llmResult.score,
|
|
141
|
+
hardConstraintsPassed: true,
|
|
142
|
+
softScore: llmResult.score,
|
|
143
|
+
details: {
|
|
144
|
+
hardRuleCheck: hardRuleResult,
|
|
145
|
+
llmEvaluation: llmResult,
|
|
146
|
+
},
|
|
147
|
+
fixSuggestions: this.generateFixSuggestions(hardRuleResult, llmResult),
|
|
148
|
+
attempts,
|
|
149
|
+
checkedAt: Date.now(),
|
|
150
|
+
duration: Date.now() - startTime,
|
|
151
|
+
};
|
|
152
|
+
this.updateStats(result);
|
|
153
|
+
// 缓存检查结果(异步,不等待)
|
|
154
|
+
if (this.enableCache && !options.skipCache) {
|
|
155
|
+
const cacheKey = this.generateCacheKey(content, requirements, options);
|
|
156
|
+
cacheService.setCachedQualityCheck(cacheKey, result).catch((error) => {
|
|
157
|
+
logger.warn('Failed to cache quality check result', error);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return result;
|
|
161
|
+
}
|
|
162
|
+
// 只做硬规则检查
|
|
163
|
+
const result = {
|
|
164
|
+
passed: true,
|
|
165
|
+
score: 10,
|
|
166
|
+
hardConstraintsPassed: true,
|
|
167
|
+
details: {
|
|
168
|
+
hardRuleCheck: hardRuleResult,
|
|
169
|
+
},
|
|
170
|
+
attempts: 1,
|
|
171
|
+
checkedAt: Date.now(),
|
|
172
|
+
duration: Date.now() - startTime,
|
|
173
|
+
};
|
|
174
|
+
this.updateStats(result);
|
|
175
|
+
// 缓存检查结果(异步,不等待)
|
|
176
|
+
if (this.enableCache && !options.skipCache) {
|
|
177
|
+
const cacheKey = this.generateCacheKey(content, requirements, options);
|
|
178
|
+
cacheService.setCachedQualityCheck(cacheKey, result).catch((error) => {
|
|
179
|
+
logger.warn('Failed to cache quality check result', error);
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
return result;
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
logger.error('Quality check failed', error);
|
|
186
|
+
return {
|
|
187
|
+
passed: false,
|
|
188
|
+
score: 0,
|
|
189
|
+
hardConstraintsPassed: false,
|
|
190
|
+
details: {},
|
|
191
|
+
fixSuggestions: ['质量检查服务暂时不可用,请稍后重试'],
|
|
192
|
+
attempts,
|
|
193
|
+
checkedAt: Date.now(),
|
|
194
|
+
duration: Date.now() - startTime,
|
|
195
|
+
};
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* 批量检查
|
|
200
|
+
*/
|
|
201
|
+
async batchCheck(items) {
|
|
202
|
+
logger.info('Batch quality check', { count: items.length });
|
|
203
|
+
const results = await Promise.all(items.map(item => this.check(item.content, item.requirements, item.options)));
|
|
204
|
+
logger.info('Batch quality check completed', {
|
|
205
|
+
total: results.length,
|
|
206
|
+
passed: results.filter(r => r.passed).length,
|
|
207
|
+
failed: results.filter(r => !r.passed).length,
|
|
208
|
+
});
|
|
209
|
+
return results;
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* 快速检查(仅硬规则)
|
|
213
|
+
*/
|
|
214
|
+
quickCheck(content, constraints) {
|
|
215
|
+
const startTime = Date.now();
|
|
216
|
+
logger.debug('Quick quality check', {
|
|
217
|
+
contentLength: content.length,
|
|
218
|
+
constraints,
|
|
219
|
+
});
|
|
220
|
+
const hardRuleResult = this.hardRuleChecker.check(content, constraints);
|
|
221
|
+
const result = {
|
|
222
|
+
passed: hardRuleResult.passed,
|
|
223
|
+
score: hardRuleResult.passed ? 10 : 0,
|
|
224
|
+
hardConstraintsPassed: hardRuleResult.passed,
|
|
225
|
+
details: {
|
|
226
|
+
hardRuleCheck: hardRuleResult,
|
|
227
|
+
},
|
|
228
|
+
fixSuggestions: this.generateFixSuggestions(hardRuleResult, null),
|
|
229
|
+
attempts: 1,
|
|
230
|
+
checkedAt: Date.now(),
|
|
231
|
+
duration: Date.now() - startTime,
|
|
232
|
+
};
|
|
233
|
+
logger.debug('Quick check completed', {
|
|
234
|
+
passed: result.passed,
|
|
235
|
+
duration: result.duration,
|
|
236
|
+
});
|
|
237
|
+
return result;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* 生成修复建议
|
|
241
|
+
*/
|
|
242
|
+
generateFixSuggestions(hardRuleResult, llmResult) {
|
|
243
|
+
const suggestions = [];
|
|
244
|
+
// 硬规则问题
|
|
245
|
+
if (!hardRuleResult.passed) {
|
|
246
|
+
for (const issue of hardRuleResult.issues) {
|
|
247
|
+
if (issue.suggestion) {
|
|
248
|
+
suggestions.push(issue.suggestion);
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
// LLM 评估建议
|
|
253
|
+
if (llmResult) {
|
|
254
|
+
// 缺点
|
|
255
|
+
for (const weakness of llmResult.details.weaknesses) {
|
|
256
|
+
suggestions.push(`改进:${weakness}`);
|
|
257
|
+
}
|
|
258
|
+
// 建议事项
|
|
259
|
+
for (const suggestion of llmResult.details.suggestions) {
|
|
260
|
+
suggestions.push(suggestion);
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
return suggestions;
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* 更新统计信息
|
|
267
|
+
*/
|
|
268
|
+
updateStats(result) {
|
|
269
|
+
this.stats.totalChecks++;
|
|
270
|
+
if (result.passed) {
|
|
271
|
+
this.stats.passedChecks++;
|
|
272
|
+
}
|
|
273
|
+
else {
|
|
274
|
+
this.stats.failedChecks++;
|
|
275
|
+
}
|
|
276
|
+
// 更新平均值
|
|
277
|
+
this.stats.averageAttempts =
|
|
278
|
+
(this.stats.averageAttempts * (this.stats.totalChecks - 1) + result.attempts) /
|
|
279
|
+
this.stats.totalChecks;
|
|
280
|
+
this.stats.averageDuration =
|
|
281
|
+
(this.stats.averageDuration * (this.stats.totalChecks - 1) + result.duration) /
|
|
282
|
+
this.stats.totalChecks;
|
|
283
|
+
// 更新通过率
|
|
284
|
+
this.stats.passRate = (this.stats.passedChecks / this.stats.totalChecks) * 100;
|
|
285
|
+
logger.debug('Statistics updated', { stats: this.stats });
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* 获取统计信息
|
|
289
|
+
*/
|
|
290
|
+
getStatistics() {
|
|
291
|
+
return { ...this.stats };
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* 重置统计信息
|
|
295
|
+
*/
|
|
296
|
+
resetStatistics() {
|
|
297
|
+
this.stats = {
|
|
298
|
+
totalChecks: 0,
|
|
299
|
+
passedChecks: 0,
|
|
300
|
+
failedChecks: 0,
|
|
301
|
+
averageAttempts: 0,
|
|
302
|
+
averageDuration: 0,
|
|
303
|
+
passRate: 0,
|
|
304
|
+
};
|
|
305
|
+
logger.info('Statistics reset');
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* 设置硬规则检查器
|
|
309
|
+
*/
|
|
310
|
+
setHardRuleChecker(checker) {
|
|
311
|
+
this.hardRuleChecker = checker;
|
|
312
|
+
logger.info('Hard rule checker updated');
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* 设置 LLM 评估器
|
|
316
|
+
*/
|
|
317
|
+
setLLMEvaluator(evaluator) {
|
|
318
|
+
this.llmEvaluator = evaluator;
|
|
319
|
+
logger.info('LLM evaluator updated');
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* 健康检查
|
|
323
|
+
*/
|
|
324
|
+
async healthCheck() {
|
|
325
|
+
try {
|
|
326
|
+
// 测试硬规则检查
|
|
327
|
+
const testContent = '这是一个测试内容。';
|
|
328
|
+
this.hardRuleChecker.check(testContent, {});
|
|
329
|
+
logger.info('Quality check service health check passed');
|
|
330
|
+
return true;
|
|
331
|
+
}
|
|
332
|
+
catch (error) {
|
|
333
|
+
logger.error('Quality check service health check failed', error);
|
|
334
|
+
return false;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* 质量检查服务单例
|
|
340
|
+
*/
|
|
341
|
+
export const qualityCheckService = new QualityCheckService();
|
|
342
|
+
//# sourceMappingURL=QualityCheckService.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QualityCheckService.js","sourceRoot":"","sources":["../../../src/services/quality/QualityCheckService.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAkD,MAAM,sBAAsB,CAAC;AACvG,OAAO,EAAE,YAAY,EAA4B,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AAEnF,MAAM,MAAM,GAAG,YAAY,CAAC,cAAc,CAAC,CAAC;AAmD5C;;GAEG;AACH,MAAM,OAAO,mBAAmB;IACtB,eAAe,CAAkB;IACjC,YAAY,CAAe;IAC3B,WAAW,CAAU;IAE7B,OAAO;IACC,KAAK,GAAoB;QAC/B,WAAW,EAAE,CAAC;QACd,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,CAAC;QACf,eAAe,EAAE,CAAC;QAClB,eAAe,EAAE,CAAC;QAClB,QAAQ,EAAE,CAAC;KACZ,CAAC;IAEF;QACE,IAAI,CAAC,eAAe,GAAG,IAAI,eAAe,EAAE,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,IAAI,YAAY,EAAE,C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,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;YAE5C,MAAM,CAAC,IAAI,CAAC,2CAA2C,CAAC,CAAC;YACzD,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,CAAC,KAAK,CAAC,2CAA2C,EAAE,KAAc,CAAC,CAAC;YAC1E,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;CACF;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Quality 服务
|
|
3
|
+
*
|
|
4
|
+
* 质量检查服务,包含硬规则检查和 LLM 评审
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* 检查结果
|
|
8
|
+
*/
|
|
9
|
+
interface CheckResult {
|
|
10
|
+
passed: boolean;
|
|
11
|
+
score?: number;
|
|
12
|
+
reason?: string;
|
|
13
|
+
details?: any;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 质量阈值配置
|
|
17
|
+
*/
|
|
18
|
+
interface QualityThresholds {
|
|
19
|
+
minLength?: number;
|
|
20
|
+
maxLength?: number;
|
|
21
|
+
minScore?: number;
|
|
22
|
+
minWidth?: number;
|
|
23
|
+
minHeight?: number;
|
|
24
|
+
maxWidth?: number;
|
|
25
|
+
maxHeight?: number;
|
|
26
|
+
maxSize?: number;
|
|
27
|
+
passScore?: number;
|
|
28
|
+
goodScore?: number;
|
|
29
|
+
excellentScore?: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Quality 服务类
|
|
33
|
+
*/
|
|
34
|
+
export declare class QualityService {
|
|
35
|
+
private thresholds;
|
|
36
|
+
constructor(thresholds?: Partial<QualityThresholds>);
|
|
37
|
+
/**
|
|
38
|
+
* 检查文本质量
|
|
39
|
+
*/
|
|
40
|
+
checkText(text: string, requirements: string): Promise<CheckResult>;
|
|
41
|
+
/**
|
|
42
|
+
* 硬规则检查(文本)
|
|
43
|
+
*/
|
|
44
|
+
private checkTextHardRules;
|
|
45
|
+
/**
|
|
46
|
+
* LLM 检查(文本)
|
|
47
|
+
*/
|
|
48
|
+
private checkTextWithLLM;
|
|
49
|
+
/**
|
|
50
|
+
* 检查图片质量
|
|
51
|
+
*/
|
|
52
|
+
checkImage(imageUrl: string, requirements: string): Promise<CheckResult>;
|
|
53
|
+
/**
|
|
54
|
+
* 硬规则检查(图片)
|
|
55
|
+
*/
|
|
56
|
+
private checkImageHardRules;
|
|
57
|
+
/**
|
|
58
|
+
* LLM 检查(图片)
|
|
59
|
+
*/
|
|
60
|
+
private checkImageWithLLM;
|
|
61
|
+
/**
|
|
62
|
+
* 设置质量阈值
|
|
63
|
+
*/
|
|
64
|
+
setThresholds(thresholds: Partial<QualityThresholds>): void;
|
|
65
|
+
/**
|
|
66
|
+
* 获取当前阈值
|
|
67
|
+
*/
|
|
68
|
+
getThresholds(): QualityThresholds;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Quality 服务单例
|
|
72
|
+
*/
|
|
73
|
+
export declare const qualityService: QualityService;
|
|
74
|
+
export {};
|
|
75
|
+
//# sourceMappingURL=QualityService.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QualityService.d.ts","sourceRoot":"","sources":["../../../src/services/quality/QualityService.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAOH;;GAEG;AACH,UAAU,WAAW;IACnB,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED;;GAEG;AACH,UAAU,iBAAiB;IAEzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ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