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

Function detector

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

Source from the content-addressed store, hash-verified

132}))();
133
134const detector = (id: string, confidence: IntegrationDetectionResult["confidence"]) =>
135 definePlugin(() => ({
136 id,
137 storage: () => ({}),
138 detect: () =>
139 Effect.succeed(
140 IntegrationDetectionResult.make({
141 kind: id,
142 confidence,
143 endpoint: `https://example.com/${id}`,
144 name: id,
145 slug: id,
146 }),
147 ),
148 }))();
149
150describe("createExecutor", () => {
151 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