@fieldwangai/agentflow 0.1.34 → 0.1.36
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/agent-runners.mjs +17 -0
- package/bin/lib/auth.mjs +58 -0
- package/bin/lib/catalog-flows.mjs +3 -1
- package/bin/lib/composer-agent.mjs +4 -0
- package/bin/lib/composer-skill-router.mjs +23 -4
- package/bin/lib/git-worktree.mjs +57 -8
- package/bin/lib/locales/en.json +4 -0
- package/bin/lib/locales/zh.json +4 -0
- package/bin/lib/marketplace.mjs +21 -4
- package/bin/lib/runtime-context.mjs +22 -4
- package/bin/lib/skill-registry.mjs +49 -3
- package/bin/lib/ui-server.mjs +1177 -29
- package/bin/pipeline/pre-process-node.mjs +4 -0
- package/builtin/nodes/agent_subAgent.md +4 -1
- package/builtin/nodes/display_chart.md +31 -0
- package/builtin/nodes/tool_git_worktree_load.md +10 -0
- package/builtin/nodes/tool_nodejs.md +3 -0
- package/builtin/web-ui/dist/assets/index-7-343AUn.js +214 -0
- package/builtin/web-ui/dist/assets/index-CPsrRISH.css +1 -0
- package/builtin/web-ui/dist/assets/index-DgQRkS4v.js +61 -0
- package/builtin/web-ui/dist/index.html +2 -2
- package/package.json +1 -1
- package/builtin/web-ui/dist/assets/index-B1j_UaHw.js +0 -202
- package/builtin/web-ui/dist/assets/index-ChiTnW0H.css +0 -1
|
@@ -363,11 +363,15 @@ function emitGitWorktreeLoadNode(workspaceRoot, flowName, uuid, instanceId, exec
|
|
|
363
363
|
const branch = String(inputs.branch || "").trim();
|
|
364
364
|
const worktreePath = resolveMaybeWorkspacePath(inputs.worktreePath, workspaceContext, { branch }) ||
|
|
365
365
|
(gitContext?.worktreePath ? path.resolve(gitContext.worktreePath) : "");
|
|
366
|
+
const force = isTruthyInput(inputs.force);
|
|
367
|
+
const pruneMissing = String(inputs.pruneMissing ?? "true").trim().toLowerCase() !== "false";
|
|
366
368
|
const result = loadGitWorktree({
|
|
367
369
|
repoPath,
|
|
368
370
|
branch,
|
|
369
371
|
worktreePath,
|
|
370
372
|
pipelineWorkspace: workspaceContext.pipelineWorkspace || path.resolve(workspaceRoot),
|
|
373
|
+
force,
|
|
374
|
+
pruneMissing,
|
|
371
375
|
});
|
|
372
376
|
const outWorkspaceContext = {
|
|
373
377
|
version: 1,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
# 内置节点:子 Agent
|
|
3
|
-
description: 利用子 Agent 执行任务;可接收 workspaceContext 切换执行工作区,并接收 skillsContext 注入已加载 skills
|
|
3
|
+
description: 利用子 Agent 执行任务;可接收 workspaceContext 切换执行工作区,并接收 skillsContext / mcpContext 注入已加载 skills 与 MCP 工具清单。
|
|
4
4
|
displayName: 子 Agent
|
|
5
5
|
input:
|
|
6
6
|
- type: node
|
|
@@ -12,6 +12,9 @@ input:
|
|
|
12
12
|
- type: text
|
|
13
13
|
name: skillsContext
|
|
14
14
|
default: ""
|
|
15
|
+
- type: text
|
|
16
|
+
name: mcpContext
|
|
17
|
+
default: ""
|
|
15
18
|
output:
|
|
16
19
|
- type: node
|
|
17
20
|
name: next
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Built-in node: Chart Display
|
|
3
|
+
description: Display a JSON ChartSpec with ECharts in workspace canvas; passes the JSON downstream as text
|
|
4
|
+
displayName: Chart Display
|
|
5
|
+
input:
|
|
6
|
+
- type: node
|
|
7
|
+
name: prev
|
|
8
|
+
default: ""
|
|
9
|
+
- type: text
|
|
10
|
+
name: content
|
|
11
|
+
default: ""
|
|
12
|
+
required: true
|
|
13
|
+
showOnNode: true
|
|
14
|
+
- type: file
|
|
15
|
+
name: filePath
|
|
16
|
+
default: ""
|
|
17
|
+
showOnNode: false
|
|
18
|
+
- type: text
|
|
19
|
+
name: workspaceContext
|
|
20
|
+
default: ""
|
|
21
|
+
showOnNode: false
|
|
22
|
+
output:
|
|
23
|
+
- type: text
|
|
24
|
+
name: content
|
|
25
|
+
default: ""
|
|
26
|
+
showOnNode: false
|
|
27
|
+
- type: node
|
|
28
|
+
name: next
|
|
29
|
+
default: ""
|
|
30
|
+
---
|
|
31
|
+
${content}
|
|
@@ -8,6 +8,8 @@ description: |
|
|
|
8
8
|
- `branch` is optional. When empty, AgentFlow creates a detached worktree at the current HEAD.
|
|
9
9
|
- `worktreePath` is optional. When empty, AgentFlow creates a path under `${pipelineWorkspace}/.workspace/agentflow/worktrees`.
|
|
10
10
|
- Existing worktree paths are reused only when they are registered by `git worktree list` for the given repo.
|
|
11
|
+
- `pruneMissing` defaults to true. When Git has a registered worktree whose directory is missing, AgentFlow runs `git worktree prune` before adding it again.
|
|
12
|
+
- `force` defaults to false. When true, AgentFlow passes `--force` to `git worktree add`.
|
|
11
13
|
displayName: Load Worktree
|
|
12
14
|
input:
|
|
13
15
|
- type: node
|
|
@@ -22,6 +24,14 @@ input:
|
|
|
22
24
|
- type: file
|
|
23
25
|
name: worktreePath
|
|
24
26
|
default: ""
|
|
27
|
+
- type: bool
|
|
28
|
+
name: pruneMissing
|
|
29
|
+
default: "true"
|
|
30
|
+
showOnNode: false
|
|
31
|
+
- type: bool
|
|
32
|
+
name: force
|
|
33
|
+
default: "false"
|
|
34
|
+
showOnNode: false
|
|
25
35
|
- type: text
|
|
26
36
|
name: gitContext
|
|
27
37
|
default: ""
|