@indra.ai/deva 1.6.6 β†’ 1.6.7

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
@@ -29,13 +29,13 @@ class Deva {
29
29
  this._agent = opts.agent || false; // Agent profile object
30
30
  this._client = {}; // this will be set on init.
31
31
  this._active = false; // the active/birth date.
32
+ this._indra = false; // inherited Indra features.
32
33
  this._veda = false; // inherited Veda features.
33
34
  this._data = false; // inherited Data features.
34
35
  this._error = false; // inherited Error features.
35
36
  this._log = false; // inherited Log features.
36
37
  this._report = false; // inherited Report features.
37
38
  this._vector = false; // inherited Vector features.
38
- this._god = false; // inherited God features.
39
39
  this._king = false; // inherited King features.
40
40
  this._treasury = false; // inherited Vector features.
41
41
  this._security = false; // inherited Security features.
@@ -229,6 +229,8 @@ class Deva {
229
229
  if (!this._active) return this._messages.offline; // check the active status
230
230
  this.zone(key);
231
231
  this.feature(key); // set the security state
232
+ this.action(key);
233
+ this.state(key);
232
234
  try {
233
235
  const data = this.lib.copy(value);
234
236
  this.state('return', key); // set the security state
@@ -294,7 +296,7 @@ class Deva {
294
296
  const _fe = `_${feature}`;
295
297
  const {id, profile, features} = _cl; // make a copy the clinet data.
296
298
  const data = features[feature]; // make a copy the clinet data.
297
- this.state('set', `${feature}:${_id.uid}`);
299
+ this.state(feature, _id.uid);
298
300
  this[_fe] = { // set this feature with data
299
301
  id: _id, // uid of the feature
300
302
  client_id: id, // client id for reference
@@ -314,6 +316,18 @@ class Deva {
314
316
  }
315
317
  }
316
318
 
319
+
320
+ /**************
321
+ func: Indra
322
+ params: resolve, reject
323
+ describe:
324
+ The Indra feature sets the correct variables and necessary rules for the
325
+ client presented data.
326
+ ***************/
327
+ Indra(resolve, reject) {
328
+ return this.Feature('indra', resolve, reject);
329
+ }
330
+
317
331
  /**************
318
332
  func: Veda
319
333
  params: resolve, reject
@@ -380,17 +394,6 @@ class Deva {
380
394
  return this.Feature('vector', resolve, reject);
381
395
  }
382
396
 
383
- /**************
384
- func: God
385
- params: resolve, reject
386
- describe:
387
- The God feature sets the correct variables and necessary rules for the
388
- client presented data.
389
- ***************/
390
- God(resolve, reject) {
391
- return this.Feature('god', resolve, reject);
392
- }
393
-
394
397
  /**************
395
398
  func: King
396
399
  params: resolve, reject
@@ -931,6 +934,8 @@ class Deva {
931
934
  this.action('init');
932
935
  this.state('init');
933
936
  return this.Client(client, resolve, reject);
937
+ }).then(() => {
938
+ return this.Indra(resolve, reject);
934
939
  }).then(() => {
935
940
  return this.Veda(resolve, reject);
936
941
  }).then(() => {
@@ -943,8 +948,6 @@ class Deva {
943
948
  return this.Report(resolve, reject);
944
949
  }).then(() => {
945
950
  return this.Vector(resolve, reject);
946
- }).then(() => {
947
- return this.God(resolve, reject);
948
951
  }).then(() => {
949
952
  return this.King(resolve, reject);
950
953
  }).then(() => {
@@ -1625,6 +1628,18 @@ class Deva {
1625
1628
  }
1626
1629
 
1627
1630
  // FEATURE FUNCTIONS
1631
+
1632
+ /**************
1633
+ func: indra
1634
+ params: none
1635
+ describe: basic indra features available in a Deva.
1636
+ usage: this.indra()
1637
+ ***************/
1638
+ indra() {
1639
+ return this._getFeature('indra', this._indra);
1640
+ }
1641
+
1642
+
1628
1643
  /**************
1629
1644
  func: veda
1630
1645
  params: none
@@ -1687,16 +1702,6 @@ class Deva {
1687
1702
  }
1688
1703
 
1689
1704
 
1690
- /**************
1691
- func: god
1692
- params: none
1693
- describe: basic god features available in a Deva.
1694
- usage: this.god()
1695
- ***************/
1696
- god() {
1697
- return this._getFeature('god', this._god);
1698
- }
1699
-
1700
1705
  /**************
1701
1706
  func: king
1702
1707
  params: none
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "55286864875635314522",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.6.6",
4
+ "version": "1.6.7",
5
5
  "description": "The Deva Core",
6
6
  "main": "index.js",
7
7
  "copyright": "(c)2025 Quinn A Michaels; All rights reserved.",
@@ -118,7 +118,7 @@
118
118
  "log": "πŸͺ΅ Log",
119
119
  "report": "πŸ—‚οΈ Report",
120
120
  "vector": "πŸ‘½οΈ Vector",
121
- "god": "πŸ’« God",
121
+ "indra": "πŸ’« Indra",
122
122
  "king": "πŸ‘‘οΈ King",
123
123
  "owner": "🐲️ Owner",
124
124
  "treasury": "🏦️ Treasury",
@@ -174,11 +174,10 @@
174
174
  "unload": "πŸ›» Unload",
175
175
  "resolve": "🀝 Resolve",
176
176
  "reject": "🧱 Reject",
177
- "data": "πŸ“‘ Data",
178
177
  "create": "🎨 Create",
179
178
  "destroy": "πŸ’£ Destroy",
180
179
  "write": "πŸ“ Write",
181
- "save": "πŸ’Ύ Save",
180
+ "save": "πŸ“€ Save",
182
181
  "set": "πŸ–– Set",
183
182
  "get": "🫴 Get",
184
183
  "put": "🀝 Put",
@@ -190,7 +189,6 @@
190
189
  "invalid": "πŸ‘Ž INVALID!",
191
190
  "valid": "πŸ‘ VALID!",
192
191
  "abort": "πŸ’” ABORT!",
193
- "error": "❌ ERROR!",
194
192
  "help": "πŸ’™ Help",
195
193
  "authorized": "πŸ”‘ Authorized",
196
194
  "unauthorized": "πŸ΄β€β˜ οΈ Unauthorized",
@@ -213,19 +211,42 @@
213
211
  "update": "πŸ‘† Update",
214
212
  "delete": "πŸ—‘οΈ Delete",
215
213
  "return": "🀿 Return",
216
- "hash": "#️⃣ Hash"
214
+ "hash": "#️⃣ Hash",
215
+ "indra": "πŸ’« Indra",
216
+ "veda": "πŸ•‰οΈ Veda",
217
+ "data": "πŸ’Ύ Data",
218
+ "error": "❌ Error",
219
+ "log": "πŸͺ΅ Log",
220
+ "report": "πŸ—‚οΈ Report",
221
+ "vector": "πŸ‘½ Vector",
222
+ "king": "πŸ‘‘οΈ King",
223
+ "owner": "🐲️ Owner",
224
+ "treasury": "🏦 Treasury",
225
+ "security": "🚨 Security",
226
+ "guard": "πŸ’‚ Guard",
227
+ "defense": "πŸͺ– Defense",
228
+ "wall": "🧱 Wall",
229
+ "shield": "πŸ›‘οΈ Shield",
230
+ "proxy": "πŸ‘ΎοΈ Proxy",
231
+ "legal": "πŸ›οΈ Legal",
232
+ "authority": "πŸš” Authority",
233
+ "justice": "βš–οΈ Justice",
234
+ "support": "πŸ’Ό Support",
235
+ "services": "πŸ› οΈ Services",
236
+ "systems": "πŸ–₯️ Systems",
237
+ "networks": "πŸ“‘ Networks"
217
238
  },
218
239
  "action": false,
219
240
  "actions": {
220
241
  "client": "πŸ‘¨ Client",
221
242
  "agent": "πŸ•΅οΈβ€β™‚οΈ Agent",
243
+ "indra": "πŸ’« Indra",
222
244
  "veda": "πŸ•‰οΈ Veda",
223
245
  "data": "πŸ’Ύ Data",
224
246
  "error": "❌ Error",
225
247
  "log": "πŸͺ΅ Log",
226
248
  "report": "πŸ—‚οΈ Report",
227
249
  "vector": "πŸ‘½ Vector",
228
- "god": "πŸ’« God",
229
250
  "king": "πŸ‘‘οΈ King",
230
251
  "owner": "🐲️ Owner",
231
252
  "treasury": "🏦 Treasury",
@@ -277,13 +298,13 @@
277
298
  "init": "🟠 Init",
278
299
  "agent": "🦾 Agent",
279
300
  "client": "πŸ’ͺ Client",
301
+ "indra": "πŸ’« Indra",
280
302
  "veda": "πŸ•‰οΈ Veda",
281
303
  "data": "πŸ’ΎοΈ Data",
282
304
  "error": "❌️ Error",
283
305
  "log": "πŸͺ΅οΈ Log",
284
306
  "report": "πŸ—‚οΈ Report",
285
307
  "vector": "πŸ‘½οΈ Vector",
286
- "god": "πŸ’« God",
287
308
  "king": "πŸ‘‘οΈ King",
288
309
  "owner": "🐲️ Owner",
289
310
  "treasury": "🏦 Treasury",
package/tests/client.json CHANGED
@@ -34,6 +34,11 @@
34
34
  "currency": "USD"
35
35
  },
36
36
  "features": {
37
+ "indra": {
38
+ "concerns": [],
39
+ "global": [],
40
+ "devas": {}
41
+ },
37
42
  "veda": {
38
43
  "concerns": [],
39
44
  "global": [],
@@ -64,11 +69,6 @@
64
69
  "global": [],
65
70
  "devas": {}
66
71
  },
67
- "god": {
68
- "concerns": [],
69
- "global": [],
70
- "devas": {}
71
- },
72
72
  "king": {
73
73
  "concerns": [],
74
74
  "global": [],