feat(knowledge): 展示文档处理进度并自动衔接导入索引

This commit is contained in:
2026-09-15 12:34:52 +08:00
parent b0bf7a49eb
commit fee2f4c2f3
10 changed files with 616 additions and 125 deletions

View File

@@ -319,7 +319,15 @@ export interface CloudChannelControl {
}
export interface CloudChannelAccountStatus { status: string; message?: string }
export interface CloudKnowledge { kb_id: string; name: string; description: string; embedding_model: string }
export interface CloudKnowledgeFile { file_id: string; name: string; size: number; status: string; error: string | null; chunk_count: number }
export interface CloudKnowledgeFile {
file_id: string; name: string; size: number; status: string; error: string | null; chunk_count: number;
available: boolean;
replaces_file_id?: string | null;
processing_task?: {
task_id: string; status: string; error: string | null;
created_at?: string | null; started_at?: string | null; completed_at?: string | null;
} | null;
}
export interface CloudMcp { slug: string; name: string; description: string; transport: 'sse' | 'streamable_http'; url: string; enabled: boolean; has_credentials: boolean }
export interface CloudMcpInput { name: string; description: string; transport: 'sse' | 'streamable_http'; url: string; headers?: Record<string, string> | null }
export interface CloudChild { slug: string; name: string; purpose: string; system_prompt: string }