@qingchencloud/openclaw-zh 2026.2.12-zh.2 → 2026.2.12-zh.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
@@ -22,7 +22,21 @@
22
22
 
23
23
  ---
24
24
 
25
- ## 3 步上手
25
+ ## 🏷️ 合作伙伴
26
+
27
+ **胜算云** - 国内 AI API 聚合平台,新用户注册送额度,充值尊享 7 折优惠!
28
+
29
+ | 阶梯 | 春节消耗 | 奖励 |
30
+ |------|---------|------|
31
+ | 尝鲜礼 | ≥50元 | 5元 模力券 |
32
+ | 极客礼 | ≥100元 | 10元 模力券 + Kimi K2.5 七折卡(7天) |
33
+ | 大神礼 | ≥500元 | 50元 模力券 + Kimi K2.5 七折卡(7天) |
34
+
35
+ [查看活动 →](https://www.shengsuanyun.com/activity/4184b48a6be4443cbe13e86e091e43b4?from=CH_4BVI0BM2) · [注册账号 →](https://www.shengsuanyun.com/?from=CH_4BVI0BM2)
36
+
37
+ ---
38
+
39
+ ## 4 步上手
26
40
 
27
41
  > **前提条件**:需要 **Node.js >= 22**([下载 Node.js](https://nodejs.org/))
28
42
  >
@@ -34,15 +48,21 @@
34
48
  npm install -g @qingchencloud/openclaw-zh@latest
35
49
  ```
36
50
 
37
- ### 第 2 步:初始化
51
+ ### 第 2 步:初始化(推荐守护进程模式)
38
52
 
39
53
  ```bash
40
- openclaw onboard
54
+ openclaw onboard --install-daemon
41
55
  ```
42
56
 
43
57
  初始化向导会引导你完成:选择 AI 模型 → 配置 API 密钥 → 设置聊天通道
44
58
 
45
- ### 第 3 步:打开控制台
59
+ ### 第 3 步:启动网关
60
+
61
+ ```bash
62
+ openclaw gateway
63
+ ```
64
+
65
+ ### 第 4 步:打开控制台
46
66
 
47
67
  ```bash
48
68
  openclaw dashboard
@@ -156,16 +176,28 @@ irm https://cdn.jsdelivr.net/gh/1186258278/OpenClawChineseTranslation@main/docke
156
176
  IMAGE=1186258278/openclaw-zh:latest
157
177
  # 海外用户使用: IMAGE=ghcr.io/1186258278/openclaw-zh:latest
158
178
 
159
- # 1. 初始化
160
- docker run --rm -v openclaw-data:/root/.openclaw $IMAGE openclaw setup
179
+ # 1. 初始化(首次运行)
180
+ # Docker 需要交互式运行来配置 AI 模型和 API 密钥
181
+ docker run --rm -it -v openclaw-data:/root/.openclaw $IMAGE openclaw onboard
182
+
183
+ # 按向导完成:选择模型 → 配置 API 密钥 → 设置聊天通道
184
+
185
+ # 2. 配置网关模式
161
186
  docker run --rm -v openclaw-data:/root/.openclaw $IMAGE openclaw config set gateway.mode local
162
187
 
163
- # 2. 启动
188
+ # 3. 启动(守护进程模式,容器会一直运行)
164
189
  docker run -d --name openclaw -p 18789:18789 \
165
190
  -v openclaw-data:/root/.openclaw --restart unless-stopped \
166
191
  $IMAGE openclaw gateway run
167
192
  ```
168
193
 
194
+ **参数说明:**
195
+ - `-d`: 后台运行(守护进程模式)
196
+ - `--name openclaw`: 给容器取名,方便管理
197
+ - `-p 18789:18789`: 端口映射
198
+ - `--restart unless-stopped`: 除非手动停止,否则一直运行
199
+ - `openclaw gateway run`: 启动网关(容器启动命令)
200
+
169
201
  访问:`http://localhost:18789`
170
202
 
171
203
  > 完整指南(远程部署、Nginx 反代、Docker Compose、内网访问等)请查看 **[Docker 部署指南](docs/DOCKER_GUIDE.md)**
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "version": "2026.2.13",
3
3
  "commit": "417509c5396f52a7e8e375c7b3eaa7050f7b3d9f",
4
- "builtAt": "2026-02-13T05:51:26.232Z"
4
+ "builtAt": "2026-02-13T06:43:26.008Z"
5
5
  }
@@ -5,7 +5,7 @@ import path from "node:path";
5
5
  import fs, { createWriteStream, existsSync, readFileSync, statSync } from "node:fs";
6
6
  import os, { homedir } from "node:os";
7
7
  import { Logger } from "tslog";
8
- import JSON5 from "json5";
8
+ import json5 from "json5";
9
9
  import chalk, { Chalk } from "chalk";
10
10
  import fs$1 from "node:fs/promises";
11
11
  import { execFile, execFileSync, spawn } from "node:child_process";
@@ -2446,7 +2446,7 @@ function readLoggingConfig() {
2446
2446
  try {
2447
2447
  if (!fs.existsSync(configPath)) return;
2448
2448
  const raw = fs.readFileSync(configPath, "utf-8");
2449
- const logging = JSON5.parse(raw)?.logging;
2449
+ const logging = json5.parse(raw)?.logging;
2450
2450
  if (!logging || typeof logging !== "object" || Array.isArray(logging)) return;
2451
2451
  return logging;
2452
2452
  } catch {
@@ -8915,7 +8915,7 @@ var IncludeProcessor = class IncludeProcessor {
8915
8915
  };
8916
8916
  const defaultResolver = {
8917
8917
  readFile: (p) => fs.readFileSync(p, "utf-8"),
8918
- parseJson: (raw) => JSON5.parse(raw)
8918
+ parseJson: (raw) => json5.parse(raw)
8919
8919
  };
8920
8920
  /**
8921
8921
  * Resolves all $include directives in a parsed config object.
@@ -11716,7 +11716,7 @@ function resolveConfigPathForDeps(deps) {
11716
11716
  function normalizeDeps(overrides = {}) {
11717
11717
  return {
11718
11718
  fs: overrides.fs ?? fs,
11719
- json5: overrides.json5 ?? JSON5,
11719
+ json5: overrides.json5 ?? json5,
11720
11720
  env: overrides.env ?? process.env,
11721
11721
  homedir: overrides.homedir ?? (() => resolveRequiredHomeDir(overrides.env ?? process.env, os.homedir)),
11722
11722
  configPath: overrides.configPath ?? "",
@@ -11727,11 +11727,11 @@ function maybeLoadDotEnvForConfig(env) {
11727
11727
  if (env !== process.env) return;
11728
11728
  loadDotEnv({ quiet: true });
11729
11729
  }
11730
- function parseConfigJson5(raw, json5 = JSON5) {
11730
+ function parseConfigJson5(raw, json5$1 = json5) {
11731
11731
  try {
11732
11732
  return {
11733
11733
  ok: true,
11734
- parsed: json5.parse(raw)
11734
+ parsed: json5$1.parse(raw)
11735
11735
  };
11736
11736
  } catch (err) {
11737
11737
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qingchencloud/openclaw-zh",
3
- "version": "2026.2.12-zh.2",
3
+ "version": "2026.2.12-zh.3",
4
4
  "description": "OpenClaw 汉化发行版(稳定版)- 武汉晴辰天下网络科技有限公司",
5
5
  "keywords": [],
6
6
  "license": "MIT",