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

Function detector

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

Source from the content-addressed store, hash-verified

157}))();
158
159const detector = (id: string, confidence: IntegrationDetectionResult["confidence"]) =>
160 definePlugin(() => ({
161 id,
162 storage: () => ({}),
163 detect: () =>
164 Effect.succeed(
165 IntegrationDetectionResult.make({
166 kind: id,
167 confidence,
168 endpoint: `https://example.com/${id}`,
169 name: id,
170 slug: id,
171 }),
172 ),
173 }))();
174
175describe("createExecutor", () => {
176 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