@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 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.79",
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",