MCPcopy Create free account
hub / github.com/continuedev/continue / loadPackagesFromHub

Function loadPackagesFromHub

extensions/cli/src/hubLoader.ts:131–147  ·  view source on GitHub ↗
(
  slugs: string[],
  processor: HubPackageProcessor<T>,
)

Source from the content-addressed store, hash-verified

129 * Batch load (stub - always returns empty)
130 */
131export async function loadPackagesFromHub<T>(
132 slugs: string[],
133 processor: HubPackageProcessor<T>,
134): Promise<T[]> {
135 const results: T[] = [];
136 for (const slug of slugs) {
137 try {
138 const content = await loadPackageFromHub(slug, processor);
139 results.push(content);
140 } catch (error: any) {
141 logger.warn(
142 `Failed to load ${processor.type} "${slug}": ${error.message}`,
143 );
144 }
145 }
146 return results;
147}

Callers

nothing calls this directly

Calls 3

loadPackageFromHubFunction · 0.85
warnMethod · 0.80
pushMethod · 0.65

Tested by

no test coverage detected