mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 21:49:34 +00:00
Docs: normalize zh-CN terminology + tone
What: switch to 你/你的 tone; standardize Skills/Gateway网关/local loopback/私信 wording Why: align zh-CN docs with issue 6995 feedback + idiomatic tech style Tests: pnpm docs:build
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
read_when:
|
||||
- 需要检查原始模型输出中的推理泄漏
|
||||
- 希望在迭代开发时以监视模式运行 Gateway
|
||||
- 希望在迭代开发时以监视模式运行 Gateway网关
|
||||
- 需要可重复的调试工作流
|
||||
summary: 调试工具:监视模式、原始模型流和推理泄漏追踪
|
||||
title: 调试
|
||||
@@ -35,9 +35,9 @@ x-i18n:
|
||||
|
||||
`/debug reset` 会清除所有覆盖项,恢复为磁盘上的配置。
|
||||
|
||||
## Gateway 监视模式
|
||||
## Gateway网关监视模式
|
||||
|
||||
要快速迭代,可在文件监视器下运行 Gateway:
|
||||
要快速迭代,可在文件监视器下运行 Gateway网关:
|
||||
|
||||
```bash
|
||||
pnpm gateway:watch --force
|
||||
@@ -49,14 +49,14 @@ pnpm gateway:watch --force
|
||||
tsx watch src/entry.ts gateway --force
|
||||
```
|
||||
|
||||
在 `gateway:watch` 后添加任何 Gateway CLI 标志,它们会在每次重启时被透传。
|
||||
在 `gateway:watch` 后添加任何 Gateway网关 CLI 标志,它们会在每次重启时被透传。
|
||||
|
||||
## 开发配置文件 + 开发 Gateway(--dev)
|
||||
## 开发配置文件 + 开发 Gateway网关(--dev)
|
||||
|
||||
使用开发配置文件来隔离状态,搭建一个安全的、可随时丢弃的调试环境。有**两个** `--dev` 标志:
|
||||
|
||||
- **全局 `--dev`(配置文件):** 将状态隔离到 `~/.openclaw-dev`,并将 Gateway 默认端口设为 `19001`(派生端口随之偏移)。
|
||||
- **`gateway --dev`:告诉 Gateway 在缺少配置和工作区时自动创建默认配置 + 工作区**(并跳过 BOOTSTRAP.md)。
|
||||
- **全局 `--dev`(配置文件):** 将状态隔离到 `~/.openclaw-dev`,并将 Gateway网关默认端口设为 `19001`(派生端口随之偏移)。
|
||||
- **`gateway --dev`:告诉 Gateway网关在缺少配置和工作区时自动创建默认配置 + 工作区**(并跳过 BOOTSTRAP.md)。
|
||||
|
||||
推荐流程(开发配置文件 + 开发引导):
|
||||
|
||||
@@ -76,7 +76,7 @@ OPENCLAW_PROFILE=dev openclaw tui
|
||||
- `OPENCLAW_GATEWAY_PORT=19001`(浏览器/画布端口随之偏移)
|
||||
|
||||
2. **开发引导**(`gateway --dev`)
|
||||
- 如缺少配置则写入最小配置(`gateway.mode=local`,绑定回环地址)。
|
||||
- 如缺少配置则写入最小配置(`gateway.mode=local`,绑定 local loopback)。
|
||||
- 将 `agent.workspace` 设为开发工作区。
|
||||
- 设置 `agent.skipBootstrap=true`(不使用 BOOTSTRAP.md)。
|
||||
- 如缺少工作区文件则进行初始化:
|
||||
@@ -99,7 +99,7 @@ OPENCLAW_PROFILE=dev openclaw gateway --dev --reset
|
||||
|
||||
`--reset` 会清除配置、凭据、会话和开发工作区(使用 `trash` 而非 `rm`),然后重新创建默认的开发环境。
|
||||
|
||||
提示:如果非开发 Gateway 已在运行(launchd/systemd),请先停止它:
|
||||
提示:如果非开发 Gateway网关已在运行(launchd/systemd),请先停止它:
|
||||
|
||||
```bash
|
||||
openclaw gateway stop
|
||||
|
||||
Reference in New Issue
Block a user