/** * @module unified * @description Unified entry point for Brainy. Re-exports the public surface * from `index.js` and surfaces a tiny runtime-environment object the rest of * the library can read. * * 8.0 supports Node-like runtimes only (Node.js, Bun, Deno); the browser * detection helpers and Worker Thread plumbing are gone. */ import './setup.js' import { isNode } from './utils/environment.js' export const environment = { get isNode() { return isNode() } } if (typeof globalThis !== 'undefined') { ;(globalThis as any).__ENV__ = environment } console.log( `Brainy running on ${environment.isNode ? 'Node-like runtime' : 'unknown runtime'}` ) export * from './index.js' export { applyTensorFlowPatch } from './utils/textEncoding.js'