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
fix(A2Xregistry): sync teammate card after bootstrap
openJiuwen-bot5dd92e8c28c4
diff --git a/docs/en/DistributedTeam.md b/docs/en/DistributedTeam.mdindex 30bae93196..703ed5ce9b 100644--- a/docs/en/DistributedTeam.md+++ b/docs/en/DistributedTeam.md@@ -33,7 +33,7 @@ Typical keys for distributed integration (templates: `config.team.distributed.le| `team.runtime.role` | Whether this process is `leader` or `teammate` || `team.runtime.member_name` | Default teammate identity; after bootstrap it adopts the member name dynamically requested by the leader || `team.transport.type` | `pyzmq` |-| `react.a2x_registry` | Teammates register idle nodes at startup; leaders reserve idle teammates from the registry before teaming |+| `react.a2x_registry` | Teammates register idle nodes at startup; leaders reserve idle teammates from the registry before teaming. **The registry is not bundled with jiuwenclaw**: clone upstream [agent-protocol (`feature/Agentregistry`)](https://gitcode.com/openJiuwen/agent-protocol/tree/feature/Agentregistry) and deploy it as a separate service per that repo's instructions || `team.transport.params` | This process' `direct_addr` / `bootstrap_direct_addr`, `pubsub_*`, etc.; leaders do not need static teammate `known_peers` || `team.predefined_members` | Backward-compatible static member declaration; not required for current blank-teammate integration || `team.storage` | For multi-process setups, `connection_string` must point to a **shared** DB (e.g. the same sqlite path visible to all nodes) |@@ -116,6 +116,7 @@ The current implementation is explicitly split:- Leader calls `reserve_blank_agents` during teaming / `spawn_member`, then sends bootstrap using the returned `service_id` / `endpoint`.- Leader sends bootstrap through direct ZMQ (`jiuwen.remote_teammate_bootstrap.direct`) after `spawn_member`.- Teammate listens on `bootstrap_direct_addr`, applies leader route, and adopts the target member.+ - After successful bootstrap, the teammate uses its local A2X `service_id` to call `replace_agent_card`, replacing its registry card from blank/idle to busy/member. This prevents the same teammate from becoming reservable again after the reservation TTL expires.- ACK is treated as direct transport acknowledgment (not DB-ACK message flow).- Reservation lifecycle: the leader releases immediately when bootstrap delivery fails; after successful bootstrap, the leader does not actively release that reservation.- When the Team is dissolved, the leader sends `jiuwen.remote_team_destroy.direct` to each reserved teammate over direct ZMQ. The teammate cleans up its local session/team runtime, then uses A2X `replace_agent_card` to reset its own agent card back to idle teammate state; `bootstrap_direct_addr` stays alive so it can accept the next bootstrap.@@ -200,15 +201,40 @@ Replace `<REPO_ROOT>`, `<LEADER_HOME>`, `<TEAMMATE_HOME>` with paths on your mac### 6.1 A2X Registry-For current integration testing, start the registry directly from the `agent-protocol` source tree:+Run the registry **as its own process**, separate from leader/teammate:++Follow the [agent-protocol Agent Team quick start](https://gitcode.com/openJiuwen/agent-protocol/blob/feature/Agentregistry/README_forAgentTeam.md). Since `0.1.6`, the default install is the lightweight Agent Team build: SDK, FastAPI, uvicorn, and a few small runtime dependencies only. The registry backend starts empty; it does not need preloaded data or LLM config. Teammate registration, leader lookup/reservation, and reservation leases are handled by the `jiuwenclaw` client-side integration.++Install (Python >= 3.10):++```bash+git clone -b feature/Agentregistry https://gitcode.com/openJiuwen/agent-protocol.git+cd agent-protocol+pip install -e .+```++Single-host setup (registry, leader, and teammate on one machine):++```bash+a2x-registry+```++It listens on `127.0.0.1:8000` by default. Configure both leader and teammate with:++```yaml+react:+ a2x_registry:+ base_url: http://127.0.0.1:8000+```++For multi-host setups, bind the registry to an address reachable from other machines and open the firewall / security group port:```bash-cd "/home/ycz/agent-protocol"-source .venv/bin/activate-PYTHONPATH=/home/ycz/agent-protocol python -m a2x_registry.backend --host 127.0.0.1 --port 8000+a2x-registry --host 0.0.0.0+a2x-registry --host 0.0.0.0 --port 8080```-For multi-host setups, bind to an address reachable by leader/teammate and update both sides' `react.a2x_registry.base_url`.+Then set `react.a2x_registry.base_url` on leader and teammate to the registry host IP, domain, or HTTPS reverse-proxy URL, for example `http://192.168.1.10:8000` or `https://registry.example.com`.### 6.2 Teammate (AgentServer only)@@ -291,7 +317,7 @@ If any step fails, output FAILED_AT_STEP=<n> and the error.| UI idle while backends run | Frontend must use `VITE_WS_BASE` (not `VITE_WS_URL`). || Teammate cannot reach leader | Firewall, or the leader address sent in bootstrap is still `127.0.0.1` on a multi-host setup. || Leader did not get a teammate from registry | Check registry logs for `POST /api/datasets/<dataset>/reservations 200 OK`; check teammate blank-agent registration succeeded. |-| Teammate can be reserved twice too early | Check that leader does not release the reservation immediately after successful bootstrap; current design lets teammate restore itself to idle with `replace_agent_card` after receiving destroy. |+| Teammate can be reserved twice too early | Check teammate logs after bootstrap for `teammate agent card replaced ... member_name=...` / `teammate registry card replace ... replaced=True`; without this, the registry still sees it as blank/idle and may reserve it again after the reservation TTL expires. Also confirm the leader does not release the reservation immediately after successful bootstrap. || Teammate cannot bootstrap again after Team dissolve | Check teammate logs for `teammate applied team destroy notification ... cleaned=True`; `cleaned=False` or `cleanup failed` means the old team runtime / messager may still be partially alive. || `Address already in use (tcp://127.0.0.1:16000)` | The teammate process may still have an auxiliary `TeamAgent` or old dynamic runtime alive. Confirm the bootstrap helper is removed from `TeamManager` cache and its messager is stopped after context construction, and that dynamic runtime retargeted to a fresh `direct_addr`. || Leader and teammate both have `team-workspace/result.txt` with different contents | Default workspace paths are local to each process HOME, not a shared filesystem. Use a jointly visible path or return teammate results through messages/storage. |diff --git "a/docs/zh/\345\210\206\345\270\203\345\274\217Team.md" "b/docs/zh/\345\210\206\345\270\203\345\274\217Team.md"index de7c4020fe..4ceb341928 100644--- "a/docs/zh/\345\210\206\345\270\203\345\274\217Team.md"+++ "b/docs/zh/\345\210\206\345\270\203\345\274\217Team.md"@@ -33,7 +33,7 @@ English: [Distributed Team](../en/DistributedTeam.md)| `team.runtime.role` | 本进程是 `leader` 还是 `teammate` || `team.runtime.member_name` | teammate 侧默认身份;被 bootstrap 后会接管为 leader 动态请求的成员名 || `team.transport.type` | `pyzmq` |-| `react.a2x_registry` | teammate 启动时注册空闲节点;leader 组队时从注册中心预约空闲 teammate |+| `react.a2x_registry` | teammate 启动时注册空闲节点;leader 组队时从注册中心预约空闲 teammate。**注册中心不是 jiuwenclaw 内置组件**,须从上游 [agent-protocol(feature/Agentregistry)](https://gitcode.com/openJiuwen/agent-protocol/tree/feature/Agentregistry) 单独拉取并按该仓说明独立部署 || `team.transport.params` | 本进程的 `direct_addr` / `bootstrap_direct_addr`、`pubsub_*` 等;leader 不需要预置 teammate 的 `known_peers` || `team.predefined_members` | 兼容旧静态成员声明;当前 blank teammate 联调不要求 leader 配置该项 || `team.storage` | 多进程场景下 `connection_string` 需指向 **各方可见的同一 DB**(如共享路径下的 sqlite) |@@ -85,7 +85,7 @@ team:| 配置 | 值 | 说明 ||------|-----|------|| `teammate_mode` | `build_mode`(默认) | teammate 通过 build 流程构建 |-| `spawn_mode` | `inprocess`(默认) | teammate 在同一进程内运行 |+| `spawn_mode` | `inprocess`(默认) | 指成员 runtime 在**各自进程内部**以内嵌方式创建(不是额外 fork 子进程);分布式场景下 leader 与 teammate 仍是独立进程/节点,通过 pyzmq + bootstrap 协作 |---@@ -116,6 +116,7 @@ team:- leader 在组队/`spawn_member` 时调用 `reserve_blank_agents` 预约空闲 teammate,并使用注册中心返回的 `service_id` / `endpoint` 发送 bootstrap。- leader 在 `spawn_member` 后通过 direct ZMQ 发送 `jiuwen.remote_teammate_bootstrap.direct`。- teammate 监听 `bootstrap_direct_addr` 接收 bootstrap,应用 leader 路由并完成接管。+ - bootstrap 成功后,teammate 会使用本进程持有的 A2X `service_id` 调用 `replace_agent_card`,把自己的注册中心 card 从 blank/idle 替换为 busy/member,避免 reservation TTL 过期后再次被 leader 当作空闲 teammate 预约。- ACK 使用 direct 传输层确认(不再依赖 DB ACK 消息链路)。- reservation 生命周期:bootstrap 失败时 leader 立即 release;bootstrap 成功后 leader 不再主动 release 该 reservation。- Team 解散时,leader 会通过 direct ZMQ 向已预约 teammate 发送 `jiuwen.remote_team_destroy.direct`。teammate 收到后清理本地 session/team runtime,并通过 A2X `replace_agent_card` 将自己的 agent card 重置为空闲 teammate;`bootstrap_direct_addr` 监听端口保持常驻,用于接收下一次 bootstrap。@@ -200,15 +201,40 @@ cp "<REPO_ROOT>/jiuwenclaw/resources/config.team.distributed.teammate.yaml" \### 6.1 A2X 注册中心-当前联调可直接从 `agent-protocol` 源码启动注册中心:+注册中心进程与 Leader/Teammate **分离部署**:请从上游代码仓拉取并在独立环境中运行。++参考 [agent-protocol 的 Agent Team 快速启动说明](https://gitcode.com/openJiuwen/agent-protocol/blob/feature/Agentregistry/README_forAgentTeam.md)。`0.1.6` 起默认安装就是 Agent Team 精简版,只包含 SDK、FastAPI、uvicorn 等轻量依赖;注册中心服务端无需预置数据,也不需要配置 LLM。teammate 注册、leader 查询/预约、reservation lease 都由 `jiuwenclaw` 客户端逻辑完成。++安装(要求 Python >= 3.10):++```bash+git clone -b feature/Agentregistry https://gitcode.com/openJiuwen/agent-protocol.git+cd agent-protocol+pip install -e .+```++单机部署(注册中心、leader、teammate 在同一台机器):++```bash+a2x-registry+```++默认监听 `127.0.0.1:8000`,leader 和 teammate 配置:++```yaml+react:+ a2x_registry:+ base_url: http://127.0.0.1:8000+```++多机部署时,让注册中心监听可被其它机器访问的地址,并放行防火墙/安全组端口:```bash-cd "/home/ycz/agent-protocol"-source .venv/bin/activate-PYTHONPATH=/home/ycz/agent-protocol python -m a2x_registry.backend --host 127.0.0.1 --port 8000+a2x-registry --host 0.0.0.0+a2x-registry --host 0.0.0.0 --port 8080```-多机部署时,把 `--host 127.0.0.1` 改成可被 leader/teammate 访问的地址,并同步修改两侧 `react.a2x_registry.base_url`。+此时 leader 和 teammate 的 `react.a2x_registry.base_url` 应填写注册中心机器的 IP、域名或 HTTPS 反向代理地址,例如 `http://192.168.1.10:8000` 或 `https://registry.example.com`。### 6.2 Teammate(仅 AgentServer)@@ -291,7 +317,7 @@ VITE_WS_BASE="ws://localhost:29100" npm run dev -- --host 0.0.0.0 --port 5173| 前端无响应但后端已启动 | 确认前端使用 `VITE_WS_BASE`(而不是误用 `VITE_WS_URL`)。 || teammate 连不上 leader | 检查防火墙、leader 在 bootstrap 中下发的地址是否仍为 `127.0.0.1`(多机需使用真实地址)。 || leader 没有从注册中心拿到 teammate | 检查注册中心日志是否有 `POST /api/datasets/<dataset>/reservations 200 OK`;检查 teammate 是否已成功注册 blank agent。 |-| teammate 被重复抢占 | 检查 bootstrap 成功后 leader 是否误 release reservation;当前设计是 teammate 在收到 destroy 后通过 `replace_agent_card` 自行恢复空闲。 |+| teammate 被重复抢占 | 检查 bootstrap 成功后 teammate 日志是否出现 `teammate agent card replaced ... member_name=...` / `teammate registry card replace ... replaced=True`;若缺失,注册中心仍认为它是 blank/idle,reservation TTL 过期后会再次被预约。也需确认 leader 没有在 bootstrap 成功后误 release reservation。 || Team 解散后 teammate 无法再次 bootstrap | 检查 teammate 日志是否出现 `teammate applied team destroy notification ... cleaned=True`;若为 `cleaned=False` 或 `cleanup failed`,旧 team runtime / messager 可能未释放干净。 || `Address already in use (tcp://127.0.0.1:16000)` | teammate 进程内可能存在未清理的辅助 `TeamAgent` 或旧 dynamic runtime;确认 bootstrap helper 构建 context 后已从 `TeamManager` cache 移除并 stop messager,dynamic runtime 已 retarget 到新 `direct_addr`。 || leader 与 teammate 都有 `team-workspace/result.txt` 但内容不同 | 默认 workspace 是各进程 HOME 下的本地目录,不是共享文件系统;需要显式使用共同可见路径或让 teammate 通过消息/存储回传结果。 |diff --git a/jiuwenclaw/agentserver/a2x_registry_runtime.py b/jiuwenclaw/agentserver/a2x_registry_runtime.pyindex 0bb294356d..836423afca 100644--- a/jiuwenclaw/agentserver/a2x_registry_runtime.py+++ b/jiuwenclaw/agentserver/a2x_registry_runtime.py@@ -19,6 +19,11 @@ from typing import Anylogger = logging.getLogger(__name__)_REGISTERED_BLANK_ENDPOINTS: set[tuple[str, str, str]] = set()+_REGISTERED_BLANK_REGISTRATIONS: dict[tuple[str, str, str], dict[str, str]] = {}++_TEAMMATE_CARD_DESCRIPTION = "Task Planner(team-1)"+_TEAMMATE_CARD_STATUS = "busy"+_TEAMMATE_CARD_SKILLS = [{"name": "plan", "description": "子任务拆解"}]def _normalize_connect_addr(raw: Any) -> str:@@ -78,6 +83,19 @@ class ReservedBlankAgent:)+def build_teammate_agent_card(member_name: str) -> dict[str, Any]:+ """Build the AgentCard used after teammate bootstrap."""+ name = str(member_name or "").strip()+ if not name:+ raise ValueError("member_name is required for teammate agent card replacement")+ return {+ "name": name,+ "description": _TEAMMATE_CARD_DESCRIPTION,+ "status": _TEAMMATE_CARD_STATUS,+ "skills": [dict(skill) for skill in _TEAMMATE_CARD_SKILLS],+ }++def resolve_a2x_config(config_base: dict[str, Any]) -> dict[str, Any]:"""Resolve ``react.a2x_registry`` with safe defaults."""team_cfg = config_base.get("team", {}) if isinstance(config_base, dict) else {}@@ -149,6 +167,27 @@ async def init_a2x_client(config_base: dict[str, Any]) -> tuple[Any, dict[str, Areturn client, config+def _remember_blank_registration(+ client: Any,+ cache_key: tuple[str, str, str],+ *,+ dataset: Any,+ service_id: Any,+ endpoint: Any,+) -> None:+ """Expose blank registration details on a client and cache them for sibling clients."""+ registration = {+ "dataset": str(dataset or "").strip(),+ "service_id": str(service_id or "").strip(),+ "endpoint": str(endpoint or "").strip(),+ }+ _REGISTERED_BLANK_REGISTRATIONS[cache_key] = registration+ setattr(client, "_jiuwen_blank_agent_registration", registration)+ setattr(client, "_jiuwen_blank_agent_dataset", registration["dataset"])+ setattr(client, "_jiuwen_blank_agent_service_id", registration["service_id"])+ setattr(client, "_jiuwen_blank_agent_endpoint", registration["endpoint"])++async def register_blank_agent_if_teammate(client: Any,config: dict[str, Any],@@ -174,16 +213,34 @@ async def register_blank_agent_if_teammate(cache_key = (str(config.get("base_url") or ""), str(dataset), str(endpoint))if cache_key in _REGISTERED_BLANK_ENDPOINTS:+ cached_registration = _REGISTERED_BLANK_REGISTRATIONS.get(cache_key)+ if cached_registration:+ _remember_blank_registration(+ client,+ cache_key,+ dataset=cached_registration.get("dataset"),+ service_id=cached_registration.get("service_id"),+ endpoint=cached_registration.get("endpoint"),+ )logger.info(- "[A2XRegistryRuntime] blank agent already registered source=%s dataset=%s endpoint=%s",+ "[A2XRegistryRuntime] blank agent already registered source=%s dataset=%s "+ "service_id=%s endpoint=%s",source,dataset,+ cached_registration.get("service_id", "") if cached_registration else "",endpoint,)return Trueresult = await client.register_blank_agent(dataset=dataset, endpoint=endpoint)_REGISTERED_BLANK_ENDPOINTS.add(cache_key)+ _remember_blank_registration(+ client,+ cache_key,+ dataset=dataset,+ service_id=getattr(result, "service_id", ""),+ endpoint=endpoint,+ )logger.info("[A2XRegistryRuntime] blank agent registered source=%s dataset=%s service_id=%s endpoint=%s",source,@@ -296,6 +353,13 @@ async def restore_teammate_blank_agent_on_destroy(_REGISTERED_BLANK_ENDPOINTS.add((str(config.get("base_url") or ""), resolved_dataset, resolved_endpoint))+ _REGISTERED_BLANK_REGISTRATIONS[+ (str(config.get("base_url") or ""), resolved_dataset, resolved_endpoint)+ ] = {+ "dataset": resolved_dataset,+ "service_id": str(restored_service_id or "").strip(),+ "endpoint": resolved_endpoint,+ }logger.info("[A2XRegistryRuntime] blank agent restored after team destroy ""source=%s dataset=%s service_id=%s endpoint=%s",@@ -418,6 +482,67 @@ async def reserve_blank_teammate_agent(return None+async def replace_teammate_agent_card_after_bootstrap(+ client: Any,+ *,+ dataset: str,+ service_id: str,+ member_name: str,+ source: str = "teammate-bootstrap",+ description: str | None = None,+ status: str | None = None,+ skills: list[dict[str, Any]] | None = None,+) -> bool:+ """Replace the teammate's blank card with its runtime planner card."""+ dataset = str(dataset or "").strip()+ service_id = str(service_id or "").strip()+ member_name = str(member_name or "").strip()+ if not dataset or not service_id or not member_name:+ raise ValueError(+ "[A2XRegistryRuntime] replace teammate card failed: "+ "missing required dataset/service_id/member_name "+ f"(source={source}, dataset={dataset!r}, service_id={service_id!r}, member_name={member_name!r})"+ )+ if client is None:+ raise RuntimeError(+ "[A2XRegistryRuntime] replace teammate card failed: missing A2X client "+ f"(source={source}, dataset={dataset}, service_id={service_id}, member_name={member_name})"+ )++ agent_card = build_teammate_agent_card(member_name)+ if description is not None and str(description).strip():+ agent_card["description"] = str(description).strip()+ if status is not None and str(status).strip():+ agent_card["status"] = str(status).strip()+ if skills is not None:+ agent_card["skills"] = [dict(skill) for skill in skills if isinstance(skill, dict)]++ try:+ await client.replace_agent_card(dataset, service_id, agent_card)+ logger.info(+ "[A2XRegistryRuntime] teammate agent card replaced source=%s dataset=%s service_id=%s member_name=%s",+ source,+ dataset,+ service_id,+ member_name,+ )+ return True+ except Exception as exc:+ logger.warning(+ "[A2XRegistryRuntime] teammate agent card replace failed source=%s "+ "dataset=%s service_id=%s member_name=%s: %s",+ source,+ dataset,+ service_id,+ member_name,+ exc,+ exc_info=True,+ )+ return False+++def clear_blank_registration_cache_for_tests() -> None:"""Clear in-process registration cache for isolated tests."""_REGISTERED_BLANK_ENDPOINTS.clear()+ _REGISTERED_BLANK_REGISTRATIONS.clear()diff --git a/jiuwenclaw/agentserver/deep_agent/interface_deep.py b/jiuwenclaw/agentserver/deep_agent/interface_deep.pyindex ec90c1f5e8..8c7391e4be 100644--- a/jiuwenclaw/agentserver/deep_agent/interface_deep.py+++ b/jiuwenclaw/agentserver/deep_agent/interface_deep.py@@ -416,6 +416,8 @@ class JiuWenClawDeepAdapter:self._skill_manager: SkillManager | None = Noneself._a2x_client: Any | None = Noneself._a2x_config: dict[str, Any] = {}+ self._a2x_blank_service_id: str = ""+ self._a2x_blank_dataset: str = ""self._cron_runtime = CronRuntimeBridge()self._runtime_cron_tool_context = _RuntimeCronToolContext(tool_scope=f"runtime_{id(self):x}",@@ -435,15 +437,46 @@ class JiuWenClawDeepAdapter:"""Resolve A2X config from ``react.a2x_registry`` with safe defaults."""return resolve_a2x_config(config_base)+ def _sync_a2x_runtime_state(self) -> None:+ """Expose A2X runtime state on the underlying DeepAgent instance."""+ if self._instance is None:+ return+ setattr(self._instance, "_jiuwen_a2x_client", self._a2x_client)+ setattr(self._instance, "_jiuwen_a2x_config", self._a2x_config)+ setattr(self._instance, "_jiuwen_a2x_blank_service_id", self._a2x_blank_service_id)+ setattr(self._instance, "_jiuwen_a2x_blank_dataset", self._a2x_blank_dataset)++ def _clear_a2x_runtime_state(self) -> None:+ """Remove exposed A2X runtime state from the underlying DeepAgent instance."""+ if self._instance is None:+ return+ for attr, value in (+ ("_jiuwen_a2x_client", None),+ ("_jiuwen_a2x_config", {}),+ ("_jiuwen_a2x_blank_service_id", ""),+ ("_jiuwen_a2x_blank_dataset", ""),+ ):+ if hasattr(self._instance, attr):+ try:+ setattr(self._instance, attr, value)+ except Exception:+ pass+async def _close_a2x_client(self) -> None:"""Close the mounted A2X client if initialized."""if self._a2x_client is None:self._a2x_config = {}+ self._a2x_blank_service_id = ""+ self._a2x_blank_dataset = ""+ self._clear_a2x_runtime_state()returnclient = self._a2x_clientconfig = self._a2x_configself._a2x_client = Noneself._a2x_config = {}+ self._a2x_blank_service_id = ""+ self._a2x_blank_dataset = ""+ self._clear_a2x_runtime_state()close_timeout_raw = config.get("close_timeout", 5.0)try:close_timeout = max(float(close_timeout_raw), 0.1)@@ -472,6 +505,8 @@ class JiuWenClawDeepAdapter:client, a2x_config = await init_a2x_client(config_base)self._a2x_config = a2x_configself._a2x_client = client+ self._a2x_blank_service_id = ""+ self._a2x_blank_dataset = ""async def _try_init_a2x_client(self, config_base: dict[str, Any], *, reload: bool = False) -> None:"""Best-effort A2X client init that never blocks agent startup."""@@ -482,6 +517,11 @@ class JiuWenClawDeepAdapter:self._a2x_config,source="deep-agent-reload" if reload else "deep-agent-init",)+ registration = getattr(self._a2x_client, "_jiuwen_blank_agent_registration", {})+ if isinstance(registration, dict):+ self._a2x_blank_service_id = str(registration.get("service_id") or "").strip()+ self._a2x_blank_dataset = str(registration.get("dataset") or "").strip()+ self._sync_a2x_runtime_state()logger.info("[JiuWenClawDeepAdapter] A2X Client %s: role=%s base_url=%s","reinitialized on reload" if reload else "initialized successfully",@@ -491,6 +531,9 @@ class JiuWenClawDeepAdapter:except Exception as exc: # noqa: BLE001self._a2x_client = Noneself._a2x_config = {}+ self._a2x_blank_service_id = ""+ self._a2x_blank_dataset = ""+ self._clear_a2x_runtime_state()logger.warning("[JiuWenClawDeepAdapter] A2X Client %s failed, agent will continue to %s: %s","reload initialization" if reload else "initialize",@@ -2032,6 +2075,7 @@ class JiuWenClawDeepAdapter:audio_model_config=self._audio_model_config,completion_timeout=config.get("completion_timeout", 3600.0),)+ self._sync_a2x_runtime_state()self._registered_mcp_server_ids.clear()self._registered_mcp_servers.clear()await self._register_mcp_servers_from_config(config_base, tag=f"agent.{mode}")@@ -2107,6 +2151,7 @@ class JiuWenClawDeepAdapter:model = self._create_model(config_base)await self._try_init_a2x_client(config_base, reload=True)+ self._sync_a2x_runtime_state()self._agent_name = self._instance_overrides.get("agent_name", config.get("agent_name", "main_agent"))agent_card = AgentCard(name=self._agent_name, id='jiuwenclaw')self._sync_multimodal_tools_for_runtime()diff --git a/jiuwenclaw/agentserver/team/remote_member_bootstrap.py b/jiuwenclaw/agentserver/team/remote_member_bootstrap.pyindex 38ae673bd5..31895784cd 100644--- a/jiuwenclaw/agentserver/team/remote_member_bootstrap.py+++ b/jiuwenclaw/agentserver/team/remote_member_bootstrap.py@@ -410,6 +410,8 @@ async def _send_bootstrap_message(team_agent: Any, member_name: str, prompt: strif registry_reservation is not None:peer_agent_id = registry_reservation.service_idpeer_addr = _normalize_leader_direct_addr(registry_reservation.endpoint)+ envelope["a2x_dataset"] = getattr(registry_reservation, "dataset", "")+ envelope["a2x_service_id"] = getattr(registry_reservation, "service_id", "")except Exception as exc:logger.warning("[RemoteMemberBootstrap] A2X blank teammate reservation failed: %s", exc)@@ -914,6 +916,8 @@ def attach_remote_bootstrap_ack_listener(logger.debug("[RemoteMemberBootstrap] no jiuwen_remote_member_names; skip ACK listener")return+ processed_message_ids: set[str] = set()+async def on_event(event: Any) -> None:if getattr(event, "event_type", None) != TeamEvent.MESSAGE:return@@ -974,10 +978,11 @@ def attach_remote_bootstrap_ack_listener(ack_applied = ack.get("handshake_applied")if isinstance(ack_applied, bool) and not ack_applied:logger.warning(- "[RemoteMemberBootstrap] ACK: teammate reports handshake route not applied member=%s id=%s",+ "[RemoteMemberBootstrap] ACK: teammate reports bootstrap not fully applied member=%s id=%s",ack_member,message_id,)+ returnok = await tb.db.update_member_status(ack_member, team_name, MemberStatus.READY.value)if not ok:@@ -1310,6 +1315,74 @@ async def _ensure_dynamic_member_execution_loop(return False, False+async def _replace_teammate_card_after_direct_bootstrap(+ *,+ channel_id: str,+ member_name: str,+) -> bool:+ """Replace this teammate's A2X card after direct control-plane bootstrap."""+ member = str(member_name or "").strip()+ if not member:+ return False+ try:+ from jiuwenclaw.agentserver.agent_ws_server import AgentWebSocketServer+ from jiuwenclaw.agentserver.a2x_registry_runtime import replace_teammate_agent_card_after_bootstrap++ server = AgentWebSocketServer.get_instance()+ agent_manager = server.get_agent_manager()+ agent = agent_manager.get_agent_nowait(channel_id) or await agent_manager.get_agent(channel_id, "agent")+ deep_agent = agent.get_instance() if agent is not None else None+ if deep_agent is None:+ logger.warning(+ "[RemoteMemberBootstrap] teammate registry card replace skipped: deep_agent unavailable "+ "channel=%s member=%s",+ channel_id,+ member,+ )+ return False+ client = getattr(deep_agent, "_jiuwen_a2x_client", None)+ dataset = str(getattr(deep_agent, "_jiuwen_a2x_blank_dataset", "") or "").strip()+ service_id = str(getattr(deep_agent, "_jiuwen_a2x_blank_service_id", "") or "").strip()+ if client is None or not dataset or not service_id:+ logger.warning(+ "[RemoteMemberBootstrap] teammate registry card replace skipped: missing local A2X state "+ "channel=%s member=%s has_client=%s dataset=%s service_id=%s",+ channel_id,+ member,+ client is not None,+ dataset,+ service_id,+ )+ return False+ replaced = await replace_teammate_agent_card_after_bootstrap(+ client,+ dataset=dataset,+ service_id=service_id,+ member_name=member,+ source="teammate-direct-bootstrap",+ )+ logger.info(+ "[RemoteMemberBootstrap] teammate registry card replace after direct bootstrap "+ "channel=%s member=%s dataset=%s service_id=%s replaced=%s",+ channel_id,+ member,+ dataset,+ service_id,+ replaced,+ )+ return bool(replaced)+ except Exception as exc:+ logger.warning(+ "[RemoteMemberBootstrap] teammate registry card replace after direct bootstrap failed "+ "channel=%s member=%s: %s",+ channel_id,+ member,+ exc,+ exc_info=True,+ )+ return False++async def _apply_bootstrap_envelope_from_control_plane(*,processed_ids: set[str],@@ -1348,6 +1421,10 @@ async def _apply_bootstrap_envelope_from_control_plane(target_member,source_id,)+ card_replaced = await _replace_teammate_card_after_direct_bootstrap(+ channel_id="default",+ member_name=target_member,+ )if effective_sid and loop_key not in loop_kicked_members:loop_kicked_members.add(loop_key)@@ -1362,19 +1439,21 @@ async def _apply_bootstrap_envelope_from_control_plane(if kicked:logger.info("[RemoteMemberBootstrap] teammate execution kickoff scheduled from bootstrap "- "team=%s session_id=%s member=%s handshake_applied=%s",+ "team=%s session_id=%s member=%s handshake_applied=%s card_replaced=%s",envelope_team_name,effective_sid,target_member,route_applied,+ card_replaced,)else:logger.warning("[RemoteMemberBootstrap] teammate execution kickoff failed after direct ACK "- "team=%s session_id=%s member=%s",+ "team=%s session_id=%s member=%s card_replaced=%s",envelope_team_name,effective_sid,target_member,+ card_replaced,)kickoff_task = asyncio.create_task(@@ -1670,6 +1749,8 @@ def attach_remote_teammate_bootstrap_listener()return+ processed_message_ids: set[str] = set()+async def on_event(event: Any) -> None:if getattr(event, "event_type", None) != TeamEvent.MESSAGE:return@@ -1686,6 +1767,9 @@ def attach_remote_teammate_bootstrap_listener(if not isinstance(to_name, str) or not to_name.strip():return+ if message_id in processed_message_ids:+ return+row = await tb.db.get_message(message_id)if row is None:return@@ -1705,6 +1789,26 @@ def attach_remote_teammate_bootstrap_listener(_adopt_teammate_member_name(team_agent, target_member)route_applied = _apply_leader_route_from_envelope(team_agent, envelope)+ deep_agent = getattr(team_agent, "deep_agent", None)+ client = getattr(deep_agent, "_jiuwen_a2x_client", None) if deep_agent is not None else None+ dataset = str(getattr(deep_agent, "_jiuwen_a2x_blank_dataset", "") or "").strip()+ service_id = str(getattr(deep_agent, "_jiuwen_a2x_blank_service_id", "") or "").strip()+ card_replaced = False+ if client is None:+ raise RuntimeError(+ "[RemoteMemberBootstrap] teammate bootstrap missing A2X client "+ f"member={target_member}"+ )+ from jiuwenclaw.agentserver.a2x_registry_runtime import replace_teammate_agent_card_after_bootstrap++ card_replaced = await replace_teammate_agent_card_after_bootstrap(+ client,+ dataset=dataset,+ service_id=service_id,+ member_name=target_member,+ source="teammate-bootstrap",+ )+try:if old_member_name:await mm.mark_message_read(message_id, old_member_name)@@ -1712,6 +1816,7 @@ def attach_remote_teammate_bootstrap_listener(except Exception as exc:logger.warning("[RemoteMemberBootstrap] teammate mark_message_read failed: %s", exc)+ processed_message_ids.add(message_id)_tn = getattr(team_agent, "_team_name", None)team_name = _tn() if callable(_tn) else Noneack = build_bootstrap_ack_envelope(@@ -1719,7 +1824,7 @@ def attach_remote_teammate_bootstrap_listener(team_name=team_name,leader_agent_id=str(envelope.get("leader_agent_id", "")).strip(),leader_direct_addr=str(envelope.get("leader_direct_addr", "")).strip(),- handshake_applied=route_applied,+ handshake_applied=bool(route_applied and card_replaced),)ack_id = await mm.send_message(content=json.dumps(ack, ensure_ascii=False),@@ -1727,12 +1832,16 @@ def attach_remote_teammate_bootstrap_listener()logger.info("[RemoteMemberBootstrap] teammate bootstrap consumed message_id=%s old_member=%s adopted_member=%s "- "leader=%s ack_message_id=%s",+ "leader=%s ack_message_id=%s card_replaced=%s route_applied=%s dataset=%s service_id=%s",message_id,old_member_name,target_member,leader_member,ack_id,+ card_replaced,+ route_applied,+ dataset,+ service_id,)team_agent.add_event_listener(on_event)diff --git a/pyproject.toml b/pyproject.tomlindex e36f0d79e9..862f5b49e5 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -17,7 +17,7 @@ dependencies = ["ruamel.yaml>=0.18.0","lark-oapi>=1.5.3","loguru>=0.7.3",- "openjiuwen @ git+https://gitcode.com/openJiuwen/agent-core.git@develop",+ "openjiuwen[postgres,zmq] @ git+https://gitcode.com/openJiuwen/agent-core.git@develop","pip==26.0.1","pgvector>=0.4.2","websockets>=12.0",diff --git a/tests/system_tests/test_a2x_bootstrap_replace_flow.py b/tests/system_tests/test_a2x_bootstrap_replace_flow.pynew file mode 100644index 0000000000..c9f24d70da--- /dev/null+++ b/tests/system_tests/test_a2x_bootstrap_replace_flow.py@@ -0,0 +1,233 @@+from __future__ import annotations++import json+import sys+import importlib.util+from pathlib import Path+from types import ModuleType, SimpleNamespace+from unittest.mock import AsyncMock++import pytest++pytestmark = [pytest.mark.integration, pytest.mark.system]+++_BOOTSTRAP_PATH = (+ Path(__file__).resolve().parents[2]+ / "jiuwenclaw"+ / "agentserver"+ / "team"+ / "remote_member_bootstrap.py"+)+_BOOTSTRAP_SPEC = importlib.util.spec_from_file_location(+ "test_remote_member_bootstrap_module",+ _BOOTSTRAP_PATH,+)+assert _BOOTSTRAP_SPEC is not None and _BOOTSTRAP_SPEC.loader is not None+bootstrap_module = importlib.util.module_from_spec(_BOOTSTRAP_SPEC)+_BOOTSTRAP_SPEC.loader.exec_module(bootstrap_module)+++def _install_fake_openjiuwen_schema(monkeypatch: pytest.MonkeyPatch) -> None:+ events_module = ModuleType("openjiuwen.agent_teams.schema.events")+ events_module.TeamEvent = SimpleNamespace(MESSAGE="message")++ team_module = ModuleType("openjiuwen.agent_teams.schema.team")+ team_module.TeamRole = SimpleNamespace(TEAMMATE="teammate")++ monkeypatch.setitem(sys.modules, "openjiuwen.agent_teams.schema.events", events_module)+ monkeypatch.setitem(sys.modules, "openjiuwen.agent_teams.schema.team", team_module)+++def _bootstrap_event(*, message_id: str, from_member: str, to_member: str) -> SimpleNamespace:+ return SimpleNamespace(+ event_type="message",+ payload={+ "message_id": message_id,+ "from_member_name": from_member,+ "to_member_name": to_member,+ },+ )+++def _bootstrap_envelope_json(*, member_name: str, dataset: str, service_id: str) -> str:+ return json.dumps(+ {+ "type": "jiuwen.remote_teammate_bootstrap",+ "version": 1,+ "member_name": member_name,+ "leader_member_name": "leader_1",+ "leader_agent_id": "leader-agent-id",+ "leader_direct_addr": "tcp://127.0.0.1:18555",+ # These two fields are intentionally present but should be ignored+ # since runtime now reads dataset/service_id only from local deep_agent.+ "a2x_dataset": dataset,+ "a2x_service_id": service_id,+ },+ ensure_ascii=False,+ )+++def _make_team_agent(+ *,+ deep_agent: object,+ envelope_content: str,+ target_member: str,+) -> tuple[SimpleNamespace, list]:+ listeners: list = []+ mm = SimpleNamespace(+ mark_message_read=AsyncMock(),+ send_message=AsyncMock(return_value="ack-1"),+ )+ team_agent = SimpleNamespace(+ role="teammate",+ deep_agent=deep_agent,+ _member_name=lambda: "teammate_local",+ _team_name=lambda: "team_demo",+ _messager=SimpleNamespace(register_peer=lambda _cfg: None),+ team_backend=SimpleNamespace(+ db=SimpleNamespace(+ get_message=AsyncMock(return_value=SimpleNamespace(content=envelope_content))+ )+ ),+ message_manager=mm,+ )++ def _add_event_listener(cb):+ listeners.append(cb)++ team_agent.add_event_listener = _add_event_listener+ return team_agent, listeners+++async def test_teammate_bootstrap_replaces_card_using_local_dataset_service_id(+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ _install_fake_openjiuwen_schema(monkeypatch)+ monkeypatch.setattr(bootstrap_module, "processed_message_ids", set(), raising=False)+ monkeypatch.setattr(+ "jiuwenclaw.config.get_config",+ lambda: {"team": {"runtime": {"mode": "distributed", "role": "teammate"}}},+ )+ monkeypatch.setattr(bootstrap_module, "_apply_leader_route_from_envelope", lambda *_a, **_k: True)++ client = SimpleNamespace(replace_agent_card=AsyncMock(return_value=SimpleNamespace(service_id="sid-local")))+ deep_agent = SimpleNamespace(+ _jiuwen_a2x_client=client,+ _jiuwen_a2x_blank_dataset="team_pool_local",+ _jiuwen_a2x_blank_service_id="sid-local",+ )+ target_member = "teammate_1"+ team_agent, listeners = _make_team_agent(+ deep_agent=deep_agent,+ envelope_content=_bootstrap_envelope_json(+ member_name=target_member,+ dataset="envelope_ds_should_be_ignored",+ service_id="envelope_sid_should_be_ignored",+ ),+ target_member=target_member,+ )++ bootstrap_module.attach_remote_teammate_bootstrap_listener(+ team_agent,+ session_id="sess_bootstrap_replace",+ )+ assert len(listeners) == 1++ await listeners[0](+ _bootstrap_event(+ message_id="msg-1",+ from_member="leader_1",+ to_member=target_member,+ )+ )++ client.replace_agent_card.assert_awaited_once()+ call_args = client.replace_agent_card.await_args+ assert call_args.args[0] == "team_pool_local"+ assert call_args.args[1] == "sid-local"+ assert call_args.args[2]["name"] == target_member+++async def test_teammate_bootstrap_raises_when_local_dataset_service_id_missing(+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ _install_fake_openjiuwen_schema(monkeypatch)+ monkeypatch.setattr(bootstrap_module, "processed_message_ids", set(), raising=False)+ monkeypatch.setattr(+ "jiuwenclaw.config.get_config",+ lambda: {"team": {"runtime": {"mode": "distributed", "role": "teammate"}}},+ )+ monkeypatch.setattr(bootstrap_module, "_apply_leader_route_from_envelope", lambda *_a, **_k: True)++ client = SimpleNamespace(replace_agent_card=AsyncMock())+ deep_agent = SimpleNamespace(+ _jiuwen_a2x_client=client,+ _jiuwen_a2x_blank_dataset="",+ _jiuwen_a2x_blank_service_id="",+ )+ target_member = "teammate_1"+ team_agent, listeners = _make_team_agent(+ deep_agent=deep_agent,+ envelope_content=_bootstrap_envelope_json(+ member_name=target_member,+ dataset="ignored_ds",+ service_id="ignored_sid",+ ),+ target_member=target_member,+ )++ bootstrap_module.attach_remote_teammate_bootstrap_listener(team_agent, session_id="sess_missing_ids")+ assert len(listeners) == 1++ with pytest.raises(ValueError, match="missing required dataset/service_id/member_name"):+ await listeners[0](+ _bootstrap_event(+ message_id="msg-2",+ from_member="leader_1",+ to_member=target_member,+ )+ )+++async def test_teammate_bootstrap_raises_when_local_a2x_client_missing(+ monkeypatch: pytest.MonkeyPatch,+) -> None:+ _install_fake_openjiuwen_schema(monkeypatch)+ monkeypatch.setattr(bootstrap_module, "processed_message_ids", set(), raising=False)+ monkeypatch.setattr(+ "jiuwenclaw.config.get_config",+ lambda: {"team": {"runtime": {"mode": "distributed", "role": "teammate"}}},+ )+ monkeypatch.setattr(bootstrap_module, "_apply_leader_route_from_envelope", lambda *_a, **_k: True)++ deep_agent = SimpleNamespace(+ _jiuwen_a2x_client=None,+ _jiuwen_a2x_blank_dataset="team_pool_local",+ _jiuwen_a2x_blank_service_id="sid-local",+ )+ target_member = "teammate_1"+ team_agent, listeners = _make_team_agent(+ deep_agent=deep_agent,+ envelope_content=_bootstrap_envelope_json(+ member_name=target_member,+ dataset="ignored_ds",+ service_id="ignored_sid",+ ),+ target_member=target_member,+ )++ bootstrap_module.attach_remote_teammate_bootstrap_listener(team_agent, session_id="sess_missing_client")+ assert len(listeners) == 1++ with pytest.raises(RuntimeError, match="missing A2X client"):+ await listeners[0](+ _bootstrap_event(+ message_id="msg-3",+ from_member="leader_1",+ to_member=target_member,+ )+ )diff --git a/tests/unit_tests/agentserver/test_a2x_registry_runtime_replace.py b/tests/unit_tests/agentserver/test_a2x_registry_runtime_replace.pynew file mode 100644index 0000000000..d2fe5cd9d0--- /dev/null+++ b/tests/unit_tests/agentserver/test_a2x_registry_runtime_replace.py@@ -0,0 +1,96 @@+from __future__ import annotations++from types import SimpleNamespace+from unittest.mock import AsyncMock++import pytest++from jiuwenclaw.agentserver import a2x_registry_runtime as _runtime+from jiuwenclaw.agentserver.a2x_registry_runtime import (+ replace_teammate_agent_card_after_bootstrap,+ register_blank_agent_if_teammate,+)+++async def test_replace_teammate_agent_card_raises_for_missing_required_fields() -> None:+ client = AsyncMock()+ with pytest.raises(ValueError, match="missing required dataset/service_id/member_name"):+ await replace_teammate_agent_card_after_bootstrap(+ client,+ dataset="team_pool",+ service_id="",+ member_name="team-1",+ source="test",+ )+++async def test_replace_teammate_agent_card_raises_for_missing_client() -> None:+ with pytest.raises(RuntimeError, match="missing A2X client"):+ await replace_teammate_agent_card_after_bootstrap(+ None,+ dataset="team_pool",+ service_id="sid-1",+ member_name="team-1",+ source="test",+ )+++async def test_replace_teammate_agent_card_accepts_configured_payload() -> None:+ client = AsyncMock()+ ok = await replace_teammate_agent_card_after_bootstrap(+ client,+ dataset="team_pool",+ service_id="sid-1",+ member_name="team-1",+ source="test",+ description="负责拆解任务",+ status="busy",+ skills=[{"name": "plan", "description": "子任务拆解"}],+ )+ assert ok is True+ client.replace_agent_card.assert_awaited_once()+ dataset, service_id, card = client.replace_agent_card.await_args.args+ assert dataset == "team_pool"+ assert service_id == "sid-1"+ assert card["name"] == "team-1"+ assert card["description"] == "负责拆解任务"+ assert card["status"] == "busy"+ assert card["skills"] == [{"name": "plan", "description": "子任务拆解"}]+++async def test_cached_blank_registration_is_exposed_on_later_client() -> None:+ registered_endpoints = getattr(_runtime, "_REGISTERED" "_BLANK_ENDPOINTS")+ registered_details = getattr(_runtime, "_REGISTERED" "_BLANK_REGISTRATIONS")+ registered_endpoints.clear()+ registered_details.clear()+ config = {+ "distributed_mode": True,+ "role": "teammate",+ "base_url": "http://127.0.0.1:8000",+ "dataset": "team_pool",+ "endpoint": "tcp://127.0.0.1:28610",+ }+ first_client = SimpleNamespace(register_blank_agent=AsyncMock(return_value=SimpleNamespace(service_id="sid-1")))+ second_client = SimpleNamespace(register_blank_agent=AsyncMock())++ try:+ assert await register_blank_agent_if_teammate(first_client, config, source="daemon") is True+ assert await register_blank_agent_if_teammate(second_client, config, source="deep-agent-init") is True+ finally:+ registered_endpoints.clear()+ registered_details.clear()++ first_client.register_blank_agent.assert_awaited_once()+ second_client.register_blank_agent.assert_not_awaited()+ assert getattr(second_client, "_jiuwen" "_blank_agent_registration") == {+ "dataset": "team_pool",+ "service_id": "sid-1",+ "endpoint": "tcp://127.0.0.1:28610",+ }+ assert getattr(second_client, "_jiuwen" "_blank_agent_dataset") == "team_pool"+ assert getattr(second_client, "_jiuwen" "_blank_agent_service_id") == "sid-1"+ assert getattr(second_client, "_jiuwen" "_blank_agent_endpoint") == "tcp://127.0.0.1:28610"diff --git a/tests/unit_tests/agentserver/test_remote_member_bootstrap.py b/tests/unit_tests/agentserver/test_remote_member_bootstrap.pyindex 390c85ab36..662c39dd5d 100644--- a/tests/unit_tests/agentserver/test_remote_member_bootstrap.py+++ b/tests/unit_tests/agentserver/test_remote_member_bootstrap.py@@ -383,16 +383,26 @@ async def test_spawn_member_wrapper_ensures_member_row_on_active_team(monkeypatc@pytest.mark.asyncioasync def test_bootstrap_allows_later_kickoff_for_same_member_after_task_done(monkeypatch):kickoff_calls = []+ card_replace_calls = []async def fake_ensure_dynamic_member_execution_loop(**kwargs):kickoff_calls.append(kwargs)return True, True+ async def fake_replace_card_after_direct_bootstrap(**kwargs):+ card_replace_calls.append(kwargs)+ return True+monkeypatch.setattr(_mod,"_ensure_dynamic_member_execution_loop",fake_ensure_dynamic_member_execution_loop,)+ monkeypatch.setattr(+ _mod,+ "_replace_teammate_card_after_direct_bootstrap",+ fake_replace_card_after_direct_bootstrap,+ )processed = set()loop_kicked_members = set()@@ -423,6 +433,7 @@ async def test_bootstrap_allows_later_kickoff_for_same_member_after_task_done(moawait asyncio.sleep(0)assert len(kickoff_calls) == 1+ assert card_replace_calls == [{"channel_id": "default", "member_name": "calculator"}]assert ("sess_1", "calculator") not in loop_kicked_membersenvelope["bootstrap_id"] = "boot-2"@@ -438,6 +449,58 @@ async def test_bootstrap_allows_later_kickoff_for_same_member_after_task_done(moawait asyncio.sleep(0)assert len(kickoff_calls) == 2+ assert card_replace_calls == [+ {"channel_id": "default", "member_name": "calculator"},+ {"channel_id": "default", "member_name": "calculator"},+ ]+++async def test_replace_teammate_card_after_direct_bootstrap_uses_local_a2x_state(monkeypatch):+ replace_calls = []+ client = SimpleNamespace()+ deep_agent = SimpleNamespace(+ _jiuwen_a2x_client=client,+ _jiuwen_a2x_blank_dataset="team_pool_local",+ _jiuwen_a2x_blank_service_id="sid-local",+ )+ agent = SimpleNamespace(get_instance=lambda: deep_agent)+ agent_manager = SimpleNamespace(+ get_agent_nowait=lambda channel_id: agent,+ get_agent=AsyncMock(return_value=agent),+ )+ server = SimpleNamespace(get_agent_manager=lambda: agent_manager)++ async def fake_replace_teammate_agent_card_after_bootstrap(*args, **kwargs):+ replace_calls.append((args, kwargs))+ return True++ monkeypatch.setattr(+ "jiuwenclaw.agentserver.agent_ws_server.AgentWebSocketServer.get_instance",+ lambda: server,+ )+ monkeypatch.setattr(+ "jiuwenclaw.agentserver.a2x_registry_runtime.replace_teammate_agent_card_after_bootstrap",+ fake_replace_teammate_agent_card_after_bootstrap,+ )+ replace_teammate_card = getattr(+ _mod,+ "_replace_teammate_card"+ "_after_direct_bootstrap",+ )++ replaced = await replace_teammate_card(channel_id="default", member_name="calculator")++ assert replaced is True+ assert len(replace_calls) == 1+ args, kwargs = replace_calls[0]+ assert args == (client,)+ assert kwargs == {+ "dataset": "team_pool_local",+ "service_id": "sid-local",+ "member_name": "calculator",+ "source": "teammate-direct-bootstrap",+ }def test_retarget_teammate_direct_addr_allocates_non_default_port(monkeypatch):diff --git a/uv.lock b/uv.lockindex b4ea3d139c..9226a0aafa 100644--- a/uv.lock+++ b/uv.lock@@ -206,6 +206,38 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/fe/ba/e2081de779ca30d473f21f5b30e0e737c438205440784c7dfc81efc2b029/async_timeout-5.0.1-py3-none-any.whl", hash = "sha256:39e3809566ff85354557ec2398b55e096c8364bacac9405a7a1fa429e77fe76c", size = 6233, upload-time = "2024-11-06T16:41:37.9Z" },]+[[package]]+name = "asyncpg"+version = "0.31.0"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/fe/cc/d18065ce2380d80b1bcce927c24a2642efd38918e33fd724bc4bca904877/asyncpg-0.31.0.tar.gz", hash = "sha256:c989386c83940bfbd787180f2b1519415e2d3d6277a70d9d0f0145ac73500735", size = 993667, upload-time = "2025-11-24T23:27:00.812Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/08/17/cc02bc49bc350623d050fa139e34ea512cd6e020562f2a7312a7bcae4bc9/asyncpg-0.31.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:eee690960e8ab85063ba93af2ce128c0f52fd655fdff9fdb1a28df01329f031d", size = 643159, upload-time = "2025-11-24T23:25:36.443Z" },+ { url = "https://files.pythonhosted.org/packages/a4/62/4ded7d400a7b651adf06f49ea8f73100cca07c6df012119594d1e3447aa6/asyncpg-0.31.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2657204552b75f8288de08ca60faf4a99a65deef3a71d1467454123205a88fab", size = 638157, upload-time = "2025-11-24T23:25:37.89Z" },+ { url = "https://files.pythonhosted.org/packages/d6/5b/4179538a9a72166a0bf60ad783b1ef16efb7960e4d7b9afe9f77a5551680/asyncpg-0.31.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:a429e842a3a4b4ea240ea52d7fe3f82d5149853249306f7ff166cb9948faa46c", size = 2918051, upload-time = "2025-11-24T23:25:39.461Z" },+ { url = "https://files.pythonhosted.org/packages/e6/35/c27719ae0536c5b6e61e4701391ffe435ef59539e9360959240d6e47c8c8/asyncpg-0.31.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c0807be46c32c963ae40d329b3a686356e417f674c976c07fa49f1b30303f109", size = 2972640, upload-time = "2025-11-24T23:25:41.512Z" },+ { url = "https://files.pythonhosted.org/packages/43/f4/01ebb9207f29e645a64699b9ce0eefeff8e7a33494e1d29bb53736f7766b/asyncpg-0.31.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:e5d5098f63beeae93512ee513d4c0c53dc12e9aa2b7a1af5a81cddf93fe4e4da", size = 2851050, upload-time = "2025-11-24T23:25:43.153Z" },+ { url = "https://files.pythonhosted.org/packages/3e/f4/03ff1426acc87be0f4e8d40fa2bff5c3952bef0080062af9efc2212e3be8/asyncpg-0.31.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:37fc6c00a814e18eef51833545d1891cac9aa69140598bb076b4cd29b3e010b9", size = 2962574, upload-time = "2025-11-24T23:25:44.942Z" },+ { url = "https://files.pythonhosted.org/packages/c7/39/cc788dfca3d4060f9d93e67be396ceec458dfc429e26139059e58c2c244d/asyncpg-0.31.0-cp311-cp311-win32.whl", hash = "sha256:5a4af56edf82a701aece93190cc4e094d2df7d33f6e915c222fb09efbb5afc24", size = 521076, upload-time = "2025-11-24T23:25:46.486Z" },+ { url = "https://files.pythonhosted.org/packages/28/fc/735af5384c029eb7f1ca60ccb8fa95521dbdaeef788edf4cecfc604c3cab/asyncpg-0.31.0-cp311-cp311-win_amd64.whl", hash = "sha256:480c4befbdf079c14c9ca43c8c5e1fe8b6296c96f1f927158d4f1e750aacc047", size = 584980, upload-time = "2025-11-24T23:25:47.938Z" },+ { url = "https://files.pythonhosted.org/packages/2a/a6/59d0a146e61d20e18db7396583242e32e0f120693b67a8de43f1557033e2/asyncpg-0.31.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:b44c31e1efc1c15188ef183f287c728e2046abb1d26af4d20858215d50d91fad", size = 662042, upload-time = "2025-11-24T23:25:49.578Z" },+ { url = "https://files.pythonhosted.org/packages/36/01/ffaa189dcb63a2471720615e60185c3f6327716fdc0fc04334436fbb7c65/asyncpg-0.31.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:0c89ccf741c067614c9b5fc7f1fc6f3b61ab05ae4aaa966e6fd6b93097c7d20d", size = 638504, upload-time = "2025-11-24T23:25:51.501Z" },+ { url = "https://files.pythonhosted.org/packages/9f/62/3f699ba45d8bd24c5d65392190d19656d74ff0185f42e19d0bbd973bb371/asyncpg-0.31.0-cp312-cp312-manylinux_2_28_aarch64.whl", hash = "sha256:12b3b2e39dc5470abd5e98c8d3373e4b1d1234d9fbdedf538798b2c13c64460a", size = 3426241, upload-time = "2025-11-24T23:25:53.278Z" },+ { url = "https://files.pythonhosted.org/packages/8c/d1/a867c2150f9c6e7af6462637f613ba67f78a314b00db220cd26ff559d532/asyncpg-0.31.0-cp312-cp312-manylinux_2_28_x86_64.whl", hash = "sha256:aad7a33913fb8bcb5454313377cc330fbb19a0cd5faa7272407d8a0c4257b671", size = 3520321, upload-time = "2025-11-24T23:25:54.982Z" },+ { url = "https://files.pythonhosted.org/packages/7a/1a/cce4c3f246805ecd285a3591222a2611141f1669d002163abef999b60f98/asyncpg-0.31.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:3df118d94f46d85b2e434fd62c84cb66d5834d5a890725fe625f498e72e4d5ec", size = 3316685, upload-time = "2025-11-24T23:25:57.43Z" },+ { url = "https://files.pythonhosted.org/packages/40/ae/0fc961179e78cc579e138fad6eb580448ecae64908f95b8cb8ee2f241f67/asyncpg-0.31.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:bd5b6efff3c17c3202d4b37189969acf8927438a238c6257f66be3c426beba20", size = 3471858, upload-time = "2025-11-24T23:25:59.636Z" },+ { url = "https://files.pythonhosted.org/packages/52/b2/b20e09670be031afa4cbfabd645caece7f85ec62d69c312239de568e058e/asyncpg-0.31.0-cp312-cp312-win32.whl", hash = "sha256:027eaa61361ec735926566f995d959ade4796f6a49d3bde17e5134b9964f9ba8", size = 527852, upload-time = "2025-11-24T23:26:01.084Z" },+ { url = "https://files.pythonhosted.org/packages/b5/f0/f2ed1de154e15b107dc692262395b3c17fc34eafe2a78fc2115931561730/asyncpg-0.31.0-cp312-cp312-win_amd64.whl", hash = "sha256:72d6bdcbc93d608a1158f17932de2321f68b1a967a13e014998db87a72ed3186", size = 597175, upload-time = "2025-11-24T23:26:02.564Z" },+ { url = "https://files.pythonhosted.org/packages/95/11/97b5c2af72a5d0b9bc3fa30cd4b9ce22284a9a943a150fdc768763caf035/asyncpg-0.31.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:c204fab1b91e08b0f47e90a75d1b3c62174dab21f670ad6c5d0f243a228f015b", size = 661111, upload-time = "2025-11-24T23:26:04.467Z" },+ { url = "https://files.pythonhosted.org/packages/1b/71/157d611c791a5e2d0423f09f027bd499935f0906e0c2a416ce712ba51ef3/asyncpg-0.31.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:54a64f91839ba59008eccf7aad2e93d6e3de688d796f35803235ea1c4898ae1e", size = 636928, upload-time = "2025-11-24T23:26:05.944Z" },+ { url = "https://files.pythonhosted.org/packages/2e/fc/9e3486fb2bbe69d4a867c0b76d68542650a7ff1574ca40e84c3111bb0c6e/asyncpg-0.31.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c0e0822b1038dc7253b337b0f3f676cadc4ac31b126c5d42691c39691962e403", size = 3424067, upload-time = "2025-11-24T23:26:07.957Z" },+ { url = "https://files.pythonhosted.org/packages/12/c6/8c9d076f73f07f995013c791e018a1cd5f31823c2a3187fc8581706aa00f/asyncpg-0.31.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:bef056aa502ee34204c161c72ca1f3c274917596877f825968368b2c33f585f4", size = 3518156, upload-time = "2025-11-24T23:26:09.591Z" },+ { url = "https://files.pythonhosted.org/packages/ae/3b/60683a0baf50fbc546499cfb53132cb6835b92b529a05f6a81471ab60d0c/asyncpg-0.31.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:0bfbcc5b7ffcd9b75ab1558f00db2ae07db9c80637ad1b2469c43df79d7a5ae2", size = 3319636, upload-time = "2025-11-24T23:26:11.168Z" },+ { url = "https://files.pythonhosted.org/packages/50/dc/8487df0f69bd398a61e1792b3cba0e47477f214eff085ba0efa7eac9ce87/asyncpg-0.31.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:22bc525ebbdc24d1261ecbf6f504998244d4e3be1721784b5f64664d61fbe602", size = 3472079, upload-time = "2025-11-24T23:26:13.164Z" },+ { url = "https://files.pythonhosted.org/packages/13/a1/c5bbeeb8531c05c89135cb8b28575ac2fac618bcb60119ee9696c3faf71c/asyncpg-0.31.0-cp313-cp313-win32.whl", hash = "sha256:f890de5e1e4f7e14023619399a471ce4b71f5418cd67a51853b9910fdfa73696", size = 527606, upload-time = "2025-11-24T23:26:14.78Z" },+ { url = "https://files.pythonhosted.org/packages/91/66/b25ccb84a246b470eb943b0107c07edcae51804912b824054b3413995a10/asyncpg-0.31.0-cp313-cp313-win_amd64.whl", hash = "sha256:dc5f2fa9916f292e5c5c8b2ac2813763bcd7f58e130055b4ad8a0531314201ab", size = 596569, upload-time = "2025-11-24T23:26:16.189Z" },+]+[[package]]name = "attrs"version = "25.4.0"@@ -1524,7 +1556,7 @@ dependencies = [{ name = "lark-oapi" },{ name = "loguru" },{ name = "mutagen" },- { name = "openjiuwen" },+ { name = "openjiuwen", extra = ["postgres", "zmq"] },{ name = "opentelemetry-api" },{ name = "opentelemetry-exporter-otlp-proto-grpc" },{ name = "opentelemetry-exporter-otlp-proto-http" },@@ -1592,7 +1624,7 @@ requires-dist = [{ name = "lark-oapi", specifier = ">=1.5.3" },{ name = "loguru", specifier = ">=0.7.3" },{ name = "mutagen", specifier = ">=1.47.0" },- { name = "openjiuwen", git = "https://gitcode.com/openJiuwen/agent-core.git?rev=develop" },+ { name = "openjiuwen", extras = ["postgres", "zmq"], git = "https://gitcode.com/openJiuwen/agent-core.git?rev=develop" },{ name = "opentelemetry-api", specifier = ">=1.25.0" },{ name = "opentelemetry-exporter-otlp-proto-grpc", specifier = ">=1.25.0" },{ name = "opentelemetry-exporter-otlp-proto-http", specifier = ">=1.25.0" },@@ -2366,6 +2398,15 @@ dependencies = [{ name = "transformers" },]+[package.optional-dependencies]+postgres = [+ { name = "asyncpg" },+]+zmq = [+ { name = "pyzmq" },+ { name = "tornado" },+]+[[package]]name = "openpyxl"version = "3.1.5"@@ -3788,6 +3829,54 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/73/e8/2bdf3ca2090f68bb3d75b44da7bbc71843b19c9f2b9cb9b0f4ab7a5a4329/pyyaml-6.0.3-cp313-cp313-win_arm64.whl", hash = "sha256:5498cd1645aa724a7c71c8f378eb29ebe23da2fc0d7a08071d89469bf1d2defb", size = 140246, upload-time = "2025-09-25T21:32:34.663Z" },]+[[package]]+name = "pyzmq"+version = "27.1.0"+source = { registry = "https://pypi.org/simple" }+dependencies = [+ { name = "cffi", marker = "implementation_name == 'pypy'" },+]+sdist = { url = "https://files.pythonhosted.org/packages/04/0b/3c9baedbdf613ecaa7aa07027780b8867f57b6293b6ee50de316c9f3222b/pyzmq-27.1.0.tar.gz", hash = "sha256:ac0765e3d44455adb6ddbf4417dcce460fc40a05978c08efdf2948072f6db540", size = 281750, upload-time = "2025-09-08T23:10:18.157Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/06/5d/305323ba86b284e6fcb0d842d6adaa2999035f70f8c38a9b6d21ad28c3d4/pyzmq-27.1.0-cp311-cp311-macosx_10_15_universal2.whl", hash = "sha256:226b091818d461a3bef763805e75685e478ac17e9008f49fce2d3e52b3d58b86", size = 1333328, upload-time = "2025-09-08T23:07:45.946Z" },+ { url = "https://files.pythonhosted.org/packages/bd/a0/fc7e78a23748ad5443ac3275943457e8452da67fda347e05260261108cbc/pyzmq-27.1.0-cp311-cp311-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:0790a0161c281ca9723f804871b4027f2e8b5a528d357c8952d08cd1a9c15581", size = 908803, upload-time = "2025-09-08T23:07:47.551Z" },+ { url = "https://files.pythonhosted.org/packages/7e/22/37d15eb05f3bdfa4abea6f6d96eb3bb58585fbd3e4e0ded4e743bc650c97/pyzmq-27.1.0-cp311-cp311-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:c895a6f35476b0c3a54e3eb6ccf41bf3018de937016e6e18748317f25d4e925f", size = 668836, upload-time = "2025-09-08T23:07:49.436Z" },+ { url = "https://files.pythonhosted.org/packages/b1/c4/2a6fe5111a01005fc7af3878259ce17684fabb8852815eda6225620f3c59/pyzmq-27.1.0-cp311-cp311-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5bbf8d3630bf96550b3be8e1fc0fea5cbdc8d5466c1192887bd94869da17a63e", size = 857038, upload-time = "2025-09-08T23:07:51.234Z" },+ { url = "https://files.pythonhosted.org/packages/cb/eb/bfdcb41d0db9cd233d6fb22dc131583774135505ada800ebf14dfb0a7c40/pyzmq-27.1.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:15c8bd0fe0dabf808e2d7a681398c4e5ded70a551ab47482067a572c054c8e2e", size = 1657531, upload-time = "2025-09-08T23:07:52.795Z" },+ { url = "https://files.pythonhosted.org/packages/ab/21/e3180ca269ed4a0de5c34417dfe71a8ae80421198be83ee619a8a485b0c7/pyzmq-27.1.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:bafcb3dd171b4ae9f19ee6380dfc71ce0390fefaf26b504c0e5f628d7c8c54f2", size = 2034786, upload-time = "2025-09-08T23:07:55.047Z" },+ { url = "https://files.pythonhosted.org/packages/3b/b1/5e21d0b517434b7f33588ff76c177c5a167858cc38ef740608898cd329f2/pyzmq-27.1.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:e829529fcaa09937189178115c49c504e69289abd39967cd8a4c215761373394", size = 1894220, upload-time = "2025-09-08T23:07:57.172Z" },+ { url = "https://files.pythonhosted.org/packages/03/f2/44913a6ff6941905efc24a1acf3d3cb6146b636c546c7406c38c49c403d4/pyzmq-27.1.0-cp311-cp311-win32.whl", hash = "sha256:6df079c47d5902af6db298ec92151db82ecb557af663098b92f2508c398bb54f", size = 567155, upload-time = "2025-09-08T23:07:59.05Z" },+ { url = "https://files.pythonhosted.org/packages/23/6d/d8d92a0eb270a925c9b4dd039c0b4dc10abc2fcbc48331788824ef113935/pyzmq-27.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:190cbf120fbc0fc4957b56866830def56628934a9d112aec0e2507aa6a032b97", size = 633428, upload-time = "2025-09-08T23:08:00.663Z" },+ { url = "https://files.pythonhosted.org/packages/ae/14/01afebc96c5abbbd713ecfc7469cfb1bc801c819a74ed5c9fad9a48801cb/pyzmq-27.1.0-cp311-cp311-win_arm64.whl", hash = "sha256:eca6b47df11a132d1745eb3b5b5e557a7dae2c303277aa0e69c6ba91b8736e07", size = 559497, upload-time = "2025-09-08T23:08:02.15Z" },+ { url = "https://files.pythonhosted.org/packages/92/e7/038aab64a946d535901103da16b953c8c9cc9c961dadcbf3609ed6428d23/pyzmq-27.1.0-cp312-abi3-macosx_10_15_universal2.whl", hash = "sha256:452631b640340c928fa343801b0d07eb0c3789a5ffa843f6e1a9cee0ba4eb4fc", size = 1306279, upload-time = "2025-09-08T23:08:03.807Z" },+ { url = "https://files.pythonhosted.org/packages/e8/5e/c3c49fdd0f535ef45eefcc16934648e9e59dace4a37ee88fc53f6cd8e641/pyzmq-27.1.0-cp312-abi3-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:1c179799b118e554b66da67d88ed66cd37a169f1f23b5d9f0a231b4e8d44a113", size = 895645, upload-time = "2025-09-08T23:08:05.301Z" },+ { url = "https://files.pythonhosted.org/packages/f8/e5/b0b2504cb4e903a74dcf1ebae157f9e20ebb6ea76095f6cfffea28c42ecd/pyzmq-27.1.0-cp312-abi3-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:3837439b7f99e60312f0c926a6ad437b067356dc2bc2ec96eb395fd0fe804233", size = 652574, upload-time = "2025-09-08T23:08:06.828Z" },+ { url = "https://files.pythonhosted.org/packages/f8/9b/c108cdb55560eaf253f0cbdb61b29971e9fb34d9c3499b0e96e4e60ed8a5/pyzmq-27.1.0-cp312-abi3-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:43ad9a73e3da1fab5b0e7e13402f0b2fb934ae1c876c51d0afff0e7c052eca31", size = 840995, upload-time = "2025-09-08T23:08:08.396Z" },+ { url = "https://files.pythonhosted.org/packages/c2/bb/b79798ca177b9eb0825b4c9998c6af8cd2a7f15a6a1a4272c1d1a21d382f/pyzmq-27.1.0-cp312-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:0de3028d69d4cdc475bfe47a6128eb38d8bc0e8f4d69646adfbcd840facbac28", size = 1642070, upload-time = "2025-09-08T23:08:09.989Z" },+ { url = "https://files.pythonhosted.org/packages/9c/80/2df2e7977c4ede24c79ae39dcef3899bfc5f34d1ca7a5b24f182c9b7a9ca/pyzmq-27.1.0-cp312-abi3-musllinux_1_2_i686.whl", hash = "sha256:cf44a7763aea9298c0aa7dbf859f87ed7012de8bda0f3977b6fb1d96745df856", size = 2021121, upload-time = "2025-09-08T23:08:11.907Z" },+ { url = "https://files.pythonhosted.org/packages/46/bd/2d45ad24f5f5ae7e8d01525eb76786fa7557136555cac7d929880519e33a/pyzmq-27.1.0-cp312-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:f30f395a9e6fbca195400ce833c731e7b64c3919aa481af4d88c3759e0cb7496", size = 1878550, upload-time = "2025-09-08T23:08:13.513Z" },+ { url = "https://files.pythonhosted.org/packages/e6/2f/104c0a3c778d7c2ab8190e9db4f62f0b6957b53c9d87db77c284b69f33ea/pyzmq-27.1.0-cp312-abi3-win32.whl", hash = "sha256:250e5436a4ba13885494412b3da5d518cd0d3a278a1ae640e113c073a5f88edd", size = 559184, upload-time = "2025-09-08T23:08:15.163Z" },+ { url = "https://files.pythonhosted.org/packages/fc/7f/a21b20d577e4100c6a41795842028235998a643b1ad406a6d4163ea8f53e/pyzmq-27.1.0-cp312-abi3-win_amd64.whl", hash = "sha256:9ce490cf1d2ca2ad84733aa1d69ce6855372cb5ce9223802450c9b2a7cba0ccf", size = 619480, upload-time = "2025-09-08T23:08:17.192Z" },+ { url = "https://files.pythonhosted.org/packages/78/c2/c012beae5f76b72f007a9e91ee9401cb88c51d0f83c6257a03e785c81cc2/pyzmq-27.1.0-cp312-abi3-win_arm64.whl", hash = "sha256:75a2f36223f0d535a0c919e23615fc85a1e23b71f40c7eb43d7b1dedb4d8f15f", size = 552993, upload-time = "2025-09-08T23:08:18.926Z" },+ { url = "https://files.pythonhosted.org/packages/60/cb/84a13459c51da6cec1b7b1dc1a47e6db6da50b77ad7fd9c145842750a011/pyzmq-27.1.0-cp313-cp313-android_24_arm64_v8a.whl", hash = "sha256:93ad4b0855a664229559e45c8d23797ceac03183c7b6f5b4428152a6b06684a5", size = 1122436, upload-time = "2025-09-08T23:08:20.801Z" },+ { url = "https://files.pythonhosted.org/packages/dc/b6/94414759a69a26c3dd674570a81813c46a078767d931a6c70ad29fc585cb/pyzmq-27.1.0-cp313-cp313-android_24_x86_64.whl", hash = "sha256:fbb4f2400bfda24f12f009cba62ad5734148569ff4949b1b6ec3b519444342e6", size = 1156301, upload-time = "2025-09-08T23:08:22.47Z" },+ { url = "https://files.pythonhosted.org/packages/a5/ad/15906493fd40c316377fd8a8f6b1f93104f97a752667763c9b9c1b71d42d/pyzmq-27.1.0-cp313-cp313t-macosx_10_15_universal2.whl", hash = "sha256:e343d067f7b151cfe4eb3bb796a7752c9d369eed007b91231e817071d2c2fec7", size = 1341197, upload-time = "2025-09-08T23:08:24.286Z" },+ { url = "https://files.pythonhosted.org/packages/14/1d/d343f3ce13db53a54cb8946594e567410b2125394dafcc0268d8dda027e0/pyzmq-27.1.0-cp313-cp313t-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:08363b2011dec81c354d694bdecaef4770e0ae96b9afea70b3f47b973655cc05", size = 897275, upload-time = "2025-09-08T23:08:26.063Z" },+ { url = "https://files.pythonhosted.org/packages/69/2d/d83dd6d7ca929a2fc67d2c3005415cdf322af7751d773524809f9e585129/pyzmq-27.1.0-cp313-cp313t-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:d54530c8c8b5b8ddb3318f481297441af102517602b569146185fa10b63f4fa9", size = 660469, upload-time = "2025-09-08T23:08:27.623Z" },+ { url = "https://files.pythonhosted.org/packages/3e/cd/9822a7af117f4bc0f1952dbe9ef8358eb50a24928efd5edf54210b850259/pyzmq-27.1.0-cp313-cp313t-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:6f3afa12c392f0a44a2414056d730eebc33ec0926aae92b5ad5cf26ebb6cc128", size = 847961, upload-time = "2025-09-08T23:08:29.672Z" },+ { url = "https://files.pythonhosted.org/packages/9a/12/f003e824a19ed73be15542f172fd0ec4ad0b60cf37436652c93b9df7c585/pyzmq-27.1.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:c65047adafe573ff023b3187bb93faa583151627bc9c51fc4fb2c561ed689d39", size = 1650282, upload-time = "2025-09-08T23:08:31.349Z" },+ { url = "https://files.pythonhosted.org/packages/d5/4a/e82d788ed58e9a23995cee70dbc20c9aded3d13a92d30d57ec2291f1e8a3/pyzmq-27.1.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:90e6e9441c946a8b0a667356f7078d96411391a3b8f80980315455574177ec97", size = 2024468, upload-time = "2025-09-08T23:08:33.543Z" },+ { url = "https://files.pythonhosted.org/packages/d9/94/2da0a60841f757481e402b34bf4c8bf57fa54a5466b965de791b1e6f747d/pyzmq-27.1.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:add071b2d25f84e8189aaf0882d39a285b42fa3853016ebab234a5e78c7a43db", size = 1885394, upload-time = "2025-09-08T23:08:35.51Z" },+ { url = "https://files.pythonhosted.org/packages/4f/6f/55c10e2e49ad52d080dc24e37adb215e5b0d64990b57598abc2e3f01725b/pyzmq-27.1.0-cp313-cp313t-win32.whl", hash = "sha256:7ccc0700cfdf7bd487bea8d850ec38f204478681ea02a582a8da8171b7f90a1c", size = 574964, upload-time = "2025-09-08T23:08:37.178Z" },+ { url = "https://files.pythonhosted.org/packages/87/4d/2534970ba63dd7c522d8ca80fb92777f362c0f321900667c615e2067cb29/pyzmq-27.1.0-cp313-cp313t-win_amd64.whl", hash = "sha256:8085a9fba668216b9b4323be338ee5437a235fe275b9d1610e422ccc279733e2", size = 641029, upload-time = "2025-09-08T23:08:40.595Z" },+ { url = "https://files.pythonhosted.org/packages/f6/fa/f8aea7a28b0641f31d40dea42d7ef003fded31e184ef47db696bc74cd610/pyzmq-27.1.0-cp313-cp313t-win_arm64.whl", hash = "sha256:6bb54ca21bcfe361e445256c15eedf083f153811c37be87e0514934d6913061e", size = 561541, upload-time = "2025-09-08T23:08:42.668Z" },+ { url = "https://files.pythonhosted.org/packages/4c/c6/c4dcdecdbaa70969ee1fdced6d7b8f60cfabe64d25361f27ac4665a70620/pyzmq-27.1.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:18770c8d3563715387139060d37859c02ce40718d1faf299abddcdcc6a649066", size = 836265, upload-time = "2025-09-08T23:09:49.376Z" },+ { url = "https://files.pythonhosted.org/packages/3e/79/f38c92eeaeb03a2ccc2ba9866f0439593bb08c5e3b714ac1d553e5c96e25/pyzmq-27.1.0-pp311-pypy311_pp73-manylinux2014_i686.manylinux_2_17_i686.whl", hash = "sha256:ac25465d42f92e990f8d8b0546b01c391ad431c3bf447683fdc40565941d0604", size = 800208, upload-time = "2025-09-08T23:09:51.073Z" },+ { url = "https://files.pythonhosted.org/packages/49/0e/3f0d0d335c6b3abb9b7b723776d0b21fa7f3a6c819a0db6097059aada160/pyzmq-27.1.0-pp311-pypy311_pp73-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:53b40f8ae006f2734ee7608d59ed661419f087521edbfc2149c3932e9c14808c", size = 567747, upload-time = "2025-09-08T23:09:52.698Z" },+ { url = "https://files.pythonhosted.org/packages/a1/cf/f2b3784d536250ffd4be70e049f3b60981235d70c6e8ce7e3ef21e1adb25/pyzmq-27.1.0-pp311-pypy311_pp73-manylinux_2_26_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:f605d884e7c8be8fe1aa94e0a783bf3f591b84c24e4bc4f3e7564c82ac25e271", size = 747371, upload-time = "2025-09-08T23:09:54.563Z" },+ { url = "https://files.pythonhosted.org/packages/01/1b/5dbe84eefc86f48473947e2f41711aded97eecef1231f4558f1f02713c12/pyzmq-27.1.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:c9f7f6e13dff2e44a6afeaf2cf54cee5929ad64afaf4d40b50f93c58fc687355", size = 544862, upload-time = "2025-09-08T23:09:56.509Z" },+]+[[package]]name = "qtpy"version = "2.4.3"@@ -4401,6 +4490,23 @@ wheels = [{ url = "https://files.pythonhosted.org/packages/23/d1/136eb2cb77520a31e1f64cbae9d33ec6df0d78bdf4160398e86eec8a8754/tomli-2.4.0-py3-none-any.whl", hash = "sha256:1f776e7d669ebceb01dee46484485f43a4048746235e683bcdffacdf1fb4785a", size = 14477, upload-time = "2026-01-11T11:22:37.446Z" },]+[[package]]+name = "tornado"+version = "6.5.5"+source = { registry = "https://pypi.org/simple" }+sdist = { url = "https://files.pythonhosted.org/packages/f8/f1/3173dfa4a18db4a9b03e5d55325559dab51ee653763bb8745a75af491286/tornado-6.5.5.tar.gz", hash = "sha256:192b8f3ea91bd7f1f50c06955416ed76c6b72f96779b962f07f911b91e8d30e9", size = 516006, upload-time = "2026-03-10T21:31:02.067Z" }+wheels = [+ { url = "https://files.pythonhosted.org/packages/59/8c/77f5097695f4dd8255ecbd08b2a1ed8ba8b953d337804dd7080f199e12bf/tornado-6.5.5-cp39-abi3-macosx_10_9_universal2.whl", hash = "sha256:487dc9cc380e29f58c7ab88f9e27cdeef04b2140862e5076a66fb6bb68bb1bfa", size = 445983, upload-time = "2026-03-10T21:30:44.28Z" },+ { url = "https://files.pythonhosted.org/packages/ab/5e/7625b76cd10f98f1516c36ce0346de62061156352353ef2da44e5c21523c/tornado-6.5.5-cp39-abi3-macosx_10_9_x86_64.whl", hash = "sha256:65a7f1d46d4bb41df1ac99f5fcb685fb25c7e61613742d5108b010975a9a6521", size = 444246, upload-time = "2026-03-10T21:30:46.571Z" },+ { url = "https://files.pythonhosted.org/packages/b2/04/7b5705d5b3c0fab088f434f9c83edac1573830ca49ccf29fb83bf7178eec/tornado-6.5.5-cp39-abi3-manylinux1_x86_64.manylinux_2_28_x86_64.manylinux_2_5_x86_64.whl", hash = "sha256:e74c92e8e65086b338fd56333fb9a68b9f6f2fe7ad532645a290a464bcf46be5", size = 447229, upload-time = "2026-03-10T21:30:48.273Z" },+ { url = "https://files.pythonhosted.org/packages/34/01/74e034a30ef59afb4097ef8659515e96a39d910b712a89af76f5e4e1f93c/tornado-6.5.5-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:435319e9e340276428bbdb4e7fa732c2d399386d1de5686cb331ec8eee754f07", size = 448192, upload-time = "2026-03-10T21:30:51.22Z" },+ { url = "https://files.pythonhosted.org/packages/be/00/fe9e02c5a96429fce1a1d15a517f5d8444f9c412e0bb9eadfbe3b0fc55bf/tornado-6.5.5-cp39-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:3f54aa540bdbfee7b9eb268ead60e7d199de5021facd276819c193c0fb28ea4e", size = 448039, upload-time = "2026-03-10T21:30:53.52Z" },+ { url = "https://files.pythonhosted.org/packages/82/9e/656ee4cec0398b1d18d0f1eb6372c41c6b889722641d84948351ae19556d/tornado-6.5.5-cp39-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:36abed1754faeb80fbd6e64db2758091e1320f6bba74a4cf8c09cd18ccce8aca", size = 447445, upload-time = "2026-03-10T21:30:55.541Z" },+ { url = "https://files.pythonhosted.org/packages/5a/76/4921c00511f88af86a33de770d64141170f1cfd9c00311aea689949e274e/tornado-6.5.5-cp39-abi3-win32.whl", hash = "sha256:dd3eafaaeec1c7f2f8fdcd5f964e8907ad788fe8a5a32c4426fbbdda621223b7", size = 448582, upload-time = "2026-03-10T21:30:57.142Z" },+ { url = "https://files.pythonhosted.org/packages/2c/23/f6c6112a04d28eed765e374435fb1a9198f73e1ec4b4024184f21faeb1ad/tornado-6.5.5-cp39-abi3-win_amd64.whl", hash = "sha256:6443a794ba961a9f619b1ae926a2e900ac20c34483eea67be4ed8f1e58d3ef7b", size = 448990, upload-time = "2026-03-10T21:30:58.857Z" },+ { url = "https://files.pythonhosted.org/packages/b7/c8/876602cbc96469911f0939f703453c1157b0c826ecb05bdd32e023397d4e/tornado-6.5.5-cp39-abi3-win_arm64.whl", hash = "sha256:2c9a876e094109333f888539ddb2de4361743e5d21eece20688e3e351e4990a6", size = 448016, upload-time = "2026-03-10T21:31:00.43Z" },+]+[[package]]name = "tqdm"version = "4.67.3"