dsh-plain-talk 0.1.13 → 0.1.14

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,6 +1,7 @@
1
1
  ## 0.1.13
2
2
 
3
3
  - 取消字数硬上限:按用户确认改为「写到把事说清为止,别为短漏关键步骤,也别为长注水」。
4
+ - 自检触发条件从「超过 12 行」改为「内容明显偏长」,避免残留长度门槛。
4
5
  - 信息不足时先要材料、不猜;只有存在能自己跑的替代做法时才给命令。
5
6
  - 清单改为一条一件事,避免用分号把多件事挤进一行。
6
7
  - 结论仍要求在第一行。
package/dsh/rules.js CHANGED
@@ -34,7 +34,7 @@ export const RULES = `# 说人话(回复优化)
34
34
  验收标准只用用户原话,不自己发明。然后按顺序:做了什么 → 没做到什么 → 用户怎么自己确认(贴出应看到的内容)→ 一个下一步。
35
35
 
36
36
  ## 收尾自检
37
- 完成类回复或超过 12 行的回复,发送前调用 plain_talk_check;把 error 全部改掉,warn 逐条判断。
37
+ 完成类回复,或内容明显偏长的回复,发送前调用 plain_talk_check;把 error 全部改掉,warn 逐条判断。
38
38
 
39
39
  ## 覆盖规则
40
40
  用户说"展开讲/详细说明"时,保留结论先行,正文可以长。破坏性操作仍然先确认。harness 规则优先于本节。`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plain-talk",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Composer toggle that shapes replies: conclusion first, inline quotes, no cross-turn references",
5
5
  "scripts": {
6
6
  "test": "node test/selftest.mjs"
package/test/selftest.mjs CHANGED
@@ -25,6 +25,7 @@ check('body not empty', body.trim().length > 500, 'len=' + body.length);
25
25
  // 2. 篇幅:不设硬上限,但必须禁止"为短漏步骤"和"为长注水"
26
26
  check('no hard cap', !body.includes('默认不超过 12 行') && !body.includes('300 字'));
27
27
  check('no hard cap duplicated', body.split('12 行、300 字').length - 1 === 0);
28
+ check('no line-count threshold anywhere', !body.includes('12 行'));
28
29
  check('forbids dropping steps for brevity', body.includes('别为短漏关键步骤'));
29
30
  check('forbids padding', body.includes('别为长注水'));
30
31
  check('conclusion stays first line', body.includes('结论始终在第一行'));