dsh-workplan 2.2.7 → 2.2.8

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## 2.2.8 — 2026-11-10
2
+
3
+ - 修复 CI 红叉根因(2.2.6/2.2.7 提交 cancelled→exit 1):attempt 上限计时器 unref 导致裸事件循环进程排空、兜底链无法收束;计时器改 ref,finally 收束照旧 clearTimeout。
4
+
1
5
  ## 2.2.7 — 2026-11-09
2
6
 
3
7
  **本版修复:规划器/派发侧推理档位兼容性——qwen 类模型上自动分解开局即降级、部门专家派发期即中断的根因(用户 2026-11-09 报告);同时补齐执行中断的即时通知(用户 2026-11-09 报告的核心体验缺陷)。**
package/README.en.md CHANGED
@@ -80,7 +80,7 @@ The full contract — roles, data shapes, state machine, recovery, and the three
80
80
  ## Install
81
81
 
82
82
  ```bash
83
- dsh plugin --profile web add dsh-workplan@2.2.7
83
+ dsh plugin --profile web add dsh-workplan@2.2.8
84
84
  ```
85
85
 
86
86
  Restart the DSH Web process (or reload the page) so the bundle is picked up.
package/README.md CHANGED
@@ -69,7 +69,7 @@ grep -RInE "child_process|execSync|eval\(|writeFileSync" src || echo "0 命中
69
69
  ## 一键安装
70
70
 
71
71
  ```bash
72
- dsh plugin --profile web add dsh-workplan@2.2.7
72
+ dsh plugin --profile web add dsh-workplan@2.2.8
73
73
  ```
74
74
 
75
75
  装完**重启一次 DSH Web**(或重新载入当前页面)让插件生效。
package/lib/host.js CHANGED
@@ -1442,7 +1442,7 @@ export function apply(ctx, config = {}) {
1442
1442
  }
1443
1443
  export const meta = {
1444
1444
  name,
1445
- version: '2.2.7',
1445
+ version: '2.2.8',
1446
1446
  promptOrder: PROMPT_ORDER,
1447
1447
  routes: ['/dsh-workplan/plans', '/dsh-workplan/vendor/chart.umd.js'],
1448
1448
  };
package/lib/runtime.js CHANGED
@@ -2639,7 +2639,10 @@ async function runSubtaskAttempt(ctx, record, stage, subtask, options, timeoutMs
2639
2639
  if (timer)
2640
2640
  clearTimeout(timer);
2641
2641
  timer = setTimeout(fire, Math.max(1, ms));
2642
- timer.unref?.();
2642
+ // [2.2.8] 禁止 unref:上限计时器必须是 ref 句柄。unref 时裸事件循环进程
2643
+ // (node:test / CI node22)会在等待竞态期间排空退出,用例被 cancelledByParent
2644
+ // → node:test exit 1 → 2.2.6/2.2.7 提交 CI 红叉根因(本地 node26 因 runner
2645
+ // 自带句柄竞态获胜而假绿)。收束路径 finally 已 clearTimeout,不会悬挂进程。
2643
2646
  };
2644
2647
  attemptHandle.arm = arm;
2645
2648
  arm(timeoutMs);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-workplan",
3
- "version": "2.2.7",
3
+ "version": "2.2.8",
4
4
  "description": "Automatic task decomposition, real department subagents, and a responsive workplan dashboard for DeepSeek Harness.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/host.ts CHANGED
@@ -1571,7 +1571,7 @@ export function apply(ctx: any, config: WorkplanConfig = {}) {
1571
1571
 
1572
1572
  export const meta = {
1573
1573
  name,
1574
- version: '2.2.7',
1574
+ version: '2.2.8',
1575
1575
  promptOrder: PROMPT_ORDER,
1576
1576
  routes: ['/dsh-workplan/plans', '/dsh-workplan/vendor/chart.umd.js'],
1577
1577
  }
package/src/runtime.ts CHANGED
@@ -2724,7 +2724,10 @@ async function runSubtaskAttempt(
2724
2724
  const arm = (ms: number) => {
2725
2725
  if (timer) clearTimeout(timer)
2726
2726
  timer = setTimeout(fire, Math.max(1, ms))
2727
- timer.unref?.()
2727
+ // [2.2.8] 禁止 unref:上限计时器必须是 ref 句柄。unref 时裸事件循环进程
2728
+ // (node:test / CI node22)会在等待竞态期间排空退出,用例被 cancelledByParent
2729
+ // → node:test exit 1 → 2.2.6/2.2.7 提交 CI 红叉根因(本地 node26 因 runner
2730
+ // 自带句柄竞态获胜而假绿)。收束路径 finally 已 clearTimeout,不会悬挂进程。
2728
2731
  }
2729
2732
  attemptHandle.arm = arm
2730
2733
  arm(timeoutMs)