theprogrammablemind_4wp 9.2.0-beta.2 → 9.2.0-beta.3

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
@@ -69,6 +69,6 @@
69
69
  "sort-json": "^2.0.0",
70
70
  "uuid": "^8.3.2"
71
71
  },
72
- "version": "9.2.0-beta.2",
72
+ "version": "9.2.0-beta.3",
73
73
  "license": "UNLICENSED"
74
74
  }
@@ -1,5 +1,6 @@
1
1
  const { InitCalls } = require('./helpers')
2
2
  const DigraphInternal = require('./digraph_internal')
3
+ const debug = require('./debug')
3
4
 
4
5
  const gs = (g) => async (contexts, separator, lastSeparator) => {
5
6
  if (!Array.isArray(contexts)) {
@@ -215,10 +216,12 @@ const processContext = async (context, { objects = {}, config, logs = [] }) => {
215
216
  return { context, generated, paraphrases, responses }
216
217
  }
217
218
 
218
- const setupProcessB = ({ config, initializer, allowDelta = false } = {}) => {
219
+ const setupProcessB = ({ config, initializer, allowDelta = false, rebuildingTemplate = false } = {}) => {
219
220
  const key = config._key
220
-
221
221
  const data = Object.assign({ key, version: '3' }, { uuid: config._uuid })
222
+ if (rebuildingTemplate) {
223
+ data.return_rtf_associations = true
224
+ }
222
225
  if (allowDelta && config.allowDelta && config.hasDelta()) {
223
226
  // console.log('config', config)
224
227
  data.delta = config.delta()
@@ -414,6 +417,15 @@ const loadInstance = async (config, instance) => {
414
417
  const transitoryMode = global.transitoryMode
415
418
  global.transitoryMode = false
416
419
 
420
+ /*
421
+ if (config.name == 'people' && instance.name == 'people') {
422
+ debugger
423
+ }
424
+ */
425
+ const rl = instance.resultss.length
426
+ if (rl > 0) {
427
+ config.addAssociations(instance.resultss[instance.resultss.length-1].rtf_associations || [])
428
+ }
417
429
  /*
418
430
  TODO needs updating if still wanted
419
431
  if (instance && (instance.associations || instance.learned_contextual_priorities)) {