From b07d15690fd861e84c0053f64e861f85fb3bba7c Mon Sep 17 00:00:00 2001 From: David Snelling Date: Wed, 17 Sep 2025 17:06:19 -0700 Subject: [PATCH] fix: exclude cortex modules from browser bundles to prevent CLI dependency issues - Add cortex module exclusions in browser field - Prevents chalk, ora, boxen imports from being bundled in browsers - Resolves process.stderr.isTTY error in browser environments - Cortex functionality remains available in Node.js environments --- package-lock.json | 4 ++-- package.json | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 22f1be95..cf75deab 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@soulcraft/brainy", - "version": "3.8.0", + "version": "3.8.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@soulcraft/brainy", - "version": "3.8.0", + "version": "3.8.1", "license": "MIT", "dependencies": { "@aws-sdk/client-s3": "^3.540.0", diff --git a/package.json b/package.json index b45acaaa..2ec18d0f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@soulcraft/brainy", - "version": "3.8.0", + "version": "3.8.1", "description": "Universal Knowledge Protocol™ - World's first Triple Intelligence database unifying vector, graph, and document search in one API. 31 nouns × 40 verbs for infinite expressiveness.", "main": "dist/index.js", "module": "dist/index.js", @@ -44,7 +44,12 @@ "browser": { "./dist/distributed": false, "./dist/cli": false, - "./dist/scripts": false + "./dist/scripts": false, + "./dist/cortex": false, + "./dist/cortex/neuralImport.js": false, + "./dist/cortex/performanceMonitor.js": false, + "./dist/cortex/healthCheck.js": false, + "./dist/cortex/backupRestore.js": false }, "engines": { "node": "22.x"