iachat/app/javascript/dashboard/i18n/locale/pt_BR
Rodribm10 40fd0c8f50 feat(captain/hermes-builder): UI Vue + endpoints pra chat com Construtor
Tela "Construtor" no painel Captain (acessivel em sidebar pra admins) que
permite criar novo agente Hermes via chat guiado com agente Construtor
(profile Hermes separado).

Backend (admin scope):
- POST /api/v1/accounts/:id/captain/hermes_builder — manda mensagem do
  admin pro gateway do Construtor (Hermes na porta 8646)
- GET — retorna historico da sessao (Rails.cache, TTL 4h)
- DELETE /reset — limpa sessao
- POST /webhooks/captain/builder_callback — recebe respostas async do
  Construtor via plugin captain-http-callback do Hermes
- HermesBuilder::Storage (Rails.cache) — persiste msgs por session_key
  (account_id + user_id) com role/content/created_at
- HermesBuilder::Dispatcher — encaminha pro webhook do Construtor com
  HMAC opcional via ENV HERMES_BUILDER_WEBHOOK_SECRET

Frontend:
- Pagina Vue HermesBuilder/Index.vue — chat simples com:
  * Lista de mensagens com bubbles user/construtor
  * Indicador "digitando..." enquanto aguarda resposta
  * Input com Enter pra enviar / Shift+Enter pra nova linha
  * Polling 2s pra novas msgs
  * Botao Limpar conversa
- API client em api/captain/hermesBuilder.js
- Rota captain_hermes_builder_index (admin only)
- Item no sidebar Captain "Construtor (Hermes)"
- i18n keys CAPTAIN.HERMES_BUILDER em pt_BR + en

UX flow:
  Admin abre tela → digita "olá" → Construtor pergunta nome → admin
  responde → marca, persona, tabela (com opcao copiar de existente),
  regras, FAQs, identidade → resumo → confirmar → Construtor chama
  save_agent_spec → JSON salvo em /tmp/agent-specs/<slug>.json pra
  revisao posterior. NAO cria filesystem do profile nem registros DB
  (etapa SEPARADA, prox sessao).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-01 21:00:41 -03:00
..
advancedFilters.json chore: Update translations (#11458) 2025-05-10 19:21:34 -07:00
agentBots.json chore: Update translations (#11574) 2025-06-10 10:10:52 -04:00
agentMgmt.json feat(aggressive-alert): filtro por inbox configurável por admin 2026-04-24 11:51:00 -03:00
aggressiveBanner.json feat(aggressive-alert): escalada amarelo/laranja/vermelho + toggles 2026-04-23 20:49:24 -03:00
attributesMgmt.json chore: Update translations (#13109) 2026-01-09 16:11:44 -08:00
auditLogs.json chore: Update translations (#11574) 2025-06-10 10:10:52 -04:00
automation.json feat: enhance scheduled message + improved automations (#208) 2026-02-03 15:42:31 -03:00
bulkActions.json Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
campaign.json Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
cannedMgmt.json chore: Update translations (#11002) 2025-03-03 14:27:33 +05:30
captain.json feat(captain/hermes-builder): UI Vue + endpoints pra chat com Construtor 2026-05-01 21:00:41 -03:00
chatlist.json chore: Update translations (#13109) 2026-01-09 16:11:44 -08:00
companies.json chore: Update translations (#13109) 2026-01-09 16:11:44 -08:00
components.json chore: Update translations (#12208) 2025-08-19 12:27:13 +05:30
contact.json feat: edit contact modal confirm discard (#199) 2026-01-27 20:03:42 -03:00
contactFilters.json chore: Update translations (#12311) 2025-09-04 11:02:44 +05:30
contentTemplates.json chore: Update translations (#13109) 2026-01-09 16:11:44 -08:00
conversation.json feat(captain-memory): redesign Contact Memories UI with type badges + relative time + fix i18n keys 2026-04-19 07:38:50 -03:00
csatMgmt.json chore: Update translations (#7728) 2023-08-15 13:47:38 -07:00
customRole.json chore: Update translations (#11400) 2025-04-30 15:34:11 -07:00
datePicker.json chore: Update translations (#10890) 2025-02-12 09:33:19 -08:00
emoji.json chore: Update translations (#8161) 2023-10-25 19:20:30 -07:00
general.json Chore/merge upstream 4.8.0 (#150) 2025-11-19 16:25:58 -03:00
generalSettings.json feat(aggressive-alert): escalada amarelo/laranja/vermelho + toggles 2026-04-23 20:49:24 -03:00
helpCenter.json chore: Update translations (#13109) 2026-01-09 16:11:44 -08:00
inbox.json chore: Update translations (#12208) 2025-08-19 12:27:13 +05:30
inboxMgmt.json chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
index.js feat(dashboard): aggressive alert on conversation reopening 2026-04-23 18:03:26 -03:00
integrationApps.json chore: Update translations (#11077) 2025-03-19 16:48:56 -07:00
integrations.json feat(captain): semantic memory fixes + roleta + reclamações + analytics 2026-04-21 15:36:25 -03:00
jasmine.json chore(style): fix rubocop offenses and update typing indicators 2026-02-25 15:06:58 -03:00
labelsMgmt.json chore: Update translations (#11043) 2025-03-07 14:07:28 -08:00
login.json chore: Update translations (#12519) 2025-09-25 15:59:03 +05:30
macros.json chore: Update translations (#11903) 2025-07-14 14:52:57 +05:30
mfa.json chore: Update translations (#12506) 2025-09-24 10:47:31 +05:30
report.json feat(reports): Painel Diretoria — Onda 1A (leitura) 2026-04-26 12:44:59 -03:00
resetPassword.json chore: Update translations from Crowdin (#9835) 2024-07-25 11:58:22 -07:00
search.json chore: Update translations (#13109) 2026-01-09 16:11:44 -08:00
setNewPassword.json chore: Update translations (#7033) 2023-05-06 15:10:50 +05:30
settings.json feat(captain/hermes-builder): UI Vue + endpoints pra chat com Construtor 2026-05-01 21:00:41 -03:00
signup.json chore: Update translations (#12555) 2025-10-02 18:24:12 +05:30
sla.json chore: Update translations (#11400) 2025-04-30 15:34:11 -07:00
teamsSettings.json chore: Update translations (#11400) 2025-04-30 15:34:11 -07:00
webhooks.json Chore: Add pt and pt_BR translations (#813) 2020-05-04 17:33:55 +05:30
whatsappTemplates.json chore: Update translations (#12432) 2025-09-23 11:07:15 +05:30
yearInReview.json chore: Update translations (#13109) 2026-01-09 16:11:44 -08:00