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

Function provisionContentReplacementState

src/utils/toolResultStorage.ts:447–463  ·  view source on GitHub ↗
(
  initialMessages?: Message[],
  initialContentReplacements?: ContentReplacementRecord[],
)

Source from the content-addressed store, hash-verified

445 * populate the replacements Map for byte-identical re-apply.
446 */
447export function provisionContentReplacementState(
448 initialMessages?: Message[],
449 initialContentReplacements?: ContentReplacementRecord[],
450): ContentReplacementState | undefined {
451 const enabled = getFeatureValue_CACHED_MAY_BE_STALE(
452 'tengu_hawthorn_steeple',
453 false,
454 )
455 if (!enabled) return undefined
456 if (initialMessages) {
457 return reconstructContentReplacementState(
458 initialMessages,
459 initialContentReplacements ?? [],
460 )
461 }
462 return createContentReplacementState()
463}
464
465/**
466 * Serializable record of one content-replacement decision. Written to the

Callers 1

REPLFunction · 0.85

Tested by

no test coverage detected