@indra.ai/deva 1.29.22 → 1.29.24
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 +6 -5
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1411,18 +1411,19 @@ class Deva {
|
|
|
1411
1411
|
}
|
|
1412
1412
|
}
|
|
1413
1413
|
const key_len = Object.keys(this.devas).length
|
|
1414
|
-
let x =
|
|
1414
|
+
let x = 1;
|
|
1415
1415
|
if (this.devas && key_len) {
|
|
1416
1416
|
for (let deva in this.devas) {
|
|
1417
1417
|
const eitity = await this.load(deva, data.client);
|
|
1418
1418
|
const id = this.uid();
|
|
1419
1419
|
const {dir} = this.devas[deva].info();
|
|
1420
|
-
const
|
|
1421
|
-
this.talk(`deva:dir`, {id, key, dir});
|
|
1422
|
-
if (x === key_len
|
|
1423
|
-
console.log('running invoke after deva load');
|
|
1420
|
+
const agent = this.devas[deva].agent();
|
|
1421
|
+
this.talk(`deva:dir`, {id, key:agent.key, dir});
|
|
1422
|
+
if (x === key_len) {
|
|
1423
|
+
console.log('running invoke after deva load', deva);
|
|
1424
1424
|
return this._invoke({key,data,resolve});
|
|
1425
1425
|
}
|
|
1426
|
+
x = x + 1;
|
|
1426
1427
|
}
|
|
1427
1428
|
}
|
|
1428
1429
|
else {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "38159520729793885324",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.29.
|
|
4
|
+
"version": "1.29.24",
|
|
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:38159520729793885324 LICENSE.md",
|