openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
45 lines • 2.67 kB
TypeScript
import { r as OpenClawConfig } from "./types.openclaw-B-tbtohD.js";
import "./types-DATmzouh.js";
import { t as PluginOrigin } from "./plugin-origin.types-DOQEvsWL.js";
import { r as PluginActivationStateLike, t as PluginActivationConfigSourceLike } from "./config-activation-shared-BIz277Uz.js";
import { t as NormalizedPluginsConfig$1 } from "./config-normalization-shared-BlqqYWGN.js";
//#region src/plugins/config-state.d.ts
type PluginActivationState = PluginActivationStateLike;
type PluginActivationConfigSource = {
plugins: NormalizedPluginsConfig;
rootConfig?: OpenClawConfig;
} & PluginActivationConfigSourceLike<OpenClawConfig>;
type NormalizedPluginsConfig = NormalizedPluginsConfig$1;
declare const normalizePluginsConfig: (config?: OpenClawConfig["plugins"]) => NormalizedPluginsConfig;
declare function resolveEffectivePluginActivationState(params: {
id: string;
origin: PluginOrigin;
config: NormalizedPluginsConfig;
rootConfig?: OpenClawConfig;
enabledByDefault?: boolean;
activationSource?: PluginActivationConfigSource;
autoEnabledReason?: string;
channelIds?: readonly string[];
}): PluginActivationState;
declare const resolveEffectiveEnableState: (params: Omit<Parameters<typeof resolveEffectivePluginActivationState>[0], "autoEnabledReason">) => {
enabled: boolean;
reason?: string;
};
//#endregion
//#region src/infra/deep-merge.d.ts
type DeepMergeOptions = {
arrays?: "replace" | "concat";
undefinedValues?: "skip" | "replace";
};
/** Merge plain objects while preserving OpenClaw's null, undefined, and array policies. */
declare function mergeDeep(base: unknown, override: unknown, options?: DeepMergeOptions): unknown;
//#endregion
//#region src/plugin-sdk/plugin-config-runtime.d.ts
/** Requires an already-resolved runtime config at plugin runtime boundaries. */
declare function requireRuntimeConfig(config: OpenClawConfig, context: string): OpenClawConfig;
/** Reads a plugin's object-shaped `plugins.entries[id].config` block from resolved config. */
declare function resolvePluginConfigObject(config: OpenClawConfig | undefined, pluginId: string): Record<string, unknown> | undefined;
/** Resolves live plugin config through a loader, falling back to startup config when unavailable. */
declare function resolveLivePluginConfigObject(runtimeConfigLoader: (() => OpenClawConfig | undefined) | undefined, pluginId: string, startupPluginConfig?: Record<string, unknown>): Record<string, unknown> | undefined;
//#endregion
export { normalizePluginsConfig as a, mergeDeep as i, resolveLivePluginConfigObject as n, resolveEffectiveEnableState as o, resolvePluginConfigObject as r, requireRuntimeConfig as t };