ai-project-manage-cli 8.1.20 → 8.1.22

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
@@ -13,7 +13,14 @@ apm update
13
13
  ## 登录
14
14
 
15
15
  ```bash
16
- apm login --api-key=cm_xxx --server=http://127.0.0.1:3000
16
+ # 历史兼容:只传一个带端口的 --server → Socket 用该地址,API 去掉端口
17
+ apm login --api-key=cm_xxx --server=https://api.example.com:3334
18
+ # → API https://api.example.com ,Socket wss://api.example.com:3334
19
+
20
+ # 现在:分别传 API 与 Socket(也可用 APM_SERVER / APM_SOCKET_SERVER)
21
+ apm login --api-key=cm_xxx \
22
+ --server=https://api.example.com \
23
+ --socket-server=wss://ws.example.com
17
24
  ```
18
25
 
19
26
  ## 初始化工作区
@@ -27,8 +34,6 @@ apm init
27
34
  ## 常用命令
28
35
 
29
36
  ```bash
30
- apm sync-project-documents
31
- apm sync-project-documents --push
32
37
  apm update-skills
33
38
  ```
34
39
 
@@ -36,11 +41,18 @@ apm update-skills
36
41
 
37
42
  ```bash
38
43
  apm connect
39
- apm connect --server https://your-server.com
44
+ # 历史兼容
45
+ apm connect --server https://api.example.com:3334
46
+ # 分别指定
47
+ apm connect --server https://api.example.com --socket-server wss://ws.example.com
40
48
  ```
41
49
 
50
+ 地址解析:
51
+
52
+ - **历史**:只传 `--server https://host:port` → Socket 用该地址,API 为去掉端口后的 `https://host`
53
+ - **现在**:`--server` + `--socket-server`,或环境变量 `APM_SERVER` + `APM_SOCKET_SERVER`
54
+ - 登录成功后写入 `~/.config/apm/config.json` 的 `baseUrl` / `socketServer`
55
+
42
56
  启动前会检测 npm registry 上当前大版本的最新包;若落后则先 `npm install -g` 更新,再以新版本重新连接。跨大版本请手动执行 `apm update --major`。
43
57
 
44
58
  同一时刻仅允许一个 connect。
45
-
46
- `apm connect` 处理完 WebIDE 消息后,会将 `.apm/project/<项目ID>/` 下的项目文档变更推回平台。