feat(documents): rebuild project document workbench

This commit is contained in:
2026-07-24 12:16:02 +08:00
parent 366136cee9
commit 77beaebb30
73 changed files with 5867 additions and 1264 deletions

View File

@@ -50,7 +50,7 @@ type WorkspaceDTO struct {
Inbox []WorkspaceInboxDTO `json:"inbox"`
Tasks []WorkspaceTaskDTO `json:"tasks"`
AISessions []WorkspaceAISessionDTO `json:"aiSessions"`
NotesSources []WorkspaceNoteSourceDTO `json:"notesSources"`
Documents []WorkspaceDocumentDTO `json:"documents"`
CronPlans []WorkspaceCronPlanDTO `json:"cronPlans"`
}
@@ -121,15 +121,15 @@ type WorkspaceAISessionDTO struct {
References []string `json:"references"`
}
// WorkspaceNoteSourceDTO 将笔记和资料合并为统一的工作区列表项。
type WorkspaceNoteSourceDTO struct {
// WorkspaceDocumentDTO is the recent document summary used by the workspace.
type WorkspaceDocumentDTO struct {
ID string `json:"id"`
ProjectID string `json:"projectId"`
Kind string `json:"kind"`
Title string `json:"title"`
Name string `json:"name"`
Extension string `json:"extension"`
MimeType string `json:"mimeType"`
UpdatedAt time.Time `json:"updatedAt"`
Tag string `json:"tag"`
Source string `json:"source"`
}
// WorkspaceCronPlanDTO 是只展示元数据、不执行自主 Agent 的计划任务摘要。