mirror of
https://github.com/johndoe6345789/AutoMetabuilder.git
synced 2026-04-24 13:54:59 +00:00
- Implement core components: CLI argument parsing, environment loading, GitHub service creation, and logging configuration. - Add support for OpenAI client setup and model resolution. - Develop SDLC context loader from GitHub and repository files. - Implement workflow context and engine builders. - Introduce major workflow packages: `game_tick_loop` and `contextual_iterative_loop`. - Update localization files with new package descriptions and labels. - Streamline web navigation by loading items from a dedicated JSON file.
565 lines
16 KiB
JSON
565 lines
16 KiB
JSON
{
|
|
"tools_path": "tools.json",
|
|
"workflow_path": "workflow.json",
|
|
"workflow_packages_path": "workflow_packages",
|
|
"messages": {
|
|
"en": "messages_en.json",
|
|
"es": "messages_es.json",
|
|
"fr": "messages_fr.json",
|
|
"nl": "messages_nl.json",
|
|
"pirate": "messages_pirate.json"
|
|
},
|
|
"project_name": "AutoMetabuilder",
|
|
"version": "1.0.0",
|
|
"settings_descriptions": {
|
|
"GITHUB_TOKEN": {
|
|
"label": "meta.settings.github_token.label",
|
|
"description": "meta.settings.github_token.description",
|
|
"type": "password",
|
|
"required": true
|
|
},
|
|
"GITHUB_REPOSITORY": {
|
|
"label": "meta.settings.github_repository.label",
|
|
"description": "meta.settings.github_repository.description",
|
|
"type": "text",
|
|
"placeholder": "meta.settings.github_repository.placeholder"
|
|
},
|
|
"OPENAI_API_KEY": {
|
|
"label": "meta.settings.openai_api_key.label",
|
|
"description": "meta.settings.openai_api_key.description",
|
|
"type": "password",
|
|
"required": true
|
|
},
|
|
"LITELLM_API_KEY": {
|
|
"label": "meta.settings.litellm_api_key.label",
|
|
"description": "meta.settings.litellm_api_key.description",
|
|
"type": "password"
|
|
},
|
|
"LOG_LEVEL": {
|
|
"label": "meta.settings.log_level.label",
|
|
"description": "meta.settings.log_level.description",
|
|
"type": "select",
|
|
"options": [
|
|
"TRACE",
|
|
"DEBUG",
|
|
"INFO",
|
|
"WARNING",
|
|
"ERROR"
|
|
],
|
|
"option_labels": [
|
|
"meta.settings.log_level.options.trace",
|
|
"meta.settings.log_level.options.debug",
|
|
"meta.settings.log_level.options.info",
|
|
"meta.settings.log_level.options.warning",
|
|
"meta.settings.log_level.options.error"
|
|
]
|
|
},
|
|
"APP_LANG": {
|
|
"label": "meta.settings.app_lang.label",
|
|
"description": "meta.settings.app_lang.description",
|
|
"type": "select",
|
|
"options": [
|
|
"en",
|
|
"es",
|
|
"fr",
|
|
"nl",
|
|
"pirate"
|
|
],
|
|
"option_labels": [
|
|
"meta.settings.app_lang.options.en",
|
|
"meta.settings.app_lang.options.es",
|
|
"meta.settings.app_lang.options.fr",
|
|
"meta.settings.app_lang.options.nl",
|
|
"meta.settings.app_lang.options.pirate"
|
|
]
|
|
},
|
|
"PROMPT_PATH": {
|
|
"label": "meta.settings.prompt_path.label",
|
|
"description": "meta.settings.prompt_path.description",
|
|
"type": "text",
|
|
"default": "prompt.yml"
|
|
},
|
|
"WEB_USER": {
|
|
"label": "meta.settings.web_user.label",
|
|
"description": "meta.settings.web_user.description",
|
|
"type": "text"
|
|
},
|
|
"WEB_PASSWORD": {
|
|
"label": "meta.settings.web_password.label",
|
|
"description": "meta.settings.web_password.description",
|
|
"type": "password"
|
|
}
|
|
},
|
|
"suggestions": {
|
|
"languages": [
|
|
"en",
|
|
"es",
|
|
"fr",
|
|
"nl",
|
|
"de",
|
|
"it",
|
|
"ja",
|
|
"zh",
|
|
"pirate"
|
|
],
|
|
"env_keys": [
|
|
"GITHUB_TOKEN",
|
|
"GITHUB_REPOSITORY",
|
|
"OPENAI_API_KEY",
|
|
"LITELLM_API_KEY",
|
|
"LOG_LEVEL",
|
|
"APP_LANG",
|
|
"PROMPT_PATH",
|
|
"WEB_USER",
|
|
"WEB_PASSWORD"
|
|
],
|
|
"env_values": [
|
|
"TRACE",
|
|
"INFO",
|
|
"DEBUG",
|
|
"WARNING",
|
|
"ERROR"
|
|
],
|
|
"task_names": [
|
|
"Initialize Project",
|
|
"Analyze Requirements",
|
|
"Generate Code",
|
|
"Run Tests",
|
|
"Deploy",
|
|
"Iterative Refinement"
|
|
]
|
|
},
|
|
"workflow_plugins": {
|
|
"core.load_context": {
|
|
"label": "meta.plugins.core_load_context.label",
|
|
"inputs": {},
|
|
"outputs": {
|
|
"context": {
|
|
"label": "meta.plugins.core_load_context.outputs.context.label",
|
|
"type": "text",
|
|
"default": "sdlc_context"
|
|
}
|
|
}
|
|
},
|
|
"core.seed_messages": {
|
|
"label": "meta.plugins.core_seed_messages.label",
|
|
"inputs": {},
|
|
"outputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_seed_messages.outputs.messages.label",
|
|
"type": "text",
|
|
"default": "messages"
|
|
}
|
|
}
|
|
},
|
|
"core.append_context_message": {
|
|
"label": "meta.plugins.core_append_context_message.label",
|
|
"inputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_append_context_message.inputs.messages.label",
|
|
"type": "text",
|
|
"default": "$messages"
|
|
},
|
|
"context": {
|
|
"label": "meta.plugins.core_append_context_message.inputs.context.label",
|
|
"type": "text",
|
|
"default": "$sdlc_context"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_append_context_message.outputs.messages.label",
|
|
"type": "text",
|
|
"default": "messages"
|
|
}
|
|
}
|
|
},
|
|
"core.append_user_instruction": {
|
|
"label": "meta.plugins.core_append_user_instruction.label",
|
|
"inputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_append_user_instruction.inputs.messages.label",
|
|
"type": "text",
|
|
"default": "$messages"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_append_user_instruction.outputs.messages.label",
|
|
"type": "text",
|
|
"default": "messages"
|
|
}
|
|
}
|
|
},
|
|
"core.ai_request": {
|
|
"label": "meta.plugins.core_ai_request.label",
|
|
"inputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_ai_request.inputs.messages.label",
|
|
"type": "text",
|
|
"default": "$messages"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"response": {
|
|
"label": "meta.plugins.core_ai_request.outputs.response.label",
|
|
"type": "text",
|
|
"default": "llm_response"
|
|
},
|
|
"has_tool_calls": {
|
|
"label": "meta.plugins.core_ai_request.outputs.has_tool_calls.label",
|
|
"type": "text",
|
|
"default": "has_tool_calls"
|
|
},
|
|
"tool_calls_count": {
|
|
"label": "meta.plugins.core_ai_request.outputs.tool_calls_count.label",
|
|
"type": "text",
|
|
"default": "tool_calls_count"
|
|
}
|
|
}
|
|
},
|
|
"core.run_tool_calls": {
|
|
"label": "meta.plugins.core_run_tool_calls.label",
|
|
"inputs": {
|
|
"response": {
|
|
"label": "meta.plugins.core_run_tool_calls.inputs.response.label",
|
|
"type": "text",
|
|
"default": "$llm_response"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"tool_results": {
|
|
"label": "meta.plugins.core_run_tool_calls.outputs.tool_results.label",
|
|
"type": "text",
|
|
"default": "tool_results"
|
|
},
|
|
"no_tool_calls": {
|
|
"label": "meta.plugins.core_run_tool_calls.outputs.no_tool_calls.label",
|
|
"type": "text",
|
|
"default": "no_tool_calls"
|
|
}
|
|
}
|
|
},
|
|
"core.append_tool_results": {
|
|
"label": "meta.plugins.core_append_tool_results.label",
|
|
"inputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_append_tool_results.inputs.messages.label",
|
|
"type": "text",
|
|
"default": "$messages"
|
|
},
|
|
"tool_results": {
|
|
"label": "meta.plugins.core_append_tool_results.inputs.tool_results.label",
|
|
"type": "text",
|
|
"default": "$tool_results"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"messages": {
|
|
"label": "meta.plugins.core_append_tool_results.outputs.messages.label",
|
|
"type": "text",
|
|
"default": "messages"
|
|
}
|
|
}
|
|
},
|
|
"tools.list_files": {
|
|
"label": "meta.plugins.tools_list_files.label",
|
|
"inputs": {
|
|
"path": {
|
|
"label": "meta.plugins.tools_list_files.inputs.path.label",
|
|
"type": "text",
|
|
"default": "."
|
|
}
|
|
},
|
|
"outputs": {
|
|
"files": {
|
|
"label": "meta.plugins.tools_list_files.outputs.files.label",
|
|
"type": "text",
|
|
"default": "file_list"
|
|
}
|
|
}
|
|
},
|
|
"tools.read_file": {
|
|
"label": "meta.plugins.tools_read_file.label",
|
|
"inputs": {
|
|
"path": {
|
|
"label": "meta.plugins.tools_read_file.inputs.path.label",
|
|
"type": "text",
|
|
"default": "README.md"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"content": {
|
|
"label": "meta.plugins.tools_read_file.outputs.content.label",
|
|
"type": "text",
|
|
"default": "file_content"
|
|
}
|
|
}
|
|
},
|
|
"tools.run_tests": {
|
|
"label": "meta.plugins.tools_run_tests.label",
|
|
"inputs": {
|
|
"path": {
|
|
"label": "meta.plugins.tools_run_tests.inputs.path.label",
|
|
"type": "text",
|
|
"default": "tests"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"results": {
|
|
"label": "meta.plugins.tools_run_tests.outputs.results.label",
|
|
"type": "text",
|
|
"default": "test_results"
|
|
}
|
|
}
|
|
},
|
|
"tools.run_lint": {
|
|
"label": "meta.plugins.tools_run_lint.label",
|
|
"inputs": {
|
|
"path": {
|
|
"label": "meta.plugins.tools_run_lint.inputs.path.label",
|
|
"type": "text",
|
|
"default": "src"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"results": {
|
|
"label": "meta.plugins.tools_run_lint.outputs.results.label",
|
|
"type": "text",
|
|
"default": "lint_results"
|
|
}
|
|
}
|
|
},
|
|
"tools.create_branch": {
|
|
"label": "meta.plugins.tools_create_branch.label",
|
|
"inputs": {
|
|
"branch_name": {
|
|
"label": "meta.plugins.tools_create_branch.inputs.branch_name.label",
|
|
"type": "text",
|
|
"default": "feature/auto-change"
|
|
},
|
|
"base_branch": {
|
|
"label": "meta.plugins.tools_create_branch.inputs.base_branch.label",
|
|
"type": "text",
|
|
"default": "main"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"result": {
|
|
"label": "meta.plugins.tools_create_branch.outputs.result.label",
|
|
"type": "text",
|
|
"default": "branch_result"
|
|
}
|
|
}
|
|
},
|
|
"tools.create_pull_request": {
|
|
"label": "meta.plugins.tools_create_pull_request.label",
|
|
"inputs": {
|
|
"title": {
|
|
"label": "meta.plugins.tools_create_pull_request.inputs.title.label",
|
|
"type": "text",
|
|
"default": "Automated update"
|
|
},
|
|
"body": {
|
|
"label": "meta.plugins.tools_create_pull_request.inputs.body.label",
|
|
"type": "textarea",
|
|
"default": "Summary of changes"
|
|
},
|
|
"head_branch": {
|
|
"label": "meta.plugins.tools_create_pull_request.inputs.head_branch.label",
|
|
"type": "text",
|
|
"default": "feature/auto-change"
|
|
},
|
|
"base_branch": {
|
|
"label": "meta.plugins.tools_create_pull_request.inputs.base_branch.label",
|
|
"type": "text",
|
|
"default": "main"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"result": {
|
|
"label": "meta.plugins.tools_create_pull_request.outputs.result.label",
|
|
"type": "text",
|
|
"default": "pr_result"
|
|
}
|
|
}
|
|
},
|
|
"utils.filter_list": {
|
|
"label": "meta.plugins.utils_filter_list.label",
|
|
"inputs": {
|
|
"items": {
|
|
"label": "meta.plugins.utils_filter_list.inputs.items.label",
|
|
"type": "text",
|
|
"default": "$file_list"
|
|
},
|
|
"mode": {
|
|
"label": "meta.plugins.utils_filter_list.inputs.mode.label",
|
|
"type": "select",
|
|
"default": "contains",
|
|
"options": [
|
|
"contains",
|
|
"regex",
|
|
"equals",
|
|
"not_equals",
|
|
"starts_with",
|
|
"ends_with"
|
|
],
|
|
"option_labels": [
|
|
"meta.plugins.utils_filter_list.inputs.mode.options.contains",
|
|
"meta.plugins.utils_filter_list.inputs.mode.options.regex",
|
|
"meta.plugins.utils_filter_list.inputs.mode.options.equals",
|
|
"meta.plugins.utils_filter_list.inputs.mode.options.not_equals",
|
|
"meta.plugins.utils_filter_list.inputs.mode.options.starts_with",
|
|
"meta.plugins.utils_filter_list.inputs.mode.options.ends_with"
|
|
]
|
|
},
|
|
"pattern": {
|
|
"label": "meta.plugins.utils_filter_list.inputs.pattern.label",
|
|
"type": "text",
|
|
"default": ".py"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"items": {
|
|
"label": "meta.plugins.utils_filter_list.outputs.items.label",
|
|
"type": "text",
|
|
"default": "filtered_list"
|
|
}
|
|
}
|
|
},
|
|
"utils.map_list": {
|
|
"label": "meta.plugins.utils_map_list.label",
|
|
"inputs": {
|
|
"items": {
|
|
"label": "meta.plugins.utils_map_list.inputs.items.label",
|
|
"type": "text",
|
|
"default": "$filtered_list"
|
|
},
|
|
"template": {
|
|
"label": "meta.plugins.utils_map_list.inputs.template.label",
|
|
"type": "text",
|
|
"default": "File: {item}"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"items": {
|
|
"label": "meta.plugins.utils_map_list.outputs.items.label",
|
|
"type": "text",
|
|
"default": "mapped_list"
|
|
}
|
|
}
|
|
},
|
|
"utils.reduce_list": {
|
|
"label": "meta.plugins.utils_reduce_list.label",
|
|
"inputs": {
|
|
"items": {
|
|
"label": "meta.plugins.utils_reduce_list.inputs.items.label",
|
|
"type": "text",
|
|
"default": "$mapped_list"
|
|
},
|
|
"separator": {
|
|
"label": "meta.plugins.utils_reduce_list.inputs.separator.label",
|
|
"type": "text",
|
|
"default": "\\n"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"result": {
|
|
"label": "meta.plugins.utils_reduce_list.outputs.result.label",
|
|
"type": "text",
|
|
"default": "reduced_output"
|
|
}
|
|
}
|
|
},
|
|
"utils.branch_condition": {
|
|
"label": "meta.plugins.utils_branch_condition.label",
|
|
"inputs": {
|
|
"value": {
|
|
"label": "meta.plugins.utils_branch_condition.inputs.value.label",
|
|
"type": "text",
|
|
"default": "$reduced_output"
|
|
},
|
|
"mode": {
|
|
"label": "meta.plugins.utils_branch_condition.inputs.mode.label",
|
|
"type": "select",
|
|
"default": "is_empty",
|
|
"options": [
|
|
"is_empty",
|
|
"is_truthy",
|
|
"equals",
|
|
"not_equals",
|
|
"contains",
|
|
"regex"
|
|
],
|
|
"option_labels": [
|
|
"meta.plugins.utils_branch_condition.inputs.mode.options.is_empty",
|
|
"meta.plugins.utils_branch_condition.inputs.mode.options.is_truthy",
|
|
"meta.plugins.utils_branch_condition.inputs.mode.options.equals",
|
|
"meta.plugins.utils_branch_condition.inputs.mode.options.not_equals",
|
|
"meta.plugins.utils_branch_condition.inputs.mode.options.contains",
|
|
"meta.plugins.utils_branch_condition.inputs.mode.options.regex"
|
|
]
|
|
},
|
|
"compare": {
|
|
"label": "meta.plugins.utils_branch_condition.inputs.compare.label",
|
|
"type": "text",
|
|
"default": ""
|
|
}
|
|
},
|
|
"outputs": {
|
|
"result": {
|
|
"label": "meta.plugins.utils_branch_condition.outputs.result.label",
|
|
"type": "text",
|
|
"default": "branch_decision"
|
|
}
|
|
}
|
|
},
|
|
"utils.not": {
|
|
"label": "meta.plugins.utils_not.label",
|
|
"inputs": {
|
|
"value": {
|
|
"label": "meta.plugins.utils_not.inputs.value.label",
|
|
"type": "text",
|
|
"default": "$branch_decision"
|
|
}
|
|
},
|
|
"outputs": {
|
|
"result": {
|
|
"label": "meta.plugins.utils_not.outputs.result.label",
|
|
"type": "text",
|
|
"default": "not_branch_decision"
|
|
}
|
|
}
|
|
},
|
|
"control.loop": {
|
|
"label": "meta.plugins.control_loop.label",
|
|
"inputs": {
|
|
"max_iterations": {
|
|
"label": "meta.plugins.control_loop.inputs.max_iterations.label",
|
|
"type": "number",
|
|
"default": 10
|
|
},
|
|
"stop_when": {
|
|
"label": "meta.plugins.control_loop.inputs.stop_when.label",
|
|
"type": "text",
|
|
"default": "$no_tool_calls"
|
|
},
|
|
"stop_on": {
|
|
"label": "meta.plugins.control_loop.inputs.stop_on.label",
|
|
"type": "select",
|
|
"default": "true",
|
|
"options": [
|
|
"true",
|
|
"false"
|
|
],
|
|
"option_labels": [
|
|
"meta.plugins.control_loop.inputs.stop_on.options.true",
|
|
"meta.plugins.control_loop.inputs.stop_on.options.false"
|
|
]
|
|
}
|
|
},
|
|
"outputs": {}
|
|
}
|
|
}
|
|
}
|