@surfishs/dsh-prompt-enhance 0.0.7 → 0.0.8

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.
Files changed (56) hide show
  1. package/README.en.md +3 -0
  2. package/README.md +3 -0
  3. package/cordis.patch.yml +1 -1
  4. package/lib/client.js +341 -383
  5. package/lib/index.js +67 -56
  6. package/lib/index.js.map +3 -3
  7. package/package.json +23 -15
  8. package/src/client/ActionIcons.tsx +4 -17
  9. package/src/client/EnhanceButton.tsx +52 -48
  10. package/src/client/ResultDock.tsx +22 -9
  11. package/src/client/ResultPanel.tsx +83 -52
  12. package/src/client/SparkleFishIcon.tsx +3 -13
  13. package/src/client/SparkleIcon.tsx +2 -12
  14. package/src/client/UndoBar.tsx +11 -6
  15. package/src/client/enhance-client.ts +44 -40
  16. package/src/client/index.tsx +3 -12
  17. package/src/client/llm-catalog.ts +14 -16
  18. package/src/client/locales.ts +18 -4
  19. package/src/client/reasoning-options.ts +7 -15
  20. package/src/client/settings-page-controls.tsx +449 -0
  21. package/src/client/settings-page-copy.ts +112 -0
  22. package/src/client/settings-page-spec.ts +330 -0
  23. package/src/client/settings-page-styles.ts +161 -0
  24. package/src/client/settings-page.tsx +113 -1110
  25. package/src/client/settings-source.ts +41 -31
  26. package/src/client/settings.ts +17 -12
  27. package/src/client/shortcut.ts +7 -6
  28. package/src/client/useDockAlignment.ts +5 -15
  29. package/src/config.ts +84 -27
  30. package/src/context.ts +1 -5
  31. package/src/enhance-routes.ts +8 -8
  32. package/src/enhancer.ts +43 -34
  33. package/src/orchestrate.ts +19 -23
  34. package/src/prompts.ts +4 -4
  35. package/src/provider-catalog.ts +1 -1
  36. package/src/reasoning-cache.ts +4 -4
  37. package/src/reasoning-efforts.ts +4 -9
  38. package/src/settings-source.ts +37 -23
  39. package/src/shared/limits.ts +38 -0
  40. package/src/shared/normalize.ts +4 -1
  41. package/src/shared/protocol.ts +27 -23
  42. package/src/shared/reasoning.ts +1 -7
  43. package/src/shared/stream-text.ts +0 -6
  44. package/src/shared/validate.ts +3 -9
  45. package/docs/code-review-2026-09.md +0 -211
  46. package/docs/handoff-settings-page.md +0 -195
  47. package/docs/release-0.2.3.md +0 -47
  48. package/docs/release-0.2.4.md +0 -20
  49. package/docs/release-0.2.5.md +0 -28
  50. package/docs/release-0.2.6.md +0 -33
  51. package/docs/release-0.2.7.md +0 -22
  52. package/docs/release-0.3.0.md +0 -36
  53. package/docs/release-0.3.1.md +0 -50
  54. package/docs/release-0.3.2.md +0 -41
  55. package/docs/release-0.3.3.md +0 -53
  56. package/docs/release-0.3.4.md +0 -43
