diff --git a/README.md b/README.md index baa613f5..0afeb590 100644 --- a/README.md +++ b/README.md @@ -224,9 +224,9 @@ dsh registry enable dsh-external/dsh-better-sidebar > 📦 **正式版**(npm `latest`):支持线**不变**——仍仅支持 **DSH 0.1.7-rc.1+**(peer 下限 `^0.1.7-rc.1`,CI 钉 `@deepseek-ai/dsh@0.1.7-rc.1`),0.21.1 的用户直接升级即可。**DSH 0.1.6-alpha.2 及更早请继续固定 v0.19.1**。 - 🧩 **任务管理页重做成工作流图**(主显示模式):会话树渲染为分层节点 + 贝塞尔连线——拖拽平移、滚轮缩放到光标、内容包围盒居中适配、右下角控制条(图/树切换 + 折叠开关 + 缩放 + 适配);**经典缩进树保留**(键盘可导航),两种模式共享同一个视图模型,折叠状态与团队富化不会视觉漂移。 -- 🃏 **双段式节点卡**:上段是类型徽章(主代理 / 子代理 / 成员 / 工作流 / 已完成聚合)+ 相位徽标 + 名称 + 元信息;下段小条是状态点 + 状态词 + **主 Agent 同款合并活动行**(并发工具按类别归并 + 计数 + 在跑那条的细节,措辞取宿主 `chat` 词条)+ 已完成节点的折叠按钮;运行中小条从左到右**完整扫过**(`prefers-reduced-motion` 下关闭)。8px 圆角、层级只用上段极淡底色表达、当前会话加粗 accent 描边。 +- 🃏 **双段式节点卡**:上段是类型徽章(主代理 / 子代理 / 成员 / 工作流 / 已完成聚合)+ 相位徽标 + 名称 + 元信息;下段小条是状态点 + **原生状态文本**(**主 Agent 同款合并活动行**:并发工具按类别归并 + 计数 + 在跑那条的细节,措辞取宿主 `chat` 词条——`正在分析请求` / `正在读取文件 · main.ts` / `正在准备读取文件` / `正在运行命令 · npm run build`),运行中与已结算都由它**取代状态词**(不再念两遍「运行中 / 已完成」),`空闲` 与 `出错` 保留状态词、没有活动数据时回退状态词;已完成节点在小条上有折叠按钮;运行中小条从左到右**完整扫过**(`prefers-reduced-motion` 下关闭)。8px 圆角、层级只用上段极淡底色表达、当前会话加粗 accent 描边。 - 🔀 **工作流 run 入图**:从 `tool-workflow/*` 事件折叠出 run(与官方面板同一批),run 挂在发起代理下、成员 agent 重挂到 run 下并按相位分框、同色相位徽标;catalog 里没有的成员用 run 数据合成占位节点,跑完的 run 仍能看到成员。 -- 🗂 **折叠分两组、各自说清是什么**:`✓ N 已完成`(含出错,失败单独报 `出错 N`)与 `N 个待命`(跑完一轮、随时可被叫起来的 teammate)是**两行**;手动折叠按钮永远有效,自动聚合只在待命成员 ≥3 时收空闲成员;聚合卡名字行写「前两个名字 + `+N`」,点聚合全部展开。 +- 🗂 **折叠分两组、各自说清是什么**:`✓ N 已完成`(含出错,失败单独报 `出错 N`)与 `N 个待命`(跑完一轮、随时可被叫起来的 teammate)是**两行**;手动折叠按钮永远有效,自动聚合只在待命成员 ≥3 时收空闲成员;聚合卡名字行写「前两个名字 + `+N`」、徽标写**真实计数**(`✓ N 已完成` / `N 个待命`),小条只留出错尾注与展开箭头;**点聚合只展开该组**(兄弟组与页级折叠都不动),页级展开/折叠仍在右下控制条,且那里收起时会把按组展开一并清掉。 - 🪟 **两个常驻浮动窗**(抽出可复用的 `FloatingWindow`):后台任务输出与共享任务详情/编辑——可拖拽、可四边拉伸、内容区自滚动,只靠关闭按钮或 Escape 结束(外部点击 / 失焦 / 锚点离屏都不关);任务窗把余量交给描述区,拉大是给内容更多空间而不是留白,动作行固定在底部。 - 👥 **Agent Teams 任务板(实验层)**:成员富化到对应节点、常驻任务条列出成员与共享任务;状态机跟随宿主(待办 → 认领 → 进行中 → 完成 → 重开)+ 改派 / 编辑 / 两击删除,CAS 过期修订单独提示;成员活动由 `subagents.live` 的 running 叠加。 - 🔄 **后台任务改读宿主客户端 `ctx.jobs`**(推送 roster + 非消费输出流 + kill):删掉自建的 `jobs.list` / `jobs.output` / `jobs.kill` 三条路由与事件回放镜像,彻底不碰模型 `job_output` 游标;输出在常驻浮动窗里流式显示并尾随,代理数 ≥8 时抽屉自动折叠。 diff --git a/README_EN.md b/README_EN.md index 30851200..d2725697 100644 --- a/README_EN.md +++ b/README_EN.md @@ -233,9 +233,9 @@ WeChat / QQ group QR codes will live here. After uploading the QR images (drag t > 📦 **Stable release** (npm `latest`): the support line is **unchanged** — DSH **0.1.7-rc.1+** only (peer floor `^0.1.7-rc.1`, CI pins `@deepseek-ai/dsh@0.1.7-rc.1`), so v0.21.1 users can upgrade straight away. **Hosts on DSH 0.1.6-alpha.2 or earlier keep pinning v0.19.1.** - 🧩 **The Tasks page is now a workflow graph** (the primary view): the session tree renders as layered nodes joined by bezier edges — drag to pan, wheel-zoom to the cursor, fit to the content box, a control cluster bottom-right (graph/tree toggle + fold switch + zoom + fit); the **classic indented tree is kept** (keyboard-navigable) and both modes share one view model, so fold state and team enrichment never drift apart. -- 🃏 **Two-segment node cards**: the top segment is the kind badge (main agent / subagent / teammate / workflow / completed aggregate) + phase badge + name + meta; the bottom bar is the state dot + state word + **the same merged activity line the main agent shows** (concurrent tools grouped and counted, with the running call's detail — wording from the host's `chat` namespace) + a fold button on finished nodes; a running bar is swept across its **whole** width (disabled under `prefers-reduced-motion`). 8px-rounded, hierarchy carried by a faint top-segment tint only, the session you are on wearing a heavier accent border. +- 🃏 **Two-segment node cards**: the top segment is the kind badge (main agent / subagent / teammate / workflow / completed aggregate) + phase badge + name + meta; the bottom bar is the state dot + the **native status text** (**the same merged activity line the main agent shows**: concurrent tools grouped and counted, with the running call's detail — wording from the host's `chat` namespace, i.e. analyzing the request / reading a file · main.ts / preparing to read a file / running a command · npm run build). That line **takes the state word's place** for running and settled nodes (the state is no longer printed twice), while `idle` and `error` keep their word and a node with no activity data falls back to it; finished nodes carry a fold button on the bar; a running bar is swept across its **whole** width (disabled under `prefers-reduced-motion`). 8px-rounded, hierarchy carried by a faint top-segment tint only, the session you are on wearing a heavier accent border. - 🔀 **Workflow runs enter the graph**: runs folded from `tool-workflow/*` events (the same events the official panel folds) hang under their origin agent, with member agents re-parented below and boxed per phase with matching badges; members with no catalog row are synthesized from the run's own data, so a finished run still shows who took part. -- 🗂 **Folding split into two groups that say what they hold**: `✓ N completed` (including failures, called out as `N failed`) and `N idle` (teammates that finished a turn and can be called back at any moment) are **two separate rows**; the manual fold button always works, the automatic rule only sweeps idle members once there are 3 or more, and an aggregate's name line reads "first two names + `+N`". +- 🗂 **Folding split into two groups that say what they hold**: `✓ N completed` (including failures, called out as `N failed`) and `N idle` (teammates that finished a turn and can be called back at any moment) are **two separate rows**; the manual fold button always works, the automatic rule only sweeps idle members once there are 3 or more, and an aggregate's name line reads "first two names + `+N`" while its badge carries the **real count** (`✓ N completed` / `N idle`) and the bar keeps only the failure tail plus the expand chevron. **Clicking an aggregate reveals THAT group only** — sibling groups and the page-level rule stay put; the page-level expand/collapse lives in the bottom-right cluster, and collapsing there drops the per-group openings too. - 🪟 **Two persistent floating windows** (extracted into a reusable `FloatingWindow`): background-job output and the shared task's detail/edit surface — draggable, resizable from every edge, a self-scrolling body, dismissed only by the close button or Escape (no outside click / blur / anchor observer); the task window hands its spare height to the description, so enlarging it gives the content room, and the action row is pinned to the bottom. - 👥 **Agent Teams board (experimental layer)**: members enrich their nodes and an always-visible strip lists the roster and shared tasks; the state machine follows the host (pending → claim → in progress → complete → reopen) with reassign / edit / two-step delete, and stale CAS revisions get their own notice; member activity is overlaid from `subagents.live`'s `running` flag. - 🔄 **Background jobs now read the host's client `ctx.jobs`** (a pushed roster plus a non-consuming output stream and `kill`): the plugin deleted its own `jobs.list` / `jobs.output` / `jobs.kill` routes and the event-replay mirror, never touching the model's `job_output` cursor; output streams in a persistent floating window with tail-follow, and the drawer auto-collapses at 8+ agents. diff --git a/docs/plans/2026-10-11-tasks-status-and-group-fold.md b/docs/plans/2026-10-11-tasks-status-and-group-fold.md index 829ac39f..d2aae766 100644 --- a/docs/plans/2026-10-11-tasks-status-and-group-fold.md +++ b/docs/plans/2026-10-11-tasks-status-and-group-fold.md @@ -91,11 +91,11 @@ state === 'running' → liveActivityLabel(summary) // 宿主 mess ## 实施偏差记录(写给复审) -1. **README 的 v0.22.0 发布说明没有改**(计划里原写「同步 4 条」)。`git log -L` 显示 - `README.md` 的「最近更新 → v0.22.0」下那四条自 2026-09-27 的发布提交后再未被任何提交碰过—— - 它们是**冻结的发布历史**,而仓库的进行中通道是 `CHANGELOG.md` 的 `### Unreleased`(先例:`2f66c92` - 的 #774 批次)。因此本轮把变更写进 **CHANGELOG 的 Unreleased 段 + 本文档**;若维护者希望 README - 的发布说明也按当前行为改写,这是一次单文件改写,随时可加。 +1. **README 的 v0.22.0 发布说明改写了两条(zh 227/229)+ en 对应两条**(计划里原写「同步 4 条」)。 + 过程记录:`git log -L` 显示那四条自 2026-09-27 的发布提交后再未被任何提交碰过——它们是**冻结的发布历史**, + 而仓库的进行中通道是 `CHANGELOG.md` 的 `### Unreleased`(先例:`2f66c92` 的 #774 批次)。初版因此只写了 + CHANGELOG + 本文档并把偏差报给维护者;**维护者随后明确选择「现在就改写那四条」**,故按当前行为改写 + (小条只显示原生状态、聚合按组展开 + 徽标真实计数),CHANGELOG 的 Unreleased 段同时保留。 2. **`idle` / `error` 保留状态词**:用户选项只点名了「运行中」与「已完成」。这两个状态的活动措辞 (子代理的 `done.*` 摘要)读起来都像「刚做完事」,去掉状态词会把「在等下一轮」「失败了」藏起来。 3. **`tasksFoldIdleGroup` 是插值改动而不是删词条**:它本来就是给徽标用的键,只是值写成了占位符