Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

feat(agent-server): support team.mq.publish over TUI

openJiuwen-bot839b25638d68
diff --git a/jiuwenswarm/gateway/channel_manager/tui/tui_connect.py b/jiuwenswarm/gateway/channel_manager/tui/tui_connect.py
index 77c5064715..0257ad3931 100644
--- a/jiuwenswarm/gateway/channel_manager/tui/tui_connect.py
+++ b/jiuwenswarm/gateway/channel_manager/tui/tui_connect.py
@@ -273,6 +273,7 @@ CLI_FORWARD_REQ_METHODS = frozenset(
"team.binding.create",
"team.binding.generate",
"team.session.bind",
+ "team.mq.publish",
"session.fork",
# Agent configuration
"agents.list",
@@ -376,6 +377,7 @@ CLI_FORWARD_NO_LOCAL_HANDLER_METHODS = frozenset(
"team.binding.create",
"team.binding.generate",
"team.session.bind",
+ "team.mq.publish",
"session.fork",
# Agent configuration
"agents.list",
diff --git a/tests/unit_tests/gateway/test_cli_channel_handlers.py b/tests/unit_tests/gateway/test_cli_channel_handlers.py
index 7ff1fb4049..cf3ceffc7b 100644
--- a/tests/unit_tests/gateway/test_cli_channel_handlers.py
+++ b/tests/unit_tests/gateway/test_cli_channel_handlers.py
@@ -197,6 +197,8 @@ def test_build_cli_route_binding_creates_route_and_install_hook():
assert binding.channel_id == "tui"
assert "chat.send" in binding.forward_methods
assert "history.get" in binding.forward_methods
+ assert "team.mq.publish" in binding.forward_methods
+ assert "team.mq.publish" in binding.forward_no_local_handler_methods
assert binding.install is not None
binding.install(server)