theprogrammablemind_4wp 7.5.0-beta.17 → 7.5.0-beta.19
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 +4 -4
- package/package.json +1 -1
- package/src/config.js +11 -1
    
        package/client.js
    CHANGED
    
    | @@ -1278,7 +1278,7 @@ const knowledgeModule = async ({ | |
| 1278 1278 | 
             
                parser.add_argument('-q', '--query', { help: 'Run the specified query' })
         | 
| 1279 1279 | 
             
                parser.add_argument('-ip ', '--server', { help: 'Server to run against' })
         | 
| 1280 1280 | 
             
                parser.add_argument('-qp ', '--queryParams', { help: 'Query params for the server call' })
         | 
| 1281 | 
            -
                parser.add_argument('- | 
| 1281 | 
            +
                parser.add_argument('-dt', '--deleteTest', { help: 'Delete the specified query from the tests file.' })
         | 
| 1282 1282 | 
             
                parser.add_argument('-c', '--clean', { help: 'Remove data from the test files. a === association' })
         | 
| 1283 1283 | 
             
                parser.add_argument('-od', '--objectDiff', { action: 'store_true', help: 'When showing the objects use a colour diff' })
         | 
| 1284 1284 | 
             
                parser.add_argument('-daa', '--dontAddAssociations', { action: 'store_true', help: 'Do not add associations from the tests.' })
         | 
| @@ -1317,11 +1317,11 @@ const knowledgeModule = async ({ | |
| 1317 1317 | 
             
                  return
         | 
| 1318 1318 | 
             
                }
         | 
| 1319 1319 |  | 
| 1320 | 
            -
                if (args. | 
| 1320 | 
            +
                if (args.deleteTest) {
         | 
| 1321 1321 | 
             
                  let tests = JSON.parse(runtime.fs.readFileSync(testConfig.name))
         | 
| 1322 | 
            -
                  tests = tests.filter( (test) => test.query !== args. | 
| 1322 | 
            +
                  tests = tests.filter( (test) => test.query !== args.deleteTest );
         | 
| 1323 1323 | 
             
                  writeTestFile(testConfig.name, tests)
         | 
| 1324 | 
            -
                  console.log(`Remove the test for "${args. | 
| 1324 | 
            +
                  console.log(`Remove the test for "${args.deleteTest}"`)
         | 
| 1325 1325 | 
             
                  return
         | 
| 1326 1326 | 
             
                }
         | 
| 1327 1327 |  | 
    
        package/package.json
    CHANGED
    
    
    
        package/src/config.js
    CHANGED
    
    | @@ -1101,7 +1101,7 @@ class Config { | |
| 1101 1101 | 
             
                  config = _.cloneDeep(config)
         | 
| 1102 1102 | 
             
                  this.config = config
         | 
| 1103 1103 | 
             
                  for (let bridge of this.config.bridges) {
         | 
| 1104 | 
            -
                    const valid = [ 'before', 'bridge', 'development', 'evaluator', 'generatorp', 'generatorr', 'generators', 'id', 'implicit', 'inverted', 'isA',
         | 
| 1104 | 
            +
                    const valid = [ 'before', 'bridge', 'development', 'evaluator', 'generatorp', 'generatorr', 'generators', 'id', 'implicit', 'inverted', 'isA', 'children', 'parents',
         | 
| 1105 1105 | 
             
                                    'level', 'optional', 'selector', 'semantic',  'words', /Bridge$/, 'localHierarchy' ]
         | 
| 1106 1106 | 
             
                    helpers.validProps(valid, bridge, 'bridge')
         | 
| 1107 1107 | 
             
                    /*
         | 
| @@ -1112,6 +1112,16 @@ class Config { | |
| 1112 1112 | 
             
                      })
         | 
| 1113 1113 | 
             
                    }
         | 
| 1114 1114 | 
             
                    */
         | 
| 1115 | 
            +
                    if (bridge.children) {
         | 
| 1116 | 
            +
                      for (let child of bridge.children) {
         | 
| 1117 | 
            +
                        this.addHierarchy(child, bridge.id)
         | 
| 1118 | 
            +
                      }
         | 
| 1119 | 
            +
                    }
         | 
| 1120 | 
            +
                    if (bridge.parents) {
         | 
| 1121 | 
            +
                      for (let parent of bridge.parents) {
         | 
| 1122 | 
            +
                        this.addHierarchy(bridge.id, parent)
         | 
| 1123 | 
            +
                      }
         | 
| 1124 | 
            +
                    }
         | 
| 1115 1125 | 
             
                    if (bridge.isA) {
         | 
| 1116 1126 | 
             
                      for (let parent of bridge.isA) {
         | 
| 1117 1127 | 
             
                        this.addHierarchy(bridge.id, parent)
         |