diff --git a/packages/client/ui-chat/src/client/conversation-nodes/chat-snapshot-builder.ts b/packages/client/ui-chat/src/client/conversation-nodes/chat-snapshot-builder.ts index 1ef2b16d3f..6fa7671da6 100644 --- a/packages/client/ui-chat/src/client/conversation-nodes/chat-snapshot-builder.ts +++ b/packages/client/ui-chat/src/client/conversation-nodes/chat-snapshot-builder.ts @@ -38,6 +38,7 @@ function cachedSource( return source } +/* jscpd:ignore-start -- Chat Node sources keep publication state inside the keyed Chat store. */ class MutableChatSource { private readonly listeners = new Set<() => void>() private published: Value @@ -63,6 +64,7 @@ class MutableChatSource { notifySubscribers(this.listeners, this.label) } } +/* jscpd:ignore-end */ class MutableChatNodeStore implements ChatNodeStore { private readonly byKey = new Map() diff --git a/packages/client/ui-chat/src/client/conversation-nodes/turn-process-presentation.ts b/packages/client/ui-chat/src/client/conversation-nodes/turn-process-presentation.ts index 1c9a4acf81..a49ae6031b 100644 --- a/packages/client/ui-chat/src/client/conversation-nodes/turn-process-presentation.ts +++ b/packages/client/ui-chat/src/client/conversation-nodes/turn-process-presentation.ts @@ -74,7 +74,11 @@ function derivePresentation( export class ChatTurnProcessProjector { private presentations = new Map() - /** @param node - current Chat Node. @returns its Turn's process presentation, when present. */ + /** + * Read the retained process presentation for a Node's Turn. + * @param node - Current Chat Node. + * @returns The Turn's process presentation, when present. + */ get(node: ChatNode | undefined): ChatTurnProcessPresentation | undefined { const turn = nodeTurn(node) return turn === undefined ? undefined : this.presentations.get(turn)