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

Function policiesList

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

Source from the content-addressed store, hash-verified

3814 : `${tool.integration}.${tool.owner}.${tool.connection}.${tool.name}`;
3815
3816 const policiesList = (): Effect.Effect<readonly ToolPolicy[], StorageFailure> =>
3817 core
3818 .findMany("tool_policy", {})
3819 .pipe(
3820 Effect.map((rows) =>
3821 [...rows]
3822 .sort((a, b) => ownerRankForRow(a) - ownerRankForRow(b) || comparePolicyRow(a, b))
3823 .map(rowToToolPolicy),
3824 ),
3825 );
3826
3827 const policiesCreate = (
3828 input: CreateToolPolicyInput,

Callers 1

createExecutorFunction · 0.85

Calls 2

comparePolicyRowFunction · 0.90
ownerRankForRowFunction · 0.85

Tested by

no test coverage detected