For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/zh/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/zh/api/interfaces/test.ScriptInvocation.md.
  • 简体中文
  • Interface: ScriptInvocation

    Properties

    argv

    readonly argv: readonly string[]

    The argv vector as dispatched; for rendered scripts this still includes the --json / --ndjson mode flags.


    exitCode

    readonly exitCode: 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

    readonly kind: "rendered" | "plain"


    name

    readonly name: string


    provenance

    readonly provenance: ScriptDispatchProvenance


    routeId

    readonly routeId: string


    stderr

    readonly stderr: string

    Everything the script wrote to its diagnostic stream.


    stdout

    readonly stdout: string

    Everything the script wrote to stdout, including rendered Markdown, TTY, JSON, or NDJSON output.


    value?

    readonly optional value?: unknown

    Rendered scripts: the completed document value the shell passed through. Absent for plain scripts.