UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

33 lines (32 loc) • 960 B
import { n as hasHermesSource, t as discoverHermesSource } from "./source-X80WhO21.js"; import { t as buildHermesPlan } from "./plan-C88l9ErS.js"; import { t as applyHermesPlan } from "./apply-BiNiq8RY.js"; //#region extensions/migrate-hermes/provider.ts function buildHermesMigrationProvider(params = {}) { return { id: "hermes", label: "Hermes", description: "Import Hermes config, memories, skills, and supported credentials.", async detect(ctx) { const source = await discoverHermesSource(ctx.source); const found = hasHermesSource(source); return { found, source: source.root, label: "Hermes", confidence: found ? "high" : "low", message: found ? "Hermes state found." : "Hermes state not found." }; }, plan: buildHermesPlan, async apply(ctx, plan) { return await applyHermesPlan({ ctx, plan, runtime: params.runtime }); } }; } //#endregion export { buildHermesMigrationProvider as t };