mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-29 01:52:04 +00:00
refactor: remove generated plugin sdk facades
This commit is contained in:
@@ -39,16 +39,13 @@
|
||||
"ssrf-policy",
|
||||
"ssrf-runtime",
|
||||
"media-runtime",
|
||||
"media-understanding-runtime",
|
||||
"conversation-runtime",
|
||||
"matrix-runtime-heavy",
|
||||
"matrix-runtime-shared",
|
||||
"thread-bindings-runtime",
|
||||
"together",
|
||||
"text-runtime",
|
||||
"text-chunking",
|
||||
"agent-runtime",
|
||||
"speech-runtime",
|
||||
"speech-core",
|
||||
"plugin-runtime",
|
||||
"security-runtime",
|
||||
@@ -72,21 +69,15 @@
|
||||
"account-id",
|
||||
"account-resolution",
|
||||
"agent-config-primitives",
|
||||
"amazon-bedrock",
|
||||
"allow-from",
|
||||
"allowlist-config-edit",
|
||||
"anthropic-vertex",
|
||||
"bluebubbles",
|
||||
"bluebubbles-policy",
|
||||
"browser",
|
||||
"browser-runtime",
|
||||
"browser-config-support",
|
||||
"browser-support",
|
||||
"boolean-param",
|
||||
"dangerous-name-runtime",
|
||||
"cloudflare-ai-gateway",
|
||||
"byteplus",
|
||||
"chutes",
|
||||
"command-auth",
|
||||
"command-auth-native",
|
||||
"command-detection",
|
||||
@@ -94,7 +85,6 @@
|
||||
"collection-runtime",
|
||||
"compat",
|
||||
"direct-dm",
|
||||
"deepseek",
|
||||
"device-bootstrap",
|
||||
"diagnostic-runtime",
|
||||
"diagnostics-otel",
|
||||
@@ -122,9 +112,7 @@
|
||||
"file-lock",
|
||||
"fetch-runtime",
|
||||
"group-access",
|
||||
"google",
|
||||
"global-singleton",
|
||||
"huggingface",
|
||||
"directory-runtime",
|
||||
"googlechat",
|
||||
"image-generation",
|
||||
@@ -133,8 +121,6 @@
|
||||
"video-generation-core",
|
||||
"irc",
|
||||
"irc-surface",
|
||||
"kimi-coding",
|
||||
"kilocode",
|
||||
"reply-history",
|
||||
"realtime-transcription",
|
||||
"realtime-voice",
|
||||
@@ -171,24 +157,12 @@
|
||||
"memory-core-host-runtime-core",
|
||||
"memory-core-host-runtime-files",
|
||||
"memory-lancedb",
|
||||
"minimax",
|
||||
"qwen",
|
||||
"qwen-definitions",
|
||||
"modelstudio",
|
||||
"modelstudio-definitions",
|
||||
"moonshot",
|
||||
"mistral",
|
||||
"msteams",
|
||||
"models-provider-runtime",
|
||||
"skill-commands-runtime",
|
||||
"native-command-registry",
|
||||
"nextcloud-talk",
|
||||
"nvidia",
|
||||
"nostr",
|
||||
"openai",
|
||||
"opencode",
|
||||
"opencode-go",
|
||||
"qianfan",
|
||||
"provider-auth",
|
||||
"provider-auth-runtime",
|
||||
"provider-auth-api-key",
|
||||
@@ -200,7 +174,6 @@
|
||||
"provider-env-vars",
|
||||
"provider-http",
|
||||
"provider-model-shared",
|
||||
"provider-moonshot",
|
||||
"provider-onboard",
|
||||
"provider-stream",
|
||||
"provider-tools",
|
||||
@@ -215,27 +188,21 @@
|
||||
"channel-status",
|
||||
"status-helpers",
|
||||
"speech",
|
||||
"sglang",
|
||||
"session-store-runtime",
|
||||
"string-normalization-runtime",
|
||||
"state-paths",
|
||||
"synthetic",
|
||||
"target-resolver-runtime",
|
||||
"telegram-command-config",
|
||||
"thread-ownership",
|
||||
"tlon",
|
||||
"tool-send",
|
||||
"twitch",
|
||||
"venice",
|
||||
"vllm",
|
||||
"xai",
|
||||
"webhook-ingress",
|
||||
"webhook-targets",
|
||||
"webhook-request-guards",
|
||||
"webhook-path",
|
||||
"web-media",
|
||||
"voice-call",
|
||||
"volcengine",
|
||||
"zalo",
|
||||
"zalo-setup",
|
||||
"zalouser",
|
||||
|
||||
@@ -12,34 +12,6 @@ function runtimeApiSourcePath(dirName) {
|
||||
}
|
||||
|
||||
export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
{
|
||||
subpath: "amazon-bedrock",
|
||||
source: pluginSource("amazon-bedrock", "api.js"),
|
||||
exports: [
|
||||
"discoverBedrockModels",
|
||||
"mergeImplicitBedrockProvider",
|
||||
"resetBedrockDiscoveryCacheForTest",
|
||||
"resolveBedrockConfigApiKey",
|
||||
"resolveImplicitBedrockProvider",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "anthropic-vertex",
|
||||
source: pluginSource("anthropic-vertex", "api.js"),
|
||||
exports: [
|
||||
"ANTHROPIC_VERTEX_DEFAULT_MODEL_ID",
|
||||
"buildAnthropicVertexProvider",
|
||||
"hasAnthropicVertexAvailableAuth",
|
||||
"hasAnthropicVertexCredentials",
|
||||
"mergeImplicitAnthropicVertexProvider",
|
||||
"resolveAnthropicVertexClientRegion",
|
||||
"resolveAnthropicVertexConfigApiKey",
|
||||
"resolveImplicitAnthropicVertexProvider",
|
||||
"resolveAnthropicVertexProjectId",
|
||||
"resolveAnthropicVertexRegion",
|
||||
"resolveAnthropicVertexRegionFromBaseUrl",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "anthropic-cli",
|
||||
source: pluginSource("anthropic", "api.js"),
|
||||
@@ -66,186 +38,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
"registerBrowserCli",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "browser-runtime",
|
||||
source: pluginSource("browser", "runtime-api.js"),
|
||||
loadPolicy: "activated",
|
||||
directExports: {
|
||||
DEFAULT_AI_SNAPSHOT_MAX_CHARS: "./browser-config.js",
|
||||
DEFAULT_BROWSER_EVALUATE_ENABLED: "./browser-config.js",
|
||||
DEFAULT_OPENCLAW_BROWSER_COLOR: "./browser-config.js",
|
||||
DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME: "./browser-config.js",
|
||||
DEFAULT_UPLOAD_DIR: "./browser-config.js",
|
||||
closeTrackedBrowserTabsForSessions: "./browser-maintenance.js",
|
||||
movePathToTrash: "./browser-maintenance.js",
|
||||
parseBrowserMajorVersion: "./browser-host-inspection.js",
|
||||
redactCdpUrl: "./browser-config.js",
|
||||
readBrowserVersion: "./browser-host-inspection.js",
|
||||
resolveBrowserConfig: "./browser-config.js",
|
||||
resolveBrowserControlAuth: "./browser-config.js",
|
||||
resolveGoogleChromeExecutableForPlatform: "./browser-host-inspection.js",
|
||||
resolveProfile: "./browser-config.js",
|
||||
},
|
||||
exports: [
|
||||
"BrowserBridge",
|
||||
"BrowserCreateProfileResult",
|
||||
"BrowserDeleteProfileResult",
|
||||
"BrowserExecutable",
|
||||
"BrowserFormField",
|
||||
"BrowserResetProfileResult",
|
||||
"BrowserRouteRegistrar",
|
||||
"BrowserServerState",
|
||||
"BrowserStatus",
|
||||
"BrowserTab",
|
||||
"BrowserTransport",
|
||||
"DEFAULT_AI_SNAPSHOT_MAX_CHARS",
|
||||
"DEFAULT_BROWSER_EVALUATE_ENABLED",
|
||||
"DEFAULT_OPENCLAW_BROWSER_COLOR",
|
||||
"DEFAULT_OPENCLAW_BROWSER_PROFILE_NAME",
|
||||
"DEFAULT_UPLOAD_DIR",
|
||||
"OpenClawPluginApi",
|
||||
"OpenClawPluginToolContext",
|
||||
"OpenClawPluginToolFactory",
|
||||
"ProfileStatus",
|
||||
"ResolvedBrowserConfig",
|
||||
"ResolvedBrowserProfile",
|
||||
"SnapshotResult",
|
||||
"applyBrowserProxyPaths",
|
||||
"browserAct",
|
||||
"browserArmDialog",
|
||||
"browserArmFileChooser",
|
||||
"browserCloseTab",
|
||||
"browserConsoleMessages",
|
||||
"browserCreateProfile",
|
||||
"browserDeleteProfile",
|
||||
"browserFocusTab",
|
||||
"browserHandlers",
|
||||
"browserNavigate",
|
||||
"browserOpenTab",
|
||||
"browserPdfSave",
|
||||
"browserProfiles",
|
||||
"browserResetProfile",
|
||||
"browserScreenshotAction",
|
||||
"browserSnapshot",
|
||||
"browserStart",
|
||||
"browserStatus",
|
||||
"browserStop",
|
||||
"browserTabAction",
|
||||
"browserTabs",
|
||||
"closeTrackedBrowserTabsForSessions",
|
||||
"createBrowserControlContext",
|
||||
"createBrowserPluginService",
|
||||
"createBrowserRouteContext",
|
||||
"createBrowserRouteDispatcher",
|
||||
"createBrowserRuntimeState",
|
||||
"createBrowserTool",
|
||||
"definePluginEntry",
|
||||
"ensureBrowserControlAuth",
|
||||
"getBrowserControlState",
|
||||
"getBrowserProfileCapabilities",
|
||||
"handleBrowserGatewayRequest",
|
||||
"installBrowserAuthMiddleware",
|
||||
"installBrowserCommonMiddleware",
|
||||
"isPersistentBrowserProfileMutation",
|
||||
"movePathToTrash",
|
||||
"normalizeBrowserFormField",
|
||||
"normalizeBrowserFormFieldValue",
|
||||
"normalizeBrowserRequestPath",
|
||||
"parseBrowserMajorVersion",
|
||||
"persistBrowserProxyFiles",
|
||||
"readBrowserVersion",
|
||||
"redactCdpUrl",
|
||||
"registerBrowserCli",
|
||||
"registerBrowserRoutes",
|
||||
"resolveBrowserConfig",
|
||||
"resolveBrowserControlAuth",
|
||||
"resolveExistingPathsWithinRoot",
|
||||
"resolveGoogleChromeExecutableForPlatform",
|
||||
"resolveProfile",
|
||||
"resolveRequestedBrowserProfile",
|
||||
"runBrowserProxyCommand",
|
||||
"startBrowserBridgeServer",
|
||||
"startBrowserControlServiceFromConfig",
|
||||
"stopBrowserBridgeServer",
|
||||
"stopBrowserControlService",
|
||||
"stopBrowserRuntime",
|
||||
"trackSessionBrowserTab",
|
||||
"untrackSessionBrowserTab",
|
||||
],
|
||||
typeExports: [
|
||||
"BrowserBridge",
|
||||
"BrowserCreateProfileResult",
|
||||
"BrowserDeleteProfileResult",
|
||||
"BrowserExecutable",
|
||||
"BrowserFormField",
|
||||
"BrowserResetProfileResult",
|
||||
"BrowserRouteRegistrar",
|
||||
"BrowserServerState",
|
||||
"BrowserStatus",
|
||||
"BrowserTab",
|
||||
"BrowserTransport",
|
||||
"OpenClawPluginApi",
|
||||
"OpenClawPluginToolContext",
|
||||
"OpenClawPluginToolFactory",
|
||||
"ProfileStatus",
|
||||
"ResolvedBrowserConfig",
|
||||
"ResolvedBrowserProfile",
|
||||
"SnapshotResult",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "cloudflare-ai-gateway",
|
||||
source: pluginSource("cloudflare-ai-gateway", "api.js"),
|
||||
exports: [
|
||||
"applyCloudflareAiGatewayConfig",
|
||||
"applyCloudflareAiGatewayProviderConfig",
|
||||
"buildCloudflareAiGatewayConfigPatch",
|
||||
"buildCloudflareAiGatewayModelDefinition",
|
||||
"CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_ID",
|
||||
"CLOUDFLARE_AI_GATEWAY_DEFAULT_MODEL_REF",
|
||||
"CLOUDFLARE_AI_GATEWAY_PROVIDER_ID",
|
||||
"resolveCloudflareAiGatewayBaseUrl",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "byteplus",
|
||||
source: pluginSource("byteplus", "api.js"),
|
||||
exports: [
|
||||
"buildBytePlusCodingProvider",
|
||||
"buildBytePlusModelDefinition",
|
||||
"buildBytePlusProvider",
|
||||
"BYTEPLUS_BASE_URL",
|
||||
"BYTEPLUS_CODING_BASE_URL",
|
||||
"BYTEPLUS_CODING_MODEL_CATALOG",
|
||||
"BYTEPLUS_MODEL_CATALOG",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "chutes",
|
||||
source: pluginSource("chutes", "api.js"),
|
||||
exports: [
|
||||
"applyChutesApiKeyConfig",
|
||||
"applyChutesConfig",
|
||||
"applyChutesProviderConfig",
|
||||
"buildChutesModelDefinition",
|
||||
"buildChutesProvider",
|
||||
"CHUTES_BASE_URL",
|
||||
"CHUTES_DEFAULT_MODEL_ID",
|
||||
"CHUTES_DEFAULT_MODEL_REF",
|
||||
"CHUTES_MODEL_CATALOG",
|
||||
"discoverChutesModels",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "deepseek",
|
||||
source: pluginSource("deepseek", "api.js"),
|
||||
exports: [
|
||||
"buildDeepSeekModelDefinition",
|
||||
"buildDeepSeekProvider",
|
||||
"DEEPSEEK_BASE_URL",
|
||||
"DEEPSEEK_MODEL_CATALOG",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "feishu-conversation",
|
||||
source: pluginSource("feishu", "api.js"),
|
||||
@@ -259,26 +51,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
"parseFeishuTargetId",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "google",
|
||||
source: pluginSource("google", "api.js"),
|
||||
exports: [
|
||||
"applyGoogleGeminiModelDefault",
|
||||
"DEFAULT_GOOGLE_API_BASE_URL",
|
||||
"GOOGLE_GEMINI_DEFAULT_MODEL",
|
||||
"isGoogleGenerativeAiApi",
|
||||
"normalizeAntigravityModelId",
|
||||
"normalizeGoogleApiBaseUrl",
|
||||
"normalizeGoogleGenerativeAiBaseUrl",
|
||||
"normalizeGoogleModelId",
|
||||
"normalizeGoogleProviderConfig",
|
||||
"parseGeminiAuth",
|
||||
"resolveGoogleGenerativeAiApiOrigin",
|
||||
"resolveGoogleGenerativeAiTransport",
|
||||
"shouldNormalizeGoogleProviderConfig",
|
||||
"shouldNormalizeGoogleGenerativeAiProviderConfig",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "feishu-setup",
|
||||
source: pluginSource("feishu", "api.js"),
|
||||
@@ -289,20 +61,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
source: pluginSource("github-copilot", "api.js"),
|
||||
exports: ["githubCopilotLoginCommand"],
|
||||
},
|
||||
{
|
||||
subpath: "huggingface",
|
||||
source: pluginSource("huggingface", "api.js"),
|
||||
exports: [
|
||||
"buildHuggingfaceModelDefinition",
|
||||
"buildHuggingfaceProvider",
|
||||
"discoverHuggingfaceModels",
|
||||
"HUGGINGFACE_BASE_URL",
|
||||
"HUGGINGFACE_DEFAULT_MODEL_REF",
|
||||
"HUGGINGFACE_MODEL_CATALOG",
|
||||
"HUGGINGFACE_POLICY_SUFFIXES",
|
||||
"isHuggingfacePolicyLocked",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "image-generation-runtime",
|
||||
source: pluginSource("image-generation-core", "runtime-api.js"),
|
||||
@@ -315,42 +73,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
],
|
||||
typeExports: ["GenerateImageParams", "GenerateImageRuntimeResult"],
|
||||
},
|
||||
{
|
||||
subpath: "video-generation-runtime",
|
||||
source: pluginSource("video-generation-core", "runtime-api.js"),
|
||||
loadPolicy: "activated",
|
||||
exports: [
|
||||
"generateVideo",
|
||||
"listRuntimeVideoGenerationProviders",
|
||||
"GenerateVideoParams",
|
||||
"GenerateVideoRuntimeResult",
|
||||
],
|
||||
typeExports: ["GenerateVideoParams", "GenerateVideoRuntimeResult"],
|
||||
},
|
||||
{
|
||||
subpath: "kimi-coding",
|
||||
source: pluginSource("kimi-coding", "api.js"),
|
||||
exports: ["buildKimiCodingProvider"],
|
||||
},
|
||||
{
|
||||
subpath: "kilocode",
|
||||
source: pluginSource("kilocode", "api.js"),
|
||||
exports: [
|
||||
"buildKilocodeProvider",
|
||||
"buildKilocodeProviderWithDiscovery",
|
||||
"buildKilocodeModelDefinition",
|
||||
"discoverKilocodeModels",
|
||||
"KILOCODE_BASE_URL",
|
||||
"KILOCODE_DEFAULT_CONTEXT_WINDOW",
|
||||
"KILOCODE_DEFAULT_COST",
|
||||
"KILOCODE_DEFAULT_MAX_TOKENS",
|
||||
"KILOCODE_DEFAULT_MODEL_ID",
|
||||
"KILOCODE_DEFAULT_MODEL_NAME",
|
||||
"KILOCODE_DEFAULT_MODEL_REF",
|
||||
"KILOCODE_MODELS_URL",
|
||||
"KILOCODE_MODEL_CATALOG",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "irc-surface",
|
||||
source: pluginSource("irc", "api.js"),
|
||||
@@ -362,21 +84,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
"resolveIrcAccount",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "media-understanding-runtime",
|
||||
source: pluginSource("media-understanding-core", "runtime-api.js"),
|
||||
loadPolicy: "activated",
|
||||
exports: [
|
||||
"describeImageFile",
|
||||
"describeImageFileWithModel",
|
||||
"describeVideoFile",
|
||||
"runMediaUnderstandingFile",
|
||||
"transcribeAudioFile",
|
||||
"RunMediaUnderstandingFileParams",
|
||||
"RunMediaUnderstandingFileResult",
|
||||
],
|
||||
typeExports: ["RunMediaUnderstandingFileParams", "RunMediaUnderstandingFileResult"],
|
||||
},
|
||||
{
|
||||
subpath: "memory-core-engine-runtime",
|
||||
source: pluginSource("memory-core", "runtime-api.js"),
|
||||
@@ -530,270 +237,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
"OPENROUTER_DEFAULT_MODEL_REF",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "minimax",
|
||||
source: pluginSource("minimax", "api.js"),
|
||||
exports: [
|
||||
"applyMinimaxApiConfig",
|
||||
"applyMinimaxApiConfigCn",
|
||||
"applyMinimaxApiProviderConfig",
|
||||
"applyMinimaxApiProviderConfigCn",
|
||||
"buildMinimaxPortalProvider",
|
||||
"buildMinimaxProvider",
|
||||
"isMiniMaxModernModelId",
|
||||
"MINIMAX_API_BASE_URL",
|
||||
"MINIMAX_CN_API_BASE_URL",
|
||||
"MINIMAX_DEFAULT_MODEL_ID",
|
||||
"MINIMAX_DEFAULT_MODEL_REF",
|
||||
"MINIMAX_TEXT_MODEL_CATALOG",
|
||||
"MINIMAX_TEXT_MODEL_ORDER",
|
||||
"MINIMAX_TEXT_MODEL_REFS",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "qwen",
|
||||
source: pluginSource("qwen", "api.js"),
|
||||
exports: [
|
||||
"applyQwenNativeStreamingUsageCompat",
|
||||
"buildQwenDefaultModelDefinition",
|
||||
"buildQwenModelDefinition",
|
||||
"QWEN_BASE_URL",
|
||||
"QWEN_CN_BASE_URL",
|
||||
"QWEN_DEFAULT_COST",
|
||||
"QWEN_DEFAULT_MODEL_ID",
|
||||
"QWEN_DEFAULT_MODEL_REF",
|
||||
"QWEN_GLOBAL_BASE_URL",
|
||||
"QWEN_STANDARD_CN_BASE_URL",
|
||||
"QWEN_STANDARD_GLOBAL_BASE_URL",
|
||||
"QWEN_MODEL_CATALOG",
|
||||
"isNativeQwenBaseUrl",
|
||||
"buildQwenProvider",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "qwen-definitions",
|
||||
source: pluginSource("qwen", "api.js"),
|
||||
exports: [
|
||||
"buildQwenDefaultModelDefinition",
|
||||
"buildQwenModelDefinition",
|
||||
"QWEN_CN_BASE_URL",
|
||||
"QWEN_DEFAULT_COST",
|
||||
"QWEN_DEFAULT_MODEL_ID",
|
||||
"QWEN_DEFAULT_MODEL_REF",
|
||||
"QWEN_GLOBAL_BASE_URL",
|
||||
"QWEN_STANDARD_CN_BASE_URL",
|
||||
"QWEN_STANDARD_GLOBAL_BASE_URL",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "modelstudio",
|
||||
source: pluginSource("qwen", "api.js"),
|
||||
exports: [
|
||||
"applyModelStudioNativeStreamingUsageCompat",
|
||||
"buildModelStudioDefaultModelDefinition",
|
||||
"buildModelStudioModelDefinition",
|
||||
"MODELSTUDIO_BASE_URL",
|
||||
"MODELSTUDIO_CN_BASE_URL",
|
||||
"MODELSTUDIO_DEFAULT_COST",
|
||||
"MODELSTUDIO_DEFAULT_MODEL_ID",
|
||||
"MODELSTUDIO_DEFAULT_MODEL_REF",
|
||||
"MODELSTUDIO_GLOBAL_BASE_URL",
|
||||
"MODELSTUDIO_STANDARD_CN_BASE_URL",
|
||||
"MODELSTUDIO_STANDARD_GLOBAL_BASE_URL",
|
||||
"MODELSTUDIO_MODEL_CATALOG",
|
||||
"isNativeModelStudioBaseUrl",
|
||||
"buildModelStudioProvider",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "modelstudio-definitions",
|
||||
source: pluginSource("qwen", "api.js"),
|
||||
exports: [
|
||||
"buildModelStudioDefaultModelDefinition",
|
||||
"buildModelStudioModelDefinition",
|
||||
"MODELSTUDIO_CN_BASE_URL",
|
||||
"MODELSTUDIO_DEFAULT_COST",
|
||||
"MODELSTUDIO_DEFAULT_MODEL_ID",
|
||||
"MODELSTUDIO_DEFAULT_MODEL_REF",
|
||||
"MODELSTUDIO_GLOBAL_BASE_URL",
|
||||
"MODELSTUDIO_STANDARD_CN_BASE_URL",
|
||||
"MODELSTUDIO_STANDARD_GLOBAL_BASE_URL",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "moonshot",
|
||||
source: pluginSource("moonshot", "api.js"),
|
||||
exports: [
|
||||
"applyMoonshotNativeStreamingUsageCompat",
|
||||
"buildMoonshotProvider",
|
||||
"isNativeMoonshotBaseUrl",
|
||||
"MOONSHOT_BASE_URL",
|
||||
"MOONSHOT_CN_BASE_URL",
|
||||
"MOONSHOT_DEFAULT_MODEL_ID",
|
||||
"MOONSHOT_DEFAULT_MODEL_REF",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "mistral",
|
||||
source: pluginSource("mistral", "api.js"),
|
||||
exports: [
|
||||
"applyMistralConfig",
|
||||
"applyMistralProviderConfig",
|
||||
"buildMistralModelDefinition",
|
||||
"buildMistralProvider",
|
||||
"MISTRAL_BASE_URL",
|
||||
"MISTRAL_DEFAULT_MODEL_ID",
|
||||
"MISTRAL_DEFAULT_MODEL_REF",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "nvidia",
|
||||
source: pluginSource("nvidia", "api.js"),
|
||||
exports: ["buildNvidiaProvider"],
|
||||
},
|
||||
{
|
||||
subpath: "openai",
|
||||
source: pluginSource("openai", "api.js"),
|
||||
exports: [
|
||||
"applyOpenAIConfig",
|
||||
"applyOpenAIProviderConfig",
|
||||
"buildOpenAICodexProvider",
|
||||
"buildOpenAIProvider",
|
||||
"OPENAI_CODEX_DEFAULT_MODEL",
|
||||
"OPENAI_DEFAULT_AUDIO_TRANSCRIPTION_MODEL",
|
||||
"OPENAI_DEFAULT_EMBEDDING_MODEL",
|
||||
"OPENAI_DEFAULT_IMAGE_MODEL",
|
||||
"OPENAI_DEFAULT_MODEL",
|
||||
"OPENAI_DEFAULT_TTS_MODEL",
|
||||
"OPENAI_DEFAULT_TTS_VOICE",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "opencode",
|
||||
source: pluginSource("opencode", "api.js"),
|
||||
exports: [
|
||||
"applyOpencodeZenConfig",
|
||||
"applyOpencodeZenModelDefault",
|
||||
"applyOpencodeZenProviderConfig",
|
||||
"OPENCODE_ZEN_DEFAULT_MODEL",
|
||||
"OPENCODE_ZEN_DEFAULT_MODEL_REF",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "opencode-go",
|
||||
source: pluginSource("opencode-go", "api.js"),
|
||||
exports: [
|
||||
"applyOpencodeGoConfig",
|
||||
"applyOpencodeGoModelDefault",
|
||||
"applyOpencodeGoProviderConfig",
|
||||
"OPENCODE_GO_DEFAULT_MODEL_REF",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "qianfan",
|
||||
source: pluginSource("qianfan", "api.js"),
|
||||
exports: ["QIANFAN_BASE_URL", "QIANFAN_DEFAULT_MODEL_ID", "buildQianfanProvider"],
|
||||
},
|
||||
{
|
||||
subpath: "provider-reasoning",
|
||||
source: pluginSource("ollama", "api.js"),
|
||||
exports: ["isReasoningModelHeuristic"],
|
||||
},
|
||||
{
|
||||
subpath: "speech-runtime",
|
||||
source: pluginSource("speech-core", "runtime-api.js"),
|
||||
loadPolicy: "activated",
|
||||
exports: [
|
||||
"_test",
|
||||
"buildTtsSystemPromptHint",
|
||||
"getLastTtsAttempt",
|
||||
"getResolvedSpeechProviderConfig",
|
||||
"getTtsMaxLength",
|
||||
"getTtsProvider",
|
||||
"isSummarizationEnabled",
|
||||
"isTtsEnabled",
|
||||
"isTtsProviderConfigured",
|
||||
"listSpeechVoices",
|
||||
"maybeApplyTtsToPayload",
|
||||
"ResolvedTtsConfig",
|
||||
"ResolvedTtsModelOverrides",
|
||||
"resolveTtsAutoMode",
|
||||
"resolveTtsConfig",
|
||||
"resolveTtsPrefsPath",
|
||||
"resolveTtsProviderOrder",
|
||||
"setLastTtsAttempt",
|
||||
"setSummarizationEnabled",
|
||||
"setTtsAutoMode",
|
||||
"setTtsEnabled",
|
||||
"setTtsMaxLength",
|
||||
"setTtsProvider",
|
||||
"synthesizeSpeech",
|
||||
"textToSpeech",
|
||||
"textToSpeechTelephony",
|
||||
"TtsDirectiveOverrides",
|
||||
"TtsDirectiveParseResult",
|
||||
"TtsResult",
|
||||
"TtsSynthesisResult",
|
||||
"TtsTelephonyResult",
|
||||
],
|
||||
typeExports: [
|
||||
"ResolvedTtsConfig",
|
||||
"ResolvedTtsModelOverrides",
|
||||
"TtsDirectiveOverrides",
|
||||
"TtsDirectiveParseResult",
|
||||
"TtsResult",
|
||||
"TtsSynthesisResult",
|
||||
"TtsTelephonyResult",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "sglang",
|
||||
source: pluginSource("sglang", "api.js"),
|
||||
exports: [
|
||||
"buildSglangProvider",
|
||||
"SGLANG_DEFAULT_API_KEY_ENV_VAR",
|
||||
"SGLANG_DEFAULT_BASE_URL",
|
||||
"SGLANG_MODEL_PLACEHOLDER",
|
||||
"SGLANG_PROVIDER_LABEL",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "synthetic",
|
||||
source: pluginSource("synthetic", "api.js"),
|
||||
exports: [
|
||||
"applySyntheticConfig",
|
||||
"applySyntheticProviderConfig",
|
||||
"buildSyntheticModelDefinition",
|
||||
"buildSyntheticProvider",
|
||||
"SYNTHETIC_BASE_URL",
|
||||
"SYNTHETIC_DEFAULT_MODEL_REF",
|
||||
"SYNTHETIC_MODEL_CATALOG",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "together",
|
||||
source: pluginSource("together", "api.js"),
|
||||
exports: [
|
||||
"applyTogetherConfig",
|
||||
"buildTogetherModelDefinition",
|
||||
"buildTogetherProvider",
|
||||
"TOGETHER_BASE_URL",
|
||||
"TOGETHER_DEFAULT_MODEL_REF",
|
||||
"TOGETHER_MODEL_CATALOG",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "venice",
|
||||
source: pluginSource("venice", "api.js"),
|
||||
exports: [
|
||||
"buildVeniceModelDefinition",
|
||||
"buildVeniceProvider",
|
||||
"discoverVeniceModels",
|
||||
"VENICE_BASE_URL",
|
||||
"VENICE_DEFAULT_MODEL_REF",
|
||||
"VENICE_MODEL_CATALOG",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "vercel-ai-gateway",
|
||||
source: pluginSource("vercel-ai-gateway", "api.js"),
|
||||
@@ -810,53 +253,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
"VERCEL_AI_GATEWAY_PROVIDER_ID",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "volcengine",
|
||||
source: pluginSource("volcengine", "api.js"),
|
||||
exports: [
|
||||
"buildDoubaoCodingProvider",
|
||||
"buildDoubaoModelDefinition",
|
||||
"buildDoubaoProvider",
|
||||
"DOUBAO_BASE_URL",
|
||||
"DOUBAO_CODING_BASE_URL",
|
||||
"DOUBAO_CODING_MODEL_CATALOG",
|
||||
"DOUBAO_MODEL_CATALOG",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "vllm",
|
||||
source: pluginSource("vllm", "api.js"),
|
||||
exports: [
|
||||
"buildVllmProvider",
|
||||
"VLLM_DEFAULT_API_KEY_ENV_VAR",
|
||||
"VLLM_DEFAULT_BASE_URL",
|
||||
"VLLM_MODEL_PLACEHOLDER",
|
||||
"VLLM_PROVIDER_LABEL",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "xai",
|
||||
source: pluginSource("xai", "api.js"),
|
||||
exports: [
|
||||
"applyXaiConfig",
|
||||
"applyXaiProviderConfig",
|
||||
"applyXaiModelCompat",
|
||||
"buildXaiCatalogModels",
|
||||
"buildXaiModelDefinition",
|
||||
"buildXaiProvider",
|
||||
"HTML_ENTITY_TOOL_CALL_ARGUMENTS_ENCODING",
|
||||
"isModernXaiModel",
|
||||
"normalizeXaiModelId",
|
||||
"resolveXaiCatalogEntry",
|
||||
"resolveXaiForwardCompatModel",
|
||||
"XAI_BASE_URL",
|
||||
"XAI_DEFAULT_CONTEXT_WINDOW",
|
||||
"XAI_DEFAULT_MODEL_ID",
|
||||
"XAI_DEFAULT_MODEL_REF",
|
||||
"XAI_DEFAULT_MAX_TOKENS",
|
||||
"XAI_TOOL_SCHEMA_PROFILE",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "xiaomi",
|
||||
source: pluginSource("xiaomi", "api.js"),
|
||||
@@ -882,31 +278,6 @@ export const GENERATED_PLUGIN_SDK_FACADES = [
|
||||
"ZAI_GLOBAL_BASE_URL",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "whatsapp-surface",
|
||||
source: pluginSource("whatsapp", "api.js"),
|
||||
exportSources: {
|
||||
DEFAULT_WEB_MEDIA_BYTES: pluginSource("whatsapp", "constants.js"),
|
||||
},
|
||||
exports: [
|
||||
"DEFAULT_WEB_MEDIA_BYTES",
|
||||
"hasAnyWhatsAppAuth",
|
||||
"listEnabledWhatsAppAccounts",
|
||||
"listWhatsAppDirectoryGroupsFromConfig",
|
||||
"listWhatsAppDirectoryPeersFromConfig",
|
||||
"resolveWhatsAppAccount",
|
||||
"resolveWhatsAppGroupRequireMention",
|
||||
"resolveWhatsAppGroupToolPolicy",
|
||||
"resolveWhatsAppOutboundTarget",
|
||||
"whatsappAccessControlTesting",
|
||||
],
|
||||
typeExports: [
|
||||
"WebChannelStatus",
|
||||
"WebInboundMessage",
|
||||
"WebListenerCloseReason",
|
||||
"WebMonitorTuning",
|
||||
],
|
||||
},
|
||||
{
|
||||
subpath: "zalo-setup",
|
||||
source: pluginSource("zalo", "api.js"),
|
||||
|
||||
Reference in New Issue
Block a user