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

Function removePolicy

packages/plugins/toolkits/src/server.ts:429–434  ·  view source on GitHub ↗
(toolkitId: string, policyId: string)

Source from the content-addressed store, hash-verified

427 });
428
429 const removePolicy = (toolkitId: string, policyId: string) =>
430 Effect.gen(function* () {
431 const toolkit = yield* requireToolkit(toolkitId);
432 yield* requirePolicy(toolkitId, policyId, toolkit.owner);
433 yield* storage.policies.remove({ owner: toolkit.owner, key: policyId });
434 });
435
436 const listConnections = (toolkitId: string) =>
437 requireToolkit(toolkitId).pipe(Effect.flatMap(() => listConnectionsForRecord(toolkitId)));

Callers

nothing calls this directly

Calls 3

requireToolkitFunction · 0.85
requirePolicyFunction · 0.85
removeMethod · 0.65

Tested by

no test coverage detected