Files
openclaw/extensions/browser/src/plugin-enabled.ts
T

13 lines
416 B
TypeScript

import type { OpenClawConfig } from "./sdk-config.js";
import { normalizePluginsConfig, resolveEffectiveEnableState } from "./sdk-config.js";
export function isDefaultBrowserPluginEnabled(cfg: OpenClawConfig): boolean {
return resolveEffectiveEnableState({
id: "browser",
origin: "bundled",
config: normalizePluginsConfig(cfg.plugins),
rootConfig: cfg,
enabledByDefault: true,
}).enabled;
}