MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / createCacheSafeParams

Function createCacheSafeParams

source code/utils/forkedAgent.ts:133–143  ·  view source on GitHub ↗
(
  context: REPLHookContext,
)

Source from the content-addressed store, hash-verified

131 * @param context - The REPLHookContext from the post-sampling hook
132 */
133export function createCacheSafeParams(
134 context: REPLHookContext,
135): CacheSafeParams {
136 return {
137 systemPrompt: context.systemPrompt,
138 userContext: context.userContext,
139 systemContext: context.systemContext,
140 toolUseContext: context.toolUseContext,
141 forkContextMessages: context.messages,
142 }
143}
144
145/**
146 * 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