feat(aia): Complete AIA V2.0 with universal streaming capabilities
Major Changes: - Add StreamingService with OpenAI Compatible format - Upgrade Chat component V2 with Ant Design X integration - Implement AIA module with 12 intelligent agents - Update API routes to unified /api/v1 prefix - Update system documentation Backend (~1300 lines): - common/streaming: OpenAI Compatible adapter - modules/aia: 12 agents, conversation service, streaming integration - Update route versions (RVW, PKB to v1) Frontend (~3500 lines): - modules/aia: AgentHub + ChatWorkspace (100% prototype restoration) - shared/Chat: AIStreamChat, ThinkingBlock, useAIStream Hook - Update API endpoints to v1 Documentation: - AIA module status guide - Universal capabilities catalog - System overview updates - All module documentation sync Tested: Stream response verified, authentication working Status: AIA V2.0 core completed (85%)
This commit is contained in:
@@ -14,6 +14,7 @@ import { rvwRoutes } from './modules/rvw/index.js';
|
||||
import { aslRoutes } from './modules/asl/routes/index.js';
|
||||
import { registerDCRoutes, initDCModule } from './modules/dc/index.js';
|
||||
import pkbRoutes from './modules/pkb/routes/index.js';
|
||||
import { aiaRoutes } from './modules/aia/index.js';
|
||||
import { registerHealthRoutes } from './common/health/index.js';
|
||||
import { logger } from './common/logging/index.js';
|
||||
import { authRoutes, registerAuthPlugin } from './common/auth/index.js';
|
||||
@@ -138,18 +139,22 @@ await fastify.register(batchRoutes, { prefix: '/api/v1' });
|
||||
await fastify.register(reviewRoutes, { prefix: '/api/v1' });
|
||||
|
||||
// ============================================
|
||||
// 【业务模块】RVW - 稿件审查系统(新架构 v2)
|
||||
// 【业务模块】RVW - 稿件审查系统
|
||||
// ============================================
|
||||
await fastify.register(rvwRoutes, { prefix: '/api/v2/rvw' });
|
||||
logger.info('✅ RVW稿件审查路由已注册(v2新架构): /api/v2/rvw');
|
||||
logger.info(' ⚠️ 旧版路由仍可用: /api/v1/review');
|
||||
await fastify.register(rvwRoutes, { prefix: '/api/v1/rvw' });
|
||||
logger.info('✅ RVW稿件审查路由已注册: /api/v1/rvw');
|
||||
|
||||
// ============================================
|
||||
// 【业务模块】PKB - 个人知识库(新架构 v2)
|
||||
// 【业务模块】PKB - 个人知识库
|
||||
// ============================================
|
||||
await fastify.register(pkbRoutes, { prefix: '/api/v2/pkb' });
|
||||
logger.info('✅ PKB个人知识库路由已注册(v2新架构): /api/v2/pkb');
|
||||
logger.info(' ⚠️ 旧版路由仍可用: /api/v1/knowledge, /api/v1/batch-tasks');
|
||||
await fastify.register(pkbRoutes, { prefix: '/api/v1/pkb' });
|
||||
logger.info('✅ PKB个人知识库路由已注册: /api/v1/pkb');
|
||||
|
||||
// ============================================
|
||||
// 【业务模块】AIA - AI智能问答
|
||||
// ============================================
|
||||
await fastify.register(aiaRoutes, { prefix: '/api/v1/aia' });
|
||||
logger.info('✅ AIA智能问答路由已注册: /api/v1/aia');
|
||||
|
||||
// ============================================
|
||||
// 【业务模块】ASL - AI智能文献筛选
|
||||
|
||||
Reference in New Issue
Block a user