AIA V2.0 Major Updates: - Add StreamingService with OpenAI Compatible format (backend/common/streaming) - Upgrade Chat component V2 with Ant Design X deep integration - Implement 12 intelligent agents (5 phases: topic/design/review/data/writing) - Create AgentHub with 100% prototype V11 restoration - Create ChatWorkspace with fullscreen immersive experience - Add ThinkingBlock for deep thinking display - Add useAIStream Hook for stream handling - Add ConversationList for conversation management Backend (~1300 lines): - common/streaming: OpenAI adapter and streaming service - modules/aia: 12 agents config, conversation service, attachment service - Unified API routes to /api/v1 (RVW, PKB, AIA modules) - Update authentication and permission helpers Frontend (~3500 lines): - modules/aia: AgentHub + ChatWorkspace + AgentCard components - shared/Chat: AIStreamChat, ThinkingBlock, useAIStream, useConversations - Update all modules API endpoints to v1 - Modern design with theme colors (blue/yellow/teal/purple) Documentation (~2500 lines): - AIA module status and development guide - Universal capabilities catalog (11 services) - Quick reference card - System overview updates - All module documentation synchronization Other Updates: - DC Tool C: Python operations and frontend components - IIT Manager: session memory and wechat service - PKB/RVW/ASL: API route updates - Docker configs and deployment scripts - Database migrations and scripts - Test files and documentation Tested: AIA streaming verified, authentication working, core features functional Status: AIA V2.0 completed (85%), all changes synchronized
58 lines
828 B
SQL
58 lines
828 B
SQL
-- 在 platform_schema.users 中创建 mock 用户
|
|
-- 用于 PKB 等模块的测试
|
|
|
|
-- 首先需要一个默认租户
|
|
INSERT INTO platform_schema.tenants (id, code, name, type, status, created_at, updated_at)
|
|
VALUES (
|
|
'tenant-mock-001',
|
|
'mock-tenant',
|
|
'测试租户',
|
|
'INTERNAL',
|
|
'ACTIVE',
|
|
NOW(),
|
|
NOW()
|
|
)
|
|
ON CONFLICT (id) DO NOTHING;
|
|
|
|
-- 创建 mock 用户
|
|
INSERT INTO platform_schema.users (
|
|
id,
|
|
phone,
|
|
email,
|
|
password,
|
|
is_default_password,
|
|
name,
|
|
role,
|
|
status,
|
|
tenant_id,
|
|
kb_quota,
|
|
kb_used,
|
|
is_trial,
|
|
created_at,
|
|
updated_at
|
|
)
|
|
VALUES (
|
|
'user-mock-001',
|
|
'13800000000',
|
|
'mock@test.com',
|
|
'$2b$10$mockhashedpassword123456789',
|
|
true,
|
|
'测试用户',
|
|
'USER',
|
|
'active',
|
|
'tenant-mock-001',
|
|
3,
|
|
0,
|
|
false,
|
|
NOW(),
|
|
NOW()
|
|
)
|
|
ON CONFLICT (id) DO NOTHING;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|