5.6.3 bugfix - #470
Merged
Merged
Conversation
镜像等价于"裸机跑完 install.sh 后的状态"——用户拉镜像后只需 AWK_API_KEY=<key> docker compose up -d 即启动。 - docker/Dockerfile: 两阶段(build + runtime),内置 Xvfb/fluxbox/x11vnc/ websockify/noVNC 显示栈,camoufox 有头模式跑 Xvfb,用户经 noVNC web 客户端(localhost:6080)操作容器内浏览器过小红书/抖音验证 - docker/docker-bootstrap.sh: 修复所有死引用(原 scripts/docker-bootstrap.sh 与 install-weixin-channel.sh 均不存在),正确引用 patches/camoufox-cli/ build.sh + apply-addons.sh + weixin 插件在线 plugins install - docker/docker-entrypoint.sh: 首启从 runtime-seed 初始化空卷、Xvfb+ fluxbox+x11vnc+websockify 启动、AWK_API_KEY 渲染进 openclaw.json、 微信扫码绑定(嵌套层迁移到挂载卷根) - docker/docker-compose.yml: 挂 /var/run/docker.sock 只读(wx-mp-hunter posts-list 用 docker exec 进微信容器读消息库)、WX_BIZ_* 环境变量、 同 xiaobei-net 网络与 mimicwx 微信容器配合、两个 named volume 外挂数据 - .atomgit/pipelines/build-docker.yml: AtomGit 流水线,手动触发 / push v* tag 自动触发 → docker buildx → 推阿里云 ACR(版本号 + latest 两个 tag) - docker/README.md + docs/docker-distribution.md: 去掉 'under developing', 写开箱即用文档 Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
published-track symlink ROOT 通用化: - 新增 _shared/runtime_root.py: resolve_runtime_root() 按 marker(DB) 是否存在 判定,从路径解析 crews/<crew> -> ~/.openclaw/workspace-<crew>,任意 crew 适用 - query-retro-pending.py / detect-bump-signals.py / validate-rubric.py 统一改用 该 helper,修复 .resolve() 跟随 symlink 跳进源仓致 ROOT 指向 wiseflow/crews/main 而非运行时工作区、DB 全部 exists()=False 的 bug(连续三天复盘 total=0 根因) wx-channel-engagement 视频号取数: - fetch_post_list 加 wujie 微前端预热:先开后台首页等 3s 再跳作品管理页, 与 check_login/debug 路径一致,修 wujie-app 未初始化致取数失败 wx-mp-publisher 发布前校验拦截: - validate_for_publish(): 本地图片引用必须纯文件名(不得带目录前缀/绝对路径)、 frontmatter author <= 24 字节,违规 die() 拦截,避免 relay ENOENT / 微信 45110 - rewrite_image_refs 补 relative_to(md_dir) 形式,修 images/<hash>.<ext> 漏重写 docs: - wx-mp-hunter SKILL.md: 新增「发布前 Markdown 规范」(图片纯文件名 + author 限长) - wx-mp-publisher SKILL.md: frontmatter author 限长注释 + Error Handling 两行 - CLAUDE.md: SKILL.md 内容书写规范(指导性指令/正例反例,非开发日志) chore: version v5.6.2 -> v5.6.3, HEARTBEAT 取数端 Cookie 失效提示措辞调整
_ensure_login: 旧判断 "/platform/" in url 在 open 后立刻命中初始 URL(本身就含 /platform/),过期 session 被误判就位 → 下游空列表匹配失败。改为白名单具体后台路径 (/platform/home 等),只在 redirect 成功后才命中。login-confirm 不受影响(起始页含 login 被滤掉),无需同改。 twitter-post SKILL.md: "Something went wrong" 错误处理改为优先精简正文(大概率 字数超限),而非原样重发。
accounts.json 从 skill 目录(~/.openclaw/workspace-main/skills/wx-mp-publisher/, 软链到源仓)挪到 ~/.openclaw/wx-mp-publisher/accounts.json。原因:软链模式下 skill 目录就是源仓工作树,密钥放那里会被 tarball/备份/误 add 带走。挪到源仓外 的实例态目录,脚本固定读该路径,不做多级回退。 - publish_wx_mp.py: ACCOUNTS_FILE 改 Path.home()/.openclaw/wx-mp-publisher/accounts.json - SKILL.md / REFERENCE.md: 更新凭据位置说明 - .gitignore: 移除已失效的 accounts.json 条目 - 本机: accounts.json 已移到 ~/.openclaw/wx-mp-publisher/ 回退 wx-mp-hunter SKILL.md 误加的「发布前 Markdown 规范」一节——该规范属于 wx-mp-publisher 领域,与 hunter 无关。
cmd_login 改造: - open 后先等 redirect 落点(8s), 落到后台路径=已登录直接报 already_logged_in 不出 QR; 落到登录页=正常出 QR 流程 - 新增 --reset flag: 先 close session + 删 profile 目录再 open, 用于上一次用错账户扫码污染 cookie 后强制从干净状态重来 - 不加 --reset 时不碰已有登录态, 避免清掉还有效的 session _ensure_login 复用共享 BACKEND_PATHS 常量(原 inline tuple) SKILL.md 补 login --reset / already_logged_in / 扫码失败恢复指引
- 删 .atomgit/pipelines/build-docker.yml:不走 AtomGit 流水线,改用阿里云 ACR 企业版直绑 GitHub 仓库自动构建(ACR 支持绑 GitHub 个人版、push tag 自动触发、 海外源智能加速,镜像内 clone openclaw/npm 拉海外包更稳) - Dockerfile USE_MIRROR 默认改 0:阿里云 ACR 海外构建机用原始源 + 海外源智能加速, 国内镜像源在海外构建机反而绕远路 - docker-compose.yml + 两份文档:noVNC 端口分工理顺——xiaobei 容器 6080、 mimicwx 容器 6081,两个 noVNC web 都能用浏览器开,避免端口冲突 (xiaobei http://localhost:6080/vnc.html 操作 camoufox 过验证; mimicwx http://localhost:6081/vnc.html 微信扫码登录) - README + docs/docker-distribution.md:构建与分发段改 GitHub+阿里云 ACR 直绑, 写 ACR 构建规则配置表(代码源/分支 tag 正则/Dockerfile 目录/海外机器构建/构建参数) Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
ACR 海外构建机走 USE_MIRROR=0 + 海外源智能加速,但 apply-addons.sh / camoufox-cli/
build.sh 内部写死 --registry=npmmirror,海外机构拉国内镜像源反而绕远路/超时炸,
docker-bootstrap.sh exit 1。
- scripts/apply-addons.sh: 三处 --registry=npmmirror 改读 NPM_REGISTRY env
(默认 npmmirror,裸机链路不破;海外构建透传 NPM_REGISTRY=npmjs)
- patches/camoufox-cli/build.sh: npm install 加 --registry=${NPM_REGISTRY:-npmmirror}
- docker/docker-bootstrap.sh: USE_MIRROR=0 时 export NPM_REGISTRY=npmjs 透传给子进程;
每步打 [bootstrap] STEP N done 标记(ACR 失败时精确定位哪步炸);
camoufox Firefox 二进制 / weixin 插件段改非致命容错(首启可手动补)
Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
|
codes-factory-of-bg seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
scripts/apply-addons.sh:300 的 `local npm_reg=...` 在顶层 if 块内使用, bash 的 local 只能在函数体内用,顶层执行报 `can only be used in a function` 后 exit 1,apply-addons.sh 整体退出,CI 失败。 去掉 local 改普通变量即可——变量名足够局部化,作用域本来就在 if 坊内。 Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.