For AI agents: the complete documentation index is available at https://scriptedalchemy.github.io/agent-bundle/llms.txt, the full documentation bundle is available at https://scriptedalchemy.github.io/agent-bundle/llms-full.txt, and this page is available as Markdown at https://scriptedalchemy.github.io/agent-bundle/api/functions/api.compileRouteGraph.md.
  • English
  • Function: compileRouteGraph()

    compileRouteGraph(root, config, ignoreRules?): Promise<CompiledRouteGraph>

    Compiles the conventional route tree into the immutable route graph IR. Discovery is not a packaging choice: conflicts with existing entry conventions or declared servers keep their discovered routes visible and surface hard errors instead of silently choosing a side.

    Parameters

    root

    string

    config

    Readonly<AgentBundleConfig>

    ignoreRules?

    Ignore

    Returns

    Promise<CompiledRouteGraph>