feat(doctor): add post-upgrade finding types · openclaw/openclaw@af77491
arniesaha
·
2026-06-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export type PostUpgradeFindingLevel = "ok" | "warn" | "error"; |
| 2 | + |
| 3 | +export type PostUpgradeFinding = { |
| 4 | +level: PostUpgradeFindingLevel; |
| 5 | +code: string; |
| 6 | +message: string; |
| 7 | +plugin?: string; |
| 8 | +entry?: string; |
| 9 | +}; |
| 10 | + |
| 11 | +export type PostUpgradeReport = { |
| 12 | +probesRun: string[]; |
| 13 | +findings: PostUpgradeFinding[]; |
| 14 | +}; |
| 15 | + |
| 16 | +export const POST_UPGRADE_PROBE_CODES = [ |
| 17 | +"plugin.entry_unresolved", |
| 18 | +"plugin.manifest_drift", |
| 19 | +] as const; |
| 20 | + |
| 21 | +export type PostUpgradeProbeCode = (typeof POST_UPGRADE_PROBE_CODES)[number]; |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。