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

Function cloneContentReplacementState

src/utils/toolResultStorage.ts:405–412  ·  view source on GitHub ↗
(
  source: ContentReplacementState,
)

Source from the content-addressed store, hash-verified

403 * prompt cache hit. Mutating the clone does not affect the source.
404 */
405export function cloneContentReplacementState(
406 source: ContentReplacementState,
407): ContentReplacementState {
408 return {
409 seenIds: new Set(source.seenIds),
410 replacements: new Map(source.replacements),
411 }
412}
413
414/**
415 * Resolve the per-message aggregate budget limit. GrowthBook override

Callers 1

createSubagentContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected