chore: rebuild dist/openclaw from source

This commit is contained in:
github-actions[bot] 2026-03-30 07:20:55 +00:00
parent f1e9c084d9
commit 4ba26b2f0f
3 changed files with 14 additions and 0 deletions

View file

@ -44,6 +44,7 @@ description: |
- 读取 `writing-config.yaml`(如存在),检查是否有 AI 特征参数emotional_arc: flat、paragraph_rhythm: structured、closing_style: summary
- 读取 `history.yaml` 最近 5 篇,检查 persona 使用和 web_search 降级情况
4. 综合输出自然语言报告 + 按优先级排序的改进建议
- 用户说"更新"/"更新 WeWrite"/"升级" → 在 `{baseDir}` 执行 `git pull origin main`,完成后告知版本变化
---
@ -64,6 +65,17 @@ python3 -c "import markdown, bs4, cssutils, requests, yaml, pygments, PIL" 2>&1
| `wechat.appid` + `secret` | 静默 | 设 `skip_publish = true` |
| `image.api_key` | 静默 | 设 `skip_image_gen = true` |
**1a-2. 版本检查**(静默通过或提醒):
```bash
cd {baseDir} && git fetch origin main --quiet 2>/dev/null
```
比对本地 `{baseDir}/VERSION` 与远程 `git show origin/main:VERSION`
- 相同 → 静默通过
- 不同 → 提示用户:"WeWrite 有新版本可用(当前 X → 最新 Y说「更新」即可升级。"**不阻断流程**,继续 Step 1b
- git 不可用(无 .git 目录或 fetch 失败)→ 静默跳过
**1b. 加载风格**
```

1
dist/openclaw/VERSION vendored Normal file
View file

@ -0,0 +1 @@
1.2.0

View file

@ -23,6 +23,7 @@ COPY_FILES = [
"config.example.yaml",
"style.example.yaml",
"writing-config.example.yaml",
"VERSION",
]
# Frontmatter keys to strip (OpenClaw ignores allowed-tools)