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

Function durabilityPlugin

packages/core/sdk/src/connections.test.ts:870–882  ·  view source on GitHub ↗
(provider: CredentialProvider)

Source from the content-addressed store, hash-verified

868});
869
870const durabilityPlugin = (provider: CredentialProvider) =>
871 definePlugin(() => ({
872 id: "durable" as const,
873 credentialProviders: [provider],
874 storage: () => ({}),
875 resolveTools: () =>
876 Effect.succeed({ tools: [{ name: ToolName.make("deploy"), description: "deploy" }] }),
877 invokeTool: ({ toolRow }) => Effect.succeed({ ran: toolRow.name }),
878 extension: (ctx) => ({
879 seed: () =>
880 ctx.core.integrations.register({ slug: INTEG, description: "Vercel", config: {} }),
881 }),
882 }))();
883
884/** Wrap a test `FumaDb` so deletes on the `connection` table can be made to
885 * fail on demand — the raw driver-level failure the compensating delete must

Callers 1

Calls 1

definePluginFunction · 0.90

Tested by

no test coverage detected