@suifei/dsh-ai-team 0.4.0 → 0.4.1

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.
Files changed (2) hide show
  1. package/index.js +4 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -48,7 +48,7 @@ export const name = 'ai-team';
48
48
  /** The workbench only makes sense where the Web carrier exists. */
49
49
  export const inject = ['webServer', 'permissionPresets', 'sandboxPolicy', 'tools', 'shell'];
50
50
 
51
- const VERSION = '0.4.0';
51
+ const VERSION = '0.4.1';
52
52
  const HUMAN_ID = 'mem_human';
53
53
 
54
54
  const SKILLOPT_BACKENDS = ['mock', 'claude', 'codex', 'copilot', 'cursor', 'pi', 'opencode', 'handoff', 'azure_openai'];
@@ -565,7 +565,8 @@ export function apply(ctx, config = {}) {
565
565
  if (projectRuntime === null || projectRuntime === undefined) return;
566
566
  const state = projectRuntime.service.state;
567
567
  const project = state.projects?.[projectRuntime.id];
568
- if (project === undefined || project.pmoAuto === false || project.status === 'archived') return;
568
+ // job 收割先于 pmoAuto 门:Human 启动的优化 job 与 PMO 派发无关,
569
+ // PMO 自动关闭时也必须收敛(否则 job 永远停在 generating)。
569
570
  // 两阶段异步优化 job 收割:与任务派发无关,放在停止门之前——
570
571
  // Human 启动的 job 必须在任意运行态下收敛(生成/评审/落盘)。
571
572
  try {
@@ -593,6 +594,7 @@ export function apply(ctx, config = {}) {
593
594
  } catch (error) {
594
595
  diag.append({ ev: 'skillopt.job.tick.fail', message: error?.message ?? String(error) });
595
596
  }
597
+ if (project === undefined || project.pmoAuto === false || project.status === 'archived') return;
596
598
  // P6 停止门:stopped 项目停止一切派发(补派/心跳/升级/continue 全停),
597
599
  // 正在执行的回合自然完成;唤醒事件 hook 同样检查(见 wakeFromResult)。
598
600
  if (project.runState === 'stopped') return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suifei/dsh-ai-team",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "文渊阁 (Wenyuan Pavilion) — AI Team mode for DeepSeek Harness: concurrent projects, owned tasks, threads, inbox and an append-only team ledger",
6
6
  "license": "MIT",