cask "limitless" do
  version "2.961.1"
  sha256 :no_check

  url "https://download.limitless.ai/Limitless.dmg"
  name "Limitless"
  desc "Personal AI-powered transcription and notetaking service"
  homepage "https://www.limitless.ai/"

  disable! date: "2026-06-21", because: :discontinued

  auto_updates true
  depends_on macos: :ventura

  app "Limitless.app"

  zap trash: [
    "~/Library/Caches/ai.limitless.desktop",
    "~/Library/HTTPStorages/ai.limitless.desktop.binarycookies",
    "~/Library/Logs/ai.limitless.desktop",
    "~/Library/Logs/Limitless",
    "~/Library/Saved Application State/ai.limitless.desktop.savedState",
    "~/Library/WebKit/ai.limitless.desktop",
  ]
end
