@indra.ai/deva 1.1.23 → 1.1.25
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
|
@@ -782,7 +782,7 @@ class Deva {
|
|
|
782
782
|
if (!this._active) return Promise.resolve(this._messages.offline);
|
|
783
783
|
this.state('done');
|
|
784
784
|
msg = msg ? msg : this._state;
|
|
785
|
-
return this.onDone && typeof this.onDone === 'function' ? this.onDone() : Promise.resolve(this._messages.done)
|
|
785
|
+
return this.onDone && typeof this.onDone === 'function' ? this.onDone() : Promise.resolve({text:this._messages.done,prompt:this._agent.prompt})
|
|
786
786
|
}
|
|
787
787
|
|
|
788
788
|
/**************
|
|
@@ -892,7 +892,7 @@ class Deva {
|
|
|
892
892
|
}
|
|
893
893
|
Promise.all(devas).then(() => {
|
|
894
894
|
this.state('devas_ready');
|
|
895
|
-
return resolve(this._messages.devas_started);
|
|
895
|
+
return resolve({text:this._messages.devas_started,prompt:this._agent.prompt});
|
|
896
896
|
}).catch(reject);
|
|
897
897
|
});
|
|
898
898
|
}
|