Repository navigation
macOS: 新增菜单栏版 TraeBar(Swift 原生实现多账号自动签到) - #35
Merged
Merged
Conversation
Swift/AppKit 原生实现,无第三方依赖,接口与风控逻辑移植自 TraeApiClient.cs / checkin.py / LoginHostForm.cs: - 多账号每日自动签到(10 分钟轮询,status 先行避免重复 claim) - 9074 风控自动换 16 位设备号重试 - WKWebView 一键登录自动抓取 X-Cloudide-Session(非持久化会话,多账号去重) - 菜单栏积分总览、会话过期提醒(约 14 天)与一键更新 - LaunchAgent 开机自启 + flock 单实例锁 - 凭证文件权限 600 macOS 13+,swift build 即可编译,详见 macos/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
新增
macos/目录:TraeBar,macOS 菜单栏常驻版,Swift/AppKit 原生实现,零第三方依赖,接口、参数与风控处理完全移植自本仓库的Services/Checkin/TraeApiClient.cs、checkin.py与LoginHostForm.cs,与 Windows 版核心能力对齐。功能
checkin_credits/status再claim,不重复请求checkin.py同策略LoginHostForm思路):内嵌 WKWebView 登录 trae.cn,自动抓取X-Cloudide-Session,无需 F12;非持久化会话保证多账号互不串号,同会话自动去重user_current_entitlement_list聚合),会话过期转 ⚠︎ 并支持一键更新~/Library/Application Support/TraeBar/state.json)编译
要求 macOS 13+ / Swift 5.9+,详见
macos/README.md。实测
macOS 26 / Apple Silicon:编译零警告;双账号真实签到(各 +150 基础 +50 连签)、积分聚合、登录窗抓 Cookie、单实例锁、LaunchAgent 均验证通过。
其他