(
url: string,
)
| 2478 | ); |
| 2479 | |
| 2480 | const integrationsDetect = ( |
| 2481 | url: string, |
| 2482 | ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> => |
| 2483 | Effect.gen(function* () { |
| 2484 | const results: IntegrationDetectionResult[] = []; |
| 2485 | for (const runtime of runtimes.values()) { |
| 2486 | if (!runtime.plugin.detect) continue; |
| 2487 | const result = yield* runtime.plugin |
| 2488 | .detect({ ctx: runtime.ctx, url }) |
| 2489 | .pipe( |
| 2490 | Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)), |
| 2491 | ); |
| 2492 | if (result) results.push(result); |
| 2493 | } |
| 2494 | return results; |
| 2495 | }); |
| 2496 | |
| 2497 | // ------------------------------------------------------------------ |
| 2498 | // Health checks: dispatch to the owning plugin's hooks. |
no test coverage detected