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

Function normalizedPolicyId

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

Source from the content-addressed store, hash-verified

4352 // which connection serves it; the org/user split is handled by owner-scoped
4353 // policy rows + ownerRank, not the match pattern.
4354 const normalizedPolicyId = (tool: Tool): string =>
4355 tool.static
4356 ? String(tool.address)
4357 : `${tool.integration}.${tool.owner}.${tool.connection}.${tool.name}`;
4358
4359 const policiesList = (): Effect.Effect<readonly ToolPolicy[], StorageFailure> =>
4360 core

Callers 3

toolsListFunction · 0.85
toolSchemaFunction · 0.85
executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected