Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

586 B
Raw Blame
import type {
  BrowserControlRequest,
  BrowserControlResult,
  BrowserControlRuntime,
} from './types.js';

/**
 * Placeholder runtime used until a host wires the upstream-synced browser core.
 */
export function createUnavailableBrowserRuntime(
  message = 'Browser automation runtime is not configured.',
): BrowserControlRuntime {
  return {
    async call(request: BrowserControlRequest): Promise<BrowserControlResult> {
      return {
        ok: false,
        action: request.action,
        errorCode: 'BROWSER_RUNTIME_NOT_CONFIGURED',
        message,
      };
    },
  };
}