@indra.ai/deva 1.62.2 → 1.62.4
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.yml +3 -2
- package/config/index.js +1 -20
- package/index.js +10 -15
- package/package.json +1 -1
- package/tests/client.json +1 -66
package/_config.yml
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
# Deva Core CI Config
|
|
2
|
-
# Copyright ©2000-2026 Quinn Arjuna Michaels; All rights reserved.
|
|
2
|
+
# Copyright ©2000-2026 Quinn Arjuna America Michaels; All rights reserved.
|
|
3
3
|
# Owner Signature Required For Lawful Use.
|
|
4
4
|
# Distributed under VLA:23221940810208468106 LICENSE.md
|
|
5
5
|
# Friday, October 9, 2026 - 7:47:02 AM PST
|
|
6
6
|
|
|
7
7
|
author:
|
|
8
|
-
name: Quinn Arjuna Michaels
|
|
8
|
+
name: Quinn Arjuna America Michaels
|
|
9
9
|
email: "quinn@indra.ai"
|
|
10
10
|
|
|
11
11
|
google_analytics: UA-126646842-1
|
|
12
|
+
theme: jekyll-theme-minimal
|
package/config/index.js
CHANGED
|
@@ -114,34 +114,15 @@ export default {
|
|
|
114
114
|
onfunc: 'onExit',
|
|
115
115
|
clear: [
|
|
116
116
|
'_license',
|
|
117
|
-
'_identity',
|
|
118
|
-
'_feecting',
|
|
119
117
|
'_error',
|
|
120
118
|
'_log',
|
|
121
119
|
'_data',
|
|
122
120
|
'_report',
|
|
123
|
-
'_veda',
|
|
124
|
-
'_indu',
|
|
125
|
-
'_indra',
|
|
126
|
-
'_soma',
|
|
127
|
-
'_king',
|
|
128
|
-
'_owner',
|
|
129
|
-
'_vector',
|
|
130
|
-
'_intelligence',
|
|
131
|
-
'_treasury',
|
|
132
|
-
'_justice',
|
|
133
|
-
'_authority',
|
|
134
121
|
'_legal',
|
|
135
122
|
'_security',
|
|
136
|
-
'_guard',
|
|
137
|
-
'_defense',
|
|
138
|
-
'_shield',
|
|
139
|
-
'_wall',
|
|
140
|
-
'_proxy',
|
|
141
123
|
'_support',
|
|
142
124
|
'_services',
|
|
143
|
-
'_systems'
|
|
144
|
-
'_networks',
|
|
125
|
+
'_systems'
|
|
145
126
|
]
|
|
146
127
|
},
|
|
147
128
|
shutdown: {
|
package/index.js
CHANGED
|
@@ -35,8 +35,7 @@ class Deva {
|
|
|
35
35
|
this._support = false; // inherited Support features.
|
|
36
36
|
this._services = false; // inherited Service features.
|
|
37
37
|
this._systems = false; // inherited Systems features.
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
|
|
40
39
|
this.events = opts.events || new EventEmitter({}); // Event Bus
|
|
41
40
|
this.lib = new lib({pkg}); // used for loading library functions
|
|
42
41
|
this.utils = opts.utils || {}; // parse functions inside the deva
|
|
@@ -1026,18 +1025,20 @@ class Deva {
|
|
|
1026
1025
|
init(client) {
|
|
1027
1026
|
// set client
|
|
1028
1027
|
return new Promise((resolve, reject) => {
|
|
1029
|
-
// set the core hashes
|
|
1028
|
+
// manually set the core hashes to avoid stack overflow from calls
|
|
1029
|
+
// this is for the early core hashing needed for uid generation.
|
|
1030
1030
|
this._core.md5 = this.hash(this._core, 'md5'); // md5 the core and created.
|
|
1031
1031
|
this._core.sha256 = this.hash(this._core, 'sha256'); // sha256 the core, created, md5
|
|
1032
1032
|
this._core.sha512 = this.hash(this._core, 'sha512'); // sha512 the core, created, md5, sha256.
|
|
1033
1033
|
|
|
1034
|
+
// do the core license check on init.
|
|
1034
1035
|
const license_check = this.license_check(client.VLA, this._core.VLA);
|
|
1035
1036
|
if (!license_check) {
|
|
1036
|
-
this.prompt(this._messages.client_license_invalid);
|
|
1037
|
+
this.prompt(this._messages.client_license_invalid); // set license invalid prompt
|
|
1037
1038
|
return resolve(this._messages.client_license_invalid); // return if} license check fails
|
|
1038
1039
|
}
|
|
1039
1040
|
|
|
1040
|
-
this._active = Date.now();
|
|
1041
|
+
this._active = Date.now(); // after passes license check set _active date.
|
|
1041
1042
|
const id = this.uid();
|
|
1042
1043
|
const agent = this.agent();
|
|
1043
1044
|
|
|
@@ -1052,15 +1053,8 @@ class Deva {
|
|
|
1052
1053
|
created: Date.now(),
|
|
1053
1054
|
}
|
|
1054
1055
|
|
|
1055
|
-
|
|
1056
|
-
this.
|
|
1057
|
-
data.md5 = this.hash(data, 'md5');
|
|
1058
|
-
|
|
1059
|
-
this.action('hash', `start:sha256:${data.id.uid}`)
|
|
1060
|
-
data.sha256 = this.hash(data, 'sha256');
|
|
1061
|
-
|
|
1062
|
-
this.action('hash', `start:sha512:${data.id.uid}`)
|
|
1063
|
-
data.sha512 = this.hash(data, 'sha512');
|
|
1056
|
+
// stamp the init data
|
|
1057
|
+
const data_stamped = this._stamp(data, 'init', data.id.uid);
|
|
1064
1058
|
|
|
1065
1059
|
this.events.setMaxListeners(this.maxListeners);
|
|
1066
1060
|
this._assignInherit().then(() => {
|
|
@@ -1110,7 +1104,7 @@ class Deva {
|
|
|
1110
1104
|
this.action('return', `init:${data.id.uid}`); // action set to return
|
|
1111
1105
|
this.state('valid', `init:${data.id.uid}`); // state set to valid
|
|
1112
1106
|
this.intent('good', `init:${data.id.uid}`); // intent set to good
|
|
1113
|
-
return this.start(
|
|
1107
|
+
return this.start(data_stamped, resolve);
|
|
1114
1108
|
}).catch(err => {
|
|
1115
1109
|
this.state('catch', `init:${data.id.uid}`); // state set to catch
|
|
1116
1110
|
this.intent('bad', `init:${data.id.uid}`); // intent set to bad
|
|
@@ -1195,6 +1189,7 @@ class Deva {
|
|
|
1195
1189
|
if (this[item]) {
|
|
1196
1190
|
const this_item = this[item];
|
|
1197
1191
|
this.action('hash', `${agent.key}:config:${item}:${data.id.uid}`);
|
|
1192
|
+
// manually build hash for the config hash object for each agent key.
|
|
1198
1193
|
this.config.hash[agent.key][item] = this.hash(this_item, 'sha256');
|
|
1199
1194
|
}
|
|
1200
1195
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "23221940810208468106",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.62.
|
|
4
|
+
"version": "1.62.4",
|
|
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:23221940810208468106 LICENSE.md",
|
package/tests/client.json
CHANGED
|
@@ -66,16 +66,6 @@
|
|
|
66
66
|
"global": [],
|
|
67
67
|
"devas": {}
|
|
68
68
|
},
|
|
69
|
-
"identity": {
|
|
70
|
-
"concerns": [],
|
|
71
|
-
"global": [],
|
|
72
|
-
"devas": {}
|
|
73
|
-
},
|
|
74
|
-
"feecting": {
|
|
75
|
-
"concerns": [],
|
|
76
|
-
"global": [],
|
|
77
|
-
"devas": {}
|
|
78
|
-
},
|
|
79
69
|
"error": {
|
|
80
70
|
"concerns": [],
|
|
81
71
|
"global": [],
|
|
@@ -96,32 +86,7 @@
|
|
|
96
86
|
"global": [],
|
|
97
87
|
"devas": {}
|
|
98
88
|
},
|
|
99
|
-
"
|
|
100
|
-
"concerns": [],
|
|
101
|
-
"global": [],
|
|
102
|
-
"devas": {}
|
|
103
|
-
},
|
|
104
|
-
"automation": {
|
|
105
|
-
"concerns": [],
|
|
106
|
-
"global": {},
|
|
107
|
-
"devas": {}
|
|
108
|
-
},
|
|
109
|
-
"communication": {
|
|
110
|
-
"concerns": [],
|
|
111
|
-
"global": {},
|
|
112
|
-
"devas": {}
|
|
113
|
-
},
|
|
114
|
-
"treasury": {
|
|
115
|
-
"concerns": [],
|
|
116
|
-
"global": [],
|
|
117
|
-
"devas": {}
|
|
118
|
-
},
|
|
119
|
-
"justice": {
|
|
120
|
-
"concerns": [],
|
|
121
|
-
"global": [],
|
|
122
|
-
"devas": {}
|
|
123
|
-
},
|
|
124
|
-
"authority": {
|
|
89
|
+
"legal": {
|
|
125
90
|
"concerns": [],
|
|
126
91
|
"global": [],
|
|
127
92
|
"devas": {}
|
|
@@ -137,26 +102,6 @@
|
|
|
137
102
|
"global": [],
|
|
138
103
|
"devas": {}
|
|
139
104
|
},
|
|
140
|
-
"medical": {
|
|
141
|
-
"concerns": [],
|
|
142
|
-
"global": {},
|
|
143
|
-
"devas": {}
|
|
144
|
-
},
|
|
145
|
-
"legal": {
|
|
146
|
-
"concerns": [],
|
|
147
|
-
"global": [],
|
|
148
|
-
"devas": {}
|
|
149
|
-
},
|
|
150
|
-
"owner": {
|
|
151
|
-
"concerns": [],
|
|
152
|
-
"global": [],
|
|
153
|
-
"devas": {}
|
|
154
|
-
},
|
|
155
|
-
"simulation": {
|
|
156
|
-
"concerns": [],
|
|
157
|
-
"global": {},
|
|
158
|
-
"devas": {}
|
|
159
|
-
},
|
|
160
105
|
"support": {
|
|
161
106
|
"concerns": [],
|
|
162
107
|
"global": [],
|
|
@@ -176,16 +121,6 @@
|
|
|
176
121
|
"concerns": [],
|
|
177
122
|
"global": [],
|
|
178
123
|
"devas": {}
|
|
179
|
-
},
|
|
180
|
-
"networks": {
|
|
181
|
-
"concerns": [],
|
|
182
|
-
"global": [],
|
|
183
|
-
"devas": {}
|
|
184
|
-
},
|
|
185
|
-
"veda": {
|
|
186
|
-
"concerns": [],
|
|
187
|
-
"global": [],
|
|
188
|
-
"devas": {}
|
|
189
124
|
}
|
|
190
125
|
}
|
|
191
126
|
}
|