@mearl/cloud-connector 3.0.0-beta.2 → 3.0.0-beta.3

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 CHANGED
@@ -6,9 +6,9 @@ Qoder Cloud Agent 使用官方 Session API、SSE 事件流和 Client-Side 自定
6
6
  ## 安装
7
7
 
8
8
  ```bash
9
- npm install -g @mearl/cloud-connector
9
+ npm --@mearl:registry=https://registry.npmjs.org install -g @mearl/cloud-connector
10
10
  # 或
11
- pnpm add -g @mearl/cloud-connector
11
+ pnpm --@mearl:registry=https://registry.npmjs.org add -g @mearl/cloud-connector
12
12
  ```
13
13
 
14
14
  ## 两种管理模式
@@ -59,7 +59,7 @@ mearl-cloud-connector <command> [server-url|pid] [options] # 管理后台守护
59
59
  # 后台启动一个自管理连接器,拥有独立日志文件(推荐)
60
60
  mearl-cloud-connector start "wss://cloud.example.com/ws?token=xxx" --name work-mac
61
61
 
62
- # Qoder 配对模式;地址由 npx @mearl/setup --qoder-cloud --yes 生成
62
+ # Qoder 配对模式;地址由 npx --@mearl:registry=https://registry.npmjs.org @mearl/setup --qoder-cloud --yes 生成
63
63
  mearl-cloud-connector start "qoder://pair/pairing-code-1234?created=1786723200000"
64
64
 
65
65
  # 前台运行,仅用于排障或交给 systemd / PM2 等外部进程管理器
@@ -149,7 +149,7 @@ security add-generic-password -U -a "$USER" -s ai.mearl.qoder.pat -w
149
149
  1. **安装并初始化本地 Mearl 环境**
150
150
 
151
151
  ```bash
152
- npx @mearl/setup
152
+ npx --@mearl:registry=https://registry.npmjs.org @mearl/setup
153
153
  ```
154
154
 
155
155
  setup 会同步安装 `@mearl/native-host` 与 `@mearl/client`,并完成 Native Messaging 初始化。
@@ -193,7 +193,7 @@ var QoderApiError = class extends Error {
193
193
  var QoderPairingExpiredError = class extends Error {
194
194
  constructor() {
195
195
  super(
196
- 'Qoder pairing is no longer pending. Generate a new pairing URL with `npx @mearl/setup --qoder-cloud --yes`, run the new connector command, and immediately invoke the mearl tool with action "pair". Do not reuse this URL.'
196
+ 'Qoder pairing is no longer pending. Generate a new pairing URL with `npx --@mearl:registry=https://registry.npmjs.org @mearl/setup --qoder-cloud --yes`, run the new connector command, and immediately invoke the mearl tool with action "pair". Do not reuse this URL.'
197
197
  );
198
198
  this.name = "QoderPairingExpiredError";
199
199
  }
@@ -698,7 +698,7 @@ ${qoderAuthenticationHint()}`);
698
698
  };
699
699
 
700
700
  // src/index.ts
701
- var CLOUD_CONNECTOR_VERSION = true ? "3.0.0-beta.2" : "unknown";
701
+ var CLOUD_CONNECTOR_VERSION = true ? "3.0.0-beta.3" : "unknown";
702
702
  var DEFAULT_RECONNECT_INTERVAL = 5e3;
703
703
  var BACKOFF_BASE_MS = 1e3;
704
704
  var BACKOFF_MAX_MS = 3e4;
package/dist/cli.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  CloudConnector,
4
4
  isConnectorEndpoint,
5
5
  resolveConnectorIdentity
6
- } from "./chunks/chunk-G4RQ55MV.js";
6
+ } from "./chunks/chunk-LZWGWOYX.js";
7
7
 
8
8
  // src/cli.ts
9
9
  import { Command, CommanderError, InvalidArgumentError } from "commander";
@@ -311,7 +311,7 @@ function runForeground(options) {
311
311
  }
312
312
 
313
313
  // src/cli.ts
314
- var CLOUD_CONNECTOR_VERSION = true ? "3.0.0-beta.2" : "unknown";
314
+ var CLOUD_CONNECTOR_VERSION = true ? "3.0.0-beta.3" : "unknown";
315
315
  var SUBCOMMANDS = ["start", "stop", "restart", "status", "list", "logs"];
316
316
  var CONNECTION_OPTION_NAMES = /* @__PURE__ */ new Set([
317
317
  "foreground",
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  parseConnectorEndpoint,
11
11
  parseQoderSse,
12
12
  requireConnectorEndpoint
13
- } from "./chunks/chunk-G4RQ55MV.js";
13
+ } from "./chunks/chunk-LZWGWOYX.js";
14
14
  export {
15
15
  CloudConnector,
16
16
  DEFAULT_QODER_API_BASE_URL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/cloud-connector",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.3",
4
4
  "description": "Cloud connector for Mearl — bridges cloud agents to a local native-host",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,9 +36,9 @@
36
36
  "dependencies": {
37
37
  "commander": "^15.0.0",
38
38
  "ws": "^8.18.0",
39
- "@mearl/client": "3.0.0-beta.2",
40
- "@mearl/cloud-types": "3.0.0-beta.2",
41
- "@mearl/daemon-core": "3.0.0-beta.2"
39
+ "@mearl/client": "3.0.0-beta.3",
40
+ "@mearl/cloud-types": "3.0.0-beta.3",
41
+ "@mearl/daemon-core": "3.0.0-beta.3"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@types/node": "^24.9.1",