theprogrammablemind 7.6.0-beta.0 → 7.6.0-beta.1
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 +0 -11
- package/package.json +1 -1
- package/src/config.js +0 -6
package/client.js
CHANGED
@@ -778,10 +778,6 @@ const runTest = async (config, expected, { args, verbose, testConfig, debug }) =
|
|
778
778
|
const test = expected.query
|
779
779
|
// initialize in between test so state is not preserved since the test was adding without state
|
780
780
|
config.rebuild()
|
781
|
-
if (!args.dontAddAssociations) {
|
782
|
-
config.addAssociationsFromTests(config.tests)
|
783
|
-
}
|
784
|
-
// config.addAssocationsFromTests(
|
785
781
|
const errorHandler = (error) => {
|
786
782
|
if (error.metadata) {
|
787
783
|
const priorities = analyzeMetaData(expected.metadata, error.metadata)
|
@@ -1466,7 +1462,6 @@ const knowledgeModule = async ({
|
|
1466
1462
|
parser.add_argument('--parenthesized', { action: 'store_true', help: 'Show the generated phrases with parenthesis.' })
|
1467
1463
|
parser.add_argument('-c', '--clean', { help: 'Remove data from the test files. a === association' })
|
1468
1464
|
parser.add_argument('-od', '--objectDiff', { action: 'store_true', help: 'When showing the objects use a colour diff' })
|
1469
|
-
parser.add_argument('-daa', '--dontAddAssociations', { action: 'store_true', help: 'Do not add associations from the tests.' })
|
1470
1465
|
parser.add_argument('-p', '--print', { help: 'Print the specified elements c === config, w === words, b === bridges, o === operators d === objects (d for data), h === hierarchy, g === generators, s === semantics, l === load t=tests ordering p === priorities a == associations j == JSON sent to server. for example --print wb' })
|
1471
1466
|
parser.add_argument('-s', '--save', { action: 'store_true', help: 'When running with the --query flag this will save the current run to the test file. When running without the --query flag all tests will be run and resaved.' })
|
1472
1467
|
parser.add_argument('-sd', '--saveDeveloper', { action: 'store_true', help: 'Same as -s but the query will not show up in the info command.' })
|
@@ -1685,10 +1680,6 @@ const knowledgeModule = async ({
|
|
1685
1680
|
}
|
1686
1681
|
}
|
1687
1682
|
|
1688
|
-
if (!args.save && !args.rebuildTemplate && !args.dontAddAssociations) {
|
1689
|
-
config.addAssociationsFromTests(config.tests);
|
1690
|
-
}
|
1691
|
-
|
1692
1683
|
if (args.retrain) {
|
1693
1684
|
config.config.retrain = true
|
1694
1685
|
}
|
@@ -1939,8 +1930,6 @@ const knowledgeModule = async ({
|
|
1939
1930
|
errorHandler(e)
|
1940
1931
|
}
|
1941
1932
|
}
|
1942
|
-
|
1943
|
-
config.addAssociationsFromTests(config.tests);
|
1944
1933
|
}
|
1945
1934
|
|
1946
1935
|
createConfigExport = () => {
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -1137,12 +1137,6 @@ class Config {
|
|
1137
1137
|
return this.config.objects.namespaced[this._uuid]
|
1138
1138
|
}
|
1139
1139
|
|
1140
|
-
addAssociationsFromTests(tests = []) {
|
1141
|
-
for (let test of tests) {
|
1142
|
-
this.addAssociations(test.associations || []);
|
1143
|
-
}
|
1144
|
-
}
|
1145
|
-
|
1146
1140
|
addAssociations (associations) {
|
1147
1141
|
for (let association of associations) {
|
1148
1142
|
this.addAssociation(association)
|