rea-agents - v0.1.0
    Preparing search index...

    Owns the single active target shared by CLI and MCP adapters.

    Target transitions are serialized because each client dispatches Hopper API work on its dedicated Python thread, and switching targets tears that bridge down. A failed switch recreates the previous target instead of retaining a client whose bridge was already shut down.

    Implements

    Index
    createClient: BinaryClientFactory
    • Invoke a Hopper tool against the active target. Calls may overlap, but a pending target transition prevents new calls from entering until the transition has settled.

      Parameters

      • name: string
      • arguments_: Readonly<Record<string, JsonValue>>
      • Optionaloptions: { signal?: AbortSignal }

      Returns Promise<Result<JSONType, HopperError>>

    • Open or switch targets after draining calls against the current target. Returns the switch failure even if best-effort restoration also fails.

      Parameters

      • path: string
      • options: { signal?: AbortSignal; targetKind?: "executable" | "database" } = {}

      Returns Promise<Result<BinaryTarget, HopperError>>