fix(assist-platform): 支持 --status 作为布尔诊断开关与值过滤双重语义

- 在 command-metadata 中将 assist-platform 的 status 声明为 boolean-or-value
- 允许 hose-use assist-platform login --status 作为独立布尔诊断探针
- 同时保留 assist-platform search --status=<值> 的过滤值语义
This commit is contained in:
gitea committed 2026-11-02 15:01:43 +08:00
1 parent 045f64d944
commit 3a80e32093
2 files changed
+4 -3

No files matched your search

+1 -1
View File
@@ -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"