Skip to content

5.70 publish - #474

Merged
bigbrother666sh merged 38 commits into
TeamWiseFlow:masterfrom
bigbrother666sh:master
Aug 30, 2026
Merged

5.70 publish#474
bigbrother666sh merged 38 commits into
TeamWiseFlow:masterfrom
bigbrother666sh:master

Conversation

@bigbrother666sh

Copy link
Copy Markdown
Member

xiaobei v5.7.x
Let's do this like an expert!

bigbrother666sh and others added 30 commits August 16, 2026 09:53
camoufox-cli 失败时 exit code 可能仍为 0(JSON 内 success=false),原封装只解析
JSON 不查 success,导出失败被静默吞掉(临时文件不生成 -> 后续读 ENOENT,报错
晦涩难排查)。显式检查并抛出真实错误。昨晚 xhs-browse 重登流程实测闭环。
有头浏览器落在哪个显示由进程环境 DISPLAY 决定,直接继承即可,禁止 agent 手工
干预:❌ 手动加 DISPLAY=:N 前缀(历史事故:照过时文档设 DISPLAY=:2,窗口开进
没人看得到的虚拟显示)、❌ 自行起 Xvfb/VNC、display 报错时报告用户而非自行
绕过。Docker 形态用户经 noVNC 6080 查看操作。
gateway 随 default.target 开机即启,早于桌面会话把 DISPLAY 登记进 user manager
环境(systemd 不回填已运行服务)-> 重启机器后到下次 gateway 重启之间,整个
gateway 进程树缺 DISPLAY,agent 误判无头环境、有头浏览器无法启动。

30-wait-display.conf 让 gateway 启动前等 DISPLAY 出现:有桌面几秒内等到(检查
本身毫秒级),无桌面 30s 超时放行(与不加 drop-in 行为一致)。openclaw 升级
重写主 unit 不清 drop-in,幂等。WSL2 跳过(update.sh 已注 DISPLAY=:0 进
daemon.env,WSLg 恒定 :0)。

- install.sh: ensure_systemd_wait_display_dropin helper,首装(install_gateway_and_env)
  与更新(refresh_gateway_env_only)两条路线均调用
- update.sh: 8.5 段与 10-env-file.conf 一并写入
daemon.env 来自持久卷、内容不可控:若混入 DISPLAY(如宿主机桌面机的 DISPLAY=:0
被抄进来),会覆盖入口脚本 export 的 Xvfb 显示号(:99),有头浏览器开去不存在
的显示、noVNC 里什么都看不到。load_runtime_environment 结尾强制重设入口值。
5fb1227(install.sh/update.sh)同款 ensure_systemd_wait_display_dropin,
首装与更新两条路线均调用,保持 atomgit 镜像安装线行为一致。
…ntegration

- Updated content-production.md to include cover image decision-making process and constraints.
- Revised style-dna.md to clarify workflow boundaries and responsibilities regarding DNA creation and updates.
- Enhanced wx-mp-hunter skill to support downloading cover images alongside article content.
- Implemented cover image extraction and downloading logic in wx_mp_hunter.py.
- Introduced a new style-17d-framework.md for comprehensive analysis of 17 dimensions in DNA reporting.
- Updated expert-pack-dna-architecture.md to reflect changes in DNA structure and template requirements.
- Update editing.md to clarify content production steps and improve user guidance.
- Remove imitation.md as its functionality is integrated into content-production.md.
- Revise style-dna.md to streamline DNA usage in writing and editing processes.
- Enhance expert-pack-dna-architecture.md to reflect workflow changes and ensure clarity in tool usage.
…form

- ofbKey → awadaKey:配置字段与内部属性全量重命名。awadaKey 与签名服务
  OFB_KEY 是两份独立凭证,relay admin 分别签发。
- wire header X-OFB-Key → X-Awada-Key:客户端改发新 header,服务端优先读
  X-Awada-Key、fallback X-OFB-Key 向后兼容。签名服务侧 X-OFB-Key 不动。
- lane 改可选:不传时 server 默认 User lane。删掉所有 lane 必填 guard,
  configured = Boolean(awadaKey)。
- relayBaseUrl 默认官方域名 https://relay.openclaw-for-business.com,
  写死为 DEFAULT_RELAY_BASE_URL 常量;删掉 RELAY_BASE_URL 环境变量兜底。
- 去 platform:客户端不配 platform,relay 按 lane 绑定推导。回复仍从
  inbound event.meta.platform 原样回传;主动外呼省略。OutboundTarget/
  OutboundMeta.platform 改可选。

客户端最小配置只需 awadaKey(enabled 默认 true、relayBaseUrl 默认官方域名、
lane 默认 server User、platform 由 lane 推导)。

