(
url: string,
)
| 2800 | ); |
| 2801 | |
| 2802 | const integrationsDetect = ( |
| 2803 | url: string, |
| 2804 | ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> => |
| 2805 | Effect.gen(function* () { |
| 2806 | const results: IntegrationDetectionResult[] = []; |
| 2807 | for (const runtime of runtimes.values()) { |
| 2808 | if (!runtime.plugin.detect) continue; |
| 2809 | const result = yield* runtime.plugin |
| 2810 | .detect({ ctx: runtime.ctx, url }) |
| 2811 | .pipe( |
| 2812 | Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)), |
| 2813 | ); |
| 2814 | if (result) results.push(result); |
| 2815 | } |
| 2816 | return results; |
| 2817 | }); |
| 2818 | |
| 2819 | // ------------------------------------------------------------------ |
| 2820 | // Health checks: dispatch to the owning plugin's hooks. |
no test coverage detected