@sprucelabs/spruce-conversation-plugin 59.0.40 → 59.0.41

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.
@@ -66,6 +66,7 @@ class CheckingHealthTest extends AbstractConversationTest_1.default {
66
66
  ]);
67
67
  }
68
68
  }
69
+ exports.default = CheckingHealthTest;
69
70
  __decorate([
70
71
  (0, test_utils_1.test)()
71
72
  ], CheckingHealthTest, "pluginReturnsInstance", null);
@@ -84,4 +85,3 @@ __decorate([
84
85
  __decorate([
85
86
  (0, test_utils_1.test)()
86
87
  ], CheckingHealthTest, "getsTopicsFromHealthCheck", null);
87
- exports.default = CheckingHealthTest;
@@ -21,7 +21,7 @@ class KillingASkillTest extends AbstractConversationTest_1.default {
21
21
  test_utils_1.assert.isFalse(skill.isRunning());
22
22
  }
23
23
  }
24
+ exports.default = KillingASkillTest;
24
25
  __decorate([
25
26
  (0, test_utils_1.test)()
26
27
  ], KillingASkillTest, "killingASkillKillsConversation", null);
27
- exports.default = KillingASkillTest;
@@ -119,6 +119,7 @@ class RegisteringConversationsOnBootTest extends AbstractConversationTest_1.defa
119
119
  return { topics, skill };
120
120
  }
121
121
  }
122
+ exports.default = RegisteringConversationsOnBootTest;
122
123
  __decorate([
123
124
  (0, test_utils_1.test)()
124
125
  ], RegisteringConversationsOnBootTest, "throwsWhenExecutingIfEventPluginMissing", null);
