{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "main-capability",
  "description": "Capability for the main window",
  "context": "local",
  "windows": [
    "main"
  ],
  "permissions": [
    "cli:default",
    "deep-link:default",
    "log:default",
    "path:default",
    "event:default",
    "window:default",
    "app:default",
    "resources:default",
    "menu:default",
    "tray:default",
    "fs:allow-create",
    "fs:allow-read-file",
    "fs:allow-read-text-file",
    "fs:allow-write-file",
    "fs:allow-write-text-file",
    "fs:allow-read-dir",
    "fs:allow-copy-file",
    "fs:allow-mkdir",
    "fs:allow-remove",
    "fs:allow-rename",
    "fs:allow-exists",
    "fs:allow-stat",
    {
      "identifier": "fs:scope",
      "allow": [
        {
          "path": "$TEMP"
        },
        {
          "path": "$TEMP/**/*"
        },
        {
          "path": "$HOME"
        },
        {
          "path": "$HOME/**/*"
        },
        {
          "path": "$HOME/.config"
        },
        {
          "path": "$HOME/.config/**/*"
        },
        {
          "path": "$APPCONFIG"
        },
        {
          "path": "$APPCONFIG/**/*"
        },
        {
          "path": "$DOCUMENT"
        },
        {
          "path": "$DOCUMENT/**/*"
        }
      ]
    },
    "shell:allow-open",
    {
      "identifier": "shell:allow-execute",
      "allow": [
        {
          "name": "open",
          "cmd": "open",
          "args": [
            "-R",
            {
              "validator": "\\S+"
            }
          ],
          "sidecar": false
        },
        {
          "name": "explorer",
          "cmd": "explorer",
          "args": [
            "/select",
            {
              "validator": "\\S+"
            }
          ],
          "sidecar": false
        }
      ]
    },
    "dialog:allow-open",
    "dialog:allow-save",
    "dialog:allow-message",
    "dialog:allow-ask",
    "dialog:allow-confirm",
    {
      "identifier": "http:default",
      "allow": [
        "https://dev.kittycad.io/*",
        "https://dev.zoo.dev/*",
        "https://kittycad.io/*",
        "https://zoo.dev/*",
        "https://api.dev.kittycad.io/*",
        "https://api.dev.zoo.dev/*"
      ]
    },
    "os:allow-platform",
    "os:allow-version",
    "os:allow-os-type",
    "os:allow-family",
    "os:allow-arch",
    "os:allow-exe-extension",
    "os:allow-locale",
    "os:allow-hostname",
    "process:allow-restart",
    "updater:default"
  ],
  "platforms": [
    "linux",
    "macOS",
    "windows"
  ]
}
