@indra.ai/deva 1.29.7 → 1.29.8

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.
Files changed (2) hide show
  1. package/index.js +14 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1410,6 +1410,18 @@ class Deva {
1410
1410
  this.config.hash[agent.key][item] = this.hash(this_item, 'sha256');
1411
1411
  }
1412
1412
  }
1413
+
1414
+ if (this.devas && Object.keys(this.devas).length) {
1415
+ for (let deva in this.devas) {
1416
+ 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
+ }
1424
+
1413
1425
  return this._invoke({key,data,resolve});
1414
1426
  }
1415
1427
 
@@ -2138,12 +2150,12 @@ class Deva {
2138
2150
  -deva: The Deva model to load.
2139
2151
  describe: This function will enable fast loading of Deva into the system.
2140
2152
  ***************/
2141
- async load(key, client) {
2153
+ load(key, client) {
2142
2154
  this.zone('load', key);
2143
2155
  this.action('load', key);
2144
2156
  this.state('load', key);
2145
2157
  this.intent('good', `load:${key}`);
2146
- return await this.devas[key].init(client);
2158
+ return this.devas[key].init(client);
2147
2159
  }
2148
2160
 
2149
2161
  /**************
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "38159520729793885324",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.29.7",
4
+ "version": "1.29.8",
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",