tpmkms_4wp 7.12.4-beta.0 → 7.12.4-beta.2

Sign up to get free protection for your applications and to get access to all the features.
package/common/reports.js CHANGED
@@ -329,7 +329,7 @@ let configStruct = {
329
329
  bridge: "{ ...next(operator), namee: after[0], name: after[1] }",
330
330
  generatorp: ({g, context}) => `call ${g(context.namee)} ${g(context.name)}`,
331
331
  semantic: ({g, context, objects, e, config, km}) => {
332
- const namee = e(context.namee)
332
+ const namee = e(context.namee).evalue
333
333
  const id = namee.value
334
334
  const listing = objects.listings[id]
335
335
  const name = context.name.text
@@ -504,11 +504,12 @@ let configStruct = {
504
504
  const responses = []
505
505
  for (let value of values) {
506
506
  if (!value.value || value.pullFromContext) {
507
+ debugger
507
508
  value = e(value)
508
509
  }
509
510
  let id = value.value
510
511
  if (value.evalue) {
511
- id = value.evalue
512
+ id = value.evalue.value || value.evalue
512
513
  }
513
514
  const listing = objects.listings[id]
514
515
  const api = apis[listing.api]
@@ -985,6 +985,10 @@
985
985
  "thisitthat",
986
986
  "queryable"
987
987
  ],
988
+ [
989
+ "to",
990
+ "preposition"
991
+ ],
988
992
  [
989
993
  "toAble",
990
994
  "toAble"
package/common/stm.js CHANGED
@@ -40,23 +40,27 @@ class API {
40
40
  this._objects.mentioned.unshift(concept)
41
41
  }
42
42
 
43
- mentions(context) {
43
+ mentions(context, useHierarchy=true) {
44
44
  // care about value first
45
45
  for (let m of this._objects.mentioned) {
46
46
  if (context.value && context.value == m.marker) {
47
- return m
47
+ return { ...m, fromSTM: true }
48
48
  }
49
49
  }
50
+
51
+ if (!useHierarchy) {
52
+ return
53
+ }
50
54
  // care about marker second
51
55
  for (let m of this._objects.mentioned) {
52
56
  if (context.marker != 'unknown' && this.isA(m.marker, context.marker)) {
53
- return m
57
+ return { ...m, fromSTM: true }
54
58
  }
55
59
  // if (context.types && context.types.includes(m.marker)) {
56
60
  if (context.types) {
57
61
  for (let parent of context.types) {
58
62
  if (parent != 'unknown' && this.isA(m.marker, parent)) {
59
- return m
63
+ return { ...m, fromSTM: true }
60
64
  }
61
65
  }
62
66
  }
@@ -64,7 +68,7 @@ class API {
64
68
  if (context.types && context.types.length == 1) {
65
69
  for (let m of this._objects.mentioned) {
66
70
  if (context.unknown) {
67
- return m
71
+ return { ...m, fromSTM: true }
68
72
  }
69
73
  }
70
74
  }
@@ -74,7 +78,7 @@ class API {
74
78
  if (!name) {
75
79
  return
76
80
  }
77
- let valueNew = this.mentions({ marker: name, value: name }) || name
81
+ let valueNew = this.mentions({ marker: name, value: name }, false) || name
78
82
  if (valueNew && valueNew.value) {
79
83
  valueNew = valueNew.value
80
84
  }
@@ -90,7 +94,18 @@ const api = new API()
90
94
 
91
95
  let createConfig = () => {
92
96
  const config = new Config({ name: 'stm' }, module)
97
+ config.stop_auto_rebuild()
98
+
99
+ config.initializer( ({config}) => {
100
+ config.addArgs(({kms}) => ({
101
+ mentioned: (context) => {
102
+ kms.stm.api.mentioned(context)
103
+ },
104
+ }))
105
+ })
93
106
  config.api = api
107
+
108
+ config.restart_auto_rebuild()
94
109
  return config
95
110
  }
96
111
 
@@ -600,6 +600,10 @@
600
600
  "timesOperator",
601
601
  "mathematicalOperator"
602
602
  ],
603
+ [
604
+ "to",
605
+ "preposition"
606
+ ],
603
607
  [
604
608
  "toAble",
605
609
  "toAble"
@@ -1556,6 +1560,10 @@
1556
1560
  "timesOperator",
1557
1561
  "mathematicalOperator"
1558
1562
  ],
1563
+ [
1564
+ "to",
1565
+ "preposition"
1566
+ ],
1559
1567
  [
1560
1568
  "toAble",
1561
1569
  "toAble"
@@ -3036,6 +3044,10 @@
3036
3044
  "timesOperator",
3037
3045
  "mathematicalOperator"
3038
3046
  ],
3047
+ [
3048
+ "to",
3049
+ "preposition"
3050
+ ],
3039
3051
  [
3040
3052
  "toAble",
3041
3053
  "toAble"
@@ -4431,6 +4443,10 @@
4431
4443
  "timesOperator",
4432
4444
  "mathematicalOperator"
4433
4445
  ],
4446
+ [
4447
+ "to",
4448
+ "preposition"
4449
+ ],
4434
4450
  [
4435
4451
  "toAble",
4436
4452
  "toAble"
@@ -532,6 +532,10 @@
532
532
  "timesOperator",
533
533
  "mathematicalOperator"
534
534
  ],
535
+ [
536
+ "to",
537
+ "preposition"
538
+ ],
535
539
  [
536
540
  "toAble",
537
541
  "toAble"
@@ -608,6 +608,10 @@
608
608
  "timesOperator",
609
609
  "mathematicalOperator"
610
610
  ],
611
+ [
612
+ "to",
613
+ "preposition"
614
+ ],
611
615
  [
612
616
  "toAble",
613
617
  "toAble"
@@ -1479,6 +1483,10 @@
1479
1483
  "timesOperator",
1480
1484
  "mathematicalOperator"
1481
1485
  ],
1486
+ [
1487
+ "to",
1488
+ "preposition"
1489
+ ],
1482
1490
  [
1483
1491
  "toAble",
1484
1492
  "toAble"
@@ -2503,6 +2511,10 @@
2503
2511
  "timesOperator",
2504
2512
  "mathematicalOperator"
2505
2513
  ],
2514
+ [
2515
+ "to",
2516
+ "preposition"
2517
+ ],
2506
2518
  [
2507
2519
  "toAble",
2508
2520
  "toAble"
@@ -4507,6 +4519,10 @@
4507
4519
  "timesOperator",
4508
4520
  "mathematicalOperator"
4509
4521
  ],
4522
+ [
4523
+ "to",
4524
+ "preposition"
4525
+ ],
4510
4526
  [
4511
4527
  "toAble",
4512
4528
  "toAble"
@@ -5779,6 +5795,10 @@
5779
5795
  "timesOperator",
5780
5796
  "mathematicalOperator"
5781
5797
  ],
5798
+ [
5799
+ "to",
5800
+ "preposition"
5801
+ ],
5782
5802
  [
5783
5803
  "toAble",
5784
5804
  "toAble"
@@ -7043,6 +7063,10 @@
7043
7063
  "timesOperator",
7044
7064
  "mathematicalOperator"
7045
7065
  ],
7066
+ [
7067
+ "to",
7068
+ "preposition"
7069
+ ],
7046
7070
  [
7047
7071
  "toAble",
7048
7072
  "toAble"
@@ -8274,6 +8298,10 @@
8274
8298
  "timesOperator",
8275
8299
  "mathematicalOperator"
8276
8300
  ],
8301
+ [
8302
+ "to",
8303
+ "preposition"
8304
+ ],
8277
8305
  [
8278
8306
  "toAble",
8279
8307
  "toAble"
@@ -9505,6 +9533,10 @@
9505
9533
  "timesOperator",
9506
9534
  "mathematicalOperator"
9507
9535
  ],
9536
+ [
9537
+ "to",
9538
+ "preposition"
9539
+ ],
9508
9540
  [
9509
9541
  "toAble",
9510
9542
  "toAble"
@@ -10736,6 +10768,10 @@
10736
10768
  "timesOperator",
10737
10769
  "mathematicalOperator"
10738
10770
  ],
10771
+ [
10772
+ "to",
10773
+ "preposition"
10774
+ ],
10739
10775
  [
10740
10776
  "toAble",
10741
10777
  "toAble"
@@ -11967,6 +12003,10 @@
11967
12003
  "timesOperator",
11968
12004
  "mathematicalOperator"
11969
12005
  ],
12006
+ [
12007
+ "to",
12008
+ "preposition"
12009
+ ],
11970
12010
  [
11971
12011
  "toAble",
11972
12012
  "toAble"
@@ -13198,6 +13238,10 @@
13198
13238
  "timesOperator",
13199
13239
  "mathematicalOperator"
13200
13240
  ],
13241
+ [
13242
+ "to",
13243
+ "preposition"
13244
+ ],
13201
13245
  [
13202
13246
  "toAble",
13203
13247
  "toAble"
@@ -14455,6 +14499,10 @@
14455
14499
  "timesOperator",
14456
14500
  "mathematicalOperator"
14457
14501
  ],
14502
+ [
14503
+ "to",
14504
+ "preposition"
14505
+ ],
14458
14506
  [
14459
14507
  "toAble",
14460
14508
  "toAble"
package/package.json CHANGED
@@ -281,8 +281,8 @@
281
281
  "table": "^6.7.1",
282
282
  "base-64": "^1.0.0",
283
283
  "argparse": "^2.0.1",
284
- "theprogrammablemind_4wp": "7.12.4-beta.0"
284
+ "theprogrammablemind_4wp": "7.12.4-beta.2"
285
285
  },
286
- "version": "7.12.4-beta.0",
286
+ "version": "7.12.4-beta.2",
287
287
  "license": "UNLICENSED"
288
288
  }