(
url: string,
)
| 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. |
no test coverage detected