From 4ba26b2f0f1131664984994df403bda9a3c150c6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Mon, 30 Mar 2026 07:20:55 +0000 Subject: [PATCH] chore: rebuild dist/openclaw from source --- dist/openclaw/SKILL.md | 12 ++++++++++++ dist/openclaw/VERSION | 1 + dist/openclaw/scripts/build_openclaw.py | 1 + 3 files changed, 14 insertions(+) create mode 100644 dist/openclaw/VERSION diff --git a/dist/openclaw/SKILL.md b/dist/openclaw/SKILL.md index 31e6475..ad521d4 100644 --- a/dist/openclaw/SKILL.md +++ b/dist/openclaw/SKILL.md @@ -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. 加载风格**: ``` diff --git a/dist/openclaw/VERSION b/dist/openclaw/VERSION new file mode 100644 index 0000000..26aaba0 --- /dev/null +++ b/dist/openclaw/VERSION @@ -0,0 +1 @@ +1.2.0 diff --git a/dist/openclaw/scripts/build_openclaw.py b/dist/openclaw/scripts/build_openclaw.py index 321a9d9..3a3e019 100644 --- a/dist/openclaw/scripts/build_openclaw.py +++ b/dist/openclaw/scripts/build_openclaw.py @@ -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)