theprogrammablemind 7.5.5-beta.2 → 7.5.5-beta.4
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 -1
- package/src/semantics.js +3 -0
package/client.js
CHANGED
@@ -130,6 +130,10 @@ const setupArgs = (args, config, logs, hierarchy) => {
|
|
130
130
|
}
|
131
131
|
}
|
132
132
|
args.motivation = (m) => config.addMotivation(m)
|
133
|
+
args.breakOnSemantics = false
|
134
|
+
args.theDebugger = {
|
135
|
+
breakOnSemantics: (value) => args.breakOnSemantics = value
|
136
|
+
}
|
133
137
|
args.s = (c) => config.getSemantics(logs).apply(args, c)
|
134
138
|
args.g = (c) => config.getGenerators(logs).apply(args, c)
|
135
139
|
args.gp = (c) => config.getGenerators(logs).apply(args, { ...c, paraphrase: true, isResponse: false, response: false})
|
@@ -1144,6 +1148,8 @@ const build = async ({ config, target, template, errorHandler = defaultErrorHand
|
|
1144
1148
|
delete result.load_cache_time
|
1145
1149
|
delete result.times
|
1146
1150
|
delete result.memory_free_percent
|
1151
|
+
delete result.logs
|
1152
|
+
delete result.version
|
1147
1153
|
result.hierarchy.sort()
|
1148
1154
|
stabilizeAssociations(result.associations)
|
1149
1155
|
}
|
@@ -1517,7 +1523,6 @@ const knowledgeModule = async ({
|
|
1517
1523
|
test = useTestConfig.name
|
1518
1524
|
|
1519
1525
|
}
|
1520
|
-
// runTests(config, args.testFileName ? `${args.testFileName}.test.json` : test, { debug: args.debug, testConfig: testConfig, verbose: args.testVerbose || args.testAllVerbose, stopAtFirstError: !args.testAllVerbose }).then((results) => {
|
1521
1526
|
runTests(config, test, { debug: args.debug, testConfig: useTestConfig, verbose: args.testVerbose || args.testAllVerbose, stopAtFirstError: !args.testAllVerbose }).then((results) => {
|
1522
1527
|
if (results.length > 0 && args.vimdiff) {
|
1523
1528
|
for (const result of results) {
|
package/package.json
CHANGED
package/src/config.js
CHANGED
@@ -1220,7 +1220,7 @@ class Config {
|
|
1220
1220
|
config.priorities = config.priorities || []
|
1221
1221
|
}
|
1222
1222
|
|
1223
|
-
this.maxDepth =
|
1223
|
+
this.maxDepth = 20 // for generators and semantics
|
1224
1224
|
this.debugLoops = false // for generators and semantics
|
1225
1225
|
|
1226
1226
|
this.allowDelta = false
|