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

Method loadFrom

packages/sdk/src/adapters/fs.ts:88–94  ·  view source on GitHub ↗
(path: string, versionKey: string)

Source from the content-addressed store, hash-verified

86 }
87
88 async loadFrom(path: string, versionKey: string): Promise<string | undefined> {
89 try {
90 return await readFile(join(this.versionsDir(path), `${versionKey}.html`), "utf8");
91 } catch {
92 return undefined;
93 }
94 }
95
96 on(event: "persist:error", handler: (e: PersistErrorEvent) => void): () => void {
97 if (event !== "persist:error") return () => {};

Callers

nothing calls this directly

Calls 1

versionsDirMethod · 0.95

Tested by

no test coverage detected