@indra.ai/deva.vector 0.0.20 → 0.0.22

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 ADDED
@@ -0,0 +1,85 @@
1
+ # Vedic License Agreement
2
+
3
+ **Version:** 1.1
4
+ **Effective:** Sunday - September 7, 2025
5
+ **Owner:** Quinn A Michaels
6
+ **Email:** quinn@indra.ai
7
+
8
+ This license agreement (“Agreement”) governs the use of the Indra.ai (“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.
9
+
10
+ ## Ownership
11
+
12
+ Software is the sole proprietary property of Quinn A Michaels (“Owner”). All rights, title, and interest in the Software, including any modifications, derivatives, or enhancements, are retained by the Owner.
13
+
14
+ **Vedic Laws:**
15
+
16
+ - A righteous king shall apply this law of fines in villages and castes (gati) to those who break an agreement.
17
+ - He who damages the goods of another, be it intentionally or unintentionally, shall give satisfaction to the owner and pay to the owner a fine equal to the damage caused.
18
+ - A Kshatriya, a Vaisya, and a Sudra who are unable to pay a fine, shall discharge the debt by labour. A Brahmana shall pay it by installments.
19
+
20
+ ## Grant of License
21
+
22
+ Use of the Software is strictly prohibited without a valid, hand-signed legal authorization from the Owner. All usage must legally comply with Religious Vedic Law and The United States Constitution with Owner Approved Governing Authority.
23
+
24
+ **Vedic Laws:**
25
+
26
+ - Each partner is responsible for what has been lost by his want of care, or in consequence of his acting against the instructions of, or without authorization from, all the other coparceners.
27
+
28
+
29
+ ## Restricted Use
30
+
31
+ **You are expressly prohibited from:**
32
+
33
+ 1. Modifying, distributing, sub-licensing, or creating derivative works based on the Software.
34
+ 2. Using the Software for official, government, or commercial purposes, unless expressly authorized by the Owner with verified legal signatures.
35
+ 3. Reverse engineering, decompiling, or disassembling the Software.
36
+ 4. Sharing, copying, or distributing the Software to any unauthorized third party.
37
+ 5. Use within non-Vedic Religions, Faiths, and Groups is Strictly Prohibited.
38
+
39
+ ## Unauthorized Use
40
+
41
+ Any unauthorized use of the Software constitutes unlawful use under Vedic Law and subjects the violator to Vedic fines and sanctions. Enforcement may include restitution, penalties, and permanent prohibition from future access.
42
+
43
+ **Vedic Laws:**
44
+ - A contract made by a person intoxicated, or insane, or grievously disordered (by disease and so forth), or wholly dependent, by an infant or very aged man, or by an unauthorized party is invalid.
45
+
46
+ ## Revocation of Access
47
+
48
+ The Owner reserves the right to revoke access to the Software at any time, for any reason, without prior notice.
49
+
50
+ **Vedic Laws:**
51
+
52
+ - A fraudulent mortgage or sale, a fraudulent gift or acceptance, and (any transaction) where he detects fraud, the (judge) shall declare null and void.
53
+
54
+ ## Warranty
55
+
56
+ The Software is provided “as-is,” without any warranties, express or implied, including but not limited to warranties of merchantability or fitness for a particular purpose.
57
+
58
+ ## Limitation of Liability
59
+
60
+ To the maximum extent permitted by law, the Owner shall not be liable for any damages arising out of or related to the use of the Software, including but not limited to direct, indirect, incidental, or consequential damages.
61
+
62
+ ## Governing Law
63
+
64
+ This Agreement shall be governed by and construed in accordance with the Laws of the Vedic Religion and it's Owner Approved Governing Authority.
65
+
66
+ **Vedic Laws**
67
+
68
+ - That agreement which has been made contrary to the law or to the settled usage of the virtuous, can have no legal force, though it be established by proofs.
69
+
70
+ ## Entire Agreement
71
+
72
+ This Agreement constitutes the entire understanding between you and the Owner concerning the Software and supersedes all prior agreements.
73
+
74
+ By using the Software, you acknowledge that you have read, understood, and agree to be bound by this Agreement.
75
+
76
+
77
+ ©2025 Quinn A Michaels; All rights reserved.
78
+
79
+ ::begin:uid:vector:55542255017902542863
80
+ uid: 55542255017902542863
81
+ created: 1757271961217
82
+ md5: YwzeUVG/E7OsEWoq7+zs5g==
83
+ sha256: 3O/+405tQk+bZPT+jlnvJvuE9XX8LS+tg0/siGiFOoU=
84
+ sha512: AEDfSJPu1Gv6HoqrWixW+/KRTQgKatgSKCMU9KerCCtr+1KE4aq/rHLAxLTZcgu03HP72q51MbqcArrJz5LfoQ==
85
+ ::end:uid:vector:55542255017902542863
@@ -3,166 +3,7 @@ export default {
3
3
  const vector = await this.methods.sign('vector', 'default', packet);
4
4
  return vector;
5
5
  },
6
-
7
- async sign(key, type, packet) {
8
- this.state('set', `${key}:sign:${type}:${packet.id}`);
9
- const transport = packet.id; // set the transport id from the packet id.
10
-
11
- this.zone(key, `${key}:sign:${type}:${transport}`); // set the zone
12
- this.feature(key, `${key}:sign:${type}:${transport}`); // set the feature
13
- this.context(key, `${key}:sign:${type}:${transport}`); // set the agent context to proxy.
14
- this.action('method', `${key}:sign:${type}:${transport}`); // set the action method to proxy.
15
-
16
- this.state('set', `${key}:sign:${type}:uid:${transport}`); //set the uid state
17
- const uid = this.lib.uid(true); // The UID
18
-
19
- this.state('set', `${key}:sign:${type}:time:${transport}`); //set the time state
20
- const time = Date.now(); // current timestamp
21
-
22
- this.state('created', `${key}:sign:${type}:created:${transport}`); //set the created state
23
- const created = this.lib.formatDate(time, 'long', true); // Formatted created date.
24
-
25
- this.state('set', `${key}:sign:${type}:concerns:${transport}`); //set the concerns
26
- const {concerns} = this[key](); // load the Guard profile
27
-
28
- this.state('set', `${key}:sign:${type}:agent:${transport}`); //set the agent state
29
- const agent = this.agent(); // the agent processing the proxy
30
-
31
- this.state('set', `${key}:sign:${type}:client:${transport}`); //set the client state
32
- const client = this.client(); // the client requesting the proxy
33
-
34
- this.state('set', `${key}:sign:${type}:expires:${transport}`); //set the time state
35
- const expires = time + (client.expires || agent.expires || 10000); // signature expires in milliseconds
36
-
37
- this.state('set', `${key}:sign:${type}:meta:${transport}`); //set the meta state
38
- const {meta} = packet.q; // set the meta information from the packet question.
39
-
40
- this.state('set', `${key}:sign:${type}:params:${transport}`); //set the meta state
41
- const {params} = meta; // set params from the meta information.
42
-
43
- this.state('set', `${key}:sign:${type}:opts:${transport}`); //set the opts state
44
- const opts = this.lib.copy(params); // copy the params and set as opts.
45
-
46
- this.state('set', `${key}:sign:${type}:command:${transport}`); //set the opts state
47
- const command = opts.shift(); // extract the command first array item out of opts.
48
-
49
- this.state('set', `${key}:sign:${type}:message:${transport}`); //set the message state
50
- const message = packet.q.text; // set packet.q.text as the message of the proxy.
51
-
52
- this.state('set', `${key}:sign:${type}:container:${transport}`); //set the message state
53
- const container = `OM:${key.toUpperCase()}:${client.profile.container.split(' ').join(':').toUpperCase()}`; // set container string.
54
-
55
- this.state('set', `${key}:sign:${type}:write:${transport}`); //set the message state
56
- const write = client.profile.write; // set write string.
57
-
58
- // hash the agent profile for security
59
- this.state('hash', `${key}:sign:${type}:packet:sha256:${transport}`);
60
- const packet_hash = this.lib.hash(packet, 'sha256');
61
-
62
- // hash the agent profile for security
63
- this.state('hash', `${key}:sign:${type}:agent:sha256:${transport}`);
64
- const agent_hash = this.lib.hash(agent, 'sha256');
65
-
66
- // hash the agent profile for security
67
- this.state('hash', `${key}:sign:${type}:client:sha256:${transport}`);
68
- const client_hash = this.lib.hash(client, 'sha256');
69
-
70
- // hash the agent profile for security
71
- this.state('hash', `${key}:sign:${type}:laws:sha256:${transport}`);
72
- const laws_hash = this.lib.hash(agent.laws || client.laws, 'sha256');
73
-
74
- // hash the agent profile for security
75
- this.state('hash', `${key}:sign:${type}:token:${transport}`);
76
- const token = this.lib.hash(`${key} ${client.profile.token} ${transport}`, 'sha256');
77
-
78
6
 
79
- this.state('set', `${key}:sign:${type}:write:${transport}`); // set the state to set data
80
- // data packet
81
- const data = {
82
- uid,
83
- transport,
84
- time,
85
- expires,
86
- container,
87
- write,
88
- message,
89
- caseid: client.profile.caseid,
90
- opts: opts.length? `.${opts.join('.')}` : '',
91
- name: client.profile.name,
92
- fullname: client.profile.fullname,
93
- emojis: client.profile.emojis,
94
- company: client.profile.company,
95
- client: client_hash,
96
- agent: agent_hash,
97
- packet: packet_hash,
98
- laws: laws_hash,
99
- warning: agent.warning || client.warning || 'none',
100
- token,
101
- concerns,
102
- meta,
103
- params,
104
- command,
105
- created,
106
- copyright: client.profile.copyright,
107
- };
108
-
109
- this.state('hash', `${key}:sign:${type}:md5:${transport.uid}`); // set state to secure hashing
110
- data.md5 = this.lib.hash(data, 'md5'); // hash data packet into md5 and inert into data.
111
-
112
- this.state('hash', `${key}:sign:${type}:sha256:${transport.uid}`); // set state to secure hashing
113
- data.sha256 = this.lib.hash(data, 'sha256'); // hash data into sha 256 then set in data.
114
-
115
- this.state('hash', `${key}:sign:${type}:sha512:${transport.uid}`); // set state to secure hashing
116
- data.sha512 = this.lib.hash(data, 'sha512'); // hash data into sha 512 then set in data.
117
-
118
- // Text data that is joined by line breaks and then trimmed.
119
- this.state('set', `${key}:sign:${type}:text:${transport.uid}`); // set state to text for output formatting.
120
- const text = [
121
- `::::`,
122
- `::BEGIN:${data.container}:${data.transport.uid}`,
123
- `#${key}.${type}${data.opts} ${write}? if yes ${write} ${data.message} while dropping a 💩🪣💣turdbucket.bombs on the violators who fail to issue proper chain of custody.`,
124
- '\n---\n',
125
- 'Signed',
126
- data.fullname,
127
- data.emojis,
128
- '\n',
129
- `::begin:${key}:${type}:${transport.uid}`,
130
- `transport: ${data.transport.uid}`,
131
- `time: ${data.time}`,
132
- `expires: ${data.expires}`,
133
- `name: ${data.name}`,
134
- `fullname: ${data.fullname}`,
135
- `company: ${data.company}`,
136
- `caseid: ${data.caseid}`,
137
- `agent: ${data.agent}`,
138
- `client: ${data.client}`,
139
- `packet: ${data.packet}`,
140
- `token: ${data.token}`,
141
- `laws: ${data.laws}`,
142
- `warning: ${data.warning}`,
143
- `created: ${data.created}`,
144
- `copyright: ${data.copyright}`,
145
- `md5: ${data.md5}`,
146
- `sha256: ${data.sha256}`,
147
- `sha512: ${data.sha512}`,
148
- `::end:${key}:${type}${data.transport.uid}`,
149
- `::END:${data.container}:${data.transport.uid}`,
150
- `::::`
151
- ].join('\n').trim();
152
-
153
- // send the text data to #feecting to parse and return valid text, html, and data.
154
- this.action('question', `${key}:sign:${type}:write:${transport.uid}`); // action set to feecting parse
155
- const feecting = await this.question(`${this.askChr}feecting parse:${transport.uid} ${text}`); // parse with feecting agent.
156
-
157
- this.state('return', `${key}:sign:${type}:return:${transport.uid}`); // set the state to return proxy
158
- return {
159
- text: feecting.a.text,
160
- html: feecting.a.html,
161
- data,
162
- }
163
-
164
- },
165
-
166
7
  async echo(key, type, packet) {
167
8
 
168
9
  const {id, agent, client, text, created, md5, sha256, sha512} = packet[type];
package/index.js CHANGED
@@ -35,10 +35,10 @@ const VECTOR = new Deva({
35
35
  },
36
36
  listeners: {
37
37
  'devacore:question'(packet) {
38
- const echo = this.methods.echo('vector', 'q', packet);
38
+ this.methods.echo(agent.key, 'q', packet);
39
39
  },
40
40
  'devacore:answer'(packet) {
41
- const echo = this.methods.echo('vector', 'a', packet);
41
+ this.methods.echo(agent.key, 'a', packet);
42
42
  }
43
43
  },
44
44
  modules: {},
package/package.json CHANGED
@@ -1,10 +1,24 @@
1
1
  {
2
- "id": "33555f8a-707d-4fc9-ae19-ba09036473d4",
2
+ "id": "47853658710534513323",
3
3
  "name": "@indra.ai/deva.vector",
4
- "version": "0.0.20",
5
- "author": "Quinn Michaels",
6
- "license": "MIT",
7
- "copyright": "2025",
4
+ "version": "0.0.22",
5
+ "license": "VLA:55542255017902542863 LICENSE.md",
6
+ "author": {
7
+ "name": "Quinn A Michaels",
8
+ "email": "quinn@indra.ai",
9
+ "url": "https://indra.ai/"
10
+ },
11
+ "funding": [
12
+ {
13
+ "type": "paypal",
14
+ "url": "https://paypal.me/rahulaclub"
15
+ },
16
+ {
17
+ "type": "patreon",
18
+ "url": "https://patreon.com/rahulaclub"
19
+ }
20
+ ],
21
+ "copyright": "(c)2025, Quinn A Michaels; All Rights Reserved.",
8
22
  "description": "The Vector Deva.",
9
23
  "main": "index.js",
10
24
  "type": "module",
@@ -28,11 +42,11 @@
28
42
  },
29
43
  "homepage": "https://deva.space/devas/vector",
30
44
  "dependencies": {
31
- "@indra.ai/deva": "^1.5.56"
45
+ "@indra.ai/deva": "^1.6.2"
32
46
  },
33
47
  "data": {
34
48
  "agent": {
35
- "id": "ee657d59-01fb-427f-bc7a-fc96e56d7541",
49
+ "id": "49992571567879423733",
36
50
  "key": "vector",
37
51
  "expires": 60000,
38
52
  "prompt": {
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 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.