@receiz/mcp-server
Version:
MCP server for agents building and verifying Receiz proof-native applications through the canonical Receiz SDK rails.
27 lines • 1.01 kB
JavaScript
export function serializeReceizArtifactTransitionHistoryReport(input) {
if ((input.history === null) === (input.proofHistoryHead === null)) {
throw new TypeError("receiz_mcp_transition_history_invalid");
}
if (input.history !== null) {
return {
history: {
schema: input.history.schema,
artifactId: input.history.artifactId,
registryDigest: input.history.registryDigest,
headDigests: [...input.history.headDigests],
nodes: structuredClone(input.history.nodes),
historyReportIsProofAuthority: false,
},
proofHistoryHead: null,
};
}
return {
history: null,
proofHistoryHead: {
...structuredClone(input.proofHistoryHead),
proofHistoryHeadReportIsProofAuthority: false,
strongerTruth: "sealed-receiz-proof-object",
},
};
}
//# sourceMappingURL=artifactTransitionReport.js.map