tpmkms_4wp 9.5.1-beta.9 → 9.6.0-beta.0
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 +130 -0
- package/common/animals.js +3 -5
- package/common/asking.js +12 -4
- package/common/avatar.test.json +1001 -860
- package/common/can.instance.json +2182 -5
- package/common/can.js +102 -39
- package/common/can.test.json +51307 -0
- package/common/colors.instance.json +142 -30
- package/common/colors.js +3 -6
- package/common/comparable.instance.json +31 -1
- package/common/comparable.js +3 -6
- package/common/concept.js +25 -27
- package/common/concept.test.json +142 -120
- package/common/conjunction.test.json +32 -42
- package/common/crew.instance.json +400 -126
- package/common/crew.js +3 -6
- package/common/dateTimeSelectors.instance.json +2 -2
- package/common/dateTimeSelectors.js +6 -9
- package/common/dateTimeSelectors.test.json +76935 -35739
- package/common/dates.instance.json +50 -84
- package/common/dates.js +3 -6
- package/common/dates.test.json +284 -287
- package/common/dialogues.js +33 -115
- package/common/dialogues.test.json +1248 -1152
- package/common/dimension.instance.json +21498 -566
- package/common/dimension.js +147 -52
- package/common/dimension.test.json +10979 -4625
- package/common/drone.instance.json +24709 -0
- package/common/drone.js +662 -0
- package/common/drone.test.json +30522 -0
- package/common/drone_v1.instance.json +24703 -0
- package/common/drone_v1.js +596 -0
- package/common/drone_v1.test.json +115538 -0
- package/common/edible.instance.json +365 -65
- package/common/edible.js +3 -5
- package/common/emotions.instance.json +57 -70
- package/common/emotions.js +3 -6
- package/common/errors.js +3 -3
- package/common/fastfood.instance.json +1270 -244
- package/common/fastfood.js +10 -12
- package/common/fastfood.test.json +6970 -6829
- package/common/formulas.instance.json +10 -0
- package/common/formulas.js +2 -1
- package/common/gdefaults.js +58 -13
- package/common/help.js +9 -9
- package/common/help.test.json +65 -11
- package/common/helpers/dialogues.js +9 -1
- package/common/helpers/properties.js +37 -18
- package/common/helpers.js +32 -2
- package/common/hierarchy.js +10 -8
- package/common/kirk.instance.json +10 -0
- package/common/kirk.js +4 -6
- package/common/kirk.test.json +600 -424
- package/common/latin.instance.json +10 -10
- package/common/latin.js +8 -10
- package/common/length.instance.json +34659 -3157
- package/common/length.js +11 -6
- package/common/length.test.json +54357 -2557
- package/common/math.instance.json +11 -1
- package/common/math.js +2 -1
- package/common/menus.instance.json +74 -7
- package/common/menus.js +3 -12
- package/common/meta.js +4 -5
- package/common/nameable.js +29 -15
- package/common/nameable.test.json +436 -0
- package/common/numbers.js +1 -1
- package/common/ordering.instance.json +24 -2
- package/common/ordering.js +3 -5
- package/common/ordering.test.json +104 -174
- package/common/people.instance.json +140 -315
- package/common/people.js +3 -5
- package/common/pipboy.instance.json +171 -57
- package/common/pipboy.js +2 -1
- package/common/pokemon.instance.json +135 -5
- package/common/pokemon.js +3 -5
- package/common/pressure.instance.json +3990 -1981
- package/common/pressure.js +3 -5
- package/common/pressure.test.json +433 -477
- package/common/properties.instance.json +15 -16
- package/common/properties.js +10 -9
- package/common/properties.test.json +9565 -6951
- package/common/rates.instance.json +59 -0
- package/common/rates.js +95 -0
- package/common/rates.test.json +27702 -0
- package/common/reminders.js +5 -8
- package/common/reminders.test.json +64635 -25787
- package/common/reports.instance.json +22 -2
- package/common/reports.js +3 -5
- package/common/scorekeeper.js +3 -6
- package/common/spock.instance.json +10 -0
- package/common/spock.js +4 -7
- package/common/spock.test.json +606 -430
- package/common/stm.js +37 -20
- package/common/temperature.instance.json +3162 -1153
- package/common/temperature.js +3 -5
- package/common/temperature.test.json +433 -477
- package/common/time.instance.json +24852 -0
- package/common/time.js +136 -139
- package/common/time.test.json +31876 -3757
- package/common/ui.instance.json +12 -5
- package/common/ui.js +4 -13
- package/common/weight.instance.json +10500 -4098
- package/common/weight.js +3 -5
- package/common/weight.test.json +2601 -2263
- package/common/words.instance.json +9 -0
- package/common/words.js +50 -0
- package/common/words.test.json +2 -0
- package/common/wp.instance.json +470 -58
- package/common/wp.js +6 -4
- package/common/wp.test.json +7385 -6906
- package/main.js +6 -2
- package/package.json +21 -6
- package/common/listener.js +0 -50
- package/common/listener.test.json +0 -142
package/main.js
CHANGED
|
@@ -24,8 +24,8 @@ 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')
|
|
28
|
+
const drone_v1 = require('./common/drone_v1')
|
|
29
29
|
const articles = require('./common/articles')
|
|
30
30
|
const nameable = require('./common/nameable')
|
|
31
31
|
const conjunction = require('./common/conjunction')
|
|
@@ -42,6 +42,7 @@ const menus = require('./common/menus')
|
|
|
42
42
|
const math = require('./common/math')
|
|
43
43
|
const formulas = require('./common/formulas')
|
|
44
44
|
const dimension = require('./common/dimension')
|
|
45
|
+
const rates = require('./common/rates')
|
|
45
46
|
const length = require('./common/length')
|
|
46
47
|
const pressure = require('./common/pressure')
|
|
47
48
|
const temperature = require('./common/temperature')
|
|
@@ -53,6 +54,7 @@ const scorekeeper = require('./common/scorekeeper')
|
|
|
53
54
|
const reports = require('./common/reports')
|
|
54
55
|
const tell = require('./common/tell')
|
|
55
56
|
const pipboy = require('./common/pipboy')
|
|
57
|
+
const drone = require('./common/drone')
|
|
56
58
|
const wp = require('./common/wp')
|
|
57
59
|
const reminders = require('./common/reminders')
|
|
58
60
|
const fastfood = require('./common/fastfood')
|
|
@@ -90,8 +92,8 @@ module.exports = {
|
|
|
90
92
|
properties,
|
|
91
93
|
sizeable,
|
|
92
94
|
dateTimeSelectors,
|
|
93
|
-
listener,
|
|
94
95
|
tokenize,
|
|
96
|
+
drone_v1,
|
|
95
97
|
articles,
|
|
96
98
|
nameable,
|
|
97
99
|
conjunction,
|
|
@@ -108,6 +110,7 @@ module.exports = {
|
|
|
108
110
|
math,
|
|
109
111
|
formulas,
|
|
110
112
|
dimension,
|
|
113
|
+
rates,
|
|
111
114
|
length,
|
|
112
115
|
pressure,
|
|
113
116
|
temperature,
|
|
@@ -119,6 +122,7 @@ module.exports = {
|
|
|
119
122
|
reports,
|
|
120
123
|
tell,
|
|
121
124
|
pipboy,
|
|
125
|
+
drone,
|
|
122
126
|
wp,
|
|
123
127
|
reminders,
|
|
124
128
|
fastfood,
|
package/package.json
CHANGED
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"name": "Hidden",
|
|
57
57
|
"description": "Don't show in the UI",
|
|
58
58
|
"includes": [
|
|
59
|
-
"
|
|
60
|
-
"
|
|
59
|
+
"tokenize",
|
|
60
|
+
"drone_v1"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
63
|
{
|
|
@@ -92,6 +92,7 @@
|
|
|
92
92
|
"description": "Knowledge related to physics",
|
|
93
93
|
"includes": [
|
|
94
94
|
"dimension",
|
|
95
|
+
"rates",
|
|
95
96
|
"length",
|
|
96
97
|
"pressure",
|
|
97
98
|
"temperature",
|
|
@@ -115,6 +116,7 @@
|
|
|
115
116
|
"reports",
|
|
116
117
|
"tell",
|
|
117
118
|
"pipboy",
|
|
119
|
+
"drone",
|
|
118
120
|
"wp",
|
|
119
121
|
"reminders",
|
|
120
122
|
"fastfood"
|
|
@@ -164,6 +166,7 @@
|
|
|
164
166
|
"common/avatar.test.json",
|
|
165
167
|
"common/can.instance.json",
|
|
166
168
|
"common/can.js",
|
|
169
|
+
"common/can.test.json",
|
|
167
170
|
"common/characters.js",
|
|
168
171
|
"common/characters.test.json",
|
|
169
172
|
"common/colors.instance.json",
|
|
@@ -196,6 +199,12 @@
|
|
|
196
199
|
"common/dimension.instance.json",
|
|
197
200
|
"common/dimension.js",
|
|
198
201
|
"common/dimension.test.json",
|
|
202
|
+
"common/drone.instance.json",
|
|
203
|
+
"common/drone.js",
|
|
204
|
+
"common/drone.test.json",
|
|
205
|
+
"common/drone_v1.instance.json",
|
|
206
|
+
"common/drone_v1.js",
|
|
207
|
+
"common/drone_v1.test.json",
|
|
199
208
|
"common/edible.instance.json",
|
|
200
209
|
"common/edible.js",
|
|
201
210
|
"common/edible.test.json",
|
|
@@ -245,8 +254,6 @@
|
|
|
245
254
|
"common/length.instance.json",
|
|
246
255
|
"common/length.js",
|
|
247
256
|
"common/length.test.json",
|
|
248
|
-
"common/listener.js",
|
|
249
|
-
"common/listener.test.json",
|
|
250
257
|
"common/math.instance.json",
|
|
251
258
|
"common/math.js",
|
|
252
259
|
"common/math.test.json",
|
|
@@ -292,6 +299,9 @@
|
|
|
292
299
|
"common/properties.test.json",
|
|
293
300
|
"common/punctuation.js",
|
|
294
301
|
"common/punctuation.test.json",
|
|
302
|
+
"common/rates.instance.json",
|
|
303
|
+
"common/rates.js",
|
|
304
|
+
"common/rates.test.json",
|
|
295
305
|
"common/reminders.instance.json",
|
|
296
306
|
"common/reminders.js",
|
|
297
307
|
"common/reminders.test.json",
|
|
@@ -326,6 +336,7 @@
|
|
|
326
336
|
"common/tester.test.json",
|
|
327
337
|
"common/testing.js",
|
|
328
338
|
"common/testing.test.json",
|
|
339
|
+
"common/time.instance.json",
|
|
329
340
|
"common/time.js",
|
|
330
341
|
"common/time.test.json",
|
|
331
342
|
"common/tokenize.js",
|
|
@@ -336,6 +347,9 @@
|
|
|
336
347
|
"common/weight.instance.json",
|
|
337
348
|
"common/weight.js",
|
|
338
349
|
"common/weight.test.json",
|
|
350
|
+
"common/words.instance.json",
|
|
351
|
+
"common/words.js",
|
|
352
|
+
"common/words.test.json",
|
|
339
353
|
"common/wp.instance.json",
|
|
340
354
|
"common/wp.js",
|
|
341
355
|
"common/wp.test.json",
|
|
@@ -350,14 +364,15 @@
|
|
|
350
364
|
"bluebird": "^3.7.2",
|
|
351
365
|
"deep-equal": "^2.0.5",
|
|
352
366
|
"lodash": "^4.17.21",
|
|
367
|
+
"lokijs": "^1.5.12",
|
|
353
368
|
"node-fetch": "^2.6.1",
|
|
354
369
|
"object-path": "^0.11.8",
|
|
355
370
|
"pluralize": "^8.0.0",
|
|
356
371
|
"scriptjs": "^2.5.9",
|
|
357
372
|
"table": "^6.7.1",
|
|
358
373
|
"uuid": "^9.0.0",
|
|
359
|
-
"theprogrammablemind_4wp": "9.
|
|
374
|
+
"theprogrammablemind_4wp": "9.6.0-beta.0"
|
|
360
375
|
},
|
|
361
|
-
"version": "9.
|
|
376
|
+
"version": "9.6.0-beta.0",
|
|
362
377
|
"license": "UNLICENSED"
|
|
363
378
|
}
|
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
|
-
]
|