dsh-agy-link 0.4.9 → 0.4.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +47 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.11 (2026-08-21)
|
|
4
|
+
|
|
5
|
+
- **Fixed `Error: unknown tool "agy_tool": only run_code is callable directly` in DSH Code Mode.**
|
|
6
|
+
- Restored the `run_code` wrapper dispatch (`WRAPPER_TOOL_NAME` + `buildMirrorRunCode`) for span cuts.
|
|
7
|
+
- Under DSH's default Code Mode (`agent-presets: default: code`), model-direct tool calls are collapsed unless addressed to `run_code`. Wrapping the mirror invocation in `run_code` allows internal sub-dispatch to `agy_tool` to replay recorded events without being blocked by DSH's dispatch guard.
|
|
8
|
+
|
|
9
|
+
## 0.4.10 (2026-08-21)
|
|
10
|
+
|
|
11
|
+
- **Fixed `Error: unknown tool "run_code"` loop (Root Cause).**
|
|
12
|
+
- Standard DSH agents and WebUI run direct tool dispatch without Code Mode runner (`run_code`). Emitting span cuts addressed to `run_code` triggered `ToolNotFoundError: unknown tool "run_code"` and trapped agy in an infinite error loop.
|
|
13
|
+
- Span cuts now directly emit `agy_tool` tool-call blocks, which execute instantly and render native tool cards (Terminal, Diff, Read, Search).
|
|
14
|
+
- **Emphasized System Proxy & TUN Mode Requirements in README.**
|
|
15
|
+
- Added prominent warnings and configuration instructions for system proxy, TUN mode, and environment variables (`HTTPS_PROXY`) required for Google connectivity in restricted regions.
|
|
16
|
+
|
|
3
17
|
## 0.4.9 (2026-08-20)
|
|
4
18
|
|
|
5
19
|
- **Theme-Adaptive System & High-Contrast Typography.**
|
package/README.md
CHANGED
|
@@ -23,7 +23,21 @@
|
|
|
23
23
|
|
|
24
24
|
> 全网统一昵称:**小斯syzs** · B站 [@小斯syzs](https://space.bilibili.com/390211071) · 抖音 · 小红书 · 快手(全网同名)
|
|
25
25
|
|
|
26
|
-
把 **Google Antigravity 模型接入 DeepSeek Harness(DSH)** —— 支持**多账号智能池化轮换**、**官方双 Bucket 配额监控(5小时滚动 + 7
|
|
26
|
+
把 **Google Antigravity 模型接入 DeepSeek Harness(DSH)** —— 支持**多账号智能池化轮换**、**官方双 Bucket 配额监控(5小时滚动 + 7天周额度)**、**浏览器免粘贴一键登录**与**浅色/深色主题高对比度自适应**,由官方未修改的 `agy` CLI 驱动,完整支持流式输出、思考折叠(thinking)、原生工具卡片与精确 token 用量。
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
> 🚨 **【国内用户核心前置:必须开启系统代理 / TUN 模式!】**
|
|
31
|
+
>
|
|
32
|
+
> Google Antigravity 服务及 OAuth 登录需要直连 Google 海外官方服务器(`oauth2.googleapis.com`、`cloudcode-pa.googleapis.com` 等)。
|
|
33
|
+
>
|
|
34
|
+
> 1. **推荐方式(最稳妥)**:开启代理工具(Clash / Surge / v2rayA / Sing-box / Loon 等)的 **TUN 虚拟网卡模式(或系统代理全局接管)**,确保终端命令、后台 Node.js 进程及浏览器均能顺畅访问 Google 网络。
|
|
35
|
+
> 2. **终端代理环境变量**:若终端未被代理自动接管,启动 DSH 或运行命令前请在终端中执行:
|
|
36
|
+
> ```bash
|
|
37
|
+
> export HTTPS_PROXY=http://127.0.0.1:7890 HTTP_PROXY=http://127.0.0.1:7890 ALL_PROXY=socks5://127.0.0.1:7890
|
|
38
|
+
> ```
|
|
39
|
+
> *(注:端口 `7890` 请替换为你本地代理软件的实际端口)*
|
|
40
|
+
> 3. **GUI 单账号独立代理**:进入 DSH「设置 → Antigravity」或点击顶部 `AGY` 徽标,点击卡片上的「🌐 代理」按钮,可为特定账号单独配置专属代理 URL(如 `http://127.0.0.1:7890`),实现多账号不同 IP 出口隔离。
|
|
27
41
|
|
|
28
42
|
---
|
|
29
43
|
|
|
@@ -35,6 +49,7 @@
|
|
|
35
49
|
- 🔄 **顺序耗尽故障转移 (Sequential Drain)**:当前账号额度用尽(触发 429 限流或 5h / 周额度耗尽)时,系统**自动平滑接力至下一个可用账号**,对话完全不中断!
|
|
36
50
|
- 📊 **官方双 Bucket 配额监控 (Dual-Bucket Quota)**:直接调用 Antigravity 官方专用的 `v1internal:retrieveUserQuotaSummary` 接口,同时展示 **5小时滚动额度** 与 **7天周额度** 真实数据及精准重置倒计时。
|
|
37
51
|
- 🔑 **GUI 内浏览器免粘贴登录 (In-GUI Zero-Paste OAuth)**:点击「➕ 添加账号」自动调起系统浏览器,本地回环监听自动捕获授权凭证,**全程无需手动复制粘贴授权码**。
|
|
52
|
+
- 🎨 **多主题高对比度自适应 (Light & Dark Themes)**:原生适配 DSH 浅色/深色主题,告别发暗发灰与看不清文字,UI 视觉清晰锐利。
|
|
38
53
|
- 🌐 **独立账号网络代理 (Per-Account Proxy)**:支持为每个账号独立绑定 HTTP(S) / SOCKS 代理,避免多账号同 IP 引起风控。
|
|
39
54
|
- ⚡ **分模型族独立冷却 (Family-Scoped Cooldown)**:Gemini 与 Claude / GPT-OSS 速率限制独立计算,某个模型族受限不影响其他模型族正常调用。
|
|
40
55
|
|
|
@@ -47,6 +62,7 @@
|
|
|
47
62
|
| 👥 **多账号池化轮换** | 支持主账号 + 多个备用账号;遇到 429 或配额耗尽自动平滑切换,模型族独立冷却 |
|
|
48
63
|
| 📊 **官方双 Bucket 配额监控** | 实时拉取官方端点,同时呈现 **5h 滚动额度** 与 **7d 周额度** 双进度条与倒计时,单模型明细可展开 |
|
|
49
64
|
| 🔑 **浏览器一键登录** | 点击添加账号自动唤起 Google 授权页,本地回环自动捕获,全程无需复制粘贴任何代码 |
|
|
65
|
+
| 🎨 **多主题高对比 UI** | 浅色、深色主题自适应变色,纯矢量 SVG 图标(无 Emoji),字迹清晰不发暗 |
|
|
50
66
|
| 🌐 **独立账号代理** | 每个账号支持独立配置 HTTP(S) 代理,隔离 IP 出口 |
|
|
51
67
|
| 🔌 **原生模型路由** | 在 DSH 模型配置中注册 `antigravity` 提供方,`/model` 选择器随心切换 Gemini / Claude / GPT-OSS |
|
|
52
68
|
| 🌊 **完整流式映射** | 文本、思考过程(thinking turn)与工具活动均无损映射到 DSH 原生流协议 |
|
|
@@ -66,9 +82,10 @@
|
|
|
66
82
|
|
|
67
83
|
| 前置项 | 说明 / 验证方式 |
|
|
68
84
|
| --- | --- |
|
|
69
|
-
| **1.
|
|
70
|
-
| **2.
|
|
71
|
-
| **3.
|
|
85
|
+
| **1. 系统网络代理** | **【必须开启】**(推荐开启 Clash / Surge / v2rayA 的 TUN 模式或设置 `HTTPS_PROXY` 环境变量,确保可流畅连接 Google 服务) |
|
|
86
|
+
| **2. DeepSeek Harness (DSH)** | 你正在使用的 DSH 客户端;`dsh --version` 可验证 |
|
|
87
|
+
| **3. Node.js ≥ 24** | DSH 依赖环境;`node --version` 验证 |
|
|
88
|
+
| **4. Google Antigravity `agy` CLI** | 按 [Google 官方安装文档](https://antigravity.google/docs/cli/install) 安装(支持 macOS / Linux / Windows)。`agy --version` 能输出版本号即表示安装成功 |
|
|
72
89
|
|
|
73
90
|
> 💡 **提示**:即使你的 agy 尚未登录,也可以直接安装插件!在 DSH 界面顶部点击 `AGY` 徽标或进入「设置 → Antigravity」,点击「➕ 添加账号」即可直接在浏览器中完成登录。
|
|
74
91
|
|
|
@@ -77,6 +94,9 @@
|
|
|
77
94
|
## 🚀 快速上手
|
|
78
95
|
|
|
79
96
|
```bash
|
|
97
|
+
# 0. 确保系统代理 / TUN 模式已开启(国内网络必需):
|
|
98
|
+
export HTTPS_PROXY=http://127.0.0.1:7890 HTTP_PROXY=http://127.0.0.1:7890
|
|
99
|
+
|
|
80
100
|
# 1. 安装插件(npm 官方包,无需编译构建):
|
|
81
101
|
dsh plugin --profile web add dsh-agy-link
|
|
82
102
|
|
|
@@ -143,7 +163,20 @@ MIT License.
|
|
|
143
163
|
|
|
144
164
|
> Known online as **小斯syzs** — Bilibili [@小斯syzs](https://space.bilibili.com/390211071) · Douyin · Xiaohongshu · Kuaishou (same handle across all platforms).
|
|
145
165
|
|
|
146
|
-
Bring **Google Antigravity models into DeepSeek Harness (DSH)** — featuring **Multi-Account Pooling & Automatic Rotation**, **Official Dual-Bucket Quota Tracking (5h Rolling + 7d Weekly)**, **Zero-Paste In-GUI OAuth Login**, powered by the official unmodified `agy` CLI.
|
|
166
|
+
Bring **Google Antigravity models into DeepSeek Harness (DSH)** — featuring **Multi-Account Pooling & Automatic Rotation**, **Official Dual-Bucket Quota Tracking (5h Rolling + 7d Weekly)**, **Zero-Paste In-GUI OAuth Login**, and **Theme-Adaptive High-Contrast UI**, powered by the official unmodified `agy` CLI.
|
|
167
|
+
|
|
168
|
+
---
|
|
169
|
+
|
|
170
|
+
> 🚨 **【Important: System Proxy / VPN / TUN Mode Required in Restricted Regions】**
|
|
171
|
+
>
|
|
172
|
+
> Google Antigravity services and Google OAuth require access to Google servers (`oauth2.googleapis.com`, `cloudcode-pa.googleapis.com`, etc.).
|
|
173
|
+
>
|
|
174
|
+
> 1. **Recommended**: Enable **TUN mode / System Proxy** in your VPN or proxy client (Clash, Surge, Sing-box, etc.) so that all terminal commands, Node.js background processes, and browser calls route through your proxy.
|
|
175
|
+
> 2. **Terminal Proxy Export**: If your terminal does not inherit proxy automatically, export the environment variables before starting DSH:
|
|
176
|
+
> ```bash
|
|
177
|
+
> export HTTPS_PROXY=http://127.0.0.1:7890 HTTP_PROXY=http://127.0.0.1:7890 ALL_PROXY=socks5://127.0.0.1:7890
|
|
178
|
+
> ```
|
|
179
|
+
> 3. **Per-Account Dedicated Proxy**: You can also configure a dedicated proxy URL per account directly in DSH Settings → Antigravity by clicking the "🌐 Proxy" button on the account card (e.g. `http://127.0.0.1:7890`).
|
|
147
180
|
|
|
148
181
|
---
|
|
149
182
|
|
|
@@ -155,6 +188,7 @@ Have multiple Google Antigravity / Gemini accounts? **dsh-agy-link makes multi-a
|
|
|
155
188
|
- 🔄 **Sequential Drain Failover**: When an account reaches its rate limits (429) or runs out of 5h/weekly quotas, requests **automatically and smoothly fail over to the next available account** without interrupting your conversation!
|
|
156
189
|
- 📊 **Official Dual-Bucket Quota Tracking**: Direct integration with Antigravity's official `v1internal:retrieveUserQuotaSummary` endpoint, providing real-time visibility for both **5-Hour Rolling Limit** and **7-Day Weekly Limit** with live countdowns.
|
|
157
190
|
- 🔑 **In-GUI Zero-Paste OAuth**: One-click "Add Account" opens your browser and automatically captures OAuth tokens via local loopback — **no copying and pasting of authorization codes required**.
|
|
191
|
+
- 🎨 **Theme-Adaptive High-Contrast UI**: Seamlessly adapts to Light and Dark DSH themes with crystal clear typography and crisp contrast.
|
|
158
192
|
- 🌐 **Per-Account Proxy**: Configure dedicated HTTP(S) / SOCKS proxy for each individual account to isolate IP addresses.
|
|
159
193
|
- ⚡ **Family-Scoped Cooldowns**: Gemini, Claude, and GPT-OSS rate limits are calculated independently, preventing one exhausted model from blocking others.
|
|
160
194
|
|
|
@@ -167,6 +201,7 @@ Have multiple Google Antigravity / Gemini accounts? **dsh-agy-link makes multi-a
|
|
|
167
201
|
| 👥 **Multi-Account Pool** | Primary + unlimited spare accounts with automatic Sequential Drain rotation upon rate limits |
|
|
168
202
|
| 📊 **Dual-Bucket Quota HUD** | Real-time dual progress bars for both **5h rolling** and **7d weekly** quota limits with exact reset countdowns |
|
|
169
203
|
| 🔑 **Zero-Paste Browser Login** | Automatic browser-based Google OAuth login with loopback callback handler |
|
|
204
|
+
| 🎨 **Theme-Adaptive UI** | Dynamic light/dark theme switching, pure SVG vector marks (no emojis), high contrast |
|
|
170
205
|
| 🌐 **Per-Account Proxy** | Dedicated HTTP(S) proxy per account slot |
|
|
171
206
|
| 🔌 **Native Model Routing** | Registers `antigravity` provider in DSH; choose Gemini / Claude / GPT-OSS in `/model` picker |
|
|
172
207
|
| 🌊 **Full Streaming Protocol** | Native streaming for text, thinking turn annotations, and tool calls |
|
|
@@ -184,15 +219,19 @@ Have multiple Google Antigravity / Gemini accounts? **dsh-agy-link makes multi-a
|
|
|
184
219
|
|
|
185
220
|
| Requirement | Details |
|
|
186
221
|
| --- | --- |
|
|
187
|
-
| **1.
|
|
188
|
-
| **2.
|
|
189
|
-
| **3.
|
|
222
|
+
| **1. System Proxy / VPN** | **【Required in restricted regions】** (TUN mode or `HTTPS_PROXY` environment variable to ensure Google endpoints are reachable) |
|
|
223
|
+
| **2. DeepSeek Harness (DSH)** | Your current DSH environment (`dsh --version`) |
|
|
224
|
+
| **3. Node.js ≥ 24** | Required runtime (`node --version`) |
|
|
225
|
+
| **4. Google Antigravity `agy` CLI** | Installed per [Google's official guide](https://antigravity.google/docs/cli/install). Verified with `agy --version` |
|
|
190
226
|
|
|
191
227
|
---
|
|
192
228
|
|
|
193
229
|
## 🚀 Quick Start
|
|
194
230
|
|
|
195
231
|
```bash
|
|
232
|
+
# 0. Ensure System Proxy / TUN mode is active (required for Google connectivity):
|
|
233
|
+
export HTTPS_PROXY=http://127.0.0.1:7890 HTTP_PROXY=http://127.0.0.1:7890
|
|
234
|
+
|
|
196
235
|
# 1. Install plugin:
|
|
197
236
|
dsh plugin --profile web add dsh-agy-link
|
|
198
237
|
|
|
@@ -231,4 +270,3 @@ This plugin operates strictly by invoking the official, unmodified `agy` CLI bin
|
|
|
231
270
|
## License
|
|
232
271
|
|
|
233
272
|
MIT License.
|
|
234
|
-
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-agy-link",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Google Antigravity (agy CLI) models for DeepSeek Harness — stream Gemini/Claude/GPT-OSS subscriptions into DSH with thinking, tool activity, token usage and in-GUI Google OAuth login.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|