cask "trae" do arch arm: "arm64", intel: "x64" version "1.0.15133" sha256 arm: "ab997916fa1d3e23fb8aa892c302e65579f47bfc44c4290f13c5c41ab1735548", intel: "27c99e66da25a6d4f51baca133c9ef40992a592beeaffdcfeb626bc1c7b3bd85" url "https://lf-cdn.trae.ai/obj/trae-ai-us/pkg/app/releases/stable/#{version}/darwin/Trae-darwin-#{arch}.dmg" name "Trae" desc "Adaptive AI IDE" homepage "https://www.trae.ai/" livecheck do url "https://api.trae.ai/icube/api/v1/native/version/trae/latest" strategy :json do |json| json.dig("data", "manifest", "darwin", "version") end end auto_updates true depends_on macos: ">= :catalina" app "Trae.app" uninstall launchctl: "com.trae.ShipIt", quit: "com.trae.app" zap trash: [ "~/.trae", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.trae.app.sfl*", "~/Library/Application Support/Trae", "~/Library/Caches/com.trae.app", "~/Library/Caches/com.trae.ShipIt", "~/Library/HTTPStorages/com.trae.app", "~/Library/Preferences/ByHost/com.trae.ShipIt.*.plist", "~/Library/Preferences/com.trae.app.helper.plist", "~/Library/Preferences/com.trae.app.plist", "~/Library/Saved Application State/com.trae.app.savedState", ] end