Repository navigation
AntiGravity Switch 4.10.20
| macOS · Apple Silicon | Windows · x64 | Linux · x64 |
|---|---|---|
| Download ZIP | Download installer | Download deb |
Terminal packages: Windows console ZIP · Linux console tarball.
SHA-256 values and source commit are in release-manifest.json. The app reads the update feed automatically; the Mac updater tarball is not needed for a manual install.
本次更新
- 安全加固:
- 浏览器登录改用 PKCE 授权码交换。
- 手动提交时必须粘贴本次授权的完整回调链接,单独粘贴授权码不再有效;链接的来源和状态参数会逐项校验。
- OAuth 失败信息和日志不再包含服务端原始返回内容。
- 安全加固:每个窗口只能调用各自需要的应用命令,快捷看板的权限范围更小;内容安全策略不再允许内联脚本。
- 修复自动更新组件依赖的
zip库中的三个安全问题(含一个严重级别)。新版更新组件在安装前会再次校验更新包签名。 - 导入本机 Antigravity 账号数据库时以只读方式打开,并禁用数据库内的非内置函数;内置 SQLite 同步升级。
- 菜单栏和快捷看板的账号名称格式新增“仅备注”:有备注时只显示备注,没有备注或备注为空时显示邮箱。快捷看板会忽略只含空格的备注,与原生菜单一致。
- 首页“账号状态”新增“低额”分类:任一窗口低于或等于预留阈值的账号计为低额;“不可用”只用于禁用、受限或验证拦截的账号。只返回部分额度系列的数据仍计为未知,不会算作可用。
Changes
- Security hardening:
- Browser sign-in now exchanges the authorization code with PKCE.
- Manual submission requires the complete callback URL from the current authorization; a bare code is no longer accepted, and the URL's origin and state are checked.
- OAuth failures and logs no longer include raw provider responses.
- Security hardening: each window may call only the app commands it needs, the quick dashboard gets a narrower set, and the content security policy no longer allows inline scripts.
- Fixes three security advisories in the
ziplibrary used by the updater, one of them critical. The newer updater verifies the package signature again before installing. - Importing a local Antigravity account database opens it read-only and disables non-built-in database functions; the bundled SQLite is upgraded.
- The menu bar and quick dashboard gain a Note only account name format: an account with a note shows only the note, and one without a note, or with a blank one, shows its email. The quick dashboard ignores whitespace-only notes, matching the native menu.
- The dashboard's account status adds a Low category: accounts at or below the reserve in any window count as low, while Unavailable is kept for disabled, restricted or blocked accounts. A quota summary that omits a selected family still counts as unknown, never as available.
Thanks to azrael for the OAuth, security-boundary, note-only and low-quota contributions (#156, #158–#162).
Verification and limits
Rust unit tests (268 passed, 4 ignored), the frontend tsc/vite build, the script suites (including the new desktop security boundary test) and the CLI suites (45 executable smoke checks, 68 PTY terminal checks, 8 account viewport checks, 6 agy-target pre-write checks, 6 launch isolation checks) pass at the release source, together with the three platform package jobs of the final-version CI. The mocked UI suite (157 tests) passes in CI. In a local full run, one auto-switch test failed once under load; it passes when repeated (5/5). Code in this release was not changed by that test.
- Updater: the published 4.10.19 update signatures for all three platforms verify with the newer signature library, so updates from this version keep working. An actual in-app update on Windows was not run.
- OAuth: PKCE and the stricter manual callback are covered by unit tests. A live Google sign-in round trip was not run.
- Command capabilities: a static test checks that every registered command is granted to the main window and that the quick dashboard has exactly the commands it calls. The Windows/Linux tray window was exercised only in CI's native jobs. The production page has no inline scripts.
- Account database import: covered by synthetic fixtures; no real Antigravity database was available on the verification machine.
- Account status and note-only names: covered by script and mocked UI tests, and checked in Chinese and English at desktop and narrow widths.
No real account was switched, refreshed, exported or deleted during maintainer verification. Mac packages still lack Developer ID/notarization and Windows packages lack Authenticode; bundle and updater signatures do not establish OS trust. Installation requires user action; see updates.
Source commit: e986818