tpmkms_4wp 9.5.1-beta.3 → 9.5.1-beta.31
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 +21 -61
- package/common/asking.js +112 -102
- package/common/avatar.test.json +1001 -860
- package/common/can.instance.json +2174 -0
- package/common/can.js +254 -0
- package/common/can.test.json +51307 -0
- package/common/characters.js +3 -3
- package/common/colors.instance.json +10 -10
- package/common/comparable.instance.json +2 -2
- package/common/concept.js +19 -22
- package/common/concept.test.json +54 -40
- package/common/conjunction.js +13 -5
- package/common/conjunction.test.json +32 -42
- package/common/crew.instance.json +164 -150
- package/common/crew.js +1 -1
- package/common/currency.js +1 -1
- package/common/dateTimeSelectors.instance.json +2 -2
- package/common/dateTimeSelectors.js +3 -3
- package/common/dateTimeSelectors.test.json +76935 -35739
- package/common/dates.instance.json +3 -3
- package/common/dates.test.json +284 -287
- package/common/dialogues.js +41 -119
- package/common/dialogues.test.json +1171 -996
- package/common/dimension.instance.json +21374 -562
- package/common/dimension.js +145 -51
- package/common/dimension.test.json +8753 -3495
- package/common/drone.instance.json +23710 -0
- package/common/drone.js +429 -0
- package/common/drone.test.json +61113 -0
- package/common/edible.instance.json +23 -95
- package/common/emotions.instance.json +53 -80
- package/common/emotions.js +1 -1
- package/common/english_helpers.js +277 -67
- package/common/fastfood.instance.json +180 -372
- package/common/fastfood.js +4 -4
- package/common/fastfood.test.json +6970 -6829
- package/common/formulas.instance.json +1 -1
- package/common/gdefaults.js +94 -17
- package/common/help.js +11 -11
- package/common/help.test.json +65 -11
- package/common/helpers/concept.js +1 -1
- package/common/helpers/conjunction.js +54 -44
- package/common/helpers/dateTimeSelectors.js +2 -2
- package/common/helpers/dialogues.js +7 -2
- package/common/helpers/formulas.js +13 -11
- package/common/helpers/menus.js +12 -12
- package/common/helpers/meta.js +8 -8
- package/common/helpers/properties.js +104 -23
- package/common/helpers.js +114 -48
- package/common/hierarchy.js +6 -4
- package/common/kirk.instance.json +1 -1
- package/common/kirk.test.json +600 -424
- package/common/latin.instance.json +10 -10
- package/common/latin.js +5 -5
- package/common/length.instance.json +27612 -2890
- package/common/length.js +6 -1
- package/common/length.test.json +45315 -3925
- package/common/math.instance.json +20 -20
- package/common/math.js +45 -44
- package/common/menus.instance.json +6 -9
- package/common/menus.js +2 -9
- package/common/meta.js +50 -33
- package/common/nameable.js +13 -6
- package/common/nameable.test.json +436 -0
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +20 -30
- package/common/ordering.js +1 -1
- package/common/ordering.test.json +414 -426
- package/common/people.instance.json +82 -348
- package/common/people.js +1 -1
- package/common/people.test.json +952 -681
- package/common/pipboy.instance.json +16 -16
- package/common/pokemon.instance.json +8 -8
- package/common/pokemon.js +1 -1
- package/common/pressure.instance.json +3579 -1610
- package/common/pressure.test.json +433 -477
- package/common/properties.instance.json +6 -17
- package/common/properties.js +19 -6
- package/common/properties.test.json +8746 -6638
- package/common/rates.instance.json +59 -0
- package/common/rates.js +97 -0
- package/common/rates.test.json +27702 -0
- package/common/reminders.js +1 -1
- package/common/reminders.test.json +64635 -25787
- package/common/reports.instance.json +3 -3
- package/common/reports.js +18 -16
- package/common/scorekeeper.js +4 -4
- package/common/sdefaults.js +22 -2
- package/common/spock.instance.json +1 -1
- package/common/spock.test.json +606 -430
- package/common/stgame.js +1 -1
- package/common/stm.js +15 -4
- package/common/tell.js +1 -1
- package/common/temperature.instance.json +3786 -1705
- package/common/temperature.test.json +433 -477
- package/common/tester.js +3 -3
- package/common/time.instance.json +24762 -0
- package/common/time.js +137 -141
- package/common/time.test.json +31876 -3757
- package/common/tokenize.js +1 -1
- package/common/ui.instance.json +2 -5
- package/common/ui.js +1 -8
- package/common/weight.instance.json +10359 -4077
- package/common/weight.test.json +2601 -2263
- package/common/words.instance.json +9 -0
- package/common/words.js +53 -0
- package/common/words.test.json +2 -0
- package/common/wp.instance.json +336 -8
- package/common/wp.js +8 -4
- package/common/wp.test.json +7385 -6906
- package/main.js +4 -2
- package/package.json +18 -5
- package/common/listener.js +0 -50
- package/common/listener.test.json +0 -142
package/main.js
CHANGED
|
@@ -24,7 +24,6 @@ const ordinals = require('./common/ordinals')
|
|
|
24
24
|
const properties = require('./common/properties')
|
|
25
25
|
const sizeable = require('./common/sizeable')
|
|
26
26
|
const dateTimeSelectors = require('./common/dateTimeSelectors')
|
|
27
|
-
const listener = require('./common/listener')
|
|
28
27
|
const tokenize = require('./common/tokenize')
|
|
29
28
|
const articles = require('./common/articles')
|
|
30
29
|
const nameable = require('./common/nameable')
|
|
@@ -42,6 +41,7 @@ const menus = require('./common/menus')
|
|
|
42
41
|
const math = require('./common/math')
|
|
43
42
|
const formulas = require('./common/formulas')
|
|
44
43
|
const dimension = require('./common/dimension')
|
|
44
|
+
const rates = require('./common/rates')
|
|
45
45
|
const length = require('./common/length')
|
|
46
46
|
const pressure = require('./common/pressure')
|
|
47
47
|
const temperature = require('./common/temperature')
|
|
@@ -53,6 +53,7 @@ const scorekeeper = require('./common/scorekeeper')
|
|
|
53
53
|
const reports = require('./common/reports')
|
|
54
54
|
const tell = require('./common/tell')
|
|
55
55
|
const pipboy = require('./common/pipboy')
|
|
56
|
+
const drone = require('./common/drone')
|
|
56
57
|
const wp = require('./common/wp')
|
|
57
58
|
const reminders = require('./common/reminders')
|
|
58
59
|
const fastfood = require('./common/fastfood')
|
|
@@ -90,7 +91,6 @@ module.exports = {
|
|
|
90
91
|
properties,
|
|
91
92
|
sizeable,
|
|
92
93
|
dateTimeSelectors,
|
|
93
|
-
listener,
|
|
94
94
|
tokenize,
|
|
95
95
|
articles,
|
|
96
96
|
nameable,
|
|
@@ -108,6 +108,7 @@ module.exports = {
|
|
|
108
108
|
math,
|
|
109
109
|
formulas,
|
|
110
110
|
dimension,
|
|
111
|
+
rates,
|
|
111
112
|
length,
|
|
112
113
|
pressure,
|
|
113
114
|
temperature,
|
|
@@ -119,6 +120,7 @@ module.exports = {
|
|
|
119
120
|
reports,
|
|
120
121
|
tell,
|
|
121
122
|
pipboy,
|
|
123
|
+
drone,
|
|
122
124
|
wp,
|
|
123
125
|
reminders,
|
|
124
126
|
fastfood,
|
package/package.json
CHANGED
|
@@ -56,7 +56,6 @@
|
|
|
56
56
|
"name": "Hidden",
|
|
57
57
|
"description": "Don't show in the UI",
|
|
58
58
|
"includes": [
|
|
59
|
-
"listener",
|
|
60
59
|
"tokenize"
|
|
61
60
|
]
|
|
62
61
|
},
|
|
@@ -92,6 +91,7 @@
|
|
|
92
91
|
"description": "Knowledge related to physics",
|
|
93
92
|
"includes": [
|
|
94
93
|
"dimension",
|
|
94
|
+
"rates",
|
|
95
95
|
"length",
|
|
96
96
|
"pressure",
|
|
97
97
|
"temperature",
|
|
@@ -115,6 +115,7 @@
|
|
|
115
115
|
"reports",
|
|
116
116
|
"tell",
|
|
117
117
|
"pipboy",
|
|
118
|
+
"drone",
|
|
118
119
|
"wp",
|
|
119
120
|
"reminders",
|
|
120
121
|
"fastfood"
|
|
@@ -162,6 +163,9 @@
|
|
|
162
163
|
"common/asking.test.json",
|
|
163
164
|
"common/avatar.js",
|
|
164
165
|
"common/avatar.test.json",
|
|
166
|
+
"common/can.instance.json",
|
|
167
|
+
"common/can.js",
|
|
168
|
+
"common/can.test.json",
|
|
165
169
|
"common/characters.js",
|
|
166
170
|
"common/characters.test.json",
|
|
167
171
|
"common/colors.instance.json",
|
|
@@ -194,6 +198,9 @@
|
|
|
194
198
|
"common/dimension.instance.json",
|
|
195
199
|
"common/dimension.js",
|
|
196
200
|
"common/dimension.test.json",
|
|
201
|
+
"common/drone.instance.json",
|
|
202
|
+
"common/drone.js",
|
|
203
|
+
"common/drone.test.json",
|
|
197
204
|
"common/edible.instance.json",
|
|
198
205
|
"common/edible.js",
|
|
199
206
|
"common/edible.test.json",
|
|
@@ -243,8 +250,6 @@
|
|
|
243
250
|
"common/length.instance.json",
|
|
244
251
|
"common/length.js",
|
|
245
252
|
"common/length.test.json",
|
|
246
|
-
"common/listener.js",
|
|
247
|
-
"common/listener.test.json",
|
|
248
253
|
"common/math.instance.json",
|
|
249
254
|
"common/math.js",
|
|
250
255
|
"common/math.test.json",
|
|
@@ -290,6 +295,9 @@
|
|
|
290
295
|
"common/properties.test.json",
|
|
291
296
|
"common/punctuation.js",
|
|
292
297
|
"common/punctuation.test.json",
|
|
298
|
+
"common/rates.instance.json",
|
|
299
|
+
"common/rates.js",
|
|
300
|
+
"common/rates.test.json",
|
|
293
301
|
"common/reminders.instance.json",
|
|
294
302
|
"common/reminders.js",
|
|
295
303
|
"common/reminders.test.json",
|
|
@@ -324,6 +332,7 @@
|
|
|
324
332
|
"common/tester.test.json",
|
|
325
333
|
"common/testing.js",
|
|
326
334
|
"common/testing.test.json",
|
|
335
|
+
"common/time.instance.json",
|
|
327
336
|
"common/time.js",
|
|
328
337
|
"common/time.test.json",
|
|
329
338
|
"common/tokenize.js",
|
|
@@ -334,6 +343,9 @@
|
|
|
334
343
|
"common/weight.instance.json",
|
|
335
344
|
"common/weight.js",
|
|
336
345
|
"common/weight.test.json",
|
|
346
|
+
"common/words.instance.json",
|
|
347
|
+
"common/words.js",
|
|
348
|
+
"common/words.test.json",
|
|
337
349
|
"common/wp.instance.json",
|
|
338
350
|
"common/wp.js",
|
|
339
351
|
"common/wp.test.json",
|
|
@@ -348,14 +360,15 @@
|
|
|
348
360
|
"bluebird": "^3.7.2",
|
|
349
361
|
"deep-equal": "^2.0.5",
|
|
350
362
|
"lodash": "^4.17.21",
|
|
363
|
+
"lokijs": "^1.5.12",
|
|
351
364
|
"node-fetch": "^2.6.1",
|
|
352
365
|
"object-path": "^0.11.8",
|
|
353
366
|
"pluralize": "^8.0.0",
|
|
354
367
|
"scriptjs": "^2.5.9",
|
|
355
368
|
"table": "^6.7.1",
|
|
356
369
|
"uuid": "^9.0.0",
|
|
357
|
-
"theprogrammablemind_4wp": "9.5.1-beta.
|
|
370
|
+
"theprogrammablemind_4wp": "9.5.1-beta.31"
|
|
358
371
|
},
|
|
359
|
-
"version": "9.5.1-beta.
|
|
372
|
+
"version": "9.5.1-beta.31",
|
|
360
373
|
"license": "UNLICENSED"
|
|
361
374
|
}
|
package/common/listener.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const { knowledgeModule, where } = require('./runtime').theprogrammablemind
|
|
2
|
-
const { defaultContextCheck } = require('./helpers')
|
|
3
|
-
const helpers = require('./helpers')
|
|
4
|
-
const gdefaults = require('./gdefaults')
|
|
5
|
-
const listener_tests = require('./listener.test.json')
|
|
6
|
-
|
|
7
|
-
const config = {
|
|
8
|
-
name: 'listener',
|
|
9
|
-
operators: [
|
|
10
|
-
{ pattern: "([call])", scope: "testing" },
|
|
11
|
-
],
|
|
12
|
-
bridges: [
|
|
13
|
-
{
|
|
14
|
-
id: 'call',
|
|
15
|
-
semantic: ({context}) => {
|
|
16
|
-
context.wasCalled = true
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
],
|
|
20
|
-
semantics: [
|
|
21
|
-
{
|
|
22
|
-
match: ({context}) => context.marker == 'call',
|
|
23
|
-
apply: ({context, defer}) => {
|
|
24
|
-
defer(({context}) => {
|
|
25
|
-
if (context.wasCalled) {
|
|
26
|
-
context.sawWasCalled = true
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
knowledgeModule( {
|
|
35
|
-
config,
|
|
36
|
-
includes: [gdefaults],
|
|
37
|
-
|
|
38
|
-
module,
|
|
39
|
-
description: 'test of listeners',
|
|
40
|
-
test: {
|
|
41
|
-
name: './listener.test.json',
|
|
42
|
-
contents: listener_tests,
|
|
43
|
-
checks: {
|
|
44
|
-
context: [
|
|
45
|
-
defaultContextCheck(),
|
|
46
|
-
],
|
|
47
|
-
objects: ['mentioned', { km: 'gdefaults' }],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
})
|
|
@@ -1,142 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"associations": [
|
|
4
|
-
],
|
|
5
|
-
"config": {
|
|
6
|
-
},
|
|
7
|
-
"contexts": [
|
|
8
|
-
{
|
|
9
|
-
"context_index": 1,
|
|
10
|
-
"dead": true,
|
|
11
|
-
"default": true,
|
|
12
|
-
"level": 1,
|
|
13
|
-
"marker": "call",
|
|
14
|
-
"range": {
|
|
15
|
-
"end": 3,
|
|
16
|
-
"start": 0
|
|
17
|
-
},
|
|
18
|
-
"sawWasCalled": true,
|
|
19
|
-
"text": "call",
|
|
20
|
-
"topLevel": true,
|
|
21
|
-
"touchedBy": [
|
|
22
|
-
"listener#call2"
|
|
23
|
-
],
|
|
24
|
-
"value": "call",
|
|
25
|
-
"wasCalled": true,
|
|
26
|
-
"word": "call"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
"generatedParenthesized": [
|
|
30
|
-
""
|
|
31
|
-
],
|
|
32
|
-
"metadata": {
|
|
33
|
-
"opChoices": [
|
|
34
|
-
{
|
|
35
|
-
"counter": 1,
|
|
36
|
-
"op": [
|
|
37
|
-
"call",
|
|
38
|
-
0
|
|
39
|
-
],
|
|
40
|
-
"ops": [
|
|
41
|
-
[
|
|
42
|
-
"call",
|
|
43
|
-
0
|
|
44
|
-
]
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
]
|
|
48
|
-
},
|
|
49
|
-
"objects": {
|
|
50
|
-
"nameToUUID": {
|
|
51
|
-
"gdefaults": "gdefaults2",
|
|
52
|
-
"listener": "listener1",
|
|
53
|
-
"tokenize": "tokenize2"
|
|
54
|
-
},
|
|
55
|
-
"namespaced": {
|
|
56
|
-
"gdefaults2": {
|
|
57
|
-
},
|
|
58
|
-
"listener1": {
|
|
59
|
-
},
|
|
60
|
-
"tokenize2": {
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
"processed": [
|
|
64
|
-
{
|
|
65
|
-
"context": {
|
|
66
|
-
"context_index": 1,
|
|
67
|
-
"dead": true,
|
|
68
|
-
"default": true,
|
|
69
|
-
"level": 1,
|
|
70
|
-
"marker": "call",
|
|
71
|
-
"range": {
|
|
72
|
-
"end": 3,
|
|
73
|
-
"start": 0
|
|
74
|
-
},
|
|
75
|
-
"sawWasCalled": true,
|
|
76
|
-
"text": "call",
|
|
77
|
-
"topLevel": true,
|
|
78
|
-
"touchedBy": [
|
|
79
|
-
"listener#call2"
|
|
80
|
-
],
|
|
81
|
-
"value": "call",
|
|
82
|
-
"wasCalled": true,
|
|
83
|
-
"word": "call"
|
|
84
|
-
},
|
|
85
|
-
"generatedParenthesized": "",
|
|
86
|
-
"paraphrases": "call",
|
|
87
|
-
"paraphrasesParenthesized": "(call)",
|
|
88
|
-
"responses": [
|
|
89
|
-
""
|
|
90
|
-
]
|
|
91
|
-
}
|
|
92
|
-
]
|
|
93
|
-
},
|
|
94
|
-
"paraphrases": [
|
|
95
|
-
"call"
|
|
96
|
-
],
|
|
97
|
-
"paraphrasesParenthesized": [
|
|
98
|
-
"(call)"
|
|
99
|
-
],
|
|
100
|
-
"query": "call",
|
|
101
|
-
"responses": [
|
|
102
|
-
""
|
|
103
|
-
],
|
|
104
|
-
"summaries": [
|
|
105
|
-
{
|
|
106
|
-
"length": 1,
|
|
107
|
-
"summaries": [
|
|
108
|
-
{
|
|
109
|
-
"counter": 1,
|
|
110
|
-
"operators": [
|
|
111
|
-
{
|
|
112
|
-
"marker": [
|
|
113
|
-
"call",
|
|
114
|
-
0
|
|
115
|
-
],
|
|
116
|
-
"range": {
|
|
117
|
-
"end": 3,
|
|
118
|
-
"start": 0
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
]
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
"counter": 2,
|
|
125
|
-
"operators": [
|
|
126
|
-
{
|
|
127
|
-
"marker": [
|
|
128
|
-
"call",
|
|
129
|
-
1
|
|
130
|
-
],
|
|
131
|
-
"range": {
|
|
132
|
-
"end": 3,
|
|
133
|
-
"start": 0
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
]
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
}
|
|
142
|
-
]
|