MCPcopy Index your code
hub / github.com/simstudioai/sim / getMothershipSourceEnvHeaders

Function getMothershipSourceEnvHeaders

apps/sim/lib/copilot/server/agent-url.ts:72–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70}
71
72export function getMothershipSourceEnvHeaders(): Record<string, string> {
73 const sourceEnv = env.COPILOT_SOURCE_ENV?.trim().toLowerCase()
74 if (!sourceEnv || !SOURCE_ENVIRONMENTS.has(sourceEnv as MothershipSourceEnvironment)) {
75 return {}
76 }
77
78 return { [MOTHERSHIP_SOURCE_ENV_HEADER]: sourceEnv }
79}

Callers 7

requestChatTitleFunction · 0.90
mothershipRequestHeadersFunction · 0.90
agent-url.test.tsFile · 0.90
route.tsFile · 0.90
route.tsFile · 0.90
forwardToCopilotFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected