ekms 8.7.0 → 8.8.0-beta.1
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/animals.instance.json +101 -0
- package/common/colors.instance.json +178 -6
- package/common/colors.js +1 -1
- package/common/crew.instance.json +637 -139
- package/common/crew.js +3 -3
- package/common/dialogues.js +12 -1
- package/common/dimension.instance.json +41 -1
- package/common/edible.instance.json +348 -4
- package/common/emotions.instance.json +65 -0
- package/common/emotions.js +4 -4
- package/common/fastfood.instance.json +1348 -760
- package/common/formulas.instance.json +5 -1
- package/common/help.js +5 -0
- package/common/helpers/properties.js +2 -1
- package/common/kirk.instance.json +5 -0
- package/common/length.instance.json +75 -0
- package/common/math.instance.json +5 -0
- package/common/numbers.js +15 -3
- package/common/ordering.instance.json +10 -52
- package/common/people.instance.json +66 -23
- package/common/people.js +15 -0
- package/common/pipboy.instance.json +162 -5
- package/common/pipboy.js +1 -0
- package/common/pokemon.instance.json +65 -0
- package/common/pressure.instance.json +20 -0
- package/common/pressure.js +4 -4
- package/common/properties.instance.json +49 -0
- package/common/properties.js +1 -0
- package/common/reports.instance.json +11 -1
- package/common/reports.js +2 -2
- package/common/reports.test.json +6037 -2930
- package/common/spock.instance.json +5 -0
- package/common/temperature.instance.json +20 -0
- package/common/tokenize.js +1 -1
- package/common/weight.instance.json +105 -1
- package/package.json +2 -2
@@ -29,7 +29,6 @@
|
|
29
29
|
],
|
30
30
|
"semantics": [
|
31
31
|
{
|
32
|
-
"where": "/home/dev/code/theprogrammablemind/kms/common/formulas.js:109",
|
33
32
|
"match": "({context, api}) => context.evaluate && api.get(context)",
|
34
33
|
"apply": "async ({context, api, e}) => {\n const { formula } = api.get(context)\n // console.log('greg24 -----------', JSON.stringify(formula, null, 2))\n context.evalue = await e(formula) \n }"
|
35
34
|
}
|
@@ -619,6 +618,11 @@
|
|
619
618
|
"theAble",
|
620
619
|
false
|
621
620
|
],
|
621
|
+
[
|
622
|
+
"propertyOf",
|
623
|
+
"preposition",
|
624
|
+
false
|
625
|
+
],
|
622
626
|
[
|
623
627
|
"punctuation",
|
624
628
|
"punctuation",
|
package/common/help.js
CHANGED
@@ -104,7 +104,7 @@ class API {
|
|
104
104
|
localHierarchy,
|
105
105
|
bridge: `{
|
106
106
|
...before,
|
107
|
-
marker: '${after[0].tag}',
|
107
|
+
marker: operator('${after[0].tag}'),
|
108
108
|
constraints: [
|
109
109
|
{
|
110
110
|
property: '${after[0].tag}',
|
@@ -137,6 +137,7 @@ class API {
|
|
137
137
|
config.addHierarchy(edAble.operator, 'isEdAble')
|
138
138
|
config.addHierarchy(before[0].id, 'isEder')
|
139
139
|
config.addHierarchy(after[0].id, 'isEdee')
|
140
|
+
config.addHierarchy('isEdee', 'queryable')
|
140
141
|
config.addSemantic({
|
141
142
|
notes: 'semantic for setting value with constraint',
|
142
143
|
match: ({context, isA}) => isA(context.marker, after[0].tag) && context.evaluate && context.constraints,
|
@@ -669,6 +669,11 @@
|
|
669
669
|
"theAble",
|
670
670
|
false
|
671
671
|
],
|
672
|
+
[
|
673
|
+
"propertyOf",
|
674
|
+
"preposition",
|
675
|
+
false
|
676
|
+
],
|
672
677
|
[
|
673
678
|
"punctuation",
|
674
679
|
"punctuation",
|
@@ -1856,6 +1861,11 @@
|
|
1856
1861
|
"theAble",
|
1857
1862
|
false
|
1858
1863
|
],
|
1864
|
+
[
|
1865
|
+
"propertyOf",
|
1866
|
+
"preposition",
|
1867
|
+
false
|
1868
|
+
],
|
1859
1869
|
[
|
1860
1870
|
"punctuation",
|
1861
1871
|
"punctuation",
|
@@ -3712,6 +3722,11 @@
|
|
3712
3722
|
"theAble",
|
3713
3723
|
false
|
3714
3724
|
],
|
3725
|
+
[
|
3726
|
+
"propertyOf",
|
3727
|
+
"preposition",
|
3728
|
+
false
|
3729
|
+
],
|
3715
3730
|
[
|
3716
3731
|
"punctuation",
|
3717
3732
|
"punctuation",
|
@@ -5113,6 +5128,11 @@
|
|
5113
5128
|
"theAble",
|
5114
5129
|
false
|
5115
5130
|
],
|
5131
|
+
[
|
5132
|
+
"propertyOf",
|
5133
|
+
"preposition",
|
5134
|
+
false
|
5135
|
+
],
|
5116
5136
|
[
|
5117
5137
|
"punctuation",
|
5118
5138
|
"punctuation",
|
@@ -6514,6 +6534,11 @@
|
|
6514
6534
|
"theAble",
|
6515
6535
|
false
|
6516
6536
|
],
|
6537
|
+
[
|
6538
|
+
"propertyOf",
|
6539
|
+
"preposition",
|
6540
|
+
false
|
6541
|
+
],
|
6517
6542
|
[
|
6518
6543
|
"punctuation",
|
6519
6544
|
"punctuation",
|
@@ -7928,6 +7953,11 @@
|
|
7928
7953
|
"theAble",
|
7929
7954
|
false
|
7930
7955
|
],
|
7956
|
+
[
|
7957
|
+
"propertyOf",
|
7958
|
+
"preposition",
|
7959
|
+
false
|
7960
|
+
],
|
7931
7961
|
[
|
7932
7962
|
"punctuation",
|
7933
7963
|
"punctuation",
|
@@ -9352,6 +9382,11 @@
|
|
9352
9382
|
"theAble",
|
9353
9383
|
false
|
9354
9384
|
],
|
9385
|
+
[
|
9386
|
+
"propertyOf",
|
9387
|
+
"preposition",
|
9388
|
+
false
|
9389
|
+
],
|
9355
9390
|
[
|
9356
9391
|
"punctuation",
|
9357
9392
|
"punctuation",
|
@@ -10776,6 +10811,11 @@
|
|
10776
10811
|
"theAble",
|
10777
10812
|
false
|
10778
10813
|
],
|
10814
|
+
[
|
10815
|
+
"propertyOf",
|
10816
|
+
"preposition",
|
10817
|
+
false
|
10818
|
+
],
|
10779
10819
|
[
|
10780
10820
|
"punctuation",
|
10781
10821
|
"punctuation",
|
@@ -12190,6 +12230,11 @@
|
|
12190
12230
|
"theAble",
|
12191
12231
|
false
|
12192
12232
|
],
|
12233
|
+
[
|
12234
|
+
"propertyOf",
|
12235
|
+
"preposition",
|
12236
|
+
false
|
12237
|
+
],
|
12193
12238
|
[
|
12194
12239
|
"punctuation",
|
12195
12240
|
"punctuation",
|
@@ -13591,6 +13636,11 @@
|
|
13591
13636
|
"theAble",
|
13592
13637
|
false
|
13593
13638
|
],
|
13639
|
+
[
|
13640
|
+
"propertyOf",
|
13641
|
+
"preposition",
|
13642
|
+
false
|
13643
|
+
],
|
13594
13644
|
[
|
13595
13645
|
"punctuation",
|
13596
13646
|
"punctuation",
|
@@ -14992,6 +15042,11 @@
|
|
14992
15042
|
"theAble",
|
14993
15043
|
false
|
14994
15044
|
],
|
15045
|
+
[
|
15046
|
+
"propertyOf",
|
15047
|
+
"preposition",
|
15048
|
+
false
|
15049
|
+
],
|
14995
15050
|
[
|
14996
15051
|
"punctuation",
|
14997
15052
|
"punctuation",
|
@@ -16393,6 +16448,11 @@
|
|
16393
16448
|
"theAble",
|
16394
16449
|
false
|
16395
16450
|
],
|
16451
|
+
[
|
16452
|
+
"propertyOf",
|
16453
|
+
"preposition",
|
16454
|
+
false
|
16455
|
+
],
|
16396
16456
|
[
|
16397
16457
|
"punctuation",
|
16398
16458
|
"punctuation",
|
@@ -17785,6 +17845,11 @@
|
|
17785
17845
|
"theAble",
|
17786
17846
|
false
|
17787
17847
|
],
|
17848
|
+
[
|
17849
|
+
"propertyOf",
|
17850
|
+
"preposition",
|
17851
|
+
false
|
17852
|
+
],
|
17788
17853
|
[
|
17789
17854
|
"punctuation",
|
17790
17855
|
"punctuation",
|
@@ -19199,6 +19264,11 @@
|
|
19199
19264
|
"theAble",
|
19200
19265
|
false
|
19201
19266
|
],
|
19267
|
+
[
|
19268
|
+
"propertyOf",
|
19269
|
+
"preposition",
|
19270
|
+
false
|
19271
|
+
],
|
19202
19272
|
[
|
19203
19273
|
"punctuation",
|
19204
19274
|
"punctuation",
|
@@ -20623,6 +20693,11 @@
|
|
20623
20693
|
"theAble",
|
20624
20694
|
false
|
20625
20695
|
],
|
20696
|
+
[
|
20697
|
+
"propertyOf",
|
20698
|
+
"preposition",
|
20699
|
+
false
|
20700
|
+
],
|
20626
20701
|
[
|
20627
20702
|
"punctuation",
|
20628
20703
|
"punctuation",
|
package/common/numbers.js
CHANGED
@@ -51,9 +51,21 @@ let config = {
|
|
51
51
|
"tens": [{"id": "integer", "initial": "{ value: 10, integer: 'many', instance: true }" }],
|
52
52
|
},
|
53
53
|
patterns: [
|
54
|
-
{
|
55
|
-
|
56
|
-
|
54
|
+
{
|
55
|
+
pattern: [{ type: 'digit' }, { repeat: true }],
|
56
|
+
allow_partial_matches: false,
|
57
|
+
defs: [{id: "integer", uuid: '1', initial: "{ value: int(text), instance: true }" }]
|
58
|
+
},
|
59
|
+
{
|
60
|
+
pattern: [{ type: 'digit' }, { repeat: true }, '.', { type: 'digit' }, { repeat: true }],
|
61
|
+
allow_partial_matches: false,
|
62
|
+
defs: [{id: "number", uuid: '1', initial: "{ value: float(text), instance: true }" }]
|
63
|
+
},
|
64
|
+
{
|
65
|
+
pattern: ['.', { type: 'digit' }, { repeat: true }],
|
66
|
+
allow_partial_matches: false,
|
67
|
+
defs: [{id: "number", uuid: '1', initial: "{ value: float(text), instance: true }" }]
|
68
|
+
},
|
57
69
|
],
|
58
70
|
},
|
59
71
|
|
@@ -236,6 +236,11 @@
|
|
236
236
|
"theAble",
|
237
237
|
false
|
238
238
|
],
|
239
|
+
[
|
240
|
+
"propertyOf",
|
241
|
+
"preposition",
|
242
|
+
false
|
243
|
+
],
|
239
244
|
[
|
240
245
|
"punctuation",
|
241
246
|
"punctuation",
|
@@ -730,32 +735,6 @@
|
|
730
735
|
0
|
731
736
|
]
|
732
737
|
],
|
733
|
-
[
|
734
|
-
[
|
735
|
-
"between",
|
736
|
-
0
|
737
|
-
],
|
738
|
-
[
|
739
|
-
"is",
|
740
|
-
0
|
741
|
-
],
|
742
|
-
[
|
743
|
-
"list",
|
744
|
-
0
|
745
|
-
],
|
746
|
-
[
|
747
|
-
"unknown",
|
748
|
-
0
|
749
|
-
],
|
750
|
-
[
|
751
|
-
"unknown",
|
752
|
-
1
|
753
|
-
],
|
754
|
-
[
|
755
|
-
"xfx",
|
756
|
-
0
|
757
|
-
]
|
758
|
-
],
|
759
738
|
[
|
760
739
|
[
|
761
740
|
"between",
|
@@ -1103,6 +1082,11 @@
|
|
1103
1082
|
"theAble",
|
1104
1083
|
false
|
1105
1084
|
],
|
1085
|
+
[
|
1086
|
+
"propertyOf",
|
1087
|
+
"preposition",
|
1088
|
+
false
|
1089
|
+
],
|
1106
1090
|
[
|
1107
1091
|
"punctuation",
|
1108
1092
|
"punctuation",
|
@@ -2279,32 +2263,6 @@
|
|
2279
2263
|
0
|
2280
2264
|
]
|
2281
2265
|
],
|
2282
|
-
[
|
2283
|
-
[
|
2284
|
-
"between",
|
2285
|
-
0
|
2286
|
-
],
|
2287
|
-
[
|
2288
|
-
"is",
|
2289
|
-
0
|
2290
|
-
],
|
2291
|
-
[
|
2292
|
-
"list",
|
2293
|
-
0
|
2294
|
-
],
|
2295
|
-
[
|
2296
|
-
"unknown",
|
2297
|
-
0
|
2298
|
-
],
|
2299
|
-
[
|
2300
|
-
"unknown",
|
2301
|
-
1
|
2302
|
-
],
|
2303
|
-
[
|
2304
|
-
"xfx",
|
2305
|
-
0
|
2306
|
-
]
|
2307
|
-
],
|
2308
2266
|
[
|
2309
2267
|
[
|
2310
2268
|
"between",
|
@@ -5,7 +5,12 @@
|
|
5
5
|
"surname means last name",
|
6
6
|
"given modifies name",
|
7
7
|
"given name means first name",
|
8
|
-
"ownee is owned by owner means owner owns ownee"
|
8
|
+
"ownee is owned by owner means owner owns ownee",
|
9
|
+
{
|
10
|
+
"associations": {
|
11
|
+
"positive": []
|
12
|
+
}
|
13
|
+
}
|
9
14
|
],
|
10
15
|
"resultss": [
|
11
16
|
{
|
@@ -97,7 +102,7 @@
|
|
97
102
|
],
|
98
103
|
[
|
99
104
|
"isEdee",
|
100
|
-
"
|
105
|
+
"queryable",
|
101
106
|
false
|
102
107
|
],
|
103
108
|
[
|
@@ -215,6 +220,11 @@
|
|
215
220
|
"theAble",
|
216
221
|
false
|
217
222
|
],
|
223
|
+
[
|
224
|
+
"propertyOf",
|
225
|
+
"preposition",
|
226
|
+
false
|
227
|
+
],
|
218
228
|
[
|
219
229
|
"punctuation",
|
220
230
|
"punctuation",
|
@@ -691,7 +701,7 @@
|
|
691
701
|
],
|
692
702
|
[
|
693
703
|
"isEdee",
|
694
|
-
"
|
704
|
+
"queryable",
|
695
705
|
false
|
696
706
|
],
|
697
707
|
[
|
@@ -854,6 +864,11 @@
|
|
854
864
|
"theAble",
|
855
865
|
false
|
856
866
|
],
|
867
|
+
[
|
868
|
+
"propertyOf",
|
869
|
+
"preposition",
|
870
|
+
false
|
871
|
+
],
|
857
872
|
[
|
858
873
|
"punctuation",
|
859
874
|
"punctuation",
|
@@ -1334,7 +1349,7 @@
|
|
1334
1349
|
],
|
1335
1350
|
[
|
1336
1351
|
"isEdee",
|
1337
|
-
"
|
1352
|
+
"queryable",
|
1338
1353
|
false
|
1339
1354
|
],
|
1340
1355
|
[
|
@@ -1587,6 +1602,11 @@
|
|
1587
1602
|
"theAble",
|
1588
1603
|
false
|
1589
1604
|
],
|
1605
|
+
[
|
1606
|
+
"propertyOf",
|
1607
|
+
"preposition",
|
1608
|
+
false
|
1609
|
+
],
|
1590
1610
|
[
|
1591
1611
|
"punctuation",
|
1592
1612
|
"punctuation",
|
@@ -2112,7 +2132,7 @@
|
|
2112
2132
|
],
|
2113
2133
|
[
|
2114
2134
|
"isEdee",
|
2115
|
-
"
|
2135
|
+
"queryable",
|
2116
2136
|
false
|
2117
2137
|
],
|
2118
2138
|
[
|
@@ -2365,6 +2385,11 @@
|
|
2365
2385
|
"theAble",
|
2366
2386
|
false
|
2367
2387
|
],
|
2388
|
+
[
|
2389
|
+
"propertyOf",
|
2390
|
+
"preposition",
|
2391
|
+
false
|
2392
|
+
],
|
2368
2393
|
[
|
2369
2394
|
"punctuation",
|
2370
2395
|
"punctuation",
|
@@ -2935,7 +2960,7 @@
|
|
2935
2960
|
],
|
2936
2961
|
[
|
2937
2962
|
"isEdee",
|
2938
|
-
"
|
2963
|
+
"queryable",
|
2939
2964
|
false
|
2940
2965
|
],
|
2941
2966
|
[
|
@@ -3188,6 +3213,11 @@
|
|
3188
3213
|
"theAble",
|
3189
3214
|
false
|
3190
3215
|
],
|
3216
|
+
[
|
3217
|
+
"propertyOf",
|
3218
|
+
"preposition",
|
3219
|
+
false
|
3220
|
+
],
|
3191
3221
|
[
|
3192
3222
|
"punctuation",
|
3193
3223
|
"punctuation",
|
@@ -3817,7 +3847,7 @@
|
|
3817
3847
|
],
|
3818
3848
|
[
|
3819
3849
|
"isEdee",
|
3820
|
-
"
|
3850
|
+
"queryable",
|
3821
3851
|
false
|
3822
3852
|
],
|
3823
3853
|
[
|
@@ -4070,6 +4100,11 @@
|
|
4070
4100
|
"theAble",
|
4071
4101
|
false
|
4072
4102
|
],
|
4103
|
+
[
|
4104
|
+
"propertyOf",
|
4105
|
+
"preposition",
|
4106
|
+
false
|
4107
|
+
],
|
4073
4108
|
[
|
4074
4109
|
"punctuation",
|
4075
4110
|
"punctuation",
|
@@ -4799,6 +4834,12 @@
|
|
4799
4834
|
"key": {
|
4800
4835
|
"query": "ownee is owned by owner means owner owns ownee"
|
4801
4836
|
}
|
4837
|
+
},
|
4838
|
+
{
|
4839
|
+
"extraConfig": true,
|
4840
|
+
"associations": {
|
4841
|
+
"positive": []
|
4842
|
+
}
|
4802
4843
|
}
|
4803
4844
|
],
|
4804
4845
|
"fragments": [
|
@@ -5071,7 +5112,7 @@
|
|
5071
5112
|
],
|
5072
5113
|
[
|
5073
5114
|
"isEdee",
|
5074
|
-
"
|
5115
|
+
"queryable",
|
5075
5116
|
false
|
5076
5117
|
],
|
5077
5118
|
[
|
@@ -5324,6 +5365,11 @@
|
|
5324
5365
|
"theAble",
|
5325
5366
|
false
|
5326
5367
|
],
|
5368
|
+
[
|
5369
|
+
"propertyOf",
|
5370
|
+
"preposition",
|
5371
|
+
false
|
5372
|
+
],
|
5327
5373
|
[
|
5328
5374
|
"punctuation",
|
5329
5375
|
"punctuation",
|
@@ -5628,8 +5674,7 @@
|
|
5628
5674
|
},
|
5629
5675
|
"dead": true,
|
5630
5676
|
"types": [
|
5631
|
-
"ownee"
|
5632
|
-
"queryable"
|
5677
|
+
"ownee"
|
5633
5678
|
],
|
5634
5679
|
"constraints": [
|
5635
5680
|
{
|
@@ -5711,7 +5756,8 @@
|
|
5711
5756
|
"level": 1
|
5712
5757
|
}
|
5713
5758
|
}
|
5714
|
-
]
|
5759
|
+
],
|
5760
|
+
"level": 0
|
5715
5761
|
},
|
5716
5762
|
"dead": true,
|
5717
5763
|
"level": 2,
|
@@ -6096,7 +6142,7 @@
|
|
6096
6142
|
],
|
6097
6143
|
[
|
6098
6144
|
"isEdee",
|
6099
|
-
"
|
6145
|
+
"queryable",
|
6100
6146
|
false
|
6101
6147
|
],
|
6102
6148
|
[
|
@@ -6374,6 +6420,11 @@
|
|
6374
6420
|
"theAble",
|
6375
6421
|
false
|
6376
6422
|
],
|
6423
|
+
[
|
6424
|
+
"propertyOf",
|
6425
|
+
"preposition",
|
6426
|
+
false
|
6427
|
+
],
|
6377
6428
|
[
|
6378
6429
|
"punctuation",
|
6379
6430
|
"punctuation",
|
@@ -6557,7 +6608,7 @@
|
|
6557
6608
|
0
|
6558
6609
|
],
|
6559
6610
|
[
|
6560
|
-
"
|
6611
|
+
"is",
|
6561
6612
|
0
|
6562
6613
|
],
|
6563
6614
|
[
|
@@ -6582,7 +6633,7 @@
|
|
6582
6633
|
0
|
6583
6634
|
],
|
6584
6635
|
[
|
6585
|
-
"
|
6636
|
+
"is",
|
6586
6637
|
0
|
6587
6638
|
],
|
6588
6639
|
[
|
@@ -6599,7 +6650,7 @@
|
|
6599
6650
|
],
|
6600
6651
|
"ops": [
|
6601
6652
|
[
|
6602
|
-
"
|
6653
|
+
"is",
|
6603
6654
|
0
|
6604
6655
|
],
|
6605
6656
|
[
|
@@ -6748,10 +6799,6 @@
|
|
6748
6799
|
"by",
|
6749
6800
|
0
|
6750
6801
|
],
|
6751
|
-
[
|
6752
|
-
"isEd",
|
6753
|
-
0
|
6754
|
-
],
|
6755
6802
|
[
|
6756
6803
|
"owned",
|
6757
6804
|
0
|
@@ -6933,10 +6980,6 @@
|
|
6933
6980
|
"by",
|
6934
6981
|
0
|
6935
6982
|
],
|
6936
|
-
[
|
6937
|
-
"isEd",
|
6938
|
-
0
|
6939
|
-
],
|
6940
6983
|
[
|
6941
6984
|
"owned",
|
6942
6985
|
0
|
package/common/people.js
CHANGED
@@ -18,7 +18,21 @@ const template = {
|
|
18
18
|
"surname means last name",
|
19
19
|
"given modifies name",
|
20
20
|
"given name means first name",
|
21
|
+
// { stop: true },
|
21
22
|
"ownee is owned by owner means owner owns ownee",
|
23
|
+
{
|
24
|
+
associations: {
|
25
|
+
positive: [
|
26
|
+
/*
|
27
|
+
[['what', 0], ['is', 0], ['unknown', 0], ['owned', 0], ['by', 0]],
|
28
|
+
[['unknown', 0], ['is', 0], ['unknown', 0], ['owned', 0], ['by', 0]],
|
29
|
+
[['unknown', 1], ['is', 0], ['unknown', 0], ['owned', 0], ['by', 0]],
|
30
|
+
[['unknown', 1], ['is', 0], ['unknown', 1], ['owned', 0], ['by', 0]],
|
31
|
+
*/
|
32
|
+
// [['unknown', 0], ['isEd', 0] , ['unknown', 0], ['owned', 0], ['by', 0]]
|
33
|
+
]
|
34
|
+
},
|
35
|
+
},
|
22
36
|
// "the first name of greg is greg23",
|
23
37
|
// "ownee23 is owned by owner23",
|
24
38
|
// "cleo is a cat",
|
@@ -43,6 +57,7 @@ let config = {
|
|
43
57
|
hierarchy: [
|
44
58
|
['person', 'unknown'],
|
45
59
|
],
|
60
|
+
|
46
61
|
};
|
47
62
|
|
48
63
|
const initializer = ({baseConfig, context, apis, isModule}) => {
|