iachat/.env.example
Rodribm10 cfffea9c16 feat(captain): semantic memory fixes + roleta + reclamações + analytics
Consolida o trabalho desta branch de abril/2026 em um bloco pronto pra
testar em staging antes do merge pra main.

## Correções de memória semântica
- ExtractionService: Princípio Zero + Regra de Ouro (ação consumada vs intenção).
- Cenário Daniela_Reservas: Passo 0 de classificação (consulta/intenção/fora).

## Roleta da Sorte (end-to-end)
- Schema Supabase + 7 RPCs atômicas (server-side, idempotentes).
- Services: Offer, Redeem, WeeklyReport.
- Jobs: OfferRouletteJob (hook em ConfirmationService após Pix pago),
  NotifyRevealed + Scheduler de fallback.
- Tool manual GenerateRoletaLinkTool + endpoint público /roleta/notify.
- Dashboard /captain/roleta com Resgate + Relatório + anomaly detection.

## Cenário Reclamacoes_Ouvidoria
- Triagem P1-P4, framework LAST, Three-level listening, Self-check.
- Sem compensação material, detecção de cliente frustrado eleva prioridade.

## Analytics
- Funil de conversão /captain/funnel: 5 etapas via regex, zero LLM.
- Detector de churn via ChurnOutreach* (cron dias úteis 10h-17h BRT).

## Trabalho pré-existente incluído
- Captain Executive Reports (ceo_digest, mattermost_delivery).
- get_reserva_preco_tool, Lifecycle ajustes, Reservations UI polimentos.

## Outros
- .gitignore: patterns pra credenciais.
- Migrations de scenarios idempotentes.
- i18n completa pt_BR+en pra roleta/funnel.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 15:36:25 -03:00

115 lines
3.3 KiB
Plaintext

# ============================================
# Synkra AIOS Environment Configuration
# ============================================
# Copy this file to .env and fill in your actual values
# DO NOT commit .env with real credentials
# ============================================
# --------------------------------------------
# LLM Providers
# --------------------------------------------
# DeepSeek API (for claude-free command)
# Get your key at: https://platform.deepseek.com/api_keys
# Cost: ~$0.14/M tokens with tool calling support
DEEPSEEK_API_KEY=
# OpenRouter API (for multi-model routing)
# Get your key at: https://openrouter.ai/keys
OPENROUTER_API_KEY=
# Anthropic API (direct, if not using Claude Max subscription)
# Get your key at: https://console.anthropic.com/
ANTHROPIC_API_KEY=
# OpenAI API Key - Get yours at: https://platform.openai.com/api-keys
OPENAI_API_KEY=
# --------------------------------------------
# Search & Research Tools
# --------------------------------------------
# Exa Search API (web search for agents)
# Get your key at: https://exa.ai/
EXA_API_KEY=
# Context7 (library documentation lookup)
# Usually free, no key required for basic usage
CONTEXT7_API_KEY=
# --------------------------------------------
# Database & Backend
# --------------------------------------------
# Supabase (database, auth, storage)
# Get from your Supabase project settings
SUPABASE_URL=
SUPABASE_ANON_KEY=
SUPABASE_SERVICE_ROLE_KEY=
# --------------------------------------------
# Version Control & CI/CD
# --------------------------------------------
# GitHub Token (for GitHub CLI and API access)
# Create at: https://github.com/settings/tokens
GITHUB_TOKEN=
# --------------------------------------------
# Project Management
# --------------------------------------------
# ClickUp API (if using ClickUp integration)
# Get from: ClickUp Settings > Apps > API Token
CLICKUP_API_KEY=
# --------------------------------------------
# Automation & Workflows
# --------------------------------------------
# N8N (workflow automation)
# From your N8N instance settings
N8N_API_KEY=
N8N_WEBHOOK_URL=
# --------------------------------------------
# Monitoring & Analytics
# --------------------------------------------
# Sentry (error tracking)
SENTRY_DSN=
# --------------------------------------------
# Cloud Providers
# --------------------------------------------
# Railway (deployment)
RAILWAY_TOKEN=
# Vercel (deployment)
VERCEL_TOKEN=
# --------------------------------------------
# AIOS Core Configuration
# --------------------------------------------
NODE_ENV=development
AIOS_VERSION=2.2.0
# --------------------------------------------
# Custom Configuration
# --------------------------------------------
# Add your custom API keys below
# Reserva Rede 1001 — public reservations API (Fase 2)
# Token used to authenticate calls from the reserva-1001 app to the public
# reservation endpoint. Generate via `openssl rand -hex 32` in production.
RESERVA_1001_API_TOKEN=
# Reserva Rede 1001 — URL base do app publico (usada pela Jasmine pra gerar links prefill)
RESERVA_1001_BASE_URL=http://localhost:5180
# Reserva Rede 1001 — Supabase credentials para consultas de catalogo (preco, unidade)
RESERVA_1001_SUPABASE_URL=
RESERVA_1001_SUPABASE_ANON_KEY=
RESERVA_1001_SUPABASE_SCHEMA=reserva_hotel