Interface: ScriptInvocation
Properties
argv
readonlyargv: readonlystring[]
The argv vector as dispatched; for rendered scripts this still includes the --json / --ndjson mode flags.
exitCode
readonlyexitCode:number
The process status the contract mapped: rendered scripts exit 0 on a
success document and 1 otherwise (2 for conflicting mode flags); plain
scripts report their process's exit status — a numeric main return, an
assigned process.exitCode, a process.exit call, 1 after an escaped
rejection, or 128 + the signal number when a signal ended the process.
kind
readonlykind:"rendered"|"plain"
name
readonlyname:string
provenance
readonlyprovenance:ScriptDispatchProvenance
routeId
readonlyrouteId:string
stderr
readonlystderr:string
Everything the script wrote to its diagnostic stream.
stdout
readonlystdout:string
Everything the script wrote to stdout, including rendered Markdown, TTY, JSON, or NDJSON output.
value?
readonlyoptionalvalue?:unknown
Rendered scripts: the completed document value the shell passed through. Absent for plain scripts.