@indra.ai/deva.security 0.0.54 → 0.0.55
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 +85 -0
- package/feature/methods.js +158 -1
- package/package.json +20 -6
- package/LICENSE +0 -21
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 Security 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.
|
|
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:security:18942163452364251159
|
|
80
|
+
uid: 18942163452364251159
|
|
81
|
+
created: 1757284762259
|
|
82
|
+
md5: 3b1pzLE2jK9aMGUgCw5tVg==
|
|
83
|
+
sha256: KjRW8sKmRl2Tzf73uyghLbin3Yk9Anr8eS2RDfgajgs=
|
|
84
|
+
sha512: HRtC7nr+KADsr5RMuUTxBJQPzKQW1Bpq+12KYAuVaiFRLhiwjuSe3I9o2SzSAPZguVsG6eTAD2D+FpomuFInYw==
|
|
85
|
+
::end:uid:security:18942163452364251159
|
package/feature/methods.js
CHANGED
|
@@ -105,6 +105,163 @@ export default {
|
|
|
105
105
|
},
|
|
106
106
|
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
async sign(key, type, packet) {
|
|
109
|
+
this.state('set', `${key}:sign:${type}:${packet.id.uid}`);
|
|
110
|
+
const transport = packet.id; // set the transport id from the packet id.
|
|
111
|
+
|
|
112
|
+
this.zone(key, `${key}:sign:${type}:${transport.uid}`); // set the zone
|
|
113
|
+
this.feature(key, `${key}:sign:${type}:${transport.uid}`); // set the feature
|
|
114
|
+
this.context(key, `${key}:sign:${type}:${transport.uid}`); // set the agent context to proxy.
|
|
115
|
+
this.action('method', `${key}:sign:${type}:${transport.uid}`); // set the action method to proxy.
|
|
116
|
+
|
|
117
|
+
this.state('set', `${key}:sign:${type}:uid:${transport.uid}`); //set the uid state
|
|
118
|
+
const id = this.lib.uid(true); // The UID
|
|
119
|
+
|
|
120
|
+
this.state('set', `${key}:sign:${type}:time:${transport.uid}`); //set the time state
|
|
121
|
+
const time = Date.now(); // current timestamp
|
|
122
|
+
|
|
123
|
+
this.state('created', `${key}:sign:${type}:created:${transport.uid}`); //set the created state
|
|
124
|
+
const created = this.lib.formatDate(time, 'long', true); // Formatted created date.
|
|
125
|
+
|
|
126
|
+
this.state('set', `${key}:sign:${type}:concerns:${transport.uid}`); //set the concerns
|
|
127
|
+
const {concerns} = this[key](); // load the Guard profile
|
|
128
|
+
|
|
129
|
+
this.state('set', `${key}:sign:${type}:agent:${transport.uid}`); //set the agent state
|
|
130
|
+
const agent = this.agent(); // the agent processing the proxy
|
|
131
|
+
|
|
132
|
+
this.state('set', `${key}:sign:${type}:client:${transport.uid}`); //set the client state
|
|
133
|
+
const client = this.client(); // the client requesting the proxy
|
|
134
|
+
|
|
135
|
+
this.state('set', `${key}:sign:${type}:expires:${transport.uid}`); //set the time state
|
|
136
|
+
const expires = time + (client.expires || agent.expires || 10000); // signature expires in milliseconds
|
|
137
|
+
|
|
138
|
+
this.state('set', `${key}:sign:${type}:meta:${transport.uid}`); //set the meta state
|
|
139
|
+
const {meta} = packet.q; // set the meta information from the packet question.
|
|
140
|
+
|
|
141
|
+
this.state('set', `${key}:sign:${type}:params:${transport.uid}`); //set the meta state
|
|
142
|
+
const {params} = meta; // set params from the meta information.
|
|
143
|
+
|
|
144
|
+
this.state('set', `${key}:sign:${type}:opts:${transport.uid}`); //set the opts state
|
|
145
|
+
const opts = this.lib.copy(params); // copy the params and set as opts.
|
|
146
|
+
|
|
147
|
+
this.state('set', `${key}:sign:${type}:command:${transport.uid}`); //set the opts state
|
|
148
|
+
const command = opts.shift(); // extract the command first array item out of opts.
|
|
149
|
+
|
|
150
|
+
this.state('set', `${key}:sign:${type}:message:${transport.uid}`); //set the message state
|
|
151
|
+
const message = packet.q.text; // set packet.q.text as the message of the proxy.
|
|
152
|
+
|
|
153
|
+
this.state('set', `${key}:sign:${type}:container:${transport.uid}`); //set the message state
|
|
154
|
+
const container = `OM:${key.toUpperCase()}:${transport.uid}`; // set container string.
|
|
155
|
+
|
|
156
|
+
this.state('set', `${key}:sign:${type}:write:${transport.uid}`); //set the message state
|
|
157
|
+
const write = client.profile.write; // set write string.
|
|
158
|
+
|
|
159
|
+
// hash the agent profile for security
|
|
160
|
+
this.state('hash', `${key}:sign:${type}:packet:sha256:${transport.uid}`);
|
|
161
|
+
const packet_hash = this.lib.hash(packet, 'sha256');
|
|
162
|
+
|
|
163
|
+
// hash the agent profile for security
|
|
164
|
+
this.state('hash', `${key}:sign:${type}:agent:sha256:${transport.uid}`);
|
|
165
|
+
const agent_hash = this.lib.hash(agent, 'sha256');
|
|
166
|
+
|
|
167
|
+
// hash the agent profile for security
|
|
168
|
+
this.state('hash', `${key}:sign:${type}:client:sha256:${transport.uid}`);
|
|
169
|
+
const client_hash = this.lib.hash(client, 'sha256');
|
|
170
|
+
|
|
171
|
+
// hash the agent profile for security
|
|
172
|
+
this.state('hash', `${key}:sign:${type}:laws:sha256:${transport.uid}`);
|
|
173
|
+
const laws_hash = this.lib.hash(agent.laws || client.laws, 'sha256');
|
|
174
|
+
|
|
175
|
+
// hash the agent profile for security
|
|
176
|
+
this.state('hash', `${key}:sign:${type}:token:${transport.uid}`);
|
|
177
|
+
const token = this.lib.hash(`${key} client:${client.profile.id} fullname:${client.profile.fullname} transport:${transport.uid}`, 'sha256');
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
this.state('set', `${key}:sign:${type}:write:${transport.uid}`); // set the state to set data
|
|
181
|
+
// data packet
|
|
182
|
+
const data = {
|
|
183
|
+
id,
|
|
184
|
+
transport,
|
|
185
|
+
time,
|
|
186
|
+
expires,
|
|
187
|
+
container,
|
|
188
|
+
write,
|
|
189
|
+
message,
|
|
190
|
+
caseid: client.profile.caseid,
|
|
191
|
+
opts: opts.length? `.${opts.join('.')}` : '',
|
|
192
|
+
name: client.profile.name,
|
|
193
|
+
fullname: client.profile.fullname,
|
|
194
|
+
emojis: client.profile.emojis,
|
|
195
|
+
company: client.profile.company,
|
|
196
|
+
client: client_hash,
|
|
197
|
+
agent: agent_hash,
|
|
198
|
+
packet: packet_hash,
|
|
199
|
+
laws: laws_hash,
|
|
200
|
+
warning: agent.warning || client.warning || 'none',
|
|
201
|
+
token,
|
|
202
|
+
concerns,
|
|
203
|
+
meta,
|
|
204
|
+
params,
|
|
205
|
+
command,
|
|
206
|
+
created,
|
|
207
|
+
copyright: client.profile.copyright,
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
this.state('hash', `${key}:sign:${type}:md5:${transport.uid}`); // set state to secure hashing
|
|
211
|
+
data.md5 = this.lib.hash(data, 'md5'); // hash data packet into md5 and inert into data.
|
|
212
|
+
|
|
213
|
+
this.state('hash', `${key}:sign:${type}:sha256:${transport.uid}`); // set state to secure hashing
|
|
214
|
+
data.sha256 = this.lib.hash(data, 'sha256'); // hash data into sha 256 then set in data.
|
|
215
|
+
|
|
216
|
+
this.state('hash', `${key}:sign:${type}:sha512:${transport.uid}`); // set state to secure hashing
|
|
217
|
+
data.sha512 = this.lib.hash(data, 'sha512'); // hash data into sha 512 then set in data.
|
|
218
|
+
|
|
219
|
+
// Text data that is joined by line breaks and then trimmed.
|
|
220
|
+
this.state('set', `${key}:sign:${type}:text:${transport.uid}`); // set state to text for output formatting.
|
|
221
|
+
const text = [
|
|
222
|
+
`::::`,
|
|
223
|
+
`::BEGIN:${data.container}`,
|
|
224
|
+
`#${key}.${type}${data.opts} ${write}? if true ${write} ${data.message}`,
|
|
225
|
+
'\n---\n',
|
|
226
|
+
'Signed',
|
|
227
|
+
data.fullname,
|
|
228
|
+
data.emojis,
|
|
229
|
+
'\n',
|
|
230
|
+
`::begin:${key}:${type}:${transport.uid}`,
|
|
231
|
+
`transport: ${data.transport.uid}`,
|
|
232
|
+
`time: ${data.time}`,
|
|
233
|
+
`expires: ${data.expires}`,
|
|
234
|
+
`name: ${data.name}`,
|
|
235
|
+
`fullname: ${data.fullname}`,
|
|
236
|
+
`company: ${data.company}`,
|
|
237
|
+
`caseid: ${data.caseid}`,
|
|
238
|
+
`agent: ${data.agent}`,
|
|
239
|
+
`client: ${data.client}`,
|
|
240
|
+
`packet: ${data.packet}`,
|
|
241
|
+
`token: ${data.token}`,
|
|
242
|
+
`laws: ${data.laws}`,
|
|
243
|
+
`warning: ${data.warning}`,
|
|
244
|
+
`created: ${data.created}`,
|
|
245
|
+
`copyright: ${data.copyright}`,
|
|
246
|
+
`md5: ${data.md5}`,
|
|
247
|
+
`sha256: ${data.sha256}`,
|
|
248
|
+
`sha512: ${data.sha512}`,
|
|
249
|
+
`::end:${key}:${type}${data.transport.uid}`,
|
|
250
|
+
`::END:${data.container}`,
|
|
251
|
+
`::::`
|
|
252
|
+
].join('\n').trim();
|
|
253
|
+
|
|
254
|
+
// send the text data to #feecting to parse and return valid text, html, and data.
|
|
255
|
+
this.action('question', `${key}:sign:${type}:write:${transport.uid}`); // action set to feecting parse
|
|
256
|
+
const feecting = await this.question(`${this.askChr}feecting parse:${transport.uid} ${text}`); // parse with feecting agent.
|
|
257
|
+
|
|
258
|
+
this.state('return', `${key}:sign:${type}:return:${transport.uid}`); // set the state to return proxy
|
|
259
|
+
return {
|
|
260
|
+
text: feecting.a.text,
|
|
261
|
+
html: feecting.a.html,
|
|
262
|
+
data,
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
},
|
|
109
266
|
|
|
110
267
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"id":
|
|
2
|
+
"id": "31477276110836980722",
|
|
3
3
|
"name": "@indra.ai/deva.security",
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
4
|
+
"version": "0.0.55",
|
|
5
|
+
"license": "VLA:18942163452364251159 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)Copyright 2025, Quinn A Michaels; All Rights Reserved.",
|
|
8
22
|
"description": "The Security Deva the Security for Deva.space, Deva.cloud, and Deva.world.",
|
|
9
23
|
"main": "index.js",
|
|
10
24
|
"type": "module",
|
|
@@ -32,7 +46,7 @@
|
|
|
32
46
|
},
|
|
33
47
|
"data": {
|
|
34
48
|
"agent": {
|
|
35
|
-
"id":
|
|
49
|
+
"id": "31477276110836980722",
|
|
36
50
|
"key": "security",
|
|
37
51
|
"prompt": {
|
|
38
52
|
"emoji": "🔐",
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 Indra
|
|
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.
|