dsh-workflow-canvas 1.0.2 → 1.2.0

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 CHANGED
@@ -8,7 +8,8 @@ English | [中文](README.zh.md) | [Mechanism & Architecture](docs/MECHANISM.md)
8
8
 
9
9
  Turn multi-agent orchestration in DSH into a visual node graph: each card is an AI role, each wire defines who feeds whom, and pressing **● ON** lets you run the whole pipeline straight from chat.
10
10
 
11
- - **Real parallelism**: Independent nodes run concurrently (up to 4 at once), and newly unblocked downstream nodes start the instant their inputs finish.
11
+ - **Real parallelism**: Independent nodes run concurrently (default 4, configurable 1–8 under `⋯`), and newly unblocked downstream nodes start the instant their inputs finish.
12
+ - **Conditional branching**: Drop a **Condition** node anywhere to route downstream along `✓ Yes` or `✕ No` based on upstream results — the unchosen branch is skipped automatically without spawning.
12
13
  - **Human-in-the-loop**: Drop a **Lead** card anywhere in the flow to pause automatically for your decision before continuing.
13
14
  - **Zero black box**: Click any subagent card to open its live chat transcript and inspect its exact output.
14
15
  - **Don't want to draw by hand?** Describe the workflow in one sentence in chat — the agent sketches the graph for you and can patch it in place anytime.
@@ -31,13 +32,14 @@ Once enabled, open the **`Workflow`** tab in the right sidebar.
31
32
 
32
33
  ### 1. Node types
33
34
 
34
- There are three node types on the canvas:
35
+ There are four node types on the canvas (Entry Lead, Subagent, Lead, Condition):
35
36
 
36
37
  | Node | Description |
37
38
  |---|---|
38
39
  | <img src="docs/images/node-entry-en.png" width="220" alt="Entry Lead node" /> | **Entry Lead (start node, always present)**<br>• The starting point of the graph — **right-side output sockets only**.<br>• Write the overall goal in **Task**, or leave it blank and send your prompt directly in chat once the canvas is **● ON**.<br>• Every node that should run must be reachable from here. |
39
- | <img src="docs/images/node-subagent-en.png" width="220" alt="Subagent node" /> | **Subagent (green top bar — runs in an isolated child session)**<br>• **Model / Reasoning**: Configure model and reasoning effort per node.<br>• **Scope**: `standard` (all tools) or `minimal` (read-only thinking — disables file edits and web), bounded by the main chat's permission mode.<br>• **Fallback**: Automatically retries once on another model if the primary one fails.<br>• **Memory**: Flip **on** and use the dropdown beside it to resume **Latest** or pin any past run (`#1 / #2`).<br>• **Role**: Click the pencil icon to describe what this node is responsible for. |
40
+ | <img src="docs/images/node-subagent-en.png" width="220" alt="Subagent node" /> | **Subagent (green top bar — runs in an isolated child session)**<br>• **Model / Reasoning**: Configure model and reasoning effort per node.<br>• **Scope**: `standard` (all tools) or `minimal` (read-only thinking — disables file edits and web), bounded by the main chat's permission mode.<br>• **Fallback**: Automatically retries once on another model if the primary one fails.<br>• **Memory**: Flip **on** to enable the session dropdown beside it (**Latest** or pin any past run `#1 / #2`; muted when off).<br>• **Role**: Edit inline or click `⤢` to open a larger editor. |
40
41
  | <img src="docs/images/node-lead-en.png" width="220" alt="Lead node" /> | **Lead (blue top bar — runs directly in the main conversation)**<br>• **Never spawned** — handled by your main chat itself.<br>• **Mid-flow** (e.g. `Lead Pick`): pauses with `⏸ Ready` once upstream finishes so you can decide before downstream starts.<br>• **End-of-flow** (e.g. `Lead Review`): delivers the final summary in one shot without an extra round-trip.<br>• Requires at least one subagent upstream (solo Lead-to-Lead nodes render dashed and are skipped). |
