@ai-zen/agents-sdk 1.0.0-alpha.1 → 1.0.0-alpha.2
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
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.0-alpha.2] - 2026-10-03
|
|
4
|
+
|
|
5
|
+
### 🚀 New Features
|
|
6
|
+
|
|
7
|
+
- **`chrome-devtools` added to the factory default MCP config** — `DEFAULT_MCP_CONFIG` now ships two servers instead of one: alongside `socket-pty`, a freshly released `~/.ai-zen/mcp.json` includes `chrome-devtools` (`npx -y chrome-devtools-mcp@latest`, Google's official `chrome-devtools-mcp`), so browser debugging and automation work out of the box — page navigation, performance traces, network and console inspection, screenshots. Existing `mcp.json` files are still never overwritten, so user configurations (including custom flags such as `--executablePath`) are untouched. Defined in `packages/sdk/src/config/constants.ts`, released by `ConfigManager.ensureDefaultMcpConfig()`.
|
|
8
|
+
|
|
9
|
+
### ✅ Tests
|
|
10
|
+
|
|
11
|
+
- `ConfigManager.bootstrap.test.ts` now asserts the factory-default `mcp.json` carries both `socket-pty` and `chrome-devtools` (the latter resolved from the `chrome-devtools-mcp` package via `npx`), covering both the `bootstrap()` and `ensureDefaultMcpConfig()` paths.
|
|
12
|
+
|
|
13
|
+
### 📄 Docs
|
|
14
|
+
|
|
15
|
+
- Factory-default MCP descriptions in `docs/zh/mcp.md` / `docs/en/mcp.md` and `docs/zh/sdk.md` / `docs/en/sdk.md` now list both `socket-pty` and `chrome-devtools`.
|
|
16
|
+
- Current-version references in `docs/zh` and `docs/en` updated to `1.0.0-alpha.2`.
|
|
17
|
+
|
|
3
18
|
## [1.0.0-alpha.1] - 2026-10-03
|
|
4
19
|
|
|
5
20
|
### 💥 Breaking Changes
|
|
@@ -55,7 +55,7 @@ export declare class ConfigManager {
|
|
|
55
55
|
/** mcp.json 路径:{basePath}/mcp.json */
|
|
56
56
|
get mcpPath(): string;
|
|
57
57
|
/**
|
|
58
|
-
* 确保 basePath/mcp.json 存在。不存在时写入出厂默认 MCP 配置(含 socket-pty)。
|
|
58
|
+
* 确保 basePath/mcp.json 存在。不存在时写入出厂默认 MCP 配置(含 socket-pty 与 chrome-devtools)。
|
|
59
59
|
* 已有文件不被覆盖,尊重用户已配置的 MCP 服务器。
|
|
60
60
|
* @returns 返回当前生效的 MCP 配置原始内容
|
|
61
61
|
*/
|
|
@@ -188,7 +188,7 @@ export class ConfigManager {
|
|
|
188
188
|
return join(this.basePath, "mcp.json");
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
|
-
* 确保 basePath/mcp.json 存在。不存在时写入出厂默认 MCP 配置(含 socket-pty)。
|
|
191
|
+
* 确保 basePath/mcp.json 存在。不存在时写入出厂默认 MCP 配置(含 socket-pty 与 chrome-devtools)。
|
|
192
192
|
* 已有文件不被覆盖,尊重用户已配置的 MCP 服务器。
|
|
193
193
|
* @returns 返回当前生效的 MCP 配置原始内容
|
|
194
194
|
*/
|
|
@@ -11,7 +11,9 @@ export declare const DEFAULT_SUBAGENT_DEFINITION: Omit<AgentDefinition, "created
|
|
|
11
11
|
export declare const DEFAULT_APP_CONFIG: AppConfig;
|
|
12
12
|
/**
|
|
13
13
|
* SDK 出厂默认 MCP 服务器配置(mcp.json 内容,业界标准格式)。
|
|
14
|
-
* 首次初始化时释放到 ~/.ai-zen/mcp.json
|
|
14
|
+
* 首次初始化时释放到 ~/.ai-zen/mcp.json,让用户开箱即用:
|
|
15
|
+
* - socket-pty 伪终端(pty)能力
|
|
16
|
+
* - chrome-devtools Chrome DevTools 浏览器调试/自动化能力(Google 官方 chrome-devtools-mcp)
|
|
15
17
|
*
|
|
16
18
|
* 若文件已存在则不覆盖(尊重用户已有配置)。
|
|
17
19
|
*/
|
package/dist/config/constants.js
CHANGED
|
@@ -214,11 +214,13 @@ export const DEFAULT_APP_CONFIG = {
|
|
|
214
214
|
maxToolOutput: 32_768,
|
|
215
215
|
};
|
|
216
216
|
// ---------------------------------------------------------------------------
|
|
217
|
-
// 默认 MCP 配置(socket-pty 终端 MCP)
|
|
217
|
+
// 默认 MCP 配置(socket-pty 终端 MCP + chrome-devtools 浏览器调试 MCP)
|
|
218
218
|
// ---------------------------------------------------------------------------
|
|
219
219
|
/**
|
|
220
220
|
* SDK 出厂默认 MCP 服务器配置(mcp.json 内容,业界标准格式)。
|
|
221
|
-
* 首次初始化时释放到 ~/.ai-zen/mcp.json
|
|
221
|
+
* 首次初始化时释放到 ~/.ai-zen/mcp.json,让用户开箱即用:
|
|
222
|
+
* - socket-pty 伪终端(pty)能力
|
|
223
|
+
* - chrome-devtools Chrome DevTools 浏览器调试/自动化能力(Google 官方 chrome-devtools-mcp)
|
|
222
224
|
*
|
|
223
225
|
* 若文件已存在则不覆盖(尊重用户已有配置)。
|
|
224
226
|
*/
|
|
@@ -230,6 +232,12 @@ export const DEFAULT_MCP_CONFIG = {
|
|
|
230
232
|
args: ["-y", "@ai-zen/socket-pty", "mcp"],
|
|
231
233
|
description: "可托管的伪终端(pty):spawn/read/wait/write/resize/status/kill",
|
|
232
234
|
},
|
|
235
|
+
"chrome-devtools": {
|
|
236
|
+
type: "stdio",
|
|
237
|
+
command: "npx",
|
|
238
|
+
args: ["-y", "chrome-devtools-mcp@latest"],
|
|
239
|
+
description: "Chrome DevTools 浏览器调试与自动化(Google chrome-devtools-mcp):页面导航、性能追踪、网络与控制台检查、截图等",
|
|
240
|
+
},
|
|
233
241
|
},
|
|
234
242
|
};
|
|
235
243
|
// ---------------------------------------------------------------------------
|