From 3a80e320938de0b0189feca238fa9684e85c4126 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Mon, 2 Nov 2026 15:01:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(assist-platform):=20=E6=94=AF=E6=8C=81=20--?= =?UTF-8?q?status=20=E4=BD=9C=E4=B8=BA=E5=B8=83=E5=B0=94=E8=AF=8A=E6=96=AD?= =?UTF-8?q?=E5=BC=80=E5=85=B3=E4=B8=8E=E5=80=BC=E8=BF=87=E6=BB=A4=E5=8F=8C?= =?UTF-8?q?=E9=87=8D=E8=AF=AD=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 command-metadata 中将 assist-platform 的 status 声明为 boolean-or-value - 允许 hose-use assist-platform login --status 作为独立布尔诊断探针 - 同时保留 assist-platform search --status=<值> 的过滤值语义 --- src/cli/command-metadata.ts | 5 +++-- src/cli/commands/assist-platform/login.ts | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cli/command-metadata.ts b/src/cli/command-metadata.ts index 359a540..0e0de6e 100644 --- a/src/cli/command-metadata.ts +++ b/src/cli/command-metadata.ts @@ -832,8 +832,9 @@ export const COMMAND_METADATA: Record = { "forward": "transfer" }, flags: { - ...flagList("token t user name u hose-token jwt ticket ticket-id auth-code staff staff-id staffId alias corp-name count limit n start offset state status corpid id keyword query q message msg reason matter hours hour duration days day to recipient target remarks comment corp", "value"), - ...flagList("all a logout admin save import persist switch current overwrite candidates list-candidates qr", "boolean") + ...flagList("token t user name u hose-token jwt ticket ticket-id auth-code staff staff-id staffId alias corp-name count limit n start offset state corpid id keyword query q message msg reason matter hours hour duration days day to recipient target remarks comment corp", "value"), + ...flagList("all a logout admin save import persist switch current overwrite candidates list-candidates qr check", "boolean"), + ...flagList("status", "boolean-or-value") } } }; diff --git a/src/cli/commands/assist-platform/login.ts b/src/cli/commands/assist-platform/login.ts index 896ff28..7c00ebb 100644 --- a/src/cli/commands/assist-platform/login.ts +++ b/src/cli/commands/assist-platform/login.ts @@ -69,7 +69,7 @@ export async function handleLogin( }; } - const checkStatusOnly = booleanOption(parsed.options, ["status"]); + const checkStatusOnly = booleanOption(parsed.options, ["status", "check"]); const forceQr = booleanOption(parsed.options, ["qr", "force"]); const isInteractive = Boolean( process.stdin.isTTY && !process.env.CI && process.env.NODE_ENV !== "test"