@bitget-ai/bitget-agent-skill 3.2.1 → 3.3.1

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.1] - 2026-09-20
9
+
10
+ ### Fixed
11
+ - **`bitget-agentic` skill §6 optional MCP setup** — replaced the `upgrade-all` Skill Hub installer guidance (which pulls in `bitget-signal`/datahub) with the correct two-package split: A) `bitget-agent-cli` (`bgc`) + `bitget-agent-skill` (UTA skill) upgraded individually, no signal; B) cloud Market MCP (HTTP), unchanged. Aligned with the official onboarding guide's Step 1b.
12
+
13
+ ## [3.3.0] - 2026-09-17
14
+
15
+ ### Added
16
+ - **`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).
17
+ - **`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.
18
+
19
+ ### Changed
20
+ - `bitget-agentic` skill's 禁止 list (renumbered §5 → §7) gains a new prohibition: retrying OAuth repeatedly without first diagnosing the network.
21
+
8
22
  ## [3.2.1] - 2026-09-02
9
23
 
10
24
  ### Fixed
package/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.1
1
+ 3.3.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitget-ai/bitget-agent-skill",
3
- "version": "3.2.1",
3
+ "version": "3.3.1",
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",
@@ -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,49 @@ 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. 补充组件(一并安装,可选)
170
+
171
+ 除 `@bitget-ai/bitget-agent-mcp`(OAuth + 交易)外,有两个可选组件。**禁止** `upgrade-all`(会连带装上 `bitget-signal`/datahub);行情用 **B**,终端 `bgc` 用 **A**(勿与 Agentic Skill 混为同一 Skill)。
172
+
173
+ **A · 终端交易工具链(需 API Key / 或与 MCP 并存,无 signal)**
174
+
175
+ ```bash
176
+ npm i -g @bitget-ai/bitget-agent-cli
177
+ npx @bitget-ai/bitget-agent-installer upgrade @bitget-ai/bitget-agent-cli --target all
178
+ npx @bitget-ai/bitget-agent-installer upgrade @bitget-ai/bitget-agent-skill --target all
179
+ ```
180
+
181
+ 安装 `bgc` CLI 与 UTA 交易 Skill(`~/.claude/skills` 等);**不含** `bitget-signal`。`--target all` 指 installer 支持的 claude / codex / openclaw;Cursor 用户已装 Agentic Skill,交易以交易 MCP 为主,A 为可选(终端跑 `bgc`)。安装后重启客户端或新开会话。
182
+
183
+ **B · 云端 Market MCP(HTTP,无需 Key)**
184
+
185
+ - **Claude Code:** `claude mcp add bitget-mcp-server --transport http https://agent.bitget.com/mcp`
186
+ - **Cursor:** MCP 设置新增 HTTP server,URL `https://agent.bitget.com/mcp`
187
+ - **其他客户端:** 按 HTTP MCP 方式注册,endpoint `https://agent.bitget.com/mcp`
188
+
189
+ 与 stdio 交易 MCP **并存**,不要替换。安装后重启会话或 MCP 重连。
190
+
191
+ ---
192
+
193
+ ## 7. 禁止(违反即错)
194
+
195
+ 静默重链 / 粘贴或 env 配 Key / 代删 Web Key / 失效仍交易 / 限流当失效 / 只给链接不调 OAuth / LLM 监听 callback / 无法确认失败原因时猜测归因 / 网络问题未排查代理就反复 OAuth