Files
openclaw/extensions/browser/src/plugin-enabled.ts
2026-03-26 22:20:39 +00:00

16 lines
461 B
TypeScript

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