chore(8.0): final pre-RC1 sweep — API consistency, named errors, orphans, zero-cast codebase

This commit is contained in:
David Snelling 2026-06-11 14:51:00 -07:00
parent 970e08c466
commit 1f7e365a4e
237 changed files with 1951 additions and 49413 deletions

View file

@ -611,8 +611,10 @@ describe('SmartExtractor', () => {
extractor.addToHistory('Test Entity', NounType.Person, vector)
// History is internal, just ensure no errors
expect(true).toBe(true)
// History lives on the embedding signal the extractor delegates to.
const history = (extractor as any).embeddingSignal.historicalEntities
expect(history).toHaveLength(1)
expect(history[0].text).toBe('Test Entity')
})
it('should clear history', () => {
@ -621,8 +623,8 @@ describe('SmartExtractor', () => {
extractor.clearHistory()
// History cleared, no errors
expect(true).toBe(true)
const history = (extractor as any).embeddingSignal.historicalEntities
expect(history).toHaveLength(0)
})
})
})