@@ -140,4 +141,3 @@ __decorate([
140
141
  __decorate([
141
142
  (0, test_utils_1.test)()
142
143
  ], RegisteringConversationsOnBootTest, "coordinaterGetsSkillContext", null);
143
- exports.default = RegisteringConversationsOnBootTest;
@@ -111,6 +111,7 @@ class RespondingToMessagesTest extends AbstractConversationTest_1.default {
111
111
  return this.client;
112
112
  }
113
113
  }
114
+ exports.default = RespondingToMessagesTest;
114
115
  __decorate([
115
116
  (0, test_utils_1.test)()
116
117
  ], RespondingToMessagesTest, "respondsToFirstMessageWithSuggestedTopics", null);
@@ -129,4 +130,3 @@ __decorate([
129
130
  __decorate([
130
131
  (0, test_utils_1.test)()
131
132
  ], RespondingToMessagesTest, "eachPersonGetsTheirOwnConversation", null);
132
- exports.default = RespondingToMessagesTest;
@@ -91,6 +91,7 @@ class TestingAConversationTest extends AbstractConversationTest_1.default {
91
91
  return skill.getFeatureByCode('conversation');
92
92
  }
93
93
  }
94
+ exports.default = TestingAConversationTest;
94
95
  __decorate([
95
96
  (0, test_utils_1.test)()
96
97
  ], TestingAConversationTest, "bootingNormallyDoesNotGoToTestMode", null);
@@ -107,4 +108,3 @@ __decorate([
107
108
  (0, test_utils_1.test)('can get context 1', { hello: 'world' }),
108
109
  (0, test_utils_1.test)('can get context 2', { what: 'the!?' })
109
110
  ], TestingAConversationTest, "scriptTesterGetsContext", null);
110
- exports.default = TestingAConversationTest;
@@ -128,6 +128,7 @@ TopicCoordinatorTest.sentMessages = [];
128
128
  TopicCoordinatorTest.skillContext = {
129
129
  client: spruce_test_fixtures_1.fake.getClient(),
130
130
  };
131
+ exports.default = TopicCoordinatorTest;
131
132
  __decorate([
132
133
  (0, test_utils_1.test)()
133
134
  ], TopicCoordinatorTest, "canCreateTopicCoordinator", null);
@@ -159,7 +160,6 @@ __decorate([
159
160
  (0, test_utils_1.test)('can passthrough context 1', { hello: 'world' }),
160
161
  (0, test_utils_1.test)('can passthrough context 2', { go: 'team' })
161
162
  ], TopicCoordinatorTest, "passesThroughContextGetter", null);
162
- exports.default = TopicCoordinatorTest;
163
163
  class SpyCoordinator extends ConversationCoordinator_1.ConversationCoordinator {
164
164
  getPlayer() {
165
165
  return this.player;
@@ -56,6 +56,7 @@ class TextFieldTest extends AbstractGraphicsInterfaceTest_1.default {
56
56
  await test_utils_1.assert.doesThrowAsync(() => promise);
57
57
  }
58
58
  }
59
+ exports.default = TextFieldTest;
59
60
  __decorate([
60
61
  (0, test_utils_1.test)()
61
62
  ], TextFieldTest, "promptSendsLabel", null);
@@ -68,4 +69,3 @@ __decorate([
68
69
  __decorate([
69
70
  (0, test_utils_1.test)()
70
71
  ], TextFieldTest, "respondingWithBadEmail2TimesErrors", null);
71
- exports.default = TextFieldTest;
@@ -36,7 +36,7 @@ class MessageGraphicsInterfaceTest extends AbstractGraphicsInterfaceTest_1.defau
36
36
  test_utils_2.errorAssert.assertError(err, 'ABORT');
37
37
  }
38
38
  }
39
+ exports.default = MessageGraphicsInterfaceTest;
39
40
  __decorate([
40
41
  (0, test_utils_1.test)()
41
42
  ], MessageGraphicsInterfaceTest, "selectAsksAgainWithBadResponse", null);
42
- exports.default = MessageGraphicsInterfaceTest;
@@ -144,6 +144,7 @@ class SpyMessageInterfaceTest extends test_utils_1.default {
144
144
  test_utils_1.assert.doesThrow(() => this.ui.assertJustPromptedFor(type));
145
145
  }
146
146
  }
147
+ exports.default = SpyMessageInterfaceTest;
147
148
  __decorate([
148
149
  (0, test_utils_1.test)()
149
150
  ], SpyMessageInterfaceTest, "knowsIfDidntPromp", null);
@@ -165,4 +166,3 @@ __decorate([
165
166
  __decorate([
166
167
  (0, test_utils_1.test)()
167
168
  ], SpyMessageInterfaceTest, "canAssertIfRequired", null);
168
- exports.default = SpyMessageInterfaceTest;
@@ -59,6 +59,7 @@ class MessageGraphicsInterfaceTest extends AbstractGraphicsInterfaceTest_1.defau
59
59
  return response;
60
60
  }
61
61
  }
62
+ exports.default = MessageGraphicsInterfaceTest;
62
63
  __decorate([
63
64
  (0, test_utils_1.test)()
64
65
  ], MessageGraphicsInterfaceTest, "respondingWithNumberSelectsOptions", null);
@@ -68,4 +69,3 @@ __decorate([
68
69
  __decorate([
69
70
  (0, test_utils_1.test)()
70
71
  ], MessageGraphicsInterfaceTest, "respondingWithCloseMatchSelectsChoice", null);
71
- exports.default = MessageGraphicsInterfaceTest;
@@ -34,6 +34,7 @@ class TextFieldTest extends AbstractGraphicsInterfaceTest_1.default {
34
34
  test_utils_1.assert.isEqual(answer, 'hey there!');
35
35
  }
36
36
  }
37
+ exports.default = TextFieldTest;
37
38
  __decorate([
38
39
  (0, test_utils_1.test)()
39
40
  ], TextFieldTest, "promptSendsLabel", null);
@@ -43,4 +44,3 @@ __decorate([
43
44
  __decorate([
44
45
  (0, test_utils_1.test)()
45
46
  ], TextFieldTest, "canRespondToPrompt", null);
46
- exports.default = TextFieldTest;
@@ -418,6 +418,7 @@ ScriptTesterTest.basicBookingScript = [
418
418
  script: ['Lets cancel'],
419
419
  },
420
420
  ];
421
+ exports.default = ScriptTesterTest;
421
422
  __decorate([
422
423
  (0, test_utils_1.test)()
423
424
  ], ScriptTesterTest, "throwsWithoutScript", null);
@@ -459,4 +460,3 @@ __decorate([
459
460
  __decorate([
460
461
  (0, test_utils_1.test)()
461
462
  ], ScriptTesterTest, "messagesAboutTransitionResponseWithRepairs", null);
462
- exports.default = ScriptTesterTest;
@@ -42,6 +42,7 @@ class SuggesterUtilTest extends AbstractConversationTest_1.default {
42
42
  test_utils_1.assert.isEqual(results, expected);
43
43
  }
44
44
  }
45
+ exports.default = SuggesterUtilTest;
45
46
  __decorate([
46
47
  (0, test_utils_1.test)()
47
48
  ], SuggesterUtilTest, "suggesterExists", null);
@@ -60,4 +61,3 @@ __decorate([
60
61
  (0, test_utils_1.test)('doesMatch is false with horrible', ['ha', 'haha', 'lol', 'lolz', 'rofl', 'hahahah'], 'horrible', false),
61
62
  (0, test_utils_1.test)('doesMatch is false with hey', ['ha', 'haha', 'lol', 'lolz', 'rofl', 'hahahah'], 'hey', false)
62
63
  ], SuggesterUtilTest, "matchesByReturningTopOptionsAboveThreshold", null);
63
- exports.default = SuggesterUtilTest;
@@ -48,6 +48,7 @@ class TopicLoaderTest extends AbstractConversationTest_1.default {
48
48
  test_utils_1.assert.doesInclude(scripts, { key: 'cancelAppointment' });
49
49
  }
50
50
  }
51
+ exports.default = TopicLoaderTest;
51
52
  __decorate([
52
53
  (0, test_utils_1.test)()
53
54
  ], TopicLoaderTest, "loadsNoTopicsWithBadDir", null);
@@ -63,4 +64,3 @@ __decorate([
63
64
  __decorate([
64
65
  (0, test_utils_1.test)()
65
66
  ], TopicLoaderTest, "loadedTopicsSetKey", null);
66
- exports.default = TopicLoaderTest;
@@ -359,6 +359,7 @@ class TopicScriptPlayerTest extends AbstractConversationTest_1.default {
359
359
  return player.handleMessage(this.buildMessage(Object.assign({ source: { personId: '1234' } }, message)));
360
360
  }
361
361
  }
362
+ exports.default = TopicScriptPlayerTest;
362
363
  __decorate([
363
364
  (0, test_utils_1.test)()
364
365
  ], TopicScriptPlayerTest, "throwsWhenRequiredOptionsNotSent", null);
@@ -429,4 +430,3 @@ __decorate([
429
430
  (0, test_utils_1.test)('can passe context 1', { skill: 'test' }),
430
431
  (0, test_utils_1.test)('can passe context 2', { hello: 'world' })
431
432
  ], TopicScriptPlayerTest, "skillContextAvailableOnScriptLine", null);
432
- exports.default = TopicScriptPlayerTest;
@@ -112,6 +112,7 @@ class TopicSuggesterTest extends test_utils_1.default {
112
112
  return suggestions;
113
113
  }
114
114
  }
115
+ exports.default = TopicSuggesterTest;
115
116
  __decorate([
116
117
  (0, test_utils_1.test)()
117
118
  ], TopicSuggesterTest, "canCreateTopicSuggester", null);
@@ -128,4 +129,3 @@ __decorate([
128
129
  (0, test_utils_1.test)('matches "Joke me"', 'Joke me', 'jokes'),
129
130
  (0, test_utils_1.test)('matches "Joke me"', 'Joke me', 'jokes')
130
131
  ], TopicSuggesterTest, "matchTests", null);
131
- exports.default = TopicSuggesterTest;
@@ -157,6 +157,7 @@ TopicCoordinatorTest.sentMessages = [];
157
157
  TopicCoordinatorTest.skillContext = {
158
158
  client: fake.getClient(),
159
159
  };
160
+ export default TopicCoordinatorTest;
160
161
  __decorate([
161
162
  test()
162
163
  ], TopicCoordinatorTest, "canCreateTopicCoordinator", null);
@@ -188,7 +189,6 @@ __decorate([
188
189
  test('can passthrough context 1', { hello: 'world' }),
189
190
  test('can passthrough context 2', { go: 'team' })
190
191
  ], TopicCoordinatorTest, "passesThroughContextGetter", null);
191
- export default TopicCoordinatorTest;
192
192
  class SpyCoordinator extends ConversationCoordinator {
193
193
  getPlayer() {
194
194
  return this.player;
@@ -427,6 +427,7 @@ ScriptTesterTest.basicBookingScript = [
427
427
  script: ['Lets cancel'],
428
428
  },
429
429
  ];
430
+ export default ScriptTesterTest;
430
431
  __decorate([
431
432
  test()
432
433
  ], ScriptTesterTest, "throwsWithoutScript", null);
@@ -468,4 +469,3 @@ __decorate([
468
469
  __decorate([
469
470
  test()
470
471
  ], ScriptTesterTest, "messagesAboutTransitionResponseWithRepairs", null);
471
- export default ScriptTesterTest;
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  "@types/inquirer"
13
13
  ]
14
14
  },
15
- "version": "59.0.40",
15
+ "version": "59.0.41",
16
16
  "files": [
17
17
  "build/**/*",
18
18
  "!build/__tests__",
@@ -63,29 +63,29 @@
63
63
  },
64
64
  "dependencies": {
65
65
  "@nlpjs/nlu": "^4.27.0",
66
- "@sprucelabs/error": "^5.1.6",
66
+ "@sprucelabs/error": "^5.1.7",
67
67
  "@sprucelabs/globby": "^1.0.1",
68
- "@sprucelabs/mercury-core-events": "^21.1.35",
69
- "@sprucelabs/schema": "^28.6.36",
70
- "@sprucelabs/spruce-core-schemas": "^38.1.32",
71
- "@sprucelabs/spruce-event-plugin": "^59.0.40",
72
- "@sprucelabs/spruce-event-utils": "^37.0.39",
73
- "@sprucelabs/spruce-skill-booter": "^59.0.40",
74
- "@sprucelabs/spruce-skill-utils": "^29.0.22",
75
- "@sprucelabs/spruce-test-fixtures": "^59.0.40",
68
+ "@sprucelabs/mercury-core-events": "^21.1.36",
69
+ "@sprucelabs/schema": "^28.6.37",
70
+ "@sprucelabs/spruce-core-schemas": "^38.1.33",
71
+ "@sprucelabs/spruce-event-plugin": "^59.0.41",
72
+ "@sprucelabs/spruce-event-utils": "^37.0.40",
73
+ "@sprucelabs/spruce-skill-booter": "^59.0.41",
74
+ "@sprucelabs/spruce-skill-utils": "^29.0.23",
75
+ "@sprucelabs/spruce-test-fixtures": "^59.0.41",
76
76
  "fuzzyset": "^1.0.7",
77
77
  "inquirer": "^8.2.4",
78
78
  "node-nlp": "^4.27.0",
79
79
  "random": "^4.1.0"
80
80
  },
81
81
  "devDependencies": {
82
- "@sprucelabs/esm-postbuild": "^5.0.18",
83
- "@sprucelabs/jest-json-reporter": "^7.0.51",
82
+ "@sprucelabs/esm-postbuild": "^5.0.19",
83
+ "@sprucelabs/jest-json-reporter": "^7.0.52",
84
84
  "@sprucelabs/mercury-client": "^40.1.45",
85
- "@sprucelabs/resolve-path-aliases": "^1.1.223",
85
+ "@sprucelabs/resolve-path-aliases": "^1.1.224",
86
86
  "@sprucelabs/semantic-release": "^4.0.8",
87
- "@sprucelabs/test": "^7.7.450",
88
- "@sprucelabs/test-utils": "^3.4.65",
87
+ "@sprucelabs/test": "^7.7.451",
88
+ "@sprucelabs/test-utils": "^3.4.66",
89
89
  "@types/fuzzyset": "^1.0.4",
90
90
  "@types/inquirer": "^8.2.1",
91
91
  "@types/node": "17.0.5",
@@ -99,7 +99,7 @@
99
99
  "ts-node": "^10.9.1",
100
100
  "tsc-watch": "^6.0.4",
101
101
  "tsconfig-paths": "^4.2.0",
102
- "typescript": "^5.0.4"
102
+ "typescript": "^5.1.3"
103
103
  },
104
104
  "jest": {
105
105
  "maxWorkers": 2,
@@ -118,5 +118,5 @@
118
118
  "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1"
119
119
  }
120
120
  },
121
- "gitHead": "3bf45e7f5f0b54d3b35ceac15fa12a688aad4274"
121
+ "gitHead": "082fc89b76261a11ae6c721ba7c9ffd74fad321b"
122
122
  }