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

Function integrationsDetect

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

Source from the content-addressed store, hash-verified

1979 );
1980
1981 const integrationsDetect = (
1982 url: string,
1983 ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> =>
1984 Effect.gen(function* () {
1985 const results: IntegrationDetectionResult[] = [];
1986 for (const runtime of runtimes.values()) {
1987 if (!runtime.plugin.detect) continue;
1988 const result = yield* runtime.plugin
1989 .detect({ ctx: runtime.ctx, url })
1990 .pipe(
1991 Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)),
1992 );
1993 if (result) results.push(result);
1994 }
1995 return results;
1996 });
1997
1998 // ------------------------------------------------------------------
1999 // 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