@tiledesk/tiledesk-tybot-connector 0.2.123 → 0.2.125

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 CHANGED
@@ -17,6 +17,15 @@ available on:
17
17
  - Added flowError on JSONCondition when result = null
18
18
  - Added fix on Filler -->
19
19
 
20
+ # v0.2.125 -> test
21
+ - class TiledeskChatbot static MAX_STEPS = 1000;
22
+ - class TiledeskChatbot static MAX_EXECUTION_TIME = 1000 * 3600 * 6; Increased from 4 => 6 hours
23
+
24
+ # v0.2.124 -> test
25
+ - TiledeskChatbot.js: fixed problem with locked-intent error.
26
+ - DirectivesChatbotPlug -> errorMessage is now hidden
27
+ - TESTING WITH VALUES: static MAX_STEPS = 10 && MAX_EXECUTION_TIME = 1000 * 60 * 2; (2 minutes)
28
+
20
29
  # v0.2.123 -> test
21
30
  - DirSendEmail removed log
22
31
 
@@ -13,8 +13,8 @@ const { TiledeskChatbotConst } = require('./TiledeskChatbotConst.js');
13
13
 
14
14
  class TiledeskChatbot {
15
15
 
16
- static MAX_STEPS = 1000;
17
- static MAX_EXECUTION_TIME = 1000 * 3600 * 4; // 4 hours
16
+ static MAX_STEPS = 1000; // test 100; // prod ...
17
+ static MAX_EXECUTION_TIME = 1000 * 3600 * 6; // 4 hours, 1000 * 60 * 2;// test // prod...
18
18
 
19
19
  constructor(config) {
20
20
  if (!config.botsDataSource) {
@@ -143,20 +143,21 @@ class TiledeskChatbot {
143
143
  let reply;
144
144
  if (faq) {
145
145
  reply = await this.execIntent(faq, message, lead);//, bot);
146
- // if (!reply.attributes) {
147
- // reply.attributes = {}
148
- // }
149
- // // used by the Clients to get some info about the intent that generated this reply
150
- // reply.attributes.intent_display_name = faq.intent_display_name;
151
- // reply.attributes.intent_id = faq.intent_id;
146
+ resolve(reply);
147
+ return;
152
148
  }
153
149
  else {
154
- reply = {
155
- "text": "An error occurred while getting locked intent:'" + locked_intent + "'"
156
- }
150
+ // reply = {
151
+ // "text": "An error occurred while getting locked intent:'" + locked_intent + "'"
152
+ // }
153
+ // because of some race condition, during a mixed ReplyV2 Action button + Replace bot an
154
+ // intent can be found locked outside of the original chatbot scope.
155
+ // The temp solution is to immediatly unlock the intent and let the flow continue.
156
+ await this.unlockIntent(this.requestId);
157
+ await this.unlockAction(this.requestId);
157
158
  }
158
- resolve(reply);
159
- return;
159
+ // resolve(reply);
160
+ // return;
160
161
  }
161
162
  // }
162
163
  // else if (message.text.startsWith("/")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiledesk/tiledesk-tybot-connector",
3
- "version": "0.2.123",
3
+ "version": "0.2.125",
4
4
  "description": "Tiledesk Tybot connector",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -207,7 +207,8 @@ class DirectivesChatbotPlug {
207
207
  attributes: {
208
208
  runtimeError: {
209
209
  message: message
210
- }
210
+ },
211
+ subtype: "info"
211
212
  }
212
213
  }
213
214
  }