





















@@ -758,6 +758,14 @@ function hasExplicitCompatibilityInputs(options: PluginLoadOptions): boolean {
758758);
759759}
760760761+function resolveCoreGatewayMethodNames(options: PluginLoadOptions): string[] {
762+const names = new Set(options.coreGatewayMethodNames ?? []);
763+for (const name of Object.keys(options.coreGatewayHandlers ?? {})) {
764+names.add(name);
765+}
766+return Array.from(names).toSorted();
767+}
768+761769function pluginLoadOptionsMatchCacheKey(
762770options: PluginLoadOptions,
763771expectedCacheKey: string,
@@ -890,12 +898,7 @@ function resolvePluginLoadCacheContext(options: PluginLoadOptions = {}) {
890898const preferSetupRuntimeForChannelPlugins = options.preferSetupRuntimeForChannelPlugins === true;
891899const shouldInstallBundledRuntimeDeps = options.installBundledRuntimeDeps !== false;
892900const runtimeSubagentMode = resolveRuntimeSubagentMode(options.runtimeOptions);
893-const coreGatewayMethodNames = Array.from(
894-new Set([
895- ...(options.coreGatewayMethodNames ?? []),
896- ...Object.keys(options.coreGatewayHandlers ?? {}),
897-]),
898-).toSorted();
901+const coreGatewayMethodNames = resolveCoreGatewayMethodNames(options);
899902const installRecords = {
900903 ...loadInstalledPluginIndexInstallRecordsSync({ env }),
901904 ...cfg.plugins?.installs,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。