MCPcopy
hub / github.com/HKUDS/OpenHarness / _run_plugin_command_flow

Function _run_plugin_command_flow

scripts/local_system_scenarios.py:145–160  ·  view source on GitHub ↗
(temp_root: Path)

Source from the content-addressed store, hash-verified

143
144
145async def _run_plugin_command_flow(temp_root: Path) -> None:
146 registry = create_default_command_registry()
147 context = _make_command_context(temp_root)
148 plugin_source = _write_plugin(temp_root / "plugin-command-source")
149
150 for raw in [
151 f"/plugin install {plugin_source}",
152 "/plugin disable fixture-plugin",
153 "/plugin enable fixture-plugin",
154 "/plugin uninstall fixture-plugin",
155 ]:
156 command, args = registry.lookup(raw)
157 result = await command.handler(args, context)
158 if result.message is None:
159 raise AssertionError(f"no result for {raw}")
160 print("[plugin-commands] PASS")
161
162
163async def _run_bridge_flow(temp_root: Path) -> None:

Callers 1

mainFunction · 0.85

Calls 5

_make_command_contextFunction · 0.85
lookupMethod · 0.80
_write_pluginFunction · 0.70
handlerMethod · 0.45

Tested by

no test coverage detected