@indra.ai/deva 1.28.0 → 1.28.2
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/config/actions.json +1 -0
- package/config/beliefs.json +1 -0
- package/config/features.json +1 -0
- package/config/index.js +1 -0
- package/config/intents.json +1 -0
- package/config/states.json +1 -0
- package/config/zones.json +1 -0
- package/index.js +158 -132
- package/package.json +1 -1
- package/tests/client.json +5 -0
package/config/actions.json
CHANGED
package/config/beliefs.json
CHANGED
package/config/features.json
CHANGED
package/config/index.js
CHANGED
package/config/intents.json
CHANGED
package/config/states.json
CHANGED
package/config/zones.json
CHANGED
package/index.js
CHANGED
|
@@ -21,11 +21,17 @@ class Deva {
|
|
|
21
21
|
this._client = {}; // this will be set on init.
|
|
22
22
|
this._active = false; // the active/birth date.
|
|
23
23
|
this._license = false; // inherited License features.
|
|
24
|
+
this._identity = false; // inherited Identity features.
|
|
24
25
|
this._feecting = false; // inherited Feecting features.
|
|
26
|
+
this._security = false; // inherited Security features.
|
|
25
27
|
this._error = false; // inherited Error features.
|
|
26
28
|
this._log = false; // inherited Log features.
|
|
27
29
|
this._data = false; // inherited Data features.
|
|
28
30
|
this._report = false; // inherited Report features.
|
|
31
|
+
this._legal = false; // inherited Legal features.
|
|
32
|
+
this._treasury = false; // inherited Vector features.
|
|
33
|
+
this._authority = false; // inherited Justice features.
|
|
34
|
+
this._justice = false; // inherited Justice features.
|
|
29
35
|
this._veda = false; // inherited Veda features.
|
|
30
36
|
this._indu = false; // inherited INdu features.
|
|
31
37
|
this._indra = false; // inherited Indra features.
|
|
@@ -34,11 +40,6 @@ class Deva {
|
|
|
34
40
|
this._owner = false; // inherited Owner features.
|
|
35
41
|
this._vector = false; // inherited Vector features.
|
|
36
42
|
this._intelligence = false; // inherited Intelligence features.
|
|
37
|
-
this._treasury = false; // inherited Vector features.
|
|
38
|
-
this._authority = false; // inherited Justice features.
|
|
39
|
-
this._justice = false; // inherited Justice features.
|
|
40
|
-
this._legal = false; // inherited Legal features.
|
|
41
|
-
this._security = false; // inherited Security features.
|
|
42
43
|
this._guard = false; // inherited Guard features.
|
|
43
44
|
this._defense = false; // inherited Security features.
|
|
44
45
|
this._wall = false; // inherited Wall features.
|
|
@@ -460,6 +461,17 @@ class Deva {
|
|
|
460
461
|
License(resolve, reject) {
|
|
461
462
|
return this.Feature('license', resolve, reject);
|
|
462
463
|
}
|
|
464
|
+
|
|
465
|
+
/**************
|
|
466
|
+
func: Identity
|
|
467
|
+
params: resolve, reject
|
|
468
|
+
describe:
|
|
469
|
+
The Identity feature sets the correct variables and necessary rules for the
|
|
470
|
+
client presented data.
|
|
471
|
+
***************/
|
|
472
|
+
Identity(resolve, reject) {
|
|
473
|
+
return this.Feature('identity', resolve, reject);
|
|
474
|
+
}
|
|
463
475
|
|
|
464
476
|
/**************
|
|
465
477
|
func: Feecting
|
|
@@ -472,6 +484,17 @@ class Deva {
|
|
|
472
484
|
return this.Feature('feecting', resolve, reject);
|
|
473
485
|
}
|
|
474
486
|
|
|
487
|
+
/**************
|
|
488
|
+
func: Security
|
|
489
|
+
params: resolve, reject
|
|
490
|
+
describe:
|
|
491
|
+
The Security feature sets the correct variables and necessary rules for the
|
|
492
|
+
client presented data.
|
|
493
|
+
***************/
|
|
494
|
+
Security(resolve, reject) {
|
|
495
|
+
return this.Feature('security', resolve, reject);
|
|
496
|
+
}
|
|
497
|
+
|
|
475
498
|
/**************
|
|
476
499
|
func: Error
|
|
477
500
|
params: resolve, reject
|
|
@@ -516,6 +539,50 @@ class Deva {
|
|
|
516
539
|
return this.Feature('report', resolve, reject);
|
|
517
540
|
}
|
|
518
541
|
|
|
542
|
+
/**************
|
|
543
|
+
func: Legal
|
|
544
|
+
params: resolve, reject
|
|
545
|
+
describe:
|
|
546
|
+
The Legal feature sets the correct variables and necessary rules for the
|
|
547
|
+
client presented data.
|
|
548
|
+
***************/
|
|
549
|
+
Legal(resolve, reject) {
|
|
550
|
+
return this.Feature('legal', resolve, reject);
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
/**************
|
|
554
|
+
func: Treasury
|
|
555
|
+
params: resolve, reject
|
|
556
|
+
describe:
|
|
557
|
+
The Treasury feature sets the correct variables and necessary rules for the
|
|
558
|
+
client presented data.
|
|
559
|
+
***************/
|
|
560
|
+
Treasury(resolve, reject) {
|
|
561
|
+
return this.Feature('treasury', resolve, reject);
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/**************
|
|
565
|
+
func: Authority
|
|
566
|
+
params: resolve, reject
|
|
567
|
+
describe:
|
|
568
|
+
The Authority feature sets the correct variables and necessary rules for the
|
|
569
|
+
client presented data.
|
|
570
|
+
***************/
|
|
571
|
+
Authority(resolve, reject) {
|
|
572
|
+
return this.Feature('authority', resolve, reject);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
/**************
|
|
576
|
+
func: Justice
|
|
577
|
+
params: resolve, reject
|
|
578
|
+
describe:
|
|
579
|
+
The Justice feature sets the correct variables and necessary rules for the
|
|
580
|
+
client presented data.
|
|
581
|
+
***************/
|
|
582
|
+
Justice(resolve, reject) {
|
|
583
|
+
return this.Feature('justice', resolve, reject);
|
|
584
|
+
}
|
|
585
|
+
|
|
519
586
|
/**************
|
|
520
587
|
func: Veda
|
|
521
588
|
params: resolve, reject
|
|
@@ -603,62 +670,7 @@ class Deva {
|
|
|
603
670
|
Intelligence(resolve, reject) {
|
|
604
671
|
return this.Feature('intelligence', resolve, reject);
|
|
605
672
|
}
|
|
606
|
-
|
|
607
|
-
/**************
|
|
608
|
-
func: Treasury
|
|
609
|
-
params: resolve, reject
|
|
610
|
-
describe:
|
|
611
|
-
The Treasury feature sets the correct variables and necessary rules for the
|
|
612
|
-
client presented data.
|
|
613
|
-
***************/
|
|
614
|
-
Treasury(resolve, reject) {
|
|
615
|
-
return this.Feature('treasury', resolve, reject);
|
|
616
|
-
}
|
|
617
|
-
|
|
618
|
-
/**************
|
|
619
|
-
func: Justice
|
|
620
|
-
params: resolve, reject
|
|
621
|
-
describe:
|
|
622
|
-
The Justice feature sets the correct variables and necessary rules for the
|
|
623
|
-
client presented data.
|
|
624
|
-
***************/
|
|
625
|
-
Justice(resolve, reject) {
|
|
626
|
-
return this.Feature('justice', resolve, reject);
|
|
627
|
-
}
|
|
628
673
|
|
|
629
|
-
/**************
|
|
630
|
-
func: Authority
|
|
631
|
-
params: resolve, reject
|
|
632
|
-
describe:
|
|
633
|
-
The Authority feature sets the correct variables and necessary rules for the
|
|
634
|
-
client presented data.
|
|
635
|
-
***************/
|
|
636
|
-
Authority(resolve, reject) {
|
|
637
|
-
return this.Feature('authority', resolve, reject);
|
|
638
|
-
}
|
|
639
|
-
|
|
640
|
-
/**************
|
|
641
|
-
func: Legal
|
|
642
|
-
params: resolve, reject
|
|
643
|
-
describe:
|
|
644
|
-
The Legal feature sets the correct variables and necessary rules for the
|
|
645
|
-
client presented data.
|
|
646
|
-
***************/
|
|
647
|
-
Legal(resolve, reject) {
|
|
648
|
-
return this.Feature('legal', resolve, reject);
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
/**************
|
|
652
|
-
func: Security
|
|
653
|
-
params: resolve, reject
|
|
654
|
-
describe:
|
|
655
|
-
The Security feature sets the correct variables and necessary rules for the
|
|
656
|
-
client presented data.
|
|
657
|
-
***************/
|
|
658
|
-
Security(resolve, reject) {
|
|
659
|
-
return this.Feature('security', resolve, reject);
|
|
660
|
-
}
|
|
661
|
-
|
|
662
674
|
/**************
|
|
663
675
|
func: Guard
|
|
664
676
|
params: resolve, reject
|
|
@@ -1238,8 +1250,12 @@ class Deva {
|
|
|
1238
1250
|
return this.Client(client, resolve, reject);
|
|
1239
1251
|
}).then(() => {
|
|
1240
1252
|
return this.License(resolve, reject);
|
|
1253
|
+
}).then(() => {
|
|
1254
|
+
return this.Identity(resolve, reject);
|
|
1241
1255
|
}).then(() => {
|
|
1242
1256
|
return this.Feecting(resolve, reject);
|
|
1257
|
+
}).then(() => {
|
|
1258
|
+
return this.Security(resolve, reject);
|
|
1243
1259
|
}).then(() => {
|
|
1244
1260
|
return this.Error(resolve, reject);
|
|
1245
1261
|
}).then(() => {
|
|
@@ -1248,8 +1264,20 @@ class Deva {
|
|
|
1248
1264
|
return this.Data(resolve, reject);
|
|
1249
1265
|
}).then(() => {
|
|
1250
1266
|
return this.Report(resolve, reject);
|
|
1267
|
+
}).then(() => {
|
|
1268
|
+
return this.Legal(resolve, reject);
|
|
1269
|
+
}).then(() => {
|
|
1270
|
+
return this.Treasury(resolve, reject);
|
|
1271
|
+
}).then(() => {
|
|
1272
|
+
return this.Authority(resolve, reject);
|
|
1273
|
+
}).then(() => {
|
|
1274
|
+
return this.Justice(resolve, reject);
|
|
1275
|
+
}).then(() => {
|
|
1276
|
+
return this.Owner(resolve, reject);
|
|
1251
1277
|
}).then(() => {
|
|
1252
1278
|
return this.Veda(resolve, reject);
|
|
1279
|
+
|
|
1280
|
+
// this is current cut off point
|
|
1253
1281
|
}).then(() => {
|
|
1254
1282
|
return this.Indu(resolve, reject);
|
|
1255
1283
|
}).then(() => {
|
|
@@ -1258,22 +1286,10 @@ class Deva {
|
|
|
1258
1286
|
return this.Soma(resolve, reject);
|
|
1259
1287
|
}).then(() => {
|
|
1260
1288
|
return this.King(resolve, reject);
|
|
1261
|
-
}).then(() => {
|
|
1262
|
-
return this.Owner(resolve, reject);
|
|
1263
1289
|
}).then(() => {
|
|
1264
1290
|
return this.Vector(resolve, reject);
|
|
1265
1291
|
}).then(() => {
|
|
1266
1292
|
return this.Intelligence(resolve, reject);
|
|
1267
|
-
}).then(() => {
|
|
1268
|
-
return this.Treasury(resolve, reject);
|
|
1269
|
-
}).then(() => {
|
|
1270
|
-
return this.Justice(resolve, reject);
|
|
1271
|
-
}).then(() => {
|
|
1272
|
-
return this.Authority(resolve, reject);
|
|
1273
|
-
}).then(() => {
|
|
1274
|
-
return this.Legal(resolve, reject);
|
|
1275
|
-
}).then(() => {
|
|
1276
|
-
return this.Security(resolve, reject);
|
|
1277
1293
|
}).then(() => {
|
|
1278
1294
|
return this.Guard(resolve, reject);
|
|
1279
1295
|
}).then(() => {
|
|
@@ -1835,6 +1851,16 @@ class Deva {
|
|
|
1835
1851
|
return this._getFeature('license', this._license);
|
|
1836
1852
|
}
|
|
1837
1853
|
|
|
1854
|
+
/**************
|
|
1855
|
+
func: identity
|
|
1856
|
+
params: none
|
|
1857
|
+
describe: basic identity features available in a Deva.
|
|
1858
|
+
usage: this.identity()
|
|
1859
|
+
***************/
|
|
1860
|
+
identity() {
|
|
1861
|
+
return this._getFeature('identity', this._identity);
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1838
1864
|
/**************
|
|
1839
1865
|
func: feecting
|
|
1840
1866
|
params: none
|
|
@@ -1845,6 +1871,16 @@ class Deva {
|
|
|
1845
1871
|
return this._getFeature('feecting', this._feecting);
|
|
1846
1872
|
}
|
|
1847
1873
|
|
|
1874
|
+
/**************
|
|
1875
|
+
func: security
|
|
1876
|
+
params: none
|
|
1877
|
+
describe: basic security features available in a Deva.
|
|
1878
|
+
usage: this.security()
|
|
1879
|
+
***************/
|
|
1880
|
+
security() {
|
|
1881
|
+
return this._getFeature('security', this._security);
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1848
1884
|
/**************
|
|
1849
1885
|
func: error
|
|
1850
1886
|
params: none
|
|
@@ -1884,7 +1920,57 @@ class Deva {
|
|
|
1884
1920
|
report() {
|
|
1885
1921
|
return this._getFeature('report', this._error);
|
|
1886
1922
|
}
|
|
1923
|
+
|
|
1924
|
+
/**************
|
|
1925
|
+
func: legal
|
|
1926
|
+
params: none
|
|
1927
|
+
describe: basic legal features available in a Deva.
|
|
1928
|
+
usage: this.systems()
|
|
1929
|
+
***************/
|
|
1930
|
+
legal() {
|
|
1931
|
+
return this._getFeature('legal', this._legal);
|
|
1932
|
+
}
|
|
1933
|
+
|
|
1934
|
+
/**************
|
|
1935
|
+
func: treasury
|
|
1936
|
+
params: none
|
|
1937
|
+
describe: basic treasury features available in a Deva.
|
|
1938
|
+
usage: this.treasury()
|
|
1939
|
+
***************/
|
|
1940
|
+
treasury() {
|
|
1941
|
+
return this._getFeature('treasury', this._treasury);
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
/**************
|
|
1945
|
+
func: authority
|
|
1946
|
+
params: none
|
|
1947
|
+
describe: basic authority features available in a Deva.
|
|
1948
|
+
usage: this.systems()
|
|
1949
|
+
***************/
|
|
1950
|
+
authority() {
|
|
1951
|
+
return this._getFeature('authority', this._authority);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
/**************
|
|
1955
|
+
func: justice
|
|
1956
|
+
params: none
|
|
1957
|
+
describe: basic justice features available in a Deva.
|
|
1958
|
+
usage: this.systems()
|
|
1959
|
+
***************/
|
|
1960
|
+
justice() {
|
|
1961
|
+
return this._getFeature('justice', this._justice);
|
|
1962
|
+
}
|
|
1887
1963
|
|
|
1964
|
+
/**************
|
|
1965
|
+
func: owner
|
|
1966
|
+
params: none
|
|
1967
|
+
describe: basic owner features available in a Deva.
|
|
1968
|
+
usage: this.owner()
|
|
1969
|
+
***************/
|
|
1970
|
+
owner() {
|
|
1971
|
+
return this._getFeature('owner', this._owner);
|
|
1972
|
+
}
|
|
1973
|
+
|
|
1888
1974
|
/**************
|
|
1889
1975
|
func: veda
|
|
1890
1976
|
params: none
|
|
@@ -1935,16 +2021,6 @@ class Deva {
|
|
|
1935
2021
|
return this._getFeature('king', this._king);
|
|
1936
2022
|
}
|
|
1937
2023
|
|
|
1938
|
-
/**************
|
|
1939
|
-
func: owner
|
|
1940
|
-
params: none
|
|
1941
|
-
describe: basic owner features available in a Deva.
|
|
1942
|
-
usage: this.owner()
|
|
1943
|
-
***************/
|
|
1944
|
-
owner() {
|
|
1945
|
-
return this._getFeature('owner', this._owner);
|
|
1946
|
-
}
|
|
1947
|
-
|
|
1948
2024
|
/**************
|
|
1949
2025
|
func: vector
|
|
1950
2026
|
params: none
|
|
@@ -1964,57 +2040,7 @@ class Deva {
|
|
|
1964
2040
|
intelligence() {
|
|
1965
2041
|
return this._getFeature('intelligence', this._intelligence);
|
|
1966
2042
|
}
|
|
1967
|
-
|
|
1968
|
-
/**************
|
|
1969
|
-
func: treasury
|
|
1970
|
-
params: none
|
|
1971
|
-
describe: basic treasury features available in a Deva.
|
|
1972
|
-
usage: this.treasury()
|
|
1973
|
-
***************/
|
|
1974
|
-
treasury() {
|
|
1975
|
-
return this._getFeature('treasury', this._treasury);
|
|
1976
|
-
}
|
|
1977
|
-
|
|
1978
|
-
/**************
|
|
1979
|
-
func: justice
|
|
1980
|
-
params: none
|
|
1981
|
-
describe: basic justice features available in a Deva.
|
|
1982
|
-
usage: this.systems()
|
|
1983
|
-
***************/
|
|
1984
|
-
justice() {
|
|
1985
|
-
return this._getFeature('justice', this._justice);
|
|
1986
|
-
}
|
|
1987
|
-
|
|
1988
|
-
/**************
|
|
1989
|
-
func: authority
|
|
1990
|
-
params: none
|
|
1991
|
-
describe: basic authority features available in a Deva.
|
|
1992
|
-
usage: this.systems()
|
|
1993
|
-
***************/
|
|
1994
|
-
authority() {
|
|
1995
|
-
return this._getFeature('authority', this._authority);
|
|
1996
|
-
}
|
|
1997
|
-
|
|
1998
|
-
/**************
|
|
1999
|
-
func: legal
|
|
2000
|
-
params: none
|
|
2001
|
-
describe: basic legal features available in a Deva.
|
|
2002
|
-
usage: this.systems()
|
|
2003
|
-
***************/
|
|
2004
|
-
legal() {
|
|
2005
|
-
return this._getFeature('legal', this._legal);
|
|
2006
|
-
}
|
|
2007
2043
|
|
|
2008
|
-
/**************
|
|
2009
|
-
func: security
|
|
2010
|
-
params: none
|
|
2011
|
-
describe: basic security features available in a Deva.
|
|
2012
|
-
usage: this.security()
|
|
2013
|
-
***************/
|
|
2014
|
-
security() {
|
|
2015
|
-
return this._getFeature('security', this._security);
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
2044
|
/**************
|
|
2019
2045
|
func: guard
|
|
2020
2046
|
params: none
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "38159520729793885324",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.28.
|
|
4
|
+
"version": "1.28.2",
|
|
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",
|