theprogrammablemind_4wp 9.3.0-beta.40 → 9.3.0-beta.41

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/client.js CHANGED
@@ -315,7 +315,7 @@ const _process = async (config, query, { initializer, commandLineArgs, credentia
315
315
  if (queries.length === 0) {
316
316
  break
317
317
  }
318
-
318
+ config.updateData(data)
319
319
  data.utterance = queries[0]
320
320
  data.start_counter = startCounter
321
321
  let json = await doWithRetries(retries, url, queryParams, data)
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.3.0-beta.40",
72
+ "version": "9.3.0-beta.41",
73
73
  "license": "UNLICENSED"
74
74
  }
package/src/config.js CHANGED
@@ -1291,6 +1291,15 @@ class Config {
1291
1291
  }
1292
1292
  }
1293
1293
 
1294
+ addEnable(key) {
1295
+ this._enable.push(key)
1296
+ }
1297
+
1298
+ updateData (data) {
1299
+ data.enable = this._enable
1300
+ this._enable = []
1301
+ }
1302
+
1294
1303
  toData (data) {
1295
1304
  Object.assign(data, this.config)
1296
1305
  // greg99 delete data.objects
@@ -1921,6 +1930,7 @@ class Config {
1921
1930
  config.priorities = config.priorities || []
1922
1931
  }
1923
1932
 
1933
+ this._enable = []
1924
1934
  this._apiKMs = apiKMs
1925
1935
 
1926
1936
  this.clientProcess = clientProcess
@@ -86,6 +86,9 @@ const setupArgs = (args, config, logs, hierarchy, uuidForScoping) => {
86
86
  args.objects = config.get('objects')
87
87
  args.getObjects = getObjects(args.objects)
88
88
  }
89
+ args.enable = (key) => {
90
+ config.addEnable(key)
91
+ }
89
92
  if (args.uuid) {
90
93
  args.objects = args.getObjects(args.uuid)
91
94
  }