(
replacements: ContentReplacementRecord[],
agentId?: AgentId,
)
| 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()) { |
no test coverage detected