dsh-workplan 2.0.3 → 2.1.0
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 +106 -0
- package/README.en.md +2 -2
- package/README.md +2 -2
- package/README.zh.md +1 -1
- package/docs/release-record-2.0.3-20261105.md +47 -0
- package/lib/comm-format.js +184 -0
- package/lib/host.js +1 -1
- package/lib/plan.js +525 -23
- package/lib/runtime.js +76 -2
- package/package.json +1 -1
- package/src/comm-format.ts +215 -0
- package/src/host.ts +1 -1
- package/src/plan.ts +499 -20
- package/src/runtime.ts +82 -2
package/lib/runtime.js
CHANGED
|
@@ -916,7 +916,13 @@ function settleFromOutput(record, subtask, output, guard, options) {
|
|
|
916
916
|
? { closure: 'done', blockedKind: null }
|
|
917
917
|
: {
|
|
918
918
|
closure: 'blocked',
|
|
919
|
-
|
|
919
|
+
/*
|
|
920
|
+
* [2.1.0] 沟通交流格式退回是独立的受阻类型:工作本身可能已完成,
|
|
921
|
+
* 只是结果格式不合规,须退回重交。看板与主 Agent 据此区分
|
|
922
|
+
* 「做错了」与「交错了」;退回通知(不合规条目清单)已在
|
|
923
|
+
* error 字段里,由 adjudicateResult 写入。
|
|
924
|
+
*/
|
|
925
|
+
blockedKind: verdict.blockedKind === 'comm-format' ? 'comm-format' : 'failed',
|
|
920
926
|
}),
|
|
921
927
|
}, guard);
|
|
922
928
|
if (verdict.status === 'blocked') {
|
|
@@ -987,6 +993,29 @@ async function executeSubtask(ctx, record, stage, subtask, options) {
|
|
|
987
993
|
? options.attemptOffset
|
|
988
994
|
: 1;
|
|
989
995
|
let lastFailure = options.priorFailure ?? null;
|
|
996
|
+
/*
|
|
997
|
+
* [2.1.0] 格式退回通知必须在下一次激活送达部门人员(用户 2026-11-06 的
|
|
998
|
+
* 强制要求:不符合要求立刻退回,通知其重新检查格式后重交)。
|
|
999
|
+
*
|
|
1000
|
+
* 结果被 `adjudicateResult` 判为 blocked/comm-format 后,退回通知(不合规
|
|
1001
|
+
* 条目清单)落在状态行 error 里;主 Agent 把该行复位为 in_progress 后
|
|
1002
|
+
* blockedKind 保留(只有 settle 的 assigned/done 写入才会清它)。这里据此
|
|
1003
|
+
* 把退回通知作为 COMM_FORMAT_REJECTED 的上次失败原因带回子提示词,部门
|
|
1004
|
+
* 人员重跑时能看到「退回原因 + 逐条修正要求」,而不是从零重做、把同一
|
|
1005
|
+
* 格式错误再交一次。
|
|
1006
|
+
*/
|
|
1007
|
+
if (!lastFailure) {
|
|
1008
|
+
const rejectedRow = Array.isArray(record.statuses)
|
|
1009
|
+
? record.statuses.find((item) => item?.subtaskId === subtask.id)
|
|
1010
|
+
: null;
|
|
1011
|
+
if (rejectedRow?.blockedKind === 'comm-format' && typeof rejectedRow?.error === 'string' && rejectedRow.error.trim() !== '') {
|
|
1012
|
+
lastFailure = {
|
|
1013
|
+
attempt: 1,
|
|
1014
|
+
code: 'COMM_FORMAT_REJECTED',
|
|
1015
|
+
message: rejectedRow.error,
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
990
1019
|
/*
|
|
991
1020
|
* [1.8.6] The interrupt has to outlive the thrown error.
|
|
992
1021
|
*
|
|
@@ -1068,7 +1097,11 @@ async function executeSubtask(ctx, record, stage, subtask, options) {
|
|
|
1068
1097
|
cwd: options.cwd,
|
|
1069
1098
|
conversationContext,
|
|
1070
1099
|
statuses: record.statuses,
|
|
1071
|
-
|
|
1100
|
+
/*
|
|
1101
|
+
* [2.1.0] 不再用 attempt>1 做门槛:被格式退回的行复位后第 1 次
|
|
1102
|
+
* 激活也必须带上退回通知,否则「退回」只是写了一行状态。
|
|
1103
|
+
*/
|
|
1104
|
+
previousFailure: lastFailure ?? null,
|
|
1072
1105
|
lessonsBrief,
|
|
1073
1106
|
}),
|
|
1074
1107
|
}],
|
|
@@ -5244,6 +5277,47 @@ export function createWorkplanRuntime(ctx, options = {}) {
|
|
|
5244
5277
|
* 是 serial 事件,抛错 ⇒ 该回合以 error 收尾 ⇒ runner 走 fail():
|
|
5245
5278
|
* 不打印正文、非零退出。交互式会话维持原样(只 steer,不抛错)。
|
|
5246
5279
|
*/
|
|
5280
|
+
/*
|
|
5281
|
+
* [2.1.0] U1=B:交互式会话放行,但必须留痕。
|
|
5282
|
+
*
|
|
5283
|
+
* 旧行为是 `return` 了事——用户看到回合正常结束,却没有任何地方写着
|
|
5284
|
+
* 「这个回合其实是没通过门禁被放出来的」。B 方案不动「不硬拦」这个
|
|
5285
|
+
* 决定,只把放行本身记成一件事:
|
|
5286
|
+
* 1. 记录收进 record.releasedIncomplete(durable,刷新后仍在);
|
|
5287
|
+
* 2. 往会话追加一条 notice,用户当场能看见;
|
|
5288
|
+
* 3. 日志留一行,便于事后对时间线。
|
|
5289
|
+
* 三处都写同一组数字,避免「面板说 8/8、通知说 5/8」这种二次矛盾。
|
|
5290
|
+
*/
|
|
5291
|
+
if (!failClosedActive) {
|
|
5292
|
+
const stuck = derivePlanSnapshot(record.statuses);
|
|
5293
|
+
const released = (stuck.statuses ?? [])
|
|
5294
|
+
.filter((item) => item.status !== 'done')
|
|
5295
|
+
.map((item) => String(item.subtaskId));
|
|
5296
|
+
record.releasedIncomplete = {
|
|
5297
|
+
turn,
|
|
5298
|
+
at: Date.now(),
|
|
5299
|
+
done: stuck.stats.done,
|
|
5300
|
+
total: stuck.stats.total,
|
|
5301
|
+
remaining: released,
|
|
5302
|
+
};
|
|
5303
|
+
ctx.logger?.warn?.(`dsh-workplan: 回合 ${turn} 连续 ${book.count} 次未通过交付就绪,按 B 方案放行但留痕:`
|
|
5304
|
+
+ `${stuck.stats.done}/${stuck.stats.total},未完成 ${released.join(', ') || '无'}`);
|
|
5305
|
+
try {
|
|
5306
|
+
session.append('user/message', makeUserMessage([
|
|
5307
|
+
`⚠️ 本轮未通过交付就绪检查,已按「放行但留痕」结束(计划 ${record.plan.planId})`,
|
|
5308
|
+
`进度 ${stuck.stats.done}/${stuck.stats.total};未完成:${released.join(', ') || '无'}`,
|
|
5309
|
+
'本回合的内容不是最终交付;产物若已在盘上,下一回合核验后仍可交付。',
|
|
5310
|
+
].join('\n'), {
|
|
5311
|
+
kind: 'workplan-release',
|
|
5312
|
+
form: 'notice',
|
|
5313
|
+
summary: `未就绪放行 ${stuck.stats.done}/${stuck.stats.total}`,
|
|
5314
|
+
}), { surfaceOp: 'append' });
|
|
5315
|
+
}
|
|
5316
|
+
catch (error) {
|
|
5317
|
+
ctx.logger?.warn?.(`dsh-workplan: 放行留痕写入失败:${error instanceof Error ? error.message : String(error)}`);
|
|
5318
|
+
}
|
|
5319
|
+
return;
|
|
5320
|
+
}
|
|
5247
5321
|
if (failClosedActive) {
|
|
5248
5322
|
const stuck = derivePlanSnapshot(record.statuses);
|
|
5249
5323
|
const remaining = (stuck.statuses ?? [])
|
package/package.json
CHANGED
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [2.1.0] 统一沟通交流格式规范与合规检查(用户 2026-11-06 的强制要求)。
|
|
3
|
+
*
|
|
4
|
+
* 机制闭环:
|
|
5
|
+
* 1. 主 Agent 派发子任务时,在提示词里附带本模块渲染的《沟通交流格式规范》
|
|
6
|
+
* (renderCommFormatSpec),作为双方认可的唯一结果格式契约;
|
|
7
|
+
* 2. 部门人员提交结果前,必须逐条对照规范自查(提示词中有强制自查指令);
|
|
8
|
+
* 3. 主 Agent 收到结果后,由 adjudicateResult 用 checkCommFormatCompliance
|
|
9
|
+
* 按同一份规范逐条核验;不合规即判定 blocked/comm-format,把
|
|
10
|
+
* renderCommFormatRejection 生成的退回通知随下一次激活发回,
|
|
11
|
+
* 通知部门人员重新检查格式后重交。
|
|
12
|
+
*
|
|
13
|
+
* 设计约束:
|
|
14
|
+
* - 本模块只做「格式/结构」核验,不做语义真伪判断(F9 为提示词级诚信约束,
|
|
15
|
+
* 由三阶段门禁与人工复核兜底,这里不自动判);
|
|
16
|
+
* - 规范是纯数据,可序列化进提示词,也可独立校验,版本号随内容变更递增;
|
|
17
|
+
* - 与既有门禁正交:解析失败、验收缺口、三阶段缺失仍由原门禁先拦,
|
|
18
|
+
* 本门禁只负责把「其它门禁都过了、但格式仍不合规」的 done 退回。
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
/** 格式规范版本,随规范内容变更递增。 */
|
|
22
|
+
export const COMM_FORMAT_VERSION = 1
|
|
23
|
+
|
|
24
|
+
/** 单条不合规项。 */
|
|
25
|
+
export interface CommFormatViolation {
|
|
26
|
+
/** 规范条目编号(F1-F9)。 */
|
|
27
|
+
ruleId: string
|
|
28
|
+
/** 不合规的具体描述(写清缺什么、怎么补)。 */
|
|
29
|
+
message: string
|
|
30
|
+
/** 条目分类(structure/phases/acceptance/artifacts/retrospective/blocked/integrity)。 */
|
|
31
|
+
category: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** 格式合规检查结果。 */
|
|
35
|
+
export interface CommFormatCheckResult {
|
|
36
|
+
/** 是否全部合规。 */
|
|
37
|
+
compliant: boolean
|
|
38
|
+
/** 不合规项列表(合规时为空)。 */
|
|
39
|
+
violations: CommFormatViolation[]
|
|
40
|
+
/** 核验所用的规范版本。 */
|
|
41
|
+
version: number
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* 统一沟通交流格式规范定义(F1-F9,冻结不可变)。
|
|
46
|
+
*/
|
|
47
|
+
export const COMM_FORMAT_SPEC = Object.freeze({
|
|
48
|
+
version: COMM_FORMAT_VERSION,
|
|
49
|
+
name: 'dsh-workplan 沟通交流格式规范',
|
|
50
|
+
requirements: Object.freeze([
|
|
51
|
+
Object.freeze({ id: 'F1', category: 'structure',
|
|
52
|
+
description: '结果必须包含结构化证据块:以 <!-- WORKPLAN_EVIDENCE:START --> 开头、<!-- WORKPLAN_EVIDENCE:END --> 结尾,且两块标记成对出现',
|
|
53
|
+
rationale: '没有标记块,主 Agent 无法定位与解析结果,交付门禁无从启动' }),
|
|
54
|
+
Object.freeze({ id: 'F2', category: 'structure',
|
|
55
|
+
description: '证据块必须是合法 JSON 对象,顶层必须含 status 字段,取值只能是 done / blocked / partial',
|
|
56
|
+
rationale: 'status 是交付门禁的入口条件,缺失或非法则无法判定完成与否' }),
|
|
57
|
+
Object.freeze({ id: 'F3', category: 'phases',
|
|
58
|
+
description: '必须包含三阶段证据:phases.planning(问题分析与可执行思路)、phases.execution(实际执行步骤)、phases.verification(逐项验证)',
|
|
59
|
+
rationale: '三阶段是质量闭环的基础,缺任一阶段等于跳过对应质控环节' }),
|
|
60
|
+
Object.freeze({ id: 'F4', category: 'acceptance',
|
|
61
|
+
description: '验收结果必须逐条回应计划的验收标准(A1、A2…),且每条 result=pass 必须附带具体证据(命令输出/文件路径/引用),禁止空证据 pass',
|
|
62
|
+
rationale: '空证据 pass 是自述而非验证,交付门禁只认可证据' }),
|
|
63
|
+
Object.freeze({ id: 'F5', category: 'acceptance',
|
|
64
|
+
description: '验收回应的条数不得少于计划定义的验收标准条数',
|
|
65
|
+
rationale: '少回应一条等于该条验收未做,交付门禁会判为未完成' }),
|
|
66
|
+
Object.freeze({ id: 'F6', category: 'artifacts',
|
|
67
|
+
description: 'artifacts 声明清单中每一项都必须是合法条目:kind 只能取 file / url / note,且 ref 非空;不允许空条目或占位条目',
|
|
68
|
+
rationale: '主 Agent 按 ref 核验交付物;非法条目让核验无从执行。是否必须交付文件由计划验收标准决定,不由本条决定' }),
|
|
69
|
+
Object.freeze({ id: 'F7', category: 'retrospective',
|
|
70
|
+
description: 'phases.verification.retrospective 复盘必须完整:problems、resolutions、prevention 均至少 1 条(detours 没有可写空数组)',
|
|
71
|
+
rationale: '复盘是自我学习闭环的入口,缺失则教训无法写入永久记忆' }),
|
|
72
|
+
Object.freeze({ id: 'F8', category: 'blocked',
|
|
73
|
+
description: '若 status 为 blocked,必须附非空 question 字段写清受阻原因(卡在哪一步、已尝试什么、需要谁决定什么)',
|
|
74
|
+
rationale: '受阻无原因等于主 Agent 不知道卡在哪里,无法给出指示或转派' }),
|
|
75
|
+
Object.freeze({ id: 'F9', category: 'integrity',
|
|
76
|
+
description: '不得编造、虚构或伪造任何证据、文件路径、命令输出或验收结果;无法确认的项目必须写 unverified',
|
|
77
|
+
rationale: '虚假证据一旦通过交付门禁,用户拿到的就是不可信的成品' }),
|
|
78
|
+
]),
|
|
79
|
+
})
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* 对子 Agent 的证据块执行沟通交流格式合规检查(F1-F8 自动核验;F9 为诚信约束不自动判)。
|
|
83
|
+
*
|
|
84
|
+
* @param parsed - 已解析的证据块 payload(parseEvidenceBlock 的 payload,可为 null)
|
|
85
|
+
* @param rawOutput - 子 Agent 原始输出全文
|
|
86
|
+
* @param expectedAcceptanceCount - 计划定义的验收标准条数
|
|
87
|
+
*/
|
|
88
|
+
export function checkCommFormatCompliance(
|
|
89
|
+
parsed: any,
|
|
90
|
+
rawOutput: string,
|
|
91
|
+
expectedAcceptanceCount: number,
|
|
92
|
+
): CommFormatCheckResult {
|
|
93
|
+
const violations: CommFormatViolation[] = []
|
|
94
|
+
const text = typeof rawOutput === 'string' ? rawOutput : ''
|
|
95
|
+
|
|
96
|
+
// F1: 证据块标记必须成对出现(rescueEvidence 捞到的豁免——主 Agent 已能解析)
|
|
97
|
+
if (!text.includes('WORKPLAN_EVIDENCE:START') || !text.includes('WORKPLAN_EVIDENCE:END')) {
|
|
98
|
+
if (!parsed) {
|
|
99
|
+
violations.push({ ruleId: 'F1', category: 'structure',
|
|
100
|
+
message: '缺少 WORKPLAN_EVIDENCE:START/END 标记块,主 Agent 无法定位与解析结果' })
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if (!parsed || typeof parsed !== 'object') {
|
|
105
|
+
if (violations.length === 0) {
|
|
106
|
+
violations.push({ ruleId: 'F2', category: 'structure', message: '证据块无法解析为 JSON 对象' })
|
|
107
|
+
}
|
|
108
|
+
return { compliant: false, violations, version: COMM_FORMAT_VERSION }
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// F2: status 必填且取值合法
|
|
112
|
+
if (!['done', 'blocked', 'partial'].includes(String(parsed.status ?? ''))) {
|
|
113
|
+
violations.push({ ruleId: 'F2', category: 'structure',
|
|
114
|
+
message: `status 字段缺失或取值非法("${String(parsed.status ?? '')}"),只能是 done / blocked / partial` })
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// F3: 三阶段证据齐全
|
|
118
|
+
const phases = parsed.phases
|
|
119
|
+
if (!phases || typeof phases !== 'object') {
|
|
120
|
+
violations.push({ ruleId: 'F3', category: 'phases',
|
|
121
|
+
message: '缺少 phases 对象:planning / execution / verification 三阶段证据全部缺失' })
|
|
122
|
+
} else {
|
|
123
|
+
const missing: string[] = []
|
|
124
|
+
if (!phases.planning || typeof phases.planning !== 'object') missing.push('planning(问题分析与思路)')
|
|
125
|
+
if (!phases.execution || typeof phases.execution !== 'object') missing.push('execution(实际执行步骤)')
|
|
126
|
+
if (!phases.verification || typeof phases.verification !== 'object') missing.push('verification(逐项验证与复盘)')
|
|
127
|
+
if (missing.length > 0) {
|
|
128
|
+
violations.push({ ruleId: 'F3', category: 'phases', message: `三阶段证据缺失:${missing.join('、')}` })
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// F4: pass 必须带证据
|
|
133
|
+
const acceptance = Array.isArray(parsed.acceptance) ? parsed.acceptance : []
|
|
134
|
+
const emptyPass: string[] = []
|
|
135
|
+
for (const item of acceptance) {
|
|
136
|
+
if (item && item.result === 'pass' && !String(item.evidence ?? '').trim()) {
|
|
137
|
+
emptyPass.push(String(item.criterion ?? '(未命名验收项)'))
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if (emptyPass.length > 0) {
|
|
141
|
+
violations.push({ ruleId: 'F4', category: 'acceptance',
|
|
142
|
+
message: `以下验收项 result=pass 但未附证据:${emptyPass.slice(0, 5).join('、')};pass 必须附命令输出/文件路径/引用` })
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// F5: 验收条数不得少于计划定义
|
|
146
|
+
if (expectedAcceptanceCount > 0 && acceptance.length < expectedAcceptanceCount) {
|
|
147
|
+
violations.push({ ruleId: 'F5', category: 'acceptance',
|
|
148
|
+
message: `验收回应仅 ${acceptance.length} 条,少于计划定义的 ${expectedAcceptanceCount} 条;须逐条回应 A1、A2…` })
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
// F6: 产物声明必须逐条合法(kind 枚举 + ref 非空);是否必须交付文件由计划验收决定,不在此拦
|
|
152
|
+
const artifacts = Array.isArray(parsed.artifacts) ? parsed.artifacts : []
|
|
153
|
+
const badArtifacts = artifacts.filter((item: any) =>
|
|
154
|
+
!item || typeof item !== 'object'
|
|
155
|
+
|| !['file', 'url', 'note'].includes(String(item.kind ?? ''))
|
|
156
|
+
|| String(item.ref ?? '').trim() === '')
|
|
157
|
+
if (badArtifacts.length > 0) {
|
|
158
|
+
violations.push({ ruleId: 'F6', category: 'artifacts',
|
|
159
|
+
message: `artifacts 有 ${badArtifacts.length} 条非法声明:每条必须 kind 取 file/url/note 且 ref 非空,不允许空条目` })
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// F7: 复盘完整(problems/resolutions/prevention 均至少 1 条)
|
|
163
|
+
const retro = phases?.verification?.retrospective
|
|
164
|
+
if (!retro || typeof retro !== 'object') {
|
|
165
|
+
violations.push({ ruleId: 'F7', category: 'retrospective',
|
|
166
|
+
message: '缺少 phases.verification.retrospective 复盘(problems / detours / resolutions / prevention)' })
|
|
167
|
+
} else {
|
|
168
|
+
const missingRetro: string[] = []
|
|
169
|
+
if (!Array.isArray(retro.problems) || retro.problems.length === 0) missingRetro.push( 'problems(遇到的问题,现象+根因)')
|
|
170
|
+
if (!Array.isArray(retro.resolutions) || retro.resolutions.length === 0) missingRetro.push( 'resolutions(最终如何解决)')
|
|
171
|
+
if (!Array.isArray(retro.prevention) || retro.prevention.length === 0) missingRetro.push( 'prevention(防再犯规则)')
|
|
172
|
+
if (missingRetro.length > 0) {
|
|
173
|
+
violations.push({ ruleId: 'F7', category: 'retrospective',
|
|
174
|
+
message: `复盘不完整,缺少:${missingRetro.join('、')},均至少 1 条` })
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// F8: blocked 必须附非空 question
|
|
179
|
+
if (parsed.status === 'blocked' && !String(parsed.question ?? '').trim()) {
|
|
180
|
+
violations.push({ ruleId: 'F8', category: 'blocked',
|
|
181
|
+
message: 'status 为 blocked 但 question 为空:须写清卡在哪一步、已尝试什么、需要谁做什么决定' })
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
return { compliant: violations.length === 0, violations, version: COMM_FORMAT_VERSION }
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* 把格式规范渲染为嵌入子 Agent 提示词的文本。
|
|
189
|
+
* 这是「派发工作时附带统一沟通交流格式要求」的具体实现。
|
|
190
|
+
*/
|
|
191
|
+
export function renderCommFormatSpec(): string {
|
|
192
|
+
const lines: string[] = [
|
|
193
|
+
'沟通交流格式规范(v' + String(COMM_FORMAT_VERSION) + ',主 Agent 与部门人员双方认可的结果格式契约):',
|
|
194
|
+
]
|
|
195
|
+
for (const req of COMM_FORMAT_SPEC.requirements) {
|
|
196
|
+
lines.push(`- 【${req.id}】${req.description}`)
|
|
197
|
+
}
|
|
198
|
+
lines.push('不合规的后果:主 Agent 收到结果后按本规范逐条核验;任一不合规,结果立刻退回,你将收到列明不合规条目的退回通知,须全部修正后重新提交完整结果。')
|
|
199
|
+
return lines.join('\n')
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* 把合规检查结果渲染为退回通知文本(随下一次激活发回部门人员)。
|
|
204
|
+
*/
|
|
205
|
+
export function renderCommFormatRejection(result: CommFormatCheckResult): string {
|
|
206
|
+
if (result.compliant) return ''
|
|
207
|
+
const lines: string[] = [
|
|
208
|
+
'结果退回:沟通交流格式不合规(规范 v' + String(result.version) + ')。',
|
|
209
|
+
'你的结果未通过以下条目,请逐条修正、重新自查全部 F1-F9 后再提交完整结果(不要只修一条就重交):',
|
|
210
|
+
]
|
|
211
|
+
for (const v of result.violations) {
|
|
212
|
+
lines.push(`- ${v.ruleId}:${v.message}`)
|
|
213
|
+
}
|
|
214
|
+
return lines.join('\n')
|
|
215
|
+
}
|
package/src/host.ts
CHANGED
|
@@ -1490,7 +1490,7 @@ export function apply(ctx: any, config: WorkplanConfig = {}) {
|
|
|
1490
1490
|
|
|
1491
1491
|
export const meta = {
|
|
1492
1492
|
name,
|
|
1493
|
-
version: '2.0
|
|
1493
|
+
version: '2.1.0',
|
|
1494
1494
|
promptOrder: PROMPT_ORDER,
|
|
1495
1495
|
routes: ['/dsh-workplan/plans', '/dsh-workplan/vendor/chart.umd.js'],
|
|
1496
1496
|
}
|