涉及 awada extension 全部 src + openclaw.plugin.json + README、
docs/AWADA-CLIENT-TRANSPORT.md(§2/§3/§4/§7/§8/§9)、
crews/it-engineer/skills/awada-channel-setup(sample json + 脚本 + SKILL)、
crews/sales-cs/skills/proactive-send(send.mjs + SKILL)。
服务端每 30s 发 ws.ping(),客户端 ws 库自动回 pong。
但客户端监听 ws.on('pong') 等的是服务端发来的 pong 帧——服务端只发 ping,
不发 pong,所以 lastPong 永不更新,90s 后 watchdog 超时断连。
改为 ws.on('ping'):收到服务端 ping 即更新 liveness。
install.ts 同步上游 0.7.3 三块缺失修复:
- stableTags() 函数 + assetsViaWeb() 重构(TeamWiseFlow#17):scrape path 过滤 prerelease tag
- browserPresent() + install 后 launchPath() 兜底(TeamWiseFlow#17/TeamWiseFlow#19):broken install 立即报错
- launchPath 加入 import

package.json 升级:
- version: 0.6.2-wiseflow.1 → 0.7.3-wiseflow.1
- camoufox-js: ^0.11.1 → 0.11.2(pin 死,跟上游 0.7.3 对齐)
- playwright-core: 保持 1.52.0(camoufox juggler 兼容性需要)
- wiseflowForkBaseline: 0.6.2 → 0.7.3

浏览器二进制:camoufox-js@0.11.2 拉 v152.0.4-beta.28(FF152 基线,2026-07-19),
比 fork 之前用的 FF135 那一代新 17 个 Firefox 大版本。FF152 修了:
- synthetic mouse input stalling under heavy load(地址栏换 IP 死机根因之一)
- humanized mouse trajectory dropped in FF146 migration
- juggler hang / Browser.newPage hangs indefinitely

未引入多 tab 架构:上游 0.7.3 的 TabState + tabs Map + ref-counted close 跟 fork 的
单 page + fail-first 队列架构冲突。wiseflow 当前一个 session 一个 agent 场景不需要多 tab,
保留 fork 现状(shortenSession / recoverOrphanBrowser / killDaemon / --viewport / fail-first 队列)。

update.sh 第 6.5 步加入 camoufox-cli fork rebuild:
老用户跑 update.sh 时,apply-addons.sh 之后、pnpm build 之前,自动
bash patches/camoufox-cli/build.sh + camoufox-cli install,确保全局 camoufox-cli
升到 0.7.3-wiseflow.1 + 浏览器二进制升到 v152.0.4-beta.28。

验证:
- cd patches/camoufox-cli && npm run build → tsc 0 errors
- bash patches/camoufox-cli/build.sh → 全局装好 0.7.3-wiseflow.1
- camoufox-cli install → v152.0.4-beta.28 already up to date
- bash -n scripts/update.sh → OK

Co-Authored-By: AtomCode (GLM-5.2) <noreply@atomgit.com>
7.1 release branch 两个补丁发行版(7.1-1 / 7.1-2,2026-08-04):
- 7.1-1: Codex progress replies 不停 turn / Memory Core 启动修复 /
  WSL EROFS / legacy migration 非致命 / managed plugin npm lock
- 7.1-2: npm plugin singleton-array metadata (#108336)

37 patch 全部 git apply --3way --check 干净通过,无需重新生成。
变更集中在 codex/memory-core/state-migrations/plugins/infra,
与浏览器转向 patch 无重叠。未 build,待次日整体 apply-addon。
openclaw v2026.7.1-2 引入 hyphenated 版本号。apply-addons.sh 同步
systemd unit Description 的 sed 原用 [0-9.]+ 匹配旧版本,遇 '-2)' 匹配
不到,致老用户升到 7.1-2 后再升级时 Description 卡在旧值(cosmetic,
systemctl status 标签 stale,不影响功能)。改 [0-9.-]+ 兼容 prerelease。
…ved command structure and clarity

- Updated editing.md to clarify publishing and record-keeping steps in the wx-mp workflow.
- Enhanced review.md to streamline data review processes and clarify the boundaries between review and content-calibrator workflows.
- Modified SKILL.md in published-track to standardize command usage and improve documentation on database interactions.
- Implemented new wrapper scripts for content-calibrator and published-track to facilitate command execution via PATH.
- Adjusted fetch-and-update-metrics.sh to redirect wx_mp data fetching to the appropriate expert-wx-mp tool.
- Updated platform-login-and-browser-spec.md to reflect changes in wx_mp data retrieval processes.
- Revised versioning to reflect updates and improvements across multiple components.
fix: 修复 camoufox-cli 默认 idle 自退问题,调整 daemon 生命周期管理
docs: 更新各技能文档,明确 daemon 生命周期和使用注意事项
chore: 更新 camoufox-cli 版本号至 0.7.3-wiseflow.2,调整相关测试用例
- setup-crew.sh: it-engineer 不再显式设 thinkingDefault: high,与其他 crew
  一致继承 agents.defaults.thinkingDefault(已写入 openclaw.json 的需手动删一次)
- sales-cs ALLOWED_COMMANDS: 删 +node(等价对外 crew 任意 JS 执行)及
  wrapper 已覆盖的冗余脚本路径条目(proactive-send/send.mjs、exp-invite/invite.sh)
- exec-tiers.sh: resolve_binary_path 裸名优先显式查 ~/.openclaw/bin 并 realpath,
  避免首装进程 PATH 不含该目录时 allowlist 条目被静默丢弃
与 published-track(497ba66)同款修复:invite.sh 用 dirname $0/../../.. 推导
workspace 根再取 ./db/customer.db,wrapper 全量 readlink -f 会把 workspace
字面路径折叠回仓模板路径,导致经 PATH 调用时 db 解析到模板目录。
只解析 ~/.openclaw/bin 软链一层,保留 workspace 字面路径。已模拟三级软链
验证 WORKDIR 正确落在 workspace 根。
…ent production, add expert-sales-cs-manager
bigbrother666sh and others added 8 commits August 27, 2026 23:49
- douyin-comments:纯 HTTP + login-manager 中央 cookie + relay 签名(与
  published-track 抖音取数同源,不起浏览器),支持 aweme_id/短链输入、
  --limit 防风控上限、--output 点赞降序 markdown 摘要;exit 2 交重登,
  status_code=8 间歇抖动内置重试
- account-setup / account-benchmark:评论信号改为 douyin-comments 直接抓取
  (标签反推评论高频问题、对标评论动机分析、九条实验复盘),不再依赖用户
  提供截图;根 SKILL.md 工具清单同步登记
- §4.3 二轮瘦身:douyin-publish 去掉上下游衔接表述与 get-link/拦截器内部
  实现细节(保留输入输出、调用方式、约束、exit codes、pitfalls);
  douyin-style-profiler 去掉 viral-chaser 上游衔接句
…EAT_TEMPLATE.md

- project-application 顶层技能改造为 expert-ir 包内 Project Application Workflow(去 frontmatter,对齐兄弟 workflow 格式;申报状态推进修正为 ir-record update-application)
- HEARTBEAT_TEMPLATE.md 删除:IR 定时模板折入 expert-ir/scheduling.md,BD 定时模板(此前已就绪的 expert-bd/scheduling.md)一并入库
- expert-ir 全部 workflow 定时执行改为用户可选项:默认一次性任务,主动查询(query-stale / query-applications)兜底,启用定时才走心跳巡检
- expert-ir/SKILL.md 新增「执行方式与定时任务」节 + workflow 表增补;expert-ir/expert-bd 边界与 description 同步
- AGENTS.md / MEMORY.md 引用同步改到包内资源
- SKILL.md 入口 + 6 类基线 workflow(style-dna / content-production / account-setup / account-benchmark / editing / review)
- 新增 xhs-style-profiler:16 维 DNA report/build/update 三层生产,存储 dna/xhs/<dna-id>/(16 维框架为初始版本,已经用户确认)
- account-benchmark 吸收关键词提取 + 低粉爆款搜索方法论;account-setup 吸收起号作战手册;图文下载统一走 xhs-content-ops,视频笔记走 viral-chaser
- 已折入三工具(xhs-content-ops / xhs-publish / xhs-engagement)SKILL.md 瘦身为工具说明书,清理顶层残壳
- 移除移植参考素材(xhs.md / xiaohongshu-rewrite / key_word_guide.md,内容已吸收进 workflow 与 DNA 维度)
- 同步 AGENTS.md 路由与 published-track 指路引用
gateway 是 systemd/launchd 服务不 source shell rc,agent exec 调裸技能名
(如 aigc-video-gen)靠 PATH 解析 ~/.openclaw/bin 下的 wrapper 软链。
原脚本写 daemon.env PATH 只放 program bin + node bin,漏了 wrapper bin,
且 update.sh 用 grep -v '^PATH=' 重写会连 program bin 一起抹掉。

- update.sh: 幂等前置 node + program bin + wrapper bin,保留既有 PATH
- install.sh / install-atomgit.sh: ensure_env_path 加 wrapper bin 第4参,
  提前返回改为三者都在才跳过
- install.ps1 / install-atomgit.ps1: PATH 行显式加 ~\.openclaw\bin
- setup-crew.sh: 同时前置 program + wrapper bin,修正误导注释
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ bigbrother666sh
❌ codes-factory-of-bg


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.

@bigbrother666sh
bigbrother666sh merged commit 59c60f9 into TeamWiseFlow:master Aug 30, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants