mirror of
https://fastgit.cc/github.com/openclaw/openclaw
synced 2026-04-30 14:02:56 +08:00
Keep bundled legacy migration discovery on narrow setup-entry surfaces so state-migration tests and doctor cold paths avoid unrelated channel runtime loads. Add targeted setup feature metadata, narrow Telegram/WhatsApp legacy contracts, and a path-only pairing SDK helper.
21 lines
561 B
TypeScript
21 lines
561 B
TypeScript
import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
|
|
|
|
export default defineBundledChannelSetupEntry({
|
|
importMetaUrl: import.meta.url,
|
|
features: {
|
|
legacyStateMigrations: true,
|
|
},
|
|
plugin: {
|
|
specifier: "./setup-plugin-api.js",
|
|
exportName: "telegramSetupPlugin",
|
|
},
|
|
legacyStateMigrations: {
|
|
specifier: "./legacy-state-migrations-api.js",
|
|
exportName: "detectTelegramLegacyStateMigrations",
|
|
},
|
|
secrets: {
|
|
specifier: "./secret-contract-api.js",
|
|
exportName: "channelSecrets",
|
|
},
|
|
});
|