@sprucelabs/spruce-conversation-plugin 48.0.7 → 49.0.2

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.
@@ -45,7 +45,7 @@ export class ConversationFeature {
45
45
  const topics = yield this.loadTopics();
46
46
  if (topics.length === 0) {
47
47
  this.log.info('No Topics found to test. Testing cancelled...');
48
- this.notifyBooted();
48
+ yield this.notifyBooted();
49
49
  }
50
50
  else {
51
51
  yield this.startScriptTesterAndNotifyBoot(topics);
@@ -56,7 +56,7 @@ export class ConversationFeature {
56
56
  const client = yield this.connectToApi();
57
57
  yield this.startConversationCoordinator(client);
58
58
  this.log.info('Conversations loaded. Ready to chat when you are. 🤘');
59
- this.notifyBooted();
59
+ yield this.notifyBooted();
60
60
  }
61
61
  }
62
62
  catch (err) {
@@ -73,9 +73,11 @@ export class ConversationFeature {
73
73
  }
74
74
  notifyBooted() {
75
75
  var _a;
76
- this.isExecuting = false;
77
- this._isBooted = true;
78
- (_a = this.bootHandler) === null || _a === void 0 ? void 0 : _a.call(this);
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ this.isExecuting = false;
78
+ this._isBooted = true;
79
+ yield ((_a = this.bootHandler) === null || _a === void 0 ? void 0 : _a.call(this));
80
+ });
79
81
  }
80
82
  startScriptTesterAndNotifyBoot(topics) {
81
83
  return __awaiter(this, void 0, void 0, function* () {
@@ -100,7 +102,7 @@ export class ConversationFeature {
100
102
  }
101
103
  }));
102
104
  });
103
- this.notifyBooted();
105
+ yield this.notifyBooted();
104
106
  yield promise;
105
107
  });
106
108
  }
@@ -41,7 +41,7 @@ class ConversationFeature {
41
41
  const topics = await this.loadTopics();
42
42
  if (topics.length === 0) {
43
43
  this.log.info('No Topics found to test. Testing cancelled...');
44
- this.notifyBooted();
44
+ await this.notifyBooted();
45
45
  }
46
46
  else {
47
47
  await this.startScriptTesterAndNotifyBoot(topics);
@@ -52,7 +52,7 @@ class ConversationFeature {
52
52
  const client = await this.connectToApi();
53
53
  await this.startConversationCoordinator(client);
54
54
  this.log.info('Conversations loaded. Ready to chat when you are. 🤘');
55
- this.notifyBooted();
55
+ await this.notifyBooted();
56
56
  }
57
57
  }
58
58
  catch (err) {
@@ -64,11 +64,11 @@ class ConversationFeature {
64
64
  const topics = await TopicLoader_1.default.loadTopics(this.skill.activeDir);
65
65
  return topics;
66
66
  }
67
- notifyBooted() {
67
+ async notifyBooted() {
68
68
  var _a;
69
69
  this.isExecuting = false;
70
70
  this._isBooted = true;
71
- (_a = this.bootHandler) === null || _a === void 0 ? void 0 : _a.call(this);
71
+ await ((_a = this.bootHandler) === null || _a === void 0 ? void 0 : _a.call(this));
72
72
  }
73
73
  async startScriptTesterAndNotifyBoot(topics) {
74
74
  const tester = await ScriptTester_1.default.Tester({ topics });
@@ -92,7 +92,7 @@ class ConversationFeature {
92
92
  }
93
93
  });
94
94
  });
95
- this.notifyBooted();
95
+ await this.notifyBooted();
96
96
  await promise;
97
97
  }
98
98
  async startConversationCoordinator(client) {
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "@types/inquirer"
14
14
  ]
15
15
  },
16
- "version": "48.0.7",
16
+ "version": "49.0.2",
17
17
  "files": [
18
18
  "build/**/*",
19
19
  "!build/__tests__",
@@ -64,15 +64,15 @@
64
64
  },
