UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 1.29 kB
import{i as loadBundledPluginPublicSurfaceModuleSyncCore}from"./facade-loader-BQF_V8Ba.mjs";import{t as scrubDoctorErrorMessage}from"./doctor-error-message-Crthe8x4.mjs"; //!src/commands/doctor-browser.ts async function collectBrowserReadinessFindings(e){try{return await loadBundledPluginPublicSurfaceModuleSyncCore({dirName:`browser`,artifactBasename:`browser-doctor.js`}).collectBrowserReadinessFindings(e)}catch(e){return[{checkId:`core/doctor/browser`,severity:`warning`,category:`fix-now`,message:`Doctor could not inspect browser readiness: ${scrubDoctorErrorMessage(e)}`,fixHint:`Check that the bundled browser plugin is installed and enabled, then rerun openclaw doctor. This check has not established browser readiness.`,docsUrl:`https://docs.openclaw.ai/tools/browser/troubleshooting`}]}}async function maybeRepairOwnedChromeExtensionNativeHosts(){try{const e=loadBundledPluginPublicSurfaceModuleSyncCore({dirName:`browser`,artifactBasename:`browser-doctor.js`}).maybeRepairOwnedChromeExtensionNativeHosts;return e?await e():{changes:[],warnings:[]}}catch(e){return{changes:[],warnings:[`Browser extension native-host repair is unavailable: ${e instanceof Error?e.message:String(e)}`]}}}export{maybeRepairOwnedChromeExtensionNativeHosts as n,collectBrowserReadinessFindings as t};