Skip to main content
我会严格保留原有 Markdown/HTML 结构,只翻译可见文本内容,并先检查是否有仓库级说明会影响这类文档翻译。先快速确认一下仓库指引与需要保留的格式边界,然后直接给出翻译结果。--- summary: “插件 SDK 的子路径目录:按领域分组说明各类导入位置” read_when:
  • 为插件导入选择合适的 plugin-sdk 子路径
  • 审核 bundled-plugin 子路径和 helper 接口面 title: “插件 SDK 子路径”

插件 SDK 作为一组窄范围的公共子路径暴露在 openclaw/plugin-sdk/ 下。本页按用途整理了常用子路径。生成的编译器入口清单位于 scripts/lib/plugin-sdk-entrypoints.json;包导出是在扣除 scripts/lib/plugin-sdk-private-local-only-subpaths.json 中列出的仓库本地测试/内部子路径后的公共子集。维护者可以使用 pnpm plugin-sdk:surface 审核公共导出数量,并使用 pnpm plugins:boundary-report:summary 查看当前保留的 helper 子路径;未使用的保留 helper 导出会在 CI 报告中失败,而不会继续作为公共 SDK 中惰性的兼容性债务存在。 有关插件编写指南,请参见 Plugin SDK overview

插件入口

子路径主要导出
plugin-sdk/plugin-entrydefinePluginEntry
plugin-sdk/coredefineChannelPluginEntry, createChatChannelPlugin, createChannelPluginBase, defineSetupPluginEntry, buildChannelConfigSchema, buildJsonChannelConfigSchema
plugin-sdk/config-schemaOpenClawSchema
plugin-sdk/provider-entrydefineSingleProviderPluginEntry
plugin-sdk/migration迁移 provider item helper,例如 createMigrationItem、原因常量、item 状态标记、脱敏 helper,以及 summarizeMigrationItems
plugin-sdk/migration-runtime运行时迁移 helper,例如 copyMigrationFileItemwithCachedMigrationConfigRuntimewriteMigrationReport
plugin-sdk/health面向 bundled health consumer 的 Doctor 健康检查注册、检测、修复、选择、严重级别和 finding 类型

已弃用的兼容性和测试 helper

Deprecated subpaths stay exported for older plugins, but new code should use the focused SDK subpaths below. The maintained list is scripts/lib/plugin-sdk-deprecated-public-subpaths.json; CI rejects bundled production imports from it. Broad barrels such as compat, config-types, infra-runtime, text-runtime, and zod are compatibility only. Import zod directly from zod. OpenClaw’s Vitest-backed test-helper subpaths are repo-local only and are no longer package exports: agent-runtime-test-contracts, channel-contract-testing, channel-target-testing, channel-test-helpers, plugin-test-api, plugin-test-contracts, plugin-test-runtime, provider-http-test-mocks, provider-test-contracts, test-env, test-fixtures, test-node-mocks, and testing.

保留的 bundled plugin helper 子路径

