#!/usr/bin/env sh
set -eu

APP_SUPPORT_ROOT="${HOME}/Library/Application Support/IuVeConnectAgent"
LOGS_ROOT="${HOME}/Library/Logs/IuVeConnectAgent"
RUNTIME_DIR="${APP_SUPPORT_ROOT}/runtime"
CONFIG_DIR="${APP_SUPPORT_ROOT}/config"

mkdir -p "$APP_SUPPORT_ROOT" "$LOGS_ROOT" "$RUNTIME_DIR" "$CONFIG_DIR"

printf '%s\n' "{\"ok\":true,\"adapter\":\"macos\",\"mode\":\"skeleton\",\"install_scope\":\"user\",\"service_install\":\"disabled\",\"admin_required\":false,\"application_support_root\":\"${APP_SUPPORT_ROOT}\",\"logs_root\":\"${LOGS_ROOT}\"}"
