@mearl/cloud-server 3.0.0-beta.2 → 3.0.0-beta.4

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
@@ -7,13 +7,13 @@
7
7
  推荐通过 setup 安装完整的云端 Agent 环境(cloud-server、统一 client 与 Agent Skill):
8
8
 
9
9
  ```bash
10
- npx @mearl/setup --cloud
10
+ npx --@mearl:registry=https://registry.npmjs.org @mearl/setup --cloud
11
11
  ```
12
12
 
13
13
  Qoder Cloud Agent 使用同一套包和 server 命令,只在 setup 时选择配对模式:
14
14
 
15
15
  ```bash
16
- npx @mearl/setup --qoder-cloud --yes
16
+ npx --@mearl:registry=https://registry.npmjs.org @mearl/setup --qoder-cloud --yes
17
17
  ```
18
18
 
19
19
  在 Docker 或自定义进程托管等只需要 Server 包的场景,可单独安装 `@mearl/cloud-server`。
@@ -75,7 +75,7 @@ mearl-cloud-server --foreground
75
75
  [CloudServer] Logs: ~/.mearl/cloud-server.log
76
76
 
77
77
  Connect from your local machine:
78
- npx @mearl/cloud-connector start "ws://10.0.1.100:8080/ws?token=xxx"
78
+ npx --@mearl:registry=https://registry.npmjs.org @mearl/cloud-connector start "ws://10.0.1.100:8080/ws?token=xxx"
79
79
  ```
80
80
 
81
81
  部署在反向代理或沙箱中时,由部署宿主或 preset 安装器通过 `MEARL_CLOUD_PUBLIC_URL` 提供外部入口,可使用 `{port}` 占位符。核心不探测组织专属沙箱变量或内部端口映射接口;相关自动发现由独立能力包处理。当前阶段尚未接通这些内部适配,内部产品仍保留原实现。
@@ -233,7 +233,7 @@ WantedBy=multi-user.target
233
233
 
234
234
  ```dockerfile
235
235
  FROM node:20-alpine
236
- RUN npm install -g @mearl/cloud-server
236
+ RUN npm --@mearl:registry=https://registry.npmjs.org install -g @mearl/cloud-server
237
237
  EXPOSE 8080
238
238
  CMD ["mearl-cloud-server", "--foreground", "--token", "your-token"]
239
239
  ```
@@ -28,7 +28,7 @@ function resolveCloudPublicEndpoint(port, env = process.env) {
28
28
  }
29
29
  function formatConnectorCommand(url) {
30
30
  const argument = /[$`"\\\r\n]/.test(url) ? "'" + url.replaceAll("'", "'\\''") + "'" : `"${url}"`;
31
- return `npx @mearl/cloud-connector start ${argument}`;
31
+ return `npx --@mearl:registry=https://registry.npmjs.org @mearl/cloud-connector start ${argument}`;
32
32
  }
33
33
 
34
34
  // src/index.ts
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  LOG_FILE,
6
6
  MODE_FILE,
7
7
  formatConnectorCommand
8
- } from "./chunks/chunk-LXICEBLN.js";
8
+ } from "./chunks/chunk-67UWHFX6.js";
9
9
 
10
10
  // src/cli.ts
11
11
  import { Command, CommanderError, InvalidArgumentError } from "commander";
@@ -140,7 +140,7 @@ function createQoderPairingInfo(options = {}) {
140
140
  };
141
141
  }
142
142
  function formatQoderPairingOutput(info) {
143
- const connectorCommand = `npx @mearl/cloud-connector start "${info.connectorUrl}"`;
143
+ const connectorCommand = `npx --@mearl:registry=https://registry.npmjs.org @mearl/cloud-connector start "${info.connectorUrl}"`;
144
144
  return `[CloudServer] Qoder pairing mode is ready.
145
145
 
146
146
  Connect from your local machine:
@@ -177,7 +177,7 @@ async function runQoderCloudServerCommand(command, dependencies) {
177
177
  }
178
178
 
179
179
  // src/cli.ts
180
- var CLOUD_SERVER_VERSION = true ? "3.0.0-beta.2" : "unknown";
180
+ var CLOUD_SERVER_VERSION = true ? "3.0.0-beta.4" : "unknown";
181
181
  var COMMANDS = ["start", "stop", "restart", "status", "logs"];
182
182
  var START_OPTION_NAMES = /* @__PURE__ */ new Set([
183
183
  "foreground",
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  CloudServer
3
- } from "./chunks/chunk-LXICEBLN.js";
3
+ } from "./chunks/chunk-67UWHFX6.js";
4
4
  export {
5
5
  CloudServer
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/cloud-server",
3
- "version": "3.0.0-beta.2",
3
+ "version": "3.0.0-beta.4",
4
4
  "description": "Cloud WebSocket server for Mearl — bridges cloud agents to local connectors",
5
5
  "type": "module",
6
6
  "engines": {
@@ -35,9 +35,9 @@
35
35
  "dependencies": {
36
36
  "commander": "^15.0.0",
37
37
  "ws": "^8.18.0",
38
- "@mearl/client": "3.0.0-beta.2",
39
- "@mearl/cloud-types": "3.0.0-beta.2",
40
- "@mearl/daemon-core": "3.0.0-beta.2"
38
+ "@mearl/cloud-types": "3.0.0-beta.4",
39
+ "@mearl/daemon-core": "3.0.0-beta.4",
40
+ "@mearl/client": "3.0.0-beta.4"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^24.9.1",