Synaplan
开源 AI 软件平台,面向企业:自托管 AI 代理,符合 GDPR 的聊天机器人小部件,RAG 知识库,WhatsApp 与 Outlook AI,MCP,多模型路由。支持 Docker、Kubernetes 或在 Germ 托管。
AI 翻译
尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Sistema de calendario para D.M.C.A
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
The "Cargar cumpleanos del personal" section now uses Supabase through Next.js API routes.
.env.local from .env.example.NEXT_PUBLIC_SUPABASE_URLSUPABASE_SERVICE_ROLE_KEYsupabase/birthdays.sqlsupabase/birthdays_turno_guardia_larga.sqlNotes:
/api/birthdays), not directly from browser to Supabase.SUPABASE_SERVICE_ROLE_KEY must stay server-side only.This project now includes bootstrap auth with secure cookie session, OTP verification, password recovery by OTP and base roles.
.env.local:
AUTH_SESSION_SECRET (minimum 32 chars)AUTH_OTP_PEPPER (optional)AUTH_ALLOW_DEV_OTP_FALLBACK (optional: set true only if you want local OTP fallback instead of Brevo send when config is missing)supabase/auth_rbac.sql/auth/login:
ADMIN account (bootstrap).CLIENTE accounts by default.Role behavior:
ADMIN: full dashboard access.CLIENTE:
/anual (calendario anual), /mes/[month] (calendario mensual) and /mes/[month]/dia/[day] (evento del dia)./dashboard or /anual/email.Admin user management:
ADMIN can review internal users directly from /dashboard.GET /api/auth/admin-users (list users)Password recovery APIs:
POST /api/auth/request-password-reset (request OTP for password change)POST /api/auth/reset-password (validate OTP + set new password)Client access by shareable link/QR:
ADMIN has a single permanent client access link/QR in /dashboard/acceso-cliente.GET /api/auth/client-access-linkGET /acceso-clienteCLIENTE session and redirects to /mes/{mesActual}/dia/{diaActual}.To enable the /anual/email panel and test sends:
.env.local:
BREVO_API_KEYBREVO_SENDER_EMAILBREVO_SENDER_NAME (optional, default: Calendario Garden)AUTH_ALLOW_DEV_OTP_FALLBACK is empty/false if you want to force real e-mail OTP delivery.supabase/email_recipients.sql/anual/email, add recipients, and click Enviar prueba.Notes:
POST /api/email-recipients/test.NEXT_PUBLIC_EMAIL_PANEL_MODE=test/anual/email.public.birthdays puede completarse solo a partir de los legajos reales del
proyecto hermano "Perfiles Garden" (gestion_personal.agentes, mismo proyecto
de Supabase). Las filas sincronizadas quedan de solo lectura en
/anual/personal-cargado (no editables/borrables a mano, ver source en cada
registro); la carga manual sigue disponible para lo que Perfiles Garden no
puede resolver (personal "Gobierno", legajos incompletos).
Setup:
.env.local:
PERFILES_GARDEN_DATABASE_URL (conexion Postgres de solo lectura,
reutilizar el DATABASE_URL pooled del proyecto Perfiles Garden — mismo
Supabase, schema gestion_personal).supabase/birthdays_source_sync.sql/anual/personal-cargado (requiere sesion
ADMIN), oPOST/GET /api/birthdays/sync con Authorization: Bearer <CRON_SECRET>
(mismo secreto que usa el cron de notificaciones).Notas:
estado = 'ACTIVO' y fechaNacimiento
cargada. Los que no se pueden mapear (sin rango, sin area/sector, turno no
reconocido) se excluyen y se listan en la respuesta del sync para
completarlos a mano.source_agente_id y borra las filas sincronizadas
que ya no corresponden (baja, sin fecha, etc.) — nunca toca filas MANUAL.vercel.json corre a las 06:00 UTC, antes del envio diario de
notificaciones (10:00 UTC), para que ese envio ya vea los cumpleanos del dia.This project now includes a cron-ready endpoint:
GET /api/notifications/run-daily (Vercel cron)POST /api/notifications/run-daily (manual trigger)Setup:
.env.local:
CRON_SECRETAPP_TIMEZONE (optional, default: America/Argentina/Buenos_Aires)APP_BASE_URL (optional, recommended for e-mail logo/assets. Example: https://tu-dominio.com)APP_LOGO_URL (optional, full logo URL for e-mails. Example: https://tu-dominio.com/media/iso_blanco.png)supabase/notification_logs.sqlsupabase/notification_logs_force_runs.sql# Manual trigger (POST)
curl -X POST "http://localhost:3000/api/notifications/run-daily" \
-H "Authorization: Bearer YOUR_CRON_SECRET"
# Cron-compatible trigger (GET)
curl "http://localhost:3000/api/notifications/run-daily" \
-H "Authorization: Bearer YOUR_CRON_SECRET"
Notes:
run_date): it runs once per day.notification_runs and each recipient result in notification_deliveries.GET /api/notifications/history?limit=20.APP_BASE_URL is not configured, asset URLs in e-mails fallback to the request origin.APP_LOGO_URL is configured, it is used as-is for the e-mail header logo.This repo includes vercel.json with:
/api/notifications/run-daily0 10 * * * (10:00 UTC, 07:00 in Argentina UTC-3)On Vercel project settings:
CRON_SECRETAPP_TIMEZONEAPP_BASE_URLAPP_LOGO_URLBREVO_API_KEYBREVO_SENDER_EMAILSUPABASE_SERVICE_ROLE_KEYNEXT_PUBLIC_SUPABASE_URL (or SUPABASE_URL)Vercel cron requests use GET and include Authorization: Bearer <CRON_SECRET> when CRON_SECRET is configured.
To learn more about Next.js, take a look at the following resources:
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.