@tano.page/workbench 0.14.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/package.json +21 -8
  2. package/src/App.vue +76 -17
  3. package/src/appearance/appearance.ts +14 -4
  4. package/src/appearance/components/ThemePresetPreview.vue +52 -8
  5. package/src/appearance/interface-font.ts +99 -0
  6. package/src/appearance/theme.ts +26 -10
  7. package/src/appearance/use-interface-font.ts +30 -0
  8. package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
  9. package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
  10. package/src/assets/mail-provider-icons/gmail.svg +1 -0
  11. package/src/assets/mail-provider-icons/icloud.svg +12 -0
  12. package/src/assets/mail-provider-icons/netease-126.svg +5 -0
  13. package/src/assets/mail-provider-icons/netease-163.svg +5 -0
  14. package/src/assets/mail-provider-icons/qq.svg +9 -0
  15. package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
  16. package/src/assistant/components/AssistantChangeList.vue +98 -21
  17. package/src/assistant/components/AssistantPanel.vue +424 -7
  18. package/src/assistant/components/PluginToolProposalCard.vue +235 -0
  19. package/src/assistant/engine.ts +56 -3
  20. package/src/assistant/files.ts +5 -13
  21. package/src/assistant/inbox.ts +1 -148
  22. package/src/assistant/locales/de-DE.json +4 -1
  23. package/src/assistant/locales/en-US.json +4 -1
  24. package/src/assistant/locales/es-ES.json +4 -1
  25. package/src/assistant/locales/ja-JP.json +4 -1
  26. package/src/assistant/locales/zh-CN.json +4 -1
  27. package/src/assistant/locales/zh-TW.json +4 -1
  28. package/src/assistant/mention-autocomplete.ts +69 -0
  29. package/src/assistant/prompts.ts +7 -0
  30. package/src/assistant/results.ts +20 -86
  31. package/src/assistant/store.ts +319 -12
  32. package/src/assistant/structures.ts +7 -5
  33. package/src/assistant/tasks.ts +3 -5
  34. package/src/assistant/workspace-bridge.ts +1 -1
  35. package/src/composables/use-document-actions.ts +38 -20
  36. package/src/composables/use-file-tree-controller.ts +7 -12
  37. package/src/composables/use-workbench-history.ts +2 -4
  38. package/src/composables/use-workbench-modals.ts +6 -1
  39. package/src/composables/use-workbench-outline.ts +0 -5
  40. package/src/composables/use-workbench-shortcuts.ts +26 -22
  41. package/src/data-tables/data-tables.ts +1 -2
  42. package/src/documents/components/DocumentHistoryPanel.vue +3 -1
  43. package/src/features.ts +1 -0
  44. package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
  45. package/src/fonts/Inter-Latin.woff2 +0 -0
  46. package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
  47. package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
  48. package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
  49. package/src/help/help-milestones.ts +3 -5
  50. package/src/i18n/locales/de-DE.json +349 -3
  51. package/src/i18n/locales/en-US.json +349 -2
  52. package/src/i18n/locales/es-ES.json +349 -3
  53. package/src/i18n/locales/ja-JP.json +348 -2
  54. package/src/i18n/locales/zh-TW.json +348 -2
  55. package/src/mail/components/MailAccountDialog.vue +449 -0
  56. package/src/mail/components/MailComposerDialog.vue +325 -0
  57. package/src/mail/components/MailProviderIcon.vue +30 -0
  58. package/src/mail/components/MailWorkspaceView.vue +820 -0
  59. package/src/mail/components/SidebarMail.vue +133 -0
  60. package/src/mail/mail-avatar.ts +17 -0
  61. package/src/mail/mail-bridge.ts +68 -0
  62. package/src/mail/mail-calendar.ts +208 -0
  63. package/src/mail/mail-markdown.ts +195 -0
  64. package/src/mail/types.ts +226 -0
  65. package/src/objects/components/ObjectDetailModal.vue +1001 -0
  66. package/src/objects/workspace-objects.ts +1 -1
  67. package/src/plan-sync/types.ts +6 -3
  68. package/src/plans/calendar-interaction.ts +194 -0
  69. package/src/plans/calendar.ts +63 -7
  70. package/src/plans/components/CalendarDayPopover.vue +172 -39
  71. package/src/plans/components/CalendarView.vue +1736 -276
  72. package/src/plans/components/PlanArchiveDialog.vue +295 -0
  73. package/src/plans/components/PlanDateField.vue +6 -4
  74. package/src/plans/components/PlanDetailPanel.vue +227 -32
  75. package/src/plans/components/PlanEventList.vue +16 -4
  76. package/src/plans/components/SidebarPlan.vue +22 -15
  77. package/src/plans/components/TaskRepeatControls.vue +169 -30
  78. package/src/plans/local-reminders.ts +149 -0
  79. package/src/plans/personal-plans.ts +10 -1
  80. package/src/plans/plan-date.ts +8 -1
  81. package/src/plans/plan-migration.ts +95 -0
  82. package/src/plans/recurrence.ts +95 -0
  83. package/src/plans/task-repeat.ts +8 -8
  84. package/src/plans/timeline-layout.ts +92 -0
  85. package/src/plugins/assistant-bridge.ts +520 -0
  86. package/src/plugins/attachment-reader.ts +3 -1
  87. package/src/plugins/cache-storage.ts +42 -2
  88. package/src/plugins/components/PluginAutomations.vue +3 -3
  89. package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
  90. package/src/plugins/components/PluginChangeSummary.vue +16 -3
  91. package/src/plugins/components/PluginConnections.vue +1 -1
  92. package/src/plugins/components/PluginCustomView.vue +2 -2
  93. package/src/plugins/components/PluginDetailPage.vue +129 -54
  94. package/src/plugins/components/PluginDocumentSlot.vue +63 -0
  95. package/src/plugins/components/PluginExplorer.vue +15 -21
  96. package/src/plugins/components/PluginImportDialog.vue +410 -0
  97. package/src/plugins/components/PluginInstaller.vue +39 -145
  98. package/src/plugins/components/PluginListItem.vue +3 -0
  99. package/src/plugins/components/PluginMaintenance.vue +21 -6
  100. package/src/plugins/components/PluginRuntimePanel.vue +3 -3
  101. package/src/plugins/components/PluginSettingsForm.vue +111 -0
  102. package/src/plugins/components/PluginStatusBar.vue +161 -0
  103. package/src/plugins/components/PluginSurface.vue +18 -6
  104. package/src/plugins/components/PluginUiDialog.vue +452 -0
  105. package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
  106. package/src/plugins/excalidraw/manifest.json +12 -1
  107. package/src/plugins/host.ts +662 -43
  108. package/src/plugins/native.ts +2 -10
  109. package/src/plugins/overlay-mapping.ts +125 -0
  110. package/src/plugins/packages.ts +73 -1
  111. package/src/plugins/plugin-permissions.ts +57 -0
  112. package/src/plugins/plugin-sdk.ts +174 -8
  113. package/src/plugins/policy.ts +53 -3
  114. package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
  115. package/src/plugins/presentation-preview/manifest.json +2 -1
  116. package/src/plugins/queries.ts +3 -1
  117. package/src/plugins/sandbox.ts +15 -1
  118. package/src/plugins/use-plugin-actions.ts +67 -20
  119. package/src/plugins/user-plugins.ts +254 -0
  120. package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
  121. package/src/plugins/word-preview/manifest.json +13 -1
  122. package/src/plugins/workbench.ts +175 -2
  123. package/src/plugins/worker.js +105 -8
  124. package/src/plugins/workspace-plugin-runtime.ts +23 -7
  125. package/src/plugins/workspace-plugins.ts +212 -21
  126. package/src/runtime.ts +101 -3
  127. package/src/settings/components/SettingsAppearancePage.vue +46 -0
  128. package/src/settings/components/SettingsDocumentsPage.vue +0 -1
  129. package/src/settings/components/settings-search.ts +2 -3
  130. package/src/shell/components/SidebarNavigation.vue +22 -2
  131. package/src/shell/components/WorkbenchContextMenus.vue +21 -8
  132. package/src/shell/components/WorkbenchModals.vue +27 -46
  133. package/src/shell/components/WorkbenchPanes.vue +267 -84
  134. package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
  135. package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
  136. package/src/shell/use-workbench.ts +116 -145
  137. package/src/shell/workbench-async-components.ts +14 -5
  138. package/src/stores/mail.ts +414 -0
  139. package/src/stores/plan-sync.ts +2 -1
  140. package/src/stores/plans.ts +2 -9
  141. package/src/stores/workspace-knowledge.ts +1 -113
  142. package/src/stores/workspace-plugins-state.ts +537 -14
  143. package/src/stores/workspace-tabs-layout.ts +5 -43
  144. package/src/stores/workspace.ts +69 -66
  145. package/src/styles/agent-diff-modals.css +0 -7
  146. package/src/styles/dark-theme.css +3 -3
  147. package/src/styles/inspector.css +0 -59
  148. package/src/styles/layout-themes.css +346 -0
  149. package/src/styles/mail.css +1568 -0
  150. package/src/styles/mobile.css +2 -2
  151. package/src/styles/recent-and-media.css +0 -17
  152. package/src/styles/theme-contract.css +3 -3
  153. package/src/styles/workbench-shell.css +110 -17
  154. package/src/styles/workspace-states.css +9 -33
  155. package/src/styles.css +1 -1
  156. package/src/tabs/components/DesktopTabs.vue +0 -3
  157. package/src/tabs/components/NewTabPicker.vue +10 -4
  158. package/src/tabs/tab-label.ts +0 -1
  159. package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
  160. package/src/workspace/components/WorkspaceIconPicker.vue +28 -6
  161. package/src/workspace/workspace-comments.ts +11 -151
  162. package/src/workspace/workspace-welcome.ts +1 -1
  163. package/src/documents/components/FormulaMenu.vue +0 -50
  164. package/src/files/components/FileDatabasePage.vue +0 -152
  165. package/src/files/components/FolderHomeIcon.vue +0 -12
  166. package/src/objects/components/ObjectDatabasePage.vue +0 -100
  167. package/src/objects/components/ObjectPanel.vue +0 -554
  168. package/src/plans/components/PersonalPlanDialog.vue +0 -105
  169. package/src/shell/components/WorkspaceViewPage.vue +0 -127
  170. package/src/shell/components/WorkspaceViewTab.vue +0 -24
  171. package/src/styles/object-panel.css +0 -163
  172. package/src/workspace/components/GitInspectionPanel.vue +0 -35
  173. package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
  174. package/src/workspace/welcome-slogans.ts +0 -11
  175. package/src/workspace/workspace-git.ts +0 -35
  176. package/src/workspace/workspace-sync.ts +0 -46
  177. package/src/workspace/workspace-views.ts +0 -48
