MCPcopy
hub / github.com/codeaashu/claude-code / runWithTeammateContext

Function runWithTeammateContext

src/utils/teammateContext.ts:59–64  ·  view source on GitHub ↗
(
  context: TeammateContext,
  fn: () => T,
)

Source from the content-addressed store, hash-verified

57 * @returns The return value of fn
58 */
59export function runWithTeammateContext<T>(
60 context: TeammateContext,
61 fn: () => T,
62): T {
63 return teammateContextStorage.run(context, fn)
64}
65
66/**
67 * Check if current execution is within an in-process teammate.

Callers 1

runInProcessTeammateFunction · 0.85

Calls 1

runMethod · 0.80

Tested by

no test coverage detected