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

Function normalizedPolicyId

packages/core/sdk/src/executor.ts:5953–5956  ·  view source on GitHub ↗
(tool: Tool)

Source from the content-addressed store, hash-verified

5951 // which connection serves it; the org/user split is handled by owner-scoped
5952 // policy rows + ownerRank, not the match pattern.
5953 const normalizedPolicyId = (tool: Tool): string =>
5954 tool.static
5955 ? String(tool.address)
5956 : `${tool.integration}.${tool.owner}.${tool.connection}.${tool.name}`;
5957
5958 const policiesList = (): Effect.Effect<readonly ToolPolicy[], StorageFailure> =>
5959 core

Callers 3

toolsListFunction · 0.85
toolSchemaFunction · 0.85
executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected