@indra.ai/deva 1.1.5 → 1.1.6
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 -2
- 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.id}: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,7 +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.
|
|
491
|
+
this.talk(`${this.agent.id}:log`, packet);
|
|
492
492
|
return resolve(packet);
|
|
493
493
|
}).catch(err => {
|
|
494
494
|
return this.error(err, packet);
|