mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
various changes
This commit is contained in:
146
workflow/plugins/python/backend/nodes.json
Normal file
146
workflow/plugins/python/backend/nodes.json
Normal file
@@ -0,0 +1,146 @@
|
||||
{
|
||||
"$schema": "../../../../schemas/plugin-nodes.schema.json",
|
||||
"category": {
|
||||
"id": "backend",
|
||||
"name": "Backend Bootstrap",
|
||||
"color": "#34495e",
|
||||
"icon": "server"
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"id": "backend.load_env",
|
||||
"name": "Load Environment",
|
||||
"description": "Load environment variables from .env",
|
||||
"icon": "key",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "path": ".env" }
|
||||
},
|
||||
{
|
||||
"id": "backend.parse_cli_args",
|
||||
"name": "Parse CLI Args",
|
||||
"description": "Parse command line arguments",
|
||||
"icon": "terminal",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": {}
|
||||
},
|
||||
{
|
||||
"id": "backend.configure_logging",
|
||||
"name": "Configure Logging",
|
||||
"description": "Set up logging configuration",
|
||||
"icon": "file-text",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "level": "INFO", "format": "%(asctime)s - %(name)s - %(levelname)s - %(message)s" }
|
||||
},
|
||||
{
|
||||
"id": "backend.load_messages",
|
||||
"name": "Load Messages",
|
||||
"description": "Load conversation messages from storage",
|
||||
"icon": "message-circle",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": {}
|
||||
},
|
||||
{
|
||||
"id": "backend.load_metadata",
|
||||
"name": "Load Metadata",
|
||||
"description": "Load workflow metadata",
|
||||
"icon": "info",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": {}
|
||||
},
|
||||
{
|
||||
"id": "backend.load_prompt",
|
||||
"name": "Load Prompt",
|
||||
"description": "Load system prompt from file",
|
||||
"icon": "file-text",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "path": "" }
|
||||
},
|
||||
{
|
||||
"id": "backend.create_github",
|
||||
"name": "Create GitHub Client",
|
||||
"description": "Initialize GitHub API client",
|
||||
"icon": "github",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "tokenEnvVar": "GITHUB_TOKEN" }
|
||||
},
|
||||
{
|
||||
"id": "backend.create_openai",
|
||||
"name": "Create OpenAI Client",
|
||||
"description": "Initialize OpenAI API client",
|
||||
"icon": "cpu",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "apiKeyEnvVar": "OPENAI_API_KEY", "model": "gpt-4" }
|
||||
},
|
||||
{
|
||||
"id": "backend.create_discord",
|
||||
"name": "Create Discord Client",
|
||||
"description": "Initialize Discord bot client",
|
||||
"icon": "message-circle",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "tokenEnvVar": "DISCORD_TOKEN" }
|
||||
},
|
||||
{
|
||||
"id": "backend.create_slack",
|
||||
"name": "Create Slack Client",
|
||||
"description": "Initialize Slack API client",
|
||||
"icon": "slack",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "tokenEnvVar": "SLACK_TOKEN" }
|
||||
},
|
||||
{
|
||||
"id": "backend.load_tools",
|
||||
"name": "Load Tools",
|
||||
"description": "Load tool definitions for AI",
|
||||
"icon": "tool",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "toolsPath": "" }
|
||||
},
|
||||
{
|
||||
"id": "backend.load_tool_registry",
|
||||
"name": "Load Tool Registry",
|
||||
"description": "Load tool registry configuration",
|
||||
"icon": "list",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": {}
|
||||
},
|
||||
{
|
||||
"id": "backend.load_tool_policies",
|
||||
"name": "Load Tool Policies",
|
||||
"description": "Load tool execution policies",
|
||||
"icon": "shield",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": {}
|
||||
},
|
||||
{
|
||||
"id": "backend.build_tool_map",
|
||||
"name": "Build Tool Map",
|
||||
"description": "Build mapping of tool names to implementations",
|
||||
"icon": "map",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": {}
|
||||
},
|
||||
{
|
||||
"id": "backend.load_plugins",
|
||||
"name": "Load Plugins",
|
||||
"description": "Dynamically load workflow plugins",
|
||||
"icon": "plug",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "pluginsPath": "workflow/plugins" }
|
||||
}
|
||||
]
|
||||
}
|
||||
74
workflow/plugins/python/core/nodes.json
Normal file
74
workflow/plugins/python/core/nodes.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"$schema": "../../../../schemas/plugin-nodes.schema.json",
|
||||
"category": {
|
||||
"id": "core",
|
||||
"name": "AI Core",
|
||||
"color": "#e74c3c",
|
||||
"icon": "cpu"
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"id": "core.ai_request",
|
||||
"name": "AI Request",
|
||||
"description": "Send request to AI model (OpenAI, Anthropic)",
|
||||
"icon": "message-square",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "error"],
|
||||
"defaultConfig": { "model": "gpt-4", "temperature": 0.7, "maxTokens": 4096 }
|
||||
},
|
||||
{
|
||||
"id": "core.run_tool_calls",
|
||||
"name": "Run Tool Calls",
|
||||
"description": "Execute tool calls from AI response",
|
||||
"icon": "play-circle",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "error"],
|
||||
"defaultConfig": { "parallel": false, "timeout": 30000 }
|
||||
},
|
||||
{
|
||||
"id": "core.append_tool_results",
|
||||
"name": "Append Tool Results",
|
||||
"description": "Append tool execution results to messages",
|
||||
"icon": "plus-circle",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": {}
|
||||
},
|
||||
{
|
||||
"id": "core.seed_messages",
|
||||
"name": "Seed Messages",
|
||||
"description": "Initialize conversation with system prompt",
|
||||
"icon": "file-text",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "systemPrompt": "" }
|
||||
},
|
||||
{
|
||||
"id": "core.append_user_instruction",
|
||||
"name": "Append User Instruction",
|
||||
"description": "Append user instruction to message list",
|
||||
"icon": "user",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "instruction": "" }
|
||||
},
|
||||
{
|
||||
"id": "core.append_context_message",
|
||||
"name": "Append Context",
|
||||
"description": "Append context information as system message",
|
||||
"icon": "info",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "context": "" }
|
||||
},
|
||||
{
|
||||
"id": "core.load_context",
|
||||
"name": "Load Context",
|
||||
"description": "Load SDLC context from ROADMAP.md and GitHub",
|
||||
"icon": "download",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "sources": ["roadmap", "github"] }
|
||||
}
|
||||
]
|
||||
}
|
||||
56
workflow/plugins/python/test/nodes.json
Normal file
56
workflow/plugins/python/test/nodes.json
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"$schema": "../../../../schemas/plugin-nodes.schema.json",
|
||||
"category": {
|
||||
"id": "test",
|
||||
"name": "Testing",
|
||||
"color": "#9b59b6",
|
||||
"icon": "check-circle"
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"id": "test.run_suite",
|
||||
"name": "Run Test Suite",
|
||||
"description": "Run a complete test suite",
|
||||
"icon": "play-circle",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["pass", "fail"],
|
||||
"defaultConfig": { "suitePath": "", "timeout": 60000 }
|
||||
},
|
||||
{
|
||||
"id": "test.assert_true",
|
||||
"name": "Assert True",
|
||||
"description": "Assert condition is true",
|
||||
"icon": "check",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["pass", "fail"],
|
||||
"defaultConfig": { "condition": "" }
|
||||
},
|
||||
{
|
||||
"id": "test.assert_false",
|
||||
"name": "Assert False",
|
||||
"description": "Assert condition is false",
|
||||
"icon": "x",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["pass", "fail"],
|
||||
"defaultConfig": { "condition": "" }
|
||||
},
|
||||
{
|
||||
"id": "test.assert_equals",
|
||||
"name": "Assert Equals",
|
||||
"description": "Assert two values are equal",
|
||||
"icon": "check-square",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["pass", "fail"],
|
||||
"defaultConfig": { "actual": "", "expected": "" }
|
||||
},
|
||||
{
|
||||
"id": "test.assert_exists",
|
||||
"name": "Assert Exists",
|
||||
"description": "Assert value exists (not null/undefined)",
|
||||
"icon": "check-circle",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["pass", "fail"],
|
||||
"defaultConfig": { "value": "" }
|
||||
}
|
||||
]
|
||||
}
|
||||
74
workflow/plugins/python/tools/nodes.json
Normal file
74
workflow/plugins/python/tools/nodes.json
Normal file
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"$schema": "../../../../schemas/plugin-nodes.schema.json",
|
||||
"category": {
|
||||
"id": "tools",
|
||||
"name": "Dev Tools",
|
||||
"color": "#3498db",
|
||||
"icon": "terminal"
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"id": "tools.create_branch",
|
||||
"name": "Create Branch",
|
||||
"description": "Create a Git branch from base",
|
||||
"icon": "git-branch",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "error"],
|
||||
"defaultConfig": { "baseBranch": "main", "branchName": "" }
|
||||
},
|
||||
{
|
||||
"id": "tools.create_pull_request",
|
||||
"name": "Create PR",
|
||||
"description": "Create a pull request with title and body",
|
||||
"icon": "git-pull-request",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "error"],
|
||||
"defaultConfig": { "title": "", "body": "", "base": "main" }
|
||||
},
|
||||
{
|
||||
"id": "tools.list_files",
|
||||
"name": "List Files",
|
||||
"description": "List files in a directory",
|
||||
"icon": "folder",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "path": ".", "recursive": false }
|
||||
},
|
||||
{
|
||||
"id": "tools.read_file",
|
||||
"name": "Read File",
|
||||
"description": "Read contents of a file",
|
||||
"icon": "file",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "error"],
|
||||
"defaultConfig": { "path": "" }
|
||||
},
|
||||
{
|
||||
"id": "tools.run_docker",
|
||||
"name": "Run Docker",
|
||||
"description": "Run command in Docker container",
|
||||
"icon": "box",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "error"],
|
||||
"defaultConfig": { "image": "", "command": "", "volumes": [] }
|
||||
},
|
||||
{
|
||||
"id": "tools.run_lint",
|
||||
"name": "Run Lint",
|
||||
"description": "Run linter on codebase",
|
||||
"icon": "check-square",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "error"],
|
||||
"defaultConfig": { "path": ".", "fix": false }
|
||||
},
|
||||
{
|
||||
"id": "tools.run_tests",
|
||||
"name": "Run Tests",
|
||||
"description": "Run tests in a directory",
|
||||
"icon": "play",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["pass", "fail"],
|
||||
"defaultConfig": { "path": ".", "pattern": "**/*.test.*" }
|
||||
}
|
||||
]
|
||||
}
|
||||
83
workflow/plugins/python/web/nodes.json
Normal file
83
workflow/plugins/python/web/nodes.json
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"$schema": "../../../../schemas/plugin-nodes.schema.json",
|
||||
"category": {
|
||||
"id": "web",
|
||||
"name": "Web Server",
|
||||
"color": "#2ecc71",
|
||||
"icon": "globe"
|
||||
},
|
||||
"nodes": [
|
||||
{
|
||||
"id": "web.create_flask_app",
|
||||
"name": "Create Flask App",
|
||||
"description": "Initialize Flask application instance",
|
||||
"icon": "server",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "name": "__main__", "config": {} }
|
||||
},
|
||||
{
|
||||
"id": "web.register_routes",
|
||||
"name": "Register Routes",
|
||||
"description": "Register API routes from JSON configuration",
|
||||
"icon": "map",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "blueprint_name": "api", "routes": [] }
|
||||
},
|
||||
{
|
||||
"id": "web.start_server",
|
||||
"name": "Start Server",
|
||||
"description": "Start Flask development server",
|
||||
"icon": "play",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "host": "0.0.0.0", "port": 8000, "debug": false }
|
||||
},
|
||||
{
|
||||
"id": "web.build_prompt_yaml",
|
||||
"name": "Build Prompt YAML",
|
||||
"description": "Build YAML configuration for prompts",
|
||||
"icon": "file-text",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "template": "" }
|
||||
},
|
||||
{
|
||||
"id": "web.write_prompt",
|
||||
"name": "Write Prompt",
|
||||
"description": "Write prompt to storage",
|
||||
"icon": "save",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "path": "" }
|
||||
},
|
||||
{
|
||||
"id": "web.get_prompt_content",
|
||||
"name": "Get Prompt Content",
|
||||
"description": "Retrieve prompt content from storage",
|
||||
"icon": "file",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main", "notFound"],
|
||||
"defaultConfig": { "promptId": "" }
|
||||
},
|
||||
{
|
||||
"id": "web.get_env_vars",
|
||||
"name": "Get Env Vars",
|
||||
"description": "Load environment variables",
|
||||
"icon": "key",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "prefix": "" }
|
||||
},
|
||||
{
|
||||
"id": "web.persist_env_vars",
|
||||
"name": "Persist Env Vars",
|
||||
"description": "Save environment variables to .env file",
|
||||
"icon": "save",
|
||||
"inputs": ["main"],
|
||||
"outputs": ["main"],
|
||||
"defaultConfig": { "path": ".env" }
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user