PiedPiper911/dsh-workflow-canvas

插件Plugin 原生Native ⭐ 2

PiedPiper911 的 DSH 插件 — dsh-workflow-canvas

项目介绍Project Overview

这是 DSH 的可视化工作流构建插件,基于 React Flow 与 Zustand。可拖拽编排触发器、工具调用、子代理、条件分支和输出节点,画布编译为有序步骤后交由 ctx.workflows 运行,并支持导出/重载 .workflow.json。适合需要图形化组装 DSH 工作流时使用;注意它只是普通 JSON 工作流规范的视图,运行仍依赖 DSH 工作流引擎。

A visual workflow builder plugin for DSH, built with React Flow and Zustand. Drag trigger, tool, sub-agent, condition, and output nodes onto a canvas; the graph compiles into an ordered step list for ctx.workflows, with .workflow.json export and reload. Use it when orchestrating DSH tool calls, agents, and branches graphically. The canvas is only a view over a plain-JSON workflow spec; execution still depends on DSH’s workflow engine.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin add @piedpiper911/dsh-workflow-canvas

PiedPiper911/dsh-workflow-canvas 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-workflow-canvas 🧭

Visual workflow builder for DeepSeek Harness (DSH). Drag and drop nodes to orchestrate tool calls, sub-agents, and conditional branches into a workflow that runs through DSH's ctx.workflows engine. Powered by React Flow (xyflow) and Zustand.

Install

dsh plugin add @piedpiper911/dsh-workflow-canvas

Node types

Node What it does
▶ Trigger Workflow entry point (a prompt).
⚙ Tool A single tool call (e.g. video_frames, bash).
🤖 Agent Delegate a step to a sub-agent with its own prompt.
◇ Condition Branch on an expression (then/else edges).
✓ Output Terminal result template.

How it works

  1. Build a graph on the canvas: drag nodes from the toolbar, connect them with edges.
  2. The store compiles the graph into an ordered step list (breadth-first from triggers, conditions become branches) — this is the exact shape DSH's workflow engine consumes.
  3. Run hands the steps to ctx.workflows; Export saves a .workflow.json you can reload later.

The data model is deliberately transport-agnostic: the canvas is a view over a plain-JSON workflow spec, so it composes with any DSH workflow provider.

Development

npm ci
npm run dev        # standalone demo at :5173
npm run build      # tsc + vite build

License

MIT

上一个 Prev dsh-web-restart 下一个 Next dsh-desktop-shortcut