UNPKG

@receiz/mcp-server

Version:

MCP server for agents building and verifying Receiz proof-native applications through the canonical Receiz SDK rails.

18 lines • 941 B
import { persistReceizExactPlannedTransaction, restoreReceizExactPlannedTransaction } from "@receiz/sdk"; export function createReceizV122PlanCustody(storage) { return Object.freeze({ async persist(key, transaction) { const exact = await persistReceizExactPlannedTransaction(transaction); await storage.write(key, exact); return exact; }, async restore(key) { const exact = await storage.read(key); if (!exact) return null; return restoreReceizExactPlannedTransaction(exact); }, async recover(input) { const outcome = await input.lookup(); if (outcome.status !== "unknown") return outcome; const transaction = await this.restore(input.key); if (!transaction) throw new Error("V122_EXACT_PLAN_NOT_FOUND"); return input.executeExact(transaction); }, }); } //# sourceMappingURL=v122PlanCustody.js.map