(messages: readonly ContextMessage[], options?: ProjectOptions)
| 376 | } |
| 377 | |
| 378 | project(messages: readonly ContextMessage[], options?: ProjectOptions): Message[] { |
| 379 | const anomalies: ProjectionAnomaly[] = []; |
| 380 | const result = project(this.agent.microCompaction.compact(messages), { |
| 381 | ...options, |
| 382 | onAnomaly: (anomaly) => { |
| 383 | anomalies.push(anomaly); |
| 384 | options?.onAnomaly?.(anomaly); |
| 385 | }, |
| 386 | }); |
| 387 | this.reportProjectionRepairs(anomalies); |
| 388 | return result; |
| 389 | } |
| 390 | |
| 391 | // Surface the projector's wire-repairs so a silently-mangled history leaves a |
| 392 | // trace instead of being papered over. Deduped by signature: a repair that |
no test coverage detected