|
|
|
|
@ -3,6 +3,7 @@ import fs from "node:fs";
|
|
|
|
|
import path from "node:path";
|
|
|
|
|
import { createJiti } from "jiti";
|
|
|
|
|
import type { ChannelPlugin } from "../channels/plugins/types.js";
|
|
|
|
|
import { normalizeChatChannelId } from "../channels/registry.js";
|
|
|
|
|
import { isChannelConfigured } from "../config/channel-configured.js";
|
|
|
|
|
import type { OpenClawConfig } from "../config/config.js";
|
|
|
|
|
import type { PluginInstallRecord } from "../config/types.plugins.js";
|
|
|
|
|
@ -1166,6 +1167,12 @@ export function loadOpenClawPlugins(options: PluginLoadOptions = {}): PluginRegi
|
|
|
|
|
config: normalized,
|
|
|
|
|
rootConfig: cfg,
|
|
|
|
|
enabledByDefault: manifestRecord.enabledByDefault,
|
|
|
|
|
...(normalizeChatChannelId(pluginId)
|
|
|
|
|
? {
|
|
|
|
|
sourceConfig: activationSourceNormalized,
|
|
|
|
|
sourceRootConfig: activationSourceConfig,
|
|
|
|
|
}
|
|
|
|
|
: {}),
|
|
|
|
|
});
|
|
|
|
|
const entry = normalized.entries[pluginId];
|
|
|
|
|
const record = createPluginRecord({
|
|
|
|
|
@ -1717,6 +1724,12 @@ export async function loadOpenClawPluginCliRegistry(
|
|
|
|
|
config: normalized,
|
|
|
|
|
rootConfig: cfg,
|
|
|
|
|
enabledByDefault: manifestRecord.enabledByDefault,
|
|
|
|
|
...(normalizeChatChannelId(pluginId)
|
|
|
|
|
? {
|
|
|
|
|
sourceConfig: activationSourceNormalized,
|
|
|
|
|
sourceRootConfig: activationSourceConfig,
|
|
|
|
|
}
|
|
|
|
|
: {}),
|
|
|
|
|
});
|
|
|
|
|
const entry = normalized.entries[pluginId];
|
|
|
|
|
const record = createPluginRecord({
|
|
|
|
|
|