Commit Graph
2 Commits
Author SHA1 Message Date
Alessandro Frau 56b2910f46 Stop A2A ambient token forwarding
Do not automatically attach the process-wide A2A_TOKEN to model-selected destinations. Keep explicitly supplied connection credentials and document the existing token-bearing Agent Zero connection URL for protected peers.

Add regressions proving that arbitrary destinations receive no ambient Authorization or X-API-KEY headers, explicit tokens still work, and token-bearing URLs are preserved for discovery and RPC. Exercise discovery, message send and conversation reuse through the server auth/router for token URLs, explicit headers and public peers.

Validation: 8 client/tool tests passed. One expected failure records pre-existing project URL handling of chunked request bodies; the server implementation is unchanged.
2026-11-16 19:11:08 +01:00
linkliti bb161d9878 feat(plugins): extract a2a_chat tool into _a2a_chat plugin
Move the a2a_chat tool, its FastA2A client helper, prompts, and DOX into a _a2a_chat plugin so agent-to-agent chat ships as a standard plugin. Invalid reset arguments return a repairable message, concurrent session updates merge instead of overwriting each other, and agent-facing failure and repair messages render from plugin prompt files instead of Python literals. The tool logs its message as its own `a2a_chat` type with an `icon://hub Chatting: <agent_url>` headline rendered through an A2A badge handler with lilac accent styles, joined later by the computer use badge in the remote family.

Validation: pytest tests/test_tool_action_contracts.py tests/test_a2a_chat_tool.py
2026-10-21 19:04:33 +03:00