ekms 8.3.0-beta.6 → 8.3.0-beta.8
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/errors.js +3 -5
- package/common/errors.test.json +12 -13
- package/package.json +2 -2
package/common/errors.js
CHANGED
@@ -19,19 +19,17 @@ let config = {
|
|
19
19
|
semantics: [
|
20
20
|
{
|
21
21
|
match: ({context}) => context.interpretation_error,
|
22
|
-
apply: async ({context, g, verbatim, contexts}) => {
|
23
|
-
debugger
|
22
|
+
apply: async ({context, g, gp, verbatim, contexts}) => {
|
24
23
|
const argument = contexts.find( (argument) => argument.argument_id == context.interpretation_error.argument_id )
|
25
|
-
verbatim(`Did not know how to ${await
|
24
|
+
verbatim(`Did not know how to understand "${await gp(argument)}" when applying "${await g(context)}"`)
|
26
25
|
}
|
27
26
|
},
|
28
27
|
{
|
29
28
|
match: ({context}) => context.context?.interpretation_error,
|
30
29
|
apply: async ({context, g, gp, verbatim, contexts}) => {
|
31
30
|
context = context.context
|
32
|
-
debugger
|
33
31
|
const argument = contexts.find( (argument) => argument.argument_id == context.interpretation_error.argument_id )
|
34
|
-
verbatim(`Did not know how to ${await
|
32
|
+
verbatim(`Did not know how to understand "${await gp(argument)}" when applying "${await g(context)}"`)
|
35
33
|
}
|
36
34
|
},
|
37
35
|
],
|
package/common/errors.test.json
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
"isResponse": true,
|
36
36
|
"marker": "verbatim",
|
37
37
|
"topLevel": true,
|
38
|
-
"verbatim": "Did not know how to
|
38
|
+
"verbatim": "Did not know how to understand \"y\" when applying \"drop\""
|
39
39
|
},
|
40
40
|
{
|
41
41
|
"argument_id": 1,
|
@@ -53,10 +53,9 @@
|
|
53
53
|
"word": "y"
|
54
54
|
}
|
55
55
|
],
|
56
|
-
"developerTest": false,
|
57
56
|
"generatedParenthesized": [
|
58
57
|
"",
|
59
|
-
"(Did not know how to
|
58
|
+
"(Did not know how to understand \"y\" when applying \"drop\")",
|
60
59
|
""
|
61
60
|
],
|
62
61
|
"metadata": {
|
@@ -129,7 +128,7 @@
|
|
129
128
|
"paraphrasesParenthesized": "(y)",
|
130
129
|
"responses": [
|
131
130
|
"",
|
132
|
-
"Did not know how to
|
131
|
+
"Did not know how to understand \"y\" when applying \"drop\"",
|
133
132
|
""
|
134
133
|
]
|
135
134
|
},
|
@@ -138,14 +137,14 @@
|
|
138
137
|
"isResponse": true,
|
139
138
|
"marker": "verbatim",
|
140
139
|
"topLevel": true,
|
141
|
-
"verbatim": "Did not know how to
|
140
|
+
"verbatim": "Did not know how to understand \"y\" when applying \"drop\""
|
142
141
|
},
|
143
|
-
"generatedParenthesized": "(Did not know how to
|
144
|
-
"paraphrases": "Did not know how to
|
145
|
-
"paraphrasesParenthesized": "(Did not know how to
|
142
|
+
"generatedParenthesized": "(Did not know how to understand \"y\" when applying \"drop\")",
|
143
|
+
"paraphrases": "Did not know how to understand \"y\" when applying \"drop\"",
|
144
|
+
"paraphrasesParenthesized": "(Did not know how to understand \"y\" when applying \"drop\")",
|
146
145
|
"responses": [
|
147
146
|
"",
|
148
|
-
"Did not know how to
|
147
|
+
"Did not know how to understand \"y\" when applying \"drop\"",
|
149
148
|
""
|
150
149
|
]
|
151
150
|
},
|
@@ -181,7 +180,7 @@
|
|
181
180
|
"paraphrasesParenthesized": "(drop)",
|
182
181
|
"responses": [
|
183
182
|
"",
|
184
|
-
"Did not know how to
|
183
|
+
"Did not know how to understand \"y\" when applying \"drop\"",
|
185
184
|
""
|
186
185
|
]
|
187
186
|
}
|
@@ -189,18 +188,18 @@
|
|
189
188
|
},
|
190
189
|
"paraphrases": [
|
191
190
|
"drop",
|
192
|
-
"Did not know how to
|
191
|
+
"Did not know how to understand \"y\" when applying \"drop\"",
|
193
192
|
"y"
|
194
193
|
],
|
195
194
|
"paraphrasesParenthesized": [
|
196
195
|
"(drop)",
|
197
|
-
"(Did not know how to
|
196
|
+
"(Did not know how to understand \"y\" when applying \"drop\")",
|
198
197
|
"(y)"
|
199
198
|
],
|
200
199
|
"query": "drop y",
|
201
200
|
"responses": [
|
202
201
|
"",
|
203
|
-
"Did not know how to
|
202
|
+
"Did not know how to understand \"y\" when applying \"drop\"",
|
204
203
|
""
|
205
204
|
]
|
206
205
|
}
|
package/package.json
CHANGED
@@ -310,8 +310,8 @@
|
|
310
310
|
"table": "^6.7.1",
|
311
311
|
"base-64": "^1.0.0",
|
312
312
|
"argparse": "^2.0.1",
|
313
|
-
"theprogrammablemind": "8.3.0-beta.
|
313
|
+
"theprogrammablemind": "8.3.0-beta.8"
|
314
314
|
},
|
315
|
-
"version": "8.3.0-beta.
|
315
|
+
"version": "8.3.0-beta.8",
|
316
316
|
"license": "UNLICENSED"
|
317
317
|
}
|