Skip to content

Interface: SecretInputOptions

Defined in: packages/aiui-util/src/secret-input.ts:9

Secret input that never touches argv or shell history (promoted from exploration/os-vault): piped stdin for scripting, a raw-mode masked prompt at a real terminal — the same technique npm's own password prompts use. The value is a program-internal string handed straight to the vault, never round-tripped through a shell.

Properties

echo?

optional echo?: "mask" | "none"

Defined in: packages/aiui-util/src/secret-input.ts:19

What the terminal echoes per accepted character. "mask" (the default) writes one *, so a paste is visibly something and visibly about the right length — the difference between "did that land?" and knowing it did. "none" echoes nothing at all.


promptText?

optional promptText?: string

Defined in: packages/aiui-util/src/secret-input.ts:25

The exact string written before reading, for callers that render their own question block and want the read to continue it (the aiui CLI's promptSecret passes its caret). Defaults to ${promptLabel}: .


stdin?

optional stdin?: ReadStream

Defined in: packages/aiui-util/src/secret-input.ts:11

Injectable streams for tests; default the real process stdio.


stdout?

optional stdout?: WriteStream

Defined in: packages/aiui-util/src/secret-input.ts:12