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

Function integrationsDetect

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

Source from the content-addressed store, hash-verified

3419 );
3420
3421 const integrationsDetect = (
3422 url: string,
3423 ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> =>
3424 Effect.gen(function* () {
3425 const results: IntegrationDetectionResult[] = [];
3426 for (const runtime of runtimes.values()) {
3427 if (!runtime.plugin.detect) continue;
3428 const result = yield* runtime.plugin
3429 .detect({ ctx: runtime.ctx, url })
3430 .pipe(
3431 Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)),
3432 );
3433 if (result) results.push(result);
3434 }
3435 return results;
3436 });
3437
3438 // ------------------------------------------------------------------
3439 // 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