


























@@ -57,7 +57,10 @@ import {
5757import { createAuthRateLimiter, type AuthRateLimiter } from "./auth-rate-limit.js";
5858import { resolveGatewayAuth } from "./auth.js";
5959import { ADMIN_SCOPE } from "./method-scopes.js";
60-import { STARTUP_UNAVAILABLE_GATEWAY_METHODS } from "./methods/core-descriptors.js";
60+import {
61+STARTUP_UNAVAILABLE_GATEWAY_METHODS,
62+listCoreGatewayMethodNames,
63+} from "./methods/core-descriptors.js";
6164import {
6265createCoreGatewayMethodDescriptors,
6366createGatewayMethodDescriptorsFromHandlers,
@@ -663,6 +666,7 @@ export async function startGatewayServer(
663666 baseMethods,
664667 runtimePluginsLoaded,
665668} = pluginBootstrap;
669+const coreGatewayMethodNames = listCoreGatewayMethodNames();
666670setCurrentPluginMetadataSnapshot(pluginLookUpTable, {
667671config: startupActivationSourceConfig,
668672compatibleConfigs: [startupRuntimeConfig, cfgAtStart, gatewayPluginConfigAtStart],
@@ -1242,7 +1246,7 @@ export async function startGatewayServer(
12421246cfg: params.nextConfig,
12431247workspaceDir: defaultWorkspaceDir,
12441248 log,
1245-coreGatewayMethodNames: baseMethods,
1249+ coreGatewayMethodNames,
12461250hostServices: pluginHostServices,
12471251 baseMethods,
12481252pluginLookUpTable: nextPluginLookUpTable,
@@ -1376,7 +1380,7 @@ export async function startGatewayServer(
13761380activationSourceConfig: startupActivationSourceConfig,
13771381workspaceDir: defaultWorkspaceDir,
13781382 log,
1379-coreGatewayMethodNames: baseMethods,
1383+ coreGatewayMethodNames,
13801384hostServices: pluginHostServices,
13811385 baseMethods,
13821386pluginIds: startupPluginIds,
@@ -1487,6 +1491,7 @@ export async function startGatewayServer(
14871491workspaceDir: defaultWorkspaceDir,
14881492 log,
14891493 baseMethods,
1494+ coreGatewayMethodNames,
14901495hostServices: pluginHostServices,
14911496 startupPluginIds,
14921497 pluginLookUpTable,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。