refactor: trim onboarding sdk exports

This commit is contained in:
Peter Steinberger 2026-03-15 19:14:21 -07:00
parent ec93398d7b
commit 60bf58ddbc
No known key found for this signature in database
6 changed files with 2 additions and 24 deletions

View File

@ -28,7 +28,7 @@ Contents (examples):
- Config helpers: `buildChannelConfigSchema`, `setAccountEnabledInConfigSection`, `deleteAccountFromConfigSection`,
`applyAccountNameToChannelSection`.
- Pairing helpers: `PAIRING_APPROVED_MESSAGE`, `formatPairingApproveHint`.
- Onboarding helpers: `promptChannelAccessConfig`, `addWildcardAllowFrom`, onboarding types.
- Setup entry points: host-owned `setup` + `setupWizard`; avoid broad public onboarding helpers.
- Tool param helpers: `createActionGate`, `readStringParam`, `readNumberParam`, `readReactionParams`, `jsonResult`.
- Docs link helper: `formatDocsLink`.

View File

@ -1 +0,0 @@
export { promptAccountId, resolveAccountIdForConfigure } from "openclaw/plugin-sdk/mattermost";

View File

@ -34,8 +34,6 @@ export { resolveChannelMediaMaxBytes } from "../channels/plugins/media-limits.js
export {
addWildcardAllowFrom,
mergeAllowFromEntries,
promptAccountId,
resolveAccountIdForConfigure,
setTopLevelChannelDmPolicyWithAllowFrom,
} from "../channels/plugins/onboarding/helpers.js";
export { PAIRING_APPROVED_MESSAGE } from "../channels/plugins/pairing-message.js";

View File

@ -615,21 +615,6 @@ export {
} from "../channels/plugins/helpers.js";
export { PAIRING_APPROVED_MESSAGE } from "../channels/plugins/pairing-message.js";
export type {
ChannelOnboardingAdapter,
ChannelOnboardingDmPolicy,
} from "../channels/plugins/onboarding-types.js";
export {
addWildcardAllowFrom,
mergeAllowFromEntries,
promptAccountId,
resolveAccountIdForConfigure,
setTopLevelChannelAllowFrom,
setTopLevelChannelDmPolicyWithAllowFrom,
setTopLevelChannelGroupPolicy,
} from "../channels/plugins/onboarding/helpers.js";
export { promptChannelAccessConfig } from "../channels/plugins/onboarding/channel-access.js";
export {
createActionGate,
jsonResult,
@ -801,6 +786,7 @@ export {
resolveDefaultLineAccountId,
resolveLineAccount,
} from "../line/accounts.js";
export { lineSetupAdapter, lineSetupWizard } from "../../extensions/line/src/setup-surface.js";
export { LineConfigSchema } from "../line/config-schema.js";
export type {
LineConfig,

View File

@ -28,13 +28,10 @@ export {
export { buildChannelConfigSchema } from "../channels/plugins/config-schema.js";
export { formatPairingApproveHint } from "../channels/plugins/helpers.js";
export { resolveChannelMediaMaxBytes } from "../channels/plugins/media-limits.js";
export type { ChannelOnboardingAdapter } from "../channels/plugins/onboarding-types.js";
export {
buildSingleChannelSecretPromptState,
promptAccountId,
promptSingleChannelSecretInput,
runSingleChannelSecretStep,
resolveAccountIdForConfigure,
} from "../channels/plugins/onboarding/helpers.js";
export {
applyAccountNameToChannelSection,

View File

@ -21,10 +21,8 @@ export {
buildSingleChannelSecretPromptState,
addWildcardAllowFrom,
mergeAllowFromEntries,
promptAccountId,
promptSingleChannelSecretInput,
runSingleChannelSecretStep,
resolveAccountIdForConfigure,
setTopLevelChannelDmPolicyWithAllowFrom,
} from "../channels/plugins/onboarding/helpers.js";
export {