@zaclinley/dsh-mailharbor 0.3.0 → 0.4.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 4980d11: Replace the AI modals with a persistent per-mail AI workspace.
8
+
9
+ - A right-side rail holds every AI output as a card; cards survive closing the
10
+ panel, switching mail and restarting DSH (stored in `ai-threads.json`).
11
+ - Conversion between steps: a summary produces a reply from its suggestions, a
12
+ reply opens the composer or becomes a draft, a translation can be inserted.
13
+ - Free-form question box with earlier answers as context.
14
+ - Composer AI: draft / polish / shorten, translation, a version stack with
15
+ restore, and debounced draft autosave so closing never loses text.
16
+ - Reader buttons now open the rail instead of separate dialogs.
17
+
3
18
  ## 0.3.0
4
19
 
5
20
  ### Minor Changes
package/README.md CHANGED
@@ -15,7 +15,7 @@ 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.3.0 — core mail workspace plus AI assistance** (Chinese summaries, AI replies, translate, writing style). OAuth2 and CalDAV are next (see [Roadmap](#roadmap)).
18
+ - Status: **v0.4.0 — core mail workspace plus a persistent AI workspace** (summary, reply, translate, Q&A, writing style, composer version stack). OAuth2 and CalDAV are next (see [Roadmap](#roadmap)).
19
19
 
20
20
  ## Features
21
21
 
@@ -41,9 +41,11 @@ and read state.
41
41
  | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
42
42
  | ![Unified inbox](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/panel.png) | ![Reader](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/reader.png) |
43
43
 
44
- | AI summary (Chinese) | Writing style learned from sent mail |
45
- | ---------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
46
- | ![AI summary](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/ai-summary.png) | ![AI settings](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/settings-ai.png) |
44
+ | AI workspace (per mail, persisted) | Composer AI with version stack |
45
+ | -------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
46
+ | ![AI workspace](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/ai-workspace.png) | ![AI compose](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/ai-compose.png) |
47
+
48
+ ![Writing style learned from sent mail](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/settings-ai.png)
47
49
 
48
50
  > Screenshots use fabricated demo data (`node scripts/seed-demo.mjs`), not a real mailbox.
49
51
 
@@ -121,6 +123,7 @@ until OAuth support ships. Restart DSH afterwards so the Host reopens the databa
121
123
  - `mail_*` tools never send mail: there is no `mail_send` tool. Sending is a user action in the panel.
122
124
  - AI calls go through DSH's own `ctx.llm`; nothing is sent when AI is off. The writing style stores only the
123
125
  distilled profile, not the sent mail it was learned from.
126
+ - AI cards are stored per account in `ai-threads.json` (50 threads / 50 cards each, capped, with a clear button).
124
127
 
125
128
  ## Agent tools
126
129
 
package/README.zh.md CHANGED
@@ -14,7 +14,7 @@ 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.3.0 — 核心邮件工作区 + AI 辅助**(中文摘要、AI 回复、翻译、写作风格)。OAuth2 与 CalDAV 是下一步(见[路线图](#路线图))。
17
+ - 状态:**v0.4.0 — 核心邮件工作区 + 常驻 AI 工作台**(摘要、AI 回复、翻译、自由问答、写作风格、写信版本栈)。OAuth2 与 CalDAV 是下一步(见[路线图](#路线图))。
18
18
 
19
19
  ## 功能
20
20
 
@@ -40,9 +40,11 @@ MailHarbor 在 DSH 左侧栏加一个「邮件」入口,主面板里是完整
40
40
  | ----------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
41
41
  | ![统一收件箱](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/panel.png) | ![阅读页](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/reader.png) |
42
42
 
43
- | AI 摘要(中文) | 从已发送邮件学习的写作风格 |
44
- | ------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
45
- | ![AI 摘要](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/ai-summary.png) | ![AI 设置](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/settings-ai.png) |
43
+ | AI 工作台(每封邮件独立、持久保存) | 写信页 AI 与版本栈 |
44
+ | ----------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
45
+ | ![AI 工作台](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/ai-workspace.png) | ![写信 AI](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/ai-compose.png) |
46
+
47
+ ![从已发送邮件学习的写作风格](https://raw.githubusercontent.com/Zac-Linley/dsh-plugin-mailharbor/main/docs/screenshots/settings-ai.png)
46
48
 
47
49
  > 截图使用 `node scripts/seed-demo.mjs` 生成的虚构演示数据,不含真实邮件。
48
50
 
@@ -114,6 +116,7 @@ node node_modules/@zaclinley/dsh-mailharbor/scripts/migrate-legacy.mjs --copy
114
116
  - HTTP 接口只监听 DSH 自己的回环端口,跨站写请求返回 `403`。
115
117
  - `mail_*` 工具不能发信:没有 `mail_send`,发送必须由用户在面板里确认。
116
118
  - AI 通过 DSH 自己的 `ctx.llm` 调用,关闭后不会发送任何内容;写作风格只保存提炼后的档案,不保存邮件原文。
119
+ - AI 卡片按账号保存在 `ai-threads.json`(最多 50 个线程、每线程 50 张卡片,可一键清除)。
117
120
 
118
121
  ## Agent 工具
119
122