iachat/enterprise/app/services/captain/mcp/tools
Rodribm10 955cb824b3 fix(captain/mcp): save_agent_spec — caminho de sucesso retorna tupla [hash, errors]
Bug: expand_spec retornava [{}, errors] no erro mas só {hash} no sucesso.
Destruturação 'expanded, errors = expand_spec(...)' deixava errors=nil
→ errors.any? → undefined method any? for nil.

Fix: extraído build_expanded_hash + sucesso retorna [hash, []].

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-02 13:26:25 -03:00
..
add_label_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00
base_tool.rb feat(captain): MCP server (HTTP) expondo tools pro Hermes Agent 2026-05-01 15:32:38 -03:00
check_pix_payment_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00
faq_lookup_tool.rb feat(captain): MCP server (HTTP) expondo tools pro Hermes Agent 2026-05-01 15:32:38 -03:00
generate_pix_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00
get_assistant_faqs_tool.rb fix(captain/mcp): get_assistant_faqs — não filtrar por documentable_type 2026-05-02 11:49:54 -03:00
get_assistant_pricing_tool.rb fix(captain): captain_unit_id em captain_assistants — fim do lookup quebrado 2026-05-02 12:45:53 -03:00
get_assistant_scenario_tool.rb feat(captain/mcp): get_assistant_scenario tool — Construtor copia identidade de outro agente 2026-05-02 11:55:13 -03:00
get_contact_history_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00
list_assistants_tool.rb feat(captain/mcp): tools read-only pro Skill Construtor 2026-05-01 20:24:02 -03:00
react_to_message_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00
reschedule_reservation_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00
save_agent_spec_tool.rb fix(captain/mcp): save_agent_spec — caminho de sucesso retorna tupla [hash, errors] 2026-05-02 13:26:25 -03:00
send_suite_images_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00
update_contact_tool.rb feat(captain/mcp): suite de 9 tools MCP + pricing tables Dolce Amore 2026-05-01 20:13:16 -03:00