dsh-workflow-canvas 1.4.0 → 1.5.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 +14 -7
- package/README.zh.md +14 -7
- package/client.js +874 -99
- package/docs/DETAIL.md +37 -22
- package/docs/MECHANISM.md +6 -5
- package/docs/MECHANISM.zh.md +6 -5
- package/docs/images/retry-loop-en.png +0 -0
- package/docs/images/retry-loop-zh.png +0 -0
- package/index.js +400 -41
- package/package.json +20 -2
- package/skills/workflow-canvas/SKILL.md +1 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-workflow-canvas",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "A visual
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "A visual multi-agent workflow canvas for DeepSeek Harness — parallel subagents, conditional branching & Lead decision gates in the sidebar.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"exports": {
|
|
@@ -24,6 +24,24 @@
|
|
|
24
24
|
"README.zh.md"
|
|
25
25
|
],
|
|
26
26
|
"license": "MIT",
|
|
27
|
+
"author": "Wasabi2575",
|
|
28
|
+
"homepage": "https://github.com/Wasabi2575/dsh-workflow-canvas#readme",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/Wasabi2575/dsh-workflow-canvas/issues"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"dsh",
|
|
34
|
+
"deepseek-harness",
|
|
35
|
+
"dsh-plugin",
|
|
36
|
+
"deepseek",
|
|
37
|
+
"workflow",
|
|
38
|
+
"multi-agent",
|
|
39
|
+
"subagent",
|
|
40
|
+
"canvas",
|
|
41
|
+
"node-graph",
|
|
42
|
+
"ai-agents",
|
|
43
|
+
"agent-orchestration"
|
|
44
|
+
],
|
|
27
45
|
"repository": {
|
|
28
46
|
"type": "git",
|
|
29
47
|
"url": "git+https://github.com/Wasabi2575/dsh-workflow-canvas.git"
|
|
@@ -13,6 +13,7 @@ A canvas is a DAG of agents the user can see and edit.
|
|
|
13
13
|
- **Downstream Lead** (`kind: "lead"`, blue top bar) — performed by the conversation itself, never spawned. Any added non-entry Lead node holds a `role` and pauses the run (`status: "need-lead"`) so you can decide, review, or integrate before continuing. Direct `Lead → Lead` stage chains are supported (zero subagents spawned) as long as each chained Lead has a non-empty `role` describing its main-conversation stage.
|
|
14
14
|
- **Subagent** (`kind: "agent"`, green top bar) — spawned as a child agent with its own model, reasoning effort, capability scope, fallback model and memory switch. Wire every subagent's output into a downstream node or final Lead so nothing becomes a dead end.
|
|
15
15
|
- **Condition** (`kind: "condition"`, amber top bar) — lightweight read-only (`minimal`) branch judge that evaluates upstream outputs (including failure/incomplete flags) against `role`. Defaults to binary `if/else` (`branch: "true"` / `"false"`, returning `{ pass, reason }`); set `branches: ["通过", "小修", "重做"]` (2+ entries) for multi-way `switch/case` routing (`{ branches: [...], reason }`), with optional `multiMatch: true` to run all matching branches in parallel (and returning `[]` skips all downstream branches when none match). Unchosen branches are pruned automatically without spawning (even when a side `session-ref` wire connects an upstream ancestor into a pruned branch), and branches can converge back into a shared downstream node or terminal Lead.
|
|
16
|
+
- **Controlled retry loops** (`edge.loop: true`, `maxIterations: 1..10`, default `3`) — wire any condition branch back to a strict forward ancestor (never entry Lead, no crossing loops) to build a bounded feedback retry loop. On retry, only nodes strictly inside the loop (`descendants(target) ∩ ancestors(source)`) are reset; the entry node receives the condition judge's failure reason (reusing its healthy warm session when available, or starting fresh if it crashed); hitting `maxIterations` circuit-breaks and hands off all round summaries to the nearest downstream Lead.
|
|
16
17
|
- **References** (`refs: string[]`) — attach up to 16 reference file paths, URLs, or shared rules to Entry Lead (global `refs`, injected into every subagent) or any individual node (`node.refs`), cleanly replacing boilerplate read-only loader nodes.
|
|
17
18
|
|
|
18
19
|
## Which tool to call
|