@indra.ai/deva 1.1.3 → 1.1.5
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/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -79,7 +79,7 @@ class Deva {
|
|
|
79
79
|
state(st) {
|
|
80
80
|
this._state = this._states[st];
|
|
81
81
|
this.prompt(this._state);
|
|
82
|
-
this.talk(`${this.agent.
|
|
82
|
+
this.talk(`${this.agent.uid}:state`, this._state);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
// Called from the init function to bind the elements defined in the this.bind variable.
|
|
@@ -488,6 +488,7 @@ class Deva {
|
|
|
488
488
|
packet.hash = this.hash(JSON.stringify(packet));
|
|
489
489
|
|
|
490
490
|
this.state('wait');
|
|
491
|
+
this.talk(`${this.agent.uid}:log`, packet);
|
|
491
492
|
return resolve(packet);
|
|
492
493
|
}).catch(err => {
|
|
493
494
|
return this.error(err, packet);
|