Skip to content

Antigravity Tools LS v0.0.3

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Mar 05:35

English Changelog

  • [Frontend UI] Dashboard Integrity Status Fix: Introduced a "CHECKING" status to resolve the issue where the Dashboard homepage incorrectly displayed as "DEGRADED" before core asset data finished loading, eliminating initial screen warning flicker.
  • [Core] Sandbox Isolation Bypass: Removed the virtual workspace restriction (/tmp/antigravity_workspace) for the Cascade Agent, fully unlocking the AI agent's ability to read arbitrary local codebase directories on the host machine.
  • [Protocol] Claude CLI Deep Compatibility: Fixed strict usage payloads in Anthropic streaming outputs and added a /v1/messages/count_tokens preflight mock endpoint to perfectly support Cherry Studio and the official Claude CLI tool.
  • [Reliability] Fallback Model Injection: Automatically injects preset/default models (e.g., gemini-3.1-pro-high) into memory and the frontend UI when quota detection fails or new accounts haven't synced models, preventing blank UI screens and missing API models.
  • [Provisioner] Strengthened Local-First Validation: Optimized AssetProvisioner logic to immediately skip meaningless cloud downloads once an aligned locally installed Antigravity version is sniffed, speeding up the server startup.
  • [Protocol] Native Gemini Client Integration: Engineered support for x-goog-api-key headers and automatically intercepts/strips operation suffixes (e.g., :streamGenerateContent) from model paths at the gateway, unlocking drop-in compatibility for official Gemini ecosystem tools.
  • [Engine] Aligned LS Core Launch Signatures: Adopted security adaptations targeting recent Antigravity native engines, transitioning to -https_server_port and injecting mandatory bidirectional CSRF tokens for Cascade agents to eradicate strict connection-reset issues.
  • [Session] Zero-IO Identity Tracking: Deprecated high-frequency disk-reads of local .gemini authorization files during identity evaluations, swapped to rapid memory-bound MD5 fingerprint checks, mitigating heavy file operations and concurrency contention.
  • [Port Config] Full-Link Custom Backend Port: Eliminated all hardcoded 5173 port references. Now supports configuring the backend port via CLI, env vars, or directly in the Dashboard Settings page, with automatic adaptation for Tauri bridging and OAuth flows.
  • [Accounts] Account Status Misjudgment Fix (Issue #13): Optimized the Google subscription tier recognition algorithm, resolving the issue where normal free accounts were incorrectly flagged as "Restricted/Banned," and added support for automatic status recovery.

中文更新日志

  • [前端 UI] 修复首页完整性误报:引入了“检查中 (CHECKING)”状态,解决了 Dashboard 首页在核心资产数据加载完成前错误显示为“受损 (DEGRADED)”的问题,消除了首屏闪烁警告。
  • [核心解绑] 解除沙箱隔离:移除了原针对 Cascade Agent 的虚拟工作区限制(/tmp/antigravity_workspace),全面解锁 AI 智能体读取宿主机本地任意目录代码库的能力。
  • [协议适配] 深度兼容 Claude CLI:修复了 Anthropic 流式输出中严格要求的 usage 载荷字段,并新增 /v1/messages/count_tokens 预检路由,使其完美兼容 Cherry Studio 和官方 Claude CLI。
  • [服务鲁棒] 后备模型注入机制:在获取配额失败或账号尚未同步模型列表时,自动在接口层和前端界面注入(如 gemini-3.1-pro-high 等)默认后备模型,防止前端白屏与接口无模型可用。
  • [资产供给] 本地优先边界强化:优化了 AssetProvisioner 同步逻辑,一旦嗅探到本地存在的 Antigravity IDE 版本号达标,将立即判定为对齐并阻断无意义的云端重复下载,提升启动速度。
  • [协议扩容] 原生 Gemini 客户端支持:支持了 x-goog-api-key 原生鉴权头,并在网关层自动剥离了原生 SDK 拼接的调用方法后缀(如 :streamGenerateContent),实现与官方 Gemini 生态开发工具的无缝接入。
  • [基座升级] LS Core 启动参数演进:适配了新版 Antigravity 原生引擎的安全策略,应用了新的通信端口参数(-https_server_port),并为级联智能体机制补充了必需的 CSRF Token 特征签名,消除严控机制带来的连接重置报错。
  • [会话治理] 无 IO 身份追踪:摒弃了之前通过高频读取本地 .gemini 目录下令牌文件监测账号变动的做法,改用内存中 MD5 哈希指纹即时比对身份变动,大幅减少文件 IO 开销与并发抢占问题。
  • [端口配置] 全链路自定义后端端口:消除了代码中所有对 5173 端口的硬编码。现在支持通过命令行、环境变量或在 Dashboard 设置页 直接配置后端端口,且自动适配 Tauri 桥接与 OAuth 回调流程。
  • [账号系统] 修复权限误判 Bug (Issue #13):优化了对 Google 订阅等级的识别算法,解决了普通免费账号被错误判定为“受限制/已封禁”的问题,并支持受影响账号的自动活跃恢复。