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

Function policiesList

packages/core/sdk/src/executor.ts:6050–6059  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6048 : `${tool.integration}.${tool.owner}.${tool.connection}.${tool.name}`;
6049
6050 const policiesList = (): Effect.Effect<readonly ToolPolicy[], StorageFailure> =>
6051 core
6052 .findMany("tool_policy", {})
6053 .pipe(
6054 Effect.map((rows) =>
6055 [...rows]
6056 .sort((a, b) => ownerRankForRow(a) - ownerRankForRow(b) || comparePolicyRow(a, b))
6057 .map(rowToToolPolicy),
6058 ),
6059 );
6060
6061 const policiesCreate = (
6062 input: CreateToolPolicyInput,

Callers 1

createExecutorFunction · 0.85

Calls 2

comparePolicyRowFunction · 0.90
ownerRankForRowFunction · 0.85

Tested by

no test coverage detected