@indra.ai/deva 1.5.52 → 1.5.53

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
@@ -297,7 +297,18 @@ class Deva {
297
297
 
298
298
  /**************
299
299
  func: Vector
300
- params: client: false
300
+ params: resolve, reject
301
+ describe:
302
+ The Veda feature sets the correct variables and necessary rules for the
303
+ client presented data.
304
+ ***************/
305
+ Veda(resolve, reject) {
306
+ return this.Feature('veda', resolve, reject);
307
+ }
308
+
309
+ /**************
310
+ func: Vector
311
+ params: resolve, reject
301
312
  describe:
302
313
  The Vector feature sets the correct variables and necessary rules for the
303
314
  client presented data.
@@ -308,7 +319,7 @@ class Deva {
308
319
 
309
320
  /**************
310
321
  func: Treasury
311
- params: client: false
322
+ params: resolve, reject
312
323
  describe:
313
324
  The Treasury feature sets the correct variables and necessary rules for the
314
325
  client presented data.
@@ -319,7 +330,7 @@ class Deva {
319
330
 
320
331
  /**************
321
332
  func: Security
322
- params: client: false
333
+ params: resolve, reject
323
334
  describe:
324
335
  The Security feature sets the correct variables and necessary rules for the
325
336
  client presented data.
@@ -330,7 +341,7 @@ class Deva {
330
341
 
331
342
  /**************
332
343
  func: Guard
333
- params: client: false
344
+ params: resolve, reject
334
345
  describe:
335
346
  The Guard feature sets the correct variables and necessary rules for the
336
347
  client presented data.
@@ -341,7 +352,7 @@ class Deva {
341
352
 
342
353
  /**************
343
354
  func: Defense
344
- params: client: false
355
+ params: resolve, reject
345
356
  describe:
346
357
  The Defense feature sets the correct variables and necessary rules for the
347
358
  client presented data.
@@ -352,7 +363,7 @@ class Deva {
352
363
 
353
364
  /**************
354
365
  func: Wall
355
- params: client: false
366
+ params: resolve, reject
356
367
  describe:
357
368
  The Defense feature sets the correct variables and necessary rules for the
358
369
  client presented data.
@@ -363,7 +374,7 @@ class Deva {
363
374
 
364
375
  /**************
365
376
  func: Shield
366
- params: client: false
377
+ params: resolve, reject
367
378
  describe:
368
379
  The Shield feature sets the correct variables and necessary rules for the
369
380
  client presented data.
@@ -374,7 +385,7 @@ class Deva {
374
385
 
375
386
  /**************
376
387
  func: Proxy
377
- params: client: false
388
+ params: resolve, reject
378
389
  describe:
379
390
  The Defense feature sets the correct variables and necessary rules for the
380
391
  client presented data.
@@ -385,7 +396,7 @@ class Deva {
385
396
 
386
397
  /**************
387
398
  func: Legal
388
- params: client: false
399
+ params: resolve, reject
389
400
  describe:
390
401
  The Legal feature sets the correct variables and necessary rules for the
391
402
  client presented data.
@@ -396,7 +407,7 @@ class Deva {
396
407
 
397
408
  /**************
398
409
  func: Justice
399
- params: client: false
410
+ params: resolve, reject
400
411
  describe:
401
412
  The Justice feature sets the correct variables and necessary rules for the
402
413
  client presented data.
@@ -407,7 +418,7 @@ class Deva {
407
418
 
408
419
  /**************
409
420
  func: Authority
410
- params: client: false
421
+ params: resolve, reject
411
422
  describe:
412
423
  The Authority feature sets the correct variables and necessary rules for the
413
424
  client presented data.
@@ -418,7 +429,7 @@ class Deva {
418
429
 
419
430
  /**************
420
431
  func: Support
421
- params: client: false
432
+ params: resolve, reject
422
433
  describe:
423
434
  The Support feature sets the correct variables and necessary rules for the
424
435
  client presented data.
@@ -429,7 +440,7 @@ class Deva {
429
440
 
430
441
  /**************
431
442
  func: Services
432
- params: client: false
443
+ params: resolve, reject
433
444
  describe:
434
445
  The Services feature sets the correct variables and necessary rules for the
435
446
  client presented data.
@@ -824,6 +835,8 @@ class Deva {
824
835
  this.action('init');
825
836
  this.state('init');
826
837
  return this.Client(client, resolve, reject);
838
+ }).then(() => {
839
+ return this.Veda(resolve, reject);
827
840
  }).then(() => {
828
841
  return this.Vector(resolve, reject);
829
842
  }).then(() => {
@@ -1492,6 +1505,16 @@ class Deva {
1492
1505
  }
1493
1506
 
1494
1507
  // FEATURE FUNCTIONS
1508
+ /**************
1509
+ func: veda
1510
+ params: none
1511
+ describe: basic veda features available in a Deva.
1512
+ usage: this.veda()
1513
+ ***************/
1514
+ veda() {
1515
+ return this._getFeature('veda', this._vector);
1516
+ }
1517
+
1495
1518
  /**************
1496
1519
  func: vector
1497
1520
  params: none
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
+ "id": "9f0bc743-d720-4320-832e-cf5edc3b7cf",
2
3
  "name": "@indra.ai/deva",
3
- "version": "1.5.52",
4
+ "version": "1.5.53",
4
5
  "description": "The Deva Core",
5
6
  "main": "index.js",
6
7
  "copyright": "(c)2025 Quinn Michaels; All rights reserved.",
@@ -23,8 +24,8 @@
23
24
  "license": "Unlicense",
24
25
  "author": {
25
26
  "name": "Quinn Michaels",
26
- "email": "quinn@quinnmichaels.com",
27
- "url": "https://quinnmichaels.com/"
27
+ "email": "quinn@indra.ai",
28
+ "url": "https://indra.ai/"
28
29
  },
29
30
  "funding": [
30
31
  {
@@ -39,7 +40,7 @@
39
40
  "bugs": {
40
41
  "url": "https://github.com/indraai/deva/issues"
41
42
  },
42
- "homepage": "https://deva.world",
43
+ "homepage": "https://indra.ai",
43
44
  "eslintConfig": {
44
45
  "parserOptions": {
45
46
  "ecmaVersion": 6
@@ -98,20 +99,22 @@
98
99
  "deva": "⚡️ Deva",
99
100
  "agent": "🤖 Agent",
100
101
  "client": "👨 Client",
102
+ "veda": "🕉️ Veda",
101
103
  "vector": "🛤️ Vector",
102
104
  "treasury": "🏦️ Treasury",
103
- "security": "🔐 Security",
105
+ "security": "🚨 Security",
104
106
  "guard": "💂 Guard",
105
107
  "wall": "🧱 Wall",
108
+ "shield": "🛡️ Shield",
106
109
  "defense": "🪖 Defense",
107
- "proxy": "🔗 Proxy",
110
+ "proxy": "👾️ Proxy",
108
111
  "legal": "🏛️ Legal",
109
112
  "authority": "🚔 Authority",
110
113
  "justice": "⚖️ Justice",
111
- "support": "🚑 Support",
112
- "services": "🚚 Services",
113
- "systems": "🚛 Systems",
114
- "networks": "🛰️ Networks",
114
+ "support": "💼 Support",
115
+ "services": "🛠️ Services",
116
+ "systems": "🖥️️ Systems",
117
+ "networks": "📡 Networks",
115
118
  "help": "💚 Help",
116
119
  "error": "❌ Error!"
117
120
  },
@@ -197,16 +200,22 @@
197
200
  "actions": {
198
201
  "client": "👨 Client",
199
202
  "agent": "🕵️‍♂️ Agent",
200
- "security": "🔐 Security",
203
+ "veda": "🕉️ Veda",
204
+ "vector": "👽 Vector",
205
+ "security": "🚨 Security",
201
206
  "guard": "💂 Guard",
207
+ "shield": "🛡️ Shield",
208
+ "wall": "🧱 Wall",
209
+ "proxy": "👾️ Proxy",
202
210
  "defense": "🪖 Defense",
203
- "support": "🩹 Support",
211
+ "support": "💼 Support",
204
212
  "services": "🛠️ Services",
205
213
  "systems": "🖥️ Systems",
206
214
  "networks": "📡 Networks",
207
- "legal": "🗃️ Legal",
208
- "justice": "🗄️ Justice",
209
- "authority": "👮 Authority",
215
+ "legal": "🏛️ Legal",
216
+ "justice": "⚖️ Justice",
217
+ "authority": "🚔 Authority",
218
+ "treasury": "🏦 Treasury",
210
219
  "talk": "📢 Talk",
211
220
  "listen": "👂 Listen",
212
221
  "once": "👂 Once",
@@ -243,21 +252,22 @@
243
252
  "init": "🟠 Init",
244
253
  "agent": "🦾 Agent",
245
254
  "client": "💪 Client",
255
+ "veda": "🕉️ Veda",
246
256
  "vector": "🛤️ Vector",
247
- "treasury": "🪙️ Treasury",
248
- "security": "🔐 Security",
257
+ "treasury": "🏦 Treasury",
258
+ "security": "🚨 Security",
249
259
  "guard": "💂 Guard",
250
260
  "defense": "🪖️️ Defense",
251
261
  "wall": "🧱 Wall",
252
262
  "shield": "🛡️ Shield",
253
- "proxy": "🤝 Proxy",
254
- "legal": "🗂️️️ Legal",
255
- "authority": "🚓️️ Authority",
256
- "justice": "🏛️️ Justice",
263
+ "proxy": "👾️ Proxy",
264
+ "legal": "🏛️ Legal",
265
+ "authority": "🚔 Authority",
266
+ "justice": "⚖️ Justice",
257
267
  "support": "💼 Support",
258
268
  "services": "🛠️ Services",
259
269
  "systems": "🖥️️ Systems",
260
- "networks": "🛜️️ Networks"
270
+ "networks": "📡 Networks"
261
271
  },
262
272
  "message": "offline",
263
273
  "messages": {
package/tests/client.json CHANGED
@@ -34,6 +34,11 @@
34
34
  "currency": "USD"
35
35
  },
36
36
  "features": {
37
+ "veda": {
38
+ "concerns": [],
39
+ "global": [],
40
+ "devas": {}
41
+ },
37
42
  "vector": {
38
43
  "concerns": [],
39
44
  "global": [],
package/tests/index.js CHANGED
@@ -8,23 +8,25 @@ import Agent from './agent.json' with {type:'json'};
8
8
  const agent = Agent.DATA;
9
9
 
10
10
  import Deva from '../index.js';
11
+ import pkg from '../package.json' with {type:'json'};
11
12
 
12
13
  import {dirname} from 'node:path';
13
14
  import {fileURLToPath} from 'node:url';
14
15
  const __dirname = dirname(fileURLToPath(import.meta.url));
15
16
 
16
17
  const info = {
17
- id: '00000',
18
- name: 'Deva Core Test',
19
- describe: 'Deva Core Test Package',
20
- version: '0.0.0',
18
+ id: pkg.id,
19
+ name: pkg.name,
20
+ describe: pkg.description,
21
+ version: pkg.version,
22
+ author: pkg.author.name,
23
+ email: pkg.author.email,
24
+ url: pkg.authorurl,
25
+ copyright: pkg.copyright,
21
26
  dir: __dirname,
22
- url: 'https://deva.world/test',
23
- git: 'git+https://github.com/indraai/deva.git',
24
- bugs: 'git+https://github.com/indraai/deva.git#bugs',
25
- author: 'Quinn Michaels',
27
+ git: pkg.repository.url,
28
+ bugs: pkg.bugs.url,
26
29
  license: 'TESTING ONLY',
27
- copyright: 2025,
28
30
  };
29
31
 
30
32
  const DevaTest = new Deva({