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

Function compareProviderPolicyRule

packages/core/sdk/src/executor.ts:5429–5436  ·  view source on GitHub ↗
(
      a: ToolPolicyProviderRule,
      b: ToolPolicyProviderRule,
    )

Source from the content-addressed store, hash-verified

5427 };
5428
5429 const compareProviderPolicyRule = (
5430 a: ToolPolicyProviderRule,
5431 b: ToolPolicyProviderRule,
5432 ): number => {
5433 if (a.position < b.position) return -1;
5434 if (a.position > b.position) return 1;
5435 return a.id < b.id ? -1 : a.id > b.id ? 1 : 0;
5436 };
5437
5438 const resolveProviderPolicyFromRules = (
5439 toolId: string,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected