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

Function policiesRemove

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

Source from the content-addressed store, hash-verified

6145 );
6146
6147 const policiesRemove = (
6148 input: RemoveToolPolicyInput,
6149 ): Effect.Effect<void, OrgWriteDeniedError | StorageFailure> =>
6150 transaction(
6151 Effect.gen(function* () {
6152 yield* guardOrgWrite(input.owner);
6153 const where = (b: AnyCb) => b.and(byOwner(input.owner)(b), b("id", "=", input.id));
6154 yield* core.deleteMany("tool_policy", { where });
6155 }),
6156 );
6157
6158 const policiesResolve = (
6159 address: ToolAddress,

Callers 1

createExecutorFunction · 0.85

Calls 2

guardOrgWriteFunction · 0.85
transactionFunction · 0.70

Tested by

no test coverage detected