fix(plugins): widen masked secret prompt to plugin setup wizards

Extend PR #31716 to plugin setup paths that were also using bare
getpass.getpass(): hindsight (4 sites), honcho, simplex, line. Same
mechanical swap onto hermes_cli.secret_prompt.masked_secret_prompt.
This commit is contained in:
Teknium 2026-05-24 23:05:41 -07:00
parent ec4d6f1823
commit 9c77a0c3ce
4 changed files with 11 additions and 11 deletions

View file

@ -314,8 +314,8 @@ def _prompt(label: str, default: str | None = None, secret: bool = False) -> str
sys.stdout.flush()
if secret:
if sys.stdin.isatty():
import getpass
val = getpass.getpass(prompt="")
from hermes_cli.secret_prompt import masked_secret_prompt
val = masked_secret_prompt("")
else:
# Non-TTY (piped input, test runners) — read plaintext
val = sys.stdin.readline().strip()