chore: fix formatting and CI

main
Shakker 2026-02-02 16:41:49 +00:00
parent 777756e1c2
commit 3711143549
10 changed files with 56 additions and 64 deletions

View File

@ -45,7 +45,7 @@ Docs: https://docs.openclaw.ai
- Streaming: stabilize partial streaming filters. - Streaming: stabilize partial streaming filters.
- Auto-reply: avoid referencing workspace files in /new greeting prompt. (#5706) Thanks @bravostation. - Auto-reply: avoid referencing workspace files in /new greeting prompt. (#5706) Thanks @bravostation.
- Tools: align tool execute adapters/signatures (legacy + parameter order + arg normalization). - Tools: align tool execute adapters/signatures (legacy + parameter order + arg normalization).
- Tools: treat "*" tool allowlist entries as valid to avoid spurious unknown-entry warnings. - Tools: treat "\*" tool allowlist entries as valid to avoid spurious unknown-entry warnings.
- Skills: update session-logs paths from .clawdbot to .openclaw. (#4502) - Skills: update session-logs paths from .clawdbot to .openclaw. (#4502)
- Slack: harden media fetch limits and Slack file URL validation. (#6639) Thanks @davidiach. - Slack: harden media fetch limits and Slack file URL validation. (#6639) Thanks @davidiach.
- Lint: satisfy curly rule after import sorting. (#6310) - Lint: satisfy curly rule after import sorting. (#6310)

View File

@ -865,11 +865,7 @@
}, },
{ {
"group": "Help", "group": "Help",
"pages": [ "pages": ["help/index", "help/troubleshooting", "help/faq"]
"help/index",
"help/troubleshooting",
"help/faq"
]
}, },
{ {
"group": "Install & Updates", "group": "Install & Updates",
@ -1002,13 +998,7 @@
}, },
{ {
"group": "Web & Interfaces", "group": "Web & Interfaces",
"pages": [ "pages": ["web/index", "web/control-ui", "web/dashboard", "web/webchat", "tui"]
"web/index",
"web/control-ui",
"web/dashboard",
"web/webchat",
"tui"
]
}, },
{ {
"group": "Channels", "group": "Channels",
@ -1186,11 +1176,7 @@
}, },
{ {
"group": "Help", "group": "Help",
"pages": [ "pages": ["zh-CN/help/index", "zh-CN/help/troubleshooting", "zh-CN/help/faq"]
"zh-CN/help/index",
"zh-CN/help/troubleshooting",
"zh-CN/help/faq"
]
}, },
{ {
"group": "Install & Updates", "group": "Install & Updates",

View File

@ -25,7 +25,7 @@ x-i18n:
快速分诊命令(按顺序执行): 快速分诊命令(按顺序执行):
| 命令 | 告诉你什么 | 何时使用 | | 命令 | 告诉你什么 | 何时使用 |
| ---------------------------------- | --------------------------------------------------------------------------------- | -------------------------------- | | ---------------------------------- | ------------------------------------------------------------------------------------ | -------------------------------- |
| `openclaw status` | 本地摘要:操作系统 + 更新、Gateway网关可达性/模式、服务、智能体/会话、提供商配置状态 | 首次检查,快速概览 | | `openclaw status` | 本地摘要:操作系统 + 更新、Gateway网关可达性/模式、服务、智能体/会话、提供商配置状态 | 首次检查,快速概览 |
| `openclaw status --all` | 完整本地诊断(只读、可粘贴、基本安全)包含日志尾部 | 需要分享调试报告时 | | `openclaw status --all` | 完整本地诊断(只读、可粘贴、基本安全)包含日志尾部 | 需要分享调试报告时 |
| `openclaw status --deep` | 运行 Gateway网关健康检查包括提供商探测需要 Gateway网关可达 | 当"已配置"不等于"正常工作"时 | | `openclaw status --deep` | 运行 Gateway网关健康检查包括提供商探测需要 Gateway网关可达 | 当"已配置"不等于"正常工作"时 |
@ -686,7 +686,7 @@ openclaw channels login --verbose
## 日志位置 ## 日志位置
| 日志 | 位置 | | 日志 | 位置 |
| -------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ----------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Gateway网关文件日志结构化 | `/tmp/openclaw/openclaw-YYYY-MM-DD.log`(或 `logging.file` | | Gateway网关文件日志结构化 | `/tmp/openclaw/openclaw-YYYY-MM-DD.log`(或 `logging.file` |
| Gateway网关服务日志管理器 | macOS`$OPENCLAW_STATE_DIR/logs/gateway.log` + `gateway.err.log`(默认:`~/.openclaw/logs/...`profile 使用 `~/.openclaw-<profile>/logs/...`<br />Linux`journalctl --user -u openclaw-gateway[-<profile>].service -n 200 --no-pager`<br />Windows`schtasks /Query /TN "OpenClaw Gateway网关 (<profile>)" /V /FO LIST` | | Gateway网关服务日志管理器 | macOS`$OPENCLAW_STATE_DIR/logs/gateway.log` + `gateway.err.log`(默认:`~/.openclaw/logs/...`profile 使用 `~/.openclaw-<profile>/logs/...`<br />Linux`journalctl --user -u openclaw-gateway[-<profile>].service -n 200 --no-pager`<br />Windows`schtasks /Query /TN "OpenClaw Gateway网关 (<profile>)" /V /FO LIST` |
| 会话文件 | `$OPENCLAW_STATE_DIR/agents/<agentId>/sessions/` | | 会话文件 | `$OPENCLAW_STATE_DIR/agents/<agentId>/sessions/` |

View File

@ -415,7 +415,7 @@ OpenClaw 在 Docker 中运行,但 Docker 并非数据来源。
所有长期状态必须在重启、重建和重启动后仍然存在。 所有长期状态必须在重启、重建和重启动后仍然存在。
| 组件 | 位置 | 持久化机制 | 备注 | | 组件 | 位置 | 持久化机制 | 备注 |
| -------------- | --------------------------------- | --------------- | --------------------------- | | --------------- | --------------------------------- | --------------- | --------------------------- |
| Gateway网关配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | 包含 `openclaw.json`、令牌 | | Gateway网关配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | 包含 `openclaw.json`、令牌 |
| 模型认证配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | OAuth 令牌、API 密钥 | | 模型认证配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | OAuth 令牌、API 密钥 |
| Skills配置 | `/home/node/.openclaw/skills/` | 宿主机卷挂载 | Skills 级别状态 | | Skills配置 | `/home/node/.openclaw/skills/` | 宿主机卷挂载 | Skills 级别状态 |

View File

@ -324,7 +324,7 @@ OpenClaw 在 Docker 中运行,但 Docker 不是数据源。
所有长期状态必须能在重启、重建和重启后保留。 所有长期状态必须能在重启、重建和重启后保留。
| 组件 | 位置 | 持久化机制 | 备注 | | 组件 | 位置 | 持久化机制 | 备注 |
| -------------- | --------------------------------- | --------------- | --------------------------- | | --------------- | --------------------------------- | --------------- | --------------------------- |
| Gateway网关配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | 包含 `openclaw.json`、令牌 | | Gateway网关配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | 包含 `openclaw.json`、令牌 |
| 模型认证配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | OAuth 令牌、API 密钥 | | 模型认证配置 | `/home/node/.openclaw/` | 宿主机卷挂载 | OAuth 令牌、API 密钥 |
| Skills配置 | `/home/node/.openclaw/skills/` | 宿主机卷挂载 | Skills 级别状态 | | Skills配置 | `/home/node/.openclaw/skills/` | 宿主机卷挂载 | Skills 级别状态 |

View File

@ -176,6 +176,7 @@ pnpm ui:dev # 首次运行时自动安装 UI 依赖
然后将 UI 指向你的 Gateway网关 WS URL例如 `ws://127.0.0.1:18789`)。 然后将 UI 指向你的 Gateway网关 WS URL例如 `ws://127.0.0.1:18789`)。
## 调试/测试:开发服务器 + 远程 Gateway网关控制界面是静态文件WebSocket 目标可配置,可以 ## 调试/测试:开发服务器 + 远程 Gateway网关控制界面是静态文件WebSocket 目标可配置,可以
与 HTTP 源不同。当你想在本地使用 Vite 开发服务器但 Gateway网关运行在其他地方时这很方便。 与 HTTP 源不同。当你想在本地使用 Vite 开发服务器但 Gateway网关运行在其他地方时这很方便。
1. 启动 UI 开发服务器:`pnpm ui:dev` 1. 启动 UI 开发服务器:`pnpm ui:dev`

View File

@ -6,12 +6,14 @@ import { handleChatScroll, scheduleChatScroll, resetChatScroll } from "./app-scr
/* ------------------------------------------------------------------ */ /* ------------------------------------------------------------------ */
/** Minimal ScrollHost stub for unit tests. */ /** Minimal ScrollHost stub for unit tests. */
function createScrollHost(overrides: { function createScrollHost(
overrides: {
scrollHeight?: number; scrollHeight?: number;
scrollTop?: number; scrollTop?: number;
clientHeight?: number; clientHeight?: number;
overflowY?: string; overflowY?: string;
} = {}) { } = {},
) {
const { const {
scrollHeight = 2000, scrollHeight = 2000,
scrollTop = 1500, scrollTop = 1500,

View File

@ -323,7 +323,10 @@ export class OpenClawApp extends LitElement {
scrollToBottom() { scrollToBottom() {
resetChatScrollInternal(this as unknown as Parameters<typeof resetChatScrollInternal>[0]); resetChatScrollInternal(this as unknown as Parameters<typeof resetChatScrollInternal>[0]);
scheduleChatScrollInternal(this as unknown as Parameters<typeof scheduleChatScrollInternal>[0], true); scheduleChatScrollInternal(
this as unknown as Parameters<typeof scheduleChatScrollInternal>[0],
true,
);
} }
async loadAssistantIdentity() { async loadAssistantIdentity() {