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

Function resolveItemsByTag

packages/cli/src/registry/resolver.ts:185–194  ·  view source on GitHub ↗
(
  tag: string,
  options: ResolveOptions = {},
)

Source from the content-addressed store, hash-verified

183 * fail to load are silently skipped.
184 */
185export async function resolveItemsByTag(
186 tag: string,
187 options: ResolveOptions = {},
188): Promise<RegistryItem[]> {
189 const entries = await listRegistryItems(undefined, options);
190 const allItems = await loadAllItems(entries, { ...options, onWarn: () => {} });
191 return allItems.filter(
192 (item) => "tags" in item && Array.isArray(item.tags) && item.tags.includes(tag),
193 );
194}

Callers 1

runFunction · 0.85

Calls 2

listRegistryItemsFunction · 0.85
loadAllItemsFunction · 0.85

Tested by

no test coverage detected