@indra.ai/deva 1.4.7 โ 1.4.9
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 +38 -13
- package/package.json +246 -2
- package/tests/index.js +36 -8
- package/config.json +0 -248
package/index.js
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// Distributed under the Restricted software license, see the accompanying file LICENSE.md
|
|
3
3
|
import {EventEmitter} from 'node:events';
|
|
4
4
|
import {randomUUID} from 'crypto';
|
|
5
|
-
|
|
6
5
|
import lib from './lib/index.js';
|
|
6
|
+
import pkg from './package.json' with {type:'json'};
|
|
7
7
|
|
|
8
|
+
const {name,version,repository,author,bugs,homepage,license,config} = pkg;
|
|
8
9
|
|
|
9
|
-
import Config from './config.json' with {type:'json'};
|
|
10
|
-
const config = Config.DATA;
|
|
11
10
|
class Deva {
|
|
12
11
|
constructor(opts) {
|
|
13
12
|
opts = opts || {}; // set opts to provided opts or an empty object.
|
|
13
|
+
this._core = {name,version,repository,author,bugs,homepage,license};
|
|
14
14
|
this._id = opts.id || randomUUID(); // the unique id assigned to the agent at load
|
|
15
15
|
this._info = opts.info || false; // the deva information from the package file.
|
|
16
16
|
this._config = opts.config || {}; // local Config Object
|
|
@@ -36,7 +36,6 @@ class Deva {
|
|
|
36
36
|
this.func = opts.func || {}; // local Functions
|
|
37
37
|
this.methods = opts.methods || {}; // local Methods
|
|
38
38
|
this.maxListeners = opts.maxListenners || 0; // set the local maxListeners
|
|
39
|
-
|
|
40
39
|
// prevent overwriting existing functions and variables with same name
|
|
41
40
|
for (const opt in opts) {
|
|
42
41
|
if (!this[opt] || !this[`_${opt}`]) this[opt] = opts[opt];
|
|
@@ -1079,14 +1078,16 @@ class Deva {
|
|
|
1079
1078
|
actions() {
|
|
1080
1079
|
this.action('func', 'actions');
|
|
1081
1080
|
this.state('return', 'actions');
|
|
1082
|
-
|
|
1081
|
+
const data = {
|
|
1083
1082
|
id: this.lib.uid(), // set the id with a uuid
|
|
1084
1083
|
agent: this.agent(), // set the agent value
|
|
1085
1084
|
client: this.client(), // set the client value
|
|
1086
1085
|
key: 'actions', // set the data key
|
|
1087
1086
|
value: this._actions, // set the value to the actions list
|
|
1088
|
-
created: Date.now(), // set the data created date
|
|
1089
|
-
}
|
|
1087
|
+
created: Date.now(), // set the data created date
|
|
1088
|
+
};
|
|
1089
|
+
data.hash = this.lib.hash(data)
|
|
1090
|
+
return data;
|
|
1090
1091
|
}
|
|
1091
1092
|
|
|
1092
1093
|
/**************
|
|
@@ -1126,14 +1127,16 @@ class Deva {
|
|
|
1126
1127
|
***************/
|
|
1127
1128
|
features() {
|
|
1128
1129
|
this.state('return', 'features');
|
|
1129
|
-
|
|
1130
|
+
const data = {
|
|
1130
1131
|
id: this.lib.uid(), // set the object id
|
|
1131
1132
|
agent: this.agent(), // set the agent value.
|
|
1132
1133
|
client: this.client(), // set the client value.
|
|
1133
1134
|
key: 'features', // set the key
|
|
1134
1135
|
value: this._features, // set the value to the features list
|
|
1135
1136
|
created: Date.now(), // set the created date.
|
|
1136
|
-
}
|
|
1137
|
+
};
|
|
1138
|
+
data.hash = this.lib.hash(data);
|
|
1139
|
+
return data;
|
|
1137
1140
|
}
|
|
1138
1141
|
|
|
1139
1142
|
/**************
|
|
@@ -1159,7 +1162,6 @@ class Deva {
|
|
|
1159
1162
|
text,
|
|
1160
1163
|
created: Date.now(),
|
|
1161
1164
|
};
|
|
1162
|
-
|
|
1163
1165
|
data.hash = this.lib.hash(data);
|
|
1164
1166
|
this.talk(config.events.context, data);
|
|
1165
1167
|
return data;
|
|
@@ -1427,6 +1429,7 @@ class Deva {
|
|
|
1427
1429
|
text,
|
|
1428
1430
|
created: Date.now(),
|
|
1429
1431
|
}
|
|
1432
|
+
_data.hash = this.lib.hash(_data);
|
|
1430
1433
|
return this.talk(config.events.prompt, _data);
|
|
1431
1434
|
}
|
|
1432
1435
|
|
|
@@ -1435,15 +1438,32 @@ class Deva {
|
|
|
1435
1438
|
|
|
1436
1439
|
|
|
1437
1440
|
|
|
1441
|
+
/**************
|
|
1442
|
+
func: core
|
|
1443
|
+
params: none
|
|
1444
|
+
describe: return core data.
|
|
1445
|
+
***************/
|
|
1446
|
+
core() {
|
|
1447
|
+
// check the active status
|
|
1448
|
+
if (!this._active) return Promise.resolve(this._messages.offline);
|
|
1449
|
+
const data = this.lib.copy(this._core);
|
|
1450
|
+
data.id = this.lib.uid();
|
|
1451
|
+
data.hash = this.lib.hash(data);
|
|
1452
|
+
return data;
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1438
1455
|
/**************
|
|
1439
1456
|
func: info
|
|
1440
|
-
params:
|
|
1457
|
+
params: none
|
|
1441
1458
|
describe: return info data.
|
|
1442
1459
|
***************/
|
|
1443
1460
|
info() {
|
|
1444
1461
|
// check the active status
|
|
1445
1462
|
if (!this._active) return Promise.resolve(this._messages.offline);
|
|
1446
|
-
|
|
1463
|
+
const data = this.lib.copy(this._info);
|
|
1464
|
+
data.id = this.lib.uid();
|
|
1465
|
+
data.hash = this.lib.hash(data);
|
|
1466
|
+
return data;
|
|
1447
1467
|
}
|
|
1448
1468
|
|
|
1449
1469
|
/**************
|
|
@@ -1519,10 +1539,15 @@ class Deva {
|
|
|
1519
1539
|
value: agent.key,
|
|
1520
1540
|
agent,
|
|
1521
1541
|
client,
|
|
1522
|
-
error:
|
|
1542
|
+
error: {
|
|
1543
|
+
name: err.name,
|
|
1544
|
+
message: err.message,
|
|
1545
|
+
stack: err.stack,
|
|
1546
|
+
},
|
|
1523
1547
|
data,
|
|
1524
1548
|
created: Date.now(),
|
|
1525
1549
|
}
|
|
1550
|
+
_data.hash = this.lib.hash(_data);
|
|
1526
1551
|
this.talk(config.events.error, this.lib.copy(_data));
|
|
1527
1552
|
const hasOnError = this.onError && typeof this.onError === 'function' ? true : false;
|
|
1528
1553
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@indra.ai/deva",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.9",
|
|
4
4
|
"description": "The Deva Core",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"bugs": {
|
|
39
39
|
"url": "https://github.com/indraai/deva/issues"
|
|
40
40
|
},
|
|
41
|
-
"homepage": "https://deva.
|
|
41
|
+
"homepage": "https://deva.world",
|
|
42
42
|
"eslintConfig": {
|
|
43
43
|
"parserOptions": {
|
|
44
44
|
"ecmaVersion": 6
|
|
@@ -47,5 +47,249 @@
|
|
|
47
47
|
"engines": {
|
|
48
48
|
"npm": ">=9.5.1",
|
|
49
49
|
"node": ">=18.16.0"
|
|
50
|
+
},
|
|
51
|
+
"config": {
|
|
52
|
+
"cmdChr": "/",
|
|
53
|
+
"askChr": "#",
|
|
54
|
+
"inherit": [
|
|
55
|
+
"events",
|
|
56
|
+
"lib",
|
|
57
|
+
"config"
|
|
58
|
+
],
|
|
59
|
+
"bind": [
|
|
60
|
+
"listeners",
|
|
61
|
+
"methods",
|
|
62
|
+
"utils",
|
|
63
|
+
"func",
|
|
64
|
+
"lib"
|
|
65
|
+
],
|
|
66
|
+
"events": {
|
|
67
|
+
"prompt": "devacore:prompt",
|
|
68
|
+
"error": "devacore:error",
|
|
69
|
+
"question": "devacore:question",
|
|
70
|
+
"answer": "devacore:answer",
|
|
71
|
+
"ask": "devacore:ask",
|
|
72
|
+
"state": "devacore:state",
|
|
73
|
+
"zone": "devacore:zone",
|
|
74
|
+
"action": "devacore:action",
|
|
75
|
+
"feature": "devacore:feature",
|
|
76
|
+
"load": "devacore:load",
|
|
77
|
+
"unload": "devacore:unload",
|
|
78
|
+
"context": "devacore:context"
|
|
79
|
+
},
|
|
80
|
+
"context": false,
|
|
81
|
+
"zone": "deva",
|
|
82
|
+
"zones": {
|
|
83
|
+
"load": "๐ Load",
|
|
84
|
+
"unload": "๐ป Unload",
|
|
85
|
+
"init": "๐ Init",
|
|
86
|
+
"start": "๐๏ธ Start",
|
|
87
|
+
"stop": "๐ Stop",
|
|
88
|
+
"enter": "๐ก Enter",
|
|
89
|
+
"exit": "๐ช Exit",
|
|
90
|
+
"finish": "๐ Finish",
|
|
91
|
+
"deva": "โก๏ธ Deva",
|
|
92
|
+
"client": "๐จ Client",
|
|
93
|
+
"agent": "๐ค Agent",
|
|
94
|
+
"security": "๐ Security",
|
|
95
|
+
"support": "๐ Support",
|
|
96
|
+
"services": "๐ Services",
|
|
97
|
+
"systems": "๐ Systems",
|
|
98
|
+
"networks": "๐ฐ๏ธ Networks",
|
|
99
|
+
"legal": "๐๏ธ Legal",
|
|
100
|
+
"authority": "๐ Authority",
|
|
101
|
+
"justice": "โ๏ธ Justice",
|
|
102
|
+
"defense": "๐ช Defense",
|
|
103
|
+
"help": "๐ Help",
|
|
104
|
+
"error": "โ Error!"
|
|
105
|
+
},
|
|
106
|
+
"state": "offline",
|
|
107
|
+
"states": {
|
|
108
|
+
"online": "๐คฉ Online",
|
|
109
|
+
"offline": "๐ด Offline",
|
|
110
|
+
"active": "๐ Active",
|
|
111
|
+
"inactive": "๐ซฅ Inactive",
|
|
112
|
+
"idle": "๐ Idle",
|
|
113
|
+
"talk": "๐ข Talk",
|
|
114
|
+
"listen": "๐ Listen",
|
|
115
|
+
"ask": "๐ฃ๏ธ Ask",
|
|
116
|
+
"question": "๐ฌ Question",
|
|
117
|
+
"cmd": "๐ช Command",
|
|
118
|
+
"answer": "๐ก Answer",
|
|
119
|
+
"ready": "๐ Ready",
|
|
120
|
+
"wait": "โณ Waiting",
|
|
121
|
+
"pause": "โธ๏ธ Pause",
|
|
122
|
+
"resume": "๐ Resume",
|
|
123
|
+
"connect": "๐ณ Connect",
|
|
124
|
+
"disconnect": "๐ด Disconnect",
|
|
125
|
+
"send": "๐ฌ Send",
|
|
126
|
+
"receive": "๐ช Receive",
|
|
127
|
+
"init": "๐ Init",
|
|
128
|
+
"forward": "โญ๏ธ Forward",
|
|
129
|
+
"backward": "โฎ๏ธ Backward",
|
|
130
|
+
"start": "๐ Start",
|
|
131
|
+
"stop": "โน๏ธ Stop",
|
|
132
|
+
"open": "๐ฅซ Open",
|
|
133
|
+
"close": "๐ฆ Close",
|
|
134
|
+
"enter": "๐ก Enter",
|
|
135
|
+
"exit": "๐ช Exit",
|
|
136
|
+
"begin": "๐บ๏ธ Begin",
|
|
137
|
+
"end": "๐ฌ End",
|
|
138
|
+
"load": "๐ Load",
|
|
139
|
+
"unload": "๐ป Unload",
|
|
140
|
+
"resolve": "๐ค Resolve",
|
|
141
|
+
"reject": "๐งฑ Reject",
|
|
142
|
+
"done": "๐ Done",
|
|
143
|
+
"data": "๐ก Data",
|
|
144
|
+
"finish": "๐ Finish",
|
|
145
|
+
"complete": "โ
Complete",
|
|
146
|
+
"create": "๐จ Create",
|
|
147
|
+
"destroy": "๐ฃ Destroy",
|
|
148
|
+
"write": "๐ Write",
|
|
149
|
+
"save": "๐พ Save",
|
|
150
|
+
"delete": "๐งจ Delete",
|
|
151
|
+
"set": "๐ Set",
|
|
152
|
+
"get": "๐ซด Get",
|
|
153
|
+
"put": "๐ค Put",
|
|
154
|
+
"push": "๐ซธ Push",
|
|
155
|
+
"pull": "๐ Pull",
|
|
156
|
+
"search": "๐ Search",
|
|
157
|
+
"memory": "๐ญ Memory",
|
|
158
|
+
"signature": "โ๏ธ Response",
|
|
159
|
+
"invalid": "๐ INVALID!",
|
|
160
|
+
"valid": "๐ VALID!",
|
|
161
|
+
"abort": "๐ ABORT!",
|
|
162
|
+
"error": "โ ERROR!",
|
|
163
|
+
"help": "๐ Help",
|
|
164
|
+
"authorized": "๐ Authorized",
|
|
165
|
+
"unauthorized": "๐ดโโ ๏ธ Unauthorized",
|
|
166
|
+
"Done": "โ๏ธ Done",
|
|
167
|
+
"glitch": "๐ก Glitch",
|
|
168
|
+
"intruder": "๐ฆนโโ๏ธ Intruder",
|
|
169
|
+
"snooper": "๐ Snooper",
|
|
170
|
+
"scam": "๐
โโ๏ธ Scam",
|
|
171
|
+
"fraud": "โผ๏ธ Fraud",
|
|
172
|
+
"crime": "๐ Crime",
|
|
173
|
+
"official": "๐ซก Official",
|
|
174
|
+
"unofficial": "๐คฅ Unofficial",
|
|
175
|
+
"approved": "๐๏ธ Approved",
|
|
176
|
+
"denied": "๐ Denied",
|
|
177
|
+
"secure": "๐ Secure"
|
|
178
|
+
},
|
|
179
|
+
"action": false,
|
|
180
|
+
"actions": {
|
|
181
|
+
"init": "๐ Init",
|
|
182
|
+
"wait": "โณ Waiting",
|
|
183
|
+
"start": "๐ฌ Start",
|
|
184
|
+
"enter": "๐ก Enter",
|
|
185
|
+
"exit": "๐ช Exit",
|
|
186
|
+
"stop": "๐ Stop",
|
|
187
|
+
"load": "๐ฆ Load",
|
|
188
|
+
"unload": "๐ฅก Unload",
|
|
189
|
+
"finish": "๐ Finish",
|
|
190
|
+
"complete": "โ
Complete",
|
|
191
|
+
"done": "โ๏ธ Done",
|
|
192
|
+
"ready": "๐ข Ready",
|
|
193
|
+
"question": "๐ Question",
|
|
194
|
+
"talk": "๐ข Talk",
|
|
195
|
+
"context": "๐ Context",
|
|
196
|
+
"prompt": "๐ Prompt",
|
|
197
|
+
"issue": "๐ซ Issue",
|
|
198
|
+
"find": "๐ Find",
|
|
199
|
+
"parse": "๐๏ธ Parse",
|
|
200
|
+
"view": "๐ View",
|
|
201
|
+
"insert": "๐ Insert",
|
|
202
|
+
"update": "๐ Update",
|
|
203
|
+
"delete": "๐๏ธ Delete",
|
|
204
|
+
"info": "๐โโ๏ธ Information",
|
|
205
|
+
"status": "๐ฅ Status",
|
|
206
|
+
"func": "๐ฆ Function",
|
|
207
|
+
"method": "โค๏ธโ๐ฅ Method",
|
|
208
|
+
"list": "๐ List",
|
|
209
|
+
"reply": "๐ฎ Reply",
|
|
210
|
+
"set": "๐ฝ๏ธ Set",
|
|
211
|
+
"get": "๐ค Get",
|
|
212
|
+
"send": "๐ Send",
|
|
213
|
+
"receive": "๐ฅ
Receive",
|
|
214
|
+
"return": "๐ Return",
|
|
215
|
+
"resolve": "โต๏ธ Resolve",
|
|
216
|
+
"reject": "โ Reject",
|
|
217
|
+
"write": "๐๏ธ Write",
|
|
218
|
+
"question_ask": "๐ฃ๏ธ Asked",
|
|
219
|
+
"question_ask_answer": "๐๏ธ Answered",
|
|
220
|
+
"question_cmd": "๐ช Command",
|
|
221
|
+
"question_answer": "๐ Answer",
|
|
222
|
+
"answer": "๐ก Answer",
|
|
223
|
+
"ask": "๐ฃ Ask",
|
|
224
|
+
"client": "๐จ Client",
|
|
225
|
+
"agent": "๐ต๏ธโโ๏ธ Agent",
|
|
226
|
+
"security": "๐ Security",
|
|
227
|
+
"support": "๐ฉน Support",
|
|
228
|
+
"services": "๐ ๏ธ Services",
|
|
229
|
+
"systems": "๐ฅ๏ธ Systems",
|
|
230
|
+
"networks": "๐ก Networks",
|
|
231
|
+
"legal": "๐๏ธ Legal",
|
|
232
|
+
"justice": "๐๏ธ Justice",
|
|
233
|
+
"authority": "๐ฎ Authority",
|
|
234
|
+
"defense": "๐ช Defense",
|
|
235
|
+
"invalid": "โ Invalid",
|
|
236
|
+
"states": "๐ป States",
|
|
237
|
+
"actions": "๐๏ธ Actions",
|
|
238
|
+
"zones": "Zones",
|
|
239
|
+
"feature": "๐ฅ Feature",
|
|
240
|
+
"features": "๐ฅ Features",
|
|
241
|
+
"contexts": "๐ Contexts",
|
|
242
|
+
"help": "๐ Help",
|
|
243
|
+
"error": "๐ด ERROR!",
|
|
244
|
+
"lawful": "๐ Lawful",
|
|
245
|
+
"unlawful": "๐ฟ Unlawful",
|
|
246
|
+
"audio": "๐ Audio",
|
|
247
|
+
"text": "๐ Text",
|
|
248
|
+
"image": "๐ Image",
|
|
249
|
+
"video": "๐ฝ๏ธ Video",
|
|
250
|
+
"signature": "โ๏ธ Signature",
|
|
251
|
+
"orders": "๐ช Orders",
|
|
252
|
+
"law": "๐ Law",
|
|
253
|
+
"decree": "๐ Decree"
|
|
254
|
+
},
|
|
255
|
+
"feature": false,
|
|
256
|
+
"features": {
|
|
257
|
+
"client": "๐จ Client",
|
|
258
|
+
"init": "๐ Init",
|
|
259
|
+
"security": "๐ Security",
|
|
260
|
+
"support": "๐ผ Support",
|
|
261
|
+
"services": "๐ ๏ธ Services",
|
|
262
|
+
"systems": "๐ฅ๏ธ๏ธ Systems",
|
|
263
|
+
"networks": "๐๏ธ๏ธ Networks",
|
|
264
|
+
"legal": "๐๏ธ๏ธ๏ธ Legal",
|
|
265
|
+
"justice": "๐๏ธ๏ธ Justice",
|
|
266
|
+
"authority": "๐๏ธ๏ธ Authority",
|
|
267
|
+
"defense": "๐ช๏ธ๏ธ Defense",
|
|
268
|
+
"cipher": "๐ Cipher",
|
|
269
|
+
"decipher": "๐ Decipher",
|
|
270
|
+
"promp": "๐ชต Prompt",
|
|
271
|
+
"getToday": "๐ Get Today",
|
|
272
|
+
"formatDate": "๐
Format Date",
|
|
273
|
+
"formatTime": "๐ฐ๏ธ Format Time",
|
|
274
|
+
"formatCurrency": "๐ฐ Format Currency",
|
|
275
|
+
"formatPercent": "% Format Percent",
|
|
276
|
+
"formatNumbert": "# Format Number",
|
|
277
|
+
"trimWords": "๐ Trim Words",
|
|
278
|
+
"dupes": "๐ Duplicates",
|
|
279
|
+
"info": "๐โโ๏ธ Info",
|
|
280
|
+
"status": "โค๏ธ Status",
|
|
281
|
+
"help": "๐ Help"
|
|
282
|
+
},
|
|
283
|
+
"message": "offline",
|
|
284
|
+
"messages": {
|
|
285
|
+
"init": "Initializing Deva",
|
|
286
|
+
"offline": "The Deva is OFFLINE.",
|
|
287
|
+
"noid": "NO ID WAS PROVIDED",
|
|
288
|
+
"notext": "NO TEXT WAS PROVIDED",
|
|
289
|
+
"nopacket": "NO PACKET WAS PROVIDED",
|
|
290
|
+
"method_not_found": "METHOD NOT FOUND",
|
|
291
|
+
"stop": "Stop Deva.",
|
|
292
|
+
"exit": "Exit Deva"
|
|
293
|
+
}
|
|
50
294
|
}
|
|
51
295
|
}
|
package/tests/index.js
CHANGED
|
@@ -9,7 +9,26 @@ const agent = Agent.DATA;
|
|
|
9
9
|
|
|
10
10
|
import Deva from '../index.js';
|
|
11
11
|
|
|
12
|
+
import {dirname} from 'node:path';
|
|
13
|
+
import {fileURLToPath} from 'node:url';
|
|
14
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
15
|
+
|
|
16
|
+
const info = {
|
|
17
|
+
id: '00000',
|
|
18
|
+
name: 'Deva Core Test',
|
|
19
|
+
describe: 'Deva Core Test Package',
|
|
20
|
+
version: '0.0.0',
|
|
21
|
+
dir: __dirname,
|
|
22
|
+
url: 'https://deva.world/test',
|
|
23
|
+
git: 'git+https://github.com/indraai/deva.git',
|
|
24
|
+
bugs: 'git+https://github.com/indraai/deva.git#bugs',
|
|
25
|
+
author: 'Quinn Michaels',
|
|
26
|
+
license: 'TESTING ONLY',
|
|
27
|
+
copyright: 2025,
|
|
28
|
+
};
|
|
29
|
+
|
|
12
30
|
const DevaTest = new Deva({
|
|
31
|
+
info,
|
|
13
32
|
agent: {
|
|
14
33
|
id: agent.id,
|
|
15
34
|
key: agent.key,
|
|
@@ -70,15 +89,24 @@ const DevaTest = new Deva({
|
|
|
70
89
|
const text = this._state
|
|
71
90
|
const id = this.lib.uid();
|
|
72
91
|
const uid = this.lib.uid(true);
|
|
92
|
+
const core = this.core();
|
|
93
|
+
const info = this.info();
|
|
73
94
|
const data = [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
`::
|
|
95
|
+
'๐งช TEST RESULTS',
|
|
96
|
+
`::BEGIN:CORE:${core.id}`,
|
|
97
|
+
JSON.stringify(core,null,2),
|
|
98
|
+
`::END:CORE:${core.hash}`,
|
|
99
|
+
`::BEGIN:INFO:${info.id}`,
|
|
100
|
+
JSON.stringify(info,null,2),
|
|
101
|
+
`::END:INFO:${info.hash}`,
|
|
102
|
+
`::BEGIN:RESULTS:${id}`,
|
|
103
|
+
`id: โ
${id}`,
|
|
104
|
+
`uid: โ
${uid}`,
|
|
105
|
+
`md5: โ
${this.lib.hash(packet)}`,
|
|
106
|
+
`sha256: โ
${this.lib.hash(packet, 'sha256')}`,
|
|
107
|
+
`sha512: โ
${this.lib.hash(packet, 'sha512')}`,
|
|
108
|
+
`date: โ
${this.lib.formatDate(Date.now(), 'long', true)}`,
|
|
109
|
+
`::END:RESULTS:${this.lib.hash(packet)}`,
|
|
82
110
|
];
|
|
83
111
|
return {
|
|
84
112
|
text: data.join('\n'),
|
package/config.json
DELETED
|
@@ -1,248 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Deva Core Configuration",
|
|
3
|
-
"describe": "The Deva Core Configuraitno File contains all the values needed to run deva.world core.",
|
|
4
|
-
"copyright": "Copyright 2023(c) Quinn Michaels. All rights reserved.",
|
|
5
|
-
"DATA": {
|
|
6
|
-
"cmdChr": "/",
|
|
7
|
-
"askChr": "#",
|
|
8
|
-
"inherit": ["events", "lib", "config"],
|
|
9
|
-
"bind": [
|
|
10
|
-
"listeners",
|
|
11
|
-
"methods",
|
|
12
|
-
"utils",
|
|
13
|
-
"func",
|
|
14
|
-
"lib"
|
|
15
|
-
],
|
|
16
|
-
"events": {
|
|
17
|
-
"prompt": "devacore:prompt",
|
|
18
|
-
"error": "devacore:error",
|
|
19
|
-
"question": "devacore:question",
|
|
20
|
-
"answer": "devacore:answer",
|
|
21
|
-
"ask": "devacore:ask",
|
|
22
|
-
"state": "devacore:state",
|
|
23
|
-
"zone": "devacore:zone",
|
|
24
|
-
"action": "devacore:action",
|
|
25
|
-
"feature": "devacore:feature",
|
|
26
|
-
"load": "devacore:load",
|
|
27
|
-
"unload": "devacore:unload",
|
|
28
|
-
"context": "devacore:context"
|
|
29
|
-
},
|
|
30
|
-
"context": false,
|
|
31
|
-
"zone": "deva",
|
|
32
|
-
"zones": {
|
|
33
|
-
"load": "๐ Load",
|
|
34
|
-
"unload": "๐ป Unload",
|
|
35
|
-
"init": "๐ Init",
|
|
36
|
-
"start": "๐๏ธ Start",
|
|
37
|
-
"stop": "๐ Stop",
|
|
38
|
-
"enter": "๐ก Enter",
|
|
39
|
-
"exit": "๐ช Exit",
|
|
40
|
-
"finish": "๐ Finish",
|
|
41
|
-
"deva": "โก๏ธ Deva",
|
|
42
|
-
"client": "๐จ Client",
|
|
43
|
-
"agent": "๐ค Agent",
|
|
44
|
-
"security": "๐ Security",
|
|
45
|
-
"support": "๐ Support",
|
|
46
|
-
"services": "๐ Services",
|
|
47
|
-
"systems": "๐ Systems",
|
|
48
|
-
"networks": "๐ฐ๏ธ Networks",
|
|
49
|
-
"legal": "๐๏ธ Legal",
|
|
50
|
-
"authority": "๐ Authority",
|
|
51
|
-
"justice": "โ๏ธ Justice",
|
|
52
|
-
"defense": "๐ช Defense",
|
|
53
|
-
"help": "๐ Help",
|
|
54
|
-
"error": "โ Error!"
|
|
55
|
-
},
|
|
56
|
-
"state": "offline",
|
|
57
|
-
"states": {
|
|
58
|
-
"online": "๐คฉ Online",
|
|
59
|
-
"offline": "๐ด Offline",
|
|
60
|
-
"active": "๐ Active",
|
|
61
|
-
"inactive": "๐ซฅ Inactive",
|
|
62
|
-
"idle": "๐ Idle",
|
|
63
|
-
"talk": "๐ข Talk",
|
|
64
|
-
"listen": "๐ Listen",
|
|
65
|
-
"ask": "๐ฃ๏ธ Ask",
|
|
66
|
-
"question": "๐ฌ Question",
|
|
67
|
-
"cmd": "๐ช Command",
|
|
68
|
-
"answer": "๐ก Answer",
|
|
69
|
-
"ready": "๐ Ready",
|
|
70
|
-
"wait": "โณ Waiting",
|
|
71
|
-
"pause": "โธ๏ธ Pause",
|
|
72
|
-
"resume": "๐ Resume",
|
|
73
|
-
"connect": "๐ณ Connect",
|
|
74
|
-
"disconnect": "๐ด Disconnect",
|
|
75
|
-
"send": "๐ฌ Send",
|
|
76
|
-
"receive": "๐ช Receive",
|
|
77
|
-
"init": "๐ Init",
|
|
78
|
-
"forward": "โญ๏ธ Forward",
|
|
79
|
-
"backward": "โฎ๏ธ Backward",
|
|
80
|
-
"start": "๐ Start",
|
|
81
|
-
"stop": "โน๏ธ Stop",
|
|
82
|
-
"open": "๐ฅซ Open",
|
|
83
|
-
"close": "๐ฆ Close",
|
|
84
|
-
"enter": "๐ก Enter",
|
|
85
|
-
"exit": "๐ช Exit",
|
|
86
|
-
"begin": "๐บ๏ธ Begin",
|
|
87
|
-
"end": "๐ฌ End",
|
|
88
|
-
"load": "๐ Load",
|
|
89
|
-
"unload": "๐ป Unload",
|
|
90
|
-
"resolve": "๐ค Resolve",
|
|
91
|
-
"reject": "๐งฑ Reject",
|
|
92
|
-
"done": "๐ Done",
|
|
93
|
-
"data": "๐ก Data",
|
|
94
|
-
"finish": "๐ Finish",
|
|
95
|
-
"complete": "โ
Complete",
|
|
96
|
-
"create": "๐จ Create",
|
|
97
|
-
"destroy": "๐ฃ Destroy",
|
|
98
|
-
"write": "๐ Write",
|
|
99
|
-
"save": "๐พ Save",
|
|
100
|
-
"delete": "๐งจ Delete",
|
|
101
|
-
"set": "๐ Set",
|
|
102
|
-
"get": "๐ซด Get",
|
|
103
|
-
"put": "๐ค Put",
|
|
104
|
-
"push": "๐ซธ Push",
|
|
105
|
-
"pull": "๐ Pull",
|
|
106
|
-
"search": "๐ Search",
|
|
107
|
-
"memory": "๐ญ Memory",
|
|
108
|
-
"signature": "โ๏ธ Response",
|
|
109
|
-
"invalid": "๐ INVALID!",
|
|
110
|
-
"valid": "๐ VALID!",
|
|
111
|
-
"abort": "๐ ABORT!",
|
|
112
|
-
"error": "โ ERROR!",
|
|
113
|
-
"help": "๐ Help",
|
|
114
|
-
"authorized": "๐ Authorized",
|
|
115
|
-
"unauthorized": "๐ดโโ ๏ธ Unauthorized",
|
|
116
|
-
"Done": "โ๏ธ Done",
|
|
117
|
-
"glitch": "๐ก Glitch",
|
|
118
|
-
"intruder": "๐ฆนโโ๏ธ Intruder",
|
|
119
|
-
"snooper": "๐ Snooper",
|
|
120
|
-
"scam": "๐
โโ๏ธ Scam",
|
|
121
|
-
"fraud": "โผ๏ธ Fraud",
|
|
122
|
-
"crime": "๐ Crime",
|
|
123
|
-
"official": "๐ซก Official",
|
|
124
|
-
"unofficial": "๐คฅ Unofficial",
|
|
125
|
-
"approved": "๐๏ธ Approved",
|
|
126
|
-
"denied": "๐ Denied",
|
|
127
|
-
"secure": "๐ Secure"
|
|
128
|
-
},
|
|
129
|
-
"action": false,
|
|
130
|
-
"actions": {
|
|
131
|
-
"init": "๐ Init",
|
|
132
|
-
"wait": "โณ Waiting",
|
|
133
|
-
"start": "๐ฌ Start",
|
|
134
|
-
"enter": "๐ก Enter",
|
|
135
|
-
"exit": "๐ช Exit",
|
|
136
|
-
"stop": "๐ Stop",
|
|
137
|
-
"load": "๐ฆ Load",
|
|
138
|
-
"unload": "๐ฅก Unload",
|
|
139
|
-
"finish": "๐ Finish",
|
|
140
|
-
"complete": "โ
Complete",
|
|
141
|
-
"done": "โ๏ธ Done",
|
|
142
|
-
"ready": "๐ข Ready",
|
|
143
|
-
"question": "๐ Question",
|
|
144
|
-
"talk": "๐ข Talk",
|
|
145
|
-
"context": "๐ Context",
|
|
146
|
-
"prompt": "๐ Prompt",
|
|
147
|
-
"issue": "๐ซ Issue",
|
|
148
|
-
"find": "๐ Find",
|
|
149
|
-
"parse": "๐๏ธ Parse",
|
|
150
|
-
"view": "๐ View",
|
|
151
|
-
"insert": "๐ Insert",
|
|
152
|
-
"update": "๐ Update",
|
|
153
|
-
"delete": "๐๏ธ Delete",
|
|
154
|
-
"info": "๐โโ๏ธ Information",
|
|
155
|
-
"status": "๐ฅ Status",
|
|
156
|
-
"func": "๐ฆ Function",
|
|
157
|
-
"method": "โค๏ธโ๐ฅ Method",
|
|
158
|
-
"list": "๐ List",
|
|
159
|
-
"reply": "๐ฎ Reply",
|
|
160
|
-
"set": "๐ฝ๏ธ Set",
|
|
161
|
-
"get": "๐ค Get",
|
|
162
|
-
"send": "๐ Send",
|
|
163
|
-
"receive": "๐ฅ
Receive",
|
|
164
|
-
"return": "๐ Return",
|
|
165
|
-
"resolve": "โต๏ธ Resolve",
|
|
166
|
-
"reject": "โ Reject",
|
|
167
|
-
"write": "๐๏ธ Write",
|
|
168
|
-
"question_ask": "๐ฃ๏ธ Asked",
|
|
169
|
-
"question_ask_answer": "๐๏ธ Answered",
|
|
170
|
-
"question_cmd": "๐ช Command",
|
|
171
|
-
"question_answer": "๐ Answer",
|
|
172
|
-
|
|
173
|
-
"answer": "๐ก Answer",
|
|
174
|
-
"ask": "๐ฃ Ask",
|
|
175
|
-
|
|
176
|
-
"client": "๐จ Client",
|
|
177
|
-
"agent": "๐ต๏ธโโ๏ธ Agent",
|
|
178
|
-
"security": "๐ Security",
|
|
179
|
-
"support": "๐ฉน Support",
|
|
180
|
-
"services": "๐ ๏ธ Services",
|
|
181
|
-
"systems": "๐ฅ๏ธ Systems",
|
|
182
|
-
"networks": "๐ก Networks",
|
|
183
|
-
"legal": "๐๏ธ Legal",
|
|
184
|
-
"justice": "๐๏ธ Justice",
|
|
185
|
-
"authority": "๐ฎ Authority",
|
|
186
|
-
"defense": "๐ช Defense",
|
|
187
|
-
|
|
188
|
-
"invalid": "โ Invalid",
|
|
189
|
-
"states": "๐ป States",
|
|
190
|
-
"actions": "๐๏ธ Actions",
|
|
191
|
-
"zones": "Zones",
|
|
192
|
-
"feature": "๐ฅ Feature",
|
|
193
|
-
"features": "๐ฅ Features",
|
|
194
|
-
"contexts": "๐ Contexts",
|
|
195
|
-
"help": "๐ Help",
|
|
196
|
-
"error": "๐ด ERROR!",
|
|
197
|
-
"lawful": "๐ Lawful",
|
|
198
|
-
"unlawful": "๐ฟ Unlawful",
|
|
199
|
-
"audio": "๐ Audio",
|
|
200
|
-
"text": "๐ Text",
|
|
201
|
-
"image": "๐ Image",
|
|
202
|
-
"video": "๐ฝ๏ธ Video",
|
|
203
|
-
"signature": "โ๏ธ Signature",
|
|
204
|
-
"orders": "๐ช Orders",
|
|
205
|
-
"law": "๐ Law",
|
|
206
|
-
"decree": "๐ Decree"
|
|
207
|
-
},
|
|
208
|
-
"feature": false,
|
|
209
|
-
"features": {
|
|
210
|
-
"client": "๐จ Client",
|
|
211
|
-
"init": "๐ Init",
|
|
212
|
-
"security": "๐ Security",
|
|
213
|
-
"support": "๐ผ Support",
|
|
214
|
-
"services": "๐ ๏ธ Services",
|
|
215
|
-
"systems": "๐ฅ๏ธ๏ธ Systems",
|
|
216
|
-
"networks": "๐๏ธ๏ธ Networks",
|
|
217
|
-
"legal": "๐๏ธ๏ธ๏ธ Legal",
|
|
218
|
-
"justice": "๐๏ธ๏ธ Justice",
|
|
219
|
-
"authority": "๐๏ธ๏ธ Authority",
|
|
220
|
-
"defense": "๐ช๏ธ๏ธ Defense",
|
|
221
|
-
"cipher": "๐ Cipher",
|
|
222
|
-
"decipher": "๐ Decipher",
|
|
223
|
-
"promp": "๐ชต Prompt",
|
|
224
|
-
"getToday": "๐ Get Today",
|
|
225
|
-
"formatDate": "๐
Format Date",
|
|
226
|
-
"formatTime": "๐ฐ๏ธ Format Time",
|
|
227
|
-
"formatCurrency": "๐ฐ Format Currency",
|
|
228
|
-
"formatPercent": "% Format Percent",
|
|
229
|
-
"formatNumbert": "# Format Number",
|
|
230
|
-
"trimWords": "๐ Trim Words",
|
|
231
|
-
"dupes": "๐ Duplicates",
|
|
232
|
-
"info": "๐โโ๏ธ Info",
|
|
233
|
-
"status": "โค๏ธ Status",
|
|
234
|
-
"help": "๐ Help"
|
|
235
|
-
},
|
|
236
|
-
"message": "offline",
|
|
237
|
-
"messages": {
|
|
238
|
-
"init": "Initializing Deva",
|
|
239
|
-
"offline": "The Deva is OFFLINE.",
|
|
240
|
-
"noid": "NO ID WAS PROVIDED",
|
|
241
|
-
"notext": "NO TEXT WAS PROVIDED",
|
|
242
|
-
"nopacket": "NO PACKET WAS PROVIDED",
|
|
243
|
-
"method_not_found": "METHOD NOT FOUND",
|
|
244
|
-
"stop": "Stop Deva.",
|
|
245
|
-
"exit": "Exit Deva"
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
}
|