theprogrammablemind 7.5.5-beta.2 → 7.5.5-beta.3

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
@@ -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})
@@ -1517,7 +1521,6 @@ const knowledgeModule = async ({
1517
1521
  test = useTestConfig.name
1518
1522
 
1519
1523
  }
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
1524
  runTests(config, test, { debug: args.debug, testConfig: useTestConfig, verbose: args.testVerbose || args.testAllVerbose, stopAtFirstError: !args.testAllVerbose }).then((results) => {
1522
1525
  if (results.length > 0 && args.vimdiff) {
1523
1526
  for (const result of results) {
package/package.json CHANGED
@@ -62,6 +62,6 @@
62
62
  "json-stable-stringify": "^1.0.1",
63
63
  "node-fetch": "^2.6.1"
64
64
  },
65
- "version": "7.5.5-beta.2",
65
+ "version": "7.5.5-beta.3",
66
66
  "license": "ISC"
67
67
  }
package/src/config.js CHANGED
@@ -1220,7 +1220,7 @@ class Config {
1220
1220
  config.priorities = config.priorities || []
1221
1221
  }
1222
1222
 
1223
- this.maxDepth = 50 // for generators and semantics
1223
+ this.maxDepth = 20 // for generators and semantics
1224
1224
  this.debugLoops = false // for generators and semantics
1225
1225
 
1226
1226
  this.allowDelta = false
package/src/semantics.js CHANGED
@@ -118,6 +118,9 @@ class Semantic {
118
118
  callId == this.callId) {
119
119
  debugger;
120
120
  }
121
+ if (args.breakOnSemantics) {
122
+ debugger
123
+ }
121
124
  this._apply(args)
122
125
  return contextPrime
123
126
  }