Fix 14 tool bugs: capability_check tool_name, quality_gate pipefail, 12 doc param fixes, 3 test-suite fixes

This commit is contained in:
Software Orchestrator
2026-06-17 23:33:57 +00:00
parent 53758f0755
commit 2343f0e717
24 changed files with 829 additions and 166 deletions
+5 -1
View File
@@ -5,7 +5,7 @@ import yaml
import os
class CapabilityCheck(Tool):
async def execute(self, plugin_dir: str = "", **kwargs):
async def execute(self, plugin_dir: str = "", tool_name: str = "", **kwargs):
if not plugin_dir:
plugin_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
config_path = os.path.join(plugin_dir, "default_config.yaml")
@@ -14,5 +14,9 @@ class CapabilityCheck(Tool):
config = yaml.safe_load(f)
except (FileNotFoundError, yaml.YAMLError) as e:
config = {}
if tool_name:
from usr.plugins.a0_software_orchestrator.helpers.tool_capabilities import check_tool
result = check_tool(tool_name)
return Response(message=str(result), break_loop=False)
report = generate_capability_report(config)
return Response(message=str(report), break_loop=False)