@lumo-app/workflow-studio 0.0.0-stage → 0.2.3
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 +21 -0
- package/README.md +16 -2
- package/icon.svg +11 -0
- package/index.js +314 -0
- package/lumo.plugin.json +22 -0
- package/package.json +57 -3
- package/panel.html +2 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lumo contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 工作流
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
启用插件后,在 Lumo 侧栏打开「工作流」。管理页可搜索、打开和删除已保存的流程。点击「新建工作流」进入独立编排页。
|
|
4
|
+
|
|
5
|
+
## 编排与运行
|
|
6
|
+
|
|
7
|
+
- 在「流程设置 → 共享知识库」勾选已有资料,或点「导入知识」选择本地文档或粘贴文本。导入完成后自动关联当前工作流,保存工作流后持久化关联。导入使用 Lumo 的知识库索引,并需要插件的「知识库写入」权限。
|
|
8
|
+
|
|
9
|
+
- 双击画布空白处可添加角色、子工作流、工具、审查或自定义节点。拖动节点卡片可移动,拖动输出端口可连到目标,也可拖到空白处创建相连的节点。点击连线可就地插入节点或删线,拖动连线的终点可改接目标。节点卡片上的垃圾桶可直接删除节点,选中节点或连线也可按 Delete 删除。编辑支持撤销。删除后,待连接的输出和不可达的节点会在保存前提示。把审查的「未通过」端口接回前面的节点即可返工。
|
|
10
|
+
- 所有类型都可在节点输入框中输入 `@`,将引用插入指令正文。可选择当前项目或全局目录中的 Skill、MCP、知识库,也可插入本次流程输入、上一步输出、指定节点输出或共享变量。角色与执行 Agent 可独立设置,Agent 列表仅显示检测到的运行环境。
|
|
11
|
+
- 「输出」页可为结果命名,也可以写入本次运行的共享上下文。子工作流接收配置好的输入,省略输入时使用上一步输出,随后把结束时的结果返回父节点。父子流程在同一次运行中共享全局变量。同名变量保留最近一次写入。
|
|
12
|
+
- 工具节点由配置的 Agent 调用指定 MCP 工具,将成功回执传给下游。审查节点按标准选择路径,并把审核意见传给后续节点。子工作流与返工步骤都计入主流程步数上限。
|
|
13
|
+
- 保存后,在对话输入 `@` 选择流程,再发送本次任务。客户端调度后续节点,退出或重载会中断后续调度。已启动节点的执行记录保留在原对话。
|
|
14
|
+
|
|
15
|
+
## 本地构建
|
|
16
|
+
|
|
17
|
+
运行 `pnpm --filter @lumo-app/workflow-studio build`,在对应版本 Lumo 的「设置 → 插件 → 导入插件」中选择本目录,随后启用插件。
|
package/icon.svg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
2
|
+
<rect width="64" height="64" rx="15" fill="#384b65"/>
|
|
3
|
+
<path d="M22 19h16m-6 6v13a7 7 0 0 1-7 7h-3m10-13a13 13 0 0 0 13 13" fill="none" stroke="#b8d2ef" stroke-width="2.5" stroke-linecap="round"/>
|
|
4
|
+
<g fill="#f0f6ff" stroke="#b8d2ef" stroke-width="1.5">
|
|
5
|
+
<rect x="13" y="13" width="12" height="12" rx="3"/>
|
|
6
|
+
<rect x="39" y="13" width="12" height="12" rx="3"/>
|
|
7
|
+
<rect x="13" y="39" width="12" height="12" rx="3"/>
|
|
8
|
+
<rect x="39" y="39" width="12" height="12" rx="3"/>
|
|
9
|
+
<path d="m32 25 6 7-6 7-6-7z"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|