dsh-expert-group 0.1.1 → 0.1.2

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.
@@ -347,9 +347,12 @@
347
347
  }
348
348
 
349
349
  function defaultExpanded(node) {
350
- // 根节点是任务树入口,始终保持可见;其余节点才按语义状态决定默认折叠。
350
+ // 根节点是任务树入口,默认展开;空闲分组也默认展示成员。
351
351
  if (isObject(node) && node.kind === "root") return true;
352
352
  if (isObject(node) && node.kind === "idle-group") return true;
353
+ // fan-out 始终默认展示子代理,不因完成或取消自动收起;
354
+ // 这里只改变缺省值,createExpansionStore 仍优先保留用户手动折叠的选择。
355
+ if (isObject(node) && node.kind === "fanout") return true;
353
356
  const status = normalizeStatus(isObject(node) ? (node.status ?? node.taskStatus) : undefined);
354
357
  return !DEFAULT_COLLAPSED_STATUSES.has(status);
355
358
  }