(
url: string,
)
| 2337 | ); |
| 2338 | |
| 2339 | const integrationsDetect = ( |
| 2340 | url: string, |
| 2341 | ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> => |
| 2342 | Effect.gen(function* () { |
| 2343 | const results: IntegrationDetectionResult[] = []; |
| 2344 | for (const runtime of runtimes.values()) { |
| 2345 | if (!runtime.plugin.detect) continue; |
| 2346 | const result = yield* runtime.plugin |
| 2347 | .detect({ ctx: runtime.ctx, url }) |
| 2348 | .pipe( |
| 2349 | Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)), |
| 2350 | ); |
| 2351 | if (result) results.push(result); |
| 2352 | } |
| 2353 | return results; |
| 2354 | }); |
| 2355 | |
| 2356 | // ------------------------------------------------------------------ |
| 2357 | // Health checks: dispatch to the owning plugin's hooks. |
no test coverage detected