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

Function durabilityPlugin

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

Source from the content-addressed store, hash-verified

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