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

Function listRemoteTemplates

packages/cli/src/templates/remote.ts:30–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 * uses, and it goes through the registry resolver directly.
29 */
30export async function listRemoteTemplates(): Promise<RemoteTemplateInfo[]> {
31 const entries = await listRegistryItems({ type: "hyperframes:example" });
32 const items = await loadAllItems(entries);
33 return items.map((item) => ({
34 id: item.name,
35 label: item.title,
36 hint: item.description,
37 bundled: false,
38 }));
39}
40
41/**
42 * Download a template into destDir. Delegates to the registry installer.

Callers

nothing calls this directly

Calls 2

listRegistryItemsFunction · 0.85
loadAllItemsFunction · 0.85

Tested by

no test coverage detected