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

Function policiesRemove

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

Source from the content-addressed store, hash-verified

6053 );
6054
6055 const policiesRemove = (
6056 input: RemoveToolPolicyInput,
6057 ): Effect.Effect<void, OrgWriteDeniedError | StorageFailure> =>
6058 transaction(
6059 Effect.gen(function* () {
6060 yield* guardOrgWrite(input.owner);
6061 const where = (b: AnyCb) => b.and(byOwner(input.owner)(b), b("id", "=", input.id));
6062 yield* core.deleteMany("tool_policy", { where });
6063 }),
6064 );
6065
6066 const policiesResolve = (
6067 address: ToolAddress,

Callers 1

createExecutorFunction · 0.85

Calls 2

guardOrgWriteFunction · 0.85
transactionFunction · 0.70

Tested by

no test coverage detected