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

Function removePolicy

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

Source from the content-addressed store, hash-verified

426 });
427
428 const removePolicy = (toolkitId: string, policyId: string) =>
429 Effect.gen(function* () {
430 const toolkit = yield* requireToolkit(toolkitId);
431 yield* requirePolicy(toolkitId, policyId, toolkit.owner);
432 yield* storage.policies.remove({ owner: toolkit.owner, key: policyId });
433 });
434
435 const listConnections = (toolkitId: string) =>
436 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