@mearl/client 3.0.0 → 3.0.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.en.md CHANGED
@@ -15,9 +15,9 @@ Use type-safe named methods such as `getRequests` and `sendRequest`, or the flex
15
15
  ## Installation
16
16
 
17
17
  ```bash
18
- npm install @mearl/client@3
18
+ npm install @mearl/client
19
19
  # Or
20
- pnpm add @mearl/client@3
20
+ pnpm add @mearl/client
21
21
  ```
22
22
 
23
23
  ## SDK usage
@@ -66,7 +66,7 @@ mearl check
66
66
  mearl check --local --json
67
67
 
68
68
  # Update the local environment
69
- npx @mearl/setup@3 update --local
69
+ npx @mearl/setup update --local
70
70
 
71
71
  # Show action help
72
72
  mearl <action> --help
@@ -248,7 +248,7 @@ Mearl aggregates local and configured cloud-server browsers by default, routing
248
248
  latest client, native-host, cloud-connector, and extension releases. Release queries wait about 1.5 seconds at most;
249
249
  unreachable sources report unconfirmed updates without affecting browser checks. `--json` returns machine-readable results,
250
250
  including updates when combined with `--updates`. Available updates show appropriate commands: client/native-host use
251
- `npx @mearl/setup@3 update`; setup-managed extensions use `npx @mearl/setup extension`.
251
+ `npx @mearl/setup update`; setup-managed extensions use `npx @mearl/setup extension`.
252
252
 
253
253
  By default, globally installed `mearl` launches an independent background updater after the first use each day to query releases and compare
254
254
  installed client, native-host, cloud-server, and MCP server versions. When needed, it invokes
package/README.md CHANGED
@@ -15,9 +15,9 @@
15
15
  ## 安装
16
16
 
17
17
  ```bash
18
- npm install @mearl/client@3
18
+ npm install @mearl/client
19
19
  # 或
20
- pnpm add @mearl/client@3
20
+ pnpm add @mearl/client
21
21
  ```
22
22
 
23
23
  ## SDK 使用
@@ -66,7 +66,7 @@ mearl check
66
66
  mearl check --local --json
67
67
 
68
68
  # 更新本地环境
69
- npx @mearl/setup@3 update --local
69
+ npx @mearl/setup update --local
70
70
 
71
71
  # 查看某个 action 的帮助
72
72
  mearl <action> --help
@@ -248,7 +248,7 @@ Mearl 默认聚合当前机器和已配置 cloud-server 下的浏览器,并通
248
248
  client、native-host、cloud-connector 和扩展的最新发布版本。发布版本查询最长等待约 1.5 秒,
249
249
  无法访问发布源时会提示无法确认更新,不影响浏览器可用性检查。`--json` 输出机器可读的检查结果,
250
250
  与 `--updates` 同用时包含更新状态。发现更新时会提示适用的命令:client/native-host 使用
251
- `npx @mearl/setup@3 update`,setup 管理的扩展使用 `npx @mearl/setup extension`。
251
+ `npx @mearl/setup update`,setup 管理的扩展使用 `npx @mearl/setup extension`。
252
252
 
253
253
  全局安装的 `mearl` CLI 默认在每天首次使用后启动独立后台进程,查询最新发布版本,并比较
254
254
  client、native-host、cloud-server 和 MCP server 的已安装版本。发现更新时调用
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/client",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Unified Mearl SDK & CLI for local and remote browsers",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -68,11 +68,11 @@
68
68
  "commander": "^14.0.3",
69
69
  "fastest-levenshtein": "^1.0.16",
70
70
  "ws": "^8.18.0",
71
- "@mearl/daemon-core": "3.0.0",
72
- "@mearl/cloud-types": "3.0.0",
73
- "@mearl/browser-core": "3.0.0",
74
- "@mearl/agent-runtime": "3.0.0",
75
- "@mearl/provider": "3.0.0"
71
+ "@mearl/cloud-types": "3.0.1",
72
+ "@mearl/daemon-core": "3.0.1",
73
+ "@mearl/browser-core": "3.0.1",
74
+ "@mearl/agent-runtime": "3.0.1",
75
+ "@mearl/provider": "3.0.1"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@types/node": "^24.9.1",
@@ -1,2 +0,0 @@
1
- /** CLI host commands share the SDK error code without exporting arbitrary error metadata. */
2
- export declare function writePluginCliError(error: unknown): void;
@@ -1,7 +0,0 @@
1
- /** CLI host commands share the SDK error code without exporting arbitrary error metadata. */
2
- export function writePluginCliError(error) {
3
- const code = error && typeof error === 'object' && 'code' in error && typeof error.code === 'string'
4
- ? error.code
5
- : 'PLUGIN_HOST_ERROR';
6
- process.stderr.write(`${JSON.stringify({ error: { code, message: error instanceof Error ? error.message : String(error) } })}\n`);
7
- }