UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

33 lines (32 loc) 981 B
import { n as hasClaudeSource, t as discoverClaudeSource } from "./source-DbzFy4xH.js"; import { t as buildClaudePlan } from "./plan-Cw39Xvbn.js"; import { t as applyClaudePlan } from "./apply-BCqDJTyD.js"; //#region extensions/migrate-claude/provider.ts function buildClaudeMigrationProvider(params = {}) { return { id: "claude", label: "Claude", description: "Import Claude Code and Claude Desktop instructions, MCP servers, and skills.", async detect(ctx) { const source = await discoverClaudeSource(ctx.source); const found = hasClaudeSource(source); return { found, source: source.root, label: "Claude", confidence: found ? source.confidence : "low", message: found ? "Claude state found." : "Claude state not found." }; }, plan: buildClaudePlan, async apply(ctx, plan) { return await applyClaudePlan({ ctx, plan, runtime: params.runtime }); } }; } //#endregion export { buildClaudeMigrationProvider as t };