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

Function integrationsDetect

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

Source from the content-addressed store, hash-verified

1939 );
1940
1941 const integrationsDetect = (
1942 url: string,
1943 ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> =>
1944 Effect.gen(function* () {
1945 const results: IntegrationDetectionResult[] = [];
1946 for (const runtime of runtimes.values()) {
1947 if (!runtime.plugin.detect) continue;
1948 const result = yield* runtime.plugin
1949 .detect({ ctx: runtime.ctx, url })
1950 .pipe(
1951 Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)),
1952 );
1953 if (result) results.push(result);
1954 }
1955 return results;
1956 });
1957
1958 // ------------------------------------------------------------------
1959 // 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