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/functions/test.runScript.md.
  • 简体中文
  • Function: runScript()

    runScript(name, argv?, ...__namedParameters): Promise<ScriptInvocation>

    Runs one conventional script through its generated-executable contract — a rendered script in this process, a plain script as a Node process of its own over the source — and returns its exit code, streams, and (for rendered scripts) the completed document value.

    This is the script-dispatch proof level. Nothing is bundled.

    Parameters

    name

    string

    argv?

    readonly string[] = []

    __namedParameters

    ...HarnessOptionsArguments<RunScriptOptions>

    Returns

    Promise<ScriptInvocation>