@mearl/cloud-server 2.5.1 → 2.6.0

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
@@ -69,7 +69,7 @@ mearl-cloud-server --foreground
69
69
 
70
70
  运行时文件位于 `~/.mearl/`:
71
71
 
72
- - `cloud-server.json` - 连接配置(含 server URL、pid、端口等),cloud-client 自动读取
72
+ - `cloud-server.json` - 连接配置(含 server URL、pid、端口等),统一 `@mearl/client` 自动读取
73
73
  - `cloud-server.log` - 后台进程日志(`logs` 子命令读取,或 `tail -f` 跟踪);超过 5MB 会在下次启动时滚动为 `cloud-server.log.1`
74
74
 
75
75
  > 守护进程的启停、状态、日志滚动等生命周期逻辑由共享包 [`@mearl/daemon-core`](../../daemon-core) 提供(与 cloud-connector 复用同一套实现)。
@@ -114,7 +114,7 @@ await server.stop();
114
114
  ```
115
115
  云端 Agent
116
116
  ↓
117
- @mearl/cloud-client
117
+ @mearl/client
118
118
  ↓ (WebSocket)
119
119
  @mearl/cloud-server (本进程)
120
120
  ↓ (WebSocket)
package/dist/cli.js CHANGED
@@ -340,7 +340,7 @@ var CloudServer = class {
340
340
  JSON.stringify({
341
341
  id,
342
342
  success: false,
343
- error: this.options.allowRemoteAgent && !conn.fromLocal ? "Remote agents must identify themselves with an agent_hello message before issuing commands." : "Agent requests are only accepted on the local interface (127.0.0.1). Run cloud-client on the same machine as cloud-server, or start the server with --allow-remote-agent to override."
343
+ error: this.options.allowRemoteAgent && !conn.fromLocal ? "Remote agents must identify themselves with an agent_hello message before issuing commands." : "Agent requests are only accepted on the local interface (127.0.0.1). Run @mearl/client on the same machine as cloud-server, or start the server with --allow-remote-agent to override."
344
344
  }) + "\n"
345
345
  );
346
346
  return;
@@ -620,7 +620,7 @@ async function runForeground(options) {
620
620
  }
621
621
 
622
622
  // src/cli.ts
623
- var CLOUD_SERVER_VERSION = true ? "2.5.1" : "unknown";
623
+ var CLOUD_SERVER_VERSION = true ? "2.6.0" : "unknown";
624
624
  var argv = process.argv.slice(2);
625
625
  if (argv.includes("--version") || argv.includes("-v")) {
626
626
  console.log(CLOUD_SERVER_VERSION);
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export interface CloudServerOptions {
2
2
  port?: number;
3
- /** Loopback-only port for the co-located agent (cloud-client). Defaults to port + 1. */
3
+ /** Loopback-only port for the co-located unified client. Defaults to port + 1. */
4
4
  agentPort?: number;
5
5
  path?: string;
6
6
  token?: string;
@@ -17,7 +17,7 @@ export interface ServerInfo {
17
17
  port: number;
18
18
  path: string;
19
19
  token: string;
20
- /** URL for a cloud-client running on the same machine (localhost). */
20
+ /** URL for @mearl/client running on the same machine (localhost). */
21
21
  localUrl: string;
22
22
  /** URL for the local connector to dial back into this server. */
23
23
  publicUrl: string;
package/dist/index.js CHANGED
@@ -334,7 +334,7 @@ var CloudServer = class {
334
334
  JSON.stringify({
335
335
  id,
336
336
  success: false,
337
- error: this.options.allowRemoteAgent && !conn.fromLocal ? "Remote agents must identify themselves with an agent_hello message before issuing commands." : "Agent requests are only accepted on the local interface (127.0.0.1). Run cloud-client on the same machine as cloud-server, or start the server with --allow-remote-agent to override."
337
+ error: this.options.allowRemoteAgent && !conn.fromLocal ? "Remote agents must identify themselves with an agent_hello message before issuing commands." : "Agent requests are only accepted on the local interface (127.0.0.1). Run @mearl/client on the same machine as cloud-server, or start the server with --allow-remote-agent to override."
338
338
  }) + "\n"
339
339
  );
340
340
  return;
package/dist/paths.d.ts CHANGED
@@ -5,9 +5,8 @@
5
5
  */
6
6
  export declare const CONFIG_DIR: string;
7
7
  /**
8
- * Connection config written by the running server and read by cloud-client.
9
- * Keeps the `server` field for backward compatibility; daemon lifecycle
10
- * commands additionally read `pid` / `port` / `startedAt` from here.
8
+ * Connection config written by the running server and read by @mearl/client.
9
+ * Daemon lifecycle commands additionally read `pid` / `port` / `startedAt`.
11
10
  */
12
11
  export declare const CONFIG_FILE: string;
13
12
  /** Daemon stdout/stderr log file. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mearl/cloud-server",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
4
4
  "description": "Cloud WebSocket server for Mearl — bridges cloud agents to local connectors",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -29,9 +29,9 @@
29
29
  "dependencies": {
30
30
  "node-fetch": "^3.3.2",
31
31
  "ws": "^8.18.0",
32
- "@mearl/client": "2.5.1",
33
- "@mearl/daemon-core": "2.5.1",
34
- "@mearl/cloud-types": "2.5.1"
32
+ "@mearl/client": "2.6.0",
33
+ "@mearl/daemon-core": "2.6.0",
34
+ "@mearl/cloud-types": "2.6.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^24.9.1",