@indra.ai/deva.license 0.0.41 → 0.0.43

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.
Files changed (3) hide show
  1. package/LICENSE.md +2 -2
  2. package/index.js +12 -2
  3. package/package.json +1 -1
package/LICENSE.md CHANGED
@@ -7,9 +7,9 @@
7
7
  **Company:** Inside The Net, Inc.
8
8
  **Email:** quinn@indra.ai
9
9
  **Link:** https://indra.ai
10
- **Copyright:** ©2025 Quinn A Michaels Inside The Net, Inc.; All rights reserved.
10
+ **Copyright:** ©2025 Quinn A Michaels; All rights reserved.
11
11
 
12
- This license agreement (“Agreement”) governs the use of the Deva Core (“Software”). By accessing or using the Software, you agree to the terms and conditions set forth below. If you do not agree, you are prohibited from using the Software.
12
+ This license agreement (“Agreement”) governs the use of the License Deva (“Software”). By accessing or using the Software, you agree to the terms and conditions set forth below. If you do not agree, you are prohibited from using the Software.
13
13
 
14
14
  ## Ownership
15
15
 
package/index.js CHANGED
@@ -17,6 +17,8 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
17
17
 
18
18
  const info = {
19
19
  id: pkg.id,
20
+ license: pkg.license,
21
+ VLA: pkg.VLA,
20
22
  name: pkg.name,
21
23
  describe: pkg.description,
22
24
  version: pkg.version,
@@ -25,7 +27,6 @@ const info = {
25
27
  git: pkg.repository.url,
26
28
  bugs: pkg.bugs.url,
27
29
  author: pkg.author,
28
- license: pkg.license,
29
30
  copyright: pkg.copyright,
30
31
  };
31
32
 
@@ -213,14 +214,23 @@ const LICENSE = new Deva({
213
214
  });
214
215
  },
215
216
  },
217
+ onInit(data, resolve) {
218
+ const {personal} = this.license(); // get the license config
219
+ const agent_license = this.info().VLA; // get agent license
220
+ const license_check = this.license_check(personal, agent_license); // check license
221
+ // return this.start if license_check passes otherwise stop.
222
+ return license_check ? this.start(data, resolve) : this.stop(data, resolve);
223
+ },
216
224
  async onReady(data, resolve) {
217
225
  const {concerns, global} = this.license(); // get the license config
226
+ const {VLA} = this.info();
218
227
 
219
228
  const {uri,database} = global.mongo; // set the datase
220
229
 
221
230
  this.modules.client = new MongoClient(uri); // set the client module for the database.
222
231
  this.vars.database = database; // set the database into the local vars
223
- this.prompt(this.vars.messages.ready); // prompt message ready
232
+
233
+ this.prompt(`${this.vars.messages.ready} > VLA:${VLA.uid}`);
224
234
  return resolve(data); // resolve data.
225
235
  },
226
236
  onError(err, data) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "69323297767269114978",
3
3
  "name": "@indra.ai/deva.license",
4
- "version": "0.0.41",
4
+ "version": "0.0.43",
5
5
  "license": "VLA:69323297767269114978 LICENSE.md",
6
6
  "VLA": {
7
7
  "uid": "69323297767269114978",