feat: stealth status self-check command (issue #5)
Local stealth verification with no external detector: reports mode (connect vs launch), live fingerprint probes (navigator.webdriver / window.chrome / plugins / UA-headless) as pass/fail, and an audit of the active overrides for the path (incl. the iframe-proxy state from #4). `--json` for a stable shape agents can gate a sensitive flow on. Distinct from `doctor` (install/env health).
This commit is contained in:
@@ -931,6 +931,15 @@ fn parse_command_inner(args: &[String], flags: &Flags) -> Result<Value, ParseErr
|
||||
Ok(json!({ "id": id, "action": "evaluate", "script": script }))
|
||||
}
|
||||
|
||||
// === Stealth self-check ===
|
||||
"stealth" => {
|
||||
// `stealth [status]` — local stealth self-check: mode, live probes
|
||||
// (navigator.webdriver, window.chrome, plugins, UA), and the list of
|
||||
// active overrides. --json for a stable machine-readable shape.
|
||||
// (Distinct from `doctor`, which checks install/env/Chrome health.)
|
||||
Ok(json!({ "id": id, "action": "stealth_status" }))
|
||||
}
|
||||
|
||||
// === Close ===
|
||||
"close" | "quit" | "exit" => Ok(json!({ "id": id, "action": "close" })),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user