dsh-wdx-relief 0.2.0 → 0.3.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
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.1 — 2026-11-09
4
+
5
+ - 保留 Codex 式输入框灰字预测:建议仍注册在 `conversation.input.overlay`,不改成输入框外的一行。
6
+ - 样式改为随 React 组件挂载/卸载,移除模块级 `document.head` 副作用;移除内联颜色 fallback。
7
+ - 配置页改用官方 `SettingsFormModel` + `SettingsForm`:编辑先暂存,点「保存」才写入;离开页面丢弃草稿。
8
+ - 修正 `dsh.client.inject`:补上 `ui-plugin-manager`,保留 `ui-settings`(`configForms` 的提供方);移除 `immediately`。
9
+ - 打包元数据:`@deepseek-ai/schemastery` 改为运行时依赖;Cordis 保持 peer/dev 同范围;`engines.dsh` 增加 `<0.3.0` 上界;图标改用 SVG。
10
+ - 修正 RELEASING.md 中被占位符替换的版本示例。
11
+
12
+ ## 0.3.0 — 2026-11-09
13
+
14
+ - 精简回复设置:长度 3 档(短/标准/详细);风格 5 选 1(默认/专业/亲和/直接/跟随我的风格);保留「便于行动」开关和自定义指令。
15
+ - 删除 5 个细节轴(亲切、热情、表情、可视化、标题列表)和独立的「参考我的写作风格」开关,避免预设与轴、开关与轴互相冲突。
16
+ - 旧配置兼容:`writingStyle: true` 映射为「跟随我的风格」,旧 `baseStyle` 的 professional/friendly/blunt 映射到同名风格。
17
+
3
18
  ## 0.2.0 — 2026-11-09
4
19
 
5
20
  - 新增「便于行动」输出模式(默认开启):先给结果/下一步、按内容比例组织、术语先用白话说明、保留风险与失败条件、不复述、不把已授权工作交回用户。规则改编自 `agent-configs-skills/skills/i-have-adhd`(MIT)。
package/README.md CHANGED
@@ -8,9 +8,14 @@
8
8
  ## 功能
9
9
 
10
10
  - **输入框下一句预测**:对话结束后用灰字猜你接下来要发的话,<kbd>Tab</kbd> 填入;打字隐藏,<kbd>Esc</kbd> 忽略。
11
- - **回复风格**:默认简短且便于行动;可调输出详细程度、便于行动、参考当前对话的写作风格、基础语气/格式,以及最多 2000 字的自定义指令。
11
+ - **回复风格**:长度 **短 / 标准 / 详细**;风格 **默认 / 专业 / 亲和 / 直接 / 跟随我的风格**;可加最多 2000 字的自定义指令。
12
12
  - **便于行动**(默认开启):先给结果和下一步;能一句说清的不写一段,术语先用白话说明;保留风险、失败条件和已授权该做的工作。
13
13
 
14
+ ## 运行要求
15
+
16
+ - DSH Web profile;插件依赖 `connection` 与 `sessions` 服务。
17
+ - 已配置默认模型。预测会把最近几轮对话作为 prompt 发给当前默认模型;结果只用于输入框建议,不写入会话日志,也不触发 agent loop。
18
+
14
19
  ## 安装
15
20
 
16
21
  在 DSH 侧边栏 **插件 → 添加插件** 输入:
@@ -25,7 +30,13 @@ dsh-wdx-relief
25
30
  plugin_manager install_bundle target = "dsh-wdx-relief"
26
31
  ```
27
32
 
28
- 安装后启用并刷新页面。
33
+ 或命令行:
34
+
35
+ ```bash
36
+ dsh plugin --profile <profile> add dsh-wdx-relief
37
+ ```
38
+
39
+ 安装后启用;客户端模块会在下次页面加载时挂载。
29
40
 
30
41
  本地开发时用 `link:` 安装当前目录的方式见 [docs/guide.md](docs/guide.md)。
31
42
 
package/RELEASING.md CHANGED
@@ -21,6 +21,20 @@
21
21
  返回 404 才表示可用;如果被占用,把 `package.json` 的 `name` 改成
22
22
  `@wdxtub/dsh-wdx-relief`,并同步改本文命令。
23
23
 
24
+ ## 浏览器 2FA 发布(固定方式)
25
+
26
+ npm 账号开启了 `auth-and-writes` 2FA,非交互运行 `npm publish` 会直接报 `EOTP`。
27
+ 本仓库用 `expect` 提供 PTY,让 npm 走浏览器认证:
28
+
29
+ ```bash
30
+ expect scripts/publish-npm.exp > /tmp/npm-publish-pty.log 2>&1 &
31
+ tail -f /tmp/npm-publish-pty.log
32
+ ```
33
+
34
+ 看到 `AUTH_BROWSER_OPENED` 后,在浏览器的 npm 认证页完成 2FA/Passkey;npm 会自动
35
+ 取到 OTP 并继续发布。不要重复启动另一个发布。没有浏览器窗口时,从日志里取出
36
+ `https://www.npmjs.com/auth/cli/...` 手动打开。
37
+
24
38
  ## 首次发布
25
39
 
26
40
  先提交干净(`npm version` 需要干净的工作区):
@@ -35,7 +49,7 @@ npm pack --dry-run
35
49
  npm pack
36
50
  # 插件页 → 添加插件 → 输入 tarball 绝对路径 → 安装 → 立即启用
37
51
 
38
- npm publish --access public --registry=https://registry.npmjs.org/
52
+ expect scripts/publish-npm.exp
39
53
  git tag -a v0.1.0 -m "v0.1.0"
40
54
  git push origin main --tags
41
55
  ```
@@ -57,11 +71,12 @@ git status
57
71
  # 更新 CHANGELOG.md 并提交
58
72
  npm test
59
73
  npm version minor -m "chore: release v%s"
60
- npm publish --access public --registry=https://registry.npmjs.org/
74
+ expect scripts/publish-npm.exp
61
75
  git push --follow-tags
62
76
  ```
63
77
 
64
- 预发布:
78
+ 预发布:把 `scripts/publish-npm.exp` 里的 `npm publish` 参数改为 `--tag next`,
79
+ 或直接运行:
65
80
 
66
81
  ```bash
67
82
  npm version 0.2.0-rc.1