15 Commits

Author SHA1 Message Date
af800b2eb5 fix: TypeScript build errors — RedisService.keys(), eventBus void, Qdrant API
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 22s
- Add keys() method to RedisService for WorkerHeartbeat
- Wrap eventBus.publish() calls in try/catch (returns void)
- Fix Qdrant createPayloadIndex API signature (2 args, not 3)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:22:56 +08:00
5fd737967f feat: M1-01~03 — AI Gateway deepening, Vector module, Task Queue deepening
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 23s
M1-01 AI Gateway:
- DB-driven ModelRoute/ProviderConfig/FallbackEvent tables
- ModelRouter rewrite with loadFromDb() hot-reload
- Fallback event recording + AIUsageRecorded event publishing
- Admin AAPI: routes CRUD, provider enable/disable, fallback events log

M1-02 Vector & Retrieval:
- VectorService with Qdrant client (upsert/delete/search/rerank)
- Admin AAPI: collection status, vector count, reindex trigger

M1-03 Task Queue:
- 16 task types with default retry/timeout configs
- Task stats dashboard, worker status panel, batch retry endpoint

M0 audit fixes:
- ApiMetric retention policy (30-day cleanup)
- Content Safety integration in Files module
- Queue registration centralized (domain-events)
- SECRET_MASTER_KEY production validation

E2E tests:
- M0: 28 smoke tests covering all 14 M0 issues
- M1: 16 tests covering M1-01/02/03
- Mock infrastructure: prisma, ioredis, jose, bullmq, qdrant

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:18:07 +08:00
d3ec1d52d6 fix: move event publish inside retry loop
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-23 09:43:01 +08:00
e7cbe6da26 feat: M0-08 — Domain Event publish on AI usage + EventBus injection
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 17s
2026-05-23 09:42:29 +08:00
908ffc7041 fix: add model field to SiliconFlow usage
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-23 09:39:27 +08:00
f8a9ae224e fix: await grouping
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:39:18 +08:00
22f6668077 fix: remove duplicate fields
Some checks are pending
Deploy API Server / build-and-deploy (push) Has started running
2026-05-23 09:39:10 +08:00
9501231148 fix: optional chaining on safetyCheck
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 1s
2026-05-23 09:38:47 +08:00
d4913a58a9 fix: remove duplicate contentSafety param
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:38:38 +08:00
22132410a2 feat: M0-08 — SiliconFlow provider + Content Safety integration + dynamic config
Some checks failed
Deploy API Server / build-and-deploy (push) Failing after 17s
2026-05-23 09:38:09 +08:00
577b2c7abe fix: rename controller in module
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-23 09:35:18 +08:00
8b3f463d34 fix: simplify AI Gateway controller
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:35:10 +08:00
5cd4e1ec5a feat: M0-08 admin AI Gateway status AAPI
Some checks failed
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:34:55 +08:00
597c7b2310 feat: implement P1 AI workflows (B7-B10)
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 59s
B7 Feynman evaluation: POST /ai-analysis/feynman
B8 Knowledge import: replaces DocumentImport setTimeout mock with AI
B9 Review card generation: POST /reviews/generate-cards
B10 Learning trend analysis: GET /activity/trend

4 workflows, 4 prompts, 4 schemas, all registered in AiModule.
AiAnalysisRepository made generic to handle varied result shapes.
DocumentImportService now calls KnowledgeImportWorkflow + saves to DB.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 10:07:57 +08:00
007b56dad5 feat: AI三层架构 + 全局JwtAuthGuard + 12个Repository迁Prisma
All checks were successful
Deploy API Server / build-and-deploy (push) Successful in 1m0s
- AI: 新三层架构 Provider→Gateway→Workflow(15文件,DeepSeek+MiniMax)
- Auth: 全局JwtAuthGuard + @Public()装饰器白名单路由
- DB: 12个Repository从Map/Array迁到Prisma
- Schema: 新增AiUsageLog、WaitlistEntry模型
- API: /api-docs-json加Basic Auth保护
- 清理: 删除infrastructure/ai、docs/旧文档

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-17 00:39:46 +08:00