agentLine method
Clears $LASTEXITCODE just before the agent's line, after saving it, so
the agent marker can tell a native program's code (set again) from a
failed cmdlet (left unset), rather than reading an earlier program's
stale code. The marker puts the saved value back when the line set none.
Implementation
@override
String agentLine(String line) =>
r'$__omnyLcPrev=$LASTEXITCODE;$global:LASTEXITCODE=$null;'
'$_quoteGap$line';