theprogrammablemind 9.0.3 → 9.1.1-beta.0

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/package.json CHANGED
@@ -67,6 +67,6 @@
67
67
  "sort-json": "^2.0.0",
68
68
  "uuid": "^8.3.2"
69
69
  },
70
- "version": "9.0.3",
70
+ "version": "9.1.1-beta.0",
71
71
  "license": "UNLICENSED"
72
72
  }
package/src/config.js CHANGED
@@ -1131,7 +1131,9 @@ class Config {
1131
1131
  }
1132
1132
  const instanceFragments = (instance.fragments || []).map((fragment) => fragment.key || fragment.query).map(toCanonical)
1133
1133
  const templateFragments = (template.fragments || []).concat(this.dynamicFragments).map(toCanonical)
1134
- const sameFragments = helpers.safeEquals(templateFragments, instanceFragments)
1134
+ const hasStop = template.configs && template.configs.find((config) => config.stop)
1135
+ // stop means fragments are not build so dont for a rebuild on the diff
1136
+ const sameFragments = hasStop || helpers.safeEquals(templateFragments, instanceFragments)
1135
1137
  const toCanonicalQuery = (queryOrConfig) => {
1136
1138
  if (typeof queryOrConfig === 'string') {
1137
1139
  const query = queryOrConfig
@@ -395,6 +395,8 @@ const loadInstance = async (config, instance) => {
395
395
  const transitoryMode = global.transitoryMode
396
396
  global.transitoryMode = false
397
397
 
398
+ /*
399
+ TODO needs updating if still wanted
398
400
  if (instance && (instance.associations || instance.learned_contextual_priorities)) {
399
401
  if (!config.config.retrain) {
400
402
  if (instance.associations) {
@@ -405,6 +407,7 @@ const loadInstance = async (config, instance) => {
405
407
  }
406
408
  }
407
409
  }
410
+ */
408
411
 
409
412
  // const { /* data, generators, semantics, */ hierarchy } = setupProcessB({ config })
410
413
  const hierarchy = config.hierarchy