@fieldwangai/agentflow 0.1.157 → 0.1.159
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/bin/lib/flow-dsl/codegen.mjs +1 -1
- package/bin/lib/locales/en.json +4 -0
- package/bin/lib/locales/zh.json +4 -0
- package/bin/lib/mcp-server.mjs +1 -0
- package/bin/lib/workspace-server.mjs +9 -4
- package/builtin/nodes/display_code.md +39 -0
- package/builtin/web-ui/dist/assets/{WorkflowAssistantThread-g_ljSViJ.js → WorkflowAssistantThread-CY19DsYq.js} +1 -1
- package/builtin/web-ui/dist/assets/index-B9ppXv7e.css +1 -0
- package/builtin/web-ui/dist/assets/{index-C0iq6zHl.js → index-CdEQWRrp.js} +119 -117
- package/builtin/web-ui/dist/index.html +2 -2
- package/package.json +1 -1
- package/skills/agentflow-flow-dsl/SKILL.md +1 -1
- package/skills/agentflow-flow-dsl/references/node-calls.md +1 -0
- package/skills/agentflow-node-reference/references/builtin-nodes.md +8 -0
- package/builtin/web-ui/dist/assets/index-mmXs3H9P.css +0 -1
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
@keyframes af-app-loading-slide { from { transform: translateX(-115%); } to { transform: translateX(250%); } }
|
|
31
31
|
@media (prefers-reduced-motion: reduce) { .af-app-loading__track span { width: 100%; animation: none; } }
|
|
32
32
|
</style>
|
|
33
|
-
<script type="module" crossorigin src="/assets/index-
|
|
34
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
33
|
+
<script type="module" crossorigin src="/assets/index-CdEQWRrp.js"></script>
|
|
34
|
+
<link rel="stylesheet" crossorigin href="/assets/index-B9ppXv7e.css">
|
|
35
35
|
</head>
|
|
36
36
|
<body>
|
|
37
37
|
<div id="root">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fieldwangai/agentflow",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.159",
|
|
4
4
|
"description": "Orchestration system for long-running complex agent tasks using Cursor, OpenCode, Claude Code, or Codex as execution backends",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/agentflow.mjs",
|
|
@@ -204,7 +204,7 @@ const doc = display.html("使用说明", { content: file("docs/guide.html") });
|
|
|
204
204
|
| 要 AI 理解 / 判断 / 生成 | `agent.subAgent` |
|
|
205
205
|
| 行为由输入完全决定,逻辑复杂 | **建代码节点** `nodes/<name>/index.mjs` |
|
|
206
206
|
| 一行 shell 就能搞定 | `tool.nodejs("名字", {}, \`node -e "..."\`)` |
|
|
207
|
-
| 给用户看结果 | `display.markdown` / `.html` / `.chart` / `.table` |
|
|
207
|
+
| 给用户看结果 | `display.markdown` / `.code` / `.html` / `.chart` / `.table` |
|
|
208
208
|
| 加载 skills 给下游 agent | `control.loadSkills` → `skillsContext` |
|
|
209
209
|
| 加载知识库 / 代码仓 | `control.cdWorkspace` → `knowledgeContext` |
|
|
210
210
|
| 固定文本 / 密钥 | `provide.str` / `provide.password` |
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
| `control.userWorkspace` | — | workspaceContext:text, cwd:file |
|
|
16
16
|
| `display.ascii` | content:text | content:text |
|
|
17
17
|
| `display.chart` | content:text, filePath:file, workspaceContext:text | content:text |
|
|
18
|
+
| `display.code` | content:text, language:text, fileName:text, wrap:bool | content:text |
|
|
18
19
|
| `display.html` | content:text, filePath:file, workspaceContext:text | content:text |
|
|
19
20
|
| `display.image` | src:text, filePath:file, alt:text, workspaceContext:text | src:text |
|
|
20
21
|
| `display.markdown` | content:text | content:text |
|
|
@@ -186,6 +186,14 @@
|
|
|
186
186
|
- Inputs: 0. `prev`:node; 1. `content`:text; 2. `filePath`:file; 3. `workspaceContext`:text
|
|
187
187
|
- Outputs: 0. `content`:text; 1. `next`:node
|
|
188
188
|
|
|
189
|
+
### display_code
|
|
190
|
+
|
|
191
|
+
- Display: Code Display
|
|
192
|
+
- Description: Display source code with language highlighting, line numbers, copy, wrap, and download controls; passes content downstream as text
|
|
193
|
+
- Runtime: local-only
|
|
194
|
+
- Inputs: 0. `prev`:node; 1. `content`:text; 2. `language`:text; 3. `fileName`:text; 4. `wrap`:bool = false
|
|
195
|
+
- Outputs: 0. `content`:text; 1. `next`:node
|
|
196
|
+
|
|
189
197
|
### display_html
|
|
190
198
|
|
|
191
199
|
- Display: HTML Display
|