@indra.ai/deva 1.16.0 → 1.16.2
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 +17 -8
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -2365,20 +2365,29 @@ class Deva {
|
|
|
2365
2365
|
const machine_hash = this.machine().sha256; // get the machine hash
|
|
2366
2366
|
|
|
2367
2367
|
const client_hash = this.client().sha256 || false; // get client hash
|
|
2368
|
-
const
|
|
2369
|
-
const
|
|
2370
|
-
const
|
|
2368
|
+
const agent_hash = this.agent().sha256 || false; // get agent hash
|
|
2369
|
+
const warning = this._agent.profile.uid_warning || this._messages.uid_warning; // agent or default warning
|
|
2370
|
+
const copyright = this._agent.profile.copyright || this._core.copyright; // agent or default warning
|
|
2371
2371
|
|
|
2372
|
+
const fingerprint_data = {
|
|
2373
|
+
client_hash,
|
|
2374
|
+
agent_hash,
|
|
2375
|
+
core_hash,
|
|
2376
|
+
machine_hash,
|
|
2377
|
+
};
|
|
2378
|
+
const fingerprint = this.hash(fingerprint_data, 'sha256');
|
|
2379
|
+
|
|
2372
2380
|
const data = {
|
|
2373
2381
|
uid: false,
|
|
2374
2382
|
time,
|
|
2375
2383
|
date,
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2384
|
+
fingerprint,
|
|
2385
|
+
client_hash,
|
|
2386
|
+
agent_hash,
|
|
2387
|
+
core_hash,
|
|
2388
|
+
machine_hash,
|
|
2380
2389
|
warning,
|
|
2381
|
-
copyright
|
|
2390
|
+
copyright,
|
|
2382
2391
|
}
|
|
2383
2392
|
if (guid) {
|
|
2384
2393
|
const uid = randomUUID(); // set uid into local constant.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "44091450722329207445",
|
|
3
3
|
"name": "@indra.ai/deva",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.2",
|
|
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:44091450722329207445 LICENSE.md",
|