Add Zapier interface simulator, tree-node Merkle lookups, and user docs
Some checks are pending
offline / test (push) Waiting to run

In-process trace console validates hops, faults, recoveries, and
suggested changes before zapier-platform push. User guide covers
signup through central-chain and bulk-summary tree-node hash lookup.
This commit is contained in:
George Lambert 2026-09-11 12:58:03 -04:00
parent 3daa88866d
commit f3dc0e6eee
56 changed files with 2341 additions and 8 deletions

View file

@ -41,13 +41,26 @@ export function aggregateAttached({ sha256, tenantId, kinds = ['publicMeta', 'pr
* @param {object[]} archiveRecords
*/
export function mergeReceipts(chainReceipts, archiveRecords) {
const extra = archiveRecords
.filter((r) => r.kind === 'publicMeta' || r.kind === 'privateMeta' || r.kind === 'file')
.map((r) => ({
const extra = archiveRecords.map((r) => {
if (r.kind === 'tree') {
return {
kind: 'tree-leaf',
archiveId: r.archiveId,
attachedAt: r.storedAt,
itemizedOnMainChain: false,
merkleRoot: r.record?.merkleRoot,
proof: r.record?.proof,
leafIndex: r.record?.leafIndex,
chainSealJobId: r.record?.chainSealJobId,
...r.record,
};
}
return {
kind: r.kind === 'file' ? 'file-attach' : 'metadata-attach',
archiveId: r.archiveId,
attachedAt: r.storedAt,
...r.record,
}));
};
});
return [...chainReceipts, ...extra];
}