MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / integrationsDetect

Function integrationsDetect

packages/core/sdk/src/executor.ts:1997–2012  ·  view source on GitHub ↗
(
      url: string,
    )

Source from the content-addressed store, hash-verified

1995 );
1996
1997 const integrationsDetect = (
1998 url: string,
1999 ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> =>
2000 Effect.gen(function* () {
2001 const results: IntegrationDetectionResult[] = [];
2002 for (const runtime of runtimes.values()) {
2003 if (!runtime.plugin.detect) continue;
2004 const result = yield* runtime.plugin
2005 .detect({ ctx: runtime.ctx, url })
2006 .pipe(
2007 Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)),
2008 );
2009 if (result) results.push(result);
2010 }
2011 return results;
2012 });
2013
2014 // ------------------------------------------------------------------
2015 // Health checks: dispatch to the owning plugin's hooks.

Callers 1

createExecutorFunction · 0.85

Calls 3

pluginStorageFailureFunction · 0.85
valuesMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected