@next-open-ai/openclawx 0.8.28 → 0.8.32

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
@@ -8,48 +8,50 @@
8
8
 
9
9
  ---
10
10
 
11
- ## 📚 文档导航
11
+ ## 📚 文档导航 (Documentation)
12
12
 
13
- 完整使用说明请进入 **[使用文档入口](docs/README.md)**。文档结构如下:
13
+ **文档 (Documentation):** [中文 (Chinese)](docs/zh/README.md) · [English](docs/en/README.md)
14
+
15
+ 完整使用说明请进入上述链接。中文文档结构如下:
14
16
 
15
17
  | 分类 | 文档 | 说明 |
16
18
  |------|------|------|
17
- | **入门** | [快速开始](docs/guides/getting-started.md) | 5 分钟跑通:安装、首次对话、桌面/通道入口 |
18
- | | [安装与部署](docs/guides/installation.md) | npm、Docker、Desktop 安装包及环境要求 |
19
- | **使用指南** | [CLI 使用](docs/guides/cli-usage.md) | 命令行对话、登录、模型与技能、开机自启 |
20
- | | [桌面端使用](docs/guides/desktop-usage.md) | Desktop 安装与启动、智能体/会话/技能/设置 |
21
- | | [Web 与 Gateway](docs/guides/gateway-web.md) | 启动网关、端口与路径、Web 端连接 |
22
- | **配置** | [配置概览](docs/configuration/config-overview.md) | 配置目录、config.json 与 agents.json |
23
- | | [智能体配置](docs/configuration/agents.md) | 本机/Coze/OpenClawX 执行方式与模型 |
24
- | | [通道配置](docs/configuration/channels.md) | 飞书、钉钉、Telegram 启用与配置项 |
25
- | **功能说明** | [代理模式与多节点](docs/features/proxy-mode.md) | Coze 接入、OpenClawX 多节点协作 |
26
- | | [技能系统](docs/features/skills.md) | Agent Skills 规范与扩展 |
27
- | **参考** | [常见问题](docs/reference/faq.md) | 安装失败、端口占用、通道不回复等 FAQ |
28
- | | [发布说明](docs/release-notes.md) | 各版本功能更新与问题修复记录 |
19
+ | **入门** | [快速开始](docs/zh/guides/getting-started.md) | 5 分钟跑通:安装、首次对话、桌面/通道入口 |
20
+ | | [安装与部署](docs/zh/guides/installation.md) | npm、Docker、Desktop 安装包及环境要求 |
21
+ | **使用指南** | [CLI 使用](docs/zh/guides/cli-usage.md) | 命令行对话、登录、模型与技能、开机自启 |
22
+ | | [桌面端使用](docs/zh/guides/desktop-usage.md) | Desktop 安装与启动、智能体/会话/技能/设置;对话内 `//` 指令查询与切换智能体 |
23
+ | | [Web 与 Gateway](docs/zh/guides/gateway-web.md) | 启动网关、端口与路径、Web 端连接 |
24
+ | | [使用场景](docs/zh/guides/usage-scenarios.md) | 整理下载目录、创建/切换智能体、安装技能、MCP、定时任务等 |
25
+ | **配置** | [配置概览](docs/zh/configuration/config-overview.md) | 配置目录、config.json agents.json |
26
+ | | [智能体配置](docs/zh/configuration/agents.md) | 本机/Coze/OpenClawX 执行方式与模型 |
27
+ | | [通道配置](docs/zh/configuration/channels.md) | 飞书、钉钉、Telegram 启用与配置项 |
28
+ | **功能说明** | [代理模式与多节点](docs/zh/features/proxy-mode.md) | Coze 接入、OpenClawX 多节点协作 |
29
+ | | [技能系统](docs/zh/features/skills.md) | Agent Skills 规范与扩展 |
30
+ | **参考** | [常见问题](docs/zh/reference/faq.md) | 安装失败、端口占用、通道不回复等 FAQ |
31
+ | | [发布说明](docs/zh/release-notes.md) | 各版本功能更新与问题修复记录 |
29
32
 
30
33
  <details>
31
- <summary><strong>📂 文档树结构</strong></summary>
34
+ <summary><strong>📂 文档树结构 (Doc structure)</strong></summary>
32
35
 
33
36
  ```
34
37
  docs/
35
- ├── README.md → 文档入口与导航
36
- ├── release-notes.md 发布说明
37
- ├── guides/ → 使用指南
38
- │ ├── getting-started.md 快速开始
39
- │ ├── installation.md 安装与部署
40
- │ ├── cli-usage.md CLI 使用
41
- │ ├── desktop-usage.md 桌面端使用
42
- └── gateway-web.md Web 与 Gateway
43
- ├── configuration/ → 配置说明
44
- │ ├── config-overview.md 配置概览
45
- ├── agents.md 智能体配置
46
- │ └── channels.md 通道配置(飞书/钉钉/Telegram)
47
- ├── features/ → 功能说明
48
- ├── proxy-mode.md 代理模式与多节点协作
49
- │ └── skills.md 技能系统
50
- ├── reference/ → 参考
51
- └── faq.md 常见问题
52
- └── channel-streaming-design.md 通道流式设计(开发参考)
38
+ ├── README.md → 语言切换入口 (Language switcher)
39
+ ├── zh/ 中文文档 (Chinese)
40
+ ├── README.md 文档入口与导航
41
+ │ ├── release-notes.md 发布说明
42
+ │ ├── guides/ 使用指南
43
+ │ ├── configuration/ 配置说明
44
+ │ ├── features/ 功能说明
45
+ ├── reference/ 参考
46
+ │ └── channel-streaming-design.md
47
+ └── en/ → 英文文档 (English)
48
+ ├── README.md Index and navigation
49
+ ├── release-notes.md Release notes
50
+ ├── guides/ Guides
51
+ ├── configuration/ Configuration
52
+ ├── features/ Features
53
+ ├── reference/ Reference
54
+ └── channel-streaming-design.md
53
55
  ```
54
56
 
55
57
  </details>
@@ -59,7 +61,7 @@ docs/
59
61
  - **Windows 安装失败 / 无法运行?**
60
62
  - **Desktop 安装包**:若安装或启动报错(如缺少运行库、闪退),请安装 [Visual C++ Redistributable](https://learn.microsoft.com/zh-cn/cpp/windows/latest-supported-vc-redist)(选 x64);若为杀毒/安全软件拦截,可尝试加入排除项或暂时关闭后重试。
61
63
  - **npm 全局安装**:Windows 上若因 `node-llama-cpp` 等原生依赖安装失败,可使用 `npm install -g @next-open-ai/openclawx --ignore-scripts` 跳过可选原生模块,对 CLI/Gateway/Desktop 常规使用无影响;长记忆需单独配置在线 RAG 或本地环境。
62
- - 更多问题(macOS 安装包「已损坏」、端口占用、通道不回复等)见 **[常见问题](docs/reference/faq.md)**;版本变更见 **[发布说明](docs/release-notes.md)**。
64
+ - 更多问题(macOS 安装包「已损坏」、端口占用、通道不回复等)见 **[常见问题](docs/zh/reference/faq.md)**;版本变更见 **[发布说明](docs/zh/release-notes.md)**。
63
65
 
64
66
  ---
65
67
 
@@ -200,18 +202,49 @@ npm link # 或 npm install -g . 本地全局安装
200
202
 
201
203
  ## 1.2 Docker 部署
202
204
 
203
- 适用于:在服务器或容器环境中运行 **Gateway**,供 Web/其他客户端连接。
205
+ 适用于:在服务器或容器环境中运行 **Gateway**,供 Web/其他客户端连接。编排文件位于仓库 `deploy/` 目录。
206
+
207
+ ### 方式一:使用 CI 构建的镜像(推荐生产)
208
+
209
+ 镜像由 Drone CI(`.drone.yml`)构建并推送到镜像仓库。使用预构建镜像启动服务,暴露端口 **38080**:
210
+
211
+ ```bash
212
+ # 在 deploy 目录下执行
213
+ cd deploy
214
+ docker compose up -d
215
+
216
+ # 或从仓库根目录指定 compose 文件
217
+ docker compose -f deploy/docker-compose.yaml up -d
218
+ ```
219
+
220
+ 默认使用镜像 `ccr.ccs.tencentyun.com/windwithlife/openclawx:latest`。若需指定版本,可修改 `deploy/docker-compose.yaml` 中 `image` 的 tag(如 `0.8.28` 或 CI 生成的 `build-ci-openbot-<BUILD_NUMBER>`)。
204
221
 
205
- > **说明**:Docker 镜像与编排正在规划中,当前推荐使用 npm 全局安装后执行 `openbot gateway` 部署网关。
222
+ ### 方式二:本地构建并运行(开发/无 CI 时)
206
223
 
207
- 规划中的使用方式示例:
224
+ 不依赖镜像仓库,在本地从源码构建镜像并启动:
208
225
 
209
226
  ```bash
210
- # 示例(以实际仓库/镜像名为准)
211
- # docker pull next-open-ai/openclawx
212
- # docker run -p 38080:38080 -e OPENAI_API_KEY=xxx next-open-ai/openclawx gateway
227
+ # 在仓库根目录执行(构建上下文为仓库根)
228
+ docker compose -f deploy/docker-compose-dev.yaml up --build -d
229
+
230
+ # 或在 deploy 目录下
231
+ cd deploy
232
+ docker compose -f docker-compose-dev.yaml up --build -d
213
233
  ```
214
234
 
235
+ 构建完成后服务同样监听 **38080** 端口,镜像名为 `openclawx:dev`,容器名为 `openclawx-dev`。
236
+
237
+ ### 配置与数据持久化
238
+
239
+ - Gateway 默认从容器内 `~/.openbot/desktop/` 读取配置(智能体、模型、通道等)。若需持久化或预置配置,可在 compose 中挂载宿主机目录,例如在 `deploy/docker-compose.yaml` 或 `deploy/docker-compose-dev.yaml` 的 `openclawx` 服务下增加:
240
+
241
+ ```yaml
242
+ volumes:
243
+ - ./openbot-desktop:/root/.openbot/desktop
244
+ ```
245
+
246
+ - API Key 等敏感信息也可通过环境变量传入(若 CLI/桌面端支持从环境变量读取),在 compose 的 `environment` 中配置即可。
247
+
215
248
  ---
216
249
 
217
250
  ## 1.3 Desktop 安装包