@@ -0,0 +1,226 @@
1
+ // SPDX-License-Identifier: MIT
2
+
3
+ export const MAIL_TAB_ID = 'view:mail';
4
+
5
+ export type TlsMode = 'tls' | 'starttls';
6
+ export type AppendSentPolicy = 'auto' | 'never' | 'always';
7
+ export type MailFilter = 'all' | 'unread' | 'flagged' | 'calendar' | 'attachments';
8
+ export type RsvpResponseStatus = 'ACCEPTED' | 'TENTATIVE' | 'DECLINED';
9
+
10
+ export interface MailPreset {
11
+ id: string;
12
+ name: string;
13
+ imapHost: string;
14
+ imapPort: number;
15
+ imapTls: TlsMode;
16
+ smtpHost: string;
17
+ smtpPort: number;
18
+ smtpTls: TlsMode;
19
+ appendSent: AppendSentPolicy;
20
+ sendImapId: boolean;
21
+ authHint: string;
22
+ }
23
+
24
+ export interface MailAccount {
25
+ id: string;
26
+ provider: string;
27
+ label: string;
28
+ email: string;
29
+ displayName: string;
30
+ imapHost: string;
31
+ imapPort: number;
32
+ imapTls: TlsMode;
33
+ smtpHost: string;
34
+ smtpPort: number;
35
+ smtpTls: TlsMode;
36
+ appendSent: AppendSentPolicy;
37
+ sendImapId: boolean;
38
+ createdAt: number;
39
+ }
40
+
41
+ export interface MailAccountInput {
42
+ id?: string;
43
+ provider: string;
44
+ label: string;
45
+ email: string;
46
+ displayName: string;
47
+ imapHost: string;
48
+ imapPort: number;
49
+ imapTls: TlsMode;
50
+ smtpHost: string;
51
+ smtpPort: number;
52
+ smtpTls: TlsMode;
53
+ appendSent: AppendSentPolicy;
54
+ sendImapId: boolean;
55
+ }
56
+
57
+ export interface MailCredentials {
58
+ username: string;
59
+ password: string;
60
+ }
61
+
62
+ export interface MailTestResult {
63
+ imapOk: boolean;
64
+ smtpOk: boolean;
65
+ folderCount: number;
66
+ message: string;
67
+ }
68
+
69
+ export interface MailFolder {
70
+ id: string;
71
+ accountId: string;
72
+ remoteName: string;
73
+ displayName: string;
74
+ specialUse: string | null;
75
+ uidValidity: number | null;
76
+ uidNext: number | null;
77
+ unreadCount: number;
78
+ totalCount: number;
79
+ syncedAt: number | null;
80
+ }
81
+
82
+ export interface MailAddress {
83
+ name: string;
84
+ address: string;
85
+ }
86
+
87
+ export interface MailMessageSummary {
88
+ id: string;
89
+ accountId: string;
90
+ folderId: string;
91
+ uid: number;
92
+ messageId: string;
93
+ threadKey: string;
94
+ subject: string;
95
+ from: MailAddress[];
96
+ to: MailAddress[];
97
+ dateTs: number;
98
+ snippet: string;
99
+ seen: boolean;
100
+ flagged: boolean;
101
+ answered: boolean;
102
+ hasAttachments: boolean;
103
+ hasIcs: boolean;
104
+ bodyFetched: boolean;
105
+ }
106
+
107
+ export interface MailAttachmentInfo {
108
+ id: string;
109
+ messageId: string;
110
+ partId: string;
111
+ filename: string;
112
+ contentType: string;
113
+ sizeBytes: number;
114
+ cid: string | null;
115
+ isInline: boolean;
116
+ downloaded: boolean;
117
+ }
118
+
119
+ export interface MailCalendarInvite {
120
+ id: string;
121
+ messageId: string;
122
+ icsUid: string;
123
+ method: string;
124
+ summary: string;
125
+ rawIcs: string;
126
+ importedObjectId: string | null;
127
+ rsvpStatus: string | null;
128
+ }
129
+
130
+ export interface MailMessageDetail {
131
+ summary: MailMessageSummary;
132
+ cc: MailAddress[];
133
+ replyTo: MailAddress[];
134
+ inReplyTo: string | null;
135
+ references: string[];
136
+ textBody: string;
137
+ htmlSanitized: string;
138
+ hasRemoteImages: boolean;
139
+ attachments: MailAttachmentInfo[];
140
+ invites: MailCalendarInvite[];
141
+ }
142
+
143
+ export interface MailSyncSummary {
144
+ accountId: string;
145
+ foldersSynced: number;
146
+ messagesAdded: number;
147
+ syncedAt: number;
148
+ }
149
+
150
+ export interface MailFlagsPatch {
151
+ seen?: boolean;
152
+ flagged?: boolean;
153
+ }
154
+
155
+ export interface MailSendAttachment {
156
+ filename: string;
157
+ contentType: string;
158
+ bytesBase64: string;
159
+ }
160
+
161
+ export interface MailSendRequest {
162
+ accountId: string;
163
+ to: string[];
164
+ cc?: string[];
165
+ bcc?: string[];
166
+ subject: string;
167
+ textBody: string;
168
+ htmlBody?: string;
169
+ inReplyTo?: string;
170
+ references?: string[];
171
+ attachments?: MailSendAttachment[];
172
+ calendarIcs?: string;
173
+ calendarMethod?: string;
174
+ }
175
+
176
+ export interface MailSendResult {
177
+ messageId: string;
178
+ appendedToSent: boolean;
179
+ }
180
+
181
+ export interface MailDownloadedAttachment {
182
+ id: string;
183
+ filename: string;
184
+ contentType: string;
185
+ sizeBytes: number;
186
+ bytesBase64: string;
187
+ }
188
+
189
+ export interface MailCacheStats {
190
+ messageCount: number;
191
+ cachedBodyBytes: number;
192
+ cachedAttachmentBytes: number;
193
+ limitBytes: number;
194
+ }
195
+
196
+ export interface MailDraft {
197
+ id: string;
198
+ accountId: string;
199
+ to: string[];
200
+ cc: string[];
201
+ bcc: string[];
202
+ subject: string;
203
+ markdownBody: string;
204
+ inReplyTo: string | null;
205
+ references: string[];
206
+ updatedAt: number;
207
+ }
208
+
209
+ export interface MailComposeSeed {
210
+ accountId?: string;
211
+ to?: string[];
212
+ cc?: string[];
213
+ subject?: string;
214
+ markdownBody?: string;
215
+ inReplyTo?: string | null;
216
+ references?: string[];
217
+ attachments?: MailSendAttachment[];
218
+ }
219
+
220
+ export function formatMailAddress(addr: MailAddress): string {
221
+ return addr.name ? `${addr.name} <${addr.address}>` : addr.address;
222
+ }
223
+
224
+ export function formatMailAddressList(list: readonly MailAddress[]): string {
225
+ return list.map(formatMailAddress).join(', ');
226
+ }