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.renderRoute.md.
  • 简体中文
  • Function: renderRoute()

    renderRoute(target, ...__namedParameters): Promise<RenderedRoute>

    Renders one route through the real Agent renderer and returns its final Agent Document. The route component executes inside a real request scope, its output is encoded as React Flight, and the runtime's own final-only dispatcher decodes it — the harness owns no second rendering path.

    This is the route-unit proof level: no transport is opened, no browser surface is compiled, and no host artifact is built.

    Parameters

    target

    RenderRouteTarget

    __namedParameters

    ...HarnessOptionsArguments<RenderRouteOptions>

    Returns

    Promise<RenderedRoute>