@indra.ai/deva 1.5.51 → 1.5.52

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
@@ -18,6 +18,7 @@ class Deva {
18
18
  this._client = {}; // this will be set on init.
19
19
  this._active = false; // the active/birth date.
20
20
  this._vector = false; // inherited Vector features.
21
+ this._treasury = false; // inherited Vector features.
21
22
  this._security = false; // inherited Security features.
22
23
  this._guard = false; // inherited Guard features.
23
24
  this._defense = false; // inherited Security features.
@@ -305,6 +306,17 @@ class Deva {
305
306
  return this.Feature('vector', resolve, reject);
306
307
  }
307
308
 
309
+ /**************
310
+ func: Treasury
311
+ params: client: false
312
+ describe:
313
+ The Treasury feature sets the correct variables and necessary rules for the
314
+ client presented data.
315
+ ***************/
316
+ Treasury(resolve, reject) {
317
+ return this.Feature('treasury', resolve, reject);
318
+ }
319
+
308
320
  /**************
309
321
  func: Security
310
322
  params: client: false
@@ -814,6 +826,8 @@ class Deva {
814
826
  return this.Client(client, resolve, reject);
815
827
  }).then(() => {
816
828
  return this.Vector(resolve, reject);
829
+ }).then(() => {
830
+ return this.Treasury(resolve, reject);
817
831
  }).then(() => {
818
832
  return this.Security(resolve, reject);
819
833
  }).then(() => {
@@ -1115,6 +1129,7 @@ class Deva {
1115
1129
  this._active = false;
1116
1130
  this._client = false;
1117
1131
  this._vector = false;
1132
+ this._treasury = false;
1118
1133
  this._security = false;
1119
1134
  this._guard = false;
1120
1135
  this._defense = false;
@@ -1487,6 +1502,16 @@ class Deva {
1487
1502
  return this._getFeature('vector', this._vector);
1488
1503
  }
1489
1504
 
1505
+ /**************
1506
+ func: treasury
1507
+ params: none
1508
+ describe: basic treasury features available in a Deva.
1509
+ usage: this.treasury()
1510
+ ***************/
1511
+ treasury() {
1512
+ return this._getFeature('treasury', this._treasury);
1513
+ }
1514
+
1490
1515
  /**************
1491
1516
  func: security
1492
1517
  params: none
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.5.51",
3
+ "version": "1.5.52",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",
@@ -87,7 +87,7 @@
87
87
  "load": "🚛 Load",
88
88
  "unload": "🛻 Unload",
89
89
  "init": "🟠 Init",
90
- "start": "🟢 Start",
90
+ "start": "🟢 Start",
91
91
  "enter": "🚪 Enter",
92
92
  "done": "🟣 Done",
93
93
  "ready": "⭐️ Ready",
@@ -99,6 +99,7 @@
99
99
  "agent": "🤖 Agent",
100
100
  "client": "👨 Client",
101
101
  "vector": "🛤️ Vector",
102
+ "treasury": "🏦️ Treasury",
102
103
  "security": "🔐 Security",
103
104
  "guard": "💂 Guard",
104
105
  "wall": "🧱 Wall",
@@ -135,7 +136,7 @@
135
136
  "send": "📬 Send",
136
137
  "receive": "📪 Receive",
137
138
  "init": "🟠 Init",
138
- "start": "🟢 Start",
139
+ "start": "🟢 Start",
139
140
  "enter": "🚪 Enter",
140
141
  "done": "🟣 Done",
141
142
  "ready": "⭐️ Ready",
@@ -214,7 +215,7 @@
214
215
  "answer": "💡 Answer",
215
216
  "ask": "📣 Ask",
216
217
  "init": "🟠 Init",
217
- "start": "🟢 Start",
218
+ "start": "🟢 Start",
218
219
  "enter": "🚪 Enter",
219
220
  "finish": "🏁 Finish",
220
221
  "stop": "🔴 Stop",
@@ -243,6 +244,7 @@
243
244
  "agent": "🦾 Agent",
244
245
  "client": "💪 Client",
245
246
  "vector": "🛤️ Vector",
247
+ "treasury": "🪙️ Treasury",
246
248
  "security": "🔐 Security",
247
249
  "guard": "💂 Guard",
248
250
  "defense": "🪖️️ Defense",
package/tests/client.json CHANGED
@@ -39,6 +39,11 @@
39
39
  "global": [],
40
40
  "devas": {}
41
41
  },
42
+ "treasury": {
43
+ "concerns": [],
44
+ "global": [],
45
+ "devas": {}
46
+ },
42
47
  "security": {
43
48
  "hash": "md5",
44
49
  "cipher": {