@@ -1,195 +0,0 @@
1
- # 交接:dsh-prompt-enhance 配置页(feat/settings-section)
2
-
3
- 给下一个会话(创造模式)的交接说明。读这份就够开工,不需要重新调查宿主。
4
-
5
- **状态(2026-11-13)**:插件有**两个**配置入口,共用同一套 staged 表单:
6
- ① 设置对话框左侧「提示词增强」(`settings.section`,这是本插件一直自己画的那页);
7
- ② 插件页(`plugins.row.config`,宿主文档规定的插件自带配置入口)。
8
- 17 个字段全部接通,临时探针已删;`npm run typecheck` / `npm test`(25 文件 / 265 用例)/
9
- `npm run build` 全绿,`lib/client.js` 已重建并复制到运行目录。
10
-
11
- ## 目标
12
-
13
- 在 DSH `0.2.2-rc.1` 桌面版里,为 `dsh-prompt-enhance@0.3.4` 提供配置页。
14
-
15
- 插件作者**没有写过任何设置 UI**:插件只声明 schemastery `Config`,页面过去靠宿主
16
- `SettingsForms.describe()` 按 schema 自动生成;`0.2.2-rc.1` 不再为普通 profile 条目生成。
17
-
18
- ## 两个入口各自是什么
19
-
20
- ### ① 设置对话框页(`settings.section`)
21
-
22
- 插槽契约:`settings.section`,list 槽,注册 `{ id, order, label, locale, inject }`。
23
- 本插件:`id: dsh-prompt-enhance`、`order: 70`、`label: 提示词增强`。
24
-
25
- 这一页的呈现是**刻意保留的诊断形态**:标题 `英文键(中文名)`(如 `enabled(总开关)`),
26
- 提示中英双语用 `|` 连接,页首有一句「这些设置写入宿主侧 dsh-prompt-enhance 配置节」。
27
- 用户明确要求保留这一版 UI,别把它当成「应该统一成人话标题」而改掉。
28
-
29
- ### ② 插件页行配置(`plugins.row.config`)
30
-
31
- 宿主文档(`@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md`「配置页」)规定:
32
- 自带配置的插件在插件页提供配置,三个 slot 分别是
33
- `plugins.item`(官方插件)、`plugins.bundle.config`(组合包)、
34
- **`plugins.row.config`(`<包名>#<行 id>`)**。行上会多一个「配置」控件,打开该行自己的页面;
35
- 管理器画标题/图标/面包屑,传 `view: 'page' | 'summary'` 和该行的 `form`;离开页面丢弃暂存。
36
-
37
- 本插件:包名 `dsh-prompt-enhance`,行 id `dsh-prompt-enhance`(见 `cordis.patch.yml`),
38
- 注册 key **`dsh-prompt-enhance#dsh-prompt-enhance`**。这一页用 locale 文案(人话标题、单语提示),
39
- `view === 'summary'` 返回「模型、上下文与资源限制」。
40
-
41
- **管理器怎么决定要不要画「配置」控件**(`plugin-manager/lib/client.js`):
42
-
43
- ```js
44
- const configure = (pkg) => ({
45
- has: (row) => ledger.rows.has(rowConfigKey(pkg.name, row.rowId)), // `${pkg}#${rowId}`
46
- open: (row) => setView({ kind: 'row', name: pkg.name, rowId: row.rowId }),
47
- })
48
- ```
49
-
50
- 运行时验证:`cordis_inspect_query`(client `Slots.listSubTree`, root `plugins.row.config`)显示
51
- occupants 里已有 `dsh-prompt-enhance#dsh-prompt-enhance`,同槽还有 `dsh-free-search#web-search-free`、
52
- `@michengai/dsh-btw#michengai-btw`——说明注册是活的,第三方插件也用同一套。
53
- **注意入口位置**:是**侧边栏「插件」面板**(带安装/启停、组合包列表的那个),
54
- 不是 **设置 → 插件**(那是 `settings.plugins.tab` 的标签页宿主,只有「全部 / dsh-market」两个清单页,
55
- 不承载行配置)。
56
-
57
- ## 共用层(两个入口都走它)
58
-
59
- - 一个 `SettingsPageController`:`createSettingsForm(scope)` → `SettingsFormModel(scope, 描述符)`
60
- → `bind(projection)` 出 store → `inject()` 返回 `{ hooks: { promptEnhance: store }, ...form.actions() }`。
61
- 两个槽的 `inject` 都指向同一个 controller,因此两页共享同一份暂存状态。
62
- - `SettingsRows` 渲染 17 行;两种 `RowCopy` 只决定文案:`SECTION_COPY`(键名+中文名、双语提示)
63
- 与 `pageCopy(t)`(单语、跟随 locale)。
64
- - 三种行形态:3 个布尔(`enabled` / `contextAware` / `streaming`)用 `Switch`;
65
- 2 个枚举(`strategyMode` / `reasoningEffort`)用 `SegmentedControl`;
66
- 其余 12 个用 `SettingsValueField`(文本/数字)。
67
-
68
- ## primitives 契约(从壳 bundle 实测,省得重新挖)
69
-
70
- primitives 编译进了 Web 壳前端包,就在 app.asar 里:
71
-
72
- ```
73
- dsh/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-*.js (约 970 KB)
74
- ```
75
-
76
- asar 可以直接用 node 读(pwsh 的 `Get-ChildItem` 只把它当文件):
77
-
78
- ```js
79
- // 本机 app.asar 的 header 有 12 字节 pickle 前缀,JSON 从 offset 16 开始
80
- const b = fs.readFileSync('D:\\DeepseekHarness\\resources\\app.asar')
81
- const len = b.readUInt32LE(12)
82
- const header = JSON.parse(b.subarray(16, 16 + len).toString('utf8'))
83
- // base = 16 + len;条目 offset 相对 base,按 header.files 找到目标路径后切片
84
- ```
85
-
86
- 官方设置页源码同在同一份 asar:`dsh-client-ui-settings-agent-loop/lib/client.js`(最小例子)、
87
- `...-web-search/lib/client.js`(`Switch` + 多 namespace + 自定义保存顺序)。
88
-
89
- **导出**(相关部分):`SettingsForm`、`SettingsFormModel`、`SettingsValueField`、
90
- `SettingsSecretField`、`settingsTextField`、`settingsNumberField`、`Switch`、
91
- `SegmentedControl`、`Tag`、`Menu`、`Modal` 等。
92
-
93
- **字段描述符是普通对象**,布尔/枚举可以自写,不必绕过表单模型:
94
-
95
- ```ts
96
- settingsTextField(k) → { field:k, format:v => typeof v==='string' ? v : '',
97
- parse:t => t.trim()==='' ? {kind:'clear'} : {kind:'set', value:t.trim()} }
98
- settingsNumberField(k) → { field:k, format:v => typeof v==='number' ? String(v) : '', parse: … }
99
-
100
- class SettingsFormModel {
101
- constructor(scope, specs, secretSpecs = [])
102
- bind(project) // → { getSnapshot, subscribe },宿主再包装成 selector hook
103
- shell() // { available, writable, dirty, invalid, saving, failed }
104
- field(key) // { text, overridden, invalid }
105
- actions() // { edit(key,text), resetField(key), save(), discard() }
106
- plan() // clear → unset;text === format(现值) → 跳过;parse → set
107
- dispose()
108
- }
109
- ```
110
-
111
- **自写描述符的机关**:`parse` 返回什么就写什么 JSON 值,所以:
112
-
113
- ```ts
114
- settingsBooleanField(k) → parse: t==='true' ? {kind:'set', value:true}
115
- : t==='false' ? {kind:'set', value:false}
116
- : t==='' ? {kind:'clear'} : undefined
117
- settingsEnumField(k, opts) → parse: t => opts.includes(t) ? {kind:'set', value:t} : undefined
118
- ```
119
-
120
- **不要**改成绕过表单模型直接 `remote.settings.mutate`——会丢掉 staged/保存/丢弃/覆盖标记/恢复默认。
121
-
122
- **原语 props**:`Switch({checked,onChange(next:boolean),label?,disabled?})`、
123
- `SegmentedControl({id,value,options:[{value,label}],onChange(next),label?,disabled?})`、
124
- `Tag({tone, children})`。
125
-
126
- **行样式**:宿主设置行用 CSS module `181ew`,自绘行照抄其度量
127
- (`display:flex;flex-direction:column;gap:6px;padding:12px 0`;标签 13px/500;
128
- 提示 12px/1.5 `var(--dsw-alias-label-tertiary)`;行间 `0.5px solid var(--dsw-alias-border-l2)`)。
129
- 分隔线放外层包裹 div,因为原生 `.field + .field` 不会跨到自绘行。
130
-
131
- **jsx 陷阱**:`react/jsx-runtime` 的 `jsx(type, props, key)` 第三参是 **key**,
132
- children 必须放 `props.children`。手写 `jsx()` 时传错会渲染成空白页。
133
-
134
- **测试侧**:primitives 没装也不该装,Vite 在 transform 阶段解析不到它 → 任何 import 到
135
- `src/client/index` 的测试都会在收集阶段挂。`vitest.config.ts` 把它 alias 到
136
- `tests/support/ui-primitives.tsx`(行为替身,含 `SettingsFormModel` 的忠实移植)。
137
-
138
- ## 已完成
139
-
140
- | 项 | 位置 |
141
- |---|---|
142
- | 两个入口 + 共用表单(17 字段) | `src/client/settings-page.tsx` |
143
- | 页面文案(`settings.*`,zh/en) | `src/client/locales.ts` |
144
- | 宿主 primitives 的环境声明 | `src/client/primitives.d.ts` |
145
- | 注册调用 | `src/client/index.tsx` 的 `apply()`:`installSettingsPages(ctx)` |
146
- | 两个入口的回归测试(9 例) | `tests/settings-page.test.tsx` |
147
- | primitives 行为替身(只给测试用) | `tests/support/ui-primitives.tsx` |
148
- | Vitest 别名 | `vitest.config.ts` |
149
- | 构建产物 | `lib/client.js`(提交在分支上;已部署到运行 profile) |
150
- | 远端分支 | `surfishs/dsh-prompt-enhance` → `feat/settings-section` |
151
-
152
- ## 剩余待办
153
-
154
- 1. **确认真机入口**:Ctrl+R 后
155
- - 设置对话框左侧应出现「提示词增强」,17 行、标题 `键名(中文名)`、双语提示;
156
- - 侧边栏「插件」面板 → `dsh-prompt-enhance` → 行 `dsh-prompt-enhance` 应有「配置」控件
157
- (注册已证实是活的;若没有,先确认打开的是插件面板而不是 设置→插件)。
158
- 2. 发版时补 `CHANGELOG.md`。
159
- 3. `README` / `README.zh-CN.md` 仍写「设置 → 插件配置」(宿主自动生成页时代的说法),
160
- 可补一句:0.2.2 起配置在插件页行配置,另有设置对话框页。
161
-
162
- ## 本机构建与验证
163
-
164
- ```powershell
165
- cd D:\DeepSeekHarnessWorkspace\dsh-prompt-enhance
166
- npm ci
167
- npm run typecheck
168
- npm test # CI 必过项:25 文件 / 265 用例
169
- npm run build
170
- ```
171
-
172
- 运行目录是 `C:\Users\surfish\.dsh\profiles\desktop\node_modules\dsh-prompt-enhance`:
173
-
174
- ```powershell
175
- Copy-Item .\lib\client.js "$env:USERPROFILE\.dsh\profiles\desktop\node_modules\dsh-prompt-enhance\lib\client.js" -Force
176
- ```
177
-
178
- 回滚文件(保留在运行目录):
179
-
180
- - `lib/client.js.bak-pe-settings` —— 插件原始的 0.3.4 产物(没有任何配置页)
181
- - `lib/client.js.bak-handpatch` —— 更早的手改版
182
-
183
- ## 依赖镜像
184
-
185
- ```powershell
186
- npm config set registry https://registry.npmmirror.com
187
- ```
188
-
189
- ## 注意
190
-
191
- - 不要改 `lib/client.js` 当源码用;`lib/` 是构建产物,CI 会校验 `git diff --quiet lib/`。
192
- - 页面依赖 `@deepseek-ai/dsh-client-ui-primitives` 运行时存在;它是 dsh web 壳的一部分。
193
- - 自写描述符的 `format` 必须确定性:staged 表单用它做「这一行没改过」的判等基准。
194
- - 插件页注册 key 与行 id 强绑定:`SETTINGS_ROW_ID` 改了必须同步 `cordis.patch.yml` 的 `id`。
195
- - 设置对话框页的 `英文键(中文名)` + 双语提示是用户要求保留的形态,不要「顺手统一」。
@@ -1,47 +0,0 @@
1
- ## Two boot/render failures, two silent bugs
2
-
3
- This release fixes two defects that made the plugin unusable rather than merely imperfect, plus two long-standing bugs that only showed up once it ran against a real `dsh web` host.
4
-
5
- ### If the web GUI went blank
6
-
7
- The browser half declared `settingsScope` in the plugin's exported `inject`. Cordis loads a plugin **only while every service named there is available**, and that service belongs to the optional settings surface (`@deepseek-ai/dsh-client-ui-settings`) — which a minimal profile need not bundle. The entry therefore sat `pending` forever and the shell reported:
8
-
9
- ```
10
- web boot: 1 entry did not activate
11
- dsh-prompt-enhance: pending (waiting for service: settingsScope)
12
- ```
13
-
14
- The browser half now hard-requires **nothing**: `slots`, `locale`, and `settingsScope` all ride optional `ctx.inject`, and `apply()` itself touches no service. Degradation is graceful — a profile with no settings surface keeps the bundled default mirror (shortcut `ctrl+alt+e`, 12000-character cap, streaming on), and one with no locale service renders dictionary keys.
15
-
16
- ### If the composer lost the enhance button
17
-
18
- `EnhanceButton` read `state.imageIds.length` and `state.occurrences.length` directly. Those fields are part of the input snapshot in the dsh lines the plugin was written against, but a slot host is not obliged to expose them, and reading `.length` off a missing field throws **during render** — which React answers by unmounting the whole slot entry behind its error boundary:
19
-
20
- ```
21
- slot entry crashed in 'conversation.input.right': TypeError: Cannot read properties of undefined (reading 'length')
22
- ```
23
-
24
- Both counts, plus `draft` / `phase`, are now read defensively. An absent field only disables the corresponding *advisory* guard (images-only, reference chips); the enhancement itself always runs.
25
-
26
- ### Specific upstream fix hints never appeared
27
-
28
- The host sends `reason` in kebab-case (`invalid-credential`, `rate-limit`, `context-window`, `tool-call`, `max-tokens`) while the dictionaries key those hints in camelCase (`error.upstream.invalidCredential`, …). Building the key as `` `error.upstream.${reason}` `` matched only the three single-word reasons (`auth`, `quota`, `empty`) and silently fell back to the generic line for the other five — the specific copy was shipped but unreachable. `UPSTREAM_ERROR_KEYS` is now an explicit, literal-typed table, covered by a key-set test and a per-reason render test on the real panel.
29
-
30
- ### The streamed route never ended its response
31
-
32
- `/prompt-enhance/enhance-stream` wrote its `done` frame but never called `res.end()`, so the chunked body lacked its `0\r\n\r\n` terminator and the connection stayed half-open. A browser client survived only because it returns on the `done` frame and cancels its reader — but any whole-body consumer (`response.text()`, curl, a reverse proxy, a logging middleware) waited **forever**, and keep-alive could never reuse the socket. The route now ends the response after the final frame, guarded against a client that vanished mid-stream.
33
-
34
- ### Also in this release
35
-
36
- - New SSE frame writer with real socket backpressure (`src/sse.ts`): a slow reader parks frames instead of letting the socket buffer grow without bound.
37
- - The conversation-context budget uses the same Unicode code-point gauge as the input cap, and truncates without splitting surrogate pairs.
38
- - `resolveConfig` normalizes a blank `provider` / `model` pair to `undefined` instead of a surviving `''` that downstream read as "an override exists".
39
- - The cross-session busy state uses `aria-disabled` with a readable reason, so the cause is reachable by keyboard and screen-reader users instead of a silently disabled button.
40
- - `ResultPanel`'s focus restore no longer hands focus straight back out under React StrictMode (which had neutered the Tab trap and the Escape handler).
41
- - `peerDependencies` now includes `react-dom`; `files` includes the `docs/` screenshot the READMEs reference; CI runs the Node floor (`22.19`).
42
-
43
- ### Verification
44
-
45
- - `npm run typecheck`, `npm run build` clean.
46
- - **207 tests across 20 files** — new coverage for locale key-set integrity, per-reason error copy, 10 SSE writer units, SSE route end-to-end (reads the body to completion, which is what catches the missing terminator), boot under a service-less host, and render under a host input state without `imageIds` / `occurrences`.
47
- - Exercised against a live `dsh web` profile: the layer mounts, the composer button renders, and the enhance flow (stream → preview → fill back → undo) works.
@@ -1,20 +0,0 @@
1
- ## Packaging-only follow-up to 0.2.3
2
-
3
- No runtime behavior changes. **0.2.3 is the functional release** — see its notes for the four defect fixes; use 0.2.4 if you want the clean install.
4
-
5
- ### What changed
6
-
7
- `0.2.3` declared `@deepseek-ai/dsh-llm` as a peer with the range `^0.1.1-rc.2`. No published version can satisfy that — the registry serves `0.0.1-rc.1`, one minor below the range — so every install produced a peer warning that could not be resolved, and npm could offer to pull a version whose API does not match this plugin.
8
-
9
- That module is in fact a **runtime module supplied by the dsh host**: both `lib/` bundles keep every package import external, and the plugin loader satisfies it in-process. It is not installable from npm by design.
10
-
11
- - The range is now the honest floor: **`>=0.1.1-rc.2`**, matching the `dsh.engines.dsh` floor.
12
- - The entry is marked **`optional`** in `peerDependenciesMeta`, so a host that does not provide it produces no warning; the plugin reports a normal error at enhance time rather than failing to load.
13
- - The `react` / `react-dom` peers stay **required** — the web shell's module registry provides them and they really are needed.
14
- - Both READMEs' *Requirements* sections now state where the module comes from.
15
-
16
- ### Verification
17
-
18
- - `npm run typecheck`, `npm run build` clean.
19
- - **207 tests across 20 files** pass.
20
- - `npm pack` contents unchanged apart from `package.json`.
@@ -1,28 +0,0 @@
1
- ## Two metadata corrections
2
-
3
- No runtime behavior changes. Both corrections remove claims the project could not back.
4
-
5
- ### `dsh.engines.dsh` is now bounded: `>=0.1.1-rc.2 <0.2.0`
6
-
7
- It previously read `>=0.1.1-rc.2` — an open-ended claim that *any* future harness version is supported. Boot verification at the time covered `0.1.1-rc.2`, `0.1.2-alpha.3`, and `0.1.7-rc.2`, while the current npm line was already `0.2.0-rc.2`, so the open ceiling was over-promising.
8
-
9
- `<0.2.0` rather than `<0.1.8` is deliberate: per semver, a prerelease only matches a range that names a prerelease, so `<0.1.8` would have **excluded the verified `0.1.7-rc.2`** — the exact version the range has to keep. `<0.2.0` keeps every `0.1.x` and excludes the then-unverified `0.2.0-rc.1` / `0.2.0-rc.2`.
10
-
11
- > Superseded by **0.2.6**, which widened the ceiling to `<0.3.0` after `0.2.0-rc.2` was verified on the dsh desktop application. This release is the honest intermediate step, not the final state.
12
-
13
- ### `dsh.client.inject` no longer lists `@deepseek-ai/dsh-client-ui-settings`
14
-
15
- That entry dated from the layout in which the browser half hard-declared the settings surface — the declaration that produced, on a profile without that package:
16
-
17
- ```
18
- web boot: 1 entry did not activate
19
- dsh-prompt-enhance: pending (waiting for service: settingsScope)
20
- ```
21
-
22
- …and took the whole GUI down with it (fixed in 0.2.3 by reaching every optional service through `ctx.inject`). With that fix in place the module no longer belongs in the required-provider list.
23
-
24
- ### Verification
25
-
26
- - `npm run typecheck`, `npm run build` clean.
27
- - **207 tests across 20 files** pass.
28
- - Metadata-only: `lib/` is byte-identical to 0.2.4, which is why the tarball contents are unchanged apart from `package.json`.
@@ -1,33 +0,0 @@
1
- ## Verified on the latest dsh line
2
-
3
- No runtime behavior changes — this release widens the declared compatibility ceiling, because the versions that were previously outside it have now been checked on real hosts.
4
-
5
- ### What was verified
6
-
7
- The `0.2.0-rc.2` runtime (the current npm line) had never been exercised when `0.2.5` capped the range at `<0.2.0`. It has now been, on two hosts:
8
-
9
- | Host | Runtime | Result |
10
- |---|---|---|
11
- | dsh **desktop application** (`DeepSeek Harness.exe`, FileVersion `0.2.0-rc.2`) | `0.2.0-rc.2` | loads and enhances |
12
- | global CLI (`dsh web`) | `0.2.0-rc.2` | loads and enhances |
13
-
14
- Three independent signals, not just "the UI looked fine":
15
-
16
- 1. **The runtime's plugin-compatibility gate accepts this plugin.** `0.2.0-rc.2` refuses to load bundles whose `peerDependencies` pin an older `@deepseek-ai/dsh-*` range. This plugin is **not** among the refused: the optional `@deepseek-ai/dsh-llm` peer introduced in `0.2.4` (range `>=0.1.1-rc.2`, marked `optional`) satisfies the gate. For comparison, the gate skipped `dshmarket@1.45.0`, `dsh-find-plugin@0.4.0`, and `dsh-better-sidebar@0.15.2` on the same host.
17
- 2. **No `pending (waiting for service: …)` and no `1 entry did not activate`.** The "hard-require nothing" fix from `0.2.3` — every optional service reached through `ctx.inject` — holds on the new runtime as well.
18
- 3. **A real enhancement completed end to end** against the live model: `[prompt-enhance] … in=2 out=64 ctx=0 1928ms ok`.
19
-
20
- ### What changed
21
-
22
- `dsh.engines.dsh` is now **`>=0.1.1-rc.2 <0.3.0`** (was `>=0.1.1-rc.2 <0.2.0`). The new ceiling covers the whole `0.2.x` line including its prereleases, while still refusing a `0.3.x` that has never been seen.
23
-
24
- Two notes on reading this field:
25
-
26
- - `dsh.engines` is **advisory metadata** consumed by the loader and the plugin manager. It states the supported range; it does not enforce anything.
27
- - If you run a `0.2.x` runtime, expect *other* plugins to disappear from the UI. That is the compatibility gate doing its job, not a fault in this plugin — check your dsh startup output for `skipping profile bundle` lines.
28
-
29
- ### Verification
30
-
31
- - `npm run typecheck`, `npm run build` clean.
32
- - **207 tests across 20 files** pass.
33
- - Boot-verified on `0.1.1-rc.2`, `0.1.2-alpha.3`, `0.1.7-rc.2`, and `0.2.0-rc.2`.
@@ -1,22 +0,0 @@
1
- ## Version bump carrying the desktop-app verification record
2
-
3
- No runtime behavior changes. This version exists because a **docs-only** change followed 0.2.6: the source had already been verified on the current dsh line, but the record of *where* it was verified needed correcting.
4
-
5
- ### What this version carries
6
-
7
- The `0.2.6` release notes described the `0.2.0-rc.2` verification as having happened on the global CLI. That was incomplete: the environment the plugin is **actually used in day to day** is the dsh **desktop application**, and its `FileVersion` is `0.2.0-rc.2` too. The record now names both hosts, and the READMEs say so as well.
8
-
9
- This matters for anyone reading the support claim: "verified on `0.2.0-rc.2`" should not rest on a CLI smoke test when the desktop app is the real target. Both were checked, and the evidence is the same three signals:
10
-
11
- 1. **The runtime's plugin-compatibility gate accepts this plugin.** `0.2.0-rc.2` refuses bundles whose `peerDependencies` pin an older `@deepseek-ai/dsh-*` range. This plugin passes, thanks to the optional `@deepseek-ai/dsh-llm` peer (`>=0.1.1-rc.2`) introduced in 0.2.4. The gate skipped `dshmarket@1.45.0`, `dsh-find-plugin@0.4.0`, and `dsh-better-sidebar@0.15.2` on the same host.
12
- 2. **No `pending (waiting for service: …)` and no `1 entry did not activate`.**
13
- 3. **A real enhancement completed end to end**: `[prompt-enhance] … in=2 out=64 ctx=0 1928ms ok`.
14
-
15
- ### Documentation-only
16
-
17
- `src/` and `lib/` are unchanged from 0.2.6; the shipped bundles are identical. The declared range is `>=0.1.1-rc.2 <0.3.0`, boot-verified on `0.1.1-rc.2`, `0.1.2-alpha.3`, `0.1.7-rc.2`, and `0.2.0-rc.2` (desktop app and CLI).
18
-
19
- ### Verification
20
-
21
- - `npm run typecheck`, `npm run build` clean.
22
- - **207 tests across 20 files** pass.
@@ -1,36 +0,0 @@
1
- ## Adapting to the `0.2.1-rc.2` settings contract
2
-
3
- No new features. This release exists because the harness moved the two services that carry the plugin's settings, and the plugin's probes for them **failed silently**: the settings page kept rendering, edits kept landing on disk, and nothing ever reached a request or the composer. Five defects are fixed; three of them predate the update but only became reachable on the current line.
4
-
5
- ### What was silently broken
6
-
7
- | Surface | What `0.2.x` did | What the user saw | Fix |
8
- |---|---|---|---|
9
- | Host: the section | Deleted the `installSettingsSection` / `settingsNamespace` exports outright; `SettingsForms.describe()` replaced them | Settings edits applied on disk, never to the next enhance | Read the row through `describe()` **per request** |
10
- | Browser: the mirror | `ctx.settingsScope` no longer exists | `enabled` / `maxInputChars` / `shortcut` / `streaming` stuck at the bundled defaults | `configForms.get(entryId)` first, then the aggregate binder, then the legacy scope |
11
- | Browser: the attachment guard | `InputState.imageIds` renamed `attachmentIds` | The "attachments only" guard never fired | Read both names |
12
-
13
- The host fix is verified end to end, not just in unit tests: on a real `dsh web` at `0.2.1-rc.2`, a profile with `maxInputChars: 300` refused a 400-character draft with `422 {count: 400, max: 300}`, and editing the same profile to `20000` — **without restarting** — let the identical draft through.
14
-
15
- ### Two defects in the new browser mirror
16
-
17
- Found on a second pass over the code this release introduces.
18
-
19
- 1. **It disposed an object it does not own.** `configForms.get()` does not create a form per caller: the settings provider caches one controller per entry and hands the same instance to the settings page, and `dispose()` permanently stops that controller deriving — the provider keeps the dead instance in its cache. Tearing it down on plugin unload would have frozen this entry's settings page for the rest of the session. The mirror now releases only its own subscription.
20
- 2. **It resolved the entry id once.** With the describe mirror not yet loaded, the namespace list was empty, so the plugin bound its configured candidate — which on an aggregate bundle is not the real row, and a namespace that does not exist answers `unavailable` forever. Resolution now re-runs on every describe tick and rebinds when the served id changes, which also covers a rename the first pass could not see.
21
-
22
- ### Three behaviour fixes
23
-
24
- - **Retry storms.** The rate window counts successful calls only, by design — a run of timeouts must not lock the user out when the model recovers. That left deterministic failures (wrong key, mistyped provider) bounded by nothing but the concurrency cap. Three consecutive failures now trip a 30-second cool-down answering `429 {code: 'cooldown', retryAfterSeconds, failures}` before a body is read or the model is called; a success clears the streak.
25
- - **`413` killed the socket.** The over-length answer used `res.socket.destroy()`, which also tore down anything else riding the same keep-alive connection. It now answers `connection: close` and lets Node discard the unread body.
26
- - **A rebuilt webserver left the plugin routeless.** Registration was guarded by a bare "already mounted on this context" flag, so a host that replaced its `webServer` service kept the button on screen while every click 404'd. The guard now compares service identity and re-mounts.
27
-
28
- ### Migration
29
-
30
- Nothing to do. The package is a drop-in replacement for `0.2.7`; the declared range is unchanged at `>=0.1.1-rc.2 <0.3.0`, and both older settings APIs are still probed, so a `0.1.x` host keeps working.
31
-
32
- ### Verification
33
-
34
- - `npm run typecheck` and `npm run build` clean against `@deepseek-ai/dsh-*@0.2.1-rc.2`; a clean rebuild of `lib/` is byte-identical.
35
- - **231 tests across 22 files** pass, including two new files (`tests/settings-source.test.ts`, `tests/client-settings-source.test.ts`) that pin the probe order, the rebind-on-settle path, and the "never dispose the provider's form" contract.
36
- - Real-host smoke on `dsh web` at `0.2.1-rc.2`: no `pending` / `did not activate`, the enhance route answered with a real model result (`deepseek-official` / `deepseek-flash`), and the settings schema appeared in the config page with Chinese descriptions.
@@ -1,50 +0,0 @@
1
- # 0.3.1 — 设置页真的会出现,失败流真的会关
2
-
3
- 0.3.0 把插件搬到了 `0.2.1-rc.2` 的契约上,但有两条最关键的路径**在真实宿主上从未生效**:设置页不存在,失败流不结束。两条都属于"看着在、其实不在",所以这次每条都配了一个**在旧代码上必然失败**的测试。
4
-
5
- ## 两个致命项
6
-
7
- | 面 | 0.2.x 的真实行为 | 用户看到什么 | 修法 |
8
- |---|---|---|---|
9
- | **设置** | `SettingsForms.describe()` 用内部 `volatileForm()` 过滤每个条目:**没有任何字段带 `meta.volatile` 时整条被丢弃** | 设置页里没有本插件;即使写入也会抛 `Plugin entry "prompt-enhance" has no volatile fields` | 16 个字段全部加 `.volatile()`;schema 库从裸 `schemastery` 换成 `@deepseek-ai/schemastery`(只有它带 `.volatile()` 与配套的位置校验) |
10
- | **流式失败** | 错误分支写了 `event: error` 帧,**没有 `res.end()`** | 浏览器因为收到帧而正常显示错误;`curl` / `response.text()` / 代理**永久挂起** | 成功与失败共用 `endResponse()` 收尾 |
11
-
12
- 复现与验证(不是推断):
13
-
14
- ```
15
- 宿主 volatileForm(Config) → 修复前: undefined(条目被跳过)
16
- → 修复后: present, 16 个字段
17
- 真宿主 dsh web @0.2.1-rc.2 → 插件激活、POST /prompt-enhance/enhance
18
- 返回 deepseek-official / deepseek-flash 的真实结果
19
- ```
20
-
21
- 失败流那条的证伪:把 `endResponse(res)` 注释掉,新用例在 2.07 秒被 abort 判失败——正是"永久挂起"。
22
-
23
- ## 生命周期与失败路径
24
-
25
- - **路由不随卸载回收**:`webServer.register` 只返回"从表里删项"的函数,disposer 却存在模块级 map 里、无人调用 ⇒ 卸载后路由仍用旧配置与旧限流窗答卷,重载撞 `duplicate prefix route`。改为 `ctx.inject(['webServer'])` + `ctx.effect`,服务按身份跟随、随光纤回收。
26
- - **`/enhance` 在无 webServer 的组合里整体消失**:`inject` 里硬写了 `['llm','webServer']`。`webServer` 移出硬依赖、改按需注入后,斜杠命令在纯 CLI 组合里依然可用。
27
- - **`/enhance` 遇配置异常直接抛**:`readConfig()` 在 `try` 之外,provider/model 半填时抛出的是未捕获异常,而不是路由侧那句中英双语提示。已移入 `try`。
28
- - **流式端点把"服务端拒绝"当成"宿主不支持流式"**:`response.ok === false` 时丢弃整个错误信封并**原样重发一次**——429 反而打两次、结构化原因(`limit`/`retryAfterSeconds`)全丢。现在先按 `ok` 分流:拒绝即报拒绝,只有"200 但不是流"才回退一次性。
29
- - **面板打开时快捷键打到别的会话**:结果面板 `createPortal` 挂在 `body` 上并接管焦点,上溯循环走到 `body` 时 `body.contains(每个 composer)` 恒真 ⇒ 返回注册表里的第一个会话。现在遇 `body`/`documentElement` 即停,退回"最近挂载的会话"。证伪:去掉这行判断,用例立刻变成"点了另一个会话"。
30
- - **设置镜像可能永久停在默认值**:`boundId` 在 `forms.get()` **之前**落值,取不到时后续每次 describe tick 都因 `entryId === boundId` 直接返回 ⇒ 永不重试。改为取到 form 之后才认领 id。
31
-
32
- ## 可诊断性与小项
33
-
34
- - 客户端三处空 `catch` 改为 `console.warn`(模块注释早就承诺 "caught and logged",代码里一行都没有)——"按钮不出现"这类报告唯一的线索来源。
35
- - 对话框 Tab 焦点陷阱的**反向**漏:面板根节点是刻意 `tabIndex={-1}`,既不是 first 也不是 last,`Shift+Tab` 能直接逃出。已把根节点视为"first 之前"。
36
- - 关闭插件后不再抢键:此前仍 `preventDefault` 后跑一个空动作,等于静默吃掉用户绑给同一组合的宿主快捷键。
37
- - `scripts/build.mjs` 列在 `tsconfig.include` 里但 `allowJs` 没开 ⇒ 从未被检查。现在开 `checkJs`,并给 esbuild 选项补 JSDoc(否则 `packages: 'external'` 会退化成 `string`)。
38
- - README 不再称 `dsh.engines` 为"声明性、不强制":宿主启动预检会直接 `disabled = true`,放行必须显式 `--accept-risk`。
39
-
40
- ## 验证
41
-
42
- - `npm run typecheck` 干净(`build.mjs` 现在确实在检查范围内,`tsc --listFilesOnly` 命中 1)
43
- - `npm test` **24 文件 / 242 用例全绿**(0.3.0 为 22 / 231,新增 `client-enhance-client`、`client-shortcut-target` 及配置/路由/镜像若干条)
44
- - 真实宿主冒烟:临时 profile 装本地包 → 插件激活、无 `pending` / `did not activate` → 增强路由返回真实模型结果 → 临时 profile 与临时目录已删除
45
-
46
- ## 未做(有意)
47
-
48
- - **快捷键没有迁移到宿主的 `shortcuts` 服务**(`dsh-client-shortcuts` 支持用户改键与冲突消解)。迁移需要先确认该服务的注册契约与冲突语义,属于独立改动,不在这次"失败路径闭包"的范围内。
49
- - **`Origin` 只比对 hostname、不比对端口**:任意 `localhost:任意端口` 的页面都被信任。收紧需要把服务实际监听的端口传进栅栏,同样属独立改动。
50
- - 跨代探测的兼容死分支(`installSection`、旧 settings 模块、`webUiSettings`、`settingsScope`)保留:它们在旧版本线上仍是唯一的路径。
@@ -1,41 +0,0 @@
1
- # 0.3.2 — Origin 栅栏补上端口,顺带修掉 IPv6 误拒
2
-
3
- 0.3.1 的"未做"清单里有四项,这是其中唯一涉及信任边界的一项:**回环栅栏比对 `Origin` 的 hostname,却从不比对端口**。因此 `localhost` 上另一个本地服务——`localhost:4000` 的开发工具、某个 playground、文档预览——在栅栏眼里与插件自己的页面**是同一个来源**,会被放行。
4
-
5
- 这不等于当时就能被利用,这点必须说清楚:浏览器页面还得先过 CORS 预检(路由对 `OPTIONS` 回 `405` 且不带 `Access-Control-Allow-Origin`),再过路由的 `application/json` 内容类型门(否则 `415`)。这两道墙事实上是立的,但**都不属于本代码拥有的鉴权手段**——一道栅栏的判定之所以安全,只因为身后恰好还站着两个无关检查,那它就不算栅栏。现在端口被钉死为本次请求被投递到的端口(取自 `Host` 头),任一侧省略端口时按协议默认补齐比较(`http://localhost` ≡ `localhost:80`)。
6
-
7
- ## 改了什么
8
-
9
- | 面 | 0.3.1 | 0.3.2 |
10
- |---|---|---|
11
- | `Origin` 端口 | 只看 hostname ∈ `{localhost, 127.0.0.1, ::1}` | 还要求端口 **等于本次请求被投递到的端口**(取自 `Host` 头) |
12
- | 省略端口的比较 | 不涉及 | 用协议默认端口补齐:`http://localhost` ≡ `localhost:80`、`https://localhost` ≡ `localhost:443`;`localhost:80` 配 `https://localhost` 仍然拒绝 |
13
- | `Host` 无端口 | 只比 hostname | **不变**:默认端口服务或 HTTP/1.0 无 `Host` 时没有可钉的端口,退回原行为 |
14
- | IPv6 `Origin` | `URL.hostname` 返回 `[::1]`(带括号),与允许表里的 `::1` 永不相等 ⇒ **合法页面被误拒** | 比较前剥括号 |
15
-
16
- `Host` 无端口那条不是新开口子,而是 0.3.1 的同一条信任边界,只是这次把它写进了函数注释,而不是留给读者从代码里推断。
17
-
18
- ## 证伪
19
-
20
- 四条新用例(3 条单元 + 1 条真实监听服务器的 403)里**有 3 条在 0.3.1 代码上失败**——包括那条 IPv6 误拒,说明它不是纸面推演;第 4 条(`Host` 无端口时退回 hostname-only)是**双向守卫**,固定的是刻意保留的旧行为,因此旧代码、新代码都通过。
21
-
22
- ```
23
- git stash push -- src/loopback.ts
24
- × pins the Origin port to the port the request was addressed to
25
- × treats bracketed and bare IPv6 Origins alike
26
- × refuses an Origin from a different local port with 403
27
- git stash pop
28
- ```
29
-
30
- ## 验证
31
-
32
- - `npm run typecheck` 干净
33
- - `npm test` **24 文件 / 246 用例全绿**(0.3.1 为 242)
34
- - `lib/` 重新构建,随代码一起提交(工作流会校验 `lib/` 与源码是否漂移)
35
- - 发布走 Trusted Publisher(OIDC),此版本同时用于验证该配置
36
-
37
- ## 仍未做(有意)
38
-
39
- - **快捷键没有迁移到宿主的 `shortcuts` 服务**:需要先确认 `dsh-client-shortcuts` 的注册契约与冲突消解语义,属独立改动。
40
- - **撤销后 `setDraft(string)` 会清掉引用 chip**:宿主 `setDraft` 只接受纯文本,保留 chip 需要在文本之外重建引用结构,目前按"以文本为准"处理。
41
- - 跨代探测的兼容死分支(`installSection`、旧 settings 模块、`webUiSettings`、`settingsScope`)保留:在旧版本线上仍是唯一路径。
@@ -1,53 +0,0 @@
1
- # 0.3.3 — 对齐 dsh 0.2.1-rc.5:代码一行没改
2
-
3
- 上游 `latest` 从 `0.2.1-rc.2` 走到了 `0.2.1-rc.5`(中间还有 rc.3、rc.4)。这次适配的结论是**不需要改代码**——但"不需要改"必须是被证明的,不能是"我看了觉得没问题"。
4
-
5
- ## 先证明,再下结论
6
-
7
- 把插件编译所依赖的每个 `@deepseek-ai/dsh-*` 在 rc.2 与 rc.5 各装一套,逐文件比对:
8
-
9
- | 项 | 结果 |
10
- |---|---|
11
- | 版本号变化的包 | **26 个** |
12
- | `lib/` 逐字节相同的包 | **25 个** |
13
- | 唯一有实质变化的包 | `dsh-client-ui-conversation` |
14
-
15
- 那个包新增的东西,逐条对照本插件的调用面:
16
-
17
- | 上游新增 | 本插件是否使用 |
18
- |---|---|
19
- | `conversation.session.header.views.actions` slot + `view-pins` + `setPinned`(View 标签页的 More 菜单) | 否——只注册 `conversation.input.right` 与 `conversation.input.dock` |
20
- | `DraftInitializationOptions.whenDraftExists: 'replace' \| 'append' \| 'keep'` | 否——那是 `requestDraftInitialization`(会话跳转时播种草稿)的选项 |
21
- | 提交事件上的 `newSession` / `agentPreset` | 否——不读提交事件 |
22
-
23
- 关键一条:`setDraft(text: string)` **签名未变**。所以 0.3.1 里"撤销恢复草稿时会丢引用 chip"的结论继续成立,不是因为没修,而是因为宿主 setter 至今只吃纯文本。
24
-
25
- ## 真机验证(不是从 diff 推断)
26
-
27
- 本机全局 CLI 恰好就是 `0.2.1-rc.5`,用出厂 `web` 模板建了临时 profile:
28
-
29
- | 检查 | 结果 |
30
- |---|---|
31
- | 进入 loader 树 | `- id: prompt-enhance` / `name: dsh-prompt-enhance` |
32
- | `POST /prompt-enhance/enhance` | **200**,真实模型 `deepseek-official` / `deepseek-flash`,3.6 秒 |
33
- | `POST /prompt-enhance/enhance-stream` | 连续 `event: delta` 帧 |
34
- | 宿主 schema 导出 | 条目投影为 `config100`,**16/16 字段带 `x-cordis.volatile`** |
35
- | `dump-config-schema` 的 4 条 `unrecognized Loader tree carrier` | 装与不装本插件**都是 4 条** ⇒ 宿主自身树生成的问题,不是 `cordis.patch.yml` |
36
-
37
- 第四条是设置页存在的充要条件:`SettingsForms.describe()` 只会给"至少有一个 volatile 字段"的条目生成页面,而宿主亲口把它导成了 16 个。
38
-
39
- ## rc.5 的一处变化,值得写下来
40
-
41
- rc.5 的 Web UI 启动后打印的地址带 `?token=`,CLI 也新增了 `--trusted-host`(给 `/api` 的浏览器信任栅栏用)。但**经共享 `webServer` 注册的路由不在那道栅栏里**:无 token 的回环请求照旧拿到 200。所以本路由的准入控制仍然只有三道——回环套接字、`Host` 白名单、以及 0.3.2 加上的 `Origin` 端口钉死。
42
-
43
- ## 验证与清理
44
-
45
- - `npm run typecheck` 干净
46
- - `npm test` **24 文件 / 246 用例全绿**(与 0.3.2 相同——没有生产代码改动)
47
- - `lib/` 重新构建后**逐字节相同**,所以 0.3.2 与 0.3.3 的构建产物一致,差异只在元数据与文档
48
- - 临时 profile 用完即删,`~/.dsh/profiles` 只剩 `web`
49
-
50
- ## 未做(有意)
51
-
52
- - **不把 `dsh.engines` 上界收窄到 `rc.5`**:`>=0.1.1-rc.2 <0.3.0` 这个区间是"实测过的范围",rc.2 仍然实测过且能跑,收窄只会把还停在旧版本的用户挡在门外。
53
- - **不改用 rc.5 的新能力**(View 菜单、`whenDraftExists`):与插件职责无关,加了只是给自己添维护面。
@@ -1,43 +0,0 @@
1
- # 0.3.4 — 有推理预算了,长草稿也不再撞 2048
2
-
3
- 两个改动都来自**外部贡献者的 PR**,加上 0.3.3 那次 rc.5 适配(它没发布过,因为没有生产代码改动,所以没东西可发)。合入时保留了原作者提交。
4
-
5
- ## 改了什么
6
-
7
- | 面 | 之前 | 现在 |
8
- |---|---|---|
9
- | `reasoningEffort`(新增字段) | 不传,完全跟随模型默认档 | `off`(默认)/ `low` / `high` / `inherit`;`inherit` 就是旧行为 |
10
- | `maxOutputTokens` 默认 | `2048` | `8192` |
11
-
12
- **为什么要动推理档**:改写是短而明确的任务,模型默认档几乎是纯浪费。原作者在同一份草稿上测得 `off` 252 输出 token、`high` 2897,同样的结果差 11 倍——而增强是按快捷键就会触发的高频操作。
13
-
14
- **为什么要动输出上限**:长草稿是插件的常态输入,撞上 2048 会以 `max-tokens` 终止,而插件从不把半截结果填回输入框,于是用户第一次用长草稿就会失败一次,还得自己去设置里找这个字段。
15
-
16
- ## 真机实测(0.2.1-rc.5,同一份草稿、同一路由 `deepseek-official/deepseek-flash`)
17
-
18
- | 配置 | 输出 token | 耗时 |
19
- |---|---|---|
20
- | `reasoningEffort: off`(新默认) | **176** | 1.6 s |
21
- | `reasoningEffort: inherit`(旧行为) | **322** | 3.6 s |
22
-
23
- 结论:这个字段**确实到达了适配器**,不是写进配置就没了。顺带确认设置面:`--dump-config-schema` 把本条目投影成 `config100`,**17/17 字段带 `x-cordis.volatile`**(16 个旧字段 + 新增的 `reasoningEffort`),设置页不会因为多了字段而少一个。
24
-
25
- ## 扣下了 #10 的第二半
26
-
27
- PR #10 里还有一半:让开头带**命令 chip**(如 `/计划`)的草稿也能增强。没有合。
28
-
29
- 它填回结果时调的是 `setDraft({ text, references, command })`——宿主**实现**了这个对象形式(`resolveDraftInput` 会解析 references 与 command 并把 chip 重建出来),但 `InputActions.setDraft` 的**公开类型只有 `text: string`**,所以它能编译,是靠一个 `as never` 强制转换。
30
-
31
- 把"契约未公开、且落在会覆盖用户草稿的那条路径上"的写入合进来,风险不值得:一旦宿主改了 `resolveDraftInput` 的行为,症状是用户的输入框被写成 `[object Object]` 或直接丢掉命令。PR 保持打开,评论里写了这条理由与替代方案。
32
-
33
- ## 验证
34
-
35
- - `npm run typecheck` 干净
36
- - `npm test` **24 文件 / 256 用例全绿**(0.3.2 是 246:`maxOutputTokens` 1 条 + 推理档 9 条)
37
- - `lib/` 重新构建并提交
38
- - 真实 rc.5 宿主上:条目进入 loader 树、`/enhance` 返回 200、schema 17/17 volatile;临时 profile 用完即删
39
-
40
- ## 未做(有意)
41
-
42
- - 命令 chip 草稿的增强(同上,等 PR 作者在真机上验证或改成公开契约)。
43
- - 撤销仍会丢引用 chip:`setDraft` 到 rc.5 为止的公开签名仍是纯文本。