(
url: string,
)
| 1995 | ); |
| 1996 | |
| 1997 | const integrationsDetect = ( |
| 1998 | url: string, |
| 1999 | ): Effect.Effect<readonly IntegrationDetectionResult[], StorageFailure> => |
| 2000 | Effect.gen(function* () { |
| 2001 | const results: IntegrationDetectionResult[] = []; |
| 2002 | for (const runtime of runtimes.values()) { |
| 2003 | if (!runtime.plugin.detect) continue; |
| 2004 | const result = yield* runtime.plugin |
| 2005 | .detect({ ctx: runtime.ctx, url }) |
| 2006 | .pipe( |
| 2007 | Effect.mapError((cause) => pluginStorageFailure(runtime.plugin.id, "detect", cause)), |
| 2008 | ); |
| 2009 | if (result) results.push(result); |
| 2010 | } |
| 2011 | return results; |
| 2012 | }); |
| 2013 | |
| 2014 | // ------------------------------------------------------------------ |
| 2015 | // Health checks: dispatch to the owning plugin's hooks. |
no test coverage detected