theprogrammablemind 7.5.8-beta.91 → 7.5.8-beta.93

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.
Files changed (2) hide show
  1. package/client.js +5 -4
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -836,24 +836,25 @@ const runTest = async (config, expected, { args, verbose, testConfig, debug }) =
836
836
  if (!name) {
837
837
  name = config.name
838
838
  }
839
- return expected.objects.namespaced[expected.objects.nameToUUID[name]]
839
+ return expected.objects.namespaced[expected.objects.nameToUUID[name]] || {}
840
840
  }
841
- const expected_checked = sortJson(pickObjects(testConfig, objects), { depth: 25 })
841
+ const expected_checked = sortJson(pickObjects(testConfig, expectedGetObjects()), { depth: 25 })
842
842
  const actualGetObjects = (name) => {
843
843
  if (!name) {
844
844
  name = config.name
845
845
  }
846
846
  const km = config.configs.find( (km) => km.name == name )
847
- return config.config.objects.namespaced[km.uuid]
847
+ return config.config.objects.namespaced[km.uuid] || {}
848
848
  }
849
849
  const actual_checked = sortJson(pickObjects(testConfig, actualGetObjects(testConfigName)), { depth: 25 })
850
850
  const failed_checked = !matching(actual_objects, expected_objects)
851
851
 
852
852
  const failed_checks = !matching(actual_objects, expected_objects)
853
+ const failed_checked_objects = !matching(actual_checked, expected_checked)
853
854
  const actual_config = sortJson(convertToStable(getConfigForTest(config, testConfig)), { depth: 25 })
854
855
  const expected_config = sortJson(convertToStable(expected.config), { depth: 25 })
855
856
  const failed_config = !matching(actual_config, expected_config)
856
- let failed = failed_paraphrases || failed_paraphrasesParenthesized || failed_generatedParenthesized || failed_responses || failed_contexts || failed_objects || failed_config || failed_checked || failedCheckedContexts
857
+ let failed = failed_checked_objects || failed_paraphrases || failed_paraphrasesParenthesized || failed_generatedParenthesized || failed_responses || failed_contexts || failed_objects || failed_config || failed_checked || failedCheckedContexts
857
858
 
858
859
  if (expected.metadata && result.metadata && failed) {
859
860
  const priorities = analyzeMetaData(expected.metadata, result.metadata)
package/package.json CHANGED
@@ -64,6 +64,6 @@
64
64
  "json-stable-stringify": "^1.0.1",
65
65
  "node-fetch": "^2.6.1"
66
66
  },
67
- "version": "7.5.8-beta.91",
67
+ "version": "7.5.8-beta.93",
68
68
  "license": "ISC"
69
69
  }