After the 2026-11-10 Wodify redeploy, prime captured zero actions and every query reported NOT PRIMED. It looked like another endpoint move. It was not: every allowlisted path and response shape is unchanged. The app's service worker was serving the old OutSystems runtime to pages running the new screen code. That mixed app throws in Controller.callServerDataSource before any data action is sent, so there was nothing to observe. Measured per tab setting: bypassing the service worker alone fixes it; disabling the HTTP cache alone does not. - cdp.open_page: Network.setBypassServiceWorker on the prime tab. Per-tab, nothing in the profile is unregistered or cleared. - cdp.close: close the tab the session opened. Every prime leaked one. - prime: refuse to save a capture with no actions, leave the existing cache alone, and say why. Page errors are collected and reported, which is what separates "the browser's copy of the app is broken" from "Wodify moved its endpoints". - Skill/: the cron prompts applied the generic exit-code table to `list` commands. For `list`, 3 is session expired, 4/5 are stale / not primed, 6 is an unindexed class id. Exit 5 was not handled at all. Also document the `waitlist` value of the YOU column. - CLAUDE.md / README: record the diagnosis, the measurements, the Firebase red herring, and both exit-code tables. Co-Authored-By: Claude Fable 5.2 <[email protected]>
wodify CLI — Agent Cron Jobs (健身自动化)
两个围绕 wodify CLI 的定时任务 prompt,供 agent 框架(如 Hermes Agent)使用。 特点是只在有预约的当天才说话,安静为零的日子让路。
| 任务 | 时间 | 干什么 |
|---|---|---|
daily-wod-briefing |
每天 09:00 | 早间训练简报:查当天预约 → 拉 WOD → 动作/肌群/装备概览 |
fitness-diary-nag |
每天 20:17 | 晚间日记催报:查当天预约 → 像教练一样追问重量/成绩/心率数据 |
两个 job 共同的行为约定(写死在 prompt 里):
- 没有预约就完全静默——不发 "今天没课" 这种废话
- WOD 内容是 nice-to-have:拉不到也照常 nag,绝不编造课表
- CLI 挂了按 exit code 分级处理。两个 job 只用
list命令,它的退出码是: 3=session 过期(停下,等人重新登录),4/5=缓存过期或未 prime(prime 一次再重试一次), 6=class ID 未索引,2=参数错误。注意这和bookings等通用命令的退出码(2/3/4)不同 - YOU 列取值:
signed in(已签到)、reserved(已预约)、waitlist(候补,不算确认的预约)
安装(Hermes Agent 示例)
# 早间简报
hermes cron create --name daily-wod-briefing \
--deliver origin -t terminal \
"0 9 * * *" "$(cat daily-wod-briefing.md)"
# 晚间日记催报
hermes cron create --name fitness-diary-nag \
--deliver origin -t terminal \
"17 20 * * *" "$(cat fitness-diary-nag.md)"
其他框架同理:把 .md 文件内容作为 prompt、按上表时间调度即可。
模型不挑,能跑终端命令就行。
前置条件
- wodify CLI 已安装且
wodify doctor显示 primed(见仓库 README) - agent 有终端执行权限(prompt 只调用
wodify list date/wodify list workout/wodify prime,均为只读操作 + prime)