(turn: Element)
| 70 | const turns = () => [...container.querySelectorAll('.cbm-chat-turn')]; |
| 71 | const last = () => turns().at(-1)!; |
| 72 | const answerOf = (turn: Element) => turn.querySelector('.cbm-chat-answer-text')?.textContent ?? ''; |
| 73 | const buttonsOf = (turn: Element) => [...turn.querySelectorAll('button.cbm-chat-retry')].map(item => item.textContent); |
| 74 | const notesOf = (turn: Element) => [...turn.querySelectorAll('.cbm-chat-answer-note, .cbm-chat-model-note')].map(item => item.textContent ?? ''); |
| 75 | const dividers = () => [...container.querySelectorAll('.cbm-chat-topic-break')].map(item => item.textContent); |
nothing calls this directly
no outgoing calls
no test coverage detected