cask "windsurf@next" do arch arm: "arm64", intel: "x64" version "1.10.112+next.7c493d782a,7c493d782a6cad0516e79f070d953687991df4ec" sha256 arm: "ee0cf7fcac043e4c1b6fa652c30ad3559e26ffb367ef5b1f70a5807d31ca01d2", intel: "7c58e149ec084e6b57dcb7e1237253827268f3481c11fb614e325e515b54dd3a" url "https://windsurf-stable.codeiumdata.com/darwin-#{arch}-dmg/next/#{version.csv.second}/Windsurf-darwin-#{arch}-#{version.csv.first}.dmg", verified: "windsurf-stable.codeiumdata.com/" name "Windsurf Next (Beta)" desc "Agentic IDE powered by AI Flow paradigm" homepage "https://codeium.com/windsurf/download-next" livecheck do url "https://windsurf-next.codeium.com/api/update/darwin-#{arch}-dmg/next/latest" strategy :json do |json| version = json["windsurfVersion"] hash = json["version"] next if version.blank? || hash.blank? "#{version},#{hash}" end end auto_updates true depends_on macos: ">= :catalina" app "Windsurf - Next.app" binary "#{appdir}/Windsurf - Next.app/Contents/Resources/app/bin/windsurf-next" uninstall launchctl: "com.exafunction.windsurfNext.ShipIt", quit: "com.exafunction.windsurfNext" zap trash: [ "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.exafunction.windsurfNext.sfl*", "~/Library/Application Support/Windsurf Next", "~/Library/Caches/com.exafunction.windsurfNext", "~/Library/Caches/com.exafunction.windsurfNext.ShipIt", "~/Library/HTTPStorages/com.exafunction.windsurfNext", "~/Library/Preferences/com.exafunction.windsurfNext.plist", "~/Library/Saved Application State/com.exafunction.windsurfNext.savedState", ] end