dsh-plain-talk 0.1.8 → 0.1.10

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,3 +1,12 @@
1
+ # 0.1.10
2
+
3
+ - 字数统计按 README 中实际展示的文本重算;token 列注明为整轮合计(含思考与工具),避免与字数误读为同向。
4
+
5
+ # 0.1.9
6
+
7
+ - 默认改为关闭:点一下按钮才开启,避免把“已开启”误点成关闭。
8
+ - 规则补充:工具调用之间的进度说明也用用户语言、一句话。
9
+
1
10
  # 0.1.8
2
11
 
3
12
  - 同步远端 README 修订(百分比与表格格式)。
package/README.en.md CHANGED
@@ -43,12 +43,14 @@ Environment: DeepSeek Harness `desktop` profile, headless run, model `command co
43
43
 
44
44
  |Case|Characters (off / on)|Output tokens (off / on)|
45
45
  |-|-|-|
46
- |A1 Create and verify files|144 → 189, 31.25%↑|2,333 → 1,344, 42.39%↓|
47
- |A2 Write and read back|124 → 238, 91.94%↑|220 → 398, 80.91%↑|
48
- |B1 Why models forget|410 → 350, 14.63%↓|732 → 326, 55.46%↓|
46
+ |A1 Create and verify files|139 → 184, 32.37%↑|2,333 → 1,344, 42.39%↓|
47
+ |A2 Write and read back|80 → 68, 15.00%↓|220 → 398, 80.91%↑|
48
+ |B1 Why models forget|408 → 348, 14.71%↓|732 → 326, 55.46%↓|
49
49
  |B2 merge vs rebase|184 → 194, 5.43%↑|150 → 366, 144.00%↑|
50
- |C1 Experiment draft|558 → 496, 11.11%↓|2,781 → 3,066, 10.25%↑|
51
- |C2 Release-check draft|672 → 331, 50.74%↓|1,636 → 2,092, 27.87%↑|
50
+ |C1 Experiment draft|518 → 453, 12.55%↓|2,781 → 3,066, 10.25%↑|
51
+ |C2 Release-check draft|645 → 324, 49.77%↓|1,636 → 2,092, 27.87%↑|
52
+
53
+ Token counts cover every model step in the turn (including reasoning and tool calls), so they do not always move with reply length; C2, for example, is 321 characters shorter yet spends more tokens on analysis and self-checking.
52
54
 
53
55
  About +589 input token per step.
54
56
 
@@ -70,9 +72,9 @@ Restart DSH after installing.
70
72
  ## Use
71
73
 
72
74
  1. Open any session; a smiley speech-bubble icon appears to the right of the permission selector in the composer.
73
- 2. On: the smiley has three sound waves on its right and an open smile; off: the smile version without waves. Click to toggle, affecting only the current session.
75
+ 2. Off by default (plain smile); one click turns it into the open smile with three sound waves, meaning this session is on. Affects only the current session.
74
76
  3. State is written to `$DSH_HOME/plain-talk.json` and survives a restart.
75
- 4. To make new sessions start off: set `PLAIN_TALK_DEFAULT=off` in the launch environment.
77
+ 4. To make new sessions start on: set `PLAIN_TALK_DEFAULT=on` in the launch environment.
76
78
 
77
79
  ## Vocabulary
78
80
 
@@ -113,7 +115,7 @@ Only `$DSH_HOME/plain-talk.json` and `$DSH_HOME/plain-talk-vocab.json` are writt
113
115
 
114
116
  ## Configuration
115
117
 
116
- Only the environment variable `PLAIN_TALK_DEFAULT` (`on` / `off`, default `on`).
118
+ Only the environment variable `PLAIN_TALK_DEFAULT` (`on` / `off`, default `off`).
117
119
 
118
120
  ## Notes
119
121
 
package/README.md CHANGED
@@ -43,12 +43,14 @@ DeepSeek Harness 的回复优化插件:输入框里一个「说人话」开关
43
43
 
44
44
  |场景|字数(关闭 / 开启)|输出 token(关闭 / 开启)|
45
45
  |-|-|-|
46
- |A1 建文件并验证|144 → 189, 31.25%↑|2,333 → 1,344, 42.39%↓|
47
- |A2 写入并读回|124 → 238, 91.94%↑|220 → 398, 80.91%↑|
48
- |B1 为什么模型会忘事|410 → 350, 14.63%↓|732 → 326, 55.46%↓|
46
+ |A1 建文件并验证|139 → 184, 32.37%↑|2,333 → 1,344, 42.39%↓|
47
+ |A2 写入并读回|80 → 68, 15.00%↓|220 → 398, 80.91%↑|
48
+ |B1 为什么模型会忘事|408 → 348, 14.71%↓|732 → 326, 55.46%↓|
49
49
  |B2 merge 与 rebase|184 → 194, 5.43%↑|150 → 366, 144.00%↑|
50
- |C1 实验草稿|558 → 496, 11.11%↓|2,781 → 3,066, 10.25%↑|
51
- |C2 上线检查草稿|672 → 331, 50.74%↓|1,636 → 2,092, 27.87%↑|
50
+ |C1 实验草稿|518 → 453, 12.55%↓|2,781 → 3,066, 10.25%↑|
51
+ |C2 上线检查草稿|645 → 324, 49.77%↓|1,636 → 2,092, 27.87%↑|
52
+
53
+ token 统计覆盖整轮所有模型步(含思考与工具调用),因此与最终回复字数不必然同向;例如 C2 最终回复少了 321 字,但开启后多花了分析与自检的 token。
52
54
 
53
55
  每步约 +589 input token。
54
56
 
@@ -70,9 +72,9 @@ dsh plugin --profile desktop add ./dsh-plain-talk
70
72
  ## 使用
71
73
 
72
74
  1. 打开任意会话,输入框权限选择器右侧会多一个笑脸气泡图标。
73
- 2. 开启时笑脸右侧带三道声波、张嘴笑;关闭时是不带声波的微笑版。点一下切换,只影响当前会话。
75
+ 2. 默认关闭(微笑版);点一下变成带三道声波的张嘴笑脸,表示当前会话已开启。只影响当前会话。
74
76
  3. 状态写在 `$DSH_HOME/plain-talk.json`,重启后保持。
75
- 4. 想让新会话默认关闭:启动环境里设 `PLAIN_TALK_DEFAULT=off`。
77
+ 4. 想让新会话默认开启:启动环境里设 `PLAIN_TALK_DEFAULT=on`。
76
78
 
77
79
  ## 词汇清单
78
80
 
@@ -113,14 +115,14 @@ dsh plugin --profile desktop add ./dsh-plain-talk
113
115
 
114
116
  ## 配置
115
117
 
116
- 只有环境变量 `PLAIN_TALK_DEFAULT`(`on` / `off`,默认 `on`)。
118
+ 只有环境变量 `PLAIN_TALK_DEFAULT`(`on` / `off`,默认 `off`)。
117
119
 
118
120
  ## 注意
119
121
 
120
122
  * 按钮位置依赖 `conversation.input.left`,宿主改版后可能移到其它左侧控件旁。
121
123
  * 规则是提示词约束,`plain_talk_check` 只提醒、不拦截发送。
122
124
  * 词表按用户共享,不按项目隔离。
123
- * 默认开启时每个请求多约 590 input token。
125
+ * 开启时每个请求多约 590 input token。
124
126
 
125
127
  ## 许可
126
128
 
package/dsh/index.js CHANGED
@@ -52,10 +52,9 @@ const ROUTE_STATE = '/plain-talk/state'
52
52
  const MAX_BODY = 8 * 1024
53
53
  const MAX_SESSIONS = 256
54
54
 
55
- /** New Sessions start with the mode on; a click records an explicit choice.
56
- * PLAIN_TALK_DEFAULT=off makes unseen Sessions start off (benchmarks and
57
- * opt-in setups); any click still records an explicit per-Session choice. */
58
- const DEFAULT_ON = String(process.env.PLAIN_TALK_DEFAULT ?? 'on').toLowerCase() !== 'off'
55
+ /** New Sessions start off; one click turns the mode on and records that choice.
56
+ * PLAIN_TALK_DEFAULT=on makes unseen Sessions start on. */
57
+ const DEFAULT_ON = String(process.env.PLAIN_TALK_DEFAULT ?? 'off').toLowerCase() === 'on'
59
58
 
60
59
  function dshHome() {
61
60
  return process.env.DSH_HOME && process.env.DSH_HOME.length > 0
package/dsh/rules.js CHANGED
@@ -16,6 +16,7 @@ export const RULES = `# 说人话(回复优化)
16
16
  - 能一句说清就一句;默认不超过 12 行、300 字。用户明确要细节时放开深度,但结论仍在第一行。
17
17
  - 不写"好的/我来看看/让我先…/希望这有帮助";不复述问题;不汇报你准备怎么做。
18
18
  - 不写过程日记("我先…然后…")。只写结果、判断和可验证的事实。
19
+ - 工具调用之间的进度说明同样适用:用用户的语言,一句话(≤2 行);不需要说明就直接调工具。
19
20
  - 列表最多 5 条;只给一个下一步。结尾不要问"还需要我做什么"。
20
21
 
21
22
  ## 自包含
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plain-talk",
3
- "version": "0.1.8",
3
+ "version": "0.1.10",
4
4
  "description": "Composer toggle that shapes replies: conclusion first, inline quotes, no cross-turn references",
5
5
  "type": "module",
6
6
  "license": "MIT",