@opentiny/webmcp-cli 0.1.1-alpha.1 → 0.1.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/README.md +3 -0
- package/dist/bin.cjs +3678 -412
- package/dist/bin.cjs.map +1 -1
- package/dist/bin.js +3682 -418
- package/dist/bin.js.map +1 -1
- package/dist/index.cjs +38 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +38 -16
- package/dist/index.js.map +1 -1
- package/dist/inject-bundle.js +3002 -3258
- package/dist/webmcp-tools/juejin.cn.js +151 -1802
- package/package.json +15 -5
- package/scripts/ensure-pty-helper.mjs +24 -0
- package/dist/bin.d.cts +0 -1
- package/dist/bin.d.ts +0 -1
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@ npm install -g .
|
|
|
17
17
|
|
|
18
18
|
> **注意:** 在本地联调时,建议使用 `npm install -g .`,这会确保在你的 PATH 中生成有效的可执行文件(`webmcp-cli`)。
|
|
19
19
|
|
|
20
|
+
交互终端依赖可选包 `node-pty`。没有编译工具、预编译包安装失败时,桥接和 `system/bash` 仍可使用,`terminal/open` 会返回加载失败。安装脚本会把 `spawn-helper` 设为可执行;若文件属于其他用户且当前用户无法修改,终端启动失败信息会说明需要重新安装或以安装用户执行 `chmod 755`。
|
|
21
|
+
|
|
20
22
|
## 测试
|
|
21
23
|
|
|
22
24
|
统一使用 [Vitest](https://vitest.dev/)(与 `@opentiny/next-sdk` 一致):
|
|
@@ -44,6 +46,7 @@ CI 中浏览器任务使用 [browser-actions/setup-chrome](https://github.com/br
|
|
|
44
46
|
|
|
45
47
|
全局命令为 **`webmcp-cli`**,支持全局参数:
|
|
46
48
|
- `-w, --workspace <path>`: 指定自定义的浏览器工作空间(用户配置目录)路径。如果不传默认使用 `~/.webmcp_chrome_profile`。
|
|
49
|
+
- `--ignore-certificate-errors`: 关闭受控 Chrome 的 HTTPS 证书校验,用于打开自签名、过期或主机名不匹配的站点。也可设置环境变量 `WEBMCP_IGNORE_CERTIFICATE_ERRORS=1`。默认仍校验证书。仅 CDP 模式有效。该设置作用于当前受控浏览器进程,直到进程退出;重启后需要再次传入。打开时会在 stderr 提示「当前受控浏览器已关闭 TLS 证书校验。」
|
|
47
50
|
|
|
48
51
|
---
|
|
49
52
|
|