Releases: Jaylor-Wang/dsh-tool-antigravity
Releases · Jaylor-Wang/dsh-tool-antigravity
Release list
v0.2.1 - Stability & Connection Keep-Alive / 稳定性与长连接保活增强
English
What's Changed in v0.2.1
🚀 Stability & Performance Enhancements
- Pre-stream Idempotent Network Retry: Automatically retries transient network interruptions (e.g. connection drops, timeouts, or
502/503/504errors) once prior to first byte emission (with 500ms backoff). Preserves strict fail-closed safety once generation begins to prevent duplicate billing or token repetition. - TCP Socket Keep-Alive & NoDelay: Added 15-second keep-alive probes and
noDelayon raw HTTP/1.1 TLS and proxy sockets, preventing local proxies (Clash, Surge, V2Ray) and NAT firewalls from dropping idle connections during model reasoning pauses. - Relaxed Stream Timeouts: Extended stream idle timeout to 120 seconds and total generation timeout to 600 seconds (10 min), comfortably accommodating extended thinking models like Gemini 3.8 Flash, Gemini 2.5 Pro, and Claude reasoning models.
- Unified Credential Storage: Consolidated the single-account credential storage under
dsh-tool-antigravity/auth.json. - Hardened Proxy Configuration: Auto-normalizes proxy URLs without scheme prefix, adds
HTTP_PROXYfallback, and retains low-level system error causes for streamlined diagnosis. - 100% Verified Quality: 28 test suites, 271 automated tests passing with strict TypeScript checks.
📦 Installation
# Via DSH Plugin CLI (Recommended)
dsh plugin --profile web add dsh-tool-antigravity
# Via npm / pnpm
npm install dsh-tool-antigravity@latest
pnpm add dsh-tool-antigravity@latest中文
v0.2.1 版本重要更新(稳定性与连接保活增强)
🚀 核心更新与稳定性优化
- 前置幂等断线自愈:在流式首字节发出前(未开始输出)遇到瞬时网络异常(如连接重置、超时、
502/503/504错误)时自动平滑重试 1 次(500ms 退避),杜绝因链路闪断导致会话中断,首字节发出后严格保持 fail-closed 避免二次计费。 - TCP Socket Keep-Alive & NoDelay:为底层原生 HTTP/1.1 Socket 注入 15 秒心跳保活与低延迟配置,彻底消除本地代理(Clash / Surge / V2Ray 等 127.0.0.1:12450)和 NAT 防火墙在模型思考间隙掐断空闲 TCP 连接的问题。
- 流超时阈值放宽:流空闲超时(Idle Timeout)由 60 秒提升至 120 秒,总超时放宽至 600 秒(10 分钟),深度适配 Gemini 3.8 Flash 及 Claude 深度推理阶段。
- 凭据存储统一:凭据默认持久化路径统归
dsh-tool-antigravity/auth.json,解决旧版本双目录并存与冗余。 - 代理环境自适应与错误溯源:支持无协议前缀代理地址自动规整补全,增加
HTTP_PROXY自动降级兜底,异常透传底层系统错误详情。 - 100% 质量与测试保障:全项目 28 个测试套件、271 项自动化测试全绿通过。
📦 安装与快速上手
# 通过 DSH 插件命令安装(推荐)
dsh plugin --profile web add dsh-tool-antigravity
# 通过 npm / pnpm 安装
npm install dsh-tool-antigravity@latest
pnpm add dsh-tool-antigravity@latestv0.2.0 - Unified Antigravity LLM & Image Capability Bundle / 双支柱架构发布
English
What's Changed in v0.2.0
🚀 Highlights
- Streamlined Two-Pillar Architecture: Completely stripped search and video modules for minimal memory footprint and zero bloat. Focused 100% on high-performance LLM routing (
google-antigravity) and session-persistent image generation and editing (generate_image,list_images). - Windows Browser Opener Fix: Resolved
cmd.exeampersand truncation (&response_type=code) withwindowsVerbatimArguments: true, ensuring seamless 1-click Google OAuth 2.0 PKCE authorization on Windows. - Robust Host RPC Integration: Lifecycle-managed loopback Fetch handler for
/api/dsh-tool-antigravity/*endpoints with fail-closed security and WebServer dynamic injection. - 100% Verified Quality: 28 test suites, 268 automated tests covering transports, lifecycle, gates, quota, and client UI with strict TypeScript checks.
📦 Installation
# Via DSH Plugin CLI (Recommended)
dsh plugin --profile web add dsh-tool-antigravity
# Via npm / pnpm
npm install dsh-tool-antigravity@latest
pnpm add dsh-tool-antigravity@latest🤖 Supported Models (google-antigravity)
- Gemini:
antigravity-gemini-3.8-flash,antigravity-gemini-3.7-flash,antigravity-gemini-3.6-flash,antigravity-gemini-3.1-pro - Claude:
claude-sonnet-4-6-thinking,claude-opus-4-6-thinking - GPT-OSS:
gpt-oss-120b-medium
中文
v0.2.0 版本重要更新
🚀 核心亮点
- 全面收敛为两大核心支柱:彻底剥离并移除“网页搜索”和“视频理解”模块,大幅降低包体积与堆内存占用,零冗余开箱即用,专注全系 LLM 路由服务与会话图片生成/多轮编辑。
- Windows 浏览器授权拉起修复:底层进程唤起采用
windowsVerbatimArguments: true,彻底根除 Windows 下cmd.exe将 URL 中&解析为命令连接符而截断&response_type=code参数的顽疾,保证一键顺畅拉起默认浏览器完成 Google OAuth 授权。 - 生命周期可控的 Host RPC 架构:通过 Cordis 响应式依赖注入将
/api/dsh-tool-antigravity/*路由注册到 WebServer,结合严格的本地回环(Loopback127.0.0.1)守卫保障通信安全。 - 100% 质量与测试保障:全项目 28 个测试套件、268 项自动化测试全部绿灯通过,TypeScript 严格模式类型检查 0 报错。
📦 安装与快速上手
# 通过 DSH 插件命令安装(推荐)
dsh plugin --profile web add dsh-tool-antigravity
# 通过 npm / pnpm 安装
npm install dsh-tool-antigravity@latest
pnpm add dsh-tool-antigravity@latest🤖 支持的模型目录 (google-antigravity)
- Gemini 系列:
antigravity-gemini-3.8-flash、antigravity-gemini-3.7-flash、antigravity-gemini-3.6-flash、antigravity-gemini-3.1-pro - Claude 系列:
claude-sonnet-4-6-thinking、claude-opus-4-6-thinking - GPT-OSS 系列:
gpt-oss-120b-medium
v0.1.0 - Initial High-Performance Release / 首个高性能架构发布
English
Overview
dsh-tool-antigravity is a streamlined, high-performance capability bundle for DeepSeek Harness (DSH), delivering private Google Antigravity OAuth 2.0 authentication, native multi-model routing, session-durable image generation/editing, and a real-time quota dashboard with graceful caching.
Key Enhancements & Features
- TLS Connection Pooling & Session Ticket Resumption: Built-in HTTP/1.1 Keep-Alive socket pool and TLS session resumption against Google endpoints, eliminating repeated TLS handshake roundtrips and drastically reducing Time-To-First-Token (TTFT).
- High-Throughput Buffer Sliding-Window SSE Parser: Zero-copy binary stream chunking eliminates heap reallocations and garbage collection pressure during long reasoning outputs.
- Granular Reasoning Budgets & Idempotent Pre-flight Retry: Smooth thinking budget allocation for Gemini, Claude, and GPT-OSS models, paired with automatic single-attempt retry on connection resets prior to first byte emission.
- Windows File Lock Recovery: Active PID probing on Windows immediately cleans up abandoned lock files without waiting for the default 30-second stale timeout.
- Stale-While-Revalidate (SWR) Quota Resilience: Robust quota normalization supporting 5h and weekly windows; retains and displays last-known valid quota with shimmer animations during transient network disruptions.
- Image Generation & Multi-Turn Editing: Durable integration with DSH
AttachmentStoreviagenerate_imageandlist_images. - Bilingual Interface: Full English and Chinese localization for settings cards and quota alerts.
Package Distribution
- npm:
dsh-tool-antigravity - Install:
npm install dsh-tool-antigravity
中文
概述
dsh-tool-antigravity 是为 DeepSeek Harness (DSH) 打造的高性能 Antigravity 能力包插件,提供私有 Google Antigravity OAuth 2.0 认证闭环、原生多模型路由与会话持久化图片生成/编辑能力。
核心亮点与技术优化
- TLS Socket 长连接池与 Session Ticket 复用:自研轻量 HTTP/1.1 Keep-Alive 连接池与 TLS 票据复用机制,彻底消除逐请求建立 TLS 握手的固有延迟,显著降低首字响应时间(TTFT)。
- 二进制 Buffer 游标滑动 SSE 解析器:在 Buffer 字节层精确定位换行符并切片解码,规避流式输出时高频字符串累加带来的 V8 堆内存重新分配与 GC 抖动。
- 细粒度思考预算调控与前置幂等重试:开放精细化思维链预算档位,并在首字节发出前遇到瞬时网络断线(如 TLS RST / 502 / 503)时自动平滑重试 1 次。
- Windows 文件锁活性探测:针对 Windows 平台引入
process.kill(pid, 0)探测,若持有锁的进程已异常退出,立即主动回收锁,杜绝 30 秒死等假死现象。 - 配额看板 SWR 容错与微光动效:重构 5 小时与每周配额解析算法,彻底解决窗口周期判断漂移问题;在接口波动时基于 SWR 机制优雅展示缓存数据与微光刷新提示。
- 图片创作与多轮编辑工具:深度接入 DSH
AttachmentStore,提供会话持久化的generate_image与list_images工具。 - 完整双语支持:前端设置卡片、配额提示与错误信息无缝适配中英文切换。
依赖分发
- npm 地址:
dsh-tool-antigravity - 安装方式:
npm install dsh-tool-antigravity