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

+3 -2
View File
@@ -832,8 +832,9 @@ export const COMMAND_METADATA: Record<string, CliCommandMetadata> = {
"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")
}
}
};
+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"