dsh-workplan 3.0.6 → 3.0.9
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 +22 -0
- package/README.en.md +2 -2
- package/README.md +16 -14
- package/README.zh.md +2 -2
- package/docs/release-notes-3.0.9.md +7 -0
- package/lib/comm-format.js +5 -5
- package/lib/{three-phase.js → five-step.js} +204 -132
- package/lib/host.js +120 -75
- package/lib/lessons.js +4 -4
- package/lib/llm-rules.js +22 -80
- package/lib/plan.js +155 -65
- package/lib/runtime.js +307 -133
- package/lib/v3-contract.js +3 -3
- package/package.json +2 -3
- package/src/comm-format.ts +5 -5
- package/src/{three-phase.ts → five-step.ts} +230 -167
- package/src/host.ts +120 -75
- package/src/lessons.ts +4 -4
- package/src/llm-rules.ts +27 -99
- package/src/plan.ts +152 -63
- package/src/runtime.ts +318 -133
- package/src/v3-contract.ts +3 -3
package/src/v3-contract.ts
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 单一事实源:两条会话固定文案、部门任务质量要求、极简任务硬门槛、专家精简
|
|
5
5
|
* JSON 汇报、部门负责人精简 JSON 汇总。渲染函数与校验函数同源,保证提示词里
|
|
6
|
-
* 写的规则与门禁实际执行的规则不可能分叉(与 2.x 的 comm-format / three-phase
|
|
7
|
-
* 同一哲学)。
|
|
6
|
+
* 写的规则与门禁实际执行的规则不可能分叉(与 2.x 的 comm-format / three-phase、
|
|
7
|
+
* 3.0.8 的 five-step 同一哲学)。
|
|
8
8
|
*
|
|
9
9
|
* 纯函数、零依赖(不 import plan.ts,避免循环依赖),可被 host/plan/runtime/
|
|
10
10
|
* llm-rules 与测试同口径消费。
|
|
@@ -408,7 +408,7 @@ export interface ReportCheck {
|
|
|
408
408
|
/**
|
|
409
409
|
* 校验专家精简 JSON 汇报(用户要求 7)。
|
|
410
410
|
*
|
|
411
|
-
* 只做结构/精简判定,不判语义真伪(诚信由 F9
|
|
411
|
+
* 只做结构/精简判定,不判语义真伪(诚信由 F9 与五步证据门禁兜底)。
|
|
412
412
|
*/
|
|
413
413
|
export function checkExpertReport(report: unknown): ReportCheck {
|
|
414
414
|
if (!report || typeof report !== 'object' || Array.isArray(report)) {
|