MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / listVersionsInto

Function listVersionsInto

packages/sdk-playground/src/main.ts:948–953  ·  view source on GitHub ↗
(display: HTMLElement)

Source from the content-addressed store, hash-verified

946}
947
948async function listVersionsInto(display: HTMLElement) {
949 const { adapter } = await createFileAdapter();
950 const versions = await adapter.listVersions("composition.html");
951 display.textContent = versions.length ? versions.map(versionLabel).join("\n") : "(no versions)";
952 logEntry("info", { versions: versions.map((v) => v.key) });
953}
954
955function versionLabel(v: { key: string; timestamp?: number }): string {
956 return `${v.key} (${new Date(v.timestamp ?? 0).toLocaleTimeString()})`;

Callers 1

buildVersionsSectionFunction · 0.85

Calls 3

createFileAdapterFunction · 0.85
logEntryFunction · 0.85
listVersionsMethod · 0.65

Tested by

no test coverage detected