@kangyishuai/dsh-next-step 0.4.1 → 0.4.2
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/README.md +7 -6
- package/README.zh-CN.md +3 -2
- package/lib/client.js +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,12 +121,13 @@ The row writes the same `$DSH_HOME/next-step.settings.json` that the host re-rea
|
|
|
121
121
|
|
|
122
122
|
## Compatibility
|
|
123
123
|
|
|
124
|
-
| DSH version | Status
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
| 0.2.2-rc.3
|
|
128
|
-
| 0.2.2-rc.
|
|
129
|
-
| 0.2.2-rc.
|
|
124
|
+
| DSH version | Status |
|
|
125
|
+
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
126
|
+
| 0.2.2-rc.3 | **0.4.1** (2026-11-14): fixes a silent failure. The card is **delivered late by the projection** (the turn tail mounts and `status` becomes `interactive` first, the card arrives a moment later), while the effect that registers `⌘↵` only depended on `[sessionId, status]` — so a late card was never registered: it looked clickable and clicking the pill still worked, but `⌘↵` did nothing (it only worked when the tail remounted with the card already in the projection, hence "sometimes"). Fixed by adding card visibility / option count to the effect deps. Verified by `test/client-card-shortcut.test.js` (a mini hook runtime driving the real client source: late card, one/two pills, non-empty draft, unrevealed candidate, already decided; it fails without the fix) and on the real host: a late (≈2.3 s) two-pill card sent its primary pill with `⌘↵` and turned `sent`, while on 0.4.0 a late **one-pill** card also did nothing. Also fixes the header/delimiter order of the compatibility table in both READMEs. |
|
|
127
|
+
| 0.2.2-rc.3 | **0.4.0** (2026-11-14): the card face becomes tunable and measurable. The model grades a turn on three levels (`must` / `could` / `no`) instead of a boolean, and a setting picks which levels are shown (**strict / balanced (default) / eager**). A withheld card still stores its candidate and one click **reveals** it — no second model call; only a turn without any candidate regenerates. Parsing is tolerant (over-long text is clipped, a bad single option is dropped) with one repair call, so one over-long field can no longer delete a whole card. Every eligible turn appends one line to `<dataRoot>/next-step/events.jsonl` (gate, grade, latency, usage, what you did with the card, whether it entered the viewport; never your message text, local only, can be switched off), and the settings section writes a Markdown report with Wilson 95% intervals that refuses to give verdicts below 80 turns / 25 cards. Three deterministic losses are gone: the budget (30 → 120) only counts _shown_ cards, the short-answer gate now requires "few chars **and** no tool calls", and a bad field no longer voids the card. Settings moved to a 3-row first screen plus a "More settings" disclosure; the settings file is v2 (`schemaVersion` / `cardThreshold` / `telemetry`) and only migrates values equal to the old default. Verified: 170 unit tests + `pnpm probe:runtime` + web `pnpm smoke:next-step` **71/71** (real host, real model calls, including the withheld→reveal path and the event log) + desktop read-only regression. |
|
|
128
|
+
| 0.2.2-rc.3 | **0.3.1** (2026-11-14): makes an aborted generation diagnosable. A 20 s timeout or a cancellation used to leave **no trace at all** — no counter, no “Last skipped” entry, no session record — so a “no card appeared” incident was impossible to attribute after the fact. Now aborts increment a separate `aborted` counter (shown in the settings row as “已中止 N”), write a labelled “Last skipped” reason (`generation timeout after 20s` / `cancelled`), stay out of `failed` / `lastError`, and the generate button says “生成超时或被取消,请重试” instead of the generic failure text. Verified: 103 unit tests (4 new) + `pnpm probe:runtime` 72/72 + web `pnpm smoke:next-step` **59/59** (real host + real model call, re-run after the change) + desktop read-only regression **10 PASS + 2 SKIP**; `smoke:next-step` also gained the ability to print the plugin-reported reason and to keep its throwaway `DSH_HOME` when an assertion fails. |
|
|
129
|
+
| 0.2.2-rc.2 | **0.3.0** (2026-11-14): pill labels tightened to 2–20 characters and must name a concrete object (generic pills are dropped), 1–2 options instead of exactly 2, summaries must state checkable facts, two new cheap gates (previous turn errored / answer under 80 characters), ghost hint capped at 150 characters and degraded when it disagrees with the recommended pill; settings moved to their own "Settings → Next-step suggestions" section. Verified: 58 unit tests (50 prompt + 8 gates) + `pnpm probe:runtime` 72/72 + web `pnpm smoke:next-step` **59/59** (real host, real model call). The settings section was also checked on a live desktop build via read-only CDP; the desktop read-only regression reports **10 PASS + 2 SKIP** (the SKIPs are "no card in this session" and "read-only mode does not create cards"); `--deep` card interaction reports **23 PASS + 2 SKIP** (real model call — the one-sentence fixture is blocked by the new "answer under 80 characters" gate, so the run exercises the generate-now fallback, which also verifies that gate). |
|
|
130
|
+
| 0.2.2-rc.1 | Full regression green on 2026-11-11: web composition end-to-end (`pnpm smoke:next-step`: 59 assertions passing, 0 skipped; real host + real model calls, covering WYSIWYG sending, the picked-option echo, the `needed` gate and the force-generate button, and the progressive settings), desktop real-machine `pnpm smoke:next-step-desktop --require --deep` (32 passing + 3 skipped + 0 failing on the pre-release tarball, build `1ba08e8b`; the published 0.2.0 self-reports `version 0.2.0, build ce72c9dd` — the hash covers `package.json`, so the version bump changes it; every skip is a data-dependent branch), 83 unit tests, runtime probe 60/60, and `pnpm gate next-step` green across all four steps. Other DSH versions are not verified. |
|
|
130
131
|
|
|
131
132
|
The plugin declares no `engines.dsh` and no `@deepseek-ai/*` peer range: DSH is pre-release and semver ranges over prereleases are unreliable (see [ADR 0005](../../docs/adr/0005-dsh-version-compatibility.md)). Treat the table as the compatibility statement. After a DSH upgrade run `pnpm probe:runtime`, `pnpm smoke:next-step` and `pnpm smoke:next-step-desktop`, then check the plugin's diagnostics.
|
|
132
133
|
|
package/README.zh-CN.md
CHANGED
|
@@ -122,9 +122,10 @@ dsh plugin --profile desktop add /tmp/kangyishuai-dsh-next-step-*.tgz
|
|
|
122
122
|
|
|
123
123
|
## 兼容性
|
|
124
124
|
|
|
125
|
-
| DSH 版本
|
|
126
|
-
| 0.2.2-rc.3 | **0.4.0**(2026-11-14):卡片这一面变成**可调**且**可度量**。模型不再用一个 boolean,而是把回合打成三档(`must` / `could` / `no`),设置里选出卡频率(**严格 / 平衡(默认)/ 积极**)。被档位拦下的卡仍会存下候选,点一下**揭示**它——不再第二次调模型;只有压根没有候选的回合才真的重新生成。解析变宽容(超长文本截断、单条不合格只丢这一条)+ 一次修复调用,一个字段超长不再让整张卡消失。每个合格回合往 `<dataRoot>/next-step/events.jsonl` 追加一行(闸门、三档判定、耗时、token、你后来对卡做了什么、有没有进过视口;不写消息原文、只在本机、可关),设置页还能生成带 Wilson 95% 区间的 Markdown 报告,样本少于 80 回合 / 25 张卡时拒绝给判读。三处确定性丢失也修了:预算(30 → 120)只统计**出过**的卡、短答闸改成「字数少**且**没有工具调用」、单个字段超长不再废掉整张卡。设置页收敛成首屏 3 行 +「更多设置」折叠;设置文件升级到 v2(`schemaVersion` / `cardThreshold` / `telemetry`),只迁移等于旧默认值的字段。验证:单测 170 项 + `pnpm probe:runtime` + web `pnpm smoke:next-step` **71/71**(真实宿主、真实模型调用,含「抑制 → 揭示」链路与事件文件)+ 桌面只读回归。 |
|
|
125
|
+
| DSH 版本 | 状态 |
|
|
127
126
|
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
127
|
+
| 0.2.2-rc.3 | **0.4.1**(2026-11-14):修一个静默失效。卡片是**投影晚到**的(回合尾部先挂载、`status` 先变 `interactive`,卡片随后才从投影进来),而登记 `⌘↵` 的 effect 只依赖 `[sessionId, status]`,于是晚到的卡片永远登记不上:卡片看着可点、点胶囊也正常,`⌘↵` 却什么都不做(只在「重挂载那一刻卡片已在投影里」时能用,所以时灵时不灵)。修法是把「卡片可见 / 有候选」纳入 effect 依赖。验证:新增 `test/client-card-shortcut.test.js`(迷你 hooks 运行时驱动真实 client 源码,覆盖晚到卡、一粒 / 两粒、草稿非空、未揭示、已决策),去掉修复即红;真机上「晚到约 2.3s 的两粒卡」按 `⌘↵` 成功发出 primary 胶囊并转 `sent`;0.4.0 上同样条件下晚到的**一粒**卡同样不接管。顺带修了两份 README 兼容性表的表头/分隔行错位。 |
|
|
128
|
+
| 0.2.2-rc.3 | **0.4.0**(2026-11-14):卡片这一面变成**可调**且**可度量**。模型不再用一个 boolean,而是把回合打成三档(`must` / `could` / `no`),设置里选出卡频率(**严格 / 平衡(默认)/ 积极**)。被档位拦下的卡仍会存下候选,点一下**揭示**它——不再第二次调模型;只有压根没有候选的回合才真的重新生成。解析变宽容(超长文本截断、单条不合格只丢这一条)+ 一次修复调用,一个字段超长不再让整张卡消失。每个合格回合往 `<dataRoot>/next-step/events.jsonl` 追加一行(闸门、三档判定、耗时、token、你后来对卡做了什么、有没有进过视口;不写消息原文、只在本机、可关),设置页还能生成带 Wilson 95% 区间的 Markdown 报告,样本少于 80 回合 / 25 张卡时拒绝给判读。三处确定性丢失也修了:预算(30 → 120)只统计**出过**的卡、短答闸改成「字数少**且**没有工具调用」、单个字段超长不再废掉整张卡。设置页收敛成首屏 3 行 +「更多设置」折叠;设置文件升级到 v2(`schemaVersion` / `cardThreshold` / `telemetry`),只迁移等于旧默认值的字段。验证:单测 170 项 + `pnpm probe:runtime` + web `pnpm smoke:next-step` **71/71**(真实宿主、真实模型调用,含「抑制 → 揭示」链路与事件文件)+ 桌面只读回归。 |
|
|
128
129
|
| 0.2.2-rc.3 | **0.3.1**(2026-11-14):让被中止的生成可诊断。此前 20 秒超时或被取消**完全无痕**——不计数、不写「最近跳过」、也不落会话日志——所以一次「卡片没出来」事后无法归因。现在中止会计入独立的 `aborted` 计数(设置页显示「已中止 N」)、写带标签的「最近跳过」原因(`generation timeout after 20s` / `cancelled`)、不再混进 `failed` / `lastError`,补生成按钮的文案也从笼统的失败文案改为「生成超时或被取消,请重试」。已验证:103 项单测(新增 4)+ `pnpm probe:runtime` 72/72 + web `pnpm smoke:next-step` **59/59**(真实宿主 + 真实模型调用,改动后重跑)+ 桌面只读回归 **10 PASS + 2 SKIP**;`smoke:next-step` 同时补了「打印插件自报原因」与「断言失败自动保留临时 `DSH_HOME`」。 |
|
|
129
130
|
| 0.2.2-rc.2 | **0.3.0**(2026-11-14):胶囊文案收紧到 2–20 字且必须含具体对象(泛化按钮直接丢弃)、选项 1–2 条、摘要要求写事实、新增「上轮报错 / 回答 < 80 字」两道便宜闸、幽灵提示 150 字上限 + 与推荐项一致性退化;设置搬到「设置 → 下一步建议」分节。已验证:单测 58(prompt 50 + gates 8)+ `pnpm probe:runtime` 72/72 + web `pnpm smoke:next-step` **59/59**(真实宿主 + 真实模型调用)。设置分节另有真机只读 CDP 核验;桌面只读回归 **10 PASS + 2 SKIP**(SKIP 是「当前会话没有决策卡」与「只读模式不造卡」);`--deep` 造卡交互 **23 PASS + 2 SKIP**(真实模型调用;一句话提示词会被「回答 < 80 字」闸挡住,走的是补生成按钮那条兜底,顺带验证了闸)。 |
|
|
130
131
|
| 0.2.2-rc.1 | 2026-11-11 全量回归通过:web 组合端到端(`pnpm smoke:next-step`:59 项断言全部通过 + 0 SKIP;真实宿主 + 真实模型调用,覆盖 WYSIWYG 发送、点后回显、`needed` 门控与补生成按钮、设置渐进披露)、桌面真机 `pnpm smoke:next-step-desktop --require --deep`(32 PASS + 3 SKIP + 0 FAIL,发版前 tarball 构建 `1ba08e8b`;发布后 0.2.0 只读自证 20 PASS + 2 SKIP,诊断 `版本 0.2.0 · 构建 ce72c9dd`,哈希含 `package.json` 版本故与发版前不同)、单测 83 项、宿主探针 60/60、`pnpm gate next-step` 四步全绿。其他 DSH 版本未验证。 |
|
package/lib/client.js
CHANGED
|
@@ -606,12 +606,14 @@ window.__ModuleLoader__.load({
|
|
|
606
606
|
|
|
607
607
|
let code = typeof gesture.code === "string" ? gesture.code : "";
|
|
608
608
|
let primaryModifier = gesture.meta === true || gesture.control === true;
|
|
609
|
+
// 小键盘回车是 `NumpadEnter`,语义与 `Enter` 相同;只认 `Enter` 会让外接键盘上的 ⌘↵ 静默失效。
|
|
610
|
+
let enterLike = code === "Enter" || code === "NumpadEnter";
|
|
609
611
|
|
|
610
612
|
// 卡片快捷键:宿主的同一个手势是「Queue/Steer 互补发送」,但空草稿时它是 no-op
|
|
611
613
|
// (dsh-client-ui-conversation 的 empty-draft no-op),所以只在「输入干净 + 空闲 +
|
|
612
614
|
// 本会话有可交互卡」时接管;其余情况完全透传,绝不抢排队/插话的语义。
|
|
613
615
|
if (
|
|
614
|
-
|
|
616
|
+
enterLike &&
|
|
615
617
|
primaryModifier &&
|
|
616
618
|
!(gesture.meta === true && gesture.control === true) &&
|
|
617
619
|
!gesture.alt &&
|
package/package.json
CHANGED