{
  "project": "myristica",
  "description": "Rental property management webapp + WhatsApp bot for Arcos 1836, CABA",
  "repo": "https://github.com/ignaciolagosruiz/myristica",
  "workdir": "app",

  "setup_commands": [
    "cd app && npm install"
  ],

  "dev_command": "cd app && npm run dev",

  "env_notes": {
    "fill_from_supabase_dashboard": [
      "NEXT_PUBLIC_SUPABASE_ANON_KEY",
      "SUPABASE_SERVICE_ROLE_KEY",
      "DATABASE_URL"
    ],
    "fill_from_mistral_console": [
      "MISTRAL_API_KEY"
    ],
    "already_set": [
      "EVOLUTION_API_URL",
      "EVOLUTION_API_KEY",
      "EVOLUTION_INSTANCE_NAME",
      "BOT_WEBHOOK_SECRET",
      "WHATSAPP_GROUP_JID",
      "NEXT_PUBLIC_SUPABASE_URL",
      "NEXT_PUBLIC_SITE_URL"
    ]
  },

  "infrastructure": {
    "oracle_vm": {
      "host": "100.87.116.90",
      "user": "ubuntu",
      "ssh_key": "id_ed25519",
      "tailscale_hostname": "miopenclaw-vnic",
      "bridge_port": 8080,
      "bridge_public_url": "https://miopenclaw-vnic.tail9799d2.ts.net:8443",
      "bridge_service": "wa-bridge",
      "funnel_note": "Port 443 is owned by openclaw-gateway. Bridge is on port 8443 permanently.",
      "funnel_restore_command": "sudo tailscale funnel --https=8443 --bg http://localhost:8080"
    },
    "vercel": {
      "project_url": "https://myristica-eight.vercel.app",
      "env_var_to_watch": "EVOLUTION_API_URL must be https://miopenclaw-vnic.tail9799d2.ts.net:8443 (no trailing slash)"
    },
    "supabase": {
      "project_id": "kszwxklcerptpiacnypn",
      "region": "us-east-1",
      "dashboard": "https://supabase.com/dashboard/project/kszwxklcerptpiacnypn"
    }
  },

  "key_files": {
    "webhook": "app/src/app/api/webhook/whatsapp/route.ts",
    "bridge_client": "app/src/lib/bot/evolution.ts",
    "text_handler": "app/src/lib/bot/handlers/text.ts",
    "image_handler": "app/src/lib/bot/handlers/image.ts",
    "interactive_handler": "app/src/lib/bot/handlers/interactive.ts",
    "mistral": "app/src/lib/bot/mistral.ts",
    "tools": "app/src/lib/bot/tools.ts"
  }
}
