@indra.ai/deva 1.5.56 → 1.5.57

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 CHANGED
@@ -17,6 +17,7 @@ class Deva {
17
17
  this._agent = opts.agent || false; // Agent profile object
18
18
  this._client = {}; // this will be set on init.
19
19
  this._active = false; // the active/birth date.
20
+ this._data = false; // inherited Vector features.
20
21
  this._vector = false; // inherited Vector features.
21
22
  this._veda = false; // inherited Veda features.
22
23
  this._god = false; // inherited God features.
@@ -298,6 +299,17 @@ class Deva {
298
299
  }
299
300
  }
300
301
 
302
+ /**************
303
+ func: Data
304
+ params: resolve, reject
305
+ describe:
306
+ The Data feature sets the correct variables and necessary rules for the
307
+ client presented data.
308
+ ***************/
309
+ Data(resolve, reject) {
310
+ return this.Feature('data', resolve, reject);
311
+ }
312
+
301
313
  /**************
302
314
  func: Vector
303
315
  params: resolve, reject
@@ -871,6 +883,8 @@ class Deva {
871
883
  this.action('init');
872
884
  this.state('init');
873
885
  return this.Client(client, resolve, reject);
886
+ }).then(() => {
887
+ return this.Data(resolve, reject);
874
888
  }).then(() => {
875
889
  return this.Vector(resolve, reject);
876
890
  }).then(() => {
@@ -1193,6 +1207,7 @@ class Deva {
1193
1207
  this._active = false;
1194
1208
  this._client = false;
1195
1209
  this._vector = false;
1210
+ this._data = false;
1196
1211
  this._treasury = false;
1197
1212
  this._security = false;
1198
1213
  this._guard = false;
@@ -1556,6 +1571,16 @@ class Deva {
1556
1571
  }
1557
1572
 
1558
1573
  // FEATURE FUNCTIONS
1574
+ /**************
1575
+ func: data
1576
+ params: none
1577
+ describe: basic data features available in a Deva.
1578
+ usage: this.data()
1579
+ ***************/
1580
+ data() {
1581
+ return this._getFeature('data', this._data);
1582
+ }
1583
+
1559
1584
  /**************
1560
1585
  func: vector
1561
1586
  params: none
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "9f0bc743-d720-4320-832e-cf5edc3b7cf",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.5.56",
4
+ "version": "1.5.57",
5
5
  "description": "The Deva Core",
6
6
  "main": "index.js",
7
7
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",
@@ -111,7 +111,8 @@
111
111
  "deva": "⚡️ Deva",
112
112
  "agent": "🤖 Agent",
113
113
  "client": "👨 Client",
114
- "vector": "🛤️ Vector",
114
+ "data": "💾️ Data",
115
+ "vector": "👽️ Vector",
115
116
  "god": "💫 God",
116
117
  "veda": "🕉️ Veda",
117
118
  "king": "👑️ King",
@@ -215,6 +216,7 @@
215
216
  "actions": {
216
217
  "client": "👨 Client",
217
218
  "agent": "🕵️‍♂️ Agent",
219
+ "data": "💾 Data",
218
220
  "vector": "👽 Vector",
219
221
  "god": "💫 God",
220
222
  "veda": "🕉️ Veda",
@@ -270,7 +272,8 @@
270
272
  "init": "🟠 Init",
271
273
  "agent": "🦾 Agent",
272
274
  "client": "💪 Client",
273
- "vector": "🛤️ Vector",
275
+ "data": "💾️ Data",
276
+ "vector": "👽️ Vector",
274
277
  "god": "💫 God",
275
278
  "veda": "🕉️ Veda",
276
279
  "king": "👑️ King",
package/tests/client.json CHANGED
@@ -34,6 +34,11 @@
34
34
  "currency": "USD"
35
35
  },
36
36
  "features": {
37
+ "data": {
38
+ "concerns": [],
39
+ "global": [],
40
+ "devas": {}
41
+ },
37
42
  "vector": {
38
43
  "concerns": [],
39
44
  "global": [],