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

Function listRegistryItems

packages/cli/src/registry/resolver.ts:30–39  ·  view source on GitHub ↗
(
  filter?: { type?: ItemType },
  options: ResolveOptions = {},
)

Source from the content-addressed store, hash-verified

28 * if the registry is unreachable — callers should fall back to bundled items.
29 */
30export async function listRegistryItems(
31 filter?: { type?: ItemType },
32 options: ResolveOptions = {},
33): Promise<RegistryManifestEntry[]> {
34 const baseUrl = options.baseUrl ?? DEFAULT_REGISTRY_URL;
35 const manifest = await fetchRegistryManifest(baseUrl, { skipCache: options.skipCache });
36 if (!manifest) return [];
37 if (!filter?.type) return manifest.items;
38 return manifest.items.filter((item) => item.type === filter.type);
39}
40
41/**
42 * Load every item's full manifest in parallel. Used by the interactive init

Callers 7

resolveItemsByTagFunction · 0.85
resolver.test.tsFile · 0.85
runFunction · 0.85
listRemoteTemplatesFunction · 0.85
resolveTemplateListFunction · 0.85
listRegistryCatalogFunction · 0.85

Calls 1

fetchRegistryManifestFunction · 0.85

Tested by

no test coverage detected