Commit graph

466 commits

Author SHA1 Message Date
gpt-engineer-app[bot]
a5ac0cd329 Lovable update
Atualize o Supabase Edge Function secret HERMES_RUNTIME_IMAGE para:

ghcr.io/domfelipe/hermes-agent-custom:sha-135b99c

Depois redeploye as Edge Functions:

- provision-agent

- admin-backfill-runtime

Em seguida execute admin-backfill-runtime com dry_run=true e valide:

- image = ghcr.io/domfelipe/hermes-agent-custom:sha-135b99c

- would_apply inclui HERMES_HOME=/opt/data/.hermes

- would_apply inclui API_SERVER_PORT=8765

- não inclui hivedomco-vic-prudential nem serviços que não sejam agent_instances Mika ativos

Se o dry-run estiver OK, execute admin-backfill-runtime com dry_run=false.

Não altere TELEGRAM_BOT_TOKEN, OLLAMA_API_KEY, HERMES_API_SERVER_KEY, HERMES_SOUL_OVERRIDE, dados de clientes, migrations ou Railway services fora dos agent_instances Mika.

X-Lovable-Edit-ID: edt-93c5303e-5c79-48ef-823c-c195de9cf8c5
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-30 21:51:49 +00:00
gpt-engineer-app[bot]
c41c0d1d04 Work in progress 2026-05-30 21:51:40 +00:00
Felipe Domingues
dd5a19c9fe
fix: backfill Hermes home env (#13)
* fix: synchronize skill deletion server-side

* fix: backfill Hermes home env
2026-05-30 18:44:52 -03:00
Felipe Domingues
cd4eb53304
fix: synchronize skill deletion server-side (#12) 2026-05-30 15:39:17 -03:00
Felipe Domingues
fd06a4bb07
fix: synchronize cronjob deletion server-side (#11) 2026-05-30 14:56:38 -03:00
Felipe Domingues
792aa697b5
fix: sanitize cronjob names from agent (#10) 2026-05-30 12:30:21 -03:00
Felipe Domingues
e08e40f62b
fix: backfill runtime api server key (#9) 2026-05-29 07:23:13 -03:00
Felipe Domingues
c626c555db
fix: clean runtime docs and deterministic hydration (#8) 2026-05-29 07:22:49 -03:00
Felipe Domingues
6b3943807c
fix: type-check all edge functions in ci (#7) 2026-05-28 20:33:24 -03:00
gpt-engineer-app[bot]
871b3f809a 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>
2026-05-28 23:07:46 +00:00
gpt-engineer-app[bot]
d641378479 Work in progress 2026-05-28 23:06:41 +00:00
Felipe Domingues
f2b3cb219a
fix: harden telegram bot reconnection (#6) 2026-05-28 20:05:14 -03:00
gpt-engineer-app[bot]
e3d9ae7857 Hardened default skills rule
X-Lovable-Edit-ID: edt-8a68725d-39d9-4a7e-8597-2be996850cee
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 22:23:23 +00:00
gpt-engineer-app[bot]
f466ebf082 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 22:22:53 +00:00
Felipe Domingues
55d105777e
fix: harden default skill quota (#5) 2026-05-28 19:21:11 -03:00
gpt-engineer-app[bot]
2782e0d182 Applied default skills hardening
X-Lovable-Edit-ID: edt-6d6c0346-b8bc-44ea-a630-43a989a99ad8
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:59:43 +00:00
gpt-engineer-app[bot]
447f961382 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:59:11 +00:00
gpt-engineer-app[bot]
59aafca923 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:58:53 +00:00
gpt-engineer-app[bot]
53ff827d3d Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:58:07 +00:00
gpt-engineer-app[bot]
284e697801 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:57:59 +00:00
gpt-engineer-app[bot]
eaede6fd15 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:57:47 +00:00
gpt-engineer-app[bot]
f1a613b4fe Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:57:39 +00:00
gpt-engineer-app[bot]
f3308f362a Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:57:27 +00:00
gpt-engineer-app[bot]
922a652c7e Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:57:15 +00:00
gpt-engineer-app[bot]
9d9ca17ee7 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:57:04 +00:00
gpt-engineer-app[bot]
2fe5d4a33e Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:56:41 +00:00
gpt-engineer-app[bot]
b687ad9b72 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:56:27 +00:00
gpt-engineer-app[bot]
c0d18506f8 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:56:14 +00:00
gpt-engineer-app[bot]
20ccf1e9c5 Work in progress 2026-05-28 21:55:15 +00:00
Felipe Domingues
861416e506
fix: harden integration oauth flow (#3) 2026-05-28 18:53:21 -03:00
gpt-engineer-app[bot]
39e597906b Corrigiu hardening OAuth
X-Lovable-Edit-ID: edt-861b50d2-e4ce-4732-9e34-af896909cd73
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:01:56 +00:00
gpt-engineer-app[bot]
5fcd1ba144 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:01:29 +00:00
gpt-engineer-app[bot]
929e641792 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 21:01:21 +00:00
gpt-engineer-app[bot]
eaf69d5de9 Work in progress 2026-05-28 21:00:28 +00:00
Felipe Domingues
9acb125890 fix: restore railway deploy service id type 2026-05-28 16:38:37 -03:00
gpt-engineer-app[bot]
6d02fb8241 Aplicou deploy from source
X-Lovable-Edit-ID: edt-c10eea25-1ec4-4454-9999-027ae742327c
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:28:01 +00:00
gpt-engineer-app[bot]
e4dc4f8788 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:27:38 +00:00
gpt-engineer-app[bot]
8ac3926fcc Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:27:30 +00:00
gpt-engineer-app[bot]
25612b8f29 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:27:23 +00:00
gpt-engineer-app[bot]
adf93d0937 Added runtime backfill function
X-Lovable-Edit-ID: edt-28745d84-d4fd-4e7c-be73-1bf8118371e2
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:08:00 +00:00
gpt-engineer-app[bot]
bc8ea671ad Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:07:25 +00:00
gpt-engineer-app[bot]
00d6d57c2f Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:07:13 +00:00
gpt-engineer-app[bot]
a0d1cf9c2b Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:06:44 +00:00
gpt-engineer-app[bot]
cc1347fbd5 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:06:25 +00:00
gpt-engineer-app[bot]
7c19bf0fc4 Atualizou Hermes runtime secret
X-Lovable-Edit-ID: edt-0d4a1028-fa89-4a4d-90f0-ce96f219b60a
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:02:28 +00:00
gpt-engineer-app[bot]
ece8beae67 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:02:26 +00:00
gpt-engineer-app[bot]
ddac76bec8 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 19:02:18 +00:00
gpt-engineer-app[bot]
e337a6f229 Migrou agentes cron
X-Lovable-Edit-ID: edt-1d3546b1-1aca-4faf-89dd-c6d10cdd2471
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 12:46:48 +00:00
gpt-engineer-app[bot]
c6b67e98b8 Changes
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-28 12:46:33 +00:00
gpt-engineer-app[bot]
6c0ccff305 Lovable update
Sim, por favor

X-Lovable-Edit-ID: edt-d3130d07-e673-4e49-a012-9cb55eee47f7
Co-authored-by: domfelipe <53182096+domfelipe@users.noreply.github.com>
2026-05-25 22:33:18 +00:00