Files
openclaw/extensions/whatsapp/doctor-contract-api.ts
Peter Steinberger 75dbe52e3e refactor: one code path behind doctor legacy-state migrations (#120716)
* 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
2026-08-08 18:23:15 -07:00

14 lines
543 B
TypeScript

// Whatsapp API module exposes the plugin public contract.
import { definePluginDoctorMigrationFromPlans } from "openclaw/plugin-sdk/runtime-doctor-migrations";
import { detectWhatsAppLegacyStateMigrations } from "./src/state-migrations.js";
export { legacyConfigRules, normalizeCompatibilityConfig } from "./src/doctor-contract.js";
export const stateMigrations = [
definePluginDoctorMigrationFromPlans({
id: "whatsapp-legacy-state",
label: "WhatsApp legacy state",
resolvePlans: detectWhatsAppLegacyStateMigrations,
}),
];