tpmkms_4wp 9.5.1-beta.30 → 9.5.1-beta.32

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/common/helpers.js CHANGED
@@ -188,6 +188,7 @@ function defaultObjectCheck(extra = []) {
188
188
  return {
189
189
  objects: [
190
190
  {
191
+ extra,
191
192
  match: ({objects}) => true,
192
193
  apply: () => extra
193
194
  },
@@ -204,9 +205,9 @@ function defaultContextCheck({marker, extra = [], exported = false} = {}) {
204
205
  if (marker) {
205
206
  match = ({context}) => context.marker == marker
206
207
  } else {
207
- match = ({context}) => !Array.isArray(context)
208
208
  }
209
209
  return {
210
+ marker,
210
211
  match,
211
212
  exported,
212
213
  apply: () => ['marker', 'text', 'verbatim', 'value', 'evalue', 'isResponse', { properties: 'modifiers' }, { properties: 'postModifiers' }, ...extra],
@@ -1,4 +1,4 @@
1
- const { knowledgeModule, where } = require('./runtime').theprogrammablemind
1
+ const { debug, knowledgeModule, where } = require('./runtime').theprogrammablemind
2
2
  const { defaultContextCheck } = require('./helpers')
3
3
  const properties = require('./properties')
4
4
  const hierarchy_tests = require('./hierarchy.test.json')
@@ -253,6 +253,7 @@ const config = {
253
253
  const twoConcepts = asList(context.same);
254
254
  for (const oneConcept of oneConcepts.value) {
255
255
  for (const twoConcept of twoConcepts.value) {
256
+ // debug.counter('greg23', { breakAt: 39 })
256
257
  oneConceptId = await api.makeObject({...args, context: oneConcept})
257
258
  twoConceptId = await api.makeObject({...args, context: twoConcept})
258
259
  api.rememberIsA(oneConceptId, twoConceptId)