cask "t3-code@nightly" do arch arm: "arm64", intel: on_system_conditional(macos: "x64", linux: "x86_64") os macos: "dmg", linux: "AppImage" version "0.0.46-nightly.20261013.3080" sha256 arm: "b15bad0d53d7c25ebf4d471d59fcf904aadcb6688218574e4f580de8d0589fee", intel: "ffc617fa17ae036aff91e94f7038a8df57413312a31560fba678906d51ec259d", x86_64_linux: "18e851cefa1eacd97f56d082aa7f4d18a3f9f3885342bf1b62197d80a39dbb04" on_macos do auto_updates true depends_on macos: :ventura app "T3 Code (Nightly).app" zap trash: [ "~/.t3/userdata", "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.t3tools.t3code.sfl*", "~/Library/Application Support/T3 Code (Alpha)", "~/Library/Application Support/t3code", "~/Library/Caches/com.t3tools.t3code", "~/Library/HTTPStorages/com.t3tools.t3code", "~/Library/Preferences/com.t3tools.t3code.plist", "~/Library/Saved Application State/com.t3tools.t3code.savedState", ] end on_linux do depends_on arch: :x86_64 app_image "T3-Code-#{version}-#{arch}.AppImage", target: "T3 Code Nightly.AppImage" end url "https://github.com/pingdotgg/t3code/releases/download/v#{version}/T3-Code-#{version}-#{arch}.#{os}" name "T3 Code Nightly" desc "Minimal GUI for AI code agents" homepage "https://t3.codes/" livecheck do url "https://github.com/pingdotgg/t3code/releases" regex(/(\d+(?:\.\d+)+-nightly\.\d{8}\.\d+)$/i) strategy :github_releases do |json, regex| json.map do |release| next unless release["prerelease"] match = release["tag_name"]&.match(regex) next if match.blank? match[1] end end end end