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

Function mothershipRequestHeaders

apps/sim/lib/copilot/request/lifecycle/run.ts:264–271  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262// every resume leg), so the auth/source/version headers can't drift between the
263// sequential path and the concurrent per-subagent resume legs.
264function mothershipRequestHeaders(): Record<string, string> {
265 return {
266 'Content-Type': 'application/json',
267 ...(env.COPILOT_API_KEY ? { 'x-api-key': env.COPILOT_API_KEY } : {}),
268 ...getMothershipSourceEnvHeaders(),
269 'X-Client-Version': SIM_AGENT_VERSION,
270 }
271}
272
273// makeResumeLegContext / mergeResumeLegOutputs are a PAIR and must stay in
274// lockstep: every field reset here is folded back there, and nothing else on

Callers 2

runResumeLegWithRetryFunction · 0.85
runCheckpointLoopFunction · 0.85

Calls 1

Tested by

no test coverage detected