@xiaoso/dsh-workflow-lite 0.0.0-stage → 0.1.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/LICENSE +24 -0
- package/README.en.md +84 -0
- package/README.md +83 -2
- package/THIRD_PARTY_NOTICES.md +762 -0
- package/assets/icon-full.webp +0 -0
- package/assets/icon.webp +0 -0
- package/assets/wordmark.png +0 -0
- package/cordis.patch.yml +3 -0
- package/lib/client.js +127442 -0
- package/lib/index.mjs +9613 -0
- package/lib/types/client/app/addStep.d.ts +25 -0
- package/lib/types/client/app/desktop.d.ts +52 -0
- package/lib/types/client/app/host.d.ts +29 -0
- package/lib/types/client/app/sessions.d.ts +117 -0
- package/lib/types/client/app/theme.d.ts +27 -0
- package/lib/types/client/app/usePluginConfig.d.ts +59 -0
- package/lib/types/client/app/useRunFile.d.ts +24 -0
- package/lib/types/client/app/useRunGraph.d.ts +51 -0
- package/lib/types/client/app/useRunHistory.d.ts +21 -0
- package/lib/types/client/app/useRuns.d.ts +84 -0
- package/lib/types/client/app/useVersions.d.ts +50 -0
- package/lib/types/client/app/useWorkflow.d.ts +67 -0
- package/lib/types/client/app/viewport.d.ts +14 -0
- package/lib/types/client/i18n.d.ts +930 -0
- package/lib/types/client/index.d.ts +18 -0
- package/lib/types/client/model/connect.d.ts +44 -0
- package/lib/types/client/model/editor.d.ts +252 -0
- package/lib/types/client/model/fileKind.d.ts +15 -0
- package/lib/types/client/model/hostPath.d.ts +15 -0
- package/lib/types/client/model/htmlPreview.d.ts +24 -0
- package/lib/types/client/model/hubRuns.d.ts +45 -0
- package/lib/types/client/model/layout.d.ts +83 -0
- package/lib/types/client/model/library.d.ts +109 -0
- package/lib/types/client/model/nudge.d.ts +43 -0
- package/lib/types/client/model/pathSample.d.ts +26 -0
- package/lib/types/client/model/route.d.ts +121 -0
- package/lib/types/client/model/runDraft.d.ts +68 -0
- package/lib/types/client/model/runGraph.d.ts +15 -0
- package/lib/types/client/model/runHistory.d.ts +40 -0
- package/lib/types/client/model/themes.d.ts +87 -0
- package/lib/types/client/model/time.d.ts +7 -0
- package/lib/types/client/rpc.d.ts +42 -0
- package/lib/types/client/ui/AppearancePicker.d.ts +23 -0
- package/lib/types/client/ui/Canvas.d.ts +76 -0
- package/lib/types/client/ui/Confirm.d.ts +42 -0
- package/lib/types/client/ui/DocViewer.d.ts +67 -0
- package/lib/types/client/ui/Dock.d.ts +13 -0
- package/lib/types/client/ui/FileTag.d.ts +9 -0
- package/lib/types/client/ui/FileViewer.d.ts +30 -0
- package/lib/types/client/ui/FlowStreaks.d.ts +40 -0
- package/lib/types/client/ui/Handoff.d.ts +30 -0
- package/lib/types/client/ui/HostPicker.d.ts +31 -0
- package/lib/types/client/ui/HubDialog.d.ts +38 -0
- package/lib/types/client/ui/HubRunRow.d.ts +22 -0
- package/lib/types/client/ui/HubRuns.d.ts +19 -0
- package/lib/types/client/ui/HubSettings.d.ts +20 -0
- package/lib/types/client/ui/HubStorage.d.ts +18 -0
- package/lib/types/client/ui/HubWorkflowList.d.ts +21 -0
- package/lib/types/client/ui/HubWorkflowRow.d.ts +33 -0
- package/lib/types/client/ui/HubWorkflows.d.ts +26 -0
- package/lib/types/client/ui/HubWorkspacePicker.d.ts +16 -0
- package/lib/types/client/ui/Icon.d.ts +83 -0
- package/lib/types/client/ui/InputPanel.d.ts +37 -0
- package/lib/types/client/ui/InputsDialog.d.ts +22 -0
- package/lib/types/client/ui/Inspector.d.ts +51 -0
- package/lib/types/client/ui/Issues.d.ts +15 -0
- package/lib/types/client/ui/Launch.d.ts +30 -0
- package/lib/types/client/ui/Library.d.ts +23 -0
- package/lib/types/client/ui/LinkRow.d.ts +31 -0
- package/lib/types/client/ui/Markdown.d.ts +21 -0
- package/lib/types/client/ui/NodeHeads.d.ts +47 -0
- package/lib/types/client/ui/NoteDrawer.d.ts +21 -0
- package/lib/types/client/ui/OpenWith.d.ts +21 -0
- package/lib/types/client/ui/Outputs.d.ts +61 -0
- package/lib/types/client/ui/PanelHead.d.ts +21 -0
- package/lib/types/client/ui/PlanDialog.d.ts +18 -0
- package/lib/types/client/ui/PreviewCard.d.ts +38 -0
- package/lib/types/client/ui/QuickAdd.d.ts +30 -0
- package/lib/types/client/ui/ResourceItemDialog.d.ts +33 -0
- package/lib/types/client/ui/ResourceItems.d.ts +30 -0
- package/lib/types/client/ui/ResourcePanel.d.ts +26 -0
- package/lib/types/client/ui/Resources.d.ts +43 -0
- package/lib/types/client/ui/RunDraftBar.d.ts +35 -0
- package/lib/types/client/ui/RunEdge.d.ts +29 -0
- package/lib/types/client/ui/RunFiles.d.ts +24 -0
- package/lib/types/client/ui/RunInput.d.ts +26 -0
- package/lib/types/client/ui/RunItemDialog.d.ts +43 -0
- package/lib/types/client/ui/RunModeSwitch.d.ts +14 -0
- package/lib/types/client/ui/RunNav.d.ts +22 -0
- package/lib/types/client/ui/RunNodeState.d.ts +42 -0
- package/lib/types/client/ui/RunOverview.d.ts +27 -0
- package/lib/types/client/ui/RunPosition.d.ts +24 -0
- package/lib/types/client/ui/RunResource.d.ts +40 -0
- package/lib/types/client/ui/RunStatusMenu.d.ts +28 -0
- package/lib/types/client/ui/RunStep.d.ts +45 -0
- package/lib/types/client/ui/RunTopBar.d.ts +42 -0
- package/lib/types/client/ui/RunView.d.ts +43 -0
- package/lib/types/client/ui/SettingsDialog.d.ts +25 -0
- package/lib/types/client/ui/SettingsFields.d.ts +37 -0
- package/lib/types/client/ui/SkillPicker.d.ts +25 -0
- package/lib/types/client/ui/SkillPreview.d.ts +27 -0
- package/lib/types/client/ui/StepMark.d.ts +16 -0
- package/lib/types/client/ui/StepPanel.d.ts +26 -0
- package/lib/types/client/ui/ThemePicker.d.ts +13 -0
- package/lib/types/client/ui/TipLayer.d.ts +17 -0
- package/lib/types/client/ui/TopBar.d.ts +32 -0
- package/lib/types/client/ui/VersionList.d.ts +19 -0
- package/lib/types/client/ui/VersionRow.d.ts +19 -0
- package/lib/types/client/ui/VersionsDialog.d.ts +18 -0
- package/lib/types/client/ui/WorkflowRow.d.ts +32 -0
- package/lib/types/client/ui/WorkflowSwitcher.d.ts +20 -0
- package/lib/types/client/ui/WorkflowView.d.ts +27 -0
- package/lib/types/client/ui/lines.d.ts +13 -0
- package/lib/types/client/ui/primitives.d.ts +119 -0
- package/lib/types/client/ui/resourceUi.d.ts +49 -0
- package/lib/types/client/ui/stepIcons.d.ts +10 -0
- package/lib/types/host/authoringSkill.d.ts +17 -0
- package/lib/types/host/config.d.ts +54 -0
- package/lib/types/host/hostFs.d.ts +69 -0
- package/lib/types/host/plan.d.ts +68 -0
- package/lib/types/host/pluginConfig.d.ts +57 -0
- package/lib/types/host/rpc.d.ts +45 -0
- package/lib/types/host/runs/files.d.ts +37 -0
- package/lib/types/host/runs/notice.d.ts +21 -0
- package/lib/types/host/runs/service.d.ts +258 -0
- package/lib/types/host/runs/skill.d.ts +16 -0
- package/lib/types/host/runs/storage.d.ts +16 -0
- package/lib/types/host/runs/store.d.ts +56 -0
- package/lib/types/host/skillView.d.ts +22 -0
- package/lib/types/host/store/atomic.d.ts +34 -0
- package/lib/types/host/store/materialize.d.ts +19 -0
- package/lib/types/host/store/merge.d.ts +25 -0
- package/lib/types/host/store/paths.d.ts +86 -0
- package/lib/types/host/store/repository.d.ts +217 -0
- package/lib/types/host/store/versions.d.ts +38 -0
- package/lib/types/host/tool/tool.d.ts +432 -0
- package/lib/types/index.d.ts +35 -0
- package/lib/types/shared/appearance.d.ts +49 -0
- package/lib/types/shared/compile.d.ts +71 -0
- package/lib/types/shared/graph.d.ts +54 -0
- package/lib/types/shared/graphDiff.d.ts +29 -0
- package/lib/types/shared/inputs.d.ts +46 -0
- package/lib/types/shared/limits.d.ts +77 -0
- package/lib/types/shared/model.d.ts +122 -0
- package/lib/types/shared/naming.d.ts +59 -0
- package/lib/types/shared/outputPaths.d.ts +49 -0
- package/lib/types/shared/resources.d.ts +98 -0
- package/lib/types/shared/runCursor.d.ts +54 -0
- package/lib/types/shared/runState.d.ts +221 -0
- package/lib/types/shared/runSync.d.ts +24 -0
- package/lib/types/shared/types.d.ts +488 -0
- package/lib/types/shared/validate.d.ts +54 -0
- package/lib/types/shared/wire.d.ts +600 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +144 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 xiaoso
|
|
4
|
+
|
|
5
|
+
本许可证只覆盖本仓库自己的代码(`src/`、`tests/`、`locale/`、`assets/` 与构建脚本)。
|
|
6
|
+
发布物 `lib/client.js` 里内联的第三方代码另有其许可证,逐条见 `THIRD_PARTY_NOTICES.md`。
|
|
7
|
+
|
|
8
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
9
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
10
|
+
in the Software without restriction, including without limitation the rights
|
|
11
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
13
|
+
furnished to do so, subject to the following conditions:
|
|
14
|
+
|
|
15
|
+
The above copyright notice and this permission notice shall be included in all
|
|
16
|
+
copies or substantial portions of the Software.
|
|
17
|
+
|
|
18
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
19
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
20
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
21
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
22
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
23
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
24
|
+
SOFTWARE.
|
package/README.en.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img width="140" src="./assets/icon-full.webp" alt="dsh-workflow-lite icon"><br>
|
|
3
|
+
<img width="360" src="./assets/wordmark.png" alt="dsh-workflow-lite">
|
|
4
|
+
</div>
|
|
5
|
+
|
|
6
|
+
[简体中文](./README.md) | English
|
|
7
|
+
|
|
8
|
+
A soft-workflow plugin for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness): design a flow on a canvas, compile it into a plan prompt, and let the model carry it out.
|
|
9
|
+
|
|
10
|
+
> **Experimental**: features and data formats are still changing, and any release may include breaking changes.
|
|
11
|
+
|
|
12
|
+
[](https://www.npmjs.com/package/@xiaoso/dsh-workflow-lite)
|
|
13
|
+
[](./LICENSE)
|
|
14
|
+
[](https://nodejs.org)
|
|
15
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
## Install
|
|
20
|
+
|
|
21
|
+
Works with DeepSeek Harness 0.2.0, including its preview builds (such as 0.2.0-rc.2).
|
|
22
|
+
|
|
23
|
+
### Web
|
|
24
|
+
|
|
25
|
+
Requires Node.js 22 or later.
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
dsh plugin --profile web add @xiaoso/dsh-workflow-lite
|
|
29
|
+
dsh web
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Desktop
|
|
33
|
+
|
|
34
|
+
1. Open **Plugins** in the sidebar, then click **Add plugin** → **Install a third-party plugin**.
|
|
35
|
+
2. Enter `@xiaoso/dsh-workflow-lite` and click **Install**.
|
|
36
|
+
3. Restart DeepSeek Harness.
|
|
37
|
+
|
|
38
|
+
Once installed, a **Workflow** tab appears at the top of the session page.
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
### Ask the model
|
|
43
|
+
|
|
44
|
+
Describe the flow in one sentence in the conversation, for example:
|
|
45
|
+
|
|
46
|
+
> Create a workflow: write the code, then review it; if the review fails, go back and fix it, at most three rounds.
|
|
47
|
+
|
|
48
|
+
The model creates the workflow and the canvas shows it as it is built. When it looks right, click **Run** in the top-right corner, or ask the model to run it.
|
|
49
|
+
|
|
50
|
+
### Edit by hand
|
|
51
|
+
|
|
52
|
+
1. Open the **Workflow** tab and create a workflow.
|
|
53
|
+
2. Drag steps from the library on the left onto the canvas, fill in their prompts, and connect them.
|
|
54
|
+
3. Click **Run** in the top-right corner, or ask the model in the conversation to run the workflow.
|
|
55
|
+
|
|
56
|
+
### Follow progress
|
|
57
|
+
|
|
58
|
+
Turn on **Record run state** in **Workflow settings**. Every run then leaves a record and the canvas updates as the model works. Run records, workflows and versions are managed in the **Workflow hub**, opened from the top-left corner of the canvas.
|
|
59
|
+
|
|
60
|
+
## Features
|
|
61
|
+
|
|
62
|
+
| Feature | Description |
|
|
63
|
+
|---|---|
|
|
64
|
+
| Canvas editing | Drag steps and connect them, with pass / fail branches and loops; tidy the layout in one click |
|
|
65
|
+
| Resources | Attach files, folders, URLs or Skills that a step reads or writes |
|
|
66
|
+
| Pre-run questions | Collect the information a run needs from the user; answers are passed to the model with the plan |
|
|
67
|
+
| Model co-editing | The model can create and edit workflows directly, and the canvas updates live |
|
|
68
|
+
| Run state | Progress appears on the canvas as it happens; read each step's summary, adjust its state, and the model is notified |
|
|
69
|
+
| Page preview | HTML files among the resources open as pages; make one a dashboard updated every round to follow a loop's output |
|
|
70
|
+
| Versions | Save versions with notes, compare differences, switch back at any time |
|
|
71
|
+
| Workflow hub | One place for run records across sessions, all workflows and their versions, and plugin settings |
|
|
72
|
+
| Interface | Four light and four dark color themes that follow DSH light or dark mode; English / 中文 |
|
|
73
|
+
|
|
74
|
+
## How it works
|
|
75
|
+
|
|
76
|
+
1. **Design**: arrange steps on the canvas, write the prompt each executor receives, and describe the flow with branches and loops.
|
|
77
|
+
2. **Compile**: the plugin turns the workflow into one plan prompt that states the order of work, loop conditions, and each step's inputs and outputs.
|
|
78
|
+
3. **Run**: the model decides how to carry out the plan (working directly, dispatching subagents or forming a team) and reports progress back to the canvas.
|
|
79
|
+
|
|
80
|
+
The plugin ships no execution engine and needs no extra service; scheduling and judgement stay with the model in your current session.
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
[MIT](./LICENSE) © xiaoso
|
package/README.md
CHANGED
|
@@ -1,3 +1,84 @@
|
|
|
1
|
-
|
|
1
|
+
<div align="center">
|
|
2
|
+
<img width="140" src="./assets/icon-full.webp" alt="dsh-workflow-lite 图标"><br>
|
|
3
|
+
<img width="360" src="./assets/wordmark.png" alt="dsh-workflow-lite">
|
|
4
|
+
</div>
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
简体中文 | [English](./README.en.md)
|
|
7
|
+
|
|
8
|
+
[DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 的软工作流插件:在画布上设计流程,编译成计划提示词,由模型按计划执行。
|
|
9
|
+
|
|
10
|
+
> **实验阶段**:功能和数据格式仍在调整,后续任何版本都可能包含不兼容的改动。
|
|
11
|
+
|
|
12
|
+
[](https://www.npmjs.com/package/@xiaoso/dsh-workflow-lite)
|
|
13
|
+
[](./LICENSE)
|
|
14
|
+
[](https://nodejs.org)
|
|
15
|
+
[](https://github.com/deepseek-ai/deepseek-harness)
|
|
16
|
+
|
|
17
|
+

|
|
18
|
+
|
|
19
|
+
## 安装
|
|
20
|
+
|
|
21
|
+
适配 DeepSeek Harness 0.2.0,包括它的各个预览版(如 0.2.0-rc.2)。
|
|
22
|
+
|
|
23
|
+
### 网页版
|
|
24
|
+
|
|
25
|
+
需要 Node.js 22 及以上。
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
dsh plugin --profile web add @xiaoso/dsh-workflow-lite
|
|
29
|
+
dsh web
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### 桌面端
|
|
33
|
+
|
|
34
|
+
1. 在侧边栏打开「**插件**」,点击「**添加插件**」→「**安装第三方插件**」。
|
|
35
|
+
2. 填入 `@xiaoso/dsh-workflow-lite`,点击「**安装**」。
|
|
36
|
+
3. 重启 DeepSeek Harness。
|
|
37
|
+
|
|
38
|
+
安装完成后,会话页顶部会出现「**工作流**」标签页。
|
|
39
|
+
|
|
40
|
+
## 使用
|
|
41
|
+
|
|
42
|
+
### 让模型创建
|
|
43
|
+
|
|
44
|
+
在对话中用一句话描述流程,例如:
|
|
45
|
+
|
|
46
|
+
> 建一个工作流:先写代码,再审查,审查不通过就回去修复,最多三轮。
|
|
47
|
+
|
|
48
|
+
模型会创建工作流,画布上会同步显示。检查无误后,点击右上角「**执行**」,或让模型直接执行。
|
|
49
|
+
|
|
50
|
+
### 手动编辑
|
|
51
|
+
|
|
52
|
+
1. 打开「工作流」标签页,新建一个工作流。
|
|
53
|
+
2. 从左侧步骤库将步骤拖到画布上,填写提示词并连线。
|
|
54
|
+
3. 点击右上角「**执行**」,或在对话中请模型执行该工作流。
|
|
55
|
+
|
|
56
|
+
### 跟踪进度
|
|
57
|
+
|
|
58
|
+
在「工作流设置」中开启「**记录运行状态**」,此后每次执行都会生成一条记录,画布随进度更新。执行记录、工作流与版本统一在画布左上角的「**工作流中心**」中管理。
|
|
59
|
+
|
|
60
|
+
## 功能
|
|
61
|
+
|
|
62
|
+
| 功能 | 说明 |
|
|
63
|
+
|---|---|
|
|
64
|
+
| 画布编辑 | 拖拽步骤与连线,支持「通过 / 不通过」分支和循环,一键整理布局 |
|
|
65
|
+
| 资源 | 为步骤指定要读写的文件、文件夹、网址或 Skill |
|
|
66
|
+
| 执行前提问 | 执行前向用户收集必要信息,答案随计划交给模型 |
|
|
67
|
+
| 模型协作编辑 | 模型可以直接创建、修改工作流,画布实时同步 |
|
|
68
|
+
| 运行状态 | 执行进度实时显示在画布上;可查看每一步的摘要、调整状态并通知模型 |
|
|
69
|
+
| 页面预览 | 资源里的 HTML 文件点开就是页面,可做成每轮更新的看板,随时查看循环产出 |
|
|
70
|
+
| 版本管理 | 保存版本、添加说明、对比差异、随时切换 |
|
|
71
|
+
| 工作流中心 | 集中管理各会话的执行记录、全部工作流与版本,以及插件设置 |
|
|
72
|
+
| 界面 | 浅色、深色各四套配色主题,跟随 DSH 自动切换;中文 / English |
|
|
73
|
+
|
|
74
|
+
## 工作原理
|
|
75
|
+
|
|
76
|
+
1. **设计**:在画布上编排步骤,为每一步写好交给执行者的提示词,用分支和循环描述流程。
|
|
77
|
+
2. **编译**:插件把工作流整理成一份计划提示词,写明执行顺序、循环条件、每一步的输入与产出。
|
|
78
|
+
3. **执行**:模型按计划自行安排执行方式(直接完成、派发子代理或组建团队),并把进度同步回画布。
|
|
79
|
+
|
|
80
|
+
插件本身不包含执行引擎,也无需额外服务;调度与判断交由当前会话中的模型完成。
|
|
81
|
+
|
|
82
|
+
## License
|
|
83
|
+
|
|
84
|
+
[MIT](./LICENSE) © xiaoso
|