@soulcraft/brainy 0.9.30 → 0.9.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,10 +20,19 @@ export declare function areWebWorkersAvailable(): boolean;
20
20
  /**
21
21
  * Check if Worker Threads are available in the current environment (Node.js)
22
22
  */
23
- export declare function areWorkerThreadsAvailable(): boolean;
23
+ export declare function areWorkerThreadsAvailable(): Promise<boolean>;
24
+ /**
25
+ * Synchronous version that doesn't actually try to load the module
26
+ * This is safer in ES module environments
27
+ */
28
+ export declare function areWorkerThreadsAvailableSync(): boolean;
24
29
  /**
25
30
  * Determine if threading is available in the current environment
26
31
  * Returns true if either Web Workers (browser) or Worker Threads (Node.js) are available
27
32
  */
28
33
  export declare function isThreadingAvailable(): boolean;
34
+ /**
35
+ * Async version of isThreadingAvailable
36
+ */
37
+ export declare function isThreadingAvailableAsync(): Promise<boolean>;
29
38
  //# sourceMappingURL=environment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/utils/environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAIhC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAIrC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED;;GAEG;AACH,wBAAgB,yBAAyB,IAAI,OAAO,CAUnD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C"}
1
+ {"version":3,"file":"environment.d.ts","sourceRoot":"","sources":["../../src/utils/environment.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED;;GAEG;AACH,wBAAgB,MAAM,IAAI,OAAO,CAMhC;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,OAAO,CAMrC;AAED;;GAEG;AACH,wBAAgB,sBAAsB,IAAI,OAAO,CAEhD;AAED;;GAEG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC,CAUlE;AAED;;;GAGG;AACH,wBAAgB,6BAA6B,IAAI,OAAO,CAKvD;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAED;;GAEG;AACH,wBAAsB,yBAAyB,IAAI,OAAO,CAAC,OAAO,CAAC,CAElE"}
@@ -1 +1 @@
1
- {"version":3,"file":"tensorflowUtils.d.ts","sourceRoot":"","sources":["../../src/utils/tensorflowUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAwDH;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAKpD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAElD"}
1
+ {"version":3,"file":"tensorflowUtils.d.ts","sourceRoot":"","sources":["../../src/utils/tensorflowUtils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAmFH;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAKpD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAElD"}
@@ -2,5 +2,5 @@
2
2
  * This file is auto-generated during the build process.
3
3
  * Do not modify this file directly.
4
4
  */
5
- export declare const VERSION = "0.9.30";
5
+ export declare const VERSION = "0.9.32";
6
6
  //# sourceMappingURL=version.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soulcraft/brainy",
3
- "version": "0.9.30",
3
+ "version": "0.9.32",
4
4
  "description": "A vector graph database using HNSW indexing with Origin Private File System storage",
5
5
  "main": "dist/unified.js",
6
6
  "module": "dist/unified.js",
@@ -31,6 +31,7 @@
31
31
  "prebuild": "node scripts/generate-version.js",
32
32
  "build": "BUILD_TYPE=unified rollup -c rollup.config.js",
33
33
  "build:browser": "BUILD_TYPE=browser rollup -c rollup.config.js",
34
+ "build:cli": "cd cli-package && npm run build",
34
35
  "start": "node dist/unified.js",
35
36
  "demo": "npm run build && npm run build:browser && npx http-server -o /index.html",
36
37
  "version": "node scripts/generate-version.js",
@@ -44,6 +45,7 @@
44
45
  "check-style": "node scripts/check-code-style.js",
45
46
  "prepare": "npm run build",
46
47
  "publish": "npm run build && npm publish",
48
+ "publish:cli": "node scripts/generate-version.js && cd cli-package && npm run build && npm publish",
47
49
  "publish:both": "node scripts/publish-cli.js",
48
50
  "deploy:cloud:aws": "cd cloud-wrapper && npm run build && npm run deploy:aws",
49
51
  "deploy:cloud:gcp": "cd cloud-wrapper && npm run build && npm run deploy:gcp",