MCPcopy Index your code
hub / github.com/codeaashu/claude-code / createCacheSafeParams

Function createCacheSafeParams

src/utils/forkedAgent.ts:131–141  ·  view source on GitHub ↗
(
  context: REPLHookContext,
)

Source from the content-addressed store, hash-verified

129 * @param context - The REPLHookContext from the post-sampling hook
130 */
131export function createCacheSafeParams(
132 context: REPLHookContext,
133): CacheSafeParams {
134 return {
135 systemPrompt: context.systemPrompt,
136 userContext: context.userContext,
137 systemContext: context.systemContext,
138 toolUseContext: context.toolUseContext,
139 forkContextMessages: context.messages,
140 }
141}
142
143/**
144 * Creates a modified getAppState that adds allowed tools to the permission context.

Callers 7

initAutoDreamFunction · 0.85
runExtractionFunction · 0.85
sessionMemory.tsFile · 0.85
startSpeculationFunction · 0.85
executePromptSuggestionFunction · 0.85
handleStopHooksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected