theprogrammablemind 9.6.3-beta.15 → 9.6.3-beta.17
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 +5 -0
- package/package.json +1 -1
- package/src/semantics.js +3 -0
package/client.js
CHANGED
|
@@ -1339,6 +1339,7 @@ const knowledgeModuleImpl = async ({
|
|
|
1339
1339
|
parser.add_argument('-q', '--query', { help: 'Run the specified query' })
|
|
1340
1340
|
parser.add_argument('-f', '--filter', { help: 'for -pd only the data for the knowledge modules that start with this string will be shown' })
|
|
1341
1341
|
parser.add_argument('-ip ', '--server', { help: 'Server to run against' })
|
|
1342
|
+
parser.add_argument('--trace', { help: 'Trace the semantics and generator calls.' })
|
|
1342
1343
|
parser.add_argument('-qp ', '--queryParams', { help: 'Query params for the server call' })
|
|
1343
1344
|
parser.add_argument('-dt', '--deleteTest', { help: 'Delete the specified query from the tests file.' })
|
|
1344
1345
|
parser.add_argument('--parenthesized', { action: 'store_true', help: 'Show the generated phrases with parenthesis.' })
|
|
@@ -1402,6 +1403,10 @@ const knowledgeModuleImpl = async ({
|
|
|
1402
1403
|
|
|
1403
1404
|
// setup();
|
|
1404
1405
|
|
|
1406
|
+
if (args.trace) {
|
|
1407
|
+
process.env.TPMKMS_TRACE = true
|
|
1408
|
+
}
|
|
1409
|
+
|
|
1405
1410
|
if (args.parenthesized) {
|
|
1406
1411
|
config.parenthesized = true
|
|
1407
1412
|
}
|
package/package.json
CHANGED
package/src/semantics.js
CHANGED
|
@@ -205,6 +205,9 @@ class Semantics {
|
|
|
205
205
|
continueWasCalled = true
|
|
206
206
|
}
|
|
207
207
|
args._continue = _continue
|
|
208
|
+
if (process.env.TPMKMS_TRACE) {
|
|
209
|
+
console.error(semantic.toString())
|
|
210
|
+
}
|
|
208
211
|
contextPrime = await semantic.apply(args, context, s, options)
|
|
209
212
|
if (continueWasCalled) {
|
|
210
213
|
continue
|