"CLI-Anything: Making ALL Software Agent-Native" -- CLI-Hub: https://clianything.cc/
Python
fix: keep unknown Unreal process discovery
aimidib3afd6d9d3ee
diff --git a/unrealinsights/agent-harness/cli_anything/unrealinsights/core/live.py b/unrealinsights/agent-harness/cli_anything/unrealinsights/core/live.pyindex 3f97d4964..988ade5d1 100644--- a/unrealinsights/agent-harness/cli_anything/unrealinsights/core/live.py+++ b/unrealinsights/agent-harness/cli_anything/unrealinsights/core/live.py@@ -105,7 +105,7 @@ def _list_posix_unreal_processes() -> list[dict[str, object]]:def list_unreal_processes(*, include_tools: bool = True) -> dict[str, object]:"""List local Unreal-related processes."""processes = _list_windows_unreal_processes() if os.name == "nt" else _list_posix_unreal_processes()- processes = [process for process in processes if process["role"] not in ("helper", "unknown")]+ processes = [process for process in processes if process["role"] != "helper"]if not include_tools:processes = [process for process in processes if process["role"] not in ("insights", "trace-server")]processes.sort(key=lambda process: (str(process.get("role")), int(process.get("pid") or 0)))diff --git a/unrealinsights/agent-harness/cli_anything/unrealinsights/tests/test_core.py b/unrealinsights/agent-harness/cli_anything/unrealinsights/tests/test_core.pyindex 4f846a93f..52f6a1a47 100644--- a/unrealinsights/agent-harness/cli_anything/unrealinsights/tests/test_core.py+++ b/unrealinsights/agent-harness/cli_anything/unrealinsights/tests/test_core.py@@ -594,6 +594,13 @@ class TestLiveCore:"CommandLine": "UnrealInsights.exe","CreationDate": "now",},+ {+ "Name": "CustomUnrealHost.exe",+ "ProcessId": 300,+ "ExecutablePath": "C:/Tools/CustomUnrealHost.exe",+ "CommandLine": "CustomUnrealHost.exe",+ "CreationDate": "now",+ },]),},@@ -601,8 +608,12 @@ class TestLiveCore:with patch("cli_anything.unrealinsights.core.live.os.name", "nt"):result = list_unreal_processes()- assert result["process_count"] == 2- assert {process["role"] for process in result["processes"]} == {"editor", "insights"}+ assert result["process_count"] == 3+ assert {process["role"] for process in result["processes"]} == {"editor", "insights", "unknown"}++ with patch("cli_anything.unrealinsights.core.live.os.name", "nt"):+ no_tools = list_unreal_processes(include_tools=False)+ assert {process["role"] for process in no_tools["processes"]} == {"editor", "unknown"}def test_live_exec_requires_backend(self, monkeypatch):from cli_anything.unrealinsights.core.live import execute_live_command