tpmkms_4wp 7.12.7 → 7.12.8-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +0 -44
- package/common/dialogues.js +106 -3
- package/common/dimension.instance.json +736 -62
- package/common/dimension.js +15 -7
- package/common/edible.instance.json +2 -190
- package/common/fastfood.instance.json +886 -922
- package/common/formulas.instance.json +992 -0
- package/common/formulas.js +18 -5
- package/common/formulas.test.json +1187 -3651
- package/common/length.instance.json +261 -505
- package/common/math.instance.json +1979 -1
- package/common/math.js +17 -5
- package/common/ordering.instance.json +0 -52
- package/common/pipboy.instance.json +23454 -1101
- package/common/pipboy.js +31 -4
- package/common/pipboy.test.json +13 -9
- package/common/pokemon.instance.json +0 -44
- package/common/pressure.instance.json +80 -0
- package/common/reports.instance.json +17 -1
- package/common/temperature.instance.json +80 -60
- package/common/ui.instance.json +8 -0
- package/common/weight.instance.json +272 -48
- package/main.js +0 -8
- package/package.json +4 -20
- package/common/dimensionTemplate.instance.json +0 -582
- package/common/dimensionTemplate.js +0 -35
- package/common/dimensionTemplate.test.json +0 -2
- package/common/formulasTemplate.instance.json +0 -483
- package/common/formulasTemplate.js +0 -30
- package/common/formulasTemplate.test.json +0 -2
- package/common/mathTemplate.instance.json +0 -1635
- package/common/mathTemplate.js +0 -32
- package/common/mathTemplate.test.json +0 -1422
- package/common/pipboyTemplate.instance.json +0 -17420
- package/common/pipboyTemplate.js +0 -48
- package/common/pipboyTemplate.test.json +0 -2
package/common/dimension.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
const { Config, knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
|
2
2
|
const { defaultContextCheck } = require('./helpers')
|
3
|
-
const
|
3
|
+
const hierarchy = require('./hierarchy.js')
|
4
4
|
const formulas = require('./formulas.js')
|
5
5
|
const testing = require('./testing.js')
|
6
|
-
const
|
6
|
+
const tests = require('./dimension.test.json')
|
7
|
+
const instance = require('./dimension.instance.json')
|
7
8
|
|
8
9
|
/*
|
9
10
|
x celcius equals x*9/5 + 32 fahrenheit
|
@@ -166,10 +167,17 @@ let configStruct = {
|
|
166
167
|
]
|
167
168
|
};
|
168
169
|
|
170
|
+
const template = {
|
171
|
+
queries: [
|
172
|
+
"dimension and unit are concepts",
|
173
|
+
configStruct,
|
174
|
+
],
|
175
|
+
}
|
176
|
+
|
169
177
|
const createConfig = () => {
|
170
|
-
const config = new Config(
|
178
|
+
const config = new Config({ name: 'dimension' }, module)
|
171
179
|
config.stop_auto_rebuild()
|
172
|
-
config.add(
|
180
|
+
config.add(hierarchy(), formulas(), testing())
|
173
181
|
config.api = api
|
174
182
|
config.restart_auto_rebuild()
|
175
183
|
return config
|
@@ -179,15 +187,15 @@ knowledgeModule({
|
|
179
187
|
module,
|
180
188
|
description: 'Used to define numeric temperature such as currency, temperature or weight',
|
181
189
|
createConfig,
|
190
|
+
template: { template, instance },
|
182
191
|
test: {
|
183
192
|
name: './dimension.test.json',
|
184
|
-
contents:
|
193
|
+
contents: tests,
|
185
194
|
checks: {
|
186
195
|
objects: [{ km: 'properties' }],
|
187
196
|
checks: {
|
188
197
|
context: defaultContextCheck,
|
189
198
|
},
|
190
|
-
|
191
|
-
}
|
199
|
+
},
|
192
200
|
},
|
193
201
|
})
|
@@ -2293,11 +2293,11 @@
|
|
2293
2293
|
0
|
2294
2294
|
],
|
2295
2295
|
[
|
2296
|
-
"
|
2296
|
+
"chicken_strip",
|
2297
2297
|
0
|
2298
2298
|
],
|
2299
2299
|
[
|
2300
|
-
"
|
2300
|
+
"chicken_nugget",
|
2301
2301
|
0
|
2302
2302
|
]
|
2303
2303
|
],
|
@@ -4456,38 +4456,6 @@
|
|
4456
4456
|
"list",
|
4457
4457
|
0
|
4458
4458
|
],
|
4459
|
-
[
|
4460
|
-
"unknown",
|
4461
|
-
0
|
4462
|
-
],
|
4463
|
-
[
|
4464
|
-
"unknown",
|
4465
|
-
1
|
4466
|
-
]
|
4467
|
-
],
|
4468
|
-
[
|
4469
|
-
[
|
4470
|
-
"is",
|
4471
|
-
0
|
4472
|
-
],
|
4473
|
-
[
|
4474
|
-
"list",
|
4475
|
-
0
|
4476
|
-
],
|
4477
|
-
[
|
4478
|
-
"unknown",
|
4479
|
-
1
|
4480
|
-
]
|
4481
|
-
],
|
4482
|
-
[
|
4483
|
-
[
|
4484
|
-
"is",
|
4485
|
-
0
|
4486
|
-
],
|
4487
|
-
[
|
4488
|
-
"list",
|
4489
|
-
1
|
4490
|
-
],
|
4491
4459
|
[
|
4492
4460
|
"unknown",
|
4493
4461
|
1
|
@@ -17635,28 +17603,6 @@
|
|
17635
17603
|
1
|
17636
17604
|
]
|
17637
17605
|
],
|
17638
|
-
[
|
17639
|
-
[
|
17640
|
-
"comma",
|
17641
|
-
0
|
17642
|
-
],
|
17643
|
-
[
|
17644
|
-
"is",
|
17645
|
-
0
|
17646
|
-
],
|
17647
|
-
[
|
17648
|
-
"list",
|
17649
|
-
0
|
17650
|
-
],
|
17651
|
-
[
|
17652
|
-
"unknown",
|
17653
|
-
0
|
17654
|
-
],
|
17655
|
-
[
|
17656
|
-
"unknown",
|
17657
|
-
1
|
17658
|
-
]
|
17659
|
-
],
|
17660
17606
|
[
|
17661
17607
|
[
|
17662
17608
|
"comma",
|
@@ -17689,20 +17635,6 @@
|
|
17689
17635
|
1
|
17690
17636
|
]
|
17691
17637
|
],
|
17692
|
-
[
|
17693
|
-
[
|
17694
|
-
"is",
|
17695
|
-
0
|
17696
|
-
],
|
17697
|
-
[
|
17698
|
-
"list",
|
17699
|
-
1
|
17700
|
-
],
|
17701
|
-
[
|
17702
|
-
"unknown",
|
17703
|
-
1
|
17704
|
-
]
|
17705
|
-
],
|
17706
17638
|
[
|
17707
17639
|
[
|
17708
17640
|
"is",
|
@@ -41002,32 +40934,6 @@
|
|
41002
40934
|
1
|
41003
40935
|
]
|
41004
40936
|
],
|
41005
|
-
[
|
41006
|
-
[
|
41007
|
-
"comma",
|
41008
|
-
0
|
41009
|
-
],
|
41010
|
-
[
|
41011
|
-
"drink",
|
41012
|
-
0
|
41013
|
-
],
|
41014
|
-
[
|
41015
|
-
"is",
|
41016
|
-
0
|
41017
|
-
],
|
41018
|
-
[
|
41019
|
-
"list",
|
41020
|
-
0
|
41021
|
-
],
|
41022
|
-
[
|
41023
|
-
"unknown",
|
41024
|
-
0
|
41025
|
-
],
|
41026
|
-
[
|
41027
|
-
"unknown",
|
41028
|
-
1
|
41029
|
-
]
|
41030
|
-
],
|
41031
40937
|
[
|
41032
40938
|
[
|
41033
40939
|
"comma",
|
@@ -48701,32 +48607,6 @@
|
|
48701
48607
|
1
|
48702
48608
|
]
|
48703
48609
|
],
|
48704
|
-
[
|
48705
|
-
[
|
48706
|
-
"comma",
|
48707
|
-
0
|
48708
|
-
],
|
48709
|
-
[
|
48710
|
-
"drink",
|
48711
|
-
0
|
48712
|
-
],
|
48713
|
-
[
|
48714
|
-
"is",
|
48715
|
-
0
|
48716
|
-
],
|
48717
|
-
[
|
48718
|
-
"list",
|
48719
|
-
0
|
48720
|
-
],
|
48721
|
-
[
|
48722
|
-
"unknown",
|
48723
|
-
0
|
48724
|
-
],
|
48725
|
-
[
|
48726
|
-
"unknown",
|
48727
|
-
1
|
48728
|
-
]
|
48729
|
-
],
|
48730
48610
|
[
|
48731
48611
|
[
|
48732
48612
|
"comma",
|
@@ -48789,28 +48669,6 @@
|
|
48789
48669
|
1
|
48790
48670
|
]
|
48791
48671
|
],
|
48792
|
-
[
|
48793
|
-
[
|
48794
|
-
"comma",
|
48795
|
-
0
|
48796
|
-
],
|
48797
|
-
[
|
48798
|
-
"is",
|
48799
|
-
0
|
48800
|
-
],
|
48801
|
-
[
|
48802
|
-
"list",
|
48803
|
-
0
|
48804
|
-
],
|
48805
|
-
[
|
48806
|
-
"unknown",
|
48807
|
-
0
|
48808
|
-
],
|
48809
|
-
[
|
48810
|
-
"unknown",
|
48811
|
-
1
|
48812
|
-
]
|
48813
|
-
],
|
48814
48672
|
[
|
48815
48673
|
[
|
48816
48674
|
"comma",
|
@@ -49387,24 +49245,6 @@
|
|
49387
49245
|
1
|
49388
49246
|
]
|
49389
49247
|
],
|
49390
|
-
[
|
49391
|
-
[
|
49392
|
-
"is",
|
49393
|
-
0
|
49394
|
-
],
|
49395
|
-
[
|
49396
|
-
"list",
|
49397
|
-
0
|
49398
|
-
],
|
49399
|
-
[
|
49400
|
-
"unknown",
|
49401
|
-
0
|
49402
|
-
],
|
49403
|
-
[
|
49404
|
-
"unknown",
|
49405
|
-
1
|
49406
|
-
]
|
49407
|
-
],
|
49408
49248
|
[
|
49409
49249
|
[
|
49410
49250
|
"is",
|
@@ -49539,34 +49379,6 @@
|
|
49539
49379
|
1
|
49540
49380
|
]
|
49541
49381
|
],
|
49542
|
-
[
|
49543
|
-
[
|
49544
|
-
"is",
|
49545
|
-
0
|
49546
|
-
],
|
49547
|
-
[
|
49548
|
-
"list",
|
49549
|
-
1
|
49550
|
-
],
|
49551
|
-
[
|
49552
|
-
"unknown",
|
49553
|
-
1
|
49554
|
-
]
|
49555
|
-
],
|
49556
|
-
[
|
49557
|
-
[
|
49558
|
-
"is",
|
49559
|
-
0
|
49560
|
-
],
|
49561
|
-
[
|
49562
|
-
"list",
|
49563
|
-
1
|
49564
|
-
],
|
49565
|
-
[
|
49566
|
-
"unknown",
|
49567
|
-
1
|
49568
|
-
]
|
49569
|
-
],
|
49570
49382
|
[
|
49571
49383
|
[
|
49572
49384
|
"is",
|