





















@@ -1,7 +1,12 @@
11// Narrow public testing surface for plugin authors.
22// Keep this list additive and limited to helpers we are willing to support.
334-export { removeAckReactionAfterReply, shouldAckReaction } from "../channels/ack-reactions.js";
4+export {
5+createAckReactionHandle,
6+removeAckReactionAfterReply,
7+removeAckReactionHandleAfterReply,
8+shouldAckReaction,
9+} from "../channels/ack-reactions.js";
510export {
611expectChannelInboundContextContract,
712primeChannelOutboundSendMock,
@@ -23,10 +28,48 @@ export { setDefaultChannelPluginRegistryForTests } from "../commands/channel-tes
2328export type { ChannelAccountSnapshot } from "../channels/plugins/types.public.js";
2429export type { ChannelGatewayContext } from "../channels/plugins/types.adapters.js";
2530export type { OpenClawConfig } from "../config/config.js";
31+export { isAtLeast, parseSemver } from "../infra/runtime-guard.js";
2632export { callGateway } from "../gateway/call.js";
27-export { createEmptyPluginRegistry } from "../plugins/registry.js";
33+export { deliverOutboundPayloads } from "../infra/outbound/deliver.js";
34+export {
35+createEmptyPluginRegistry,
36+createPluginRegistry,
37+type PluginRecord,
38+} from "../plugins/registry.js";
39+export {
40+providerContractLoadError,
41+pluginRegistrationContractRegistry,
42+resolveProviderContractProvidersForPluginIds,
43+resolveWebFetchProviderContractEntriesForPluginId,
44+resolveWebSearchProviderContractEntriesForPluginId,
45+} from "../plugins/contracts/registry.js";
46+export { BUNDLED_PLUGIN_CONTRACT_SNAPSHOTS } from "../plugins/contracts/inventory/bundled-capability-metadata.js";
47+export { loadPluginManifestRegistry } from "../plugins/manifest-registry.js";
48+export { parseMinHostVersionRequirement } from "../plugins/min-host-version.js";
49+export { resolveBundledExplicitProviderContractsFromPublicArtifacts } from "../plugins/provider-contract-public-artifacts.js";
50+export {
51+expectAugmentedCodexCatalog,
52+expectedAugmentedOpenaiCodexCatalogEntriesWithGpt55,
53+expectCodexBuiltInSuppression,
54+expectCodexMissingAuthHint,
55+} from "../plugins/provider-runtime.test-support.js";
56+export {
57+initializeGlobalHookRunner,
58+resetGlobalHookRunner,
59+} from "../plugins/hook-runner-global.js";
60+export { addTestHook } from "../plugins/hooks.test-helpers.js";
61+export {
62+assertUniqueValues,
63+BUNDLED_RUNTIME_SIDECAR_PATHS,
64+} from "../plugins/runtime-sidecar-paths.js";
65+export { createPluginRecord } from "../plugins/status.test-helpers.js";
66+export {
67+resolveBundledExplicitWebFetchProvidersFromPublicArtifacts,
68+resolveBundledExplicitWebSearchProvidersFromPublicArtifacts,
69+} from "../plugins/web-provider-public-artifacts.explicit.js";
2870export {
2971getActivePluginRegistry,
72+releasePinnedPluginChannelRegistry,
3073resetPluginRuntimeStateForTest,
3174setActivePluginRegistry,
3275} from "../plugins/runtime.js";
@@ -35,8 +78,16 @@ export {
3578resetFacadeRuntimeStateForTest,
3679} from "./facade-runtime.js";
3780export { capturePluginRegistration } from "../plugins/captured-registration.js";
81+export { runProviderCatalog } from "../plugins/provider-discovery.js";
82+export {
83+buildProviderPluginMethodChoice,
84+resolveProviderModelPickerEntries,
85+resolveProviderWizardOptions,
86+setProviderWizardProvidersResolverForTest,
87+} from "../plugins/provider-wizard.js";
3888export { resolveProviderPluginChoice } from "../plugins/provider-auth-choice.runtime.js";
3989export type { PluginRuntime } from "../plugins/runtime/types.js";
90+export type { PluginHookRegistration } from "../plugins/hook-types.js";
4091export type { RuntimeEnv } from "../runtime.js";
4192export type { MockFn } from "../test-utils/vitest-mock-fn.js";
4293export {
@@ -105,7 +156,7 @@ export type {
105156} from "../video-generation/types.js";
106157export { jsonResponse, requestBodyText, requestUrl } from "../test-helpers/http.js";
107158export { mockPinnedHostnameResolution } from "../test-helpers/ssrf.js";
108-export { createTestRegistry } from "../test-utils/channel-plugins.js";
159+export { createOutboundTestPlugin, createTestRegistry } from "../test-utils/channel-plugins.js";
109160export { createWindowsCmdShimFixture } from "../test-helpers/windows-cmd-shim.js";
110161export { installCommonResolveTargetErrorCases } from "../test-helpers/resolve-target-error-cases.js";
111162export { sanitizeTerminalText } from "../terminal/safe-text.js";
@@ -117,6 +168,7 @@ export { withFetchPreconnect, type FetchMock } from "../test-utils/fetch-mock.js
117168export { createMockServerResponse } from "../test-utils/mock-http-response.js";
118169export {
119170registerProviderPlugin,
171+registerProviderPlugins,
120172registerSingleProviderPlugin,
121173requireRegisteredProvider,
122174type RegisteredProviderCollections,
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。