(
replacements: ContentReplacementRecord[],
agentId?: AgentId,
)
| 1193 | } |
| 1194 | |
| 1195 | async insertContentReplacement( |
| 1196 | replacements: ContentReplacementRecord[], |
| 1197 | agentId?: AgentId, |
| 1198 | ) { |
| 1199 | return this.trackWrite(async () => { |
| 1200 | const entry: ContentReplacementEntry = { |
| 1201 | type: 'content-replacement', |
| 1202 | sessionId: getSessionId() as UUID, |
| 1203 | agentId, |
| 1204 | replacements, |
| 1205 | } |
| 1206 | await this.appendEntry(entry) |
| 1207 | }) |
| 1208 | } |
| 1209 | |
| 1210 | async appendEntry(entry: Entry, sessionId: UUID = getSessionId() as UUID) { |
| 1211 | if (this.shouldSkipPersistence()) { |
no test coverage detected