@indra.ai/deva 1.1.128 → 1.2.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.
Files changed (4) hide show
  1. package/LICENSE.md +7 -0
  2. package/index.js +26 -3
  3. package/package.json +20 -3
  4. package/LICENSE +0 -21
package/LICENSE.md ADDED
@@ -0,0 +1,7 @@
1
+ ## PRIVATE LICENSE
2
+
3
+ Copyright (c) 2023 Quinn Michaels
4
+
5
+ DUE TO GROSS MISUSE OF QUINN MICHAELS TECHNOLOGY THE DEVA CORE REQUIRES A PERSONAL LEGAL SIGNATURE FOR AUTHORIZED USE. THIS MEANS YOU CAN USE IT AT YOUR OWN RISK BECAUSE THE CODE IS PUBLIC, BUT FOR AUTHORIZED USAGE A LEGAL PHYSICAL SIGNED AGREEMENT IS REQUIRED.
6
+
7
+ For licensing please contact @quinnmichaels over #Twitter or at his public email of quinnmichaels@gmail.com for more information.
package/index.js CHANGED
@@ -4,8 +4,10 @@
4
4
  const {EventEmitter} = require('events');
5
5
  const fs = require('fs');
6
6
  const path = require('path');
7
+ const os = require('os');
8
+ const crypto = require('crypto');
9
+ const { createHash, randomUUID, createCipheriv, createDecipheriv, randomBytes } = crypto;
7
10
 
8
- const { createHash, randomUUID, createCipheriv, createDecipheriv, randomBytes } = require('crypto');
9
11
  const config = require('./config.json').DATA // load the deva core configuration data.
10
12
  class Deva {
11
13
  constructor(opts) {
@@ -26,9 +28,31 @@ class Deva {
26
28
  this._business = false; // inherited Business features.
27
29
  this._legal = false; // inherited Legal features.
28
30
  this._assistant = false; // inherited Assistant features.
31
+ this.os = require('os'); // It is used to provide basic operating system related utility functions.
32
+ this.buffer = require('buffer'); // It is used to provide basic operating system related utility functions.
33
+ this.util = require('util'); // The supports the needs of internal APIs.
34
+ this.report = require('report'); // It is used to provide basic operating system related utility functions.
35
+ this.querystring = require('querystring'); // Provides utilities for parsing and formatting URL query strings.
36
+ this.readline = require('readline'); // Provides utilities for parsing and formatting URL query strings.
37
+ this.fs = require('fs'); // this is so file system functions are in the core.
38
+ this.path = require('path'); // this is so we can get path in the system.
39
+ this.crypto = require('crypto'); // It is used to support cryptography for encryption and decryption.
40
+ this.zlib = require('zlib'); // provides compression functionality using Gzip, Deflate/Inflate, and Brotli.
41
+ this.console = require('console'); // It is used to write data to console.
42
+ this.readline = require('readline/promises'); // It is used to write data to console.
43
+ this.cluster = require('cluster'); // used to take advantage of multi-core systems.
44
+ this.dns = require('dns'); // It is used to lookup and resolve on domain names.
45
+ this.net = require('net'); // It used to create TCP server/client communicate using TCP protocol.
46
+ this.http = require('http'); // It is used to create Http server and Http client.
47
+ this.https = require('https'); // It is used to create Http server and Http client.
48
+ this.stream = require('stream/promises'); // It is used to stream data between two entities.
49
+ this.inspector = require('inspector'); // It is used to stream data between two entities.
50
+ this.url = require('url'); // It is used for URL resolution and parsing.
51
+ this.vm = require('vm'); // It provides an access to virtual machine to compile and execute code.
52
+ this.assert = require('assert'); // It is used for testing itself.
29
53
  this.events = opts.events || new EventEmitter({}); // Event Bus
30
54
  this.lib = opts.lib || {}; // used for loading library functions
31
- this.utils = opts.util || {}; // parse function
55
+ this.utils = opts.utils || {}; // parse function
32
56
  this.devas = opts.devas || {}; // Devas which are loaded
33
57
  this.vars = opts.vars || {}; // Variables object
34
58
  this.listeners = opts.listeners || {}; // local Listeners
@@ -753,7 +777,6 @@ class Deva {
753
777
  packet_answer.meta.hash = this.hash(packet_answer);
754
778
 
755
779
  packet.a = packet_answer;
756
- this.prompt('TALK TALK TALK ANSWER')
757
780
  this.action('answer_talk');
758
781
  this.talk(config.events.answer, this.copy(packet)); // global talk event
759
782
  return this.finish(packet, resolve) // resolve the packet to the caller.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indra.ai/deva",
3
- "version": "1.1.128",
3
+ "version": "1.2.1",
4
4
  "description": "The Deva Core",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,12 +11,29 @@
11
11
  "url": "git+https://github.com/indraai/deva.git"
12
12
  },
13
13
  "keywords": [
14
+ "quinn",
15
+ "quinn michaels",
16
+ "deva core",
14
17
  "indra",
15
18
  "deva",
16
19
  "ai"
17
20
  ],
18
- "author": "Quinn Michaels",
19
- "license": "MIT",
21
+ "license": "SEE LICENSE IN LICENSE.md",
22
+ "author": {
23
+ "name": "Quinn Michaels",
24
+ "email": "quinnmichaels@gmail.com",
25
+ "url": "https://quinnmichaels.com/"
26
+ },
27
+ "funding": [
28
+ {
29
+ "type": "paypal",
30
+ "url": "https://example.com/rahulaclub"
31
+ },
32
+ {
33
+ "type": "patreon",
34
+ "url": "https://www.patreon.com/rahulaclub"
35
+ }
36
+ ],
20
37
  "bugs": {
21
38
  "url": "https://github.com/indraai/deva/issues"
22
39
  },
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Quinn Michaels
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.