theprogrammablemind 7.3.4-beta.4 → 7.3.4-beta.6
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 +4 -1
- package/package.json +32 -32
package/client.js
CHANGED
@@ -350,7 +350,6 @@ const processContextsB = ({ config, hierarchy, semantics, generators, json, isTe
|
|
350
350
|
// okay
|
351
351
|
query = query.slice(overlap.end+1)
|
352
352
|
data.utterance = query
|
353
|
-
debugger;
|
354
353
|
const json = await doWithRetries(retries, url, data)
|
355
354
|
toDo = setupContexts(json.contexts).slice(1) // take off the start context
|
356
355
|
}
|
@@ -459,6 +458,8 @@ const doWithRetries = async (n, url, data) => {
|
|
459
458
|
}
|
460
459
|
if (result.status >= 500 && result.status < 600) {
|
461
460
|
throw `Error ${result.status} - ${result.statusText}. If you are using the researcher version try restarting your entodicton server. If takes a few minutes to be up.`
|
461
|
+
} if (result.status >= 404) {
|
462
|
+
throw `Error ${result.status} - ${result.statusText} - Trying it connect to ${url}`
|
462
463
|
} else {
|
463
464
|
throw `Error ${result.status} - ${result.statusText}`
|
464
465
|
}
|
@@ -1443,6 +1444,8 @@ const knowledgeModule = async ({
|
|
1443
1444
|
// const contexts = { failures: results }
|
1444
1445
|
l(n - 1, hasError || newError)
|
1445
1446
|
}).catch((error) => {
|
1447
|
+
console.error(error)
|
1448
|
+
process.exit(-1)
|
1446
1449
|
errorHandler(error)
|
1447
1450
|
})
|
1448
1451
|
}
|
package/package.json
CHANGED
@@ -1,4 +1,25 @@
|
|
1
1
|
{
|
2
|
+
"scripts": {
|
3
|
+
"test:watch": "npm run test -- --watch",
|
4
|
+
"lint:fix": "eslint \"**/*.js\" --fix",
|
5
|
+
"test": "jest --config ./jest.config.json",
|
6
|
+
"to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
|
7
|
+
"lint": "eslint \"**/*.js\"",
|
8
|
+
"test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
|
9
|
+
"to": "node node_modules/.bin/jest --runInBand -t NEO",
|
10
|
+
"tod": "node inspect node_modules/.bin/jest --runInBand -t NEO"
|
11
|
+
},
|
12
|
+
"devDependencies": {
|
13
|
+
"eslint-plugin-import": "^2.23.4",
|
14
|
+
"eslint-plugin-promise": "^5.1.0",
|
15
|
+
"jest": "^26.6.3",
|
16
|
+
"eslint-plugin-node": "^11.1.0",
|
17
|
+
"@typescript-eslint/eslint-plugin": "^4.28.4",
|
18
|
+
"eslint-config-standard": "^16.0.3",
|
19
|
+
"@typescript-eslint/parser": "^4.28.4",
|
20
|
+
"eslint": "^7.31.0"
|
21
|
+
},
|
22
|
+
"version": "7.3.4-beta.6",
|
2
23
|
"files": [
|
3
24
|
"client.js",
|
4
25
|
"index.js",
|
@@ -14,35 +35,24 @@
|
|
14
35
|
"src/generators.js",
|
15
36
|
"src/semantics.js"
|
16
37
|
],
|
17
|
-
"license": "ISC",
|
18
|
-
"name": "theprogrammablemind",
|
19
38
|
"main": "index.js",
|
20
|
-
"devDependencies": {
|
21
|
-
"jest": "^26.6.3",
|
22
|
-
"@typescript-eslint/eslint-plugin": "^4.28.4",
|
23
|
-
"eslint": "^7.31.0",
|
24
|
-
"eslint-plugin-promise": "^5.1.0",
|
25
|
-
"eslint-config-standard": "^16.0.3",
|
26
|
-
"eslint-plugin-import": "^2.23.4",
|
27
|
-
"@typescript-eslint/parser": "^4.28.4",
|
28
|
-
"eslint-plugin-node": "^11.1.0"
|
29
|
-
},
|
30
|
-
"version": "7.3.4-beta.4",
|
31
39
|
"dependencies": {
|
32
|
-
"underscore": "^1.13.1",
|
33
|
-
"sort-json": "^2.0.0",
|
34
|
-
"deep-equal": "^2.0.4",
|
35
|
-
"json-stable-stringify": "^1.0.1",
|
36
40
|
"node-fetch": "^2.6.1",
|
37
41
|
"fs": "0.0.1-security",
|
38
|
-
"
|
39
|
-
"readline": "^1.3.0",
|
40
|
-
"lodash": "^4.17.20",
|
42
|
+
"base-64": "^1.0.0",
|
41
43
|
"uuid": "^8.3.2",
|
44
|
+
"json-stable-stringify": "^1.0.1",
|
45
|
+
"lodash": "^4.17.20",
|
46
|
+
"underscore": "^1.13.1",
|
47
|
+
"sort-json": "^2.0.0",
|
48
|
+
"readline": "^1.3.0",
|
49
|
+
"deep-equal": "^2.0.4",
|
42
50
|
"json-diff": "^1.0.3",
|
43
|
-
"
|
51
|
+
"scriptjs": "^2.5.9"
|
44
52
|
},
|
53
|
+
"license": "ISC",
|
45
54
|
"author": "dev@thinktelligence.com",
|
55
|
+
"name": "theprogrammablemind",
|
46
56
|
"keywords": [
|
47
57
|
"NLP",
|
48
58
|
"NLU",
|
@@ -51,15 +61,5 @@
|
|
51
61
|
"natural language generation",
|
52
62
|
"natural language understanding",
|
53
63
|
"chatbot"
|
54
|
-
]
|
55
|
-
"scripts": {
|
56
|
-
"lint": "eslint \"**/*.js\"",
|
57
|
-
"to:debug": "node inspect node_modules/.bin/jest --runInBand -t NEO",
|
58
|
-
"to": "node node_modules/.bin/jest --runInBand -t NEO",
|
59
|
-
"lint:fix": "eslint \"**/*.js\" --fix",
|
60
|
-
"test": "jest --config ./jest.config.json",
|
61
|
-
"test:debug": "node inspect node_modules/.bin/jest --runInBand --config ./jest.config.json",
|
62
|
-
"tod": "node inspect node_modules/.bin/jest --runInBand -t NEO",
|
63
|
-
"test:watch": "npm run test -- --watch"
|
64
|
-
}
|
64
|
+
]
|
65
65
|
}
|