refactor(plugin-sdk): route bundled runtime barrels through public subpaths

This commit is contained in:
Vincent Koc
2026-03-20 10:18:20 -07:00
parent fb3550ef5e
commit a2e1991ed3
6 changed files with 72 additions and 5 deletions

View File

@@ -1,2 +1,41 @@
export type {
ChannelPlugin,
OpenClawConfig,
OpenClawPluginApi,
PluginRuntime,
} from "openclaw/plugin-sdk/core";
export { buildChannelConfigSchema, clearAccountEntryFields } from "openclaw/plugin-sdk/core";
export type { ReplyPayload } from "openclaw/plugin-sdk/reply-runtime";
export type { ChannelAccountSnapshot, ChannelGatewayContext } from "openclaw/plugin-sdk/testing";
export type { ChannelStatusIssue } from "openclaw/plugin-sdk/channel-runtime";
export {
buildComputedAccountStatusSnapshot,
buildTokenChannelStatusSummary,
} from "openclaw/plugin-sdk/channel-runtime";
export type {
CardAction,
LineChannelData,
LineConfig,
ListItem,
ResolvedLineAccount,
} from "openclaw/plugin-sdk/line-core";
export {
createActionCard,
createImageCard,
createInfoCard,
createListCard,
createReceiptCard,
DEFAULT_ACCOUNT_ID,
formatDocsLink,
LineConfigSchema,
listLineAccountIds,
normalizeAccountId,
processLineMessage,
resolveDefaultLineAccountId,
resolveExactLineGroupConfigKey,
resolveLineAccount,
setSetupChannelEnabled,
splitSetupEntries,
} from "openclaw/plugin-sdk/line-core";
export * from "./runtime-api.js";
export * from "./setup-api.js";

View File

@@ -1,12 +1,19 @@
// Private runtime barrel for the bundled LINE extension.
// Keep this barrel thin and aligned with the local extension surface.
export * from "openclaw/plugin-sdk/line";
export { resolveExactLineGroupConfigKey } from "openclaw/plugin-sdk/line-core";
export type { OpenClawConfig } from "openclaw/plugin-sdk/line-core";
export type { ChannelSetupDmPolicy, ChannelSetupWizard } from "openclaw/plugin-sdk/channel-setup";
export type { LineConfig, ResolvedLineAccount } from "openclaw/plugin-sdk/line-core";
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
export {
DEFAULT_ACCOUNT_ID,
formatDocsLink,
LineConfigSchema,
listLineAccountIds,
normalizeAccountId,
resolveDefaultLineAccountId,
resolveExactLineGroupConfigKey,
resolveLineAccount,
setSetupChannelEnabled,
splitSetupEntries,
type ChannelSetupDmPolicy,
type ChannelSetupWizard,
} from "openclaw/plugin-sdk/line-core";

View File

@@ -501,6 +501,14 @@
"types": "./dist/plugin-sdk/web-media.d.ts",
"default": "./dist/plugin-sdk/web-media.js"
},
"./plugin-sdk/zalo": {
"types": "./dist/plugin-sdk/zalo.d.ts",
"default": "./dist/plugin-sdk/zalo.js"
},
"./plugin-sdk/zalouser": {
"types": "./dist/plugin-sdk/zalouser.d.ts",
"default": "./dist/plugin-sdk/zalouser.js"
},
"./plugin-sdk/speech": {
"types": "./dist/plugin-sdk/speech.d.ts",
"default": "./dist/plugin-sdk/speech.js"

View File

@@ -115,6 +115,8 @@
"secret-input",
"thread-ownership",
"web-media",
"zalo",
"zalouser",
"speech",
"state-paths",
"tool-send"

View File

@@ -85,6 +85,7 @@ export {
migrateBaseNameToDefaultAccount,
} from "../channels/plugins/setup-helpers.js";
export {
clearAccountEntryFields,
deleteAccountFromConfigSection,
setAccountEnabledInConfigSection,
} from "../channels/plugins/config-helpers.js";

View File

@@ -1,5 +1,5 @@
export type { OpenClawConfig } from "../config/config.js";
export type { LineConfig } from "../line/types.js";
export type { LineChannelData, LineConfig } from "../line/types.js";
export {
createTopLevelChannelDmPolicy,
DEFAULT_ACCOUNT_ID,
@@ -18,3 +18,13 @@ export {
export { resolveExactLineGroupConfigKey } from "../line/group-keys.js";
export type { ResolvedLineAccount } from "../line/types.js";
export { LineConfigSchema } from "../line/config-schema.js";
export {
createActionCard,
createImageCard,
createInfoCard,
createListCard,
createReceiptCard,
type CardAction,
type ListItem,
} from "../line/flex-templates.js";
export { processLineMessage } from "../line/markdown-to-line.js";