(
url: string,
)
| 1979 | ); |
| 1980 | |
| 1981 | const integrationsDetect = ( |
| 1982 | url: string, |
| 1983 | ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> => |
| 1984 | Effect.gen(function* () { |
| 1985 | const results: IntegrationDetectionResult[] = []; |
| 1986 | for (const runtime of runtimes.values()) { |
| 1987 | if (!runtime.plugin.detect) continue; |
| 1988 | const result = yield* runtime.plugin |
| 1989 | .detect({ ctx: runtime.ctx, url }) |
| 1990 | .pipe( |
| 1991 | Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)), |
| 1992 | ); |
| 1993 | if (result) results.push(result); |
| 1994 | } |
| 1995 | return results; |
| 1996 | }); |
| 1997 | |
| 1998 | // ------------------------------------------------------------------ |
| 1999 | // Health checks: dispatch to the owning plugin's hooks. |
no test coverage detected