@plur-ai/core 0.9.1 → 0.9.2

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2966,6 +2966,10 @@ var Plur = class {
2966
2966
  constructor(options) {
2967
2967
  this.paths = detectPlurStorage(options?.path);
2968
2968
  this.config = loadConfig(this.paths.config);
2969
+ this.autoDiscoverStores();
2970
+ if (this.config.stores?.length !== loadConfig(this.paths.config).stores?.length) {
2971
+ this.config = loadConfig(this.paths.config);
2972
+ }
2969
2973
  if (this.config.index) {
2970
2974
  this.indexedStorage = new IndexedStorage(this.paths.engrams, this.paths.db, this.config.stores);
2971
2975
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plur-ai/core",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",