theprogrammablemind 7.3.2-beta.0 → 7.3.2-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/client.js +7 -1
- package/package.json +41 -41
package/client.js
CHANGED
@@ -19,11 +19,16 @@ const isJest = () => {
|
|
19
19
|
|
20
20
|
let fs
|
21
21
|
let ArgumentParser
|
22
|
-
|
22
|
+
|
23
|
+
const setupLibs = () => {
|
23
24
|
fs = require('fs')
|
24
25
|
ArgumentParser = require('argparse').ArgumentParser
|
25
26
|
}
|
26
27
|
|
28
|
+
if (isJest()) {
|
29
|
+
setupLibs()
|
30
|
+
}
|
31
|
+
|
27
32
|
const ask = (config) => (asks) => {
|
28
33
|
for (let ask of asks) {
|
29
34
|
config.addMotivation({
|
@@ -1179,6 +1184,7 @@ const knowledgeModule = async ({
|
|
1179
1184
|
|
1180
1185
|
if (isProcess) {
|
1181
1186
|
// setup();
|
1187
|
+
setupLibs()
|
1182
1188
|
const parser = new ArgumentParser({
|
1183
1189
|
description: 'Entodicton knowledge module'
|
1184
1190
|
})
|
package/package.json
CHANGED
@@ -1,28 +1,40 @@
|
|
1
1
|
{
|
2
|
-
"license": "ISC",
|
3
2
|
"name": "theprogrammablemind",
|
3
|
+
"author": "dev@thinktelligence.com",
|
4
|
+
"main": "index.js",
|
5
|
+
"dependencies": {
|
6
|
+
"readline": "^1.3.0",
|
7
|
+
"deep-equal": "^2.0.4",
|
8
|
+
"scriptjs": "^2.5.9",
|
9
|
+
"underscore": "^1.13.1",
|
10
|
+
"sort-json": "^2.0.0",
|
11
|
+
"json-stable-stringify": "^1.0.1",
|
12
|
+
"node-fetch": "^2.6.1",
|
13
|
+
"base-64": "^1.0.0",
|
14
|
+
"fs": "0.0.1-security",
|
15
|
+
"lodash": "^4.17.20",
|
16
|
+
"json-diff": "^1.0.3",
|
17
|
+
"uuid": "^8.3.2"
|
18
|
+
},
|
4
19
|
"devDependencies": {
|
5
20
|
"eslint-config-standard": "^16.0.3",
|
6
|
-
"eslint-plugin-
|
7
|
-
"@typescript-eslint/eslint-plugin": "^4.28.4",
|
8
|
-
"eslint-plugin-node": "^11.1.0",
|
21
|
+
"eslint-plugin-promise": "^5.1.0",
|
9
22
|
"eslint": "^7.31.0",
|
23
|
+
"@typescript-eslint/eslint-plugin": "^4.28.4",
|
10
24
|
"@typescript-eslint/parser": "^4.28.4",
|
25
|
+
"eslint-plugin-node": "^11.1.0",
|
11
26
|
"jest": "^26.6.3",
|
12
|
-
"eslint-plugin-
|
27
|
+
"eslint-plugin-import": "^2.23.4"
|
13
28
|
},
|
14
|
-
"
|
15
|
-
|
16
|
-
"
|
17
|
-
"
|
18
|
-
"
|
19
|
-
"
|
20
|
-
"
|
21
|
-
"
|
22
|
-
|
23
|
-
"to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO"
|
24
|
-
},
|
25
|
-
"author": "dev@thinktelligence.com",
|
29
|
+
"keywords": [
|
30
|
+
"NLP",
|
31
|
+
"NLU",
|
32
|
+
"NLC",
|
33
|
+
"natural language processing",
|
34
|
+
"natural language generation",
|
35
|
+
"natural language understanding",
|
36
|
+
"chatbot"
|
37
|
+
],
|
26
38
|
"files": [
|
27
39
|
"client.js",
|
28
40
|
"index.js",
|
@@ -38,28 +50,16 @@
|
|
38
50
|
"src/generators.js",
|
39
51
|
"src/semantics.js"
|
40
52
|
],
|
41
|
-
"
|
42
|
-
"
|
43
|
-
"
|
44
|
-
"
|
45
|
-
"
|
46
|
-
"
|
47
|
-
"
|
48
|
-
"
|
49
|
-
|
50
|
-
|
51
|
-
"
|
52
|
-
|
53
|
-
"base-64": "^1.0.0",
|
54
|
-
"deep-equal": "^2.0.4",
|
55
|
-
"underscore": "^1.13.1",
|
56
|
-
"scriptjs": "^2.5.9",
|
57
|
-
"node-fetch": "^2.6.1",
|
58
|
-
"readline": "^1.3.0",
|
59
|
-
"fs": "0.0.1-security",
|
60
|
-
"sort-json": "^2.0.0",
|
61
|
-
"lodash": "^4.17.20",
|
62
|
-
"uuid": "^8.3.2",
|
63
|
-
"json-stable-stringify": "^1.0.1"
|
64
|
-
}
|
53
|
+
"scripts": {
|
54
|
+
"test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
|
55
|
+
"lint": "eslint \"**/*.js\"",
|
56
|
+
"to": "node node_modules/.bin/jest --runInBand -t NEO",
|
57
|
+
"to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
|
58
|
+
"tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
|
59
|
+
"lint:fix": "eslint \"**/*.js\" --fix",
|
60
|
+
"test:watch": "npm run test -- --watch",
|
61
|
+
"test": "jest --config ./jest.config.json"
|
62
|
+
},
|
63
|
+
"license": "ISC",
|
64
|
+
"version": "7.3.2-beta.1"
|
65
65
|
}
|