Datalayer VS Code Extension - v0.0.14
    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

    Properties

    executor: any = null
    operations: Record<string, any>

    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

        Name of the operation

      Returns boolean

      True if operation exists