dsh-workflow-canvas 1.5.5 → 1.6.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.
- package/README.md +2 -1
- package/README.zh.md +2 -1
- package/client.js +1199 -158
- package/docs/DETAIL.md +7 -3
- package/docs/MECHANISM.md +4 -4
- package/docs/MECHANISM.zh.md +4 -4
- package/index.js +568 -1000
- package/lib/graph.js +1068 -0
- package/lib/telemetry.js +250 -0
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +5 -3
- package/skills/workflow-canvas/SKILL.md +1 -0
- package/docs/images/add-node-shift-a.gif +0 -0
- package/docs/images/canvas-demo-zh.png +0 -0
- package/docs/images/canvas-demo.png +0 -0
- package/docs/images/chat-patch-canvas.gif +0 -0
- package/docs/images/condition-switch-run.gif +0 -0
- package/docs/images/connect-and-cut.gif +0 -0
- package/docs/images/lead-pause-resume.gif +0 -0
- package/docs/images/node-condition-en.png +0 -0
- package/docs/images/node-condition-zh.png +0 -0
- package/docs/images/node-config.gif +0 -0
- package/docs/images/node-entry-en.png +0 -0
- package/docs/images/node-entry-zh.png +0 -0
- package/docs/images/node-lead-en.png +0 -0
- package/docs/images/node-lead-zh.png +0 -0
- package/docs/images/node-subagent-en.png +0 -0
- package/docs/images/node-subagent-zh.png +0 -0
- package/docs/images/parallel-and-inspect.gif +0 -0
- package/docs/images/retry-loop-en.png +0 -0
- package/docs/images/retry-loop-zh.png +0 -0
package/README.md
CHANGED
|
@@ -103,7 +103,8 @@ Press **`● ON`** at the top-left of the canvas, then either click **`▶ Run`*
|
|
|
103
103
|
|
|
104
104
|
- If the entry Lead's task is blank, `▶ Run` stays disabled with a hint and you can still send your chat message directly as `task`.
|
|
105
105
|
- At an intermediate **Lead** node, the canvas shows **`⏸ Ready`** (and Entry Lead shows `⏸ Awaiting Lead`) while handing control to chat; once you reply, downstream nodes resume automatically through the final Lead review.
|
|
106
|
-
- **Unified `⏹ Stop` button**:
|
|
106
|
+
- **Unified `⏹ Stop` button**: Always visible beside `● ON` (muted when idle; lights up red alongside a compact `⏹` button on the Entry Lead card whenever a run is active or paused at **`⏸ Awaiting Lead`**) — clicking it immediately cancels the root turn, interrupts all live subagents, clears any Lead pause, and preserves completed-node cache (you can also ask in chat to cancel via `canvas_workflow({ cancel: true })`).
|
|
107
|
+
- **Zero-token Run Summary**: Once a workflow runs, a compact bottom-left summary pill (and `⋯ → 📊 Run summary`) displays live elapsed time, per-node duration bars, fallback/session-continuation tags, condition verdicts, and round-by-round loop retry history, with one-click node focus, child-chat jump (`↗`), and **Copy Markdown** export — computed purely from local `.run.json` telemetry with zero extra LLM calls or prompt tokens.
|
|
107
108
|
- Re-running in the same chat supports `reset: true`; if any node has saved **Memory**, the agent confirms whether to keep memory or clear it (`clearMemory: true`).
|
|
108
109
|
|
|
109
110
|

|
package/README.zh.md
CHANGED
|
@@ -103,7 +103,8 @@
|
|
|
103
103
|
|
|
104
104
|
- 入口 Lead 的任务栏可填可不填;点卡片 **`▶ 运行`** 需已启用且任务非空,留空时也可直接在聊天框发送任务作为 `task` 传入。
|
|
105
105
|
- 跑到中间 Lead 时,画布亮起 **`⏸ 待拍板`**(入口按钮同步变为 `⏸ 等待决策`)并交回主对话;回复后下游自动续跑到终审完成。
|
|
106
|
-
- **一键统一终止(`⏹
|
|
106
|
+
- **一键统一终止(`⏹ 终止`)**:画布左上角 `● 已启用` 旁常驻 **`⏹ 终止`** 按钮(空闲时为灰标禁用;任务运行中或停在 **`⏸ 待拍板`** 状态时亮红,同时入口 Lead 卡片左下角出现快捷 `⏹` 按钮)——点一下即可并发中止主回合与全部运行中的子代理、解除等待拍板状态并保留已完成节点的缓存(聊天里也可直接要求取消,触发 `canvas_workflow({ cancel: true })`)。
|
|
107
|
+
- **零额外 Token 执行复盘(`📊 执行复盘`)**:运行开始后,画布左下角自动出现紧凑复盘胶囊(也可从 `⋯ → 📊 执行复盘` 打开),实时汇总总耗时、各节点耗时条与轮次、备用模型回退/会话续接标签、条件命中理由和回环打回记录,支持点击节点居中定位、直达子会话(`↗`)及一键复制 Markdown 复盘报告——全程基于本地 `.run.json` 纯统计渲染,不消耗任何额外 Token。
|
|
107
108
|
- 同一对话重跑支持 `reset: true`;若画布含已产生历史会话的记忆节点,Agent 会在重跑前确认保留记忆还是清空记忆(`clearMemory: true`)。
|
|
108
109
|
|
|
109
110
|

|