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