mirror of
https://github.com/domfelipe/mika-agent-assist.git
synced 2026-08-07 06:16:42 +00:00
Lovable update
Aplicar o PR #6 / commit 723c52b do repositório domfelipe/mika-agent-assist.
Objetivo:
Endurecer o onboarding/reconexão do bot Telegram sem executar testes manuais agora.
Tarefas:
1. Publicar o frontend atualizado, pois `BotFatherWizard.tsx` relaxa o regex local do token para ficar igual ao backend.
2. Redeployar as edge functions:
- validate-telegram-bot
- provision-agent
3. Não alterar secrets, Railway manualmente, planos, dados de clientes ou migrações.
4. Não executar teste manual no Telegram agora.
Validações pós-deploy:
- Confirmar que `validate-telegram-bot` deployou sem erro.
- Confirmar que `provision-agent` deployou sem erro.
- Confirmar que `provision-agent` aceita `mode: "telegram_reconnect"` apenas quando o agent está `active` e tem `railway_service_id`.
- Confirmar que esse modo atualiza somente variáveis Telegram no Railway (`TELEGRAM_BOT_TOKEN`, e se houver chat_id, `TELEGRAM_ALLOWED_USERS` / `TELEGRAM_HOME_CHANNEL`) e não reescreve `HERMES_SOUL_OVERRIDE`, modelo, STT/TTS ou demais configs.
- Healthcheck server-to-server com secret inválido:
POST /functions/v1/provision-agent com X-Internal-Secret inválido deve retornar 401 unauthorized.
X-Lovable-Edit-ID: edt-0af37ff4-aded-497c-9092-e2127a0fd6cd
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
This commit is contained in:
commit
871b3f809a
1 changed files with 9 additions and 0 deletions
|
|
@ -670,3 +670,12 @@ const rootRouteChildren: RootRouteChildren = {
|
|||
export const routeTree = rootRouteImport
|
||||
._addFileChildren(rootRouteChildren)
|
||||
._addFileTypes<FileRouteTypes>()
|
||||
|
||||
import type { getRouter } from './router.tsx'
|
||||
import type { createStart } from '@tanstack/react-start'
|
||||
declare module '@tanstack/react-start' {
|
||||
interface Register {
|
||||
ssr: true
|
||||
router: Awaited<ReturnType<typeof getRouter>>
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue