@indra.ai/deva 1.29.33 → 1.30.0
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 +2 -0
- package/config/beliefs.json +2 -0
- package/config/features.json +2 -0
- package/config/intents.json +2 -0
- package/config/states.json +2 -0
- package/config/zones.json +2 -0
- package/index.js +96 -47
- package/package.json +1 -1
- package/tests/client.json +14 -20
package/config/actions.json
CHANGED
package/config/beliefs.json
CHANGED
package/config/features.json
CHANGED
package/config/intents.json
CHANGED
package/config/states.json
CHANGED
package/config/zones.json
CHANGED
package/index.js
CHANGED
|
@@ -23,12 +23,14 @@ class Deva {
|
|
|
23
23
|
this._license = false; // inherited License features.
|
|
24
24
|
this._identity = false; // inherited Identity features.
|
|
25
25
|
this._feecting = false; // inherited Feecting features.
|
|
26
|
-
this._security = false; // inherited Security features.
|
|
27
|
-
this._medical = false; // inherited Medical features.
|
|
28
|
-
this._communication = false; // inherited Communication features.
|
|
29
26
|
this._error = false; // inherited Error features.
|
|
30
27
|
this._log = false; // inherited Log features.
|
|
31
28
|
this._data = false; // inherited Data features.
|
|
29
|
+
this._security = false; // inherited Security features.
|
|
30
|
+
this._medical = false; // inherited Medical features.
|
|
31
|
+
this._communication = false; // inherited Communication features.
|
|
32
|
+
this._automation = false; // inherited Automation features.
|
|
33
|
+
this._simulation = false; // inherited Automation features.
|
|
32
34
|
this._report = false; // inherited Report features.
|
|
33
35
|
this._legal = false; // inherited Legal features.
|
|
34
36
|
this._treasury = false; // inherited Vector features.
|
|
@@ -481,6 +483,39 @@ class Deva {
|
|
|
481
483
|
return this.Feature('feecting', resolve, reject);
|
|
482
484
|
}
|
|
483
485
|
|
|
486
|
+
/**************
|
|
487
|
+
func: Error
|
|
488
|
+
params: resolve, reject
|
|
489
|
+
describe:
|
|
490
|
+
The Error feature sets the correct variables and necessary rules for the
|
|
491
|
+
client presented data.
|
|
492
|
+
***************/
|
|
493
|
+
Error(resolve, reject) {
|
|
494
|
+
return this.Feature('error', resolve, reject);
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**************
|
|
498
|
+
func: Log
|
|
499
|
+
params: resolve, reject
|
|
500
|
+
describe:
|
|
501
|
+
The Log feature sets the correct variables and necessary rules for the
|
|
502
|
+
client presented data.
|
|
503
|
+
***************/
|
|
504
|
+
Log(resolve, reject) {
|
|
505
|
+
return this.Feature('log', resolve, reject);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**************
|
|
509
|
+
func: Data
|
|
510
|
+
params: resolve, reject
|
|
511
|
+
describe:
|
|
512
|
+
The Data feature sets the correct variables and necessary rules for the
|
|
513
|
+
client presented data.
|
|
514
|
+
***************/
|
|
515
|
+
Data(resolve, reject) {
|
|
516
|
+
return this.Feature('data', resolve, reject);
|
|
517
|
+
}
|
|
518
|
+
|
|
484
519
|
/**************
|
|
485
520
|
func: Security
|
|
486
521
|
params: resolve, reject
|
|
@@ -515,36 +550,25 @@ class Deva {
|
|
|
515
550
|
}
|
|
516
551
|
|
|
517
552
|
/**************
|
|
518
|
-
func:
|
|
519
|
-
params: resolve, reject
|
|
520
|
-
describe:
|
|
521
|
-
The Error feature sets the correct variables and necessary rules for the
|
|
522
|
-
client presented data.
|
|
523
|
-
***************/
|
|
524
|
-
Error(resolve, reject) {
|
|
525
|
-
return this.Feature('error', resolve, reject);
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
/**************
|
|
529
|
-
func: Log
|
|
553
|
+
func: Automation
|
|
530
554
|
params: resolve, reject
|
|
531
555
|
describe:
|
|
532
|
-
The
|
|
556
|
+
The Automation feature sets the correct variables and necessary rules for the
|
|
533
557
|
client presented data.
|
|
534
558
|
***************/
|
|
535
|
-
|
|
536
|
-
return this.Feature('
|
|
559
|
+
Automation(resolve, reject) {
|
|
560
|
+
return this.Feature('automation', resolve, reject);
|
|
537
561
|
}
|
|
538
|
-
|
|
562
|
+
|
|
539
563
|
/**************
|
|
540
|
-
func:
|
|
564
|
+
func: Simulation
|
|
541
565
|
params: resolve, reject
|
|
542
566
|
describe:
|
|
543
|
-
The
|
|
567
|
+
The Simulation feature sets the correct variables and necessary rules for the
|
|
544
568
|
client presented data.
|
|
545
569
|
***************/
|
|
546
|
-
|
|
547
|
-
return this.Feature('
|
|
570
|
+
Simulation(resolve, reject) {
|
|
571
|
+
return this.Feature('simulation', resolve, reject);
|
|
548
572
|
}
|
|
549
573
|
|
|
550
574
|
/**************
|
|
@@ -1273,6 +1297,12 @@ class Deva {
|
|
|
1273
1297
|
return this.Identity(resolve, reject);
|
|
1274
1298
|
}).then(() => {
|
|
1275
1299
|
return this.Feecting(resolve, reject);
|
|
1300
|
+
}).then(() => {
|
|
1301
|
+
return this.Error(resolve, reject);
|
|
1302
|
+
}).then(() => {
|
|
1303
|
+
return this.Log(resolve, reject);
|
|
1304
|
+
}).then(() => {
|
|
1305
|
+
return this.Data(resolve, reject);
|
|
1276
1306
|
}).then(() => {
|
|
1277
1307
|
return this.Security(resolve, reject);
|
|
1278
1308
|
}).then(() => {
|
|
@@ -1280,11 +1310,9 @@ class Deva {
|
|
|
1280
1310
|
}).then(() => {
|
|
1281
1311
|
return this.Communication(resolve, reject);
|
|
1282
1312
|
}).then(() => {
|
|
1283
|
-
return this.
|
|
1313
|
+
return this.Automation(resolve, reject);
|
|
1284
1314
|
}).then(() => {
|
|
1285
|
-
return this.
|
|
1286
|
-
}).then(() => {
|
|
1287
|
-
return this.Data(resolve, reject);
|
|
1315
|
+
return this.Simulation(resolve, reject);
|
|
1288
1316
|
}).then(() => {
|
|
1289
1317
|
return this.Report(resolve, reject);
|
|
1290
1318
|
}).then(() => {
|
|
@@ -1903,6 +1931,36 @@ class Deva {
|
|
|
1903
1931
|
return this._getFeature('feecting', this._feecting);
|
|
1904
1932
|
}
|
|
1905
1933
|
|
|
1934
|
+
/**************
|
|
1935
|
+
func: error
|
|
1936
|
+
params: none
|
|
1937
|
+
describe: basic error features available in a Deva.
|
|
1938
|
+
usage: this.error()
|
|
1939
|
+
***************/
|
|
1940
|
+
error() {
|
|
1941
|
+
return this._getFeature('error', this._error);
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
/**************
|
|
1945
|
+
func: log
|
|
1946
|
+
params: none
|
|
1947
|
+
describe: basic log features available in a Deva.
|
|
1948
|
+
usage: this.log()
|
|
1949
|
+
***************/
|
|
1950
|
+
log() {
|
|
1951
|
+
return this._getFeature('log', this._error);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
/**************
|
|
1955
|
+
func: data
|
|
1956
|
+
params: none
|
|
1957
|
+
describe: basic data features available in a Deva.
|
|
1958
|
+
usage: this.data()
|
|
1959
|
+
***************/
|
|
1960
|
+
data() {
|
|
1961
|
+
return this._getFeature('data', this._data);
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1906
1964
|
/**************
|
|
1907
1965
|
func: security
|
|
1908
1966
|
params: none
|
|
@@ -1921,6 +1979,7 @@ class Deva {
|
|
|
1921
1979
|
medical() {
|
|
1922
1980
|
return this._getFeature('medical', this._medical);
|
|
1923
1981
|
}
|
|
1982
|
+
|
|
1924
1983
|
/**************
|
|
1925
1984
|
func: communication
|
|
1926
1985
|
params: none
|
|
@@ -1932,33 +1991,23 @@ class Deva {
|
|
|
1932
1991
|
}
|
|
1933
1992
|
|
|
1934
1993
|
/**************
|
|
1935
|
-
func:
|
|
1936
|
-
params: none
|
|
1937
|
-
describe: basic error features available in a Deva.
|
|
1938
|
-
usage: this.error()
|
|
1939
|
-
***************/
|
|
1940
|
-
error() {
|
|
1941
|
-
return this._getFeature('error', this._error);
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
/**************
|
|
1945
|
-
func: log
|
|
1994
|
+
func: automation
|
|
1946
1995
|
params: none
|
|
1947
|
-
describe: basic
|
|
1948
|
-
usage: this.
|
|
1996
|
+
describe: basic automation features available in a Deva.
|
|
1997
|
+
usage: this.automation()
|
|
1949
1998
|
***************/
|
|
1950
|
-
|
|
1951
|
-
return this._getFeature('
|
|
1999
|
+
automation() {
|
|
2000
|
+
return this._getFeature('automation', this._automation);
|
|
1952
2001
|
}
|
|
1953
2002
|
|
|
1954
2003
|
/**************
|
|
1955
|
-
func:
|
|
2004
|
+
func: simulation
|
|
1956
2005
|
params: none
|
|
1957
|
-
describe: basic
|
|
1958
|
-
usage: this.
|
|
2006
|
+
describe: basic simulation features available in a Deva.
|
|
2007
|
+
usage: this.simulation()
|
|
1959
2008
|
***************/
|
|
1960
|
-
|
|
1961
|
-
return this._getFeature('
|
|
2009
|
+
simulation() {
|
|
2010
|
+
return this._getFeature('simulation', this._simulation);
|
|
1962
2011
|
}
|
|
1963
2012
|
|
|
1964
2013
|
/**************
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "38159520729793885324",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.30.0",
|
|
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",
|
package/tests/client.json
CHANGED
|
@@ -86,26 +86,6 @@
|
|
|
86
86
|
"global": [],
|
|
87
87
|
"devas": {}
|
|
88
88
|
},
|
|
89
|
-
"indu": {
|
|
90
|
-
"concerns": [],
|
|
91
|
-
"global": [],
|
|
92
|
-
"devas": {}
|
|
93
|
-
},
|
|
94
|
-
"indra": {
|
|
95
|
-
"concerns": [],
|
|
96
|
-
"global": [],
|
|
97
|
-
"devas": {}
|
|
98
|
-
},
|
|
99
|
-
"soma": {
|
|
100
|
-
"concerns": [],
|
|
101
|
-
"global": [],
|
|
102
|
-
"devas": {}
|
|
103
|
-
},
|
|
104
|
-
"king": {
|
|
105
|
-
"concerns": [],
|
|
106
|
-
"global": [],
|
|
107
|
-
"devas": {}
|
|
108
|
-
},
|
|
109
89
|
"owner": {
|
|
110
90
|
"concerns": [],
|
|
111
91
|
"global": [],
|
|
@@ -166,6 +146,20 @@
|
|
|
166
146
|
"hello": {}
|
|
167
147
|
}
|
|
168
148
|
},
|
|
149
|
+
"automation": {
|
|
150
|
+
"concerns": [],
|
|
151
|
+
"global": {},
|
|
152
|
+
"devas": {
|
|
153
|
+
"hello": {}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"simulation": {
|
|
157
|
+
"concerns": [],
|
|
158
|
+
"global": {},
|
|
159
|
+
"devas": {
|
|
160
|
+
"hello": {}
|
|
161
|
+
}
|
|
162
|
+
},
|
|
169
163
|
"guard": {
|
|
170
164
|
"concerns": [],
|
|
171
165
|
"global": [],
|