"use client";
import { createContext, useContext } from "react";
/**
 * React context for the runner adapter.
 *
 * `null` when no adapter is provided (cloud consumers or when
 * executionTarget is not "local"). SDK hooks check for null before
 * calling adapter methods.
 */
export const RunnerAdapterContext = createContext(null);
/**
 * Read the runner adapter from the nearest `StigmerProvider`.
 *
 * Returns `null` when no adapter was configured — SDK hooks use this
 * as the guard to skip adapter calls for cloud deployments.
 */
export function useRunnerAdapter() {
    return useContext(RunnerAdapterContext);
}
//# sourceMappingURL=runner-adapter.js.map