pub fn read_script_input(
code: Option<&str>,
file: Option<&str>,
) -> Result<String, CoreError>Expand description
The three-form input reader (PURE — no async, no gateway):
--code STR passes through, --file PATH reads the file,
--file - reads stdin (the agent pipe path). Both --code AND
--file given → InvalidInput (usage errors lead — the caller
runs this BEFORE profile resolution, exit 2, profile null);
neither given → InvalidInput; unreadable file/stdin →
InvalidInput (the 03-03 put convention: the reason names the
source).