Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.
Go agentagenticaichatbotdsh-pluginembeddingsevaluationgenerative-aigolangknowledge-basellmmulti-tenantollamaopenaiquestion-answeringragrerankingsemantic-searchvector-searchwiki
import assert from 'node:assert/strict'
import test from 'node:test'
import { xtermBufferLooksEmpty } from './ptyPromptNudge'
test('xtermBufferLooksEmpty is true when every visible row is blank', () => {
const rows = ['', ' ', '\t']
assert.equal(xtermBufferLooksEmpty((i) => rows[i], rows.length), true)
})
test('xtermBufferLooksEmpty is false when any row has text', () => {
const rows = ['', 'root@host:workspace#']
assert.equal(xtermBufferLooksEmpty((i) => rows[i], rows.length), false)
})