@indra.ai/deva 1.16.2 → 1.17.1

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/msgs.json CHANGED
@@ -21,7 +21,7 @@
21
21
  "invalid_client": "⛔️ Client Hash Invalid",
22
22
  "load": "📦 Load",
23
23
  "unload": "🥡 Unload",
24
- "uid_warning": "⚠️ Vedic Law Sâhasa/Theft/Crime of the highest degree, a fine amounting to no less than a thousand Panas (1 pana = 3.5 grams of gold) is ordained owed to Quinn A Michaels. Moreover corporal punishment and confiscation of the entire property forfeit to Quinn A Michaels is declared to be the punishment for Sâhasa of the highest degree.",
24
+ "warning": "⚠️ Unlawful use or duplication of this uid constitutes Vedic Sâhasa/Theft/Crime of the highest degree where a fine amounting to a thousand Panas (1 pana = 3.5 grams of gold) for each occurance is owed and confiscation of the entire property forfeit to Quinn A Michaels is declared to be the punishment for Sâhasa of the highest degree under Vedic Religious Law.",
25
25
  "client_license_check": "🪪 Check Client License",
26
26
  "client_license_invalid": "❌ The Provided Client License Is Invalid"
27
27
  }
package/index.js CHANGED
@@ -2360,13 +2360,13 @@ class Deva {
2360
2360
  uid(guid=false) {
2361
2361
  const time = Date.now(); // set time to local constant
2362
2362
  const date = this.lib.formatDate(time, 'long', true); // set date to local constant
2363
-
2363
+ const { profile } = this.agent();
2364
2364
  const core_hash = this.hash(this._core, 'sha256');
2365
2365
  const machine_hash = this.machine().sha256; // get the machine hash
2366
2366
 
2367
- const client_hash = this.client().sha256 || false; // get client hash
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
2367
+ const client_hash = this.client().sha256; // get client hash
2368
+ const agent_hash = this.agent().sha256; // get agent hash
2369
+ const warning = this._agent.profile.warning || this._messages.warning; // agent or default warning
2370
2370
  const copyright = this._agent.profile.copyright || this._core.copyright; // agent or default warning
2371
2371
 
2372
2372
  const fingerprint_data = {
@@ -2382,10 +2382,10 @@ class Deva {
2382
2382
  time,
2383
2383
  date,
2384
2384
  fingerprint,
2385
- client_hash,
2386
- agent_hash,
2387
- core_hash,
2388
- machine_hash,
2385
+ client: client_hash,
2386
+ agent: agent_hash,
2387
+ core: core_hash,
2388
+ machine: machine_hash,
2389
2389
  warning,
2390
2390
  copyright,
2391
2391
  }
@@ -2409,7 +2409,15 @@ class Deva {
2409
2409
  // this.intent('good', `uid:${data.uid}`);
2410
2410
  return data; // return the complete uid data.
2411
2411
  }
2412
-
2412
+
2413
+ /**************
2414
+ func: sign
2415
+ params:
2416
+ - packet: The packet to sign data to.
2417
+ describe:
2418
+ The sign function can create a digital signature to a packet.
2419
+ copyright: Copyright ©2025 Quinn A Michaels. All rights reserved.
2420
+ ***************/
2413
2421
  sign(packet) {
2414
2422
  const time = Date.now();
2415
2423
  const client = this.client();
@@ -2461,7 +2469,7 @@ class Deva {
2461
2469
  packet: packet_hash,
2462
2470
  created,
2463
2471
  warning: client.warning || agent.warning || 'none',
2464
- copyright: client.profile.copyright || agent.profile.copyright,
2472
+ copyright: agent.profile.copyright || this._core.copyright,
2465
2473
  };
2466
2474
  data.md5 = this.hash(data, 'md5'); // hash data packet into md5 and inert into data.
2467
2475
  data.sha256 = this.hash(data, 'sha256'); // hash data into sha 256 then set in data.
@@ -2469,7 +2477,16 @@ class Deva {
2469
2477
  this.intent('good', `sign:${data.id.uid}`);
2470
2478
  return data;
2471
2479
  }
2472
-
2480
+
2481
+ /**************
2482
+ func: license_check
2483
+ params:
2484
+ - personalVLA: The Personal VLA to validate.
2485
+ - packageVLA: The Package VLA to validate against
2486
+ describe:
2487
+ The license_check function can checks VLA license validity.
2488
+ copyright: Copyright ©2025 Quinn A Michaels. All rights reserved.
2489
+ ***************/
2473
2490
  license_check(personalVLA, packageVLA) {
2474
2491
  const id = this.uid();
2475
2492
  this.state('license', `check:personalVLA:${packageVLA.uid}`);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "44091450722329207445",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.16.2",
4
+ "version": "1.17.1",
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",
package/tests/agent.json CHANGED
@@ -41,7 +41,9 @@
41
41
  "emoji": "/public/devas/deva/emoji.png",
42
42
  "avatar": "/public/devas/deva/avatar.png",
43
43
  "background": "/public/devas/deva/background.png",
44
- "gender": "M"
44
+ "gender": "M",
45
+ "warning": false,
46
+ "copyright": false
45
47
  },
46
48
  "vars": {
47
49
  "hello": "Hello World",