@zaclinley/dsh-mailharbor 0.1.0 → 0.2.1
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 +24 -5
- package/README.md +29 -3
- package/README.zh.md +27 -3
- package/lib/client.js +467 -334
- package/lib/client.js.map +4 -4
- package/lib/index.js +44 -34
- package/lib/index.js.map +3 -3
- package/package.json +4 -2
- package/scripts/migrate-legacy.mjs +318 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and
|
|
5
|
-
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
3
|
+
## 0.2.1
|
|
6
4
|
|
|
7
|
-
|
|
5
|
+
### Patch Changes
|
|
8
6
|
|
|
9
|
-
|
|
7
|
+
- 7f5a956: Adapt the sidebar unread badge to the shell: a compact accent pill at the icon
|
|
8
|
+
corner instead of a white blob that covered the envelope (the old badge used
|
|
9
|
+
`--dsw-alias-brand-primary`, which is near-white in the dark theme).
|
|
10
|
+
|
|
11
|
+
## 0.2.0
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- b9e52c2: Redesign the panel to match the DSH design system, and add a migration path from
|
|
16
|
+
the retired `dsh-plugin-mail` data directory.
|
|
17
|
+
|
|
18
|
+
- Buttons now use the shell's primary/ghost tokens (the old panel rendered a
|
|
19
|
+
white-on-white send button in dark mode).
|
|
20
|
+
- Rows are real list items instead of buttons, so the shell's button layout no
|
|
21
|
+
longer centers and squashes sender, subject and snippet.
|
|
22
|
+
- Reader, composer and settings use the same cards, spacing and icon set.
|
|
23
|
+
- Modals render in a themed portal; previously they escaped the panel's CSS
|
|
24
|
+
variables and lost their background.
|
|
25
|
+
- `scripts/migrate-legacy.mjs` points an account at the old backup (or copies
|
|
26
|
+
it), converts read-state keys and drafts, and copies the Keychain password.
|
|
27
|
+
|
|
28
|
+
## 0.1.0 - 2026-11-06
|
|
10
29
|
|
|
11
30
|
First public release: the core mail workspace, rebuilt on a real build pipeline.
|
|
12
31
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# MailHarbor
|
|
2
2
|
|
|
3
|
+
[](https://github.com/Zac-Linley/dsh-plugin-mailharbor/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@zaclinley/dsh-mailharbor)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://github.com/Zac-Linley/dsh-plugin-mailharbor)
|
|
7
|
+
|
|
3
8
|
**A multi-account IMAP/SMTP mail workspace for [DeepSeek Harness](https://github.com/Zac-Linley/dsh-plugin-mailharbor).**
|
|
4
9
|
|
|
5
10
|
MailHarbor adds a **Mail** entry to the DSH sidebar and a full mail workspace to the main panel:
|
|
@@ -64,6 +69,26 @@ dsh plugin --profile desktop add link:$PWD
|
|
|
64
69
|
AUTH, otherwise wait for the OAuth2 release.
|
|
65
70
|
- Yahoo: app password. Self-hosted: any IMAP/SMTP endpoints with STARTTLS or implicit TLS.
|
|
66
71
|
|
|
72
|
+
## Migrating from `dsh-plugin-mail`
|
|
73
|
+
|
|
74
|
+
The package was renamed and the data root moved (`~/.dsh/mail-plugin` → `~/.dsh/mailharbor`).
|
|
75
|
+
A migration script ships with the package:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
# preview what would change
|
|
79
|
+
node node_modules/@zaclinley/dsh-mailharbor/scripts/migrate-legacy.mjs --dry-run
|
|
80
|
+
|
|
81
|
+
# point the new account at the existing backup (no copy; instant, keeps the large DB in place)
|
|
82
|
+
node node_modules/@zaclinley/dsh-mailharbor/scripts/migrate-legacy.mjs
|
|
83
|
+
|
|
84
|
+
# or make a self-contained copy under the new data root
|
|
85
|
+
node node_modules/@zaclinley/dsh-mailharbor/scripts/migrate-legacy.mjs --copy
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
It matches accounts by email, repoints `dataDir`, converts read-state keys and drafts to the new
|
|
89
|
+
shapes, and copies the macOS Keychain password to the new service name. OAuth2 accounts are skipped
|
|
90
|
+
until OAuth support ships. Restart DSH afterwards so the Host reopens the database.
|
|
91
|
+
|
|
67
92
|
## Data and privacy
|
|
68
93
|
|
|
69
94
|
| What | Where |
|
|
@@ -134,9 +159,10 @@ must be able to publish `@zaclinley/*`. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
|
134
159
|
| Version | Scope |
|
|
135
160
|
| --------- | ---------------------------------------------------------------------------- |
|
|
136
161
|
| **0.1.x** | Core mail workspace, backup, tools, settings, publishing pipeline |
|
|
137
|
-
| 0.2 |
|
|
138
|
-
| 0.3 |
|
|
139
|
-
| 0.4 |
|
|
162
|
+
| 0.2 | UI overhaul, migration from `dsh-plugin-mail`, installer polish |
|
|
163
|
+
| 0.3 | OAuth2 + XOAUTH2 (Gmail loopback/PKCE, Microsoft device code), token refresh |
|
|
164
|
+
| 0.4 | AI summaries, compose assist, natural-language search, writing style profile |
|
|
165
|
+
| 0.5 | CalDAV tasks, Markdown/PDF reports |
|
|
140
166
|
| Later | Export/import, onboarding, richer attachments |
|
|
141
167
|
|
|
142
168
|
## Star history
|
package/README.zh.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# MailHarbor(邮件港)
|
|
2
2
|
|
|
3
|
+
[](https://github.com/Zac-Linley/dsh-plugin-mailharbor/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@zaclinley/dsh-mailharbor)
|
|
5
|
+
[](LICENSE)
|
|
6
|
+
[](https://github.com/Zac-Linley/dsh-plugin-mailharbor)
|
|
7
|
+
|
|
3
8
|
**把多个 IMAP/SMTP 邮箱接进 [DeepSeek Harness](https://github.com/Zac-Linley/dsh-plugin-mailharbor) 的邮件工作区。**
|
|
4
9
|
|
|
5
10
|
MailHarbor 在 DSH 左侧栏加一个「邮件」入口,主面板里是完整的收发邮件工作区:浏览本地备份或
|
|
@@ -61,6 +66,24 @@ dsh plugin --profile desktop add link:$PWD
|
|
|
61
66
|
- Microsoft 365:基本认证已停用;只有租户仍允许 IMAP AUTH 时才能用应用专用密码,否则等 OAuth2 版本。
|
|
62
67
|
- Yahoo:应用专用密码。自建邮箱:任何支持 STARTTLS 或隐式 TLS 的 IMAP/SMTP 都可以。
|
|
63
68
|
|
|
69
|
+
## 从 `dsh-plugin-mail` 迁移
|
|
70
|
+
|
|
71
|
+
包名改了,数据根目录也从 `~/.dsh/mail-plugin` 换到了 `~/.dsh/mailharbor`。安装包里附带迁移脚本:
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
# 只预览,不写入
|
|
75
|
+
node node_modules/@zaclinley/dsh-mailharbor/scripts/migrate-legacy.mjs --dry-run
|
|
76
|
+
|
|
77
|
+
# 默认:新账号直接指向旧备份目录(不复制,秒级完成,8 GB 数据库原地保留)
|
|
78
|
+
node node_modules/@zaclinley/dsh-mailharbor/scripts/migrate-legacy.mjs
|
|
79
|
+
|
|
80
|
+
# 或者复制一份到新数据目录(占用双倍磁盘)
|
|
81
|
+
node node_modules/@zaclinley/dsh-mailharbor/scripts/migrate-legacy.mjs --copy
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
脚本按邮箱匹配账号,改写 `dataDir`,把已读状态和草稿转换成新结构,并把 macOS 钥匙串密码复制到
|
|
85
|
+
新的 service 名下。OAuth2 账号会跳过(等 OAuth 支持发布)。迁移完重启 DSH,Host 才会重新打开数据库。
|
|
86
|
+
|
|
64
87
|
## 数据与隐私
|
|
65
88
|
|
|
66
89
|
| 内容 | 位置 |
|
|
@@ -130,9 +153,10 @@ CI 会在 `main` 上通过 `.github/workflows/release.yml` 发布;仓库需要
|
|
|
130
153
|
| 版本 | 范围 |
|
|
131
154
|
| --------- | --------------------------------------------------------------------- |
|
|
132
155
|
| **0.1.x** | 核心邮件工作区、备份、工具、设置、发布流水线 |
|
|
133
|
-
| 0.2 |
|
|
134
|
-
| 0.3 |
|
|
135
|
-
| 0.4 |
|
|
156
|
+
| 0.2 | 界面重做、从 `dsh-plugin-mail` 迁移数据、安装体验 |
|
|
157
|
+
| 0.3 | OAuth2 + XOAUTH2(Gmail loopback/PKCE、Microsoft 设备码)、token 刷新 |
|
|
158
|
+
| 0.4 | AI 摘要、起草辅助、自然语言搜索、写作风格档案 |
|
|
159
|
+
| 0.5 | CalDAV 任务、Markdown/PDF 报告 |
|
|
136
160
|
| 以后 | 导出/导入、引导流程、更完整的附件支持 |
|
|
137
161
|
|
|
138
162
|
## 许可证
|