(
replacements: ContentReplacementRecord[],
agentId?: AgentId,
)
| 1134 | } |
| 1135 | |
| 1136 | async insertContentReplacement( |
| 1137 | replacements: ContentReplacementRecord[], |
| 1138 | agentId?: AgentId, |
| 1139 | ) { |
| 1140 | return this.trackWrite(async () => { |
| 1141 | const entry: ContentReplacementEntry = { |
| 1142 | type: 'content-replacement', |
| 1143 | sessionId: getSessionId() as UUID, |
| 1144 | agentId, |
| 1145 | replacements, |
| 1146 | } |
| 1147 | await this.appendEntry(entry) |
| 1148 | }) |
| 1149 | } |
| 1150 | |
| 1151 | async appendEntry(entry: Entry, sessionId: UUID = getSessionId() as UUID) { |
| 1152 | if (this.shouldSkipPersistence()) { |
no test coverage detected