{
  "name": "WEVIA Sync Call Log",
  "version": "1.0",
  "description": "Sync historique appels récents vers WEVIA (détection contacts manqués, relances à faire)",
  "install_instructions": [
    "⚠️ LIMITE iOS : Apple ne permet PAS l'accès direct à l'historique d'appels via Shortcuts.",
    "",
    "SOLUTION 1 - Manuel (par appel) :",
    "1. Après un appel important → note dans l'app Notes",
    "2. Partage la note via raccourci 'Capture WEVIA' type=note",
    "",
    "SOLUTION 2 - Automation appel terminé (iOS 17+) :",
    "1. Raccourcis → Automation → Quand j'appelle [contact X]",
    "2. Action : Demander 'Résumé appel ?' → POST type=call",
    "",
    "SOLUTION 3 - MacBook + Blade MCP :",
    "Utilise apple_call_log_scrape MCP tool (nécessite Mac USB-connected au iPhone)"
  ],
  "url": "https://weval-consulting.com/api/wevia-apple-ingest.php?action=ingest_structured",
  "method": "POST",
  "headers": {"Content-Type": "application/json"},
  "json_body_template": {
    "type": "call",
    "items": [
      {
        "name": "[Contact name]",
        "number": "[Phone number]",
        "duration": "[seconds]",
        "direction": "[incoming|outgoing|missed]",
        "date": "[ISO datetime]"
      }
    ]
  }
}
