mirror of
https://github.com/moltbot/moltbot.git
synced 2026-03-30 01:06:11 +00:00
refactor(plugin-sdk): route bundled runtime barrels through public subpaths
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -115,6 +115,8 @@
|
||||
"secret-input",
|
||||
"thread-ownership",
|
||||
"web-media",
|
||||
"zalo",
|
||||
"zalouser",
|
||||
"speech",
|
||||
"state-paths",
|
||||
"tool-send"
|
||||
|
||||
@@ -85,6 +85,7 @@ export {
|
||||
migrateBaseNameToDefaultAccount,
|
||||
} from "../channels/plugins/setup-helpers.js";
|
||||
export {
|
||||
clearAccountEntryFields,
|
||||
deleteAccountFromConfigSection,
|
||||
setAccountEnabledInConfigSection,
|
||||
} from "../channels/plugins/config-helpers.js";
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user