(
url: string,
)
| 1939 | ); |
| 1940 | |
| 1941 | const integrationsDetect = ( |
| 1942 | url: string, |
| 1943 | ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> => |
| 1944 | Effect.gen(function* () { |
| 1945 | const results: IntegrationDetectionResult[] = []; |
| 1946 | for (const runtime of runtimes.values()) { |
| 1947 | if (!runtime.plugin.detect) continue; |
| 1948 | const result = yield* runtime.plugin |
| 1949 | .detect({ ctx: runtime.ctx, url }) |
| 1950 | .pipe( |
| 1951 | Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)), |
| 1952 | ); |
| 1953 | if (result) results.push(result); |
| 1954 | } |
| 1955 | return results; |
| 1956 | }); |
| 1957 | |
| 1958 | // ------------------------------------------------------------------ |
| 1959 | // Health checks: dispatch to the owning plugin's hooks. |
no test coverage detected