@indra.ai/deva 1.29.26 → 1.29.27
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 +8 -12
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1414,27 +1414,23 @@ class Deva {
|
|
|
1414
1414
|
let x = 1;
|
|
1415
1415
|
if (this.devas && key_len) {
|
|
1416
1416
|
for (let deva in this.devas) {
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
this.load(deva, data.client).then(entity => {
|
|
1417
|
+
await this.load(deva, data.client).then(async entity => {
|
|
1418
|
+
this.prompt(`${agent.key} load ${deva} `);
|
|
1420
1419
|
const id = this.uid();
|
|
1421
1420
|
const {dir} = this.devas[deva].info();
|
|
1422
1421
|
const deva_agent = this.devas[deva].agent();
|
|
1423
1422
|
this.talk(`deva:dir`, {id, key:deva_agent.key, dir});
|
|
1424
1423
|
if (x === key_len) {
|
|
1425
|
-
|
|
1426
|
-
|
|
1424
|
+
setImmediate(async () => {
|
|
1425
|
+
this.prompt(`${agent.key} loaded ${deva}`)
|
|
1426
|
+
return await this._invoke({key,data,resolve});
|
|
1427
|
+
});
|
|
1427
1428
|
}
|
|
1428
|
-
|
|
1429
|
-
x = x + 1;
|
|
1430
|
-
}
|
|
1431
|
-
});
|
|
1429
|
+
x = x + 1;
|
|
1432
1430
|
});
|
|
1433
1431
|
}
|
|
1434
1432
|
}
|
|
1435
|
-
else {
|
|
1436
|
-
return this._invoke({key,data,resolve});
|
|
1437
|
-
}
|
|
1433
|
+
else return this._invoke({key,data,resolve});
|
|
1438
1434
|
}
|
|
1439
1435
|
|
|
1440
1436
|
/**************
|
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.27",
|
|
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",
|