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

Function integrationsDetect

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

Source from the content-addressed store, hash-verified

2432 );
2433
2434 const integrationsDetect = (
2435 url: string,
2436 ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> =>
2437 Effect.gen(function* () {
2438 const results: IntegrationDetectionResult[] = [];
2439 for (const runtime of runtimes.values()) {
2440 if (!runtime.plugin.detect) continue;
2441 const result = yield* runtime.plugin
2442 .detect({ ctx: runtime.ctx, url })
2443 .pipe(
2444 Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)),
2445 );
2446 if (result) results.push(result);
2447 }
2448 return results;
2449 });
2450
2451 // ------------------------------------------------------------------
2452 // 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