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

Function detector

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

Source from the content-addressed store, hash-verified

113}))();
114
115const detector = (id: string, confidence: IntegrationDetectionResult["confidence"]) =>
116 definePlugin(() => ({
117 id,
118 storage: () => ({}),
119 detect: () =>
120 Effect.succeed(
121 IntegrationDetectionResult.make({
122 kind: id,
123 confidence,
124 endpoint: `https://example.com/${id}`,
125 name: id,
126 slug: id,
127 }),
128 ),
129 }))();
130
131describe("createExecutor", () => {
132 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