theprogrammablemind 7.10.0-beta.6 → 7.10.0-beta.8
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 +11 -1
- package/package.json +1 -1
package/client.js
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
"use strict"
|
2
|
+
|
1
3
|
const { Semantics, Semantic } = require('./src/semantics')
|
2
4
|
const { Generators, Generator } = require('./src/generators')
|
3
5
|
const DigraphInternal = require('./src/digraph_internal')
|
@@ -362,7 +364,7 @@ const writeTest = (fn, query, objects, generated, paraphrases, responses, contex
|
|
362
364
|
}
|
363
365
|
associations.sort()
|
364
366
|
// tests[query] = sortJson({ paraphrases, responses, contexts, objects: convertToStable(objects), associations, metadata, config, developerTest: saveDeveloper }, { depth: 25 })
|
365
|
-
results = sortJson({
|
367
|
+
const results = sortJson({
|
366
368
|
query,
|
367
369
|
paraphrases,
|
368
370
|
responses,
|
@@ -1466,6 +1468,14 @@ const knowledgeModuleImpl = async ({
|
|
1466
1468
|
...rest
|
1467
1469
|
} = {}) => {
|
1468
1470
|
|
1471
|
+
template = _.cloneDeep(template)
|
1472
|
+
|
1473
|
+
// if (template.queries[91] && template.queries[91].bridge) {
|
1474
|
+
if (template.queries[91]) {
|
1475
|
+
debugger
|
1476
|
+
debugger
|
1477
|
+
Object.freeze(template.queries[91])
|
1478
|
+
}
|
1469
1479
|
const unknownArgs = Object.keys(rest)
|
1470
1480
|
if (unknownArgs.length > 0) {
|
1471
1481
|
throw new Error(`Unknown arguments to knowledgeModule: ${unknownArgs.join()}`)
|