{
  "format": "dockrun-bundle",
  "version": 1,
  "exportedAt": "2026-11-12T00:00:00Z",
  "workspaces": [],
  "workflows": [
    {
      "id": "EB690573-989D-576F-8194-3683D2F56ED7",
      "name": "Network check",
      "summary": "Local address, router, DNS, public address and WARP state, copied to the clipboard.",
      "variables": [],
      "steps": [
        {
          "id": "48B1A836-4FD3-57BE-B001-C7627A6B9EF3",
          "actionID": "script.run",
          "input": {
            "language": "zsh",
            "code": "# Prints a short network report: local address, router, DNS, public address and whether WARP is on.\n# Asks https://1.1.1.1/cdn-cgi/trace (Cloudflare) for the public address; nothing else leaves the Mac.\niface=$(route -n get default 2>/dev/null | awk '/interface:/{print $2}')\n[ -n \"$iface\" ] || { echo \"No network connection found.\" >&2; exit 1 }\nrouter=$(route -n get default | awk '/gateway:/{print $2}')\necho \"Interface:  $iface\"\necho \"Local IP:   $(ipconfig getifaddr \"$iface\" 2>/dev/null || echo unknown)\"\necho \"Router:     $router\"\necho \"DNS:        $(scutil --dns | awk '/nameserver\\[/{print $3}' | awk '!seen[$0]++' | head -3 | paste -sd ' ' -)\"\ntrace=$(curl -s --max-time 5 https://1.1.1.1/cdn-cgi/trace)\nif [ -n \"$trace\" ]; then\n  echo \"Public IP:  $(echo \"$trace\" | awk -F= '/^ip=/{print $2}')\"\n  echo \"Location:   $(echo \"$trace\" | awk -F= '/^loc=/{print $2}') via $(echo \"$trace\" | awk -F= '/^colo=/{print $2}')\"\n  echo \"WARP:       $(echo \"$trace\" | awk -F= '/^warp=/{print $2}')\"\nelse\n  echo \"Public IP:  no answer from 1.1.1.1 (offline, or blocked)\"\nfi\nloss=$(ping -c 3 -q -t 4 1.1.1.1 2>/dev/null | awk -F', ' '/packet loss/{print $3}')\necho \"Ping 1.1.1.1: ${loss:-no reply}\"\n"
          },
          "condition": {
            "kind": "always"
          },
          "onFailure": "stop",
          "timeout": 30,
          "isEnabled": true,
          "title": "Collect the network report"
        },
        {
          "id": "919C513C-815B-50E5-9DFC-BB13F5D70C1B",
          "actionID": "clipboard.copyText",
          "input": {
            "text": "{{step.48B1A836-4FD3-57BE-B001-C7627A6B9EF3.output}}"
          },
          "condition": {
            "kind": "always"
          },
          "onFailure": "stop",
          "timeout": 60,
          "isEnabled": true,
          "title": "Copy the report"
        }
      ]
    }
  ]
}
