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/avatar.test.json +1001 -860
- package/common/concept.js +19 -22
- package/common/dateTimeSelectors.test.json +95954 -55427
- package/common/dimension.instance.json +21348 -552
- package/common/dimension.js +52 -27
- package/common/dimension.test.json +6699 -222
- package/common/{tank.instance.json → drone.instance.json} +13078 -4251
- package/common/{tank.js → drone.js} +47 -26
- package/common/{tank.test.json → drone.test.json} +3467 -2778
- package/common/fastfood.instance.json +681 -201
- package/common/helpers.js +2 -1
- package/common/hierarchy.js +2 -1
- package/common/kirk.test.json +600 -424
- package/common/length.instance.json +19329 -2521
- package/common/length.js +3 -1
- package/common/length.test.json +13943 -339
- package/common/meta.js +1 -0
- package/common/nameable.js +13 -6
- package/common/nameable.test.json +436 -0
- package/common/pressure.instance.json +2745 -745
- package/common/reminders.test.json +57841 -19033
- package/common/reports.instance.json +2 -2
- package/common/spock.test.json +606 -430
- package/common/stm.js +13 -2
- package/common/temperature.instance.json +3377 -1377
- package/common/time.instance.json +6248 -1748
- package/common/weight.instance.json +9577 -3577
- package/main.js +2 -2
- package/package.json +6 -6
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],
|
package/common/hierarchy.js
CHANGED
|
@@ -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)
|