From 51ed69596e217e12bab7b4aaccd0b553c740ca01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=95=85=E7=92=83?= Date: Mon, 27 Jul 2026 16:25:49 +0800 Subject: [PATCH] feat: skill update REASON opt --- packages/commands/src/commands/skill/update.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/commands/src/commands/skill/update.ts b/packages/commands/src/commands/skill/update.ts index 068868c..e2d6bca 100644 --- a/packages/commands/src/commands/skill/update.ts +++ b/packages/commands/src/commands/skill/update.ts @@ -120,11 +120,21 @@ export default defineCommand({ result.name, result.status, result.publishedAt ? result.publishedAt.slice(0, 10) : "-", - result.reason ?? "-", ]); - for (const line of formatTable(["NAME", "STATUS", "PUBLISHED", "REASON"], rows)) { + for (const line of formatTable(["NAME", "STATUS", "PUBLISHED"], rows)) { emitBare(line); } + + // Footnotes for skipped / failed entries + const annotated = results.filter( + (result) => (result.status === "skipped" || result.status === "failed") && result.reason, + ); + if (annotated.length > 0) { + emitBare(""); + for (const result of annotated) { + emitBare(` ${result.name}: ${result.reason}`); + } + } } const failed = results.filter((result) => result.status === "failed");