Path in the Gestor modulos/admin-modos-ia/
This module maintains instruction modes for AI-assisted resources. A mode has a name, slug, target, prompt, language, and default flag; available targets come from alvos_ia.
How to use
Open admin-modos-ia/, create at admin-modos-ia/adicionar/, and edit at admin-modos-ia/editar/?id=<slug>. Choose a target in the current language, enter instructions in the CodeMirror editor, and mark a default if needed. Routes exist in both languages. Listing, status, and deletion use the shared interface.
Technical reference
The main switch handles adicionar and editar; listing/status/deletion use the standard interface. AJAX opcao with verificar-padrao queries whether an active default prompt exists for the target. JavaScript configures CodeMirror in Markdown mode. JSON defines no widget, template, hook, or hooks.api. The modos_ia migration defines id_modos_ia, nome, id, language, alvo, padrao, MEDIUMTEXT prompt, status, versao, dates, file_version, and checksum; (id, language) is unique. alvos_ia stores target ids/names by language.