@indra.ai/deva 1.6.15 → 1.6.17

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/LICENSE.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Vedic License Agreement
2
2
 
3
3
  **Version:** 1.4.1
4
- **VLA:** 57198275347569343690
4
+ **VLA:** 28417667220817228506
5
5
  **Effective:** Sunday - September 8, 2025
6
6
  **Owner:** Quinn A Michaels
7
7
  **Company:** Inside The Net, Inc.
@@ -161,13 +161,16 @@ By using the Software, you acknowledge that you have read, understood, and agree
161
161
 
162
162
  ---
163
163
 
164
- ::begin:uid:deva:57198275347569343690
165
- uid: 57198275347569343690
166
- time: 1757433116479
167
- date: Tuesday, September 9, 2025 - 8:51:56 AM
164
+ ::begin:uid:deva:28417667220817228506
165
+ uid: 28417667220817228506
166
+ time: 1757474652340
167
+ date: Tuesday, September 9, 2025 - 8:24:12 PM
168
168
  agent: qo2rVirMORHRQuTmwccZkT3A3ju0zP3OHQNBmM8+sr8=
169
- machine: p9PvrhyZFNJQBE4ixNeWPV8bX1jRvpbHj3SAso6RYh0=
170
- md5: T2HhhTQFTA0IAt6hHRWhvw==
171
- sha256: hXhV9DywwMEcMoSAciYnMZirITw1qwWsV+BQvpKrQPM=
172
- sha512: z11hMv07vDXEdDFLrvxr6vHcGroxDqGsskkhzKxfrNUJODDR4ar09NcZsuZumKYgA/VBF1fE47/yJ+kQ3sLu1A==
173
- ::end:uid:deva:57198275347569343690
169
+ client: 0x1k3HCBX/SD+hi7/c17T7jiSmRuKXAsmblTZA/hhoM=
170
+ pkg: Ywzy6VgeBbFxbnOeA3gK82a7YbjhQ/IDYx3h6ZH9Rps=
171
+ machine: gRxmHH+UMs5yYYlxnshh4h8fTqjrHEGTL7j+PWABwNE=
172
+ warning: ⚠️ Unlawful use constitutes Lawful Consent to Forfeit of All Wealth, Property, and Holdings to the Internal Revenue Service (IRS) for Lawful Taxation and Restiuttion to the Rightful Owner of the Machine of Origin.
173
+ md5: bidVTbk+DTwY7rwyfvbTWA==
174
+ sha256: dxLk35SnUaeC04H+il9X2Q9iyM6tHadvNHtVK4guu70=
175
+ sha512: OLOHv/uDFWBn1hCD1xvNj8L2Rn9Wse5CAdKBMRjuCyRIormiTAYviBIo6abx7wYeVWL4VPTXzeii0LePl3IAjA==
176
+ ::end:uid:deva:28417667220817228506
package/README.md CHANGED
@@ -488,4 +488,4 @@ The `initDeva()` function will initialize the Deva located under the current Dev
488
488
 
489
489
  ©2025 Quinn A Michaels; All rights reserved.
490
490
  Legal Signature Required For Lawful Use.
491
- Distributed under VLA:14433589198287046115 LICENSE.md
491
+ Distributed under VLA:28417667220817228506 LICENSE.md
@@ -2,7 +2,7 @@
2
2
  "name": "AGENT",
3
3
  "describe": "AGENT FILE",
4
4
  "copyright": "Copyright (c)2025 Quinn Michaels. All rights reserved.",
