react-brai 1.2.5 → 1.2.6

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.
package/dist/index.d.mts CHANGED
@@ -52,6 +52,7 @@ declare function useUniversalAI(workerPath?: string): {
52
52
  runPipeline: (task: string, model: string, input: any, options?: {}) => Promise<any>;
53
53
  pipelines: Record<string, TransformerStatus>;
54
54
  progress: Record<string, number>;
55
+ workerStatus: "connecting" | "active" | "dead";
55
56
  };
56
57
 
57
58
  export { type CustomModelRecord, type Message, type ModelID, type ModelRecord, type WorkerMessage, type WorkerPayload, useLocalAI, useUniversalAI };
package/dist/index.d.ts CHANGED
@@ -52,6 +52,7 @@ declare function useUniversalAI(workerPath?: string): {
52
52
  runPipeline: (task: string, model: string, input: any, options?: {}) => Promise<any>;
53
53
  pipelines: Record<string, TransformerStatus>;
54
54
  progress: Record<string, number>;
55
+ workerStatus: "connecting" | "active" | "dead";
55
56
  };
56
57
 
57
58
  export { type CustomModelRecord, type Message, type ModelID, type ModelRecord, type WorkerMessage, type WorkerPayload, useLocalAI, useUniversalAI };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-brai",
3
- "version": "1.2.5",
3
+ "version": "1.2.6",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -12,7 +12,7 @@
12
12
  "build:worker": "tsup src/worker.ts --format esm --no-splitting --clean --dts",
13
13
  "embed": "node scripts/embed-worker.js",
14
14
  "build:lib": "tsup src/index.ts --format cjs,esm --dts --external react",
15
- "build": "tsup && npm run protect && node copy-dts.js && npm run clean-temp",
15
+ "build": "tsup && node copy-dts.js && npm run clean-temp",
16
16
  "protect": "javascript-obfuscator ./dist-raw --output ./dist --compact true --identifier-names-generator hexadecimal",
17
17
  "clean-temp": "node -e \"require('fs').rmSync('dist-raw', {recursive: true, force: true})\""
18
18
  },