这些子路径是面向其所属 bundled plugin 的插件自有兼容性表面,不是通用 SDK API:plugin-sdk/codex-mcp-projectionplugin-sdk/codex-native-task-runtime。跨所有者的扩展导入会被包契约防护机制阻止。
子路径主要导出
plugin-sdk/channel-coredefineChannelPluginEntry, defineSetupPluginEntry, createChatChannelPlugin, createChannelPluginBase
plugin-sdk/config-schemaopenclaw.json 的 Zod schema 导出(OpenClawSchema
plugin-sdk/json-schema-runtime面向插件自有 schema 的缓存 JSON Schema 验证 helper
plugin-sdk/channel-setupcreateOptionalChannelSetupSurface, createOptionalChannelSetupAdapter, createOptionalChannelSetupWizard,以及 DEFAULT_ACCOUNT_IDcreateTopLevelChannelDmPolicysetSetupChannelEnabledsplitSetupEntries
plugin-sdk/setup共享 setup 向导 helper、setup translator、allowlist 提示、setup 状态构建器
plugin-sdk/setup-runtimecreateSetupTranslator, createPatchedAccountSetupAdapter, createEnvPatchedAccountSetupAdapter, createSetupInputPresenceValidator, noteChannelLookupFailure, noteChannelLookupSummary, promptResolvedAllowFrom, splitSetupEntries, createAllowlistSetupWizardProxy, createDelegatedSetupWizardProxy
plugin-sdk/setup-adapter-runtime已弃用的兼容性别名;请使用 plugin-sdk/setup-runtime
plugin-sdk/setup-toolsformatCliCommand, detectBinary, extractArchive, resolveBrewExecutable, formatDocsLink, CONFIG_DIR
plugin-sdk/account-core多账号 config/action-gate helper,默认账号回退 helper
plugin-sdk/account-idDEFAULT_ACCOUNT_ID,账号 ID 规范化 helper
plugin-sdk/account-resolution账号查找 + 默认回退 helper
plugin-sdk/account-helpers窄范围账号列表/账号动作 helper
plugin-sdk/access-groups访问组 allowlist 解析和脱敏组诊断 helper
plugin-sdk/channel-pairingcreateChannelPairingController
plugin-sdk/channel-reply-pipeline已弃用的兼容性门面。请使用 plugin-sdk/channel-outbound
plugin-sdk/channel-config-helperscreateHybridChannelConfigAdapter, resolveChannelDmAccess, resolveChannelDmAllowFrom, resolveChannelDmPolicy, normalizeChannelDmPolicy, normalizeLegacyDmAliases
plugin-sdk/channel-config-schema共享 channel config schema 基元,以及 Zod 和直接 JSON/TypeBox 构建器
plugin-sdk/bundled-channel-config-schema仅供受维护的 bundled plugin 使用的 Bundled OpenClaw channel config schemas
plugin-sdk/chat-channel-idsBUNDLED_CHAT_CHANNEL_IDS, BUNDLED_CHAT_CHANNEL_ENVELOPE_PREFIXES, ChatChannelId。为需要识别 envelope 前缀文本、且不想硬编码自身表的插件提供规范化的 bundled/official chat channel ids 及格式化标签/别名。
plugin-sdk/channel-config-schema-legacybundled-channel config schemas 的已弃用兼容性别名
plugin-sdk/telegram-command-config带 bundled-contract 回退的 Telegram 自定义命令规范化/验证 helper
plugin-sdk/command-gating窄范围命令授权门控 helper
plugin-sdk/channel-policyresolveChannelGroupRequireMention
plugin-sdk/channel-ingress已弃用的低层 channel ingress 兼容性门面。新的接收路径应使用 plugin-sdk/channel-ingress-runtime
plugin-sdk/channel-ingress-runtime面向已迁移 channel 接收路径的实验性高层 channel ingress runtime resolver 和 route fact builder。请优先使用它,而不是在每个插件中各自组装有效 allowlist、命令 allowlist 和旧版投影。参见 Channel ingress API
plugin-sdk/channel-lifecycle已弃用的兼容性门面。请使用 plugin-sdk/channel-outbound
plugin-sdk/channel-outbound消息生命周期契约,以及 reply pipeline 选项、回执、实时预览/流式处理、生命周期 helper、outbound 身份、payload 规划、持久化发送和消息发送上下文 helper。参见 Channel outbound API
plugin-sdk/channel-messageplugin-sdk/channel-outbound 的已弃用兼容性别名,外加旧版 reply-dispatch 门面。
plugin-sdk/channel-message-runtimeplugin-sdk/channel-outbound 的已弃用兼容性别名,外加旧版 reply-dispatch 门面。
plugin-sdk/inbound-envelope共享 inbound route + envelope builder helper
plugin-sdk/inbound-reply-dispatch已弃用的兼容性门面。入站 runner 和 dispatch predicate 请使用 plugin-sdk/channel-inbound,消息投递 helper 请使用 plugin-sdk/channel-outbound
plugin-sdk/messaging-targets已弃用的 target 解析别名;请使用 plugin-sdk/channel-targets
plugin-sdk/outbound-media共享 outbound media 加载和 hosted-media 状态 helper
plugin-sdk/outbound-send-deps已弃用的兼容性门面。请使用 plugin-sdk/channel-outbound
plugin-sdk/outbound-runtime已弃用的兼容性门面。请使用 plugin-sdk/channel-outbound
plugin-sdk/poll-runtime窄范围 poll 规范化 helper
plugin-sdk/thread-bindings-runtime线程绑定生命周期和适配器 helper
plugin-sdk/agent-media-payload旧版 agent media payload 构建器
plugin-sdk/conversation-runtimeconversation/thread 绑定、配对和已配置绑定 helper
plugin-sdk/runtime-config-snapshot运行时 config snapshot helper
plugin-sdk/runtime-group-policy运行时 group-policy 解析 helper
plugin-sdk/channel-status共享 channel status snapshot/summary helper
plugin-sdk/channel-config-primitives窄范围 channel config-schema 基元
plugin-sdk/channel-config-writeschannel config 写入授权 helper
plugin-sdk/channel-plugin-common共享 channel plugin prelude 导出
plugin-sdk/allowlist-config-editallowlist config 编辑/读取 helper
plugin-sdk/group-access共享 group-access 决策 helper
plugin-sdk/direct-dm, plugin-sdk/direct-dm-access已弃用的兼容性门面。请使用 plugin-sdk/channel-inbound
plugin-sdk/direct-dm-guard-policy窄范围 direct-DM pre-crypto guard policy helper
plugin-sdk/discord面向已发布 @openclaw/[email protected] 及已跟踪 owner 兼容性的已弃用 Discord 兼容性门面;新插件应使用通用 channel SDK 子路径
plugin-sdk/telegram-account面向已跟踪 owner 兼容性的已弃用 Telegram account-resolution 兼容性门面;新插件应使用注入的 runtime helper 或通用 channel SDK 子路径
plugin-sdk/zalouser面向已发布仍导入 sender command authorization 的 Lark/Zalo 包的已弃用 Zalo Personal 兼容性门面;新插件应使用 plugin-sdk/command-auth
plugin-sdk/interactive-runtime语义化消息呈现、投递和旧版 interactive reply helper。参见 Message Presentation
plugin-sdk/channel-inbound用于事件分类、上下文构建、格式化、根、debounce、mention 匹配、mention-policy 和 inbound logging 的共享入站 helper
plugin-sdk/channel-inbound-debounce窄范围 inbound debounce helper
plugin-sdk/channel-mention-gating不含更广泛 inbound runtime 表面的窄范围 mention-policy、mention marker 和 mention text helper
plugin-sdk/channel-envelope, plugin-sdk/channel-inbound-roots, plugin-sdk/channel-location, plugin-sdk/channel-logging已弃用的兼容性门面。请使用 plugin-sdk/channel-inboundplugin-sdk/channel-outbound
plugin-sdk/channel-pairing-paths已弃用的兼容性门面。请使用 plugin-sdk/channel-pairing
plugin-sdk/channel-reply-options-runtime已弃用的兼容性门面。请使用 plugin-sdk/channel-outbound
plugin-sdk/channel-streaming已弃用的兼容性门面。请使用 plugin-sdk/channel-outbound
plugin-sdk/channel-send-resultreply 结果类型
plugin-sdk/channel-actionschannel message-action helper,外加为插件兼容性保留的已弃用 native schema helper
plugin-sdk/channel-route共享 route 规范化、基于 parser 的 target 解析、thread-id 字符串化、route key 去重/压缩、parsed-target 类型,以及 route/target 比较 helper
plugin-sdk/channel-targetstarget 解析 helper;route 比较调用方应使用 plugin-sdk/channel-route
plugin-sdk/channel-contractchannel contract 类型
plugin-sdk/channel-feedbackfeedback/reaction 接线
plugin-sdk/channel-secret-runtime窄范围 secret-contract helper,例如 collectSimpleChannelFieldAssignmentsgetChannelSurfacepushAssignment 以及 secret target 类型
Deprecated channel helper families stay available only for published-plugin compatibility. The removal plan is: keep them through the external plugin migration window, keep repo/bundled plugins on channel-inbound and channel-outbound, then remove the compatibility subpaths in the next major SDK cleanup. This applies to the old channel message/runtime, channel streaming, direct-DM access, inbound helper splinter, reply-options, and pairing-path families.
SubpathKey exports
plugin-sdk/provider-entrydefineSingleProviderPluginEntry
plugin-sdk/lmstudioSupported LM Studio provider facade for setup, catalog discovery, and runtime model preparation
plugin-sdk/lmstudio-runtimeSupported LM Studio runtime facade for local server defaults, model discovery, request headers, and loaded-model helpers
plugin-sdk/provider-setupCurated local/self-hosted provider setup helpers
plugin-sdk/self-hosted-provider-setupFocused OpenAI-compatible self-hosted provider setup helpers
plugin-sdk/cli-backendCLI backend defaults + watchdog constants
plugin-sdk/provider-auth-runtimeRuntime API-key resolution helpers for provider plugins
plugin-sdk/provider-oauth-runtimeGeneric provider OAuth callback types, callback-page rendering, PKCE/state helpers, authorization-input parsing, token-expiry helpers, and abort helpers
plugin-sdk/provider-auth-api-keyAPI-key onboarding/profile-write helpers such as upsertApiKeyProfile
plugin-sdk/provider-auth-resultStandard OAuth auth-result builder
plugin-sdk/provider-env-varsProvider auth env-var lookup helpers
plugin-sdk/provider-authcreateProviderApiKeyAuthMethod, ensureApiKeyFromOptionEnvOrPrompt, upsertAuthProfile, upsertApiKeyProfile, writeOAuthCredentials, OpenAI Codex auth-import helpers, deprecated resolveOpenClawAgentDir compatibility export
plugin-sdk/provider-model-sharedProviderReplayFamily, buildProviderReplayFamilyHooks, normalizeModelCompat, shared replay-policy builders, provider-endpoint helpers, and shared model-id normalization helpers
plugin-sdk/provider-catalog-live-runtimeLive provider model catalog helpers for guarded /models-style discovery: buildLiveModelProviderConfig, fetchLiveProviderModelRows, getCachedLiveProviderModelRows, fetchLiveProviderModelIds, LiveModelCatalogHttpError, clearLiveCatalogCacheForTests, model-id filtering, TTL cache, and static fallback
plugin-sdk/provider-catalog-runtimeProvider catalog augmentation runtime hook and plugin-provider registry seams for contract tests
plugin-sdk/provider-catalog-sharedfindCatalogTemplate, buildSingleProviderApiKeyCatalog, buildManifestModelProviderConfig, supportsNativeStreamingUsageCompat, applyProviderNativeStreamingUsageCompat
plugin-sdk/provider-httpGeneric provider HTTP/endpoint capability helpers, provider HTTP errors, and audio transcription multipart form helpers
plugin-sdk/provider-web-fetch-contractNarrow web-fetch config/selection contract helpers such as enablePluginInConfig and WebFetchProviderPlugin
plugin-sdk/provider-web-fetchWeb-fetch provider registration/cache helpers
plugin-sdk/provider-web-search-config-contractNarrow web-search config/credential helpers for providers that do not need plugin-enable wiring
plugin-sdk/provider-web-search-contractNarrow web-search config/credential contract helpers such as createWebSearchProviderContractFields, enablePluginInConfig, resolveProviderWebSearchPluginConfig, and scoped credential setters/getters
plugin-sdk/provider-web-searchWeb-search provider registration/cache/runtime helpers
plugin-sdk/embedding-providersGeneral embedding provider types and read helpers, including EmbeddingProviderAdapter, getEmbeddingProvider(...), and listEmbeddingProviders(...); plugins register providers through api.registerEmbeddingProvider(...) so manifest ownership is enforced
plugin-sdk/provider-toolsProviderToolCompatFamily, buildProviderToolCompatFamilyHooks, and DeepSeek/Gemini/OpenAI schema cleanup + diagnostics
plugin-sdk/provider-usageProvider usage snapshot types, shared usage fetch helpers, and provider fetchers such as fetchClaudeUsage
plugin-sdk/provider-streamProviderStreamFamily, buildProviderStreamFamilyHooks, composeProviderStreamWrappers, stream wrapper types, plain-text tool-call compat, and shared Anthropic/Bedrock/DeepSeek V4/Google/Kilocode/Moonshot/OpenAI/OpenRouter/Z.A.I/MiniMax/Copilot wrapper helpers
plugin-sdk/provider-stream-sharedPublic shared provider stream wrapper helpers including composeProviderStreamWrappers, createPlainTextToolCallCompatWrapper, createPayloadPatchStreamWrapper, createToolStreamWrapper, and Anthropic/DeepSeek/OpenAI-compatible stream utilities
plugin-sdk/provider-transport-runtimeNative provider transport helpers such as guarded fetch, transport message transforms, and writable transport event streams
plugin-sdk/provider-onboardOnboarding config patch helpers
plugin-sdk/global-singletonProcess-local singleton/map/cache helpers
plugin-sdk/group-activationNarrow group activation mode and command parsing helpers
Provider usage snapshots normally report one or more quota windows, each with a label, percent used, and optional reset time. Providers that expose balance or account-state text instead of resettable quota windows should return summary with an empty windows array rather than fabricating percentages. OpenClaw displays that summary text in status output; use error only when the usage endpoint failed or returned no usable usage data.
SubpathKey exports
plugin-sdk/command-authresolveControlCommandGate, command registry helpers including dynamic argument menu formatting, sender-authorization helpers
plugin-sdk/command-statusCommand/help message builders such as buildCommandsMessagePaginated and buildHelpMessage
plugin-sdk/approval-auth-runtimeApprover resolution and same-chat action-auth helpers
plugin-sdk/approval-client-runtimeNative exec approval profile/filter helpers
plugin-sdk/approval-delivery-runtimeNative approval capability/delivery adapters
plugin-sdk/approval-gateway-runtimeShared approval gateway-resolution helper
plugin-sdk/approval-handler-adapter-runtimeLightweight native approval adapter loading helpers for hot channel entrypoints
plugin-sdk/approval-handler-runtimeBroader approval handler runtime helpers; prefer the narrower adapter/gateway seams when they are enough
plugin-sdk/approval-native-runtimeNative approval target, account-binding, route-gate, forwarding fallback, and local native exec prompt suppression helpers
plugin-sdk/approval-reaction-runtimeHardcoded approval reaction bindings, reaction prompt payloads, reaction target stores, and compatibility export for local native exec prompt suppression
plugin-sdk/approval-reply-runtimeExec/plugin approval reply payload helpers
plugin-sdk/approval-runtimeExec/plugin approval payload helpers, native approval routing/runtime helpers, and structured approval display helpers such as formatApprovalDisplayPath
plugin-sdk/reply-dedupeNarrow inbound reply dedupe reset helpers
plugin-sdk/channel-contract-testingNarrow channel contract test helpers without the broad testing barrel
plugin-sdk/command-auth-nativeNative command auth, dynamic argument menu formatting, and native session-target helpers
plugin-sdk/command-detectionShared command detection helpers
plugin-sdk/command-primitives-runtimeLightweight command text predicates for hot channel paths
plugin-sdk/command-surfaceCommand-body normalization and command-surface helpers
plugin-sdk/allow-fromformatAllowFromLowercase
plugin-sdk/channel-secret-runtimeNarrow secret-contract collection helpers for channel/plugin secret surfaces
plugin-sdk/secret-ref-runtimeNarrow coerceSecretRef and SecretRef typing helpers for secret-contract/config parsing
plugin-sdk/secret-provider-integrationType-only SecretRef provider integration manifest and preset contracts for plugins that publish external secret provider presets
plugin-sdk/security-runtimeShared trust, DM gating, root-bounded file/path helpers including create-only writes, sync/async atomic file replacement, sibling temp writes, cross-device move fallback, private file-store helpers, symlink-parent guards, external-content, sensitive text redaction, constant-time secret comparison, and secret-collection helpers
plugin-sdk/ssrf-policyHost allowlist and private-network SSRF policy helpers
plugin-sdk/ssrf-dispatcherNarrow pinned-dispatcher helpers without the broad infra runtime surface
plugin-sdk/ssrf-runtimePinned-dispatcher, SSRF-guarded fetch, SSRF error, and SSRF policy helpers
plugin-sdk/secret-inputSecret input parsing helpers
plugin-sdk/webhook-ingressWebhook request/target helpers and raw websocket/body coercion
plugin-sdk/webhook-request-guardsRequest body size/timeout helpers
子路径主要导出
plugin-sdk/media-runtime共享媒体抓取/转换/存储 helper,包括 saveRemoteMediasaveResponseMediareadRemoteMediaBuffer 和已弃用的 fetchRemoteMedia;当 URL 应转换为 OpenClaw 媒体时,应优先使用存储 helper,再进行 buffer 读取
plugin-sdk/media-mime窄范围 MIME 规范化、文件扩展名映射、MIME 检测和 media-kind helper
plugin-sdk/media-store窄范围媒体存储 helper,例如 saveMediaBuffersaveMediaStream
plugin-sdk/media-generation-runtime共享媒体生成故障转移 helper、候选项选择和缺失模型消息提示
plugin-sdk/media-understanding媒体理解 provider 类型,以及面向 provider 的图像/音频/结构化提取 helper 导出
plugin-sdk/text-chunking文本和 Markdown 分块/渲染 helper、Markdown 表格转换、directive-tag 清理以及安全文本工具
plugin-sdk/text-chunking输出文本分块 helper
plugin-sdk/speech语音 provider 类型,以及面向 provider 的 directive、registry、验证、OpenAI 兼容 TTS 构建器和语音 helper 导出
plugin-sdk/speech-core共享语音 provider 类型、registry、directive、规范化和语音 helper 导出
plugin-sdk/realtime-transcription实时转写 provider 类型、registry helper 和共享 WebSocket session helper
plugin-sdk/realtime-bootstrap-context面向受限 IDENTITY.mdUSER.mdSOUL.md 上下文注入的实时 profile 引导 helper
plugin-sdk/realtime-voice实时语音 provider 类型、registry helper 和共享实时语音行为 helper,包括输出活动跟踪
plugin-sdk/image-generation图像生成 provider 类型,以及图像资源/data URL helper 和 OpenAI 兼容图像 provider 构建器
plugin-sdk/image-generation-core共享图像生成类型、故障转移、认证和 registry helper
plugin-sdk/music-generation音乐生成 provider/请求/结果类型
plugin-sdk/music-generation-core共享音乐生成类型、故障转移 helper、provider 查找和 model-ref 解析
plugin-sdk/video-generation视频生成 provider/请求/结果类型
plugin-sdk/video-generation-core共享视频生成类型、故障转移 helper、provider 查找和 model-ref 解析
plugin-sdk/transcripts共享 transcripts source provider 类型、registry helper、session 描述符和 utterance 元数据
plugin-sdk/webhook-targetswebhook target registry 和 route-install helper
plugin-sdk/webhook-path已弃用的兼容性别名;请使用 plugin-sdk/webhook-ingress
plugin-sdk/web-media共享远程/本地媒体加载 helper
plugin-sdk/zod已弃用的兼容性重新导出;请直接从 zod 导入 zod
plugin-sdk/testing仓库本地、面向旧版 OpenClaw 测试的已弃用兼容性 barrel。新的仓库测试应改为导入聚焦的本地测试子路径,例如 plugin-sdk/agent-runtime-test-contractsplugin-sdk/plugin-test-runtimeplugin-sdk/channel-test-helpersplugin-sdk/test-envplugin-sdk/test-fixtures
plugin-sdk/plugin-test-api仓库本地、用于直接插件注册单元测试的最小 createTestPluginApi helper,不导入仓库测试 helper 桥接层
plugin-sdk/agent-runtime-test-contracts仓库本地、面向 native agent-runtime adapter contract 的 auth、delivery、fallback、tool-hook、prompt-overlay、schema 和 transcript projection 测试夹具
plugin-sdk/channel-test-helpers仓库本地、面向 channel 的测试 helper,用于通用 actions/setup/status 契约、目录断言、账号启动生命周期、send-config 线程、runtime mocks、status issues、outbound delivery 和 hook registration
plugin-sdk/channel-target-testing仓库本地、面向 channel 测试的共享 target-resolution 错误案例套件
plugin-sdk/plugin-test-contracts仓库本地、面向 plugin 包、注册、公开产物、直接导入、runtime API 和导入副作用的契约 helper
plugin-sdk/provider-test-contracts仓库本地、面向 provider runtime、auth、discovery、onboard、catalog、wizard、media capability、replay policy、realtime STT live-audio、web-search/fetch 和 stream 的契约 helper
plugin-sdk/provider-http-test-mocks仓库本地、面向使用 plugin-sdk/provider-http 的 provider 测试的可选 Vitest HTTP/auth mocks
plugin-sdk/test-fixtures仓库本地、通用 CLI runtime capture、sandbox 上下文、skill writer、agent-message、system-event、module reload、bundled plugin path、terminal-text、chunking、auth-token 和 typed-case 夹具
plugin-sdk/test-node-mocks仓库本地、用于 Vitest vi.mock("node:*") 工厂内部的精简 Node builtin mock helper
子路径主要导出
plugin-sdk/memory-coreBundled memory-core helper surface for manager/config/file/CLI helpers
plugin-sdk/memory-core-engine-runtimeMemory index/search runtime facade
plugin-sdk/memory-core-host-embedding-registryLightweight memory embedding provider registry helpers
plugin-sdk/memory-core-host-engine-foundationMemory host foundation engine exports
plugin-sdk/memory-core-host-engine-embeddingsMemory host embedding contracts, registry access, local provider, and generic batch/remote helpers. registerMemoryEmbeddingProvider on this surface is deprecated; use the generic embedding provider API for new providers.
plugin-sdk/memory-core-host-engine-qmdMemory host QMD engine exports
plugin-sdk/memory-core-host-engine-storageMemory host storage engine exports
plugin-sdk/memory-core-host-multimodalMemory host multimodal helpers
plugin-sdk/memory-core-host-queryMemory host query helpers
plugin-sdk/memory-core-host-secretMemory host secret helpers
plugin-sdk/memory-core-host-events已弃用的兼容性别名;请使用 plugin-sdk/memory-host-events
plugin-sdk/memory-core-host-statusMemory host status helpers
plugin-sdk/memory-core-host-runtime-cliMemory host CLI runtime helpers
plugin-sdk/memory-core-host-runtime-coreMemory host core runtime helpers
plugin-sdk/memory-core-host-runtime-filesMemory host file/runtime helpers
plugin-sdk/memory-host-corememory host core runtime helper 的供应商中立别名
plugin-sdk/memory-host-eventsmemory host event journal helper 的供应商中立别名
plugin-sdk/memory-host-files已弃用的兼容性别名;请使用 plugin-sdk/memory-core-host-runtime-files
plugin-sdk/memory-host-markdown面向 memory 邻近插件的共享 managed-markdown helper
plugin-sdk/memory-host-search用于 search-manager 访问的活动 memory runtime 门面
plugin-sdk/memory-host-status已弃用的兼容性别名;请使用 plugin-sdk/memory-core-host-status
保留的 bundled-helper SDK 子路径是面向 bundled plugin 代码的窄范围、所有者专属表面。它们会在 SDK 清单中跟踪,以便包构建和别名保持确定性,但它们不是通用插件编写 API。新的可复用 host 契约应使用通用 SDK 子路径,例如 plugin-sdk/gateway-runtimeplugin-sdk/security-runtimeplugin-sdk/plugin-config-runtime
子路径所有者与用途
plugin-sdk/codex-mcp-projectionbundled Codex plugin helper,用于将用户 MCP server config 投影到 Codex app-server thread config
plugin-sdk/codex-native-task-runtimebundled Codex plugin helper,用于将 Codex app-server native subagents 镜像到 OpenClaw task state

相关内容