MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / detector

Function detector

packages/core/sdk/src/executor.test.ts:198–212  ·  view source on GitHub ↗
(id: string, confidence: IntegrationDetectionResult["confidence"])

Source from the content-addressed store, hash-verified

196}))();
197
198const detector = (id: string, confidence: IntegrationDetectionResult["confidence"]) =>
199 definePlugin(() => ({
200 id,
201 storage: () => ({}),
202 detect: () =>
203 Effect.succeed(
204 IntegrationDetectionResult.make({
205 kind: id,
206 confidence,
207 endpoint: `https://example.com/${id}`,
208 name: id,
209 slug: id,
210 }),
211 ),
212 }))();
213
214describe("createExecutor", () => {
215 it.effect("rolls back plugin and core writes from ctx.transaction failures", () =>

Callers 1

executor.test.tsFile · 0.85

Calls 1

definePluginFunction · 0.90

Tested by

no test coverage detected