theprogrammablemind 8.0.0-beta.75 → 8.0.0-beta.76
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 +6 -1
- package/package.json +1 -1
- package/src/config.js +1 -0
- package/src/helpers.js +1 -1
package/client.js
CHANGED
@@ -297,12 +297,14 @@ const _process = async (config, query, { initializer, commandLineArgs, credentia
|
|
297
297
|
associations: []
|
298
298
|
}
|
299
299
|
|
300
|
+
let startCounter = 0
|
300
301
|
while (true) {
|
301
302
|
if (queries.length === 0) {
|
302
303
|
break
|
303
304
|
}
|
304
305
|
|
305
306
|
data.utterance = queries[0]
|
307
|
+
data.start_counter = startCounter
|
306
308
|
let json = await doWithRetries(retries, url, queryParams, data)
|
307
309
|
let resetData = false
|
308
310
|
if (json.code == 'NOT_IN_CACHE') {
|
@@ -324,6 +326,7 @@ const _process = async (config, query, { initializer, commandLineArgs, credentia
|
|
324
326
|
}
|
325
327
|
}
|
326
328
|
json.contexts = json.results
|
329
|
+
startCounter= json.end_counter + 1
|
327
330
|
delete json.results
|
328
331
|
if (json.status !== 200) {
|
329
332
|
throw json
|
@@ -361,6 +364,7 @@ const _process = async (config, query, { initializer, commandLineArgs, credentia
|
|
361
364
|
response.generatedParenthesized = response.generatedParenthesized.concat(generatedParenthesizedPrime)
|
362
365
|
response.responses = response.responses.concat(responsesPrime)
|
363
366
|
queries = queries.slice(1)
|
367
|
+
|
364
368
|
}
|
365
369
|
}
|
366
370
|
|
@@ -1233,12 +1237,13 @@ const knowledgeModuleImpl = async ({
|
|
1233
1237
|
args.rebuildTemplate = true
|
1234
1238
|
}
|
1235
1239
|
|
1240
|
+
config = await createConfig()
|
1241
|
+
|
1236
1242
|
// dont debug the load of the KM's if rebuild template is on since we want to debug the template rebuild not the load
|
1237
1243
|
if (args.rebuildTemplate) {
|
1238
1244
|
global.pauseDebugging = true
|
1239
1245
|
}
|
1240
1246
|
|
1241
|
-
config = await createConfig()
|
1242
1247
|
setupConfig(config)
|
1243
1248
|
processResults = processResults({ config, errorHandler })
|
1244
1249
|
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -2115,6 +2115,7 @@ class Config {
|
|
2115
2115
|
cp.instances = this.instances.slice()
|
2116
2116
|
cp.configCounter = this.configCounter
|
2117
2117
|
cp.testConfig = this.testConfig
|
2118
|
+
cp._server = this._server
|
2118
2119
|
|
2119
2120
|
cp.initConfig = _.cloneDeep(this.initConfig)
|
2120
2121
|
cp.defaultConfig()
|
package/src/helpers.js
CHANGED
@@ -10,7 +10,7 @@ function where (goUp = 2) {
|
|
10
10
|
let match
|
11
11
|
for (line of lines.slice(1)) {
|
12
12
|
// if (!(line.includes('config.js:') || line.includes('client.js:') || line.includes('<anonymous>'))) {
|
13
|
-
if (!(line.includes('config.js:') || line.includes('client.js:'))) {
|
13
|
+
if (!(line.includes('config.js:') || line.includes('client.js:') || line.includes('helpers.js:'))) {
|
14
14
|
match = regexForm1.exec(line) || regexForm2.exec(line)
|
15
15
|
if (!match) {
|
16
16
|
continue
|