ekms 9.7.1-beta.11 → 9.7.1-beta.13
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/actions.instance.json +11 -1
- package/common/actions.js +1 -1
- package/common/angle.instance.json +27 -0
- package/common/articles.js +38 -4
- package/common/can.instance.json +1 -1
- package/common/comparable.instance.json +12 -6
- package/common/conjunction.js +2 -2
- package/common/countable.js +39 -5
- package/common/crew.instance.json +1005 -158
- package/common/crew.js +3 -3
- package/common/dialogues.js +3 -4
- package/common/dimension.instance.json +136 -10
- package/common/dimension.js +5 -5
- package/common/drone.instance.json +406 -369
- package/common/drone.js +38 -8
- package/common/drone_v1.instance.json +105 -0
- package/common/edible.instance.json +72 -0
- package/common/emotions.instance.json +143 -4
- package/common/fastfood.instance.json +456 -313
- package/common/fastfood.js +7 -0
- package/common/gdefaults.js +12 -121
- package/common/hierarchy.js +0 -1
- package/common/length.instance.json +27 -0
- package/common/ordering.instance.json +2 -1
- package/common/ordinals.js +9 -3
- package/common/pipboy.instance.json +2 -2
- package/common/pipboy.js +3 -3
- package/common/pressure.instance.json +27 -0
- package/common/properties.instance.json +322 -37
- package/common/properties.js +38 -31
- package/common/reports.instance.json +5 -3
- package/common/stm.js +15 -9
- package/common/temperature.instance.json +27 -0
- package/common/time.instance.json +167 -0
- package/common/weight.instance.json +27 -0
- package/common/wp.instance.json +21 -21
- package/common/wp.js +62 -10
- package/package.json +2 -2
package/common/crew.js
CHANGED
|
@@ -13,10 +13,10 @@ const template = {
|
|
|
13
13
|
"kirk's rank is captain",
|
|
14
14
|
({config}) => {
|
|
15
15
|
config.updateBridge('rank', ({ bridge }) => {
|
|
16
|
-
if (!bridge.
|
|
17
|
-
bridge.
|
|
16
|
+
if (!bridge.initial) {
|
|
17
|
+
bridge.initial = {}
|
|
18
18
|
}
|
|
19
|
-
bridge.
|
|
19
|
+
bridge.initial['typeIsSingular'] = true
|
|
20
20
|
})
|
|
21
21
|
},
|
|
22
22
|
"kirk's eyes are blue",
|
package/common/dialogues.js
CHANGED
|
@@ -93,7 +93,7 @@ const config = {
|
|
|
93
93
|
...after[0],
|
|
94
94
|
verb: after[0],
|
|
95
95
|
that: operator,
|
|
96
|
-
|
|
96
|
+
interpolate: [ { property: 'that' }, { property: 'verb' }],
|
|
97
97
|
localPriorities: { actLike: ["subordinatedVerb", 0] },
|
|
98
98
|
bridge_override: {
|
|
99
99
|
operator: after[0].marker,
|
|
@@ -101,7 +101,7 @@ const config = {
|
|
|
101
101
|
...bridge.subject,
|
|
102
102
|
postModifiers: ["conditions"],
|
|
103
103
|
modifiers: [],
|
|
104
|
-
|
|
104
|
+
interpolate: map(bridge.interpolate, { inside: "thatClause", value: element }),
|
|
105
105
|
thatClause: bridge,
|
|
106
106
|
conditions: append(bridge.subject.conditions, [bridge])
|
|
107
107
|
}'
|
|
@@ -211,7 +211,7 @@ const config = {
|
|
|
211
211
|
{
|
|
212
212
|
id: "isQuery",
|
|
213
213
|
localHierarchy: [['unknown', 'queryable']],
|
|
214
|
-
bridge: "{ ...operator, marker: operator('is', 1), one: after[0], two: after[1], query: true,
|
|
214
|
+
bridge: "{ ...operator, marker: operator('is', 1), one: after[0], two: after[1], query: true, interpolate: [ { context: operator }, { property: 'one' }, { property: 'two' }] }" ,
|
|
215
215
|
isA: ['verb'],
|
|
216
216
|
},
|
|
217
217
|
|
|
@@ -643,7 +643,6 @@ const config = {
|
|
|
643
643
|
}
|
|
644
644
|
|
|
645
645
|
// if not isA add to stm
|
|
646
|
-
// debug.counter('greg57', { breakAt: 1 })
|
|
647
646
|
if (!onePrime.sameWasProcessed && !twoPrime.sameWasProcessed) {
|
|
648
647
|
for (const child of propertyToArray(one)) {
|
|
649
648
|
await api.makeObject({ context: child, config, types: context.two.types || [] })
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"dimension and measurement unit are concepts",
|
|
6
6
|
"unit means measurement unit",
|
|
7
7
|
{
|
|
8
|
-
"apply": "({apis}) => {\n apis('properties').addHierarchyWatcher({\n match: ({parentId, isA}) => isA(parentId, 'unit') && parentId.startsWith('unit_'),\n apply: ({config, childId, parent, parentId}) => {\n config.updateBridge(childId, ({ bridge }) => {\n if (!bridge.
|
|
8
|
+
"apply": "({apis}) => {\n apis('properties').addHierarchyWatcher({\n match: ({parentId, isA}) => isA(parentId, 'unit') && parentId.startsWith('unit_'),\n apply: ({config, childId, parent, parentId}) => {\n config.updateBridge(childId, ({ bridge }) => {\n if (!bridge.initial) {\n bridge.initial = {}\n }\n bridge.initial['dimension'] = parent.object.value\n })\n }\n })\n }"
|
|
9
9
|
},
|
|
10
10
|
"metric modifies system",
|
|
11
11
|
"imperial modifies system",
|
|
@@ -144,12 +144,16 @@
|
|
|
144
144
|
"id": "amountOfCoordinate",
|
|
145
145
|
"convolution": true,
|
|
146
146
|
"before": [
|
|
147
|
-
"preposition"
|
|
147
|
+
"preposition",
|
|
148
|
+
"propertyMarker"
|
|
149
|
+
],
|
|
150
|
+
"after": [
|
|
151
|
+
"mathematical_operator"
|
|
148
152
|
],
|
|
149
153
|
"bridge": "{ marker: next(operator('quantity')), dead: true, unit: after[0], amount: before[0], interpolate: [ { property: 'amount' }, { property: 'unit' } ] }"
|
|
150
154
|
},
|
|
151
155
|
{
|
|
152
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
156
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:258",
|
|
153
157
|
"id": "convertToUnits",
|
|
154
158
|
"bridge": "{ ...next(operator), from: before[0], to: after[0] }",
|
|
155
159
|
"isA": [
|
|
@@ -7058,7 +7062,7 @@
|
|
|
7058
7062
|
}
|
|
7059
7063
|
},
|
|
7060
7064
|
{
|
|
7061
|
-
"apply": "({apis}) => {\n apis('properties').addHierarchyWatcher({\n match: ({parentId, isA}) => isA(parentId, 'unit') && parentId.startsWith('unit_'),\n apply: ({config, childId, parent, parentId}) => {\n config.updateBridge(childId, ({ bridge }) => {\n if (!bridge.
|
|
7065
|
+
"apply": "({apis}) => {\n apis('properties').addHierarchyWatcher({\n match: ({parentId, isA}) => isA(parentId, 'unit') && parentId.startsWith('unit_'),\n apply: ({config, childId, parent, parentId}) => {\n config.updateBridge(childId, ({ bridge }) => {\n if (!bridge.initial) {\n bridge.initial = {}\n }\n bridge.initial['dimension'] = parent.object.value\n })\n }\n })\n }"
|
|
7062
7066
|
},
|
|
7063
7067
|
{
|
|
7064
7068
|
"hierarchy": [
|
|
@@ -14411,14 +14415,73 @@
|
|
|
14411
14415
|
"atomic": true,
|
|
14412
14416
|
"dead": true,
|
|
14413
14417
|
"modifiers": [
|
|
14414
|
-
"determiner",
|
|
14415
14418
|
"modifier_metric"
|
|
14416
14419
|
],
|
|
14417
14420
|
"focusableForPhrase": true,
|
|
14418
14421
|
"pullFromContext": true,
|
|
14419
14422
|
"concept": true,
|
|
14420
14423
|
"wantsValue": true,
|
|
14421
|
-
"
|
|
14424
|
+
"checks": [
|
|
14425
|
+
"determiner"
|
|
14426
|
+
],
|
|
14427
|
+
"determiner": {
|
|
14428
|
+
"modifiers": [],
|
|
14429
|
+
"text": "the",
|
|
14430
|
+
"marker": "the",
|
|
14431
|
+
"word": "the",
|
|
14432
|
+
"range": {
|
|
14433
|
+
"start": 0,
|
|
14434
|
+
"end": 2
|
|
14435
|
+
},
|
|
14436
|
+
"level": 0
|
|
14437
|
+
},
|
|
14438
|
+
"theable": {
|
|
14439
|
+
"value": "metric_system",
|
|
14440
|
+
"number": "one",
|
|
14441
|
+
"text": "metric system",
|
|
14442
|
+
"marker": "metric_system",
|
|
14443
|
+
"word": "system",
|
|
14444
|
+
"range": {
|
|
14445
|
+
"start": 4,
|
|
14446
|
+
"end": 16
|
|
14447
|
+
},
|
|
14448
|
+
"types": [
|
|
14449
|
+
"metric_system",
|
|
14450
|
+
"system"
|
|
14451
|
+
],
|
|
14452
|
+
"modifier_metric": {
|
|
14453
|
+
"value": "metric",
|
|
14454
|
+
"number": "one",
|
|
14455
|
+
"text": "metric",
|
|
14456
|
+
"marker": "metric",
|
|
14457
|
+
"word": "metric",
|
|
14458
|
+
"range": {
|
|
14459
|
+
"start": 4,
|
|
14460
|
+
"end": 9
|
|
14461
|
+
},
|
|
14462
|
+
"types": [
|
|
14463
|
+
"metric"
|
|
14464
|
+
],
|
|
14465
|
+
"level": 0
|
|
14466
|
+
},
|
|
14467
|
+
"atomic": true,
|
|
14468
|
+
"dead": true,
|
|
14469
|
+
"modifiers": [
|
|
14470
|
+
"modifier_metric"
|
|
14471
|
+
],
|
|
14472
|
+
"level": 0
|
|
14473
|
+
},
|
|
14474
|
+
"flatten_ignore": [
|
|
14475
|
+
"theable"
|
|
14476
|
+
],
|
|
14477
|
+
"interpolate": [
|
|
14478
|
+
{
|
|
14479
|
+
"property": "determiner"
|
|
14480
|
+
},
|
|
14481
|
+
{
|
|
14482
|
+
"property": "theable"
|
|
14483
|
+
}
|
|
14484
|
+
],
|
|
14422
14485
|
"level": 0
|
|
14423
14486
|
},
|
|
14424
14487
|
"two": {
|
|
@@ -16818,14 +16881,73 @@
|
|
|
16818
16881
|
"atomic": true,
|
|
16819
16882
|
"dead": true,
|
|
16820
16883
|
"modifiers": [
|
|
16821
|
-
"determiner",
|
|
16822
16884
|
"modifier_imperial"
|
|
16823
16885
|
],
|
|
16824
16886
|
"focusableForPhrase": true,
|
|
16825
16887
|
"pullFromContext": true,
|
|
16826
16888
|
"concept": true,
|
|
16827
16889
|
"wantsValue": true,
|
|
16828
|
-
"
|
|
16890
|
+
"checks": [
|
|
16891
|
+
"determiner"
|
|
16892
|
+
],
|
|
16893
|
+
"determiner": {
|
|
16894
|
+
"modifiers": [],
|
|
16895
|
+
"text": "the",
|
|
16896
|
+
"marker": "the",
|
|
16897
|
+
"word": "the",
|
|
16898
|
+
"range": {
|
|
16899
|
+
"start": 0,
|
|
16900
|
+
"end": 2
|
|
16901
|
+
},
|
|
16902
|
+
"level": 0
|
|
16903
|
+
},
|
|
16904
|
+
"theable": {
|
|
16905
|
+
"value": "imperial_system",
|
|
16906
|
+
"number": "one",
|
|
16907
|
+
"text": "imperial system",
|
|
16908
|
+
"marker": "imperial_system",
|
|
16909
|
+
"word": "system",
|
|
16910
|
+
"range": {
|
|
16911
|
+
"start": 4,
|
|
16912
|
+
"end": 18
|
|
16913
|
+
},
|
|
16914
|
+
"types": [
|
|
16915
|
+
"imperial_system",
|
|
16916
|
+
"system"
|
|
16917
|
+
],
|
|
16918
|
+
"modifier_imperial": {
|
|
16919
|
+
"value": "imperial",
|
|
16920
|
+
"number": "one",
|
|
16921
|
+
"text": "imperial",
|
|
16922
|
+
"marker": "imperial",
|
|
16923
|
+
"word": "imperial",
|
|
16924
|
+
"range": {
|
|
16925
|
+
"start": 4,
|
|
16926
|
+
"end": 11
|
|
16927
|
+
},
|
|
16928
|
+
"types": [
|
|
16929
|
+
"imperial"
|
|
16930
|
+
],
|
|
16931
|
+
"level": 0
|
|
16932
|
+
},
|
|
16933
|
+
"atomic": true,
|
|
16934
|
+
"dead": true,
|
|
16935
|
+
"modifiers": [
|
|
16936
|
+
"modifier_imperial"
|
|
16937
|
+
],
|
|
16938
|
+
"level": 0
|
|
16939
|
+
},
|
|
16940
|
+
"flatten_ignore": [
|
|
16941
|
+
"theable"
|
|
16942
|
+
],
|
|
16943
|
+
"interpolate": [
|
|
16944
|
+
{
|
|
16945
|
+
"property": "determiner"
|
|
16946
|
+
},
|
|
16947
|
+
{
|
|
16948
|
+
"property": "theable"
|
|
16949
|
+
}
|
|
16950
|
+
],
|
|
16829
16951
|
"level": 0
|
|
16830
16952
|
},
|
|
16831
16953
|
"two": {
|
|
@@ -26124,12 +26246,16 @@
|
|
|
26124
26246
|
"id": "amountOfCoordinate",
|
|
26125
26247
|
"convolution": true,
|
|
26126
26248
|
"before": [
|
|
26127
|
-
"preposition"
|
|
26249
|
+
"preposition",
|
|
26250
|
+
"propertyMarker"
|
|
26251
|
+
],
|
|
26252
|
+
"after": [
|
|
26253
|
+
"mathematical_operator"
|
|
26128
26254
|
],
|
|
26129
26255
|
"bridge": "{ marker: next(operator('quantity')), dead: true, unit: after[0], amount: before[0], interpolate: [ { property: 'amount' }, { property: 'unit' } ] }"
|
|
26130
26256
|
},
|
|
26131
26257
|
{
|
|
26132
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:
|
|
26258
|
+
"where": "/home/dev/code/theprogrammablemind/kms/common/dimension.js:258",
|
|
26133
26259
|
"id": "convertToUnits",
|
|
26134
26260
|
"bridge": "{ ...next(operator), from: before[0], to: after[0] }",
|
|
26135
26261
|
"isA": [
|
package/common/dimension.js
CHANGED
|
@@ -249,7 +249,8 @@ const config = {
|
|
|
249
249
|
{
|
|
250
250
|
id: "amountOfCoordinate",
|
|
251
251
|
convolution: true,
|
|
252
|
-
before: ['preposition'],
|
|
252
|
+
before: ['preposition', 'propertyMarker'],
|
|
253
|
+
after: ['mathematical_operator'],
|
|
253
254
|
// bridge: "{ marker: next(operator('quantity')), dead: true, unit: after[0], value: before[0].value, amount: before[0] }"
|
|
254
255
|
bridge: "{ marker: next(operator('quantity')), dead: true, unit: after[0], amount: before[0], interpolate: [ { property: 'amount' }, { property: 'unit' } ] }"
|
|
255
256
|
},
|
|
@@ -286,11 +287,10 @@ const template = {
|
|
|
286
287
|
match: ({parentId, isA}) => isA(parentId, 'unit') && parentId.startsWith('unit_'),
|
|
287
288
|
apply: ({config, childId, parent, parentId}) => {
|
|
288
289
|
config.updateBridge(childId, ({ bridge }) => {
|
|
289
|
-
if (!bridge.
|
|
290
|
-
bridge.
|
|
290
|
+
if (!bridge.initial) {
|
|
291
|
+
bridge.initial = {}
|
|
291
292
|
}
|
|
292
|
-
|
|
293
|
-
bridge.init['dimension'] = parent.object.value
|
|
293
|
+
bridge.initial['dimension'] = parent.object.value
|
|
294
294
|
})
|
|
295
295
|
}
|
|
296
296
|
})
|