Skip to content

v0.2.3 — configurable watch defaults

Latest

Choose a tag to compare

@Dax233 Dax233 released this 25 Oct 18:22

v0.2.3 移除了 watch 脚本里的部署专属默认值,并修正两处规则边界。

  • DEFAULT_CONFIG 不再内置 thread、期望 goal、模板键或泛化措辞;thread 必须通过 --thread 或 watch.config.json 提供,缺失时退出码 2 并给出提示。
  • 模板键(requiredTemplateKeys)、泛化措辞(genericPatterns)、目标漂移(expectedGoals)检查改为 opt-in;默认只保留通用阈值(stale/idle/stall)。
  • 新增 tailBytes(默认 4 MiB)配置;删除未使用的 heartbeatIntervalMs;校验 --thread/--config 缺值。
  • 承接 896955d:stall 判定也改用完整 agent message,不再只看 <message>;示例配置改为通用占位。
  • 离线套件 89/89(watch 11/11)通过;watch.mjs 无配置运行会以退出码 2 提示缺失 thread。

使用:node scripts/watch.mjs --thread <name> --json,或复制 watch.config.example.json 为 watch.config.json 后编辑。