65
65
  "dependencies": {
66
66
  "@nlpjs/nlu": "^4.23.5",
67
- "@sprucelabs/error": "^5.0.502",
68
- "@sprucelabs/mercury-core-events": "^12.0.172",
69
- "@sprucelabs/schema": "^28.4.31",
70
- "@sprucelabs/spruce-core-schemas": "^34.2.77",
71
- "@sprucelabs/spruce-event-plugin": "^48.0.7",
72
- "@sprucelabs/spruce-event-utils": "^27.0.149",
73
- "@sprucelabs/spruce-skill-booter": "^48.0.7",
74
- "@sprucelabs/spruce-skill-utils": "^26.4.52",
75
- "@sprucelabs/spruce-test-fixtures": "^48.0.7",
67
+ "@sprucelabs/error": "^5.0.503",
68
+ "@sprucelabs/mercury-core-events": "^12.0.176",
69
+ "@sprucelabs/schema": "^28.4.33",
70
+ "@sprucelabs/spruce-core-schemas": "^34.2.80",
71
+ "@sprucelabs/spruce-event-plugin": "^49.0.2",
72
+ "@sprucelabs/spruce-event-utils": "^27.0.152",
73
+ "@sprucelabs/spruce-skill-booter": "^49.0.2",
74
+ "@sprucelabs/spruce-skill-utils": "^26.4.55",
75
+ "@sprucelabs/spruce-test-fixtures": "^49.0.2",
76
76
  "fuzzyset": "^1.0.7",
77
77
  "globby": "^11.0.4",
78
78
  "inquirer": "^8.2.4",
@@ -80,27 +80,27 @@
80
80
  "random": "^3.0.6"
81
81
  },
82
82
  "devDependencies": {
83
- "@sprucelabs/esm-postbuild": "^1.0.566",
84
- "@sprucelabs/jest-json-reporter": "^6.0.459",
85
- "@sprucelabs/mercury-client": "^31.0.169",
86
- "@sprucelabs/resolve-path-aliases": "^1.1.89",
83
+ "@sprucelabs/esm-postbuild": "^1.0.568",
84
+ "@sprucelabs/jest-json-reporter": "^6.0.461",
85
+ "@sprucelabs/mercury-client": "^31.0.174",
86
+ "@sprucelabs/resolve-path-aliases": "^1.1.91",
87
87
  "@sprucelabs/semantic-release": "^4.0.8",
88
- "@sprucelabs/test": "^7.7.352",
89
- "@sprucelabs/test-utils": "^3.1.71",
88
+ "@sprucelabs/test": "^7.7.353",
89
+ "@sprucelabs/test-utils": "^3.1.72",
90
90
  "@types/fuzzyset": "^1.0.4",
91
91
  "@types/inquirer": "^8.2.1",
92
92
  "@types/node": "17.0.5",
93
93
  "chokidar-cli": "^3.0.0",
94
94
  "concurrently": "^7.3.0",
95
95
  "eslint": "^8.23.0",
96
- "eslint-config-spruce": "^10.11.3",
96
+ "eslint-config-spruce": "^10.11.4",
97
97
  "jest": "^29.0.1",
98
98
  "jest-circus": "^29.0.1",
99
99
  "prettier": "^2.7.1",
100
100
  "ts-node": "^10.9.1",
101
101
  "tsc-watch": "^5.0.3",
102
102
  "tsconfig-paths": "^4.1.0",
103
- "typescript": "4.7.4"
103
+ "typescript": "^4.8.2"
104
104
  },
105
105
  "jest": {
106
106
  "maxWorkers": 2,
@@ -119,5 +119,5 @@
119
119
  "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
120
120
  }
121
121
  },
122
- "gitHead": "e3d4b1a86339b6f6ef5a6652ac2cb409c8a35a0f"
122
+ "gitHead": "40fdf5d626c6e327264530181acf1a692d58c5e2"
123
123
  }