@tiledesk/tiledesk-tybot-connector 2.0.5 → 2.0.7-rc1
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/CHANGELOG.md +31 -0
- package/Logger.js +9 -1
- package/engine/mock/MockBotsDataSource.js +1 -2
- package/index.js +3 -0
- package/logs/app5.log +6810 -0
- package/logs/app6.log +5964 -0
- package/package.json +1 -1
- package/services/IntegrationService.js +54 -29
- package/tiledeskChatbotPlugs/DirectivesChatbotPlug.js +20 -8
- package/tiledeskChatbotPlugs/directives/DirAiPrompt.js +47 -16
- package/tiledeskChatbotPlugs/directives/DirIntent.js +6 -4
- package/tiledeskChatbotPlugs/directives/DirReply.js +6 -14
- package/tiledeskChatbotPlugs/directives/DirWebResponse.js +15 -54
- package/tiledeskChatbotPlugs/directives/Directives.js +1 -0
- package/utils/TiledeskChatbotUtil.js +3 -27
- package/TdCache copy.js +0 -242
- package/logs/app.log +0 -13891
- package/logs/app1.log +0 -62258
package/CHANGELOG.md
CHANGED
|
@@ -5,8 +5,14 @@
|
|
|
5
5
|
available on:
|
|
6
6
|
▶️ https://www.npmjs.com/package/@tiledesk/tiledesk-tybot-connector
|
|
7
7
|
|
|
8
|
+
# 0.5.1-rc1
|
|
9
|
+
- added json_buttons
|
|
10
|
+
- added winston log with code refactoring
|
|
11
|
+
|
|
8
12
|
# v0.5.0
|
|
9
13
|
- added: AI_ENDPOINT env var
|
|
14
|
+
|
|
15
|
+
# v0.5.0-rc1
|
|
10
16
|
- added: ability to get 'none' as bodytype in webresponse
|
|
11
17
|
|
|
12
18
|
# v0.4.2
|
|
@@ -21,6 +27,19 @@ available on:
|
|
|
21
27
|
- changed: refactoring of DIrWebRequestv2
|
|
22
28
|
- bug-fixed: erro while parsing webrequestv2 body
|
|
23
29
|
|
|
30
|
+
# v0.3.5-rc4
|
|
31
|
+
- added: webhook action (same as intent one)
|
|
32
|
+
|
|
33
|
+
# v0.3.5-rc3
|
|
34
|
+
- bug-fixed: jsonBody parse error in web-request-v2
|
|
35
|
+
|
|
36
|
+
# v0.3.5-rc2
|
|
37
|
+
- bug-fixed: cannot set status of undefined reading res.status in DirAssistant
|
|
38
|
+
|
|
39
|
+
# v0.3.5-rc1
|
|
40
|
+
- changed: refactoring web-request-v2
|
|
41
|
+
- bug-fixed: jsonBody parse error in web-request-v2
|
|
42
|
+
|
|
24
43
|
# v0.3.4
|
|
25
44
|
-bug-fixed: slit is undefined in TiledeskChatbotUtils
|
|
26
45
|
|
|
@@ -30,6 +49,18 @@ available on:
|
|
|
30
49
|
# v0.3.2
|
|
31
50
|
- bug-fixed: minor improvement
|
|
32
51
|
|
|
52
|
+
# v0.2.153-rc9
|
|
53
|
+
- changed: updated tiledesk-multi-worker to 0.2.1-rc2
|
|
54
|
+
|
|
55
|
+
# v0.2.153-rc8
|
|
56
|
+
- added: fixToken function in TiledeskService utils class
|
|
57
|
+
|
|
58
|
+
# v0.2.153-rc4
|
|
59
|
+
- log added
|
|
60
|
+
|
|
61
|
+
# v0.2.153-rc3
|
|
62
|
+
- added: specchToText function to transcript audio file
|
|
63
|
+
|
|
33
64
|
# v0.2.153-rc1
|
|
34
65
|
- changed: context for gpt-40 and gpt-40-mini
|
|
35
66
|
|
package/Logger.js
CHANGED
|
@@ -9,6 +9,8 @@ let publisher = new Publisher(AMQP_MANAGER_URL, {
|
|
|
9
9
|
topic: "logs",
|
|
10
10
|
})
|
|
11
11
|
|
|
12
|
+
const levels = { error: 0, warn: 1, info: 2, debug: 3 };
|
|
13
|
+
|
|
12
14
|
class Logger {
|
|
13
15
|
|
|
14
16
|
constructor(config) {
|
|
@@ -76,6 +78,7 @@ class Logger {
|
|
|
76
78
|
request_id: this.request_id,
|
|
77
79
|
text: text,
|
|
78
80
|
level: level,
|
|
81
|
+
nlevel: levels[level],
|
|
79
82
|
timestamp: new Date(),
|
|
80
83
|
dev: this.dev
|
|
81
84
|
}
|
|
@@ -98,7 +101,12 @@ class Logger {
|
|
|
98
101
|
methods.forEach(method => {
|
|
99
102
|
this[method] = () => {};
|
|
100
103
|
});
|
|
101
|
-
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
_disableDebugMethod() {
|
|
107
|
+
const method = 'debug';
|
|
108
|
+
this[method] = () => {};
|
|
109
|
+
}
|
|
102
110
|
|
|
103
111
|
}
|
|
104
112
|
|