dsh-todo-board 0.11.2 → 0.11.3

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,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.11.3
4
+
5
+ 发布后核对 npm 上的实物才发现的两件事,都修在这里。
6
+
7
+ - **修复:npm 包页面上的 README 图片全是坏的。**
8
+ - `package.json` 的 `files` 白名单里没有 `assets/`。README 用的是相对路径(`assets/screenshot-2.png`),
9
+ 在 GitHub 上从仓库根解析得到,但 **npm 的包页面用的是 tarball 里的 README**,而 tarball 里根本没有那几张图。
10
+ - 后果很隐蔽:**仓库里一切正常,只有 npm 页面上是四个破图** —— 而 npm 页面恰恰是别人评估这个包的地方。
11
+ - 现在 `files` 里加上 `assets`,四张图(约 3 MB)随包发布。已用「从 registry 下载 tarball 逐个核对」
12
+ 的方式验证,不再靠肉眼。
13
+ - **更正:`engines.dsh` 不会在安装时给任何警告 —— 之前 README 与 CHANGELOG 写错了。**
14
+ - 0.11.2 的文档说"装错版本时 npm 会在安装时给出警告"。**实测不成立**:在 DSH 0.1.5 / 0.1.6 下
15
+ 安装本插件(`npm install` 真跑,`--dry-run` 与实装都试过)**没有** `EBADENGINE`。
16
+ - 原因:npm 只校验它认识的引擎名(`node` / `npm`),`dsh` 这个自定义名字不在其列 ——
17
+ 这个字段因此只是**声明**,不构成任何保护。把它当护栏写进文档,是把"我声明了"讲成了"它会拦"。
18
+ - README 现在如实写:装错版本**没有安装期告警**,实际表现是**整个回合在运行时失败**,原因进插件日志。
19
+ - 顺带记一笔方法论:这条错误只有**真去装一次**才会暴露 —— 读代码、读文档、看 `package.json` 都不会。
20
+ - 顺带:`.gitignore` 收进 `.npm-cache/`(系统 npm 缓存目录不可写时用的工作区缓存)。
21
+
3
22
  ## 0.11.2
4
23
 
5
24
  适配 DSH **会话格式 v4**(session format v4)——这是一次**不向后兼容**的适配,插件与 DSH 必须一起升级。
package/README.md CHANGED
@@ -59,9 +59,9 @@ dsh plugin --profile web remove dsh-todo-board
59
59
 
60
60
  ### DSH 版本要求 / DSH version requirement
61
61
 
62
- **本插件 0.11.2 起要求 DSH ≥ 0.1.7-rc.2(session format v4)。**
62
+ **本插件 0.11.3 起要求 DSH ≥ 0.1.7-rc.2(session format v4)。**
63
63
 
64
- **As of 0.11.2 this plugin requires DSH ≥ 0.1.7-rc.2 (session format v4).**
64
+ **As of 0.11.3 this plugin requires DSH ≥ 0.1.7-rc.2 (session format v4).**
65
65
 
66
66
  | 你的 DSH | 装哪个版本 / Install | 为什么 / Why |
67
67
  | --- | --- | --- |
@@ -72,7 +72,17 @@ dsh plugin --profile web remove dsh-todo-board
72
72
 
73
73
  The messages this plugin injects carry a **producer-owned source** (`{ kind: 'plugin:dsh-todo-board', form: 'notice' }`). Session format **v4** requires exactly that; the retired v3 wrapper `{ kind: 'plugin', plugin: … }` is refused, and the refusal **fails the whole turn**, not just the notice.
74
74
 
75
- `package.json` 的 `engines.dsh` 已写成 `>=0.1.7-rc.2`,装错版本时 npm 会在**安装时**给出警告,而不是等到回合跑起来才报错。反过来,**≤ 0.11.1 在 DSH ≥ 0.1.7 上不能用**。
75
+ > **装错版本没有安装期告警 —— 这是实测的,不是推测。** `package.json` 里的 `engines.dsh` 只是一个**声明**:npm 只校验它认识的引擎名(`node` / `npm`),自定义引擎名不参与检查。实测在 DSH 0.1.5 / 0.1.6 下安装本插件,**不会有** `EBADENGINE` 警告。所以上表请自己对着看。
76
+ >
77
+ > **No install-time warning fires for a mismatched version — measured, not assumed.** `engines.dsh` is a **declaration only**: npm validates the engine names it knows (`node`, `npm`), and a custom name is not checked. Installing this plugin against DSH 0.1.5 / 0.1.6 produces **no** `EBADENGINE` warning.
78
+ >
79
+ > 装错版本的**实际表现是运行时报错,而且报得很直白**:DSH ≥ 0.1.7 会拒绝我们写出的消息,DSH ≤ 0.1.6 那边则没有 v4 的那套校验,两条路都会**带着整个回合一起失败**,原因会写进插件日志。
80
+ >
81
+ > A mismatch shows up as a **runtime failure of the whole turn**, with the reason in the plugin log.
82
+
83
+ 旧版本(**≤ 0.11.2,含 npm 上发过的 0.4.1 / 0.5.0 / 0.6.1**)不会自动升级 —— 升级 DSH 之后请一并升级本插件。
84
+
85
+ Releases up to **0.11.2** (including the published `0.4.1` / `0.5.0` / `0.6.1`) do not carry this adaptation: after upgrading DSH, upgrade the plugin too.
76
86
 
77
87
  ## 快速上手 / Quick start
78
88
 
Binary file
Binary file
Binary file
Binary file
package/client/client.js CHANGED
@@ -101,7 +101,7 @@ const SKINS = [
101
101
  * host and browser halves of one release are one build. `client-smoke.mjs` pins
102
102
  * the two together, because a footer that lies is worse than no footer.
103
103
  */
104
- const BUILD = '0.11.2'
104
+ const BUILD = '0.11.3'
105
105
 
106
106
  /**
107
107
  * Severity filters in the log view, most severe first.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-todo-board",
3
- "version": "0.11.2",
3
+ "version": "0.11.3",
4
4
  "description": "跨会话 TODO 板:右上角浮窗、按工作目录分组、可拖动排序;每条待办可选「提醒 / 自动续跑 / 自动新开会话」三档执行模式,截图 Ctrl+V 直接粘贴成附图(派发时作为真正的图片发给模型),可设定本地时间到点才执行,双勾选(AI 完成 / 用户验收)—— 勾上右勾的行会移入下方独立的「已完成」列表,每条待办还能带备注并在面板内直接编辑。三套可切换的界面风格(票据 / 素白 / 紧凑)。长任务可以让模型先拆成步骤再按顺序执行(`/todo <目标>` 或直接粘模板;一次调用写入整份计划、一次审批)。AI 完成一项后自动查找同目录下一条未完成待办并继续执行;AI 改板子一律先经 DSH 原生审批框,板子路由另需浏览器会话凭据。",
5
5
  "private": false,
6
6
  "type": "module",
@@ -22,6 +22,7 @@
22
22
  "lib",
23
23
  "client",
24
24
  "tools",
25
+ "assets",
25
26
  "cordis.patch.yml",
26
27
  "README.md",
27
28
  "CHANGELOG.md",
@@ -170,7 +170,7 @@ UNBROKEN-${'z'.repeat(160)}</div>
170
170
  </div>
171
171
  </div>
172
172
  </div>
173
- <div class="dshtb-foot"><span>v0.11.2</span><button class="dshtb-link">清理</button></div>
173
+ <div class="dshtb-foot"><span>v0.11.3</span><button class="dshtb-link">清理</button></div>
174
174
  </div>\`
175
175
  host.appendChild(root)
176
176
  return root