@sprucelabs/sprucebot-llm 12.3.1 → 12.3.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.
|
@@ -18,8 +18,8 @@ class SprucebotLlmSkillImpl extends mercury_event_emitter_1.AbstractEventEmitter
|
|
|
18
18
|
: undefined;
|
|
19
19
|
}
|
|
20
20
|
async updateState(updates) {
|
|
21
|
-
await this.emit('did-update-state');
|
|
22
21
|
this.state = { ...this.state, ...updates };
|
|
22
|
+
await this.emit('did-update-state');
|
|
23
23
|
}
|
|
24
24
|
getState() {
|
|
25
25
|
return this.state;
|
|
@@ -34,8 +34,8 @@ export default class SprucebotLlmSkillImpl extends AbstractEventEmitter {
|
|
|
34
34
|
}
|
|
35
35
|
updateState(updates) {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
yield this.emit('did-update-state');
|
|
38
37
|
this.state = Object.assign(Object.assign({}, this.state), updates);
|
|
38
|
+
yield this.emit('did-update-state');
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
getState() {
|