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

@ -191,12 +191,12 @@ describe('CRITICAL: Real-World Neural Matching Validation', () => {
metadata: { role: 'lead' }
})
const johnsRelations = await brainy.getRelations({
const johnsRelations = await brainy.related({
from: johnId
})
expect(johnsRelations.length).toBe(2)
const acmeRelations = await brainy.getRelations({
const acmeRelations = await brainy.related({
to: acmeId
})
expect(acmeRelations.length).toBe(1)
@ -236,12 +236,12 @@ describe('CRITICAL: Real-World Neural Matching Validation', () => {
metadata: { startDate: '2023-01-01' }
})
const aliceRelations = await brainy.getRelations({
const aliceRelations = await brainy.related({
from: aliceId
})
expect(aliceRelations.length).toBeGreaterThanOrEqual(3)
const proj2Relations = await brainy.getRelations({
const proj2Relations = await brainy.related({
to: proj2Id
})
expect(proj2Relations.length).toBe(2)
@ -334,7 +334,7 @@ describe('CRITICAL: Real-World Neural Matching Validation', () => {
const notFound = await brainy.get('00000000-0000-0000-0000-000000000099')
expect(notFound).toBeNull()
const relations = await brainy.getRelations({
const relations = await brainy.related({
from: '00000000-0000-0000-0000-000000000099'
})
expect(relations).toEqual([])