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

Function policiesList

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

Source from the content-addressed store, hash-verified

3901 : `${tool.integration}.${tool.owner}.${tool.connection}.${tool.name}`;
3902
3903 const policiesList = (): Effect.Effect<readonly ToolPolicy[], StorageFailure> =>
3904 core
3905 .findMany("tool_policy", {})
3906 .pipe(
3907 Effect.map((rows) =>
3908 [...rows]
3909 .sort((a, b) => ownerRankForRow(a) - ownerRankForRow(b) || comparePolicyRow(a, b))
3910 .map(rowToToolPolicy),
3911 ),
3912 );
3913
3914 const policiesCreate = (
3915 input: CreateToolPolicyInput,

Callers 1

createExecutorFunction · 0.85

Calls 2

comparePolicyRowFunction · 0.90
ownerRankForRowFunction · 0.85

Tested by

no test coverage detected