@indra.ai/deva 1.6.79 โ 1.6.80
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/zones.json +1 -42
- package/index.js +29 -0
- package/package.json +1 -1
package/config/zones.json
CHANGED
|
@@ -46,47 +46,6 @@
|
|
|
46
46
|
"systems": "๐ฅ๏ธ๏ธ Systems",
|
|
47
47
|
"networks": "๐ก Networks",
|
|
48
48
|
"help": "๐ Help",
|
|
49
|
-
"emergency": "๐ Emergency"
|
|
50
|
-
"play": "๐ Play",
|
|
51
|
-
"work": "๐งข Work",
|
|
52
|
-
"rest": "๐ฅฑ Rest",
|
|
53
|
-
"sleep": "๐ด Sleep",
|
|
54
|
-
"snack": "๐ฅจ Snack",
|
|
55
|
-
"casino": "๐ฐ Casino",
|
|
56
|
-
"crime": "๐คข Crime",
|
|
57
|
-
"prison": "๐ง Prison",
|
|
58
|
-
"jail": "๐ชค Jail",
|
|
59
|
-
"crisis": "๐ฑ Crisis",
|
|
60
|
-
"invader": "๐ธ Invader",
|
|
61
|
-
"pervert": "๐ Pervert",
|
|
62
|
-
"darknet": "โ ๏ธ DARKNET",
|
|
63
|
-
"clearnet": "๐ก CLEARNET",
|
|
64
|
-
"siprnet": "๐ฐ๏ธ SIPRNET",
|
|
65
|
-
"niprnet": "๐ฐ๏ธ NIPRNET",
|
|
66
|
-
"nsfnet": "๐งช NSFNET",
|
|
67
|
-
"milnet": "๐ช MILNET",
|
|
68
|
-
"arpanet": "๐๏ธ๏ธ ARPANET",
|
|
69
|
-
"darpa": "๐ฝ DARPA",
|
|
70
|
-
"area51": "๐ฝ Area 51",
|
|
71
|
-
"nsa": "๐๏ธ NSA",
|
|
72
|
-
"cia": "๐ธ๏ธ CIA",
|
|
73
|
-
"fbi": "๐ต๏ธ FBI",
|
|
74
|
-
"irs": "๐งพ๏ธ IRS",
|
|
75
|
-
"police": "๐ฎ Police",
|
|
76
|
-
"whitehouse": "๐ก The White House",
|
|
77
|
-
"pentagon": "โฌ The Pentagon",
|
|
78
|
-
"temple": "๐ Temple",
|
|
79
|
-
"church": "โช๏ธ Church",
|
|
80
|
-
"religion": "๐๏ธ Religion",
|
|
81
|
-
"syndicate": "๐ข๏ธ Syndicate",
|
|
82
|
-
"mafia": "๐ซ Mafia",
|
|
83
|
-
"hacker": "โจ๏ธ Hacker",
|
|
84
|
-
"sharon": "๐ท Sharon N Schamber",
|
|
85
|
-
"hal": "๐ฎ Harold H Atkin",
|
|
86
|
-
"tabitha": "๐ Tabitha R Lavery",
|
|
87
|
-
"trenton": "๐ญ Tabitha R Lavery",
|
|
88
|
-
"cristy": "๐ซ Cristy C Fincher",
|
|
89
|
-
"dewitty": "๐น Mr. Dewitty",
|
|
90
|
-
"covenant": "๐คก The Covenant"
|
|
49
|
+
"emergency": "๐ Emergency"
|
|
91
50
|
}
|
|
92
51
|
}
|
package/index.js
CHANGED
|
@@ -71,16 +71,45 @@ class Deva {
|
|
|
71
71
|
|
|
72
72
|
this._zone = config.zone; // set the current zone from config data.
|
|
73
73
|
this._zones = config.zones; // set the zones from config data.
|
|
74
|
+
// load any custom zones from the agent file
|
|
75
|
+
if (this._agent.zones) {
|
|
76
|
+
for (let item in this._agent.zones) {
|
|
77
|
+
if (!this._zones[item]) this._zones[item] = this._agent.zones[item];
|
|
78
|
+
}
|
|
79
|
+
delete this._agent.zones;
|
|
80
|
+
}
|
|
74
81
|
|
|
75
82
|
this._action = config.action; // set the action from config data.
|
|
76
83
|
this._actions = config.actions; // set the actions from config data.
|
|
84
|
+
// load any custom actions from the agent file
|
|
85
|
+
if (this._agent.actions) {
|
|
86
|
+
for (let item in this._agent.actions) {
|
|
87
|
+
if (!this._actions[item]) this._actions[item] = this._agent.actions[item];
|
|
88
|
+
}
|
|
89
|
+
delete this._agent.actions;
|
|
90
|
+
}
|
|
77
91
|
|
|
78
92
|
this._state = config.state; // set the current state from config data.
|
|
79
93
|
this._states = config.states; // set the states from options
|
|
94
|
+
// load any custom actions from the agent file
|
|
95
|
+
if (this._agent.actions) {
|
|
96
|
+
for (let item in this._agent.actions) {
|
|
97
|
+
if (!this._actions[item]) this._actions[item] = this._agent.actions[item];
|
|
98
|
+
}
|
|
99
|
+
delete this._agent.actions;
|
|
100
|
+
}
|
|
80
101
|
|
|
81
102
|
this._context = config.context || false; // set the local context
|
|
82
103
|
|
|
83
104
|
this._messages = config.messages; // set the messages from config data.
|
|
105
|
+
// load any custom actions from the agent file
|
|
106
|
+
if (this._agent.messages) {
|
|
107
|
+
for (let item in this._agent.messages) {
|
|
108
|
+
if (!this._messages[item]) this._messages[item] = this._agent.messages[item];
|
|
109
|
+
}
|
|
110
|
+
delete this._agent.messages;
|
|
111
|
+
}
|
|
112
|
+
|
|
84
113
|
}
|
|
85
114
|
|
|
86
115
|
/**************
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "24789087843554622185",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.80",
|
|
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:44435048570336088519 LICENSE.md",
|