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

Function durabilityPlugin

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

Source from the content-addressed store, hash-verified

603});
604
605const durabilityPlugin = (provider: CredentialProvider) =>
606 definePlugin(() => ({
607 id: "durable" as const,
608 credentialProviders: [provider],
609 storage: () => ({}),
610 resolveTools: () =>
611 Effect.succeed({ tools: [{ name: ToolName.make("deploy"), description: "deploy" }] }),
612 invokeTool: ({ toolRow }) => Effect.succeed({ ran: toolRow.name }),
613 extension: (ctx) => ({
614 seed: () =>
615 ctx.core.integrations.register({ slug: INTEG, description: "Vercel", config: {} }),
616 }),
617 }))();
618
619/** Wrap a test `FumaDb` so deletes on the `connection` table can be made to
620 * 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