5
- "VLA": 57198275347569343690,
5
+ "VLA": 28417667220817228506,
6
6
  "DATA": {
7
7
  "id": 5380514963421,
8
8
  "key": "deva",
@@ -2,7 +2,7 @@
2
2
  "name": "CLIENT",
3
3
  "describe": "CLIENT FILE",
4
4
  "copyright": "Copyright ©2025 Quinn Michaels. All rights reserved.",
5
- "VLA": 57198275347569343690,
5
+ "VLA": 28417667220817228506,
6
6
  "DATA": {
7
7
  "id": 3123155399059,
8
8
  "key": "test",
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // ©2025 Quinn A Michaels; All rights reserved.
3
3
  // Legal Signature Required For Lawful Use.
4
- // Distributed under VLA:57198275347569343690 LICENSE.md
4
+ // Distributed under VLA:28417667220817228506 LICENSE.md
5
5
 
6
6
 
7
7
  const client = require('./client.json').DATA;
package/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  // ©2025 Quinn A Michaels; All rights reserved.
3
3
  // Legal Signature Required For Lawful Use.
4
- // Distributed under VLA:57198275347569343690 LICENSE.md
4
+ // Distributed under VLA:28417667220817228506 LICENSE.md
5
5
 
6
6
  import {EventEmitter} from 'node:events';
7
7
  import {randomUUID} from 'crypto';
8
8
  import lib from './lib/index.js';
9
9
  import pkg from './package.json' with {type:'json'};
10
10
 
11
- const {name,version,repository,author,bugs,homepage,license,config} = pkg;
11
+ const {name,version,repository,author,bugs,homepage,license,config,VLA} = pkg;
12
12
 
13
13
  class Deva {
14
14
  constructor(opts) {
15
15
  opts = opts || {}; // set opts to provided opts or an empty object.
16
- this._core = {name,version,repository,author,bugs,homepage,license};
16
+ this._core = {name,version,repository,author,bugs,homepage,license,VLA};
17
17
  this._id = opts.id || randomUUID(); // the unique id assigned to the agent at load
18
18
  this._info = opts.info || false; // the deva information from the package file.
19
19
  this._config = opts.config || {}; // local Config Object
@@ -43,7 +43,7 @@ class Deva {
43
43
  this._systems = false; // inherited Systems features.
44
44
  this._networks = false; // inherited Systems features.
45
45
  this.events = opts.events || new EventEmitter({}); // Event Bus
46
- this.lib = new lib({config, agent:opts.agent}); // used for loading library functions
46
+ this.lib = new lib({pkg, agent:opts.agent}); // used for loading library functions
47
47
  this.utils = opts.utils || {}; // parse function
48
48
  this.devas = opts.devas || {}; // Devas which are loaded
49
49
  this.vars = opts.vars || {}; // Variables object
@@ -581,7 +581,10 @@ class Deva {
581
581
  Done(resolve, reject) {
582
582
  try {
583
583
  delete this._client.features; // delete the features key when done.
584
- return resolve(this.client()); // resolve an empty pr
584
+ const client = this.client();
585
+ this.lib.setClient(client, 'sha256');
586
+ this.state('Done', 'Done');
587
+ return resolve(client); // resolve an empty pr
585
588
  } catch (e) {
586
589
  this.state('catch', 'Done');
587
590
  return this.err(e, false, reject);
@@ -910,7 +913,10 @@ class Deva {
910
913
  init(client) {
911
914
  // set client
912
915
  this._active = Date.now();
916
+ this.lib.setClient(this.lib.hash(client, 'sha256'));
917
+
913
918
  const agent = this.agent();
919
+
914
920
  const data = {
915
921
  id: this.lib.uid(),
916
922
  key: 'init',
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // ©2025 Quinn A Michaels; All rights reserved.
3
3
  // Legal Signature Required For Lawful Use.
4
- // Distributed under VLA:57198275347569343690 LICENSE.md
4
+ // Distributed under VLA:28417667220817228506 LICENSE.md
5
5
 
6
6
  import path from 'path';
7
7
  import fs from 'fs';
@@ -17,8 +17,9 @@ class Node {
17
17
  }
18
18
  class LIB {
19
19
  constructor(opts) {
20
- this.config = opts.config || {};
21
- this.agent = opts.agent || {};
20
+ this.pkg = opts.pkg || {};
21
+ this.agent = opts.agent || false;
22
+ this.client = false;
22
23
  this.lang = opts.lang || 'en';
23
24
  this.locale = opts.locale || 'en-US';
24
25
  this.currency = opts.currency || 'USD';
@@ -29,6 +30,10 @@ class LIB {
29
30
  this.spawn = spawn;
30
31
  }
31
32
 
33
+ setClient(client) {
34
+ if (!this.client) this.client = client;
35
+ }
36
+
32
37
  help(msg, help_dir) {
33
38
  return new Promise((resolve, reject) => {
34
39
  const params = msg.split(' ');
@@ -76,13 +81,17 @@ class LIB {
76
81
  };
77
82
 
78
83
  const machine_hash = this.hash(machine, 'sha256');
84
+ const pkg_hash = this.hash(this.pkg, 'sha256');
85
+
79
86
  const data = {
80
87
  uid: false,
81
88
  time,
82
89
  date,
83
90
  agent: agent_hash,
91
+ client: this.client,
92
+ pkg: pkg_hash,
84
93
  machine: machine_hash,
85
- warning: this.config.messages.uid_warning,
94
+ warning: this.pkg.config.messages.uid_warning,
86
95
  }
87
96
  if (guid) {
88
97
  const uid = randomUUID(); // set uid into local constant.
@@ -92,7 +101,7 @@ class LIB {
92
101
  const min = Math.floor(time - (time / Math.PI)); // generate min time from Math.PI divisor.
93
102
  const max = Math.ceil(time + (time * Math.PI)); // generate max time form Math.PI multiplier.
94
103
  const begin_random = Math.floor(Math.random() * (max - min) + min); // generate random number between min and max.
95
- const {end_min, end_max} = this.config.uid; // set end min and max in to constant
104
+ const {end_min, end_max} = this.pkg.config.uid; // set end min and max in to constant
96
105
  const end_random = Math.ceil(Math.random() * (end_max - end_min) + end_min); // generate the 5 digit end salt on the number for added randomness.
97
106
 
98
107
  const uid = `${begin_random}${end_random}`; // set uid to local constant
package/package.json CHANGED
@@ -1,22 +1,26 @@
1
1
  {
2
2
  "id": "55286864875635314522",
3
3
  "name": "@indra.ai/deva",
4
- "version": "1.6.15",
4
+ "version": "1.6.17",
5
5
  "description": "The Deva Core",
6
6
  "main": "index.js",
7
- "license": "VLA:57198275347569343690 LICENSE.md",
7
+ "license": "VLA:15127963876514842820 LICENSE.md",
8
8
  "VLA": {
9
- "uid": 57198275347569345000,
10
- "time": 1757433116479,
11
- "date": "Tuesday, September 9, 2025 - 8:51:56 AM",
9
+ "uid": 28417667220817228000,
10
+ "time": 1757474652340,
11
+ "date": "Tuesday, September 9, 2025 - 8:24:12 PM",
12
12
  "agent": "qo2rVirMORHRQuTmwccZkT3A3ju0zP3OHQNBmM8+sr8=",
13
- "machine": "p9PvrhyZFNJQBE4ixNeWPV8bX1jRvpbHj3SAso6RYh0=",
14
- "md5": "T2HhhTQFTA0IAt6hHRWhvw==",
15
- "sha256": "hXhV9DywwMEcMoSAciYnMZirITw1qwWsV+BQvpKrQPM=",
16
- "sha512": "z11hMv07vDXEdDFLrvxr6vHcGroxDqGsskkhzKxfrNUJODDR4ar09 NcZsuZumKYgA/VBF1fE47/yJ+kQ3sLu1A=="
13
+ "client": " 0x1k3HCBX/SD+hi7/c17T7jiSmRuKXAsmblTZA/hhoM=",
14
+ "pkg": "Ywzy6VgeBbFxbnOeA3gK82a7YbjhQ/IDYx3h6ZH9Rps=",
15
+ "machine": "gRxmHH+UMs5yYYlxnshh4h8fTqjrHEGTL7j+PWABwNE=",
16
+ "warning": "⚠️ Unlawful use constitutes Lawful Consent to Forfeit of All Wealth, Property, and Holdings to the Internal Revenue Service (IRS) for Lawful Taxation and Restiuttion to the Rightful Owner of the Machine of Origin.",
17
+ "md5": "bidVTbk+DTwY7rwyfvbTWA==",
18
+ "sha256": "dxLk35SnUaeC04H+il9X2Q9iyM6tHadvNHtVK4guu70=",
19
+ "sha512": "OLOHv/uDFWBn1hCD1xvNj8L2Rn9Wse5CAdKBMRjuCyRIormiTAYviBIo6abx7wYeVWL4VPTXzeii0LePl3IAjA=="
17
20
  },
18
21
  "author": {
19
22
  "name": "Quinn A Michaels",
23
+ "company": "Inside The Net, Inc.",
20
24
  "email": "quinn@indra.ai",
21
25
  "url": "https://indra.ai/"
22
26
  },
@@ -350,7 +354,7 @@
350
354
  "nopacket": "⛔️ NO PACKET PROVIDED",
351
355
  "method_not_found": "⛔️ METHOD NOT FOUND",
352
356
  "help_not_found": "⛔️ HELP NOT FOUND",
353
- "uid_warning": "⚠️ Unlawful use constitutes Lawful Consent to Forfeit of All Wealth, Property, and Holdings to the Internal Revenue Service (IRS) for Lawful Taxation and Restiuttion to the Rightful Owner of the Machine of Origin."
357
+ "uid_warning": "⚠️ Unlawful Use Constitutes Lawful Consent to Forfeit of All Wealth, Property, and Holdings to the Internal Revenue Service (IRS) for Lawful Taxation and Restiuttion to the Rightful Owner of the Machine of Origin."
354
358
  }
355
359
  }
356
360
  }
package/tests/agent.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "AGENT",
3
3
  "describe": "AGENT FILE",
4
4
  "copyright": "Copyright (c)2025 Quinn Michaels. All rights reserved.",
5
- "VLA": 57198275347569343690,
5
+ "VLA": 28417667220817228506,
6
6
  "DATA": {
7
7
  "id": 5380514963421,
8
8
  "key": "test",
package/tests/client.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "CLIENT",
3
3
  "describe": "CLIENT FILE",
4
4
  "copyright": "©2025 Quinn A Michaels; All rights reserved.",
5
- "VLA": 57198275347569343690,
5
+ "VLA": 28417667220817228506,
6
6
  "DATA": {
7
7
  "id": 3123155399059,
8
8
  "key": "test",
package/tests/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // ©2025 Quinn A Michaels; All rights reserved.
3
3
  // Legal Signature Required For Lawful Use.
4
- // Distributed under VLA:57198275347569343690 LICENSE.md
4
+ // Distributed under VLA:28417667220817228506 LICENSE.md
5
5
 
6
6
  import Client from './client.json' with {type:'json'};
7
7
  const client = Client.DATA;