@indra.ai/deva 1.53.0 → 1.53.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.
- package/config/msgs.json +1 -0
- package/index.js +4 -2
- package/package.json +1 -1
package/config/msgs.json
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"nopacket": "⛔️ NO PACKET PROVIDED",
|
|
18
18
|
"nodata": "⛔️ NO DATA PROVIDED",
|
|
19
19
|
"nokey": "⛔️ NO KEY PROVIDED",
|
|
20
|
+
"invalidkey": "⛔️ INVALID KEY PROVIDED",
|
|
20
21
|
"method_not_found": "⛔️ METHOD NOT FOUND",
|
|
21
22
|
"help_not_found": "⛔️ HELP NOT FOUND",
|
|
22
23
|
"invalid_agent": "⛔️ Agent Hash Invalid",
|
package/index.js
CHANGED
|
@@ -306,6 +306,7 @@ class Deva {
|
|
|
306
306
|
const {key, data, resolve} = opts;
|
|
307
307
|
if (!this._active) return resolve(this._messages.offline);
|
|
308
308
|
if (!key) return resolve (this._messages.nokey);
|
|
309
|
+
if (!config.invoke[key]) return resolve (this._messages.invalidkey);
|
|
309
310
|
if (!data) return resolve (this._messages.nodata);
|
|
310
311
|
|
|
311
312
|
const {prev_key, next_key, onfunc, clear, load} = config.invoke[key];
|
|
@@ -1339,8 +1340,9 @@ class Deva {
|
|
|
1339
1340
|
return new Promise((resolve, reject) => {
|
|
1340
1341
|
try {
|
|
1341
1342
|
this.state('set', `${key}:agent:${id.uid}`); // state stop agent
|
|
1342
|
-
const
|
|
1343
|
-
const
|
|
1343
|
+
const agentData = this.agent();
|
|
1344
|
+
const agent = agentData.sha256; // get the current agent
|
|
1345
|
+
const value = agentData.key;
|
|
1344
1346
|
|
|
1345
1347
|
this.state('set', `${key}:client:${id.uid}`); // state stop agent
|
|
1346
1348
|
const client = this.client().sha256; // set the current client
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "23221940810208468106",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.53.
|
|
4
|
+
"version": "1.53.2",
|
|
5
5
|
"description": "Deva Core a Vedic-inspired Event Based Context Aware Feature, Zone, Action, and State Machine integrated Artificial Intelligence Framework",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"license": "VLA:23221940810208468106 LICENSE.md",
|