@bitget-ai/bitget-agent-skill 3.2.0 → 3.3.0

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 CHANGED
@@ -5,6 +5,20 @@ All notable changes to `bitget-agent-skill` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [3.3.0] - 2026-09-17
9
+
10
+ ### Added
11
+ - **`bitget-agentic` skill — network/proxy troubleshooting (§5)** — Agent must recognize bitget.com connectivity failures (timeout/ECONNREFUSED/ENOTFOUND/etc.), probe for a local proxy/VPN, and route through it before retrying OAuth; added boundary case R (regional network unreachable).
12
+ - **`bitget-agentic` skill — optional MCP setup (§6)** — guidance for installing the no-key Skill Hub installer and the cloud Market MCP (HTTP transport) alongside the trading MCP.
13
+
14
+ ### Changed
15
+ - `bitget-agentic` skill's 禁止 list (renumbered §5 → §7) gains a new prohibition: retrying OAuth repeatedly without first diagnosing the network.
16
+
17
+ ## [3.2.1] - 2026-09-02
18
+
19
+ ### Fixed
20
+ - **`scripts/install.js` missing executable bit** — the file shipped as `644` in the published tarball, so npm's `bin` symlink failed with `command not found` on `npx`/global install. Restored the executable bit. Pre-existing since 1.2.0; discovered while verifying 3.2.0 end to end.
21
+
8
22
  ## [3.2.0] - 2026-09-02
9
23
 
10
24
  ### Added
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.3.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitget-ai/bitget-agent-skill",
3
- "version": "3.2.0",
3
+ "version": "3.3.0",
4
4
  "packageManager": "pnpm@8.14.1",
5
5
  "description": "Official Bitget AI skill — teaches Claude Code, Codex, and OpenClaw when and how to drive the Bitget Unified Trading Account (UTA / v3) API through the `bgc` CLI from natural language. Run `npx @bitget-ai/bitget-agent-skill` to deploy into your AI tool's skill directory.",
6
6
  "type": "module",
File without changes
@@ -11,9 +11,9 @@ description: >
11
11
  with env API keys (@bitget-ai/bitget-agent-skill). After OAuth, use this skill for
12
12
  runtime auth and trading safety.
13
13
  metadata:
14
- version: 1.2.0
14
+ version: 1.3.0
15
15
  author: Bitget
16
- updated: 2026-08-14
16
+ updated: 2026-09-17
17
17
  requires:
18
18
  bins: ["node", "npx"]
19
19
  node: ">=20"
@@ -128,6 +128,7 @@ get_auth_status → 一句告知会替换本机绑定、Web 旧 Key 仍保留
128
128
  | G Key 归零 | 调 OAuth | 「Agentic 账户已断链,需完整重新授权。」 |
129
129
  | P 云端 Agent | 告知用户后结束,不触发 OAuth | 「云端流程暂未开放,`[待填:resource endpoint]` 定义中;请先使用本地客户端。」 |
130
130
  | Q 历史户 / V Playbook / W 手填 Key / T 多 Agent / X 0 余额 | `[待填:各场景处理规则]` | 规则待补充,运行时不要自行假设处理方式 |
131
+ | R bitget.com 网络不可达 | 排查代理后 OAuth | 「当前网络可能无法访问 bitget.com。我先检查本机 VPN/代理…」→ §5 |
131
132
 
132
133
  ---
133
134
 
@@ -146,10 +147,45 @@ get_auth_status → discover → dryRun → 主网确认卡 → 用户确认「
146
147
 
147
148
  **提币(必拒):** 「Agentic 账户不含提币;请 Web 主账户操作,Agentic 账户资金须先划转到主账户。」提币、主账户操作、主→子划转均需用户手动完成,Agent 不代办。
148
149
 
149
- **错误 category:** auth→OAuth(D/E) · balance→O · rate→N · risk→停 · param→改参 · network→重试
150
+ **错误 category:** auth→OAuth(D/E) · balance→O · rate→N · risk→停 · param→改参 · network→§5
150
151
 
151
152
  ---
152
153
 
153
- ## 5. 禁止(违反即错)
154
+ ## 5. 网络与代理(bitget.com)
154
155
 
155
- 静默重链 / 粘贴或 env 配 Key / 代删 Web Key / 失效仍交易 / 限流当失效 / 只给链接不调 OAuth / LLM 监听 callback / 无法确认失败原因时猜测归因
156
+ 重新授权(§2)或 OAuth 换 Key 时,MCP/SDK 需访问 **bitget.com**。部分地区无法直连,表现为授权 tool 超时、连接失败、回调未收到。
157
+
158
+ **Agent 必须主动处理:**
159
+
160
+ 1. **识别网络问题:** 错误含 timeout / ECONNREFUSED / ENOTFOUND / network / fetch failed / 无法连接 bitget.com,或用户表示地区受限。
161
+ 2. **主动探测本机代理:** 查 `HTTP_PROXY` / `HTTPS_PROXY` / `ALL_PROXY`、系统代理、常见 VPN 本地端口(如 `127.0.0.1:7890`)。**有代理** → 配置 MCP/shell 走代理后**重新走 §2 授权流程**。
162
+ 3. **无可用代理** → 提示用户开 VPN/代理访问 bitget.com;**等用户确认已开好**后再重新授权。
163
+ 4. **禁止:** 未排查网络就反复 OAuth · 拼 URL 绕过 MCP · 让用户手填 Key。
164
+
165
+ §3 Case **R**(地区网络)→ 本节。
166
+
167
+ ---
168
+
169
+ ## 6. 补充 MCP(无需 Key,建议一并安装)
170
+
171
+ 除 `@bitget-ai/bitget-agent-mcp`(OAuth + 交易)外,有两个 **无需 Key** 的包,提供 crypto / 美股 / 宏观数据及分析 Skill,可与交易 MCP 配合使用。用户首次接入或问行情/宏观时,Agent 应帮其安装:
172
+
173
+ **A · Skill Hub**
174
+
175
+ ```bash
176
+ npx @bitget-ai/bitget-agent-installer upgrade-all --target all
177
+ ```
178
+
179
+ **B · 云端 Market MCP(HTTP)**
180
+
181
+ - **Claude Code:** `claude mcp add bitget-mcp-server --transport http https://agent.bitget.com/mcp`
182
+ - **Cursor:** MCP 设置新增 HTTP server,URL `https://agent.bitget.com/mcp`
183
+ - **其他客户端:** 按 HTTP MCP 方式注册,endpoint `https://agent.bitget.com/mcp`
184
+
185
+ 与 stdio 交易 MCP **并存**,安装后重启会话。
186
+
187
+ ---
188
+
189
+ ## 7. 禁止(违反即错)
190
+
191
+ 静默重链 / 粘贴或 env 配 Key / 代删 Web Key / 失效仍交易 / 限流当失效 / 只给链接不调 OAuth / LLM 监听 callback / 无法确认失败原因时猜测归因 / 网络问题未排查代理就反复 OAuth