UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

23 lines (22 loc) • 1.17 kB
import { s as StartupMaintenanceRequiredError } from "./sqlite-user-version-D-rYjp-A.mjs"; //#region src/state/openclaw-state-db-schema-migration-required.ts const LEGACY_SKILL_WORKSHOP_COLLECTION_REVIEWS_INDEX = "idx_skill_workshop_collection_reviews_workspace_time"; var OpenClawStateDatabaseSchemaMigrationRequiredError = class extends StartupMaintenanceRequiredError { constructor(e, t) { super(e, `OpenClaw state database schema migration required (${e}) at ${t}; run openclaw doctor --fix to migrate it.`); this.kind = e; this.pathname = t; this.name = "OpenClawStateDatabaseSchemaMigrationRequiredError"; } }; /** Runtime readers report malformed legacy state without entering repair mode. */ function normalizeOpenClawStateSchemaReadError(e, t) { if (e instanceof Error && e.message.startsWith(`malformed database schema (${"idx_skill_workshop_collection_reviews_workspace_time"})`)) { const n = new OpenClawStateDatabaseSchemaMigrationRequiredError("legacy-workshop-review-index", t); n.cause = e; return n; } return e; } //#endregion export { normalizeOpenClawStateSchemaReadError as n, OpenClawStateDatabaseSchemaMigrationRequiredError as t };