mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-16 00:30:43 +00:00
refactor: remove plugin dependency cleanup leftovers
This commit is contained in:
@@ -167,7 +167,7 @@ afterEach(() => {
|
||||
describe("resolveBundledPluginsDir", () => {
|
||||
it.each([
|
||||
[
|
||||
"prefers the staged runtime bundled plugin tree from the package root",
|
||||
"prefers the runtime bundled plugin tree from the package root",
|
||||
{
|
||||
prefix: "openclaw-bundled-dir-runtime-",
|
||||
hasDistRuntimeExtensions: true,
|
||||
|
||||
@@ -122,10 +122,7 @@ export function loadBundledRuntimeChannelPlugin(params: {
|
||||
}
|
||||
}
|
||||
|
||||
export function resolveSetupChannelRegistration(
|
||||
moduleExport: unknown,
|
||||
params: { installRuntimeDeps?: boolean } = {},
|
||||
): {
|
||||
export function resolveSetupChannelRegistration(moduleExport: unknown): {
|
||||
plugin?: ChannelPlugin;
|
||||
setChannelRuntime?: (runtime: PluginRuntime) => void;
|
||||
usesBundledSetupContract?: boolean;
|
||||
@@ -146,14 +143,10 @@ export function resolveSetupChannelRegistration(
|
||||
typeof setupEntryRecord.loadSetupPlugin === "function"
|
||||
) {
|
||||
try {
|
||||
const setupLoadOptions =
|
||||
params.installRuntimeDeps === false ? { installRuntimeDeps: false } : undefined;
|
||||
const loadedPlugin = setupEntryRecord.loadSetupPlugin(setupLoadOptions);
|
||||
const loadedPlugin = setupEntryRecord.loadSetupPlugin();
|
||||
const loadedSecrets =
|
||||
typeof setupEntryRecord.loadSetupSecrets === "function"
|
||||
? (setupEntryRecord.loadSetupSecrets(setupLoadOptions) as
|
||||
| ChannelPlugin["secrets"]
|
||||
| undefined)
|
||||
? (setupEntryRecord.loadSetupSecrets() as ChannelPlugin["secrets"] | undefined)
|
||||
: undefined;
|
||||
if (loadedPlugin && typeof loadedPlugin === "object") {
|
||||
const mergedSecrets = mergeChannelPluginSection(
|
||||
|
||||
Reference in New Issue
Block a user