@indra.ai/deva 1.1.44 → 1.1.46
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 +66 -65
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -62,8 +62,8 @@ class Deva {
|
|
|
62
62
|
enter: `enter deva.world`,
|
|
63
63
|
stop: `stop what you are doing`,
|
|
64
64
|
exit: 'exit deva.world',
|
|
65
|
-
load: '
|
|
66
|
-
unload: '
|
|
65
|
+
load: 'loading',
|
|
66
|
+
unload: 'unloading',
|
|
67
67
|
|
|
68
68
|
invalid: 'State Invalid',
|
|
69
69
|
done: 'State Done',
|
|
@@ -100,27 +100,27 @@ class Deva {
|
|
|
100
100
|
answer_talk: 'sharing the answer',
|
|
101
101
|
ask: 'asking',
|
|
102
102
|
ask_answer: 'answering',
|
|
103
|
-
security: '
|
|
103
|
+
security: 'SECURITY',
|
|
104
104
|
Security: 'Security Feature',
|
|
105
|
-
support: '
|
|
105
|
+
support: 'SUPPORT',
|
|
106
106
|
Support: 'Support Feature',
|
|
107
|
-
systems: '
|
|
107
|
+
systems: 'SYSTMS',
|
|
108
108
|
Systems: 'Systems Feature',
|
|
109
|
-
services: '
|
|
109
|
+
services: 'SERVICES',
|
|
110
110
|
Services: 'Services Feature',
|
|
111
|
-
solutions: '
|
|
111
|
+
solutions: 'SOLUTIONS',
|
|
112
112
|
Solutions: 'Solutions Feature',
|
|
113
|
-
development: '
|
|
113
|
+
development: 'DEVELOPMENT',
|
|
114
114
|
Development: 'Development Feature',
|
|
115
|
-
business: '
|
|
115
|
+
business: 'BUSINESS',
|
|
116
116
|
Business: 'Business Feature',
|
|
117
|
-
legal: '
|
|
117
|
+
legal: 'LEGAL',
|
|
118
118
|
Legal: 'Legal Feature',
|
|
119
|
-
assistant: '
|
|
119
|
+
assistant: 'ASSISTANT',
|
|
120
120
|
Assistant: 'Assistant Feature',
|
|
121
|
-
story: '
|
|
121
|
+
story: 'STORY',
|
|
122
122
|
Story: 'Story Feature',
|
|
123
|
-
mind: '
|
|
123
|
+
mind: 'MIND',
|
|
124
124
|
Mind: 'Mind Feature',
|
|
125
125
|
client_data: 'Client Data',
|
|
126
126
|
invalid: 'Actin Invalid',
|
|
@@ -130,28 +130,28 @@ class Deva {
|
|
|
130
130
|
|
|
131
131
|
this._feature = false;
|
|
132
132
|
this._features = {
|
|
133
|
-
security: '
|
|
134
|
-
Security: '
|
|
135
|
-
support: '
|
|
136
|
-
Support: '
|
|
137
|
-
services: '
|
|
138
|
-
Services: '
|
|
139
|
-
solutions: '
|
|
140
|
-
Solutions: '
|
|
141
|
-
systems: '
|
|
142
|
-
Systems: '
|
|
143
|
-
development: '
|
|
144
|
-
Development: '
|
|
145
|
-
business: '
|
|
146
|
-
Business: '
|
|
147
|
-
legal:'
|
|
148
|
-
Legal:'
|
|
149
|
-
assistant: '
|
|
150
|
-
Assistant: '
|
|
151
|
-
story: '
|
|
152
|
-
Story: '
|
|
153
|
-
mind: '
|
|
154
|
-
Mind: '
|
|
133
|
+
security: '🔐 SECURITY',
|
|
134
|
+
Security: '🔐 SECURITY Feature',
|
|
135
|
+
support: '💼 SUPPORT',
|
|
136
|
+
Support: '💼 SUPPORT Feature',
|
|
137
|
+
services: '🛠️ SERVICES',
|
|
138
|
+
Services: '🛠️ SERVICES',
|
|
139
|
+
solutions: '💡 SOLUTIONS',
|
|
140
|
+
Solutions: '💡 SOLUTIONS Feature',
|
|
141
|
+
systems: '🖥️ SYSTEMS',
|
|
142
|
+
Systems: '🖥️ SYSTEMS Feature',
|
|
143
|
+
development: '🔧 DEVELOPMENT',
|
|
144
|
+
Development: '🔧 DEVELOPMENT Feature',
|
|
145
|
+
business: '📊 BUSINESS',
|
|
146
|
+
Business: '📊 BUSINESS Feature',
|
|
147
|
+
legal:'⚖️ LEGAL',
|
|
148
|
+
Legal:'⚖️ LEGAL Feature',
|
|
149
|
+
assistant: '🤝 ASSISTANT',
|
|
150
|
+
Assistant: '🤝 ASSISTANT Feature',
|
|
151
|
+
story: '📚 STORY',
|
|
152
|
+
Story: '📚 STORY Feature',
|
|
153
|
+
mind: '🧠 MIND',
|
|
154
|
+
Mind: '🧠 MIND Feature',
|
|
155
155
|
error: 'Feature Error',
|
|
156
156
|
done: 'Feature Done',
|
|
157
157
|
};
|
|
@@ -170,8 +170,8 @@ class Deva {
|
|
|
170
170
|
enter: `📲 ${this._agent.profile.name} ${this._states.enter}`,
|
|
171
171
|
stop: `✋ ${this._agent.profile.name} ${this._states.stop}`,
|
|
172
172
|
exit: `🚪 ${this._agent.profile.name} ${this._states.exit}`,
|
|
173
|
-
load: `📫 ${this._agent.profile.name} ${this._states.load}`,
|
|
174
|
-
unload: `📭 ${this._agent.profile.name} ${this._states.unload}`,
|
|
173
|
+
load: `📫 ${this._agent.profile.name} is ${this._states.load}`,
|
|
174
|
+
unload: `📭 ${this._agent.profile.name} is ${this._states.unload}`,
|
|
175
175
|
uid: `${this._agent.profile.name} ${this._states.uid}`,
|
|
176
176
|
hash: `${this._agent.profile.name} ${this._states.hash}`,
|
|
177
177
|
cipher: `${this._agent.profile.name} ${this._states.cipher}`,
|
|
@@ -207,39 +207,39 @@ class Deva {
|
|
|
207
207
|
ask: `👥 ${this._agent.profile.name} is asking`,
|
|
208
208
|
ask_answer: `🎟️ ${this._agent.profile.name} is answering the ask`,
|
|
209
209
|
|
|
210
|
-
security: `${this.
|
|
211
|
-
Security: `${this.
|
|
212
|
-
support: `${this.
|
|
213
|
-
Support: `${this.
|
|
214
|
-
services: `${this.
|
|
215
|
-
Services: `${this.
|
|
216
|
-
solutions: `${this.
|
|
217
|
-
Solutions: `${this.
|
|
218
|
-
solutions: `${this.
|
|
219
|
-
Systems: `${this.
|
|
220
|
-
development: `${this.
|
|
221
|
-
Development: `${this.
|
|
222
|
-
business: `${this.
|
|
223
|
-
Business: `${this.
|
|
224
|
-
legal: `${this.
|
|
225
|
-
Legal: `${this.
|
|
226
|
-
assistant: `${this.
|
|
227
|
-
Assistant: `${this.
|
|
228
|
-
story: `${this.
|
|
229
|
-
Story: `${this.
|
|
230
|
-
mind: `${this.
|
|
231
|
-
Mind: `${this.
|
|
210
|
+
security: `${this._features.security} feature action`,
|
|
211
|
+
Security: `${this._features.Security} is ready`,
|
|
212
|
+
support: `${this._features.support} feature action`,
|
|
213
|
+
Support: `${this._features.Support} is ready`,
|
|
214
|
+
services: `${this._features.Services} feature action`,
|
|
215
|
+
Services: `${this._features.Services} is ready`,
|
|
216
|
+
solutions: `${this._features.solutions} feature action`,
|
|
217
|
+
Solutions: `${this._features.Solutions} is ready`,
|
|
218
|
+
solutions: `${this._features.Systems} feature action`,
|
|
219
|
+
Systems: `${this._features.Systems} is ready`,
|
|
220
|
+
development: `${this._features.Development} feature action`,
|
|
221
|
+
Development: `${this._features.Development} is ready`,
|
|
222
|
+
business: `${this._features.Business} feature action`,
|
|
223
|
+
Business: `${this._features.Business} is ready`,
|
|
224
|
+
legal: `${this._features.Legal} feature action`,
|
|
225
|
+
Legal: `${this._features.Legal} is ready`,
|
|
226
|
+
assistant: `${this._features.Assistant} feature action`,
|
|
227
|
+
Assistant: `${this._features.Assistant} is ready`,
|
|
228
|
+
story: `${this._features.Story} feature action`,
|
|
229
|
+
Story: `${this._features.Story} is ready`,
|
|
230
|
+
mind: `${this._features.Mind} feature action`,
|
|
231
|
+
Mind: `${this._features.Mind} is ready`,
|
|
232
232
|
client_data: `📂 ${this._agent.profile.name} setting Client Data`,
|
|
233
233
|
invalid: `${this._actions.invalid}`,
|
|
234
234
|
done: `✅ ${this._actions.done}`,
|
|
235
235
|
error: `${this._action.error}`,
|
|
236
236
|
},
|
|
237
237
|
features: {
|
|
238
|
-
security: `${this._features.security}
|
|
238
|
+
security: `${this._features.security} feature state`,
|
|
239
239
|
Security: `${this._features.Security} loading...`,
|
|
240
|
-
support: `${this._features.support}
|
|
240
|
+
support: `${this._features.support} feature state`,
|
|
241
241
|
Support: `${this._features.Support} loading...`,
|
|
242
|
-
services: `${this._features.services}
|
|
242
|
+
services: `${this._features.services} feature state`,
|
|
243
243
|
Services: `${this._features.Services} loading...`,
|
|
244
244
|
solutions: `${this._features.solutions} is solving`,
|
|
245
245
|
Solutions: `${this._features.Solutions} loading...`,
|
|
@@ -1472,7 +1472,7 @@ class Deva {
|
|
|
1472
1472
|
try {
|
|
1473
1473
|
if (!this._active) return this._messages.states.offline; // check the active status
|
|
1474
1474
|
this.action('security'); // set the security state
|
|
1475
|
-
return this._security; // return the security feature
|
|
1475
|
+
return this.copy(this._security); // return the security feature
|
|
1476
1476
|
} catch (e) {
|
|
1477
1477
|
this.action('error'); // set the security state
|
|
1478
1478
|
this.feature('error');
|
|
@@ -1490,8 +1490,9 @@ class Deva {
|
|
|
1490
1490
|
this.feature('support'); // set the support state
|
|
1491
1491
|
try {
|
|
1492
1492
|
if (!this._active) return this._messages.states.offline; // check the active status
|
|
1493
|
-
this.action('support');
|
|
1494
|
-
|
|
1493
|
+
this.action('support');
|
|
1494
|
+
console.log(this.copy(this._support)); // set the support state
|
|
1495
|
+
return this.copy(this._support); // return the support feature
|
|
1495
1496
|
} catch (e) {
|
|
1496
1497
|
this.action('error'); // set the services state
|
|
1497
1498
|
this.feature('error');
|