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

Function detector

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

Source from the content-addressed store, hash-verified

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