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

Function detector

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

Source from the content-addressed store, hash-verified

142}))();
143
144const detector = (id: string, confidence: IntegrationDetectionResult["confidence"]) =>
145 definePlugin(() => ({
146 id,
147 storage: () => ({}),
148 detect: () =>
149 Effect.succeed(
150 IntegrationDetectionResult.make({
151 kind: id,
152 confidence,
153 endpoint: `https://example.com/${id}`,
154 name: id,
155 slug: id,
156 }),
157 ),
158 }))();
159
160describe("createExecutor", () => {
161 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