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

Function policiesRemove

packages/core/sdk/src/executor.ts:5936–5945  ·  view source on GitHub ↗
(
      input: RemoveToolPolicyInput,
    )

Source from the content-addressed store, hash-verified

5934 );
5935
5936 const policiesRemove = (
5937 input: RemoveToolPolicyInput,
5938 ): Effect.Effect<void, OrgWriteDeniedError | StorageFailure> =>
5939 transaction(
5940 Effect.gen(function* () {
5941 yield* guardOrgWrite(input.owner);
5942 const where = (b: AnyCb) => b.and(byOwner(input.owner)(b), b("id", "=", input.id));
5943 yield* core.deleteMany("tool_policy", { where });
5944 }),
5945 );
5946
5947 const policiesResolve = (
5948 address: ToolAddress,

Callers 1

createExecutorFunction · 0.85

Calls 2

guardOrgWriteFunction · 0.85
transactionFunction · 0.70

Tested by

no test coverage detected