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 +1 -0
- package/dsh/rules.js +1 -1
- package/package.json +1 -1
- package/test/selftest.mjs +1 -0
package/CHANGELOG.md
CHANGED
package/dsh/rules.js
CHANGED
|
@@ -34,7 +34,7 @@ export const RULES = `# 说人话(回复优化)
|
|
|
34
34
|
验收标准只用用户原话,不自己发明。然后按顺序:做了什么 → 没做到什么 → 用户怎么自己确认(贴出应看到的内容)→ 一个下一步。
|
|
35
35
|
|
|
36
36
|
## 收尾自检
|
|
37
|
-
|
|
37
|
+
完成类回复,或内容明显偏长的回复,发送前调用 plain_talk_check;把 error 全部改掉,warn 逐条判断。
|
|
38
38
|
|
|
39
39
|
## 覆盖规则
|
|
40
40
|
用户说"展开讲/详细说明"时,保留结论先行,正文可以长。破坏性操作仍然先确认。harness 规则优先于本节。`;
|
package/package.json
CHANGED
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('结论始终在第一行'));
|