@zaclinley/dsh-mailharbor 0.6.0 → 0.7.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/CHANGELOG.md +17 -0
- package/README.md +18 -18
- package/README.zh.md +18 -18
- package/lib/client.js +269 -159
- package/lib/client.js.map +3 -3
- package/lib/index.js +248 -1
- package/lib/index.js.map +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 71eb08a: Mail search, conversation grouping and a four-column task board.
|
|
8
|
+
|
|
9
|
+
- Sent folders show the recipients instead of the sender.
|
|
10
|
+
- The mail list groups messages by conversation title; a count chip expands the thread.
|
|
11
|
+
- The search box is an AI search: a sentence is parsed into sender/keywords/dates and
|
|
12
|
+
searched across local folders, with a timeout fallback to plain search.
|
|
13
|
+
- The account header toggles the account/folder sidebar; the unified inbox is gone and
|
|
14
|
+
the top-bar add-account button no longer occupies space.
|
|
15
|
+
- Project directories can be picked in Finder / the file manager.
|
|
16
|
+
- The task board is four columns (待处理 / 进行中 / 已完成 / 终止), without the progress
|
|
17
|
+
summary, with project filtering and drag & drop.
|
|
18
|
+
- CalDAV remains removed; tasks stay local.
|
|
19
|
+
|
|
3
20
|
## 0.6.0
|
|
4
21
|
|
|
5
22
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -15,26 +15,25 @@ and read state.
|
|
|
15
15
|
- Package: `@zaclinley/dsh-mailharbor`
|
|
16
16
|
- Requirements: **DSH `>=0.2.2-0 <0.3.0`**, Node **>=24.9** (the runtime bundled with DSH is fine)
|
|
17
17
|
- License: MIT
|
|
18
|
-
- Status: **v0.
|
|
18
|
+
- Status: **v0.7.0 — mail workspace with a collapsible account/folder sidebar, AI search, conversation grouping, projects and a Kanban task board**. Server mail is the default view. OAuth2 is next (see [Roadmap](#roadmap)).
|
|
19
19
|
|
|
20
20
|
## Features
|
|
21
21
|
|
|
22
|
-
| Area
|
|
23
|
-
|
|
|
24
|
-
| Accounts
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
| Settings | DSH Settings → MailHarbor: accounts, servers, checks, signature, read behaviour, list size, AI model and writing style, default project root |
|
|
22
|
+
| Area | What you get |
|
|
23
|
+
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| Accounts | Any IMAP/SMTP mailbox; password or app password; per-account data directory; accounts and folders in the left column |
|
|
25
|
+
| Local backup | Incremental IMAP → SQLite backup with UIDVALIDITY handling, batched transactions, content-addressed attachments and a trigram full-text index |
|
|
26
|
+
| Browse | Accounts and folders in a collapsible left column, paging, conversation grouping by subject, and AI search that understands a sentence like "王敏上个月发的报价" |
|
|
27
|
+
| Live server | **Default view.** Newest messages straight from IMAP with paging; the folder list is cached and the IMAP session stays warm, so reopening is instant |
|
|
28
|
+
| Reader | Sandboxed HTML rendering with a strict CSP, remote images off by default, plain-text fallback, attachment download |
|
|
29
|
+
| Compose | Rich-text body, attachments (8 MB), reply / reply-all / forward with `In-Reply-To` and `References`, drafts, explicit send confirmation |
|
|
30
|
+
| Drafts | Save, list in the **Drafts** folder, reopen to continue editing, delete |
|
|
31
|
+
| AI | Persistent per-mail workspace: Chinese summary, reply (中/EN), translation, free-form Q&A, writing style; Markdown answers; cards convert into a reply, draft or body text; composer draft/polish/shorten with a version stack; AI search parses a sentence into sender/keywords/dates |
|
|
32
|
+
| Projects | Turn a mail and its whole AI conversation into a project folder (`BRIEF.md`, `CONVERSATION.md`), registered in DSH Workspaces with a starting session; append later AI records, add more mails from the list, and pick the folder in Finder |
|
|
33
|
+
| Tasks | Kanban board (待处理 / 进行中 / 已完成 / 终止) with drag & drop, due/priority/owner/project, project filter, source-mail links, and AI extraction from the current mail |
|
|
34
|
+
| Credentials | macOS Keychain, libsecret on Linux, Windows Credential Locker; passwords never enter `config.json` |
|
|
35
|
+
| Agent tools | `mail_status`, `mail_list`, `mail_read`, `mail_search`, `mail_drafts`, `mail_draft`, `mail_backup` |
|
|
36
|
+
| Settings | DSH Settings → MailHarbor: accounts, servers, checks, signature, read behaviour, list size, AI model and writing style, default project root |
|
|
38
37
|
|
|
39
38
|
## Screenshots
|
|
40
39
|
|
|
@@ -185,7 +184,8 @@ must be able to publish `@zaclinley/*`. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
|
185
184
|
| 0.4 | Persistent AI workspace, composer version stack |
|
|
186
185
|
| 0.5 | Projects from mail, task panel |
|
|
187
186
|
| 0.6 | Mailbox sidebar, Kanban tasks, faster server browsing |
|
|
188
|
-
| 0.7 |
|
|
187
|
+
| 0.7 | AI search, conversation grouping, folder picker, four-column task board |
|
|
188
|
+
| 0.8 | OAuth2 + XOAUTH2 (Gmail loopback/PKCE, Microsoft device code), token refresh |
|
|
189
189
|
| Later | Reports, export/import, onboarding, richer attachments |
|
|
190
190
|
|
|
191
191
|
## Star history
|
package/README.zh.md
CHANGED
|
@@ -14,26 +14,25 @@ MailHarbor 在 DSH 左侧栏加一个「邮件」入口,主面板里是完整
|
|
|
14
14
|
- 包名:`@zaclinley/dsh-mailharbor`
|
|
15
15
|
- 要求:**DSH `>=0.2.2-0 <0.3.0`**,Node **>=24.9**(DSH 自带运行时即可)
|
|
16
16
|
- 许可证:MIT
|
|
17
|
-
- 状态:**v0.
|
|
17
|
+
- 状态:**v0.7.0 — 可折叠账号/文件夹侧栏 + AI 搜索 + 会话分组 + 项目 + 看板任务**。默认显示服务器实时。OAuth2 是下一步(见[路线图](#路线图))。
|
|
18
18
|
|
|
19
19
|
## 功能
|
|
20
20
|
|
|
21
|
-
| 区域 | 能做什么
|
|
22
|
-
| ---------- |
|
|
23
|
-
| 账号 | 任意 IMAP/SMTP 邮箱;密码或应用专用密码;每账号独立数据目录;账号与文件夹在左侧一栏里
|
|
24
|
-
|
|
|
25
|
-
|
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
29
|
-
|
|
|
30
|
-
|
|
|
31
|
-
|
|
|
32
|
-
|
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
| 设置页 | DSH 设置 → MailHarbor:账号与服务器、连接检查、签名、已读行为、列表数量、AI 模型与写作风格、默认项目目录 |
|
|
21
|
+
| 区域 | 能做什么 |
|
|
22
|
+
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
23
|
+
| 账号 | 任意 IMAP/SMTP 邮箱;密码或应用专用密码;每账号独立数据目录;账号与文件夹在左侧一栏里 |
|
|
24
|
+
| 本地备份 | 增量 IMAP → SQLite:UIDVALIDITY 处理、分批事务、内容寻址附件、trigram 全文索引 |
|
|
25
|
+
| 浏览 | 可折叠的账号/文件夹左栏、分页、按主题分组会话,以及能理解一句话的 AI 搜索(例如「王敏上个月发的报价」) |
|
|
26
|
+
| 服务器实时 | **默认视图**。直接从 IMAP 读最新邮件;文件夹列表有缓存、连接保持热态,重复打开几乎即时 |
|
|
27
|
+
| 阅读 | sandbox iframe + 严格 CSP 渲染 HTML,远程图片默认拦截,纯文本回退,附件下载 |
|
|
28
|
+
| 写邮件 | 富文本正文、附件(8 MB)、回复/全部回复/转发(`In-Reply-To` 与 `References`)、草稿、二次确认后发送 |
|
|
29
|
+
| 草稿 | 存草稿后在「草稿」文件夹里列出,点开继续编辑、可删除 |
|
|
30
|
+
| AI | 右侧常驻工作台:中文摘要、AI 回复(中/英)、翻译、自由问答、写作风格;回答按 Markdown 渲染;卡片可转为回复、草稿或正文;写信页支持起草/润色/缩短与版本栈;搜索框支持 AI 理解发件人/关键词/日期 |
|
|
31
|
+
| 项目 | 把一封邮件连同整个 AI 对话变成项目文件夹(`BRIEF.md`、`CONVERSATION.md`),自动注册到 DSH Workspaces 并开一个会话;之后可追加 AI 记录、从列表加更多邮件 |
|
|
32
|
+
| 任务 | 看板(待处理 / 进行中 / 已完成),支持拖拽改状态,含截止、优先级、负责人、项目、来源邮件;可从当前邮件用 AI 提取任务 |
|
|
33
|
+
| 凭据 | macOS 钥匙串、Linux libsecret、Windows Credential Locker;密码不写入 `config.json` |
|
|
34
|
+
| Agent 工具 | `mail_status`、`mail_list`、`mail_read`、`mail_search`、`mail_drafts`、`mail_draft`、`mail_backup` |
|
|
35
|
+
| 设置页 | DSH 设置 → MailHarbor:账号与服务器、连接检查、签名、已读行为、列表数量、AI 模型与写作风格、默认项目目录 |
|
|
37
36
|
|
|
38
37
|
## 界面
|
|
39
38
|
|
|
@@ -178,7 +177,8 @@ CI 会在 `main` 上通过 `.github/workflows/release.yml` 发布;仓库需要
|
|
|
178
177
|
| 0.4 | 常驻 AI 工作台、写信版本栈 |
|
|
179
178
|
| 0.5 | 从邮件建项目、任务面板 |
|
|
180
179
|
| 0.6 | 账号/文件夹侧栏、看板任务、服务器浏览提速 |
|
|
181
|
-
| 0.7 |
|
|
180
|
+
| 0.7 | AI 搜索、会话分组、目录选择器、四列任务看板 |
|
|
181
|
+
| 0.8 | OAuth2 + XOAUTH2(Gmail loopback/PKCE、Microsoft 设备码)、token 刷新 |
|
|
182
182
|
| 以后 | 报告、导出/导入、引导流程、更完整的附件支持 |
|
|
183
183
|
|
|
184
184
|
## 许可证
|