@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.
- package/package.json +21 -8
- package/src/App.vue +76 -17
- package/src/appearance/appearance.ts +14 -4
- package/src/appearance/components/ThemePresetPreview.vue +52 -8
- package/src/appearance/interface-font.ts +99 -0
- package/src/appearance/theme.ts +26 -10
- package/src/appearance/use-interface-font.ts +30 -0
- package/src/assets/mail-provider-icons/NOTICE.txt +27 -0
- package/src/assets/mail-provider-icons/aliyun-mail.svg +3 -0
- package/src/assets/mail-provider-icons/gmail.svg +1 -0
- package/src/assets/mail-provider-icons/icloud.svg +12 -0
- package/src/assets/mail-provider-icons/netease-126.svg +5 -0
- package/src/assets/mail-provider-icons/netease-163.svg +5 -0
- package/src/assets/mail-provider-icons/qq.svg +9 -0
- package/src/assets/mail-provider-icons/tencent-exmail.svg +4 -0
- package/src/assistant/components/AssistantChangeList.vue +98 -21
- package/src/assistant/components/AssistantPanel.vue +424 -7
- package/src/assistant/components/PluginToolProposalCard.vue +235 -0
- package/src/assistant/engine.ts +56 -3
- package/src/assistant/files.ts +5 -13
- package/src/assistant/inbox.ts +1 -148
- package/src/assistant/locales/de-DE.json +4 -1
- package/src/assistant/locales/en-US.json +4 -1
- package/src/assistant/locales/es-ES.json +4 -1
- package/src/assistant/locales/ja-JP.json +4 -1
- package/src/assistant/locales/zh-CN.json +4 -1
- package/src/assistant/locales/zh-TW.json +4 -1
- package/src/assistant/mention-autocomplete.ts +69 -0
- package/src/assistant/prompts.ts +7 -0
- package/src/assistant/results.ts +20 -86
- package/src/assistant/store.ts +319 -12
- package/src/assistant/structures.ts +7 -5
- package/src/assistant/tasks.ts +3 -5
- package/src/assistant/workspace-bridge.ts +1 -1
- package/src/composables/use-document-actions.ts +38 -20
- package/src/composables/use-file-tree-controller.ts +7 -12
- package/src/composables/use-workbench-history.ts +2 -4
- package/src/composables/use-workbench-modals.ts +6 -1
- package/src/composables/use-workbench-outline.ts +0 -5
- package/src/composables/use-workbench-shortcuts.ts +26 -22
- package/src/data-tables/data-tables.ts +1 -2
- package/src/documents/components/DocumentHistoryPanel.vue +3 -1
- package/src/features.ts +1 -0
- package/src/fonts/Inter-Latin-Italic.woff2 +0 -0
- package/src/fonts/Inter-Latin.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Bold.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Medium.woff2 +0 -0
- package/src/fonts/TanoUISansSC-Regular.woff2 +0 -0
- package/src/help/help-milestones.ts +3 -5
- package/src/i18n/locales/de-DE.json +349 -3
- package/src/i18n/locales/en-US.json +349 -2
- package/src/i18n/locales/es-ES.json +349 -3
- package/src/i18n/locales/ja-JP.json +348 -2
- package/src/i18n/locales/zh-TW.json +348 -2
- package/src/mail/components/MailAccountDialog.vue +449 -0
- package/src/mail/components/MailComposerDialog.vue +325 -0
- package/src/mail/components/MailProviderIcon.vue +30 -0
- package/src/mail/components/MailWorkspaceView.vue +820 -0
- package/src/mail/components/SidebarMail.vue +133 -0
- package/src/mail/mail-avatar.ts +17 -0
- package/src/mail/mail-bridge.ts +68 -0
- package/src/mail/mail-calendar.ts +208 -0
- package/src/mail/mail-markdown.ts +195 -0
- package/src/mail/types.ts +226 -0
- package/src/objects/components/ObjectDetailModal.vue +1001 -0
- package/src/objects/workspace-objects.ts +1 -1
- package/src/plan-sync/types.ts +6 -3
- package/src/plans/calendar-interaction.ts +194 -0
- package/src/plans/calendar.ts +63 -7
- package/src/plans/components/CalendarDayPopover.vue +172 -39
- package/src/plans/components/CalendarView.vue +1736 -276
- package/src/plans/components/PlanArchiveDialog.vue +295 -0
- package/src/plans/components/PlanDateField.vue +6 -4
- package/src/plans/components/PlanDetailPanel.vue +227 -32
- package/src/plans/components/PlanEventList.vue +16 -4
- package/src/plans/components/SidebarPlan.vue +22 -15
- package/src/plans/components/TaskRepeatControls.vue +169 -30
- package/src/plans/local-reminders.ts +149 -0
- package/src/plans/personal-plans.ts +10 -1
- package/src/plans/plan-date.ts +8 -1
- package/src/plans/plan-migration.ts +95 -0
- package/src/plans/recurrence.ts +95 -0
- package/src/plans/task-repeat.ts +8 -8
- package/src/plans/timeline-layout.ts +92 -0
- package/src/plugins/assistant-bridge.ts +520 -0
- package/src/plugins/attachment-reader.ts +3 -1
- package/src/plugins/cache-storage.ts +42 -2
- package/src/plugins/components/PluginAutomations.vue +3 -3
- package/src/plugins/components/PluginCatalogBrowser.vue +17 -8
- package/src/plugins/components/PluginChangeSummary.vue +16 -3
- package/src/plugins/components/PluginConnections.vue +1 -1
- package/src/plugins/components/PluginCustomView.vue +2 -2
- package/src/plugins/components/PluginDetailPage.vue +129 -54
- package/src/plugins/components/PluginDocumentSlot.vue +63 -0
- package/src/plugins/components/PluginExplorer.vue +15 -21
- package/src/plugins/components/PluginImportDialog.vue +410 -0
- package/src/plugins/components/PluginInstaller.vue +39 -145
- package/src/plugins/components/PluginListItem.vue +3 -0
- package/src/plugins/components/PluginMaintenance.vue +21 -6
- package/src/plugins/components/PluginRuntimePanel.vue +3 -3
- package/src/plugins/components/PluginSettingsForm.vue +111 -0
- package/src/plugins/components/PluginStatusBar.vue +161 -0
- package/src/plugins/components/PluginSurface.vue +18 -6
- package/src/plugins/components/PluginUiDialog.vue +452 -0
- package/src/plugins/excalidraw/bundle.tano-plugin.json +1 -1
- package/src/plugins/excalidraw/manifest.json +12 -1
- package/src/plugins/host.ts +662 -43
- package/src/plugins/native.ts +2 -10
- package/src/plugins/overlay-mapping.ts +125 -0
- package/src/plugins/packages.ts +73 -1
- package/src/plugins/plugin-permissions.ts +57 -0
- package/src/plugins/plugin-sdk.ts +174 -8
- package/src/plugins/policy.ts +53 -3
- package/src/plugins/presentation-preview/bundle.tano-plugin.json +1 -1
- package/src/plugins/presentation-preview/manifest.json +2 -1
- package/src/plugins/queries.ts +3 -1
- package/src/plugins/sandbox.ts +15 -1
- package/src/plugins/use-plugin-actions.ts +67 -20
- package/src/plugins/user-plugins.ts +254 -0
- package/src/plugins/word-preview/bundle.tano-plugin.json +1 -1
- package/src/plugins/word-preview/manifest.json +13 -1
- package/src/plugins/workbench.ts +175 -2
- package/src/plugins/worker.js +105 -8
- package/src/plugins/workspace-plugin-runtime.ts +23 -7
- package/src/plugins/workspace-plugins.ts +212 -21
- package/src/runtime.ts +101 -3
- package/src/settings/components/SettingsAppearancePage.vue +46 -0
- package/src/settings/components/SettingsDocumentsPage.vue +0 -1
- package/src/settings/components/settings-search.ts +2 -3
- package/src/shell/components/SidebarNavigation.vue +22 -2
- package/src/shell/components/WorkbenchContextMenus.vue +21 -8
- package/src/shell/components/WorkbenchModals.vue +27 -46
- package/src/shell/components/WorkbenchPanes.vue +267 -84
- package/src/shell/components/WorkspaceBreadcrumb.vue +6 -14
- package/src/shell/components/WorkspaceViewSwitcher.vue +12 -7
- package/src/shell/use-workbench.ts +116 -145
- package/src/shell/workbench-async-components.ts +14 -5
- package/src/stores/mail.ts +414 -0
- package/src/stores/plan-sync.ts +2 -1
- package/src/stores/plans.ts +2 -9
- package/src/stores/workspace-knowledge.ts +1 -113
- package/src/stores/workspace-plugins-state.ts +537 -14
- package/src/stores/workspace-tabs-layout.ts +5 -43
- package/src/stores/workspace.ts +69 -66
- package/src/styles/agent-diff-modals.css +0 -7
- package/src/styles/dark-theme.css +3 -3
- package/src/styles/inspector.css +0 -59
- package/src/styles/layout-themes.css +346 -0
- package/src/styles/mail.css +1568 -0
- package/src/styles/mobile.css +2 -2
- package/src/styles/recent-and-media.css +0 -17
- package/src/styles/theme-contract.css +3 -3
- package/src/styles/workbench-shell.css +110 -17
- package/src/styles/workspace-states.css +9 -33
- package/src/styles.css +1 -1
- package/src/tabs/components/DesktopTabs.vue +0 -3
- package/src/tabs/components/NewTabPicker.vue +10 -4
- package/src/tabs/tab-label.ts +0 -1
- package/src/workspace/components/WorkspaceGeneralSettings.vue +0 -13
- package/src/workspace/components/WorkspaceIconPicker.vue +28 -6
- package/src/workspace/workspace-comments.ts +11 -151
- package/src/workspace/workspace-welcome.ts +1 -1
- package/src/documents/components/FormulaMenu.vue +0 -50
- package/src/files/components/FileDatabasePage.vue +0 -152
- package/src/files/components/FolderHomeIcon.vue +0 -12
- package/src/objects/components/ObjectDatabasePage.vue +0 -100
- package/src/objects/components/ObjectPanel.vue +0 -554
- package/src/plans/components/PersonalPlanDialog.vue +0 -105
- package/src/shell/components/WorkspaceViewPage.vue +0 -127
- package/src/shell/components/WorkspaceViewTab.vue +0 -24
- package/src/styles/object-panel.css +0 -163
- package/src/workspace/components/GitInspectionPanel.vue +0 -35
- package/src/workspace/components/WorkspaceSyncPanel.vue +0 -50
- package/src/workspace/welcome-slogans.ts +0 -11
- package/src/workspace/workspace-git.ts +0 -35
- package/src/workspace/workspace-sync.ts +0 -46
- 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
|
+
}
|