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

Method insertContentReplacement

src/utils/sessionStorage.ts:1113–1126  ·  view source on GitHub ↗
(
    replacements: ContentReplacementRecord[],
    agentId?: AgentId,
  )

Source from the content-addressed store, hash-verified

1111 }
1112
1113 async insertContentReplacement(
1114 replacements: ContentReplacementRecord[],
1115 agentId?: AgentId,
1116 ) {
1117 return this.trackWrite(async () => {
1118 const entry: ContentReplacementEntry = {
1119 type: 'content-replacement',
1120 sessionId: getSessionId() as UUID,
1121 agentId,
1122 replacements,
1123 }
1124 await this.appendEntry(entry)
1125 })
1126 }
1127
1128 async appendEntry(entry: Entry, sessionId: UUID = getSessionId() as UUID) {
1129 if (this.shouldSkipPersistence()) {

Callers 1

recordContentReplacementFunction · 0.80

Calls 3

trackWriteMethod · 0.95
appendEntryMethod · 0.95
getSessionIdFunction · 0.85

Tested by

no test coverage detected