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

Function policiesList

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

Source from the content-addressed store, hash-verified

3484 : `${tool.integration}.${tool.owner}.${tool.connection}.${tool.name}`;
3485
3486 const policiesList = (): Effect.Effect<readonly ToolPolicy[], StorageFailure> =>
3487 core
3488 .findMany("tool_policy", {})
3489 .pipe(
3490 Effect.map((rows) =>
3491 [...rows]
3492 .sort((a, b) => ownerRankForRow(a) - ownerRankForRow(b) || comparePolicyRow(a, b))
3493 .map(rowToToolPolicy),
3494 ),
3495 );
3496
3497 const policiesCreate = (
3498 input: CreateToolPolicyInput,

Callers 1

createExecutorFunction · 0.85

Calls 2

comparePolicyRowFunction · 0.90
ownerRankForRowFunction · 0.85

Tested by

no test coverage detected