theprogrammablemind 9.6.0-beta.19 → 9.6.0-beta.20
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 +3 -1
- package/package.json +1 -1
- package/src/config.js +3 -1
package/client.js
CHANGED
|
@@ -798,6 +798,8 @@ const defaultErrorHandler = async (error) => {
|
|
|
798
798
|
if (typeof runtime.process.exit === 'function' && doErrorExit) {
|
|
799
799
|
runtime.process.exit(-1)
|
|
800
800
|
}
|
|
801
|
+
|
|
802
|
+
error.config = null // otherwise it dumps to much on the console
|
|
801
803
|
|
|
802
804
|
throw error
|
|
803
805
|
}
|
|
@@ -1464,7 +1466,7 @@ const knowledgeModuleImpl = async ({
|
|
|
1464
1466
|
let tests = JSON.parse(runtime.fs.readFileSync(testConfig.name))
|
|
1465
1467
|
tests = tests.filter((test) => test.query !== args.deleteTest)
|
|
1466
1468
|
writeTestFile(testConfig.name, tests)
|
|
1467
|
-
console.log(`
|
|
1469
|
+
console.log(`Delete the test for "${args.deleteTest}"`)
|
|
1468
1470
|
return
|
|
1469
1471
|
}
|
|
1470
1472
|
|
package/package.json
CHANGED
package/src/config.js
CHANGED
|
@@ -542,6 +542,7 @@ const handleCalculatedProps = (baseConfig, moreConfig, { addFirst, uuid } = {})
|
|
|
542
542
|
'generatorr',
|
|
543
543
|
'generators',
|
|
544
544
|
'id',
|
|
545
|
+
'init',
|
|
545
546
|
'inverted',
|
|
546
547
|
'isA',
|
|
547
548
|
'level',
|
|
@@ -3489,7 +3490,8 @@ class Config {
|
|
|
3489
3490
|
}
|
|
3490
3491
|
|
|
3491
3492
|
// TODO get rid of useOldVersion arg
|
|
3492
|
-
addInternal (more,
|
|
3493
|
+
addInternal (more,
|
|
3494
|
+
{ uuid, km, addFirst = false, useOldVersion = true, skipObjects = false, includeNamespaces = true, allowNameToBeNull = false, handleCalculatedProps: hcps = false } = {}) {
|
|
3493
3495
|
validConfigProps(more)
|
|
3494
3496
|
if (more instanceof Config) {
|
|
3495
3497
|
more.initialize({ force: false })
|