From 30ec12970b10d8efd55f509fb7da33d5d8614b74 Mon Sep 17 00:00:00 2001 From: kshitijk4poor <82637225+kshitijk4poor@users.noreply.github.com> Date: Wed, 22 Apr 2026 16:04:02 +0530 Subject: [PATCH] fix(packaging): include agent.* sub-packages in pyproject.toml The transport refactor (PRs #13862 ff.) added agent/transports/ as a sub-package but the setuptools packages.find include list only had "agent" (top-level files), not "agent.*" (sub-packages). pip install / Nix builds therefore ship run_agent.py (which now imports from agent.transports on every API call) but omit the transports directory entirely, causing: ModuleNotFoundError: No module named 'agent.transports' on every LLM call for packaged installs. Adds "agent.*" to match the existing pattern used by tools, gateway, tui_gateway, and plugins. --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index bd8367365..992e548f9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -126,7 +126,7 @@ py-modules = ["run_agent", "model_tools", "toolsets", "batch_runner", "trajector hermes_cli = ["web_dist/**/*"] [tool.setuptools.packages.find] -include = ["agent", "tools", "tools.*", "hermes_cli", "gateway", "gateway.*", "tui_gateway", "tui_gateway.*", "cron", "acp_adapter", "plugins", "plugins.*"] +include = ["agent", "agent.*", "tools", "tools.*", "hermes_cli", "gateway", "gateway.*", "tui_gateway", "tui_gateway.*", "cron", "acp_adapter", "plugins", "plugins.*"] [tool.pytest.ini_options] testpaths = ["tests"]