mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-12 21:53:00 -06:00
75dbe52e3e
* refactor(doctor): prefer manifest route-state owners * refactor(doctor): unify config repair declarations * refactor(doctor): unify legacy state migrations * fix(doctor): satisfy migration pipeline guards * fix(plugin-sdk): keep doctor adapter inside boundary
14 lines
543 B
TypeScript
14 lines
543 B
TypeScript
// Telegram API module exposes the plugin public contract.
|
|
import { definePluginDoctorMigrationFromPlans } from "openclaw/plugin-sdk/runtime-doctor-migrations";
|
|
import { detectTelegramLegacyStateMigrations } from "./src/state-migrations.js";
|
|
|
|
export { normalizeCompatibilityConfig, legacyConfigRules } from "./src/doctor-contract.js";
|
|
|
|
export const stateMigrations = [
|
|
definePluginDoctorMigrationFromPlans({
|
|
id: "telegram-legacy-state",
|
|
label: "Telegram legacy state",
|
|
resolvePlans: detectTelegramLegacyStateMigrations,
|
|
}),
|
|
];
|