theprogrammablemind_4wp 9.2.0-beta.4 → 9.2.0-beta.5

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 +17 -1
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -1673,12 +1673,28 @@ const knowledgeModuleImpl = async ({
1673
1673
  newError = true
1674
1674
  headerShown = true
1675
1675
  if (args.vimdiff) {
1676
- vimdiff(actual, expected, `"${result.utterance}" - ${label}`)
1676
+ vimdiff(actual, expected, `"${label} - ${result.utterance}"`)
1677
1677
  }
1678
1678
  result.hasError = true
1679
1679
  }
1680
1680
  }
1681
1681
  if (!deepEqual(result.expected.summaries, result.actual.summaries)) {
1682
+ const tidy_summaries = (summaries) => {
1683
+ const summaries_prime = []
1684
+ for (const chunk of summaries) {
1685
+ chunk_prime = { length: chunk.length, summaries: [] }
1686
+ for (const summary of chunk.summaries) {
1687
+ const summary_prime = { counter: summary.counter, operators: [] }
1688
+ for (const operator of summary.operators) {
1689
+ summary_prime.operators.push(`{ marker: [${operator.marker[0]}, ${operator.marker[1]}] range: { start: ${operator.range.start}, end: ${operator.range.end} } }`)
1690
+ }
1691
+ chunk_prime.summaries.push(summary_prime)
1692
+ }
1693
+ summaries_prime.push(chunk_prime)
1694
+ }
1695
+ return summaries_prime
1696
+ }
1697
+ show('operators', tidy_summaries(result.expected.summaries), tidy_summaries(result.actual.summaries))
1682
1698
  /*
1683
1699
  const suggestion = suggestAssociationsFix(result.expected.summaries, result.actual.summaries)
1684
1700
  let suggestedFix
package/package.json CHANGED
@@ -69,6 +69,6 @@
69
69
  "sort-json": "^2.0.0",
70
70
  "uuid": "^8.3.2"
71
71
  },
72
- "version": "9.2.0-beta.4",
72
+ "version": "9.2.0-beta.5",
73
73
  "license": "UNLICENSED"
74
74
  }