@indra.ai/deva 1.1.78 → 1.1.80
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 +3 -3
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -60,6 +60,7 @@ class Deva {
|
|
|
60
60
|
this._message = config.message; // current state of agent.
|
|
61
61
|
this._messages = {
|
|
62
62
|
notext: 'NO TEXT WAS PROVIDED',
|
|
63
|
+
nopacket: 'NO PACKET WAS PROVIDED',
|
|
63
64
|
}; // set the messages from config
|
|
64
65
|
|
|
65
66
|
// then here we are going to loop the messages config to make sure custom values are set
|
|
@@ -717,7 +718,6 @@ class Deva {
|
|
|
717
718
|
const isCmd = t_split[0].startsWith(this.cmdChr);
|
|
718
719
|
|
|
719
720
|
// Format the packet for return on the request.
|
|
720
|
-
const orig = TEXT; // set the TEXT to orig
|
|
721
721
|
const data = DATA; // set the DATA to data
|
|
722
722
|
const packet = { // create the base q/a packet
|
|
723
723
|
id, // set the id into packet
|
|
@@ -760,11 +760,10 @@ class Deva {
|
|
|
760
760
|
client: this.client() || false, // set the client
|
|
761
761
|
meta: { // build the meta container
|
|
762
762
|
key, // set the key variable
|
|
763
|
-
orig, // set orig text to track chances
|
|
764
763
|
method, // set method to track function use
|
|
765
764
|
params, // set any params that are associated
|
|
766
765
|
},
|
|
767
|
-
text, // set the text
|
|
766
|
+
text, // set the text for the packet
|
|
768
767
|
data, // set the data object
|
|
769
768
|
created: Date.now(), // timestamp the question
|
|
770
769
|
}
|
|
@@ -1297,6 +1296,7 @@ class Deva {
|
|
|
1297
1296
|
const agent_copy = this.copy(this._agent);
|
|
1298
1297
|
delete agent_copy.parse;
|
|
1299
1298
|
delete agent_copy.translate;
|
|
1299
|
+
delete agent_copy.process;
|
|
1300
1300
|
return agent_copy;
|
|
1301
1301
|
}
|
|
1302
1302
|
|