Skip to content

feat: doctor 做真自检(node 版本 / schema / 全部示例) - #5

Merged
CodeAlex52 merged 1 commit into
mainfrom
feat/doctor-real-checks
Oct 11, 2026
Merged

CodeAlex52 merged 1 commit into
mainfrom
feat/doctor-real-checks

Conversation

@CodeAlex52

Copy link
Copy Markdown
Owner

doctor 之前返回硬编码的 ok: true,是一句安慰剂。现在真的检查:

  • Node 版本是否 >= 18(不满足则报错,退出码 1)
  • schemas/loop-trace.schema.json 存在且能解析
  • examples/*.json 全部通过 5 项校验(有失败会逐个点名)
  • --json 输出保留 ok / node 字段并新增 examples 计数,CI 可消费

测试同步更新:doctor 断言改为“真检查通过 + 示例数 >= 2”。套件 10/10 通过。

@CodeAlex52
CodeAlex52 merged commit 24b957b into main Oct 11, 2026
@CodeAlex52
CodeAlex52 deleted the feat/doctor-real-checks branch October 11, 2026 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant