@fieldwangai/agentflow 0.1.28 → 0.1.30
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/agents/agentflow-node-executor-code.md +3 -2
- package/agents/agentflow-node-executor-planning.md +3 -2
- package/agents/agentflow-node-executor-requirement.md +3 -2
- package/agents/agentflow-node-executor-test.md +3 -2
- package/agents/agentflow-node-executor-ui.md +3 -2
- package/agents/agentflow-node-executor.md +3 -2
- package/agents/en/agentflow-node-executor.md +3 -2
- package/agents/zh/agentflow-node-executor.md +3 -2
- package/bin/lib/agent-runners.mjs +38 -13
- package/bin/lib/api-runner.mjs +6 -3
- package/bin/lib/auth.mjs +240 -0
- package/bin/lib/catalog-agents.mjs +2 -2
- package/bin/lib/catalog-flows.mjs +192 -16
- package/bin/lib/composer-agent.mjs +21 -1
- package/bin/lib/composer-skill-router.mjs +10 -78
- package/bin/lib/flow-import.mjs +2 -2
- package/bin/lib/flow-write.mjs +20 -20
- package/bin/lib/help.mjs +2 -2
- package/bin/lib/locales/en.json +25 -1
- package/bin/lib/locales/zh.json +25 -1
- package/bin/lib/main.mjs +6 -1
- package/bin/lib/node-exec-context.mjs +5 -5
- package/bin/lib/node-execute.mjs +14 -9
- package/bin/lib/paths.mjs +64 -13
- package/bin/lib/recent-runs.mjs +2 -2
- package/bin/lib/run-node-statuses-from-disk.mjs +3 -3
- package/bin/lib/runtime-context.mjs +225 -0
- package/bin/lib/scheduler.mjs +41 -38
- package/bin/lib/skill-registry.mjs +145 -0
- package/bin/lib/ui-server.mjs +902 -57
- package/bin/lib/workspace-tree.mjs +4 -3
- package/bin/lib/workspace.mjs +9 -11
- package/bin/pipeline/build-node-prompt.mjs +29 -4
- package/bin/pipeline/get-exec-id.mjs +2 -2
- package/bin/pipeline/get-resolved-values.mjs +1 -0
- package/bin/pipeline/pre-process-node.mjs +306 -6
- package/bin/pipeline/validate-flow.mjs +2 -0
- package/builtin/nodes/agent_subAgent.md +7 -1
- package/builtin/nodes/control_cd_workspace.md +43 -0
- package/builtin/nodes/control_load_skills.md +48 -0
- package/builtin/nodes/display_ascii.md +17 -0
- package/builtin/nodes/display_markdown.md +17 -0
- package/builtin/nodes/display_mermaid.md +17 -0
- package/builtin/nodes/tool_git_checkout.md +54 -0
- package/builtin/nodes/tool_nodejs.md +8 -1
- package/builtin/nodes/tool_print.md +4 -1
- package/builtin/web-ui/dist/assets/index-NdVOJLL9.js +196 -0
- package/builtin/web-ui/dist/assets/index-naVI6LZj.css +1 -0
- package/builtin/web-ui/dist/index.html +2 -2
- package/package.json +2 -1
- package/skills/agentflow-flow-add-instances/SKILL.md +257 -0
- package/skills/agentflow-flow-edit-node-fields/SKILL.md +79 -0
- package/skills/agentflow-flow-recipes/SKILL.md +24 -0
- package/skills/agentflow-flow-recipes/references/recipes.md +63 -0
- package/skills/agentflow-flow-sync-ui/SKILL.md +59 -0
- package/skills/agentflow-node-reference/SKILL.md +25 -0
- package/skills/agentflow-node-reference/references/builtin-nodes.md +210 -0
- package/skills/agentflow-placeholder-reference/SKILL.md +24 -0
- package/skills/agentflow-placeholder-reference/references/placeholders.md +20 -0
- package/skills/agentflow-runtime-reference/SKILL.md +25 -0
- package/skills/agentflow-runtime-reference/references/runtime.md +64 -0
- package/builtin/web-ui/dist/assets/index-BeUBxIj1.js +0 -190
- package/builtin/web-ui/dist/assets/index-BzhdjOzb.css +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:Load Skills
|
|
3
|
+
description: |
|
|
4
|
+
Load selected public Skills from the AgentFlow skill registry into the current workspace context.
|
|
5
|
+
|
|
6
|
+
Connect `workspaceContext` from CD Workspace, set `skillKeys` to skill names or registry keys, then connect `skillsContext` to downstream agent/tool nodes. Loaded skills are injected into the node prompt under "已加载 Skills" while downstream execution still uses the CD Workspace context.
|
|
7
|
+
|
|
8
|
+
Skill key examples:
|
|
9
|
+
- `agentflow-flow-add-instances`
|
|
10
|
+
- `workspace-agents:agentflow-flow-edit-node-fields`
|
|
11
|
+
- `global-codex:some-skill`
|
|
12
|
+
|
|
13
|
+
Merge modes:
|
|
14
|
+
- `replace`
|
|
15
|
+
- `append`
|
|
16
|
+
- `prepend`
|
|
17
|
+
displayName: Load Skills
|
|
18
|
+
input:
|
|
19
|
+
- type: node
|
|
20
|
+
name: prev
|
|
21
|
+
default: ""
|
|
22
|
+
- type: text
|
|
23
|
+
name: skillKeys
|
|
24
|
+
default: ""
|
|
25
|
+
- type: text
|
|
26
|
+
name: mergeMode
|
|
27
|
+
default: "replace"
|
|
28
|
+
- type: text
|
|
29
|
+
name: workspaceContext
|
|
30
|
+
default: ""
|
|
31
|
+
- type: text
|
|
32
|
+
name: skillsContext
|
|
33
|
+
default: ""
|
|
34
|
+
output:
|
|
35
|
+
- type: node
|
|
36
|
+
name: next
|
|
37
|
+
default: ""
|
|
38
|
+
- type: text
|
|
39
|
+
name: skillsContext
|
|
40
|
+
default: ""
|
|
41
|
+
- type: text
|
|
42
|
+
name: loadedCount
|
|
43
|
+
default: ""
|
|
44
|
+
- type: text
|
|
45
|
+
name: summary
|
|
46
|
+
default: ""
|
|
47
|
+
---
|
|
48
|
+
Load public skills `${skillKeys}` into `${workspaceContext}` and pass them to downstream nodes.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:ASCII 图展示
|
|
3
|
+
description: Display ASCII diagram content in workspace canvas; passes diagram text downstream as text
|
|
4
|
+
displayName: ASCII Display
|
|
5
|
+
input:
|
|
6
|
+
- type: node
|
|
7
|
+
name: prev
|
|
8
|
+
default: ""
|
|
9
|
+
- type: text
|
|
10
|
+
name: content
|
|
11
|
+
default: ""
|
|
12
|
+
output:
|
|
13
|
+
- type: text
|
|
14
|
+
name: content
|
|
15
|
+
default: ""
|
|
16
|
+
---
|
|
17
|
+
${content}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:Markdown 展示
|
|
3
|
+
description: Display Markdown content in workspace canvas; passes content downstream as text
|
|
4
|
+
displayName: Markdown Display
|
|
5
|
+
input:
|
|
6
|
+
- type: node
|
|
7
|
+
name: prev
|
|
8
|
+
default: ""
|
|
9
|
+
- type: text
|
|
10
|
+
name: content
|
|
11
|
+
default: ""
|
|
12
|
+
output:
|
|
13
|
+
- type: text
|
|
14
|
+
name: content
|
|
15
|
+
default: ""
|
|
16
|
+
---
|
|
17
|
+
${content}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:Mermaid 展示
|
|
3
|
+
description: Display Mermaid diagram source in workspace canvas; passes diagram source downstream as text
|
|
4
|
+
displayName: Mermaid Display
|
|
5
|
+
input:
|
|
6
|
+
- type: node
|
|
7
|
+
name: prev
|
|
8
|
+
default: ""
|
|
9
|
+
- type: text
|
|
10
|
+
name: content
|
|
11
|
+
default: ""
|
|
12
|
+
output:
|
|
13
|
+
- type: text
|
|
14
|
+
name: content
|
|
15
|
+
default: ""
|
|
16
|
+
---
|
|
17
|
+
${content}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:Git Checkout
|
|
3
|
+
description: |
|
|
4
|
+
Clone or update a Git repository and expose it as a workspace context for downstream nodes.
|
|
5
|
+
|
|
6
|
+
- `repoUrl` is required.
|
|
7
|
+
- `targetDir` may be absolute or relative to the current workspace context.
|
|
8
|
+
- If `targetDir` is empty, the repository is cloned into `${pipelineWorkspace}/.workspace/agentflow/git-repos/<repo-name>`.
|
|
9
|
+
- Set `includeSubmodules` to `true` to clone/update Git submodules recursively.
|
|
10
|
+
- The `workspaceContext` output can be connected to CD Workspace, Load Skills, agent, or tool nodes.
|
|
11
|
+
displayName: Git Checkout
|
|
12
|
+
input:
|
|
13
|
+
- type: node
|
|
14
|
+
name: prev
|
|
15
|
+
default: ""
|
|
16
|
+
- type: text
|
|
17
|
+
name: repoUrl
|
|
18
|
+
default: ""
|
|
19
|
+
- type: text
|
|
20
|
+
name: branch
|
|
21
|
+
default: ""
|
|
22
|
+
- type: text
|
|
23
|
+
name: targetDir
|
|
24
|
+
default: ""
|
|
25
|
+
- type: bool
|
|
26
|
+
name: pullIfExists
|
|
27
|
+
default: "true"
|
|
28
|
+
- type: bool
|
|
29
|
+
name: includeSubmodules
|
|
30
|
+
default: "false"
|
|
31
|
+
- type: text
|
|
32
|
+
name: workspaceContext
|
|
33
|
+
default: ""
|
|
34
|
+
output:
|
|
35
|
+
- type: node
|
|
36
|
+
name: next
|
|
37
|
+
default: ""
|
|
38
|
+
- type: file
|
|
39
|
+
name: repoPath
|
|
40
|
+
default: ""
|
|
41
|
+
- type: text
|
|
42
|
+
name: branch
|
|
43
|
+
default: ""
|
|
44
|
+
- type: text
|
|
45
|
+
name: commit
|
|
46
|
+
default: ""
|
|
47
|
+
- type: bool
|
|
48
|
+
name: changed
|
|
49
|
+
default: ""
|
|
50
|
+
- type: text
|
|
51
|
+
name: workspaceContext
|
|
52
|
+
default: ""
|
|
53
|
+
---
|
|
54
|
+
Clone or update `${repoUrl}` and output a workspace context for the checked-out repository.
|
|
@@ -10,7 +10,8 @@ description: |
|
|
|
10
10
|
**JSON Compatible (Optional):** If stdout is `{"err_code":0,"message":{"result":"..."}}` format, err_code will override exit code semantics, message.result writes to result slot. Only use when needing different success/failure semantics than exit code.
|
|
11
11
|
|
|
12
12
|
**Direct Execution Mode (Recommended):** Set `script` field in flow.yaml instance, pipeline will skip AI and execute directly.
|
|
13
|
-
`script` supports ${} placeholders (workspaceRoot, flowName, runDir, flowDir and all input/output slots), values are auto shell-quoted.
|
|
13
|
+
`script` supports ${} placeholders (workspaceRoot, pipelineWorkspace, flowName, runDir, flowDir and all input/output slots), values are auto shell-quoted.
|
|
14
|
+
When a CD Workspace node is connected, `workspaceRoot` is the current execution workspace; `pipelineWorkspace` is the original pipeline workspace.
|
|
14
15
|
flowDir is absolute path of current pipeline flow.yaml directory, can be used to reference scripts in same directory.
|
|
15
16
|
Example: `script: node ${flowDir}/scripts/my-check.mjs --root ${workspaceRoot} --input ${todo}`
|
|
16
17
|
|
|
@@ -29,6 +30,12 @@ input:
|
|
|
29
30
|
- type: node
|
|
30
31
|
name: prev
|
|
31
32
|
default: ""
|
|
33
|
+
- type: text
|
|
34
|
+
name: workspaceContext
|
|
35
|
+
default: ""
|
|
36
|
+
- type: text
|
|
37
|
+
name: skillsContext
|
|
38
|
+
default: ""
|
|
32
39
|
output:
|
|
33
40
|
- type: node
|
|
34
41
|
name: next
|