cask "chatwise" do arch arm: "aarch64", intel: "x64" version "0.8.71" sha256 arm: "142928b8868f12b60c978d09676cdeb398ce27ff88c5c92328ea21f22510364e", intel: "c96b21baa34512dc1c3f6a94a623daea656645fab20cb87458b85168c4531736" url "https://github.com/egoist/chatwise-releases/releases/download/v#{version}/ChatWise_#{version}_#{arch}.dmg", verified: "github.com/egoist/chatwise-releases/" name "ChatWise" desc "AI chatbot for many LLMs" homepage "https://chatwise.app/" livecheck do url "https://chatwise.app/api/trpc/getReleases" strategy :json do |json| json.dig("result", "data")&.map { |item| item["tag"]&.tr("v", "") } end end auto_updates true depends_on macos: ">= :ventura" app "ChatWise.app" uninstall quit: "app.chatwise" zap trash: [ "~/Library/Application Support/app.chatwise", "~/Library/Caches/app.chatwise", "~/Library/Saved Application State/app.chatwise.savedState", "~/Library/WebKit/app.chatwise", ] end