@fieldwangai/agentflow 0.1.160 → 0.1.163
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/auth.mjs +231 -14
- package/bin/lib/catalog-flows.mjs +2 -0
- package/bin/lib/cli-auth-page.mjs +103 -0
- package/bin/lib/flow-dsl/codegen.mjs +23 -2
- package/bin/lib/flow-dsl/lint.mjs +44 -0
- package/bin/lib/flow-dsl/parser.mjs +68 -1
- package/bin/lib/marketplace-usage.mjs +218 -0
- package/bin/lib/marketplace.mjs +183 -3
- package/bin/lib/node-package-manifest.mjs +1 -1
- package/bin/lib/skill-runtime.mjs +6 -0
- package/bin/lib/spaces.mjs +200 -0
- package/bin/lib/table.mjs +2 -3
- package/bin/lib/ui-server.mjs +471 -84
- package/bin/lib/workspace-draft.mjs +74 -0
- package/bin/lib/workspace-routes.mjs +484 -4
- package/bin/lib/workspace-server.mjs +373 -30
- package/bin/lib/workspace-state.mjs +2 -1
- package/builtin/nodes/agent_subAgent.md +5 -1
- package/builtin/nodes/context_bundle.md +44 -0
- package/builtin/nodes/context_knowledge.md +29 -0
- package/builtin/nodes/context_skills.md +29 -0
- package/builtin/nodes/context_workspace.md +36 -0
- package/builtin/nodes/control_while.md +12 -5
- package/builtin/nodes/tool_git_worktree_load.md +4 -3
- package/builtin/pipelines/new/workspace.flow.js +1 -1
- package/builtin/web-ui/dist/assets/{WorkflowAssistantThread-Bfo9Ythw.js → WorkflowAssistantThread-DmhIgoD7.js} +1 -1
- package/builtin/web-ui/dist/assets/index-CI9J6Unt.js +873 -0
- package/builtin/web-ui/dist/assets/index-DY5vE7v1.css +1 -0
- package/builtin/web-ui/dist/index.html +2 -2
- package/package.json +5 -1
- package/shared/slot-types.js +1 -0
- package/skills/agentflow-author-flow/SKILL.md +81 -8
- package/skills/agentflow-author-flow/agents/openai.yaml +3 -3
- package/skills/agentflow-cli/SKILL.md +179 -27
- package/skills/agentflow-cli/agents/openai.yaml +2 -2
- package/skills/agentflow-cli/runtime/bin/lib/skill-runtime.mjs +14879 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/agent_subAgent.md +38 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/context_bundle.md +44 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/context_knowledge.md +29 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/context_skills.md +29 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/context_workspace.md +36 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_agent_toBool.md +26 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_anyOne.md +19 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_cancelled.md +26 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_cd_workspace.md +50 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_delay.md +31 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_end.md +13 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_if.md +21 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_interval_loop.md +55 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_load_mcp.md +24 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_load_skills.md +35 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_parse_json.md +25 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_start.md +13 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_subflow_call.md +27 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_toBool.md +27 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_user_workspace.md +24 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_wait_until.md +34 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/control_while.md +131 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_ascii.md +24 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_chart.md +32 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_code.md +39 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_html.md +32 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_image.md +36 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_markdown.md +24 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_mermaid.md +24 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_react_app.md +53 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/display_table.md +32 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/provide_bool.md +14 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/provide_file.md +14 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/provide_json.md +14 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/provide_password.md +14 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/provide_str.md +14 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_display_share_link.md +47 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_get_env.md +20 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_git_checkout.md +70 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_git_worktree_load.md +74 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_git_worktree_unload.md +52 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_gitlab_create_mr.md +114 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_jenkins_build.md +67 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_load_key.md +26 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_nodejs.md +52 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_print.md +21 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_save_key.md +26 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_set_run_env.md +38 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_user_ask.md +27 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_user_check.md +26 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_wecom_send_app_markdown.md +57 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/tool_wecom_send_group_markdown.md +45 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/workspace_one_click_task.md +44 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/workspace_run.md +16 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/workspace_scheduled_run.md +16 -0
- package/skills/agentflow-cli/runtime/builtin/nodes/workspace_subflow_input.md +14 -0
- package/skills/agentflow-cli/runtime/package.json +6 -0
- package/skills/agentflow-cli/scripts/agentflow-auth-store.mjs +113 -0
- package/skills/agentflow-cli/scripts/agentflow-cli.mjs +457 -28
- package/skills/agentflow-cli/scripts/agentflow-runtime.mjs +11 -4
- package/skills/agentflow-flow-add-instances/SKILL.md +2 -2
- package/skills/agentflow-flow-dsl/SKILL.md +73 -8
- package/skills/agentflow-flow-dsl/agents/openai.yaml +2 -2
- package/skills/agentflow-flow-dsl/references/node-calls.md +6 -2
- package/skills/agentflow-flow-dsl/references/subflow-authoring.md +34 -7
- package/skills/agentflow-flow-edit-node-fields/SKILL.md +3 -3
- package/skills/agentflow-flow-recipes/SKILL.md +1 -1
- package/skills/agentflow-flow-recipes/references/recipes.md +1 -2
- package/skills/agentflow-flow-sync-ui/SKILL.md +1 -1
- package/skills/agentflow-node-dsl/SKILL.md +5 -13
- package/skills/agentflow-node-reference/references/builtin-nodes.md +37 -5
- package/skills/agentflow-workspace-markdown/SKILL.md +1 -1
- package/builtin/web-ui/dist/assets/index-XbeI5foV.js +0 -872
- package/builtin/web-ui/dist/assets/index-e1omCEau.css +0 -1
- package/skills/agentflow-workspace-graph/SKILL.md +0 -85
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:子 Agent
|
|
3
|
+
runtime: native
|
|
4
|
+
description: 利用子 Agent 执行任务;新流程优先接收一个强类型 context Bundle。knowledgeContext、workspaceContext、skillsContext、mcpContext 保留为旧流程兼容引脚。
|
|
5
|
+
displayName: 子 Agent
|
|
6
|
+
input:
|
|
7
|
+
- type: node
|
|
8
|
+
name: prev
|
|
9
|
+
default: ""
|
|
10
|
+
- type: context
|
|
11
|
+
name: context
|
|
12
|
+
default: ""
|
|
13
|
+
showOnNode: true
|
|
14
|
+
- type: text
|
|
15
|
+
name: workspaceContext
|
|
16
|
+
default: ""
|
|
17
|
+
- type: text
|
|
18
|
+
name: skillsContext
|
|
19
|
+
default: ""
|
|
20
|
+
showOnNode: true
|
|
21
|
+
- type: text
|
|
22
|
+
name: mcpContext
|
|
23
|
+
default: ""
|
|
24
|
+
- type: text
|
|
25
|
+
name: knowledgeContext
|
|
26
|
+
default: ""
|
|
27
|
+
showOnNode: true
|
|
28
|
+
output:
|
|
29
|
+
- type: node
|
|
30
|
+
name: next
|
|
31
|
+
default: ""
|
|
32
|
+
- type: text
|
|
33
|
+
name: result
|
|
34
|
+
default: ""
|
|
35
|
+
required: true
|
|
36
|
+
showOnNode: true
|
|
37
|
+
---
|
|
38
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Built-in node: Context Bundle
|
|
3
|
+
runtime: native
|
|
4
|
+
type: provide
|
|
5
|
+
description: Compose knowledge, skills, workspace, and MCP resources into one strongly typed Context value that can cross Agent, Subflow, and While boundaries.
|
|
6
|
+
displayName: Context Bundle
|
|
7
|
+
ui:
|
|
8
|
+
card:
|
|
9
|
+
template: context-resource
|
|
10
|
+
icon: hub
|
|
11
|
+
tone: purple
|
|
12
|
+
sections:
|
|
13
|
+
- type: context
|
|
14
|
+
label: Context resources
|
|
15
|
+
inputs:
|
|
16
|
+
- name: knowledgeContext
|
|
17
|
+
label: Knowledge
|
|
18
|
+
- name: skillsContext
|
|
19
|
+
label: Skills
|
|
20
|
+
- name: workspaceContext
|
|
21
|
+
label: Workspace
|
|
22
|
+
- name: mcpContext
|
|
23
|
+
label: MCP
|
|
24
|
+
input:
|
|
25
|
+
- type: text
|
|
26
|
+
name: knowledgeContext
|
|
27
|
+
default: ""
|
|
28
|
+
- type: text
|
|
29
|
+
name: skillsContext
|
|
30
|
+
default: ""
|
|
31
|
+
- type: text
|
|
32
|
+
name: workspaceContext
|
|
33
|
+
default: ""
|
|
34
|
+
- type: text
|
|
35
|
+
name: mcpContext
|
|
36
|
+
default: ""
|
|
37
|
+
output:
|
|
38
|
+
- type: context
|
|
39
|
+
name: context
|
|
40
|
+
default: ""
|
|
41
|
+
required: true
|
|
42
|
+
showOnNode: true
|
|
43
|
+
---
|
|
44
|
+
Compose Context resources without putting their content or credentials into the business data flow.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Built-in node: Knowledge Context Resource
|
|
3
|
+
runtime: native
|
|
4
|
+
type: provide
|
|
5
|
+
description: Select one or more read-only knowledge sources by their authenticated Workspace catalog IDs. The runtime resolves IDs from the same catalog as GET /api/workspaces; paths and credentials are not stored in Flow DSL.
|
|
6
|
+
displayName: Knowledge Context
|
|
7
|
+
ui:
|
|
8
|
+
card:
|
|
9
|
+
template: context-resource
|
|
10
|
+
icon: menu_book
|
|
11
|
+
tone: cyan
|
|
12
|
+
sections:
|
|
13
|
+
- type: binding
|
|
14
|
+
label: Workspace IDs
|
|
15
|
+
input: workspaceIds
|
|
16
|
+
input:
|
|
17
|
+
- type: json
|
|
18
|
+
name: workspaceIds
|
|
19
|
+
default: "[]"
|
|
20
|
+
required: true
|
|
21
|
+
showOnNode: false
|
|
22
|
+
output:
|
|
23
|
+
- type: text
|
|
24
|
+
name: knowledgeContext
|
|
25
|
+
default: ""
|
|
26
|
+
required: true
|
|
27
|
+
showOnNode: true
|
|
28
|
+
---
|
|
29
|
+
Resolve authenticated Workspace catalog IDs into read-only knowledge sources for downstream Context consumers.
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Built-in node: Skills Context Resource
|
|
3
|
+
runtime: native
|
|
4
|
+
type: provide
|
|
5
|
+
description: Declare versioned skills as a reusable Context resource. This is a data resource and does not participate in the prev/next control chain.
|
|
6
|
+
displayName: Skills Context
|
|
7
|
+
ui:
|
|
8
|
+
card:
|
|
9
|
+
template: context-resource
|
|
10
|
+
icon: extension
|
|
11
|
+
tone: purple
|
|
12
|
+
sections:
|
|
13
|
+
- type: binding
|
|
14
|
+
label: Skills
|
|
15
|
+
input: skills
|
|
16
|
+
input:
|
|
17
|
+
- type: json
|
|
18
|
+
name: skills
|
|
19
|
+
default: "[]"
|
|
20
|
+
required: true
|
|
21
|
+
showOnNode: false
|
|
22
|
+
output:
|
|
23
|
+
- type: text
|
|
24
|
+
name: skillsContext
|
|
25
|
+
default: ""
|
|
26
|
+
required: true
|
|
27
|
+
showOnNode: true
|
|
28
|
+
---
|
|
29
|
+
Load the declared skills for downstream Context consumers.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Built-in node: Workspace Context Resource
|
|
3
|
+
runtime: native
|
|
4
|
+
type: provide
|
|
5
|
+
description: Bind one authenticated Workspace catalog entry as execution context. The Flow stores only workspaceId; paths and credentials remain runtime-owned.
|
|
6
|
+
displayName: Workspace Context
|
|
7
|
+
ui:
|
|
8
|
+
card:
|
|
9
|
+
template: context-resource
|
|
10
|
+
icon: folder_open
|
|
11
|
+
tone: green
|
|
12
|
+
sections:
|
|
13
|
+
- type: binding
|
|
14
|
+
label: Workspace ID
|
|
15
|
+
input: workspaceId
|
|
16
|
+
- type: binding
|
|
17
|
+
label: Access
|
|
18
|
+
input: access
|
|
19
|
+
input:
|
|
20
|
+
- type: text
|
|
21
|
+
name: workspaceId
|
|
22
|
+
default: current
|
|
23
|
+
required: true
|
|
24
|
+
showOnNode: false
|
|
25
|
+
- type: text
|
|
26
|
+
name: access
|
|
27
|
+
default: read-write
|
|
28
|
+
showOnNode: false
|
|
29
|
+
output:
|
|
30
|
+
- type: text
|
|
31
|
+
name: workspaceContext
|
|
32
|
+
default: ""
|
|
33
|
+
required: true
|
|
34
|
+
showOnNode: true
|
|
35
|
+
---
|
|
36
|
+
Resolve the runtime-owned Workspace catalog entry for downstream Context consumers.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:AI 转布尔(agent 执行)
|
|
3
|
+
runtime: degraded
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: "AI-powered boolean judgment: an agent evaluates the input value and writes true/false to prediction. Use for non-deterministic scenarios requiring semantic understanding."
|
|
6
|
+
displayName: Agent ToBool
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: text
|
|
12
|
+
name: value
|
|
13
|
+
default: ""
|
|
14
|
+
required: true
|
|
15
|
+
showOnNode: true
|
|
16
|
+
output:
|
|
17
|
+
- type: node
|
|
18
|
+
name: next
|
|
19
|
+
default: ""
|
|
20
|
+
- type: bool
|
|
21
|
+
name: prediction
|
|
22
|
+
default: ""
|
|
23
|
+
required: true
|
|
24
|
+
showOnNode: true
|
|
25
|
+
---
|
|
26
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:任一满足
|
|
3
|
+
runtime: none
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: Continues to next when any upstream input is ready
|
|
6
|
+
displayName: AnyOne
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev1
|
|
10
|
+
default: ""
|
|
11
|
+
- type: node
|
|
12
|
+
name: prev2
|
|
13
|
+
default: ""
|
|
14
|
+
output:
|
|
15
|
+
- type: node
|
|
16
|
+
name: next
|
|
17
|
+
default: ""
|
|
18
|
+
---
|
|
19
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:取消判断
|
|
3
|
+
runtime: none
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: Check whether the current wait/run has been cancelled. Use cancelled output with control_if.
|
|
6
|
+
displayName: Cancel Check
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: text
|
|
12
|
+
name: waitId
|
|
13
|
+
default: ""
|
|
14
|
+
required: true
|
|
15
|
+
showOnNode: true
|
|
16
|
+
output:
|
|
17
|
+
- type: node
|
|
18
|
+
name: next
|
|
19
|
+
default: ""
|
|
20
|
+
- type: bool
|
|
21
|
+
name: cancelled
|
|
22
|
+
default: ""
|
|
23
|
+
required: true
|
|
24
|
+
showOnNode: true
|
|
25
|
+
---
|
|
26
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:加载知识库
|
|
3
|
+
runtime: native
|
|
4
|
+
type: control
|
|
5
|
+
description: |
|
|
6
|
+
Load one or more read-only knowledge sources for downstream Agent nodes.
|
|
7
|
+
|
|
8
|
+
This node does not change the runtime cwd. It publishes `knowledgeContext`
|
|
9
|
+
for reading/searching referenced repos or folders. `workspaceContext` and
|
|
10
|
+
`cwd` are retained as legacy compatibility outputs for the first source.
|
|
11
|
+
displayName: 加载知识库
|
|
12
|
+
input:
|
|
13
|
+
- type: node
|
|
14
|
+
name: prev
|
|
15
|
+
default: ""
|
|
16
|
+
- type: text
|
|
17
|
+
name: path
|
|
18
|
+
default: ""
|
|
19
|
+
showOnNode: false
|
|
20
|
+
- type: text
|
|
21
|
+
name: label
|
|
22
|
+
default: ""
|
|
23
|
+
showOnNode: false
|
|
24
|
+
- type: text
|
|
25
|
+
name: knowledgeContext
|
|
26
|
+
default: ""
|
|
27
|
+
showOnNode: false
|
|
28
|
+
- type: text
|
|
29
|
+
name: workspaceContext
|
|
30
|
+
default: ""
|
|
31
|
+
showOnNode: false
|
|
32
|
+
output:
|
|
33
|
+
- type: node
|
|
34
|
+
name: next
|
|
35
|
+
default: ""
|
|
36
|
+
- type: text
|
|
37
|
+
name: knowledgeContext
|
|
38
|
+
default: ""
|
|
39
|
+
required: true
|
|
40
|
+
showOnNode: true
|
|
41
|
+
- type: text
|
|
42
|
+
name: workspaceContext
|
|
43
|
+
default: ""
|
|
44
|
+
showOnNode: false
|
|
45
|
+
- type: file
|
|
46
|
+
name: cwd
|
|
47
|
+
default: ""
|
|
48
|
+
showOnNode: false
|
|
49
|
+
---
|
|
50
|
+
Load selected knowledge sources for downstream agents.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:延迟等待
|
|
3
|
+
runtime: none
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: Persistently wait for a relative duration, then continue when scheduler resumes this run.
|
|
6
|
+
displayName: Delay
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: text
|
|
12
|
+
name: duration
|
|
13
|
+
default: "10m"
|
|
14
|
+
required: true
|
|
15
|
+
showOnNode: true
|
|
16
|
+
output:
|
|
17
|
+
- type: node
|
|
18
|
+
name: next
|
|
19
|
+
default: ""
|
|
20
|
+
- type: text
|
|
21
|
+
name: waitId
|
|
22
|
+
default: ""
|
|
23
|
+
required: true
|
|
24
|
+
showOnNode: true
|
|
25
|
+
- type: text
|
|
26
|
+
name: wakeAt
|
|
27
|
+
default: ""
|
|
28
|
+
required: true
|
|
29
|
+
showOnNode: true
|
|
30
|
+
---
|
|
31
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:If 分支
|
|
3
|
+
runtime: native
|
|
4
|
+
description: Has exactly one bool type input. Continues to next1 if true, next2 if false
|
|
5
|
+
displayName: If
|
|
6
|
+
input:
|
|
7
|
+
- type: node
|
|
8
|
+
name: prev
|
|
9
|
+
default: ""
|
|
10
|
+
- type: bool
|
|
11
|
+
name: prediction
|
|
12
|
+
default: ""
|
|
13
|
+
output:
|
|
14
|
+
- type: node
|
|
15
|
+
name: next1
|
|
16
|
+
default: ""
|
|
17
|
+
- type: node
|
|
18
|
+
name: next2
|
|
19
|
+
default: ""
|
|
20
|
+
---
|
|
21
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:间隔循环
|
|
3
|
+
runtime: none
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: Wait by interval and branch to continue, done, timeout, or cancelled for watch-style flows.
|
|
6
|
+
displayName: IntervalLoop
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: bool
|
|
12
|
+
name: done
|
|
13
|
+
default: ""
|
|
14
|
+
- type: bool
|
|
15
|
+
name: cancelled
|
|
16
|
+
default: ""
|
|
17
|
+
- type: text
|
|
18
|
+
name: interval
|
|
19
|
+
default: "10m"
|
|
20
|
+
- type: text
|
|
21
|
+
name: startAt
|
|
22
|
+
default: ""
|
|
23
|
+
- type: text
|
|
24
|
+
name: duration
|
|
25
|
+
default: ""
|
|
26
|
+
- type: text
|
|
27
|
+
name: deadlineAt
|
|
28
|
+
default: ""
|
|
29
|
+
- type: text
|
|
30
|
+
name: timezone
|
|
31
|
+
default: "Asia/Shanghai"
|
|
32
|
+
output:
|
|
33
|
+
- type: node
|
|
34
|
+
name: continue
|
|
35
|
+
default: ""
|
|
36
|
+
- type: node
|
|
37
|
+
name: done
|
|
38
|
+
default: ""
|
|
39
|
+
- type: node
|
|
40
|
+
name: timeout
|
|
41
|
+
default: ""
|
|
42
|
+
- type: node
|
|
43
|
+
name: cancelled
|
|
44
|
+
default: ""
|
|
45
|
+
- type: text
|
|
46
|
+
name: wakeAt
|
|
47
|
+
default: ""
|
|
48
|
+
- type: bool
|
|
49
|
+
name: expired
|
|
50
|
+
default: ""
|
|
51
|
+
- type: text
|
|
52
|
+
name: deadlineAt
|
|
53
|
+
default: ""
|
|
54
|
+
---
|
|
55
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:Load MCP
|
|
3
|
+
runtime: native
|
|
4
|
+
type: control
|
|
5
|
+
description: 加载所选 Cursor MCP Server 的工具清单,通过 mcpContext 传给下游 agent 节点。
|
|
6
|
+
displayName: Load MCP
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: text
|
|
12
|
+
name: serverNames
|
|
13
|
+
default: ""
|
|
14
|
+
showOnNode: false
|
|
15
|
+
output:
|
|
16
|
+
- type: node
|
|
17
|
+
name: next
|
|
18
|
+
default: ""
|
|
19
|
+
- type: text
|
|
20
|
+
name: mcpContext
|
|
21
|
+
default: ""
|
|
22
|
+
showOnNode: true
|
|
23
|
+
---
|
|
24
|
+
Load selected Cursor MCP server tool manifests for downstream agent nodes.
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:Load Skills
|
|
3
|
+
runtime: native
|
|
4
|
+
type: control
|
|
5
|
+
description: |
|
|
6
|
+
Load the currently selected Workspace skill collection for downstream agent nodes.
|
|
7
|
+
|
|
8
|
+
Set `skillKeys` to skill names or registry keys, then connect `skillsContext` to
|
|
9
|
+
downstream agent/tool nodes. Loaded skills are injected into the node prompt under
|
|
10
|
+
"已加载 Skills"。
|
|
11
|
+
|
|
12
|
+
Skill key examples:
|
|
13
|
+
- `agentflow-flow-add-instances`
|
|
14
|
+
- `workspace-agents:agentflow-flow-edit-node-fields`
|
|
15
|
+
- `global-codex:some-skill`
|
|
16
|
+
displayName: Load Skills
|
|
17
|
+
input:
|
|
18
|
+
- type: node
|
|
19
|
+
name: prev
|
|
20
|
+
default: ""
|
|
21
|
+
- type: text
|
|
22
|
+
name: skillKeys
|
|
23
|
+
default: ""
|
|
24
|
+
required: true
|
|
25
|
+
showOnNode: true
|
|
26
|
+
output:
|
|
27
|
+
- type: node
|
|
28
|
+
name: next
|
|
29
|
+
default: ""
|
|
30
|
+
- type: text
|
|
31
|
+
name: skillsContext
|
|
32
|
+
default: ""
|
|
33
|
+
showOnNode: true
|
|
34
|
+
---
|
|
35
|
+
Load public skills `${skillKeys}` and pass them to downstream nodes.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:解析 JSON
|
|
3
|
+
runtime: native
|
|
4
|
+
type: control
|
|
5
|
+
description: 显式解析并校验文本 JSON,成功后输出 json 类型;解析失败会终止本次运行。
|
|
6
|
+
displayName: Parse JSON
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: text
|
|
12
|
+
name: value
|
|
13
|
+
default: ""
|
|
14
|
+
required: true
|
|
15
|
+
showOnNode: true
|
|
16
|
+
output:
|
|
17
|
+
- type: node
|
|
18
|
+
name: next
|
|
19
|
+
default: ""
|
|
20
|
+
- type: json
|
|
21
|
+
name: result
|
|
22
|
+
default: "null"
|
|
23
|
+
showOnNode: true
|
|
24
|
+
---
|
|
25
|
+
Parse a text value as JSON and expose the validated result through a typed output.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:调用子流程
|
|
3
|
+
runtime: native
|
|
4
|
+
type: control
|
|
5
|
+
palette: hidden
|
|
6
|
+
description: |
|
|
7
|
+
调用 workspace.flow.js 中由 flow.subflow 声明的同 Workspace 子流程。
|
|
8
|
+
输入和输出槽来自子流程契约;每次调用使用独立调用帧,内部节点仍按标准 AgentFlow DSL 和运行时执行。
|
|
9
|
+
displayName: Call Subflow
|
|
10
|
+
ui:
|
|
11
|
+
card:
|
|
12
|
+
template: details
|
|
13
|
+
icon: account_tree
|
|
14
|
+
tone: purple
|
|
15
|
+
sections:
|
|
16
|
+
- type: subflow
|
|
17
|
+
label: Called subflow
|
|
18
|
+
input:
|
|
19
|
+
- type: node
|
|
20
|
+
name: prev
|
|
21
|
+
default: ""
|
|
22
|
+
output:
|
|
23
|
+
- type: node
|
|
24
|
+
name: next
|
|
25
|
+
default: ""
|
|
26
|
+
---
|
|
27
|
+
Execute the referenced inline subflow using its declared input and output contract.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:代码转布尔(本地脚本执行,★ 可扩展输入)
|
|
3
|
+
runtime: none
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: "Script-based boolean conversion: executes script to produce true/false prediction. Like tool_nodejs but enforces bool output. Must have script field."
|
|
6
|
+
displayName: Code ToBool
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: text
|
|
12
|
+
name: value
|
|
13
|
+
default: ""
|
|
14
|
+
required: true
|
|
15
|
+
showOnNode: true
|
|
16
|
+
output:
|
|
17
|
+
- type: node
|
|
18
|
+
name: next
|
|
19
|
+
default: ""
|
|
20
|
+
- type: bool
|
|
21
|
+
name: prediction
|
|
22
|
+
default: ""
|
|
23
|
+
required: true
|
|
24
|
+
showOnNode: true
|
|
25
|
+
extensible: true
|
|
26
|
+
---
|
|
27
|
+
${USER_PROMPT}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
---
|
|
2
|
+
# Built-in node: User Workspace
|
|
3
|
+
runtime: native
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: Output a workspace context pointing to the current user's home directory.
|
|
6
|
+
displayName: User Workspace
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
output:
|
|
12
|
+
- type: node
|
|
13
|
+
name: next
|
|
14
|
+
default: ""
|
|
15
|
+
- type: text
|
|
16
|
+
name: workspaceContext
|
|
17
|
+
default: ""
|
|
18
|
+
required: true
|
|
19
|
+
showOnNode: true
|
|
20
|
+
- type: file
|
|
21
|
+
name: cwd
|
|
22
|
+
default: ""
|
|
23
|
+
---
|
|
24
|
+
Use the current user's home directory as downstream workspace context.
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
# 内置节点:等待到指定时间
|
|
3
|
+
runtime: none
|
|
4
|
+
palette: hidden
|
|
5
|
+
description: Persistently wait until an absolute time, then continue when scheduler resumes this run.
|
|
6
|
+
displayName: WaitUntil
|
|
7
|
+
input:
|
|
8
|
+
- type: node
|
|
9
|
+
name: prev
|
|
10
|
+
default: ""
|
|
11
|
+
- type: text
|
|
12
|
+
name: until
|
|
13
|
+
default: ""
|
|
14
|
+
required: true
|
|
15
|
+
showOnNode: true
|
|
16
|
+
- type: text
|
|
17
|
+
name: timezone
|
|
18
|
+
default: "Asia/Shanghai"
|
|
19
|
+
output:
|
|
20
|
+
- type: node
|
|
21
|
+
name: next
|
|
22
|
+
default: ""
|
|
23
|
+
- type: text
|
|
24
|
+
name: waitId
|
|
25
|
+
default: ""
|
|
26
|
+
required: true
|
|
27
|
+
showOnNode: true
|
|
28
|
+
- type: text
|
|
29
|
+
name: wakeAt
|
|
30
|
+
default: ""
|
|
31
|
+
required: true
|
|
32
|
+
showOnNode: true
|
|
33
|
+
---
|
|
34
|
+
${USER_PROMPT}
|