theprogrammablemind_4wp 7.12.3-beta.5 → 7.12.4-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/client.js +22 -0
  2. package/package.json +1 -1
package/client.js CHANGED
@@ -777,6 +777,7 @@ const _process = async (config, query, { initializer, commandLineArgs, credentia
777
777
  response.trace = response.trace.concat(json.trace)
778
778
  response.version = json.version
779
779
  response.explain_priorities = json.explain_priorities
780
+ response.contextual_priorities_ambiguities = json.contextual_priorities_ambiguities
780
781
 
781
782
  response.contexts = response.contexts.concat(contextsPrime)
782
783
  response.generated = response.generated.concat(generatedPrime)
@@ -1155,6 +1156,24 @@ const defaultErrorHandler = async (error) => {
1155
1156
  throw error
1156
1157
  }
1157
1158
 
1159
+ const printContextualPrioritiesAmbiguities = (cpa) => {
1160
+ console.log('Contextual Priorities Ambiguities')
1161
+ for (const counter in cpa) {
1162
+ console.log(` Counter ${counter}`)
1163
+ for (const choices of cpa[counter]) {
1164
+ console.log(' [')
1165
+ for (const choice of choices) {
1166
+ console.log(' [')
1167
+ for (const element of choice) {
1168
+ console.log(` ${JSON.stringify(element)},`)
1169
+ }
1170
+ console.log(' ],')
1171
+ }
1172
+ console.log(' ],')
1173
+ }
1174
+ }
1175
+ }
1176
+
1158
1177
  const defaultInnerProcess = (config, errorHandler, responses) => {
1159
1178
  if (responses.errors) {
1160
1179
  console.log('Errors')
@@ -1173,6 +1192,9 @@ const defaultInnerProcess = (config, errorHandler, responses) => {
1173
1192
  console.log('Logs')
1174
1193
  responses.logs.forEach((log) => console.log(` ${log}`))
1175
1194
  }
1195
+ if (responses.contextual_priorities_ambiguities) {
1196
+ printContextualPrioritiesAmbiguities(responses.contextual_priorities_ambiguities)
1197
+ }
1176
1198
  console.log(responses.trace)
1177
1199
 
1178
1200
  if (global.beforeObjects) {
package/package.json CHANGED
@@ -65,6 +65,6 @@
65
65
  "json-stable-stringify": "^1.0.1",
66
66
  "node-fetch": "^2.6.1"
67
67
  },
68
- "version": "7.12.3-beta.5",
68
+ "version": "7.12.4-beta.0",
69
69
  "license": "UNLICENSED"
70
70
  }