Files
openclaw/extensions/browser/src/plugin-enabled.ts
2026-04-28 05:21:57 +01:00

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;
}