3c242a807a
fix: M2-02/06 audit — system KB seed + candidate Content Safety
...
Deploy API Server / build-and-deploy (push) Failing after 19s
- SystemKnowledgeBaseSeed: auto-creates built-in 新手引导知识库
- Content Safety check on candidate accept() and createCandidates()
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:58:50 +08:00
0c07b59765
fix: add @Optional() to ContentSafetyService in RagChatService
...
Deploy API Server / build-and-deploy (push) Successful in 41s
Same issue as KnowledgeBaseService — NestJS can't resolve
ContentSafetyService in RagChatModule without @Optional().
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:46:30 +08:00
7ae94d9178
feat: M2-08 — Knowledge Ops, chunk viewer + RAG debug + candidate inspector
...
Deploy API Server / build-and-deploy (push) Failing after 33s
- Chunk viewer AAPI (by sourceId)
- RAG debug search endpoint
- KnowledgeOps admin page (candidate inspection, chunk management, RAG debug)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:43:23 +08:00
98bc9961ba
feat: M2-07 — RAG Chat module with sessions, messages, citations
...
Deploy API Server / build-and-deploy (push) Failing after 33s
- ChatSession/ChatMessage/ChatCitation Prisma models
- CAPI: create/list sessions, send message, get history, delete
- Admin AAPI: view user sessions and messages
- Content safety integration on user input
- Placeholder RAG pipeline (real pipeline in M3)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:39:14 +08:00
06351c7381
feat: M2-06 — Artifact model + KnowledgeItem.learnable + Admin AAPI
...
Deploy API Server / build-and-deploy (push) Successful in 39s
- Artifact base model for future FlashcardSet/Quiz/StudyGuide
- KnowledgeItem.learnable boolean (default true) for M3 LearningSession
- Admin AAPI: GET candidates (by status/kbId), GET items (by kbId)
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:34:24 +08:00
68540b0d67
feat: M2-05 — Vector integration contracts + citation context assembler
...
Deploy API Server / build-and-deploy (push) Successful in 38s
- integration-types.ts: IndexableChunk, CitationContext, RetrievalRequest/Response
- VectorService.buildCitationContexts() for RAG citation assembly
- Defines Ingestion↔Vector↔RAG interface contracts
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:28:05 +08:00
9520d1f549
feat: M2-04 — Ingestion & Indexing, ImportStepLog + Admin monitor AAPI
...
Deploy API Server / build-and-deploy (push) Successful in 42s
- ImportStepLog model for tracking each import pipeline step
- Admin AAPI: import list, detail with step logs, retry failed
- Admin page: ImportMonitor with drawer detail view
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 13:12:16 +08:00
f0ddd7cf38
fix: add try-catch to all OnModuleInit hooks to prevent startup crashes
...
Deploy API Server / build-and-deploy (push) Failing after 34s
- PrismaService.onModuleInit: catch DB connection failures
- CostAggregationService.onModuleInit: catch aggregation errors
- MetricsCleanupService.onModuleInit: catch cleanup errors
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 12:48:30 +08:00
b71371cd1c
fix: lazy-init Qdrant connection to prevent app startup hang
...
Deploy API Server / build-and-deploy (push) Failing after 34s
VectorService.onModuleInit() was blocking NestJS startup trying to
connect to Qdrant, causing systemd restart timeout. Changed to lazy
initialization: Qdrant client connects on first actual request only.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 12:14:14 +08:00
81c49ca067
fix: add @Optional() to ContentSafetyService in KnowledgeBaseService
...
Deploy API Server / build-and-deploy (push) Failing after 33s
NestJS couldn't resolve ContentSafetyService because ContentSafetyModule
is not imported in KnowledgeBaseModule, causing app startup crash.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:42:41 +08:00
b3bce7ff78
feat: M2-03 — Material & Source, SourceReference citation tracking
...
Deploy API Server / build-and-deploy (push) Failing after 11s
- SourceReference model for artifact→chunk→source citation chain
- Admin source list + reference tracing endpoints
- Existing KnowledgeSource already covers Material status/version
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:31:46 +08:00
052cd5cba8
feat: M2-02 — Workspace + KnowledgeBase + Folder management
...
Deploy API Server / build-and-deploy (push) Failing after 11s
- Workspace + KnowledgeFolder Prisma models
- Folder CRUD: create/list/update/delete (soft-delete with children)
- Content Safety integration for KB title on create/update
- E2E: KB create, folder CRUD, admin KB list
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:23:58 +08:00
292e7e5638
feat: M2-01 — User & Account deepening, membership + deletion + devices
...
Deploy API Server / build-and-deploy (push) Failing after 33s
- UserDevice + AccountDeletionRequest Prisma models
- CAPI: membership query, deletion request/cancel, device list/remove
- AAPI: membership assign, deletion approve/reject, device view
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:18:56 +08:00
14eaad53c3
fix: auto-aggregate AI costs hourly instead of manual-only
...
Deploy API Server / build-and-deploy (push) Failing after 33s
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:13:02 +08:00
eb62868e8f
feat: M1-06 — Quota/Cost closing, AI cost aggregation + reports + CSV export
...
Deploy API Server / build-and-deploy (push) Successful in 39s
- CostAggregationService: AiUsageLog → CostDailySummary daily aggregation
- AAPI: cost report by provider/model/daily trend, CSV export, top consumers
- Manual aggregation trigger endpoint
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 11:03:52 +08:00
809f125107
feat: M1-05 — Observability deepening, AI + Worker performance metrics
...
Deploy API Server / build-and-deploy (push) Successful in 39s
- GET /admin-api/metrics/ai — AI调用耗时按provider/模型分组
- GET /admin-api/metrics/worker — Worker任务按队列统计成功率
- Admin page: AI performance + Worker performance tabs
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:56:36 +08:00
a08fd4970a
feat: M1-04 — Content Safety deepening, reports CAPI, violation records
...
Deploy API Server / build-and-deploy (push) Successful in 39s
- Add ViolationRecord table (Prisma + migration)
- CAPI POST /api/reports for user report submission
- AAPI reports list + handle, violations list + penalty apply
- Admin page: reports management + violation records tabs
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:53:19 +08:00
90c27ee979
fix: don't crash on startup when SECRET_MASTER_KEY is not set in production
...
Deploy API Server / build-and-deploy (push) Successful in 40s
Changed getMasterKey() from throwing Error at module load time to logging
a critical console.error, so the app can still start without the env var.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-24 10:46:20 +08:00
af800b2eb5
fix: TypeScript build errors — RedisService.keys(), eventBus void, Qdrant API
...
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
...
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
d32411760f
feat: M0-12 Secret & Vendor Asset — AES-256-GCM encrypted key storage + Admin AAPI
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-23 20:36:39 +08:00
2a3f55c58e
fix: simplify dashboard — skip missing tables
Deploy API Server / build-and-deploy (push) Failing after 22s
2026-05-23 20:28:10 +08:00
28ff67c69e
fix: BigInt for sizeBytes
Deploy API Server / build-and-deploy (push) Failing after 1s
2026-05-23 20:26:44 +08:00
6aa24cc5bb
fix: dashboard safe queries for missing tables + workflow prisma generate
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 20:26:34 +08:00
fd1897d385
feat: M0-11 — QuotaService + Redis deduction + Admin AAPI + CostDailySummary + UserMembership
Deploy API Server / build-and-deploy (push) Failing after 21s
2026-05-23 20:13:49 +08:00
d88233fd5b
feat: M0-10 — audit log for manual task retry
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-23 20:08:54 +08:00
7a31bd3702
fix: revert AdminAuditService to PrismaService — queue not available in auth module
Deploy API Server / build-and-deploy (push) Failing after 41s
2026-05-23 19:57:43 +08:00
99d03bb26c
feat: M0-10 — TaskLog table + task events + retry audit
Deploy API Server / build-and-deploy (push) Failing after 32s
2026-05-23 19:29:08 +08:00
2c6d56bcfc
feat: M0-10 — Task types enum + worker heartbeat + Domain Events for tasks
Deploy API Server / build-and-deploy (push) Successful in 40s
2026-05-23 19:27:46 +08:00
9244db05b4
feat: M0-09 — BullMQ cleanup queue + Domain Events + async COS delete
Deploy API Server / build-and-deploy (push) Successful in 35s
2026-05-23 09:47:30 +08:00
7eb7427817
fix: use hard delete
Deploy API Server / build-and-deploy (push) Successful in 40s
2026-05-23 09:44:39 +08:00
8d08b0ed9c
fix: remove deletedAt filter
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:44:32 +08:00
32be0d8831
feat: M0-09 admin files AAPI
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:44:19 +08:00
d3ec1d52d6
fix: move event publish inside retry loop
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
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
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-23 09:39:27 +08:00
f8a9ae224e
fix: await grouping
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:39:18 +08:00
22f6668077
fix: remove duplicate fields
Deploy API Server / build-and-deploy (push) Has started running
2026-05-23 09:39:10 +08:00
9501231148
fix: optional chaining on safetyCheck
Deploy API Server / build-and-deploy (push) Failing after 1s
2026-05-23 09:38:47 +08:00
d4913a58a9
fix: remove duplicate contentSafety param
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
Deploy API Server / build-and-deploy (push) Failing after 17s
2026-05-23 09:38:09 +08:00
577b2c7abe
fix: rename controller in module
Deploy API Server / build-and-deploy (push) Successful in 38s
2026-05-23 09:35:18 +08:00
8b3f463d34
fix: simplify AI Gateway controller
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
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-23 09:34:55 +08:00
2bd416c807
feat: M0-07 Observability — MetricsInterceptor + admin metrics AAPI
Deploy API Server / build-and-deploy (push) Successful in 36s
2026-05-22 23:19:31 +08:00
9e8f3dccd7
feat: M0-06 Content Safety — sensitive word check + admin AAPI
Deploy API Server / build-and-deploy (push) Has been cancelled
2026-05-22 23:12:39 +08:00
28d68675b1
feat: M0-05 Traffic Protection — Redis throttle + timeout
Deploy API Server / build-and-deploy (push) Failing after 18s
2026-05-22 23:09:16 +08:00
b5a983dc6b
feat: M0-04 Audit — async BullMQ writes + riskLevel + reason + SecurityEvent
Deploy API Server / build-and-deploy (push) Successful in 39s
2026-05-22 23:03:32 +08:00
a1ac07bf88
feat: M0-03 feature flag whitelist + more config integration
Deploy API Server / build-and-deploy (push) Successful in 37s
2026-05-22 23:00:47 +08:00
dee0b250b6
fix: HERMES_API_URL reference
Deploy API Server / build-and-deploy (push) Failing after 20s
2026-05-22 22:40:13 +08:00