ekms 8.9.0-beta.0 → 8.9.0-beta.1

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/wp.js ADDED
@@ -0,0 +1,45 @@
1
+ const { knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
2
+ const { defaultContextCheck } = require('./helpers')
3
+ const helpers = require("./helpers")
4
+ const ui = require("./ui")
5
+ const countable = require("./countable")
6
+ const wp_tests = require('./wp.test.json')
7
+ const instance = require('./wp.instance.json')
8
+
9
+ let config = {
10
+ name: 'wp',
11
+ operators: [
12
+ ],
13
+ bridges: [
14
+ ]
15
+ };
16
+
17
+ template = {
18
+ configs: [
19
+ 'words are countable',
20
+ 'characters are countable',
21
+ 'paragraphs are countable',
22
+ ],
23
+ }
24
+
25
+ knowledgeModule({
26
+ config,
27
+ includes: [ui, countable],
28
+
29
+ module,
30
+ description: 'Word processor',
31
+ test: {
32
+ name: './wp.test.json',
33
+ contents: wp_tests,
34
+ checks: {
35
+ context: [
36
+ ...defaultContextCheck(),
37
+ ],
38
+ objects: [{ km: 'ui' }],
39
+ },
40
+ },
41
+ template: {
42
+ template,
43
+ instance,
44
+ }
45
+ })