dsh-email 0.15.0 → 0.15.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 CHANGED
@@ -4,6 +4,11 @@
4
4
 
5
5
  [历史英文记录](docs/CHANGELOG.en.md)
6
6
 
7
+ ## 0.15.1 (2026-10-03)
8
+
9
+ - 修复 email_draft 使用宿主不支持的 JSON Schema maxItems,导致邮件工具注册失败的问题。附件最多 10 个的限制仍在执行前校验,并在工具说明中显示。
10
+ - 增加所有邮件工具的 schema 兼容回归和 11 个附件提前拒绝回归;实际使用官方 Harness 0.2.1-alpha.1 检查注册、输出和 PTC 工具声明。
11
+
7
12
  ## 0.15.0 (2026-10-03)
8
13
 
9
14
  - 新增 email_draft 和本地草稿工作台,支持编辑 To/Cc、发件账号、正文、附件上传与预览下载,再明确确认发送。
@@ -1,5 +1,11 @@
1
1
  # dsh-email 验证记录
2
2
 
3
+ ## 0.15.1(2026-10-03)
4
+
5
+ Windows / Node 24.16.0 下 330 项测试全部通过,无跳过。新回归在修复前定位到 email_draft 的 maxItems 参数声明,修复后通过;11 个附件仍在读取文件、保存草稿或发送之前被拒绝。
6
+
7
+ 官方 Harness 0.2.1-alpha.1(公开 npm 安装)和 0.2.0-rc.2(官方源码构建)均验证了 18 个独立插件同载:109 个工具、35 个技能、19 项输出检查,TypeScript/Python PTC 声明生成通过。邮件的 11 个工具全部注册成功。本次未调用真实邮箱或发送邮件,也不表示原生桌面新工作台已逐项操作验收。
8
+
3
9
  本页整理原 README 的历史验证说明,保留当时的版本、日期与范围。自动测试、启动检查、浏览器操作和真实服务验收分别记录,不能相互替代。更详细的版本验收文件仍保留在仓库中。
4
10
 
5
11
  ## 0.15.0 · 2026-10-03
package/lib/tools.js CHANGED
@@ -11,7 +11,7 @@ export function buildEmailTools(runtime, drafts) {
11
11
  ...(drafts ? [{
12
12
  name: 'email_draft',
13
13
  description: '准备可编辑的本地邮件草稿,不投递邮件。用户在设置 → 邮件 → 草稿中编辑、检查附件预览并明确确认后才发送。可在邮箱尚未配置时准备文字草稿;不用于回复原邮件线程。',
14
- parameters: { type: 'object', properties: { account: { type: 'string', description: '发件账号名,省略时使用默认账号' }, to: { type: 'string', description: 'To 地址,支持显示名和地址组' }, cc: { type: 'string' }, subject: { type: 'string' }, text: { type: 'string', description: '纯文本正文' }, attachments: { type: 'array', items: { type: 'string' }, maxItems: 10, description: '本地附件路径,用户在预览中检查后才提交' } }, required: ['to', 'subject', 'text'], additionalProperties: false },
14
+ parameters: { type: 'object', properties: { account: { type: 'string', description: '发件账号名,省略时使用默认账号' }, to: { type: 'string', description: 'To 地址,支持显示名和地址组' }, cc: { type: 'string' }, subject: { type: 'string' }, text: { type: 'string', description: '纯文本正文' }, attachments: { type: 'array', items: { type: 'string' }, description: '最多 10 个本地附件路径,用户在预览中检查后才提交' } }, required: ['to', 'subject', 'text'], additionalProperties: false },
15
15
  output: { schema: { type: 'object', properties: { id: { type: 'string' }, state: { type: 'string' }, subject: { type: 'string' } }, required: ['id', 'state', 'subject'] }, render: (_args, value) => [{ type: 'text', text: '本地草稿已保存,邮件未发送。请在设置 → 邮件 → 草稿中打开并检查。\n草稿编号:' + value.id + '\n主题:' + value.subject }] },
16
16
  timeoutMs: QUERY_TIMEOUT_MS,
17
17
  async execute(args, exec) { const draft = await drafts.create(args, executionSignal(exec)); return { id: draft.id, state: draft.state, subject: draft.subject }; },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-email",
3
- "version": "0.15.0",
3
+ "version": "0.15.1",
4
4
  "description": "在 DSH 中收发、搜索和整理邮件,支持多个邮箱账号。",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",