Commit Graph
2 Commits
Author SHA1 Message Date
linkliti 8fbcbdbc00 refactor(tools): unify boolean argument coercion in helpers.tool
Centralize boolean argument coercion in helpers.tool and route the promoted and core tools through it. This removes the duplicated private coercion helpers, including one in the remote code execution tool, along with the repairable-error messages and prompt files that only the strict boolean validation used. Strict boolean argument validation gives way to the shared coercion, which maps common true/false strings and falls back to truthiness, so invalid reset and dedicated_context values stop returning repairable errors. Browser regression tests now import the real modules before installing their stubs.

Validation: pytest tests/test_tool_action_contracts.py tests/test_browser_agent_regressions.py
2026-10-21 19:04:33 +03: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