@indra.ai/deva 1.29.12 → 1.29.14
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 +19 -19
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1380,8 +1380,23 @@ class Deva {
|
|
|
1380
1380
|
***************/
|
|
1381
1381
|
done(data, resolve) {
|
|
1382
1382
|
if (!this._active) return resolve(this._messages.offline);
|
|
1383
|
-
|
|
1384
|
-
|
|
1383
|
+
|
|
1384
|
+
if (this.devas && Object.keys(this.devas).length) {
|
|
1385
|
+
for (let deva in this.devas) {
|
|
1386
|
+
setImmediate(async () => {
|
|
1387
|
+
await this.load(deva, data.client);
|
|
1388
|
+
// after the deva loads talk the event to set asset directory.
|
|
1389
|
+
const id = this.uid();
|
|
1390
|
+
const {dir} = this.devas[deva].info();
|
|
1391
|
+
const {key} = this.devas[deva].agent();
|
|
1392
|
+
this.talk(`deva:dir`, {id, key,dir});
|
|
1393
|
+
});
|
|
1394
|
+
}
|
|
1395
|
+
return this._invoke({key:'done',data,resolve});
|
|
1396
|
+
}
|
|
1397
|
+
else {
|
|
1398
|
+
return this._invoke({key:'done',data,resolve});
|
|
1399
|
+
}
|
|
1385
1400
|
}
|
|
1386
1401
|
|
|
1387
1402
|
/**************
|
|
@@ -1398,6 +1413,7 @@ class Deva {
|
|
|
1398
1413
|
|
|
1399
1414
|
this.state('set', `${key}:agent:${data.id.uid}`);
|
|
1400
1415
|
const agent = this.agent();
|
|
1416
|
+
const {VLA} = this.info();
|
|
1401
1417
|
|
|
1402
1418
|
this.state('set', `${key}:config:hash:${data.id.uid}`); // state set to watch OnFinish
|
|
1403
1419
|
this.config.hash[agent.key] = {};
|
|
@@ -1411,23 +1427,7 @@ class Deva {
|
|
|
1411
1427
|
}
|
|
1412
1428
|
}
|
|
1413
1429
|
|
|
1414
|
-
|
|
1415
|
-
for (let deva in this.devas) {
|
|
1416
|
-
await this.load(deva, data.client);
|
|
1417
|
-
// after the deva loads talk the event to set asset directory.
|
|
1418
|
-
const id = this.uid();
|
|
1419
|
-
const {dir} = this.devas[deva].info();
|
|
1420
|
-
const {key} = this.devas[deva].agent();
|
|
1421
|
-
this.talk(`deva:dir`, {id, key,dir});
|
|
1422
|
-
}
|
|
1423
|
-
// return immedate on async
|
|
1424
|
-
return setImmediate(() => {
|
|
1425
|
-
return this._invoke({key,data,resolve});
|
|
1426
|
-
});
|
|
1427
|
-
}
|
|
1428
|
-
else {
|
|
1429
|
-
return this._invoke({key,data,resolve});
|
|
1430
|
-
}
|
|
1430
|
+
return this._invoke({key,data,resolve});
|
|
1431
1431
|
}
|
|
1432
1432
|
|
|
1433
1433
|
/**************
|
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.14",
|
|
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",
|