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

@ -146,10 +146,15 @@ export class BrainyMCPAdapter {
)
}
// This is a simplified implementation - in a real implementation, we would
// need to check if these methods exist on the BrainyInterface
const outgoing = await (this.brainyData as any).getVerbsBySource?.(id) || []
const incoming = await (this.brainyData as any).getVerbsByTarget?.(id) || []
// BrainyInterface doesn't expose verb-level accessors — these optional
// probes target methods older Brainy builds carried, and resolve to empty
// relationship lists when (as on current builds) the methods are absent.
const verbAccessors = this.brainyData as BrainyInterface & {
getVerbsBySource?: (id: string) => Promise<unknown[]>
getVerbsByTarget?: (id: string) => Promise<unknown[]>
}
const outgoing = await verbAccessors.getVerbsBySource?.(id) || []
const incoming = await verbAccessors.getVerbsByTarget?.(id) || []
return this.createSuccessResponse(request.requestId, { outgoing, incoming })
}