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

Function placementLabel

packages/react/src/lib/auth-placements.tsx:108–116  ·  view source on GitHub ↗
(placement: Placement)

Source from the content-addressed store, hash-verified

106/** Short human label for a placement: "Authorization header" / "api_key query
107 * param". Falls back to a generic noun when the name is blank. */
108export function placementLabel(placement: Placement): string {
109 if (placement.carrier === "header") {
110 return `${placement.name || "Authorization"} header`;
111 }
112 if (placement.carrier === "env") {
113 return `${placement.name || "TOKEN"} env var`;
114 }
115 return `${placement.name || "api_key"} query param`;
116}
117
118// ---------------------------------------------------------------------------
119// PlacementLine — renders `Authorization: Bearer ••••••` / `?api_key=••••••`.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected