Datalayer VS Code Extension - v0.0.17
    Preparing search index...

    Simple Runner implementation for tool execution in webview. Maps operation names to their implementations and executes them directly. Generic to support different operation types (notebook, lexical, etc.).

    Index

    Constructors

    Methods

    • Executes a state method via the executor.

      This method is called when receiving messages from BridgeExecutor (VS Code context). It does NOT call operations - operations only run in extension host where validation happens. It calls the executor which directly invokes state methods.

      Parameters

      • operationName: string

        Name of the state method to execute.

      • args: unknown

        Arguments for the state method (already in state parameter format).

      • format: "json" | "toon" = "toon"

        Response format ("json" or "toon"), defaults to "toon".

      Returns Promise<unknown>

      Promise resolving to the formatted result.

      Error if executor is not available.

    • Checks if an operation is available.

      Parameters

      • operationName: string

        Identifier of the tool operation to check.

      Returns boolean

      True if operation exists.