42
+ | <img src="docs/images/node-condition-en.png" width="220" alt="Condition node" /> | **Condition (amber top bar — lightweight read-only judge for `if/else`, `switch/case` & parallel multi-match)**<br>• Runs as a dedicated lightweight read-only subagent with **Model / Reasoning / Fallback** controls; both the overall rule and every individual branch have a `⤢` button to open a larger editor.<br>• Starts with inline editable **`Yes` / `No`** branches; click **`+ Case`** to add more named branches freely (e.g. `Pass / Minor Fix / Rewrite / Other`).<br>• Toggle **`Single`** (pick at most 1 best match) vs **`Multi`** (run all matching branches in parallel); if none match or the condition node itself fails, it never guesses a branch — it skips intermediate branches and hands off to the nearest downstream Lead (or halts cleanly for `retryFailed: true`). |
41
43
 
42
44
  Load a built-in template from **`☰ Presets`**, or press **`Shift+A`** anywhere on the canvas to add a node (`⋯` also provides `⊞ Auto layout` and `✕ Clear canvas`):
43
45
 
@@ -47,9 +49,9 @@ Load a built-in template from **`☰ Presets`**, or press **`Shift+A`** anywhere
47
49
 
48
50
  ### 2. Links and data flow
49
51
 
50
- **Drag from a right-side output socket on an upstream node to a left-side input socket on a downstream node** to pass results forward.
52
+ **Drag from a right-side output socket on an upstream node to the universal left input (`in`) on a downstream node** to pass results forward — every non-entry node has a single universal input that automatically inherits the wire type and colour from its source output.
51
53
 
52
- Socket colour indicates the channel type — **only matching colours connect**:
54
+ Output socket colour indicates the channel type:
53
55
  | Colour | Type | Description |
54
56
  |---|---|---|
55
57
  | Grey | `prompt` | Passes plain-text output downstream |
@@ -75,21 +77,33 @@ Every subagent node can be configured independently:
75
77
 
76
78
  ---
77
79
 
78
- ### 4. Enable and run
80
+ ### 4. Conditional branching & dynamic pruning
79
81
 
80
- Press **`● ON`** at the top-left of the canvas, then send your task in chat (while enabled, a per-session runtime context notifies the agent automatically):
82
+ Drop a **Condition** node anywhere in the graph to route downstream automatically based on upstream outputs:
81
83
 
82
- - If the entry Lead's task is blank, your chat message is passed as `task`.
83
- - At an intermediate **Lead** node, the canvas shows **`⏸ Ready`** and hands control to chat; once you reply, downstream nodes resume automatically through the final Lead review.
84
+ - Supports default binary **`Yes / No`**, multi-way **`switch/case`** via **`+ Case`** (e.g. `Pass / Minor Fix / Rewrite`), and **`Single / Multi`** match modes.
85
+ - Unchosen branches are pruned automatically without spawning; if zero branches match or the condition node itself fails, it never guesses — it skips intermediate branches and hands off to the nearest downstream Lead.
86
+ - Once judged, a compact verdict pill appears right under the condition card (click to inspect the full verdict reason), while unchosen branch edges and skipped nodes dim automatically.
87
+
88
+ ![3-way switch/case conditional routing and automatic branch pruning](docs/images/condition-switch-run.gif)
89
+
90
+ ---
91
+
92
+ ### 5. Enable and run
93
+
94
+ Press **`● ON`** at the top-left of the canvas, then either click **`▶ Run`** directly on the Entry Lead card (when its task is filled) or send your task in chat (while enabled, a per-session runtime context notifies the agent automatically):
95
+
96
+ - 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`.
97
+ - 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.
84
98
  - 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`).
85
99
 
86
100
  ![Auto-run enabled canvas, pause at Lead decision, and finish](docs/images/lead-pause-resume.gif)
87
101
 
88
102
  ---
89
103
 
90
- ### 5. Inspect live subagent runs
104
+ ### 6. Inspect live subagent runs
91
105
 
92
- Active nodes glow blue with animated flow wires and turn green when done. **Click the status badge (`Running ↗` / `Done ↗`) at the bottom-right of any subagent node** to open its conversation pane:
106
+ Active nodes glow blue with animated flow wires and turn green when done. **Click the status badge (`Running ↗` / `Done ↗`) at the bottom-left of any subagent node** to open its conversation pane:
93
107
 
94
108
  ![Parallel execution and clicking straight into a subagent chat](docs/images/parallel-and-inspect.gif)
95
109
 
