iachat/app/javascript/dashboard/i18n/locale/en
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 feat(v4): Add new conversation filters component (#10502) 2024-11-27 20:05:54 -08:00
agentBots.json feat: Ability to reset api_access_token (#11565) 2025-05-29 14:42:13 +05:30
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 feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
auditLogs.json feat: Add conversation delete feature (#11677) 2025-06-05 15:53:17 -05:00
automation.json Merge branch 'main' into chore/merge-upstream-4.11.0 2026-02-17 23:05:26 -03:00
bulkActions.json feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
campaign.json feat: WhatsApp campaigns (#11910) 2025-07-16 09:04:02 +05:30
cannedMgmt.json feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
captain.json feat(captain/hermes-builder): UI Vue + endpoints pra chat com Construtor 2026-05-01 21:00:41 -03:00
chatlist.json feat: TikTok channel (#12741) 2025-12-17 07:54:50 -08:00
companies.json feat: Add sorting by contacts count to companies list (#13012) 2026-01-09 15:20:08 -08:00
components.json chore: Improve pagination with compact number formatting and pluralization (#12962) 2025-11-27 10:32:34 +05:30
contact.json Merge branch 'main' into chore/merge-upstream-4.11.0 2026-02-17 23:05:26 -03:00
contactFilters.json feat: Ability to filter contact based on labels (#12343) 2025-09-02 12:35:18 +05:30
contentTemplates.json feat: Add call-to-action template support for Twilio (#13179) 2026-01-06 10:38:36 +04: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 feat: more CSAT filters (#7038) 2023-05-18 22:50:46 +05:30
customRole.json feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
datePicker.json feat: Refactor reports filters (#13443) 2026-02-06 18:22:30 +05:30
emoji.json feat: Adds the ability to set an emoji for help center category (#8111) 2023-10-20 13:52:30 +05:30
general.json feat: Conversation workflows(EE) (#13040) 2026-01-27 11:36:20 +04:00
generalSettings.json feat(aggressive-alert): escalada amarelo/laranja/vermelho + toggles 2026-04-23 20:49:24 -03:00
helpCenter.json feat: Allow detaching help center widget (#12459) 2025-09-17 22:27:50 +05:30
inbox.json feat: add reauth flow for wa embedded signup (#11940) 2025-08-08 01:48:45 +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 settings to match the new design (#11084) 2025-03-14 14:28:14 +05:30
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 feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
login.json feat: Form validation message for password input (#11705) 2025-09-29 11:12:04 +05:30
macros.json fix: Translate Priority and Messages types in Automations and Macros (#11741) 2025-07-08 12:40:40 +05:30
mfa.json feat: Add the frontend support for MFA (#12372) 2025-09-18 21:16:06 +05:30
report.json feat(reports): Painel Diretoria — Onda 1A (leitura) 2026-04-26 12:44:59 -03:00
resetPassword.json feat: Support dark mode in login pages (#7420) 2023-07-01 07:49:52 +05:30
search.json feat: Advanced Search Backend (#12917) 2026-01-07 15:30:49 +05:30
setNewPassword.json feat: update product copy [CWM-45] (#6372) 2023-04-25 22:02:15 -07:00
settings.json feat(captain/hermes-builder): UI Vue + endpoints pra chat com Construtor 2026-05-01 21:00:41 -03:00
signup.json chore: Improve signup flow, reduce the number of inputs (#13350) 2026-01-22 18:47:42 -08:00
sla.json feat: Update the design for integration page (#9825) 2024-07-24 16:35:40 -07:00
teamsSettings.json chore: update interpolation syntax for i18n files (#10198) 2024-10-07 11:12:40 -07:00
webhooks.json Feature: As a admin, I should be able to add webhooks to account (#572) 2020-02-29 17:43:49 +05:30
whatsappTemplates.json feat: Add media_name support for WhatsApp templates document files (#12462) 2025-09-18 15:25:31 +05:30
yearInReview.json feat(ce): Add Year in review feature (#13078) 2025-12-15 17:24:45 -08:00