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

Function integrationsDetect

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

Source from the content-addressed store, hash-verified

2418 );
2419
2420 const integrationsDetect = (
2421 url: string,
2422 ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> =>
2423 Effect.gen(function* () {
2424 const results: IntegrationDetectionResult[] = [];
2425 for (const runtime of runtimes.values()) {
2426 if (!runtime.plugin.detect) continue;
2427 const result = yield* runtime.plugin
2428 .detect({ ctx: runtime.ctx, url })
2429 .pipe(
2430 Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)),
2431 );
2432 if (result) results.push(result);
2433 }
2434 return results;
2435 });
2436
2437 // ------------------------------------------------------------------
2438 // 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