dsh-reconcile 0.1.5 → 0.1.7

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/README.md CHANGED
@@ -71,11 +71,11 @@ DeepSeek Harness 插件:**先核事实、再决定问不问、收工对账**
71
71
 
72
72
  ## 安装
73
73
 
74
- **从 npm 装(已发布 0.1.3):**
74
+ **从 npm 装(已发布 0.1.6):**
75
75
 
76
76
  ```bash
77
77
  dsh plugin --profile web add dsh-reconcile
78
- dsh plugin --profile web add dsh-reconcile@0.1.3 # 钉版本
78
+ dsh plugin --profile web add dsh-reconcile@0.1.6 # 钉版本
79
79
  ```
80
80
 
81
81
  npm 包页:<https://www.npmjs.com/package/dsh-reconcile>
package/index.js CHANGED
@@ -450,8 +450,8 @@ export function apply(ctx, rawConfig = {}) {
450
450
  '## 交账(dsh-reconcile)',
451
451
  '1) 用户用了指代词(那个页面 / 上次那份数据 / 老样子 / 同上)时,**先调 probe_intent action=probe** 拿到带证据的候选,再 **action=ask** 带候选问;禁止凭印象猜目标,也不要先问「你指哪个」。',
452
452
  '2) 写操作(改/加/删/重构/迁移)且目标或验收标准说不清时,先用 reconcile action=open 把 TASK.md 建起来(目标 + 关键约束 + 3~7 条可判定真假的验收项,每条带证据规格 command/file/manual)。空清单不算开始。',
453
- '3) **收工前必须调 reconcile action=check**。判定只有「通过 / 未通过 / 未验证」三种,以插件跑出来的为准;你自己写的「已完成」不算数,也不要去改 TASK.evidence.json(会被覆盖)。',
454
- '4) 答复末尾必须独立写一行 `未达标:N 项`,N 取 action=check 的结果;N>0 时把未通过/未验证项逐条列出。',
453
+ '3) **只有当当前工作区存在 TASK.md(这次任务有验收清单)时,收工前才调 reconcile action=check**。判定只有「通过 / 未通过 / 未验证」三种,以插件跑出来的为准;你自己写的「已完成」不算数,也不要去改 TASK.evidence.json(会被覆盖)。',
454
+ '4) **不要自己写「未达标:N 项」这一行**。它由插件在答复之外的收尾行渲染(有清单的会话里你能看到),模型再写一遍只是重复。有未通过/未验证项时,直接在正文里说清是哪几项、为什么没过即可;也不要试图用别的话术冒充这个结论。',
455
455
  '5) 证据要可追溯:文件写 `路径:行号`,命令写命令本身 + 退出码。不要写「已验证」。',
456
456
  ].join('\n'),
457
457
  interpolate: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-reconcile",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "description": "交账 — fact-first clarification, heuristic ambiguity scoring, and an evidence-backed end-of-task reconciliation ledger",
6
6
  "license": "MIT",
@@ -984,6 +984,16 @@ x
984
984
  })
985
985
  }
986
986
 
987
+ /* --------------------- 11. 提示词条件式规则 --------------------- */
988
+ {
989
+ const source = readFileSync(new URL('../index.js', import.meta.url), 'utf8')
990
+ test('提示词:不要求模型写未达标行(由插件渲染,避免重复)', () => {
991
+ assert.match(source, /只有当当前工作区存在 TASK\.md/, '缺少「有清单才 check」的条件')
992
+ assert.match(source, /不要自己写「未达标/, '模型仍被要求自己写未达标行')
993
+ assert.match(source, /由插件在答复之外的收尾行渲染/, '没有说明这行由插件渲染')
994
+ })
995
+ }
996
+
987
997
  /* -------------------------------- 汇总 -------------------------------- */
988
998
  const total = passed + failed
989
999
  console.log(`\n自检:${passed}/${total} 通过${failed > 0 ? `,${failed} 失败` : ''}`)
@@ -993,4 +1003,4 @@ if (failed > 0) {
993
1003
  }
994
1004
  process.exit(1)
995
1005
  }
996
- console.log('全绿。覆盖:打分表 16 项 · TASK.md 解析/回写 14 项 · 证据判定 16 项 · 覆盖与防伪造 13 项 · 骨架与返工 4 项 · 跨站 8 项 · 候选排序 7 项 · 客户端打分器对拍 2 项 · 作用域护栏 1 项 · 任务维度提问 8 项')
1006
+ console.log('全绿。覆盖:打分表 16 项 · TASK.md 解析/回写 14 项 · 证据判定 16 项 · 覆盖与防伪造 13 项 · 骨架与返工 4 项 · 跨站 8 项 · 候选排序 7 项 · 客户端打分器对拍 2 项 · 作用域护栏 1 项 · 任务维度提问 8 项 · 提示词条件式 1 项')