mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 05:40:43 +00:00
13 lines
416 B
TypeScript
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;
|
|
}
|