dsh-workplan 2.1.3 → 2.2.6
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 +380 -1
- package/README.en.md +5 -2
- package/README.md +5 -2
- package/README.zh.md +5 -2
- package/client.js +143 -3
- package/docs/dsh-workplan_T4_runtime.patch +508 -0
- package/docs/release-records/_release_notes_2.1.2_20261106.md +44 -0
- package/docs/release-records/_t2_version_determination_20261106.md +39 -0
- package/docs/release-records/_t5_external_reverify_20261106.md +18 -0
- package/docs/release-records/release-dryrun-report-20261106.md +74 -0
- package/docs/release-records/release-notes-2.2.6-T3.md +128 -0
- package/docs/release-records/release-record-2.1.3-20261106.md +82 -0
- package/docs/release-records/release-steps-20261106.md +129 -0
- package/docs/release-records/version-freeze-20261109-T2.md +37 -0
- package/lib/client.js +143 -3
- package/lib/comm-format.js +17 -0
- package/lib/departments.js +19 -0
- package/lib/host.js +95 -17
- package/lib/notice-channel.js +290 -0
- package/lib/plan.js +541 -32
- package/lib/replan.js +4 -0
- package/lib/runtime.js +1481 -85
- package/lib/supersede.js +2 -2
- package/lib/understanding.js +8 -2
- package/lib/watchdog.js +52 -1
- package/package.json +3 -2
- package/scripts/repair-malformed-user-messages.mjs +312 -0
- package/src/client.ts +150 -2
- package/src/comm-format.ts +17 -0
- package/src/departments.ts +22 -0
- package/src/host.ts +90 -12
- package/src/notice-channel.ts +328 -0
- package/src/plan.ts +575 -24
- package/src/replan.ts +4 -0
- package/src/runtime.ts +1500 -86
- package/src/supersede.ts +2 -1
- package/src/understanding.ts +10 -2
- package/src/watchdog.ts +80 -1
package/src/replan.ts
CHANGED
|
@@ -193,6 +193,8 @@ const REPLACEMENT_FIELDS = [
|
|
|
193
193
|
'outputs',
|
|
194
194
|
'acceptance',
|
|
195
195
|
'risk',
|
|
196
|
+
// [2.2.0][T13b/推理等级] 替换行可显式改档位;未给时 mergeReplacement 继承旧行。
|
|
197
|
+
'reasoningEffort',
|
|
196
198
|
] as const
|
|
197
199
|
|
|
198
200
|
/** 用调用方给的替换内容覆盖旧子任务的同名字段;未给字段原样继承。 */
|
|
@@ -422,6 +424,8 @@ export function planReplan(plan: any, changes: any, options: any = {}): ReplanRe
|
|
|
422
424
|
? raw.acceptance.map((item: any) => truncate(String(item), 800))
|
|
423
425
|
: ['复述完成的工作并给出可核对证据'],
|
|
424
426
|
risk: truncate(String(raw.risk ?? '需求变更后新增,原计划未覆盖'), 1000),
|
|
427
|
+
// [2.2.0][T13b/推理等级] 只登记字段名:显式档位原样透传,缺失时留给 readSubtasks 回落 high。
|
|
428
|
+
...(typeof raw.reasoningEffort === 'string' ? { reasoningEffort: raw.reasoningEffort } : {}),
|
|
425
429
|
insertedBy: 'replan',
|
|
426
430
|
replannedReason: truncate(String(raw.reason ?? reason), MAX_REPLAN_REASON_CHARS),
|
|
427
431
|
}
|