@@ -98,13 +112,15 @@ Active nodes glow blue with animated flow wires and turn green when done. **Clic
98
112
  ## Let the agent draw or edit the canvas from chat
99
113
 
100
114
  - **Sketch from one sentence** (`canvas_generate`): *"Build a parallel research workflow on the canvas: two subagents investigate competitors and feasibility, pause for me to decide, then write the plan."*
101
- - **Patch in place** (`canvas_inspect` + `canvas_patch`): *"Inspect the current canvas, turn Memory on for feasibility, and add a read-only cost-estimate node wired into plan synthesis."* (Preserves your layout.)
115
+ - **Patch in place** (`canvas_inspect` + `canvas_patch`): *"Upgrade the condition node to 3 branches (Pass / Minor Fix / Rewrite) and re-wire downstream."* (Updates in place while preserving your layout.)
116
+
117
+ ![In-place canvas editing from chat via canvas_patch](docs/images/chat-patch-canvas.gif)
102
118
 
103
119
  ## Shortcuts & controls
104
120
 
105
121
  | Control / Shortcut | Action |
106
122
  |---|---|
107
- | `Shift+A` | Add a node at the cursor (`1` = Subagent, `2` = Lead) |
123
+ | `Shift+A` / Drag-wire drop | Add a node at cursor, or drag from an output socket onto blank canvas to create & auto-connect (`1` Subagent, `2` Lead, `3` Condition) |
108
124
  | Middle-drag / `Space` + left-drag | Pan the canvas |
109
125
  | Wheel / `⊡ Fit` / `100%` pill | Zoom around cursor / fit all nodes / click to reset 100%, drag left-right to scrub zoom |
110
126
  | Marquee drag + `Ctrl+D` / `Delete` | Multi-select move, duplicate (with settings), or batch delete |
@@ -114,9 +130,10 @@ Active nodes glow blue with animated flow wires and turn green when done. **Clic
114
130
 
115
131
  ## Presets, sharing & limits
116
132
 
