@kangyishuai/dsh-next-step 0.1.2 → 0.2.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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @kangyishuai/dsh-next-step
2
2
 
3
- > A next-step decision card for DeepSeek Harness: after every completed answer, a compact card under it shows where the conversation stands, the question you need to settle, and two mutually exclusive proposals. Click one and its full text is sent as your user message. Optionally — off by default — a grey ghost hint in the empty composer offers the next prompt, accepted with `Tab` or `→`.
3
+ > A next-step decision card for DeepSeek Harness: after every completed answer, a compact card under it shows where the conversation stands, the question you need to settle, and two mutually exclusive proposals. Click one and that pill's text — exactly as written on it — is sent as your user message. Optionally — off by default — a grey ghost hint in the empty composer offers the next prompt, accepted with `Tab` or `→`.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@kangyishuai/dsh-next-step?color=cb3837&logo=npm)](https://www.npmjs.com/package/@kangyishuai/dsh-next-step) [![DSH](https://img.shields.io/badge/verified%20on%20DSH-0.2.2--rc.1-4b6bfb)](#compatibility) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
6
 
@@ -14,10 +14,10 @@ Unofficial plugin for [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/de
14
14
 
15
15
  ## What it does
16
16
 
17
- - **A card under every completed answer.** When a turn ends normally, the plugin makes one extra model call and appends a decision card below the answer: a one-to-three sentence **summary** of the conversation state (folded to two lines, with an expand/collapse control when it is longer), one **question** that names the decision you have to make, and **two pills** for two mutually exclusive directions. Each pill has a short label (up to 20 characters); the full instruction behind it is what gets sent.
18
- - **One click is one user message.** Clicking a pill puts its full text into the composer and submits it through the same path as pressing Enter yourself — not by faking a session event. An idle session sends immediately; if a turn is already running, the text is queued exactly like a typed message.
17
+ - **A card only when there is something to continue.** When a turn ends normally, the plugin makes one extra model call that first asks the model whether the turn is genuinely worth continuing. If not, the model returns a one-line reason and no card is written (the reason shows up in diagnostics). If it is worth continuing, a decision card is appended below the answer: a one-to-three sentence **summary** of the conversation state (folded to two lines, with an expand/collapse control when it is longer), one **question** that names the decision you have to make, and **two pills** for two mutually exclusive directions. Each pill carries the exact sentence that will be sent when you click it (up to 60 characters, verb-first and self-contained).
18
+ - **One click is one user message.** Clicking a pill puts that pill's own text into the composer and submits it through the same path as pressing Enter yourself — not by faking a session event. An idle session sends immediately; if a turn is already running, the text is queued exactly like a typed message.
19
19
  - **It stays.** Cards and decisions are appended to the session log as plugin records and folded by a session projection, which is the only source of truth. A page reload, a session switch or an app restart brings them back; the client keeps no separate state.
20
- - **Resolved, not removed.** After you click, the card stays in the transcript but becomes read-only: summary and question remain, the pills disappear (a sent card may add a grey “sent” line). Cards from earlier turns are always read-only, so at most one card is interactive at a time. The ✕ in a card's corner dismisses it without sending anything.
20
+ - **Resolved, not removed.** After you click, the card stays in the transcript but becomes read-only: summary and question remain, the two pills are replaced by the one you picked in a selected state (✓ plus its text), followed by a grey “sent” line. Cards from earlier turns are always read-only, so at most one card is interactive at a time. The ✕ in a card's corner dismisses it without sending anything.
21
21
  - **Ghost hint in the composer (off by default).** The same model call also produces one next prompt. With the ghost face enabled, an empty idle composer shows it as grey, placeholder-style text. `Tab` or `→` accepts it into the draft (undoable with `Ctrl+Z`), `Esc` clears the current suggestion, typing makes it disappear, and it stays hidden while the composer holds a draft, an attachment, an `@` reference or a slash command. The ghost is not draft content, so pressing Enter on an otherwise empty composer sends nothing.
22
22
  - **Two faces, one call.** Card and ghost are produced together by a single model call — turning the ghost on costs no additional requests.
23
23
  - **Switches that actually stop requests.** `card` (default on) and `ghost` (default off) are separate switches; the global `enabled` switch off means no generation request at all, not just a hidden UI. A pause and a per-session card budget (`maxCardsPerSession`) stop new cards too. Cards already in the log stay readable.
@@ -26,6 +26,7 @@ Unofficial plugin for [DeepSeek Harness (DSH)](https://github.com/deepseek-ai/de
26
26
 
27
27
  - One extra model call per trigger, on the model the session's agent is currently using (falling back to the default model selection), billed to your own provider quota.
28
28
  - The call times out after 20 s. Failures, rate limits and malformed JSON are silent: no card, no dialog — only a counter in the plugin's diagnostics. Malformed output is dropped without writing a record.
29
+ - When the model decides the turn is not worth continuing, no card is written — but **the call still happens**: this saves UI noise, not tokens. The model's reason is kept in the settings row's “Last skipped” line.
29
30
  - No other network access, no telemetry.
30
31
 
31
32
  ## Side effects & risks
@@ -58,7 +59,11 @@ Re-run `pnpm pack` + `add` after changing the code. The plugin has a host half,
58
59
 
59
60
  ## Usage
60
61
 
61
- **The card.** It appears under the last answer once that turn has completed, and it never steals focus. Each pill carries its short label; click it to send the full instruction. If the summary is folded, use the small expand button to read it all. ✕ dismisses the card; earlier cards are read-only for reference.
62
+ **The card.** It appears under the last answer once that turn has completed, and it never steals focus. Each pill carries the exact sentence it will send; click it to send that sentence. If the summary is folded, use the small expand button to read it all. ✕ dismisses the card; earlier cards are read-only for reference.
63
+
64
+ **Keyboard.** While the card is interactive, the composer is empty and the session is idle, `⌘↵` / `Ctrl+↵` sends the primary pill (same path as a click). When the composer holds a draft, an attachment, an open `@`/`/` menu, or a turn is running, the combination keeps its host Queue/Steer meaning — the plugin does not steal it.
65
+
66
+ **When no card appears.** If a turn gets no card (the model decided it was not needed, generation is paused, messages are queued, or the budget is exhausted), a small “Generate a next-step card” button appears under the latest answer. Clicking it **forces** a card (even if the model judged it unnecessary). So when you think a card should have appeared: check “Last skipped” in the settings diagnostics, and click that button to get one right away.
62
67
 
63
68
  **The ghost hint.** Turn the ghost face on in the plugin settings. With an empty, idle composer you see the latest card's next prompt in grey, aligned with the host placeholder. `Tab` or `→` accepts it — the text lands in the draft and stays undoable. `Esc` clears it for this suggestion, and the first typed character hides it. It only ever edits the draft: it does not send, and it does not bind Enter.
64
69
 
@@ -72,7 +77,9 @@ Settings → **General** → “Next-step suggestions” is one row with everyth
72
77
  - **Decision card under the answer** / **Ghost hint in the composer** — one switch per face.
73
78
  - **Cadence** — “Pause for 1 hour” / “Resume”.
74
79
  - **Per session, at most N cards** — the budget (`maxCardsPerSession`, clamped to 0–1000).
75
- - **Diagnostics** — generated / failed / skipped / in-flight counters, the last error, the runtime **version + build hash**, and a Refresh button. `nextStep/diagnostics` returns the same `version` / `buildHash` / `buildFiles` / `packagePath`, so a running build can be matched against `dsh plugin list` or the npm tarball without digging through startup logs.
80
+ - **Diagnostics** — generated / failed / skipped / in-flight counters, the **reason the last card was skipped** (model judged unnecessary / queued / paused / budget / failure, with the model's own sentence), the last error, the runtime **version + build hash**, and a Refresh button. `nextStep/diagnostics` returns the same `version` / `buildHash` / `buildFiles` / `packagePath`, so a running build can be matched against `dsh plugin list` or the npm tarball without digging through startup logs.
81
+
82
+ Turning the global switch off **hides every dependent row** (card / ghost / pause / budget / diagnostics) and leaves just the switch plus one line of explanation — off means off, nothing looks like it still runs, and re-enabling restores the previous switch values.
76
83
 
77
84
  The row writes the same `$DSH_HOME/next-step.settings.json` that the host re-reads (1 s cache) before every generation, so a change applies on the next turn — no restart. If the row is missing because a host seam moved, editing the file still works.
78
85
 
@@ -85,6 +92,7 @@ The row writes the same `$DSH_HOME/next-step.settings.json` that the host re-rea
85
92
  | Global switch off | No request is made at all; existing cards remain in the transcript. |
86
93
  | Paused, or the session's card budget (`maxCardsPerSession`) used up | No new card; existing cards stay. |
87
94
  | A card or a decision already exists for that turn | One card per turn; no duplicates. |
95
+ | The model judges the turn not worth continuing (`needed=false`) | No card; “Last skipped” in diagnostics shows the model's reason. |
88
96
  | Model call failed, timed out (20 s), was rate-limited, bad JSON | Silent; only a diagnostics counter goes up. |
89
97
  | The reply is still streaming | Nothing is rendered for the turn until it ends. |
90
98
  | The composer already has a draft | The card is visible but the pills are disabled until the draft is cleared. |
@@ -92,22 +100,23 @@ The row writes the same `$DSH_HOME/next-step.settings.json` that the host re-rea
92
100
 
93
101
  ## Known limitations
94
102
 
95
- - **The card is attached to the composer area**, not to the transcript. It renders in the composer's overlay layer so it is visible without scrolling; the trade-off is that it reads as part of the input box rather than as a block inside the conversation (ADR 0009 §4).
103
+ - **The card sits under the answer** (`conversation.chat.turnTail`), not in the composer area. It is right below the last answer after the turn completes, so it needs no scrolling; cards from earlier turns scroll with the transcript (see ADR 0009 §4).
96
104
  - **No card while messages are queued.** If you already have 2+ messages waiting to be sent, the plugin skips generation for that turn (the official action cards use the same limit); nothing is queued or sent by the plugin itself.
97
105
  - **Exactly two proposals.** Every card has two options that must point in different (mutually exclusive) directions.
98
- - **The `⌘↵` / `Ctrl+↵` keycap on the primary pill is decorative.** v1 does not bind the shortcut; it is a visual hint only.
106
+ - **`⌘↵` / `Ctrl+↵` is only taken over when the composer is clean, the session is idle and a card is interactive.** Otherwise the combination keeps its host Queue/Steer complementary-send meaning; the plugin never steals it.
99
107
  - **No cross-device sync.** Cards and decisions live in the local session log of the machine that generated them.
100
108
  - **No cards in subagent sessions**, and none for interrupted or empty turns.
101
109
  - **The ghost only offers the latest card's next prompt**, and only when the composer is empty and idle.
102
- - **The card text is model output.** The plugin validates the shape (two options, distinct stances, label length) but does not rewrite the wording.
110
+ - **The card text is model output.** The plugin validates the shape (two options, distinct stances, label length 4–60) but does not rewrite the wording.
111
+ - **A click sends exactly the pill's text** — there is no hidden “short label, long instruction behind it” layer. A `text` field left over in card records written by older versions is ignored.
103
112
 
104
113
  ![After a click: the summary and question stay, the pills disappear](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/next-step/docs/images/after-click.png)
105
114
 
106
115
  ## Compatibility
107
116
 
108
- | DSH version | Status |
109
- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
110
- | 0.2.2-rc.1 | Web composition verified end-to-end on 2026-11-10 (`pnpm smoke:next-step`: 50 passing assertions + 1 skipped settings-page check; real host + real model calls); 67 unit tests; runtime probe 60/60. Desktop real-machine regression verified with `pnpm smoke:next-step-desktop` (`--require`: 9 passing + 1 skip; `--deep`: 19 passing + 2 skips, including a real click that sends a user message). Other DSH versions are not verified. |
117
+ | DSH version | Status |
118
+ | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
119
+ | 0.2.2-rc.1 | Web composition verified end-to-end on 2026-11-11 (`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); 83 unit tests; runtime probe 60/60. The desktop real-machine regression was not re-run on this machine (it needs the new tarball installed into the running desktop profile and a host restart, which would terminate the current session); re-check with `pnpm smoke:next-step-desktop --require --deep` before releasing. Other DSH versions are not verified. |
111
120
 
112
121
  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.
113
122
 
package/README.zh-CN.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @kangyishuai/dsh-next-step
2
2
 
3
- > DeepSeek Harness 的「下一步决策卡」:每条完整回答下方给一张小卡片,写清对话现状、需要你拍板的问题,以及两条互斥的下一步建议;点一条即把该条的完整文本作为用户消息发出。可选(默认关)在空输入框里给一条灰色幽灵提示,`Tab` / `→` 接受。
3
+ > DeepSeek Harness 的「下一步决策卡」:每条完整回答下方给一张小卡片,写清对话现状、需要你拍板的问题,以及两条互斥的下一步建议;点哪一句,就把那句**原样**作为用户消息发出(所见即所发)。模型判断这一轮不值得继续时不出卡。可选(默认关)在空输入框里给一条灰色幽灵提示,`Tab` / `→` 接受。
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/@kangyishuai/dsh-next-step?color=cb3837&logo=npm)](https://www.npmjs.com/package/@kangyishuai/dsh-next-step) [![DSH](https://img.shields.io/badge/verified%20on%20DSH-0.2.2--rc.1-4b6bfb)](#兼容性) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](./LICENSE)
6
6
 
@@ -14,10 +14,10 @@
14
14
 
15
15
  ## 它做什么
16
16
 
17
- - **每条完整回答下方一张卡。** 一轮正常结束后,插件额外调用一次模型,在回答下方追加一张决策卡:一到三句**现状摘要**(超过两行折叠,带「展开 / 收起」小按钮)、一句点名要你拍板的**提问**,以及**两粒互斥方向**的胶囊。胶囊上只放短标签(不超过 20 字),真正发出去的是它背后的完整指令。
18
- - **点一下就是一条用户消息。** 点胶囊会把完整文本填入输入框,并走和手动回车**同一条提交链**发出——不是伪造会话事件。空闲会话立即发送;如果已有回合在跑,就和你打字一样排进队列。
17
+ - **需要继续时才出卡。** 一轮正常结束后,插件额外调用一次模型:先让模型判断「这一轮结束后用户是否真的值得继续」,不值得就给一句理由、不写卡(理由进诊断);值得才在回答下方追加一张决策卡——一到三句**现状摘要**(超过两行折叠,带「展开 / 收起」小按钮)、一句点名要你拍板的**提问**,以及**两粒互斥方向**的胶囊。胶囊上就是点击后**原样发出**的那句话(不超过 60 字,动词开头、单独发出去就能干活)。
18
+ - **点一下就是一条用户消息。** 点胶囊会把它自己那行文本填入输入框,并走和手动回车**同一条提交链**发出——不是伪造会话事件。空闲会话立即发送;如果已有回合在跑,就和你打字一样排进队列。
19
19
  - **刷新也不丢。** 卡片和决策以插件记录的形式追加进会话日志,由宿主的 session projection 折叠,这是唯一的数据来源。刷新页面、切换会话、重开应用都还在;客户端不另存状态。
20
- - **只读保留,不是消失。** 点过之后卡片仍留在对话里,但变成只读:摘要和提问保留,胶囊消失(已发出的卡可能多一行灰字「已发出」)。更早轮次的卡一律只读,所以任何时刻最多一张卡可交互。卡片右上角的 ✕ 可以收掉这张卡,不发送任何东西。
20
+ - **只读保留,不是消失。** 点过之后卡片仍留在对话里,但变成只读:摘要和提问保留,两粒胶囊换成**你点的那一粒的选中态**(✓ + 那句话),后面跟一行灰字「已发出」。更早轮次的卡一律只读,所以任何时刻最多一张卡可交互。卡片右上角的 ✕ 可以收掉这张卡,不发送任何东西。
21
21
  - **输入框幽灵提示(默认关)。** 同一次模型调用还会产出一条「下一句提示」。打开 ghost 面后,空且空闲的输入框里会以灰色、和宿主 placeholder 同字号同基线的样子显示它。`Tab` / `→` 接受进草稿(`Ctrl+Z` 可撤销),`Esc` 清除本次建议,开始打字就消失;输入框里有草稿、附件、`@` 引用或斜杠命令时隐藏。幽灵提示**不是草稿内容**,所以空框按 Enter 仍然什么都不会发。
22
22
  - **两个面,一次调用。** 卡片和幽灵提示由同一次模型调用一起产出,打开 ghost 不会多花请求。
23
23
  - **开关是真的能停。** `card`(默认开)与 `ghost`(默认关)是分开的两个开关;全局开关关闭后**不再发起生成请求**,不是只把 UI 藏起来。另有暂停和每会话卡片预算(`maxCardsPerSession`)限制新卡。已经写进日志的卡仍然可读。
@@ -26,6 +26,7 @@
26
26
 
27
27
  - 每次触发多一次模型调用,用会话所在智能体当前的模型(取不到时回退到默认模型选择),**占用你自己的 provider 额度**。
28
28
  - 这次调用 20 秒超时。失败、限流、JSON 不合法都**静默**:不出卡、不弹框,只在插件诊断里加计数。不合法输出直接丢弃,不写记录。
29
+ - 模型判断「不需要继续」时也不出卡,但**这次调用已经发生**:省的是界面噪音,不是 token。想看模型给出的理由,去设置页诊断里的「最近跳过」。
29
30
  - 除此之外不联网,不上报。
30
31
 
31
32
  ## 副作用与风险
@@ -58,7 +59,11 @@ dsh plugin --profile desktop add /tmp/kangyishuai-dsh-next-step-*.tgz
58
59
 
59
60
  ## 用法
60
61
 
61
- **卡片。** 这一轮正常结束后出现在最后一条回答下方,不抢焦点。胶囊上就是短标签,点击发送完整指令;摘要折叠时用小小的展开按钮看全文。✕ 收掉卡片;更早的卡保持只读,供回看。
62
+ **卡片。** 这一轮正常结束后出现在最后一条回答下方,不抢焦点。胶囊上就是点击后原样发出去的那句话;摘要折叠时用小小的展开按钮看全文。✕ 收掉卡片;更早的卡保持只读,供回看。
63
+
64
+ **键盘。** 卡片可交互、输入框为空、会话空闲时,按 `⌘↵` / `Ctrl+↵` 直接发送 primary 胶囊(和鼠标点击走同一条链)。输入框里有草稿、附件、`@`/`/` 菜单开着或已有回合在跑时,这个键仍归宿主的 Queue/Steer 语义,插件不抢。
65
+
66
+ **没出卡怎么办。** 如果这一轮没有自动出卡(模型判断不需要、暂停中、有排队消息、或在预算之外),最新回答下方会出现一行「生成下一步建议」:点它就会**强制**生成一张卡(模型判断不需要也照出)。所以「我觉得该出卡却没出」时:先看设置页诊断的「最近跳过」;想立刻要一张,直接点那个按钮。
62
67
 
63
68
  **幽灵提示。** 在插件设置里打开 ghost 面。输入框空且空闲时,最新一张卡的「下一句提示」以灰色出现,和宿主 placeholder 对齐。`Tab` 或 `→` 接受——文本进入草稿,仍可撤销。`Esc` 清除本次建议,输入第一个字符也会让它消失。它只改草稿:不发送,也不抢 Enter。
64
69
 
@@ -72,7 +77,9 @@ dsh plugin --profile desktop add /tmp/kangyishuai-dsh-next-step-*.tgz
72
77
  - **回答下方的决策卡** / **输入框里的幽灵提示** —— 每个面一个开关。
73
78
  - **生成节奏** —— 「暂停 1 小时」/「恢复生成」。
74
79
  - **每会话最多 N 张卡** —— 预算(`maxCardsPerSession`,夹在 0–1000)。
75
- - **诊断** —— 已生成 / 失败 / 跳过 / 在途计数、最近错误、**运行时版本 + 构建哈希**、刷新按钮。`nextStep/diagnostics` 同样返回 `version` / `buildHash` / `buildFiles` / `packagePath`,所以运行中的构建可以和 `dsh plugin list` 或 npm 上的 tarball 对照,不需要翻启动日志。
80
+ - **诊断** —— 已生成 / 失败 / 跳过 / 在途计数、**最近一次没出卡的原因**(模型判断不需要 / 排队 / 暂停 / 预算 / 失败,附模型给的理由)、最近错误、**运行时版本 + 构建哈希**、刷新按钮。`nextStep/diagnostics` 同样返回 `version` / `buildHash` / `buildFiles` / `packagePath` 与 `lastSkip`,所以运行中的构建可以和 `dsh plugin list` 或 npm 上的 tarball 对照,不需要翻启动日志。
81
+
82
+ 关闭总开关后,卡片 / 幽灵 / 暂停 / 预算 / 诊断这些依赖项会**整段隐藏**,只留总开关和一行说明——关掉就是关掉,不会让人以为还有东西在跑;重新启用时这些开关的取值都还在。
76
83
 
77
84
  这一行写入的就是宿主每次生成前重读(1s 缓存)的 `$DSH_HOME/next-step.settings.json`,所以改完下一轮就生效、不用重启;万一宿主 seam 变了导致这一行不显示,直接改文件同样有效。
78
85
 
@@ -85,6 +92,7 @@ dsh plugin --profile desktop add /tmp/kangyishuai-dsh-next-step-*.tgz
85
92
  | 全局开关关闭 | 完全不发请求;已有卡片仍然留在对话里。 |
86
93
  | 已暂停,或用完该会话的卡片预算(`maxCardsPerSession`) | 不出新卡;已有卡片保留。 |
87
94
  | 该轮已经有 card 或 decision 记录 | 一轮最多一张卡,不重复。 |
95
+ | 模型判断这一轮不需要继续(`needed=false`) | 不出卡;诊断里「最近跳过」写明理由。 |
88
96
  | 模型调用失败、20 秒超时、限流、JSON 不合法 | 静默;只有诊断计数增加。 |
89
97
  | 回答还在流式输出 | 该轮结束前槽位不渲染。 |
90
98
  | 输入框里已有草稿 | 卡片照常显示,但胶囊禁用,直到清空草稿。 |
@@ -92,22 +100,23 @@ dsh plugin --profile desktop add /tmp/kangyishuai-dsh-next-step-*.tgz
92
100
 
93
101
  ## 已知限制
94
102
 
95
- - **卡片贴在输入区上方**(composer 的覆盖层),不排在对话流里。好处是永远不用滚动就能看到建议;代价是它视觉上属于输入框,不是对话正文里的一块(取舍见 ADR 0009 §4)。
103
+ - **卡片排在回答下方**(`conversation.chat.turnTail`),不在输入区。答完后它就在最后一条回答下面,不用滚动;更早轮次的卡随对话历史一起滚动(取舍见 ADR 0009 §4)。
96
104
  - **有排队消息时不出卡。** 如果你已经排了 2 条以上待发送消息,这一轮就跳过生成(官方 action cards 用同一条规则);插件本身不会排队或代发任何东西。
97
105
  - **固定两条建议。** 每张卡都是两条方向互斥的选项。
98
- - **primary 胶囊上的 `⌘↵` / `Ctrl+↵` 键帽只是视觉提示。** v1 不绑定这个快捷键。
106
+ - **`⌘↵` / `Ctrl+↵` 只在「输入框干净 + 会话空闲 + 卡片可交互」时接管。** 其它时候这个组合仍是宿主的 Queue/Steer 互补发送;插件不抢占。
99
107
  - **不做跨设备同步。** 卡片和决策只存在生成它的那台机器的本地会话日志里。
100
108
  - **子代理会话不出卡**,被中断或没有文本的回合也不出。
101
109
  - **幽灵提示只给最新一张卡的下一句**,且只在输入框为空、会话空闲时出现。
102
- - **卡片文字来自模型。** 插件会校验形状(两条选项、方向互斥、标签长度),但不改写措辞。
110
+ - **卡片文字来自模型。** 插件会校验形状(两条选项、方向互斥、标签长度 4–60),但不改写措辞。
111
+ - **点击发出去的就是按钮文本**,不再有「按钮短、背后另有一段长指令」的隐藏层:旧版本卡片记录里残留的 `text` 字段会被忽略。
103
112
 
104
113
  ![点过之后:摘要与提问保留、胶囊消失](https://raw.githubusercontent.com/kangyishuai/dsh-plugins/main/packages/next-step/docs/images/after-click.png)
105
114
 
106
115
  ## 兼容性
107
116
 
108
- | DSH 版本 | 状态 |
109
- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
110
- | 0.2.2-rc.1 | 2026-11-10 用 web 组合端到端验证通过(`pnpm smoke:next-step`:50 项断言通过 + 1 项设置页断言 SKIP;真实宿主 + 真实模型调用)、单测 67 项、宿主探针 60/60;桌面真机回归已用 `pnpm smoke:next-step-desktop` 验证(`--require`:9 通过 + 1 跳过;`--deep`:19 通过 + 2 跳过,含一次真实点击并发出用户消息)。其他 DSH 版本未验证。 |
117
+ | DSH 版本 | 状态 |
118
+ | ---------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
119
+ | 0.2.2-rc.1 | 2026-11-11 用 web 组合端到端验证通过(`pnpm smoke:next-step`:59 项断言全部通过 + 0 SKIP;真实宿主 + 真实模型调用,覆盖 WYSIWYG 发送、点后回显、`needed` 门控与补生成按钮、设置渐进披露)、单测 83 项、宿主探针 60/60。桌面真机回归本机未重跑(需把新版装进正在运行的 desktop profile 并重启宿主,会中断当前会话);发版前用 `pnpm smoke:next-step-desktop --require --deep` 复核。其他 DSH 版本未验证。 |
111
120
 
112
121
  插件不声明 `engines.dsh`,也不声明 `@deepseek-ai/*` 的 peer 范围:DSH 还在预发布阶段,预发布版本的 semver 范围不可靠(见 [ADR 0005](../../docs/adr/0005-dsh-version-compatibility.md))。以这张表为准。DSH 升级后跑 `pnpm probe:runtime`、`pnpm smoke:next-step`、`pnpm smoke:next-step-desktop`,并看插件诊断。
113
122