Files
lobehub/locales/pt-BR/editor.json
Innei 4438b559e6 feat: add slash action tags, topic reference tool, and command bus system (#12860)
*  feat: add slash action tags in chat input

Made-with: Cursor

*  feat: enhance editor with new slash actions and localization updates

- Added new slash actions: change tone, condense, expand, polish, rewrite, summarize, and translate.
- Updated localization files for English and Chinese to include new action tags and slash commands.
- Removed deprecated useSlashItems component and integrated its functionality directly into InputEditor.

Signed-off-by: Innei <tukon479@gmail.com>

*  feat: add slash placement configuration to chat input components

- Introduced `slashPlacement` prop to `ChatInputProvider`, `StoreUpdater`, and `InputEditor` for customizable slash menu positioning.
- Updated initial state to include `slashPlacement` with default value 'top'.
- Adjusted `ChatInput` and `InputArea` components to utilize the new `slashPlacement` prop.

This enhancement allows for better control over the user interface in chat input interactions.

Signed-off-by: Innei <tukon479@gmail.com>

*  feat: implement command bus for slash action tags processing

Add command bus system to parse and execute slash commands (compact context,
new topic). Refactor action tag categories from ai/prompt to command/skill.
Add useEnabledSkills hook for dynamic skill registration.

* feat: compress command

Signed-off-by: Innei <tukon479@gmail.com>

* refactor: compress

Signed-off-by: Innei <tukon479@gmail.com>

* fix: skill inject

*  feat: slash action tags with context engine integration

Made-with: Cursor

*  feat: add topic reference builtin tool and server runtime

Made-with: Cursor

*  feat: add topic mention items and update ReferTopic integration

Made-with: Cursor

* 🐛 fix: preserve editorData through assistant-group edit flow and update RichTextMessage reactively

- EditState now forwards editorData from EditorModal to modifyMessageContent
- modifyMessageContent accepts and passes editorData to updateMessageContent
- RichTextMessage uses useEditor + effect to update document on content change instead of key-based remount
- Refactored RichTextMessage plugins to use shared createChatInputRichPlugins()

*  feat(context-engine): add metadata types and update processors/providers

Made-with: Cursor

*  feat(chat-input): add slash action tags and restore failed input state

* 🔧 chore: update package dependencies and enhance Vite configuration

- Changed @lobehub/ui dependency to a specific package URL.
- Added multiple SPA entry points and layout files to the Vite warmup configuration.
- Removed unused monorepo packages from sharedOptimizeDeps and added various dayjs locales for better localization support.

Signed-off-by: Innei <tukon479@gmail.com>

* 🔧 chore: update @lobehub/ui dependency to version 5.4.0 in package.json

Signed-off-by: Innei <tukon479@gmail.com>

* 🐛 fix: correct SkillsApiName.runSkill to activateSkill and update trimmed content assertions

* 🐛 fix: resolve type errors in context-engine tests and InputEditor slashPlacement

* 🐛 fix: update runSkill to activateSkill in conversationLifecycle test

* 🐛 fix: avoid regex backtracking in placeholder parser

*  feat(localization): add action tags and tooltips for slash commands across multiple languages

Signed-off-by: Innei <tukon479@gmail.com>

* 🐛 fix: preserve file attachments when /newTopic has no text content

* cleanup

Signed-off-by: Innei <tukon479@gmail.com>

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-03-13 22:17:36 +08:00

78 lines
3.2 KiB
JSON

{
"actionTag.category.command": "Comando",
"actionTag.category.skill": "Habilidade",
"actionTag.category.tool": "Ferramenta",
"actionTag.tooltip.command": "Executa um comando slash no cliente antes do envio.",
"actionTag.tooltip.skill": "Carrega um pacote de habilidades reutilizável para esta solicitação.",
"actionTag.tooltip.tool": "Marca uma ferramenta que o usuário selecionou explicitamente para esta solicitação.",
"actions.expand.off": "Recolher",
"actions.expand.on": "Expandir",
"actions.typobar.off": "Ocultar barra de formatação",
"actions.typobar.on": "Mostrar barra de formatação",
"autoSave.latest": "Última versão carregada",
"autoSave.saved": "Salvo",
"autoSave.saving": "Salvando automaticamente...",
"cancel": "Cancelar",
"codemirror.copyFailed": "Falha ao copiar",
"codemirror.copySuccess": "Código copiado para a área de transferência",
"codemirror.selectLanguage": "Selecionar idioma",
"codemirror.selectTheme": "Selecionar tema",
"codemirror.showLineNumbers": "Mostrar números de linha",
"codemirror.tabSize": "Tamanho da tabulação",
"codemirror.theme": "Tema",
"codemirror.useTabs": "Usar tabulações",
"confirm": "Confirmar",
"file.error": "Erro: {{message}}",
"file.uploading": "Enviando arquivo...",
"image.broken": "Imagem corrompida",
"link.edit": "Editar link",
"link.editLinkTitle": "Link",
"link.editTextTitle": "Título",
"link.open": "Abrir link",
"link.placeholder": "Digite a URL do link",
"link.unlink": "Remover link",
"markdown.cancel": "Cancelar",
"markdown.confirm": "Converter",
"markdown.parseMessage": "Converter para o formato Markdown. O conteúdo existente será substituído. Tem certeza? (Fecha automaticamente em 5 segundos)",
"markdown.parseTitle": "Formatar como Markdown",
"math.placeholder": "Digite uma fórmula TeX",
"modifier.accept": "Manter",
"modifier.acceptAll": "Manter tudo",
"modifier.reject": "Reverter",
"modifier.rejectAll": "Reverter tudo",
"slash.compact": "Compactar contexto",
"slash.h1": "Título 1",
"slash.h2": "Título 2",
"slash.h3": "Título 3",
"slash.hr": "Divisor",
"slash.newTopic": "Enviar em novo tópico",
"slash.rewrite": "Reescrever",
"slash.summarize": "Resumir",
"slash.table": "Tabela",
"slash.tex": "Fórmula TeX",
"slash.translate": "Traduzir",
"table.delete": "Excluir tabela",
"table.deleteColumn": "Excluir coluna",
"table.deleteRow": "Excluir linha",
"table.insertColumnLeft": "Inserir {{count}} coluna(s) à esquerda",
"table.insertColumnRight": "Inserir {{count}} coluna(s) à direita",
"table.insertRowAbove": "Inserir {{count}} linha(s) acima",
"table.insertRowBelow": "Inserir {{count}} linha(s) abaixo",
"typobar.blockquote": "Citação",
"typobar.bold": "Negrito",
"typobar.bulletList": "Lista com marcadores",
"typobar.code": "Código embutido",
"typobar.codeblock": "Bloco de código",
"typobar.image": "Imagem",
"typobar.italic": "Itálico",
"typobar.link": "Link",
"typobar.numberList": "Lista numerada",
"typobar.redo": "Refazer",
"typobar.strikethrough": "Tachado",
"typobar.table": "Tabela",
"typobar.taskList": "Lista de tarefas",
"typobar.tex": "Fórmula TeX",
"typobar.underline": "Sublinhado",
"typobar.undo": "Desfazer"
}