Files
openclaw/extensions/discord/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
565 B
TypeScript

// Discord API module exposes the plugin public contract.
import { definePluginDoctorMigrationFromPlans } from "openclaw/plugin-sdk/runtime-doctor-migrations";
import { detectDiscordLegacyStateMigrations } from "./src/monitor/model-picker-preferences-migrations.js";
export { normalizeCompatibilityConfig, legacyConfigRules } from "./src/doctor-contract.js";
export const stateMigrations = [
definePluginDoctorMigrationFromPlans({
id: "discord-legacy-state",
label: "Discord legacy state",
resolvePlans: detectDiscordLegacyStateMigrations,
}),
];