diff --git a/app/javascript/dashboard/i18n/locale/en/captain.json b/app/javascript/dashboard/i18n/locale/en/captain.json index fba5e0fa8..1db4eae22 100644 --- a/app/javascript/dashboard/i18n/locale/en/captain.json +++ b/app/javascript/dashboard/i18n/locale/en/captain.json @@ -436,20 +436,6 @@ } }, "CAPTAIN": { - "HERMES_BUILDER": { - "TITLE": "Agent Builder", - "DESCRIPTION": "Create new Hermes agents through a guided chat with the Builder.", - "HEADER_TITLE": "Agent Builder", - "HEADER_DESCRIPTION": "Chat with the Builder to create a new Hermes agent. It asks questions and saves the spec as JSON for review at the end.", - "RESET": "Clear conversation", - "RESET_CONFIRM": "Clear current conversation with the Builder?", - "EMPTY_STATE": "Type \"hello\" to start. The Builder will guide you.", - "PLACEHOLDER": "Type and press Enter to send (Shift+Enter for new line)", - "SEND": "Send", - "SESSION_LABEL": "Session:", - "SEND_FAILED": "Send failed: {message}", - "RESET_FAILED": "Failed to clear session." - }, "BANNER": { "RESPONSES": "You have used more than 80% of your responses limit. To continue using Captain AI, please upgrade.", "DOCUMENTS": "Documents limit reached. Please upgrade to continue using Captain AI." @@ -905,5 +891,19 @@ "RESERVATION_ID": "Reservation #" } } + }, + "CAPTAIN_HERMES_BUILDER": { + "TITLE": "Agent Builder", + "DESCRIPTION": "Create new Hermes agents through a guided chat with the Builder.", + "HEADER_TITLE": "Agent Builder", + "HEADER_DESCRIPTION": "Chat with the Builder to create a new Hermes agent. It asks questions and saves the spec as JSON for review at the end.", + "RESET": "Clear conversation", + "RESET_CONFIRM": "Clear current conversation with the Builder?", + "EMPTY_STATE": "Type \"hello\" to start. The Builder will guide you.", + "PLACEHOLDER": "Type and press Enter to send (Shift+Enter for new line)", + "SEND": "Send", + "SESSION_LABEL": "Session:", + "SEND_FAILED": "Send failed: {message}", + "RESET_FAILED": "Failed to clear session." } -} +} \ No newline at end of file diff --git a/app/javascript/dashboard/i18n/locale/pt_BR/captain.json b/app/javascript/dashboard/i18n/locale/pt_BR/captain.json index b6a123cc1..543584605 100644 --- a/app/javascript/dashboard/i18n/locale/pt_BR/captain.json +++ b/app/javascript/dashboard/i18n/locale/pt_BR/captain.json @@ -437,20 +437,6 @@ } }, "CAPTAIN": { - "HERMES_BUILDER": { - "TITLE": "Construtor de Agentes", - "DESCRIPTION": "Crie novos agentes Hermes via chat guiado com o Construtor.", - "HEADER_TITLE": "Construtor de Agentes", - "HEADER_DESCRIPTION": "Converse com o Construtor pra criar um novo agente Hermes. Ele faz perguntas e ao final salva a especificação em JSON pra revisão.", - "RESET": "Limpar conversa", - "RESET_CONFIRM": "Limpar conversa atual com o Construtor?", - "EMPTY_STATE": "Mande \"olá\" pra começar. O Construtor vai te guiar.", - "PLACEHOLDER": "Escreva e Enter pra enviar (Shift+Enter pula linha)", - "SEND": "Enviar", - "SESSION_LABEL": "Sessão:", - "SEND_FAILED": "Erro ao enviar: {message}", - "RESET_FAILED": "Falha ao limpar sessão." - }, "BANNER": { "RESPONSES": "Você usou mais de 80% do seu limite de respostas. Para continuar usando o Capitão IA, faça um upgrade.", "DOCUMENTS": "Limite de documentos atingido. Faça um upgrade para continuar usando o Capitão IA." @@ -906,5 +892,19 @@ "RESERVATION_ID": "Reserva #" } } + }, + "CAPTAIN_HERMES_BUILDER": { + "TITLE": "Construtor de Agentes", + "DESCRIPTION": "Crie novos agentes Hermes via chat guiado com o Construtor.", + "HEADER_TITLE": "Construtor de Agentes", + "HEADER_DESCRIPTION": "Converse com o Construtor pra criar um novo agente Hermes. Ele faz perguntas e ao final salva a especificação em JSON pra revisão.", + "RESET": "Limpar conversa", + "RESET_CONFIRM": "Limpar conversa atual com o Construtor?", + "EMPTY_STATE": "Mande \"olá\" pra começar. O Construtor vai te guiar.", + "PLACEHOLDER": "Escreva e Enter pra enviar (Shift+Enter pula linha)", + "SEND": "Enviar", + "SESSION_LABEL": "Sessão:", + "SEND_FAILED": "Erro ao enviar: {message}", + "RESET_FAILED": "Falha ao limpar sessão." } -} +} \ No newline at end of file diff --git a/app/javascript/dashboard/routes/dashboard/captain/builder/Index.vue b/app/javascript/dashboard/routes/dashboard/captain/builder/Index.vue index d496d6946..23e5a0806 100644 --- a/app/javascript/dashboard/routes/dashboard/captain/builder/Index.vue +++ b/app/javascript/dashboard/routes/dashboard/captain/builder/Index.vue @@ -61,7 +61,7 @@ const sendMessage = async () => { await hermesBuilderApi.sendMessage(text); } catch (e) { useAlert( - t('CAPTAIN.HERMES_BUILDER.SEND_FAILED', { + t('CAPTAIN_HERMES_BUILDER.SEND_FAILED', { message: e.response?.data?.error || e.message || 'unknown', }) ); @@ -79,12 +79,12 @@ const handleKeydown = e => { const resetSession = async () => { // eslint-disable-next-line no-alert - if (!window.confirm(t('CAPTAIN.HERMES_BUILDER.RESET_CONFIRM'))) return; + if (!window.confirm(t('CAPTAIN_HERMES_BUILDER.RESET_CONFIRM'))) return; try { await hermesBuilderApi.reset(); messages.value = []; } catch (e) { - useAlert(t('CAPTAIN.HERMES_BUILDER.RESET_FAILED')); + useAlert(t('CAPTAIN_HERMES_BUILDER.RESET_FAILED')); } }; @@ -108,23 +108,23 @@ watch(messages, () => nextTick().then(scrollToBottom), { deep: true });