117
- - **Presets & sharing**: `☰ Presets` includes 3 starter templates plus **New blank canvas**; save your own with `☆ Save`. Custom presets live in browser storage — use `⋯ → ⇧ Copy JSON` and `⇩ Import` to share across devices.
118
- - **How this differs from other canvas plugins**: Built for **multi-subagent orchestration + conversation Lead gates**; for `ctx.workflows` tool/condition pipelines, see [`@piedpiper911/dsh-workflow-canvas`](https://github.com/PiedPiper911/dsh-workflow-canvas).
119
- - **Limits**: Up to 4 subagents run concurrently; per-node `Scope` only narrows tools within the main chat's permission/sandbox ceiling.
133
+ - **Presets & cross-session reuse**: Click `☰ Presets` to save the current canvas at the top of the menu (immediately available in any new chat), or load one of the 4 starter templates and **New blank canvas**. Custom presets live in browser storage — use `⋯ → ⇧ Copy JSON` and `⇩ Import` to share across devices.
134
+ - **Partial resume & concurrency**: If a mid-flow node fails, call `retryFailed: true` or `fromNodes` to reuse succeeded outputs and re-run only the failed segment and its downstream; adjust max concurrency (1 / 2 / 4 / 6 / 8, default 4) under `⋯`.
135
+ - **How this differs from other canvas plugins**: Built for **multi-subagent orchestration + conditional routing + conversation Lead gates**; for `ctx.workflows` low-level tool pipelines, see [`@piedpiper911/dsh-workflow-canvas`](https://github.com/PiedPiper911/dsh-workflow-canvas).
136
+ - **Limits**: Per-node `Scope` only narrows tools within the main chat's permission/sandbox ceiling.
120
137
 
121
138
  ## Development & internals
122
139
 
package/README.zh.md CHANGED
@@ -8,7 +8,8 @@
8
8
 
9
9
  把 DSH 的多智能体协作画成一张直观的流程图:每个卡片是一名负责具体工作的 AI,连线决定「谁先做、结果交给谁」,点一下启用就能在聊天里直接开跑。
10
10
 
11
- - **真并行**:互相不依赖的卡片会自动同时开工(最多 4 个并行),跑完一个立刻推进下游,不用干等。
11
+ - **真并行**:互相不依赖的卡片会自动同时开工(默认 4 路并发,可在 `⋯` 菜单按需调节 1–8 路),跑完一个立刻推进下游,不用干等。
12
+ - **条件分支**:放入 **条件节点** 即可根据上游执行结果自动分流(`✓ 是` / `✕ 否`),未命中的分支自动跳过、不消耗额外额度。
12
13
  - **人机协同**:在关键节点放一个 **Lead 卡片**,跑到那一步会自动停下来问你拍板,确认后再继续往下跑。
13
14
  - **完全白盒**:每个子代理的对话记录都能直接点开看,不用猜黑盒里发生了什么。
14
15
  - **懒得手动画?** 直接在聊天里用一句话描述分工,AI 会帮你把整张图搭好,之后还能随时说一句让它原地修改。
@@ -31,13 +32,14 @@
31
32
 
32
33
  ### 1. 节点类型
33
34
 
34
- 画布上有三种节点:
35
+ 画布上有四种节点(入口 Lead、子代理、Lead、条件分支):
35
36
 
36
37
  | 节点 | 说明 |
37
38
  |---|---|
38
39
  | <img src="docs/images/node-entry-zh.png" width="220" alt="开始节点(入口 Lead)" /> | **入口 Lead(开始节点,不可删除)**<br>• 整张图的起点,**只有右侧输出口**。<br>• 「任务」框用于填写本次流程的总目标;也可以留空,开启画布后直接在聊天框发任务即可自动传入。<br>• 需要参与执行的节点都必须从它连出去。 |
39
- | <img src="docs/images/node-subagent-zh.png" width="220" alt="子代理节点" /> | **子代理节点(绿顶,独立子会话执行)**<br>• **模型 / 推理**:可为每个节点单独指定模型和推理强度。<br>• **能力**:`standard`(全部工具)或 `minimal`(只读思考,关闭文件读写与联网),受主对话权限上限约束。<br>• **备用**:主模型报错时自动换备用模型重试一次。<br>• **记忆**:打开 `开` 后可在右侧下拉框选 `最新` 或指定某次历史会话(`#1 / #2`)续接。<br>• **分工**:点铅笔图标展开填写该节点的具体职责。 |
40
+ | <img src="docs/images/node-subagent-zh.png" width="220" alt="子代理节点" /> | **子代理节点(绿顶,独立子会话执行)**<br>• **模型 / 推理**:可为每个节点单独指定模型和推理强度。<br>• **能力**:`standard`(全部工具)或 `minimal`(只读思考,关闭文件读写与联网),受主对话权限上限约束。<br>• **备用**:主模型报错时自动换备用模型重试一次。<br>• **记忆**:打开 `开` 后可在右侧下拉框选 `最新` 或指定某次历史会话(`#1 / #2`)续接(关闭时下拉框置灰占位)。<br>• **分工**:支持行内直接输入,或点右侧 `⤢` 展开大输入框编辑。 |
40
41
  | <img src="docs/images/node-lead-zh.png" width="220" alt="Lead 节点" /> | **Lead 节点(蓝顶,由主对话直接执行)**<br>• **不创建子会话**,直接交回当前主对话完成这一步。<br>• **放在流程中间**(如 `Lead 拍板`):上游完成后暂停并亮起 `⏸ 待拍板`,在对话里确认或补充后再继续跑下游。<br>• **放在流程末尾**(如 `Lead 终审`):所有子代理完成后直接汇总交付,不产生额外回调轮次。<br>• 至少需连入一个子代理上游,否则会显示为虚线并在运行时跳过。 |
42
+ | <img src="docs/images/node-condition-zh.png" width="220" alt="条件分支节点" /> | **条件分支节点(琥珀顶,轻量只读裁判,支持 `if/else`、`switch/case` 与多选并行)**<br>• 作为独立轻量只读子代理读取上游交付物(含失败状态)并按「条件」做客观路由;支持配置**模型 / 推理 / 备用模型**,主规则与每条分支均支持点 `⤢` 展开大框编辑。<br>• 初始即为可编辑文本框 **`是` / `否`**,点 **`+ 分支`** 可自由扩展多路(如 `通过 / 小修 / 重做 / 其他`)。<br>• 支持 **`单选`**(最多命中 1 路)与 **`多选`**(所有满足条件的分支并行执行);若全不满足或条件节点自身执行失败,不擅自乱选分支,直接跳过中间分支转交最近下游 Lead(无下游 Lead 时熔断暂停),并支持 `retryFailed: true` 断点重跑。 |
41
43
 
42
44
  可以直接点右上角 **`☰ 预设`** 载入内置模板,或在画布任意位置按 **`Shift+A`** 新建节点(`⋯` 菜单提供 `⊞ 自动排版` 和 `✕ 清空画布`):
43
45
 
@@ -47,9 +49,9 @@
47
49
 
48
50
  ### 2. 连线与数据流向
49
51
 
50
- **从上游节点的右侧端口拖到下游节点的左侧端口**,表示上游完成后把结果传给下游。
52
+ **从上游节点的右侧输出口拖到下游节点左侧的通用输入口(`in`)**,即可把结果传给下游;所有非入口节点左侧统一为一个通用入口,自动继承连入输出口的类型与颜色。
51
53
 
52
- 端口颜色代表传递方式,**只能同色相连**:
54
+ 右侧输出口颜色代表传递方式:
53
55
  | 颜色 | 类型 | 说明 |
54
56
  |---|---|---|
55
57
  | 灰 | `prompt` | 传递纯文本结果给下游 |
@@ -75,21 +77,33 @@
75
77
 
76
78
  ---
77
79
 
78
- ### 4. 启用与运行
80
+ ### 4. 条件分支与动态剪枝
79
81
 
80
- 连好图后,点画布左上角的 **`● 已启用`**,然后在聊天框直接发任务即可(启用状态下插件会按会话自动注入上下文,无需额外提示调用工具):
82
+ 在流程中放入 **条件节点**,即可根据上游子代理或 Lead 的实际输出自动路由:
81
83
 
82
- - 入口 Lead 的任务栏可填可不填;留空时,聊天框发出的任务会自动作为 `task` 传入。
83
- - 跑到中间 Lead 时,画布亮起 **`⏸ 待拍板`** 并交回主对话;回复后下游自动续跑到终审完成。
84
+ - 支持默认二分支 **`是 / 否`**、点击 **`+ 分支`** 扩展多路 **`switch/case`**(如 `通过 / 小修 / 重做`),以及 **`单选 / 多选`** 两种匹配模式。
85
+ - 未命中的分支自动剪枝跳过、不消耗额度;所有分支均未命中或条件节点自身失败时,不擅自乱选,直接转交最近下游 Lead 处理。
86
+ - 判决完成后,条件节点下方会直接显示命中分支标签(点击可查看完整判断理由),未命中的分支连线与被跳过节点自动淡化标示。
87
+
88
+ ![三路 switch/case 条件分支判断与自动剪枝](docs/images/condition-switch-run.gif)
89
+
90
+ ---
91
+
92
+ ### 5. 启用与运行
93
+
94
+ 连好图后,点画布左上角的 **`● 已启用`**,既可以在入口 Lead 节点填好任务后直接点左下角的 **`▶ 运行`** 一键起跑,也可以在聊天框直接发任务(启用状态下插件会按会话自动注入上下文,无需额外提示调用工具):
95
+
96
+ - 入口 Lead 的任务栏可填可不填;点卡片 **`▶ 运行`** 需已启用且任务非空,留空时也可直接在聊天框发送任务作为 `task` 传入。
97
+ - 跑到中间 Lead 时,画布亮起 **`⏸ 待拍板`**(入口按钮同步变为 `⏸ 等待决策`)并交回主对话;回复后下游自动续跑到终审完成。
84
98
  - 同一对话重跑支持 `reset: true`;若画布含已产生历史会话的记忆节点,Agent 会在重跑前确认保留记忆还是清空记忆(`clearMemory: true`)。
85
99
 
86
100
  ![启用即跑、Lead 暂停拍板与自动续跑交付](docs/images/lead-pause-resume.gif)
87
101
 
88
102
  ---
89
103
 
90
- ### 5. 查看子代理执行过程
104
+ ### 6. 查看子代理执行过程
91
105
 
92
- 运行中,执行中的节点亮蓝光并显示流动连线,完成后变绿。**点击任意子代理节点右下角的 `进行中 ↗` / `已完成 ↗`**,即可打开它的独立对话窗格查看过程与输出:
106
+ 运行中,执行中的节点亮蓝光并显示流动连线,完成后变绿。**点击任意子代理节点左下角的 `进行中 ↗` / `已完成 ↗`**,即可打开它的独立对话窗格查看过程与输出:
93
107
 
94
108
  ![多节点真并行与点击直达子代理对话](docs/images/parallel-and-inspect.gif)
95
109
 
@@ -99,13 +113,15 @@
99
113
 
100
114
  除了手动拖拽,你也可以直接对聊天框说:
101
115
  - **一句话搭图**(`canvas_generate`):*「帮我在工作流画布里搭一个并行调研流程:两个子代理分别做竞品和技术可行性,再让我拍板,最后写方案」*
102
- - **原地微调**(`canvas_inspect` + `canvas_patch`):*「看一下当前画布,把技术可行性开启记忆,再加一个只读成本估算节点并行连到方案合成」*(不会打乱你摆好的位置)
116
+ - **原地微调**(`canvas_inspect` + `canvas_patch`):*「看一下当前画布,把条件节点改成 3 路(通过 / 小修 / 重做)并补齐连线」*(原地更新,不打乱已摆好的位置)
117
+
118
+ ![对话一句话原地修改画布(canvas_patch)](docs/images/chat-patch-canvas.gif)
103
119
 
104
120
  ## 常用快捷键一览
105
121
 
106
122
  | 操作 / 快捷键 | 效果 |
107
123
  |---|---|
108
- | `Shift+A` | 在鼠标位置新建节点(按 `1` 加子代理,`2` 加 Lead) |
124
+ | `Shift+A` / 拖线松手 | 在光标处新建节点,或从输出口拖线至空白处松手就地新建并自动连线(`1` 子代理,`2` Lead,`3` 条件) |
109
125
  | 鼠标中键拖拽 / `Space` + 左键拖拽 | 平移画布 |
110
126
  | 滚轮 / `⊡ 全览` / `100%` 按钮 | 光标处缩放 / 一键居中看全图 / 点击回 100%,左右拖可连续缩放 |
111
127
  | 左键框选 + `Ctrl+D` / `Delete` | 批量移动、批量复制(连同参数配置)或批量删除 |
@@ -115,9 +131,10 @@
115
131
 
116
132
  ## 预设、分享与限制
117
133
 
118
- - **预设与分享**:`☰ 预设` 内置 3 套开箱即用模板和「新建空白画布」;输入名字点 `☆ 保存` 存为自己的预设。自定义预设保存在本地浏览器存储中,跨设备分享请用 `⋯ → ⇧ 复制 JSON` 与 `⇩ 导入`。
119
- - **与其它画布插件的区别**:本项目专注**多子代理编排 + 对话本体拍板**;如果你需要的是把工具调用/条件分支编译为 `ctx.workflows` 的管线,可看 [`@piedpiper911/dsh-workflow-canvas`](https://github.com/PiedPiper911/dsh-workflow-canvas)。
120
- - **运行限制**:同时最多并行运行 4 个子代理;子代理的「能力」受主对话权限/沙箱上限约束。
134
+ - **预设与跨会话复用**:点右上角 `☰ 预设` 即可在顶部将当前画布保存为自定义预设(跨会话通用,新对话一键载入),下方还内置 4 套开箱即用模板(含条件分支)和「新建空白画布」。自定义预设保存在本地浏览器存储中,跨设备分享请用 `⋯ → ⇧ 复制 JSON` 与 `⇩ 导入`。
135
+ - **局部重跑与并发调节**:中间节点失败后支持 `retryFailed: true` 或 `fromNodes` 只重跑失败段及下游、复用已成功节点缓存;`⋯` 菜单可调整最大并发数(1 / 2 / 4 / 6 / 8,默认 4)。
136
+ - **与其它画布插件的区别**:本项目专注**多子代理编排 + 条件分流 + 对话本体拍板**;如果你需要的是把底层工具调用编译为 `ctx.workflows` 的管线,可看 [`@piedpiper911/dsh-workflow-canvas`](https://github.com/PiedPiper911/dsh-workflow-canvas)。
137
+ - **运行限制**:子代理的「能力」受主对话权限/沙箱上限约束。
121
138
 
122
139
  ## 开发与原理
123
140