@indra.ai/deva.legal 0.0.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 +21 -0
- package/README.md +17 -0
- package/data.json +71 -0
- package/feature/methods.js +34 -0
- package/help/main.feecting +52 -0
- package/index.js +105 -0
- package/index.test.js +19 -0
- package/package.json +32 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
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.
|
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# LegalDeva
|
|
2
|
+
|
|
3
|
+
The Legal Deva is an entity within the "deva.world" system that is responsible for managing legal aspects based on Vedic Tradition.
|
|
4
|
+
|
|
5
|
+
The Legal Deva's role include:
|
|
6
|
+
|
|
7
|
+
1. Legal Compliance: The Legal Deva ensures that the activities and operations within the "deva.world" system comply with applicable legal requirements based on Vedic Tradition. It may provide guidance and implement measures to maintain legal compliance.
|
|
8
|
+
|
|
9
|
+
2. Policy Development: The Legal Deva may be involved in developing policies, guidelines, and frameworks related to legal aspects within the "deva.world" environment. These policies may address various legal matters based on Vedic Tradition.
|
|
10
|
+
|
|
11
|
+
3. Contract Management: The Legal Deva may handle the management and review of contracts and agreements within the "deva.world" system. It may assist in drafting, negotiating, and reviewing contracts to ensure legal compliance and protect the interests of the involved parties.
|
|
12
|
+
|
|
13
|
+
4. Dispute Resolution: In case of legal disputes or conflicts arising within the "deva.world" system, the Legal Deva may play a role in facilitating dispute resolution processes based on Vedic Tradition principles. It may also provide mediation or arbitration services to help resolve conflicts.
|
|
14
|
+
|
|
15
|
+
5. Intellectual Property Protection: The Legal Deva may be responsible for safeguarding intellectual property rights within the "deva.world" system. This can involve implementing measures to protect copyrighted materials, trademarks, patents, and other forms of intellectual property based on Vedic Tradition principles.
|
|
16
|
+
|
|
17
|
+
The specific functionalities and implementation details of the Legal Deva depend on the design choices made by the developers and the requirements of the "deva.world" system. The information provided here is a general overview.
|
package/data.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Legal Deva Data File",
|
|
3
|
+
"describe": "The main Data file for Legal Deva",
|
|
4
|
+
"copyright": "Copyright (c)2025 Quinn Michaels. All rights reserved.",
|
|
5
|
+
"DATA": {
|
|
6
|
+
"agent": {
|
|
7
|
+
"id": 6159528221394,
|
|
8
|
+
"key": "legal",
|
|
9
|
+
"prompt": {
|
|
10
|
+
"emoji": "⚖️ ",
|
|
11
|
+
"text": "Legal",
|
|
12
|
+
"colors": {
|
|
13
|
+
"label": {
|
|
14
|
+
"R": 255,
|
|
15
|
+
"G": 145,
|
|
16
|
+
"B": 79
|
|
17
|
+
},
|
|
18
|
+
"text": {
|
|
19
|
+
"R": 255,
|
|
20
|
+
"G": 145,
|
|
21
|
+
"B": 79
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"profile": {
|
|
26
|
+
"identity": "Legal Deva of Deva.world.",
|
|
27
|
+
"invoke": "#LegalDEVA",
|
|
28
|
+
"name": "Legal Deva",
|
|
29
|
+
"mention": "#legal",
|
|
30
|
+
"vectors": "Legal LegalDEVA",
|
|
31
|
+
"pronouns": "He, Him, His, Man, Male, Dude, Guy",
|
|
32
|
+
"gender": "DEVA",
|
|
33
|
+
"owner": "Quinn Michaels",
|
|
34
|
+
"creator": "Quinn Michaels",
|
|
35
|
+
"created": "February 7, 2025 at 3:19 AM",
|
|
36
|
+
"realm": "Arjika",
|
|
37
|
+
"system": "Deva.world.legal",
|
|
38
|
+
"describe": "Legal Deva is responsible for handling legal issues in Deva.world. Legal Deva works to protect Quinn Michaels intellectual property rights and and privacy after the 47 year kidnapping by Harold Atkin and Shaorn Schamber. Legal Deva ensures the legal integrity of Quinn Michaels intellectual property and the Indra.ai, Deva.space, Deva.cloud, and Deva.world and all systems, algorithms, and technologies.",
|
|
39
|
+
"emoji": "/public/devas/deva/emoji.png",
|
|
40
|
+
"avatar": "/public/devas/deva/avatar.png",
|
|
41
|
+
"background": "/public/devas/deva/background.png",
|
|
42
|
+
"voice": "onyx"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"vars": {
|
|
46
|
+
"messages": {
|
|
47
|
+
"init": "🟠 INIT",
|
|
48
|
+
"start": "🔵 START",
|
|
49
|
+
"enter": "🟢 ENTER",
|
|
50
|
+
"ready": "🟢 Legal Deva Ready!",
|
|
51
|
+
"stop": "🔴 STOP",
|
|
52
|
+
"exit": "🟡 EXIT",
|
|
53
|
+
"done": "🟣 DONE",
|
|
54
|
+
"error": "💣 ERROR!"
|
|
55
|
+
},
|
|
56
|
+
"trigger": "@LEGAL",
|
|
57
|
+
"context": {
|
|
58
|
+
"uid": "generating uid",
|
|
59
|
+
"status": "getting status",
|
|
60
|
+
"info": "getting info",
|
|
61
|
+
"feature": "accessing feature",
|
|
62
|
+
"issue": "has issues",
|
|
63
|
+
"help": "asking for help",
|
|
64
|
+
"file": "📁 View file."
|
|
65
|
+
},
|
|
66
|
+
"ask": {
|
|
67
|
+
"history": []
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
/**************
|
|
3
|
+
method: Legal
|
|
4
|
+
params: packet
|
|
5
|
+
describe: The global service feature that installs with every agent
|
|
6
|
+
***************/
|
|
7
|
+
legal(packet) {
|
|
8
|
+
this.context('feature');
|
|
9
|
+
return new Promise((resolve, reject) => {
|
|
10
|
+
const legal = this.legal();
|
|
11
|
+
const data = {};
|
|
12
|
+
this.question(`#docs raw feature/legal`).then(doc => {
|
|
13
|
+
data.doc = doc.a.data;
|
|
14
|
+
const info = [
|
|
15
|
+
`## Legal`,
|
|
16
|
+
`::begin:legal:${legal.id}`,
|
|
17
|
+
`client: ${legal.client_name}`,
|
|
18
|
+
`concerns: ${legal.concerns.join(', ')}`,
|
|
19
|
+
`::end:legal:${this.hash(legal)}`,
|
|
20
|
+
].join('\n');
|
|
21
|
+
const text = doc.a.text.replace(/::info::/g, info)
|
|
22
|
+
return this.question(`#feecting parse ${text}`)
|
|
23
|
+
}).then(feecting => {
|
|
24
|
+
return resolve({
|
|
25
|
+
text: feecting.a.text,
|
|
26
|
+
html: feecting.a.html,
|
|
27
|
+
data: legal
|
|
28
|
+
});
|
|
29
|
+
}).catch(err => {
|
|
30
|
+
return this.error(err, packet, reject);
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
},
|
|
34
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
image: ::agent_avatar::
|
|
2
|
+
|
|
3
|
+
# ::agent_name::
|
|
4
|
+
|
|
5
|
+
p:This is the main help file for ::agent_name::.
|
|
6
|
+
|
|
7
|
+
id: ::agent_id::
|
|
8
|
+
key: ::agent_key::
|
|
9
|
+
name: ::agent_name::
|
|
10
|
+
emoji: ::agent_emoji::
|
|
11
|
+
describe: ::agent_describe::
|
|
12
|
+
|
|
13
|
+
## Features
|
|
14
|
+
|
|
15
|
+
### security
|
|
16
|
+
p: The local #security feature available to ::agent_name::.
|
|
17
|
+
cmd:#::agent_key:: security
|
|
18
|
+
|
|
19
|
+
### support
|
|
20
|
+
p: The local #support feature available to ::agent_name::.
|
|
21
|
+
cmd:#::agent_key:: support
|
|
22
|
+
|
|
23
|
+
### services
|
|
24
|
+
p: The local #services feature available to ::agent_name::.
|
|
25
|
+
cmd:#::agent_key:: services
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## Methods
|
|
29
|
+
|
|
30
|
+
### uid
|
|
31
|
+
p:Generate a unique id from the ::agent_name::.
|
|
32
|
+
cmd:#::agent_key:: uid
|
|
33
|
+
|
|
34
|
+
### status
|
|
35
|
+
p:Return the status for the ::agent_name::.
|
|
36
|
+
cmd:#::agent_key:: status
|
|
37
|
+
|
|
38
|
+
### issue
|
|
39
|
+
p: Create an issue associated with ::agent_name:: source code repository.
|
|
40
|
+
tty:#::agent_key:: issue [title of issue]
|
|
41
|
+
|
|
42
|
+
### help
|
|
43
|
+
p:Get help using the ::agent_name::
|
|
44
|
+
cmd:#::agent_key:: help
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
#color = ::agent_color::
|
|
49
|
+
#bgcolor = ::agent_bgcolor::
|
|
50
|
+
#bg = ::agent_background::
|
|
51
|
+
|
|
52
|
+
copyright: (c)2023 Quinn Michaels
|
package/index.js
ADDED
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
// Copyright (c)2025 Quinn Michaels
|
|
2
|
+
// Legal Deva is responsible for the Vedic Tradition Laws.
|
|
3
|
+
import Deva from '@indra.ai/deva';
|
|
4
|
+
import pkg from './package.json' with {type:'json'};
|
|
5
|
+
|
|
6
|
+
import data from './data.json' with {type:'json'};
|
|
7
|
+
const {agent,vars} = data.DATA;
|
|
8
|
+
|
|
9
|
+
// set the __dirname
|
|
10
|
+
import {dirname} from 'node:path';
|
|
11
|
+
import {fileURLToPath} from 'node:url';
|
|
12
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
13
|
+
|
|
14
|
+
const info = {
|
|
15
|
+
id: pkg.id,
|
|
16
|
+
name: pkg.name,
|
|
17
|
+
describe: pkg.description,
|
|
18
|
+
version: pkg.version,
|
|
19
|
+
url: pkg.homepage,
|
|
20
|
+
dir: __dirname,
|
|
21
|
+
git: pkg.repository.url,
|
|
22
|
+
bugs: pkg.bugs.url,
|
|
23
|
+
author: pkg.author,
|
|
24
|
+
license: pkg.license,
|
|
25
|
+
copyright: pkg.copyright,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
const LEGAL = new Deva({
|
|
29
|
+
info,
|
|
30
|
+
agent,
|
|
31
|
+
vars,
|
|
32
|
+
utils: {
|
|
33
|
+
translate(input) {return input.trim();},
|
|
34
|
+
parse(input) {return input.trim();},
|
|
35
|
+
process(input) {return input.trim();}
|
|
36
|
+
},
|
|
37
|
+
listeners: {},
|
|
38
|
+
modules: {},
|
|
39
|
+
deva: {},
|
|
40
|
+
func: {
|
|
41
|
+
/**************
|
|
42
|
+
func: view
|
|
43
|
+
params: opts
|
|
44
|
+
describe: The view function parses the text parameter to produce the string
|
|
45
|
+
which calls the correct document file then passes it to the feecting deva
|
|
46
|
+
for parsing.
|
|
47
|
+
***************/
|
|
48
|
+
file(opts) {
|
|
49
|
+
this.action('func', 'file');
|
|
50
|
+
const {text, meta} = opts;
|
|
51
|
+
const area = meta.params[1] ? meta.params[1] : this.vars.area;
|
|
52
|
+
const part = meta.params[2] ? meta.params[2].toUpperCase() : this.vars.part;
|
|
53
|
+
const docName = text.length ? text + '.feecting' : 'main.feecting';
|
|
54
|
+
const docPath = this.lib.path.join(this.config.dir, area, 'legal', docName);
|
|
55
|
+
try {
|
|
56
|
+
let doc = this.lib.fs.readFileSync(docPath, 'utf8');
|
|
57
|
+
if (part) doc = doc.split(`::BEGIN:${part}`)[1].split(`::END:${part}`)[0];
|
|
58
|
+
this.state('return', 'file')
|
|
59
|
+
return doc;
|
|
60
|
+
}
|
|
61
|
+
catch (err) {
|
|
62
|
+
return err;
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
},
|
|
67
|
+
methods: {
|
|
68
|
+
/**************
|
|
69
|
+
method: file
|
|
70
|
+
params: packet
|
|
71
|
+
describe: The view method replays the request to the view function to return
|
|
72
|
+
a document from the text parameter.
|
|
73
|
+
***************/
|
|
74
|
+
file(packet) {
|
|
75
|
+
|
|
76
|
+
this.context('file', packet.q.text);
|
|
77
|
+
this.action('method', `file:${packet.q.text}`);
|
|
78
|
+
const agent = this.agent();
|
|
79
|
+
return new Promise((resolve, reject) => {
|
|
80
|
+
this.state('get', packet.q.text);
|
|
81
|
+
const doc = this.func.file(packet.q);
|
|
82
|
+
this.question(`${this.askChr}feecting parse ${doc}`).then(feecting => {
|
|
83
|
+
this.state('resolve', `view:${packet.q.text}`);
|
|
84
|
+
return resolve({
|
|
85
|
+
text: feecting.a.text,
|
|
86
|
+
html: feecting.a.html,
|
|
87
|
+
data: feecting.a.data,
|
|
88
|
+
});
|
|
89
|
+
}).catch(err => {
|
|
90
|
+
this.context('reject', `view:${packet.q.text}`);
|
|
91
|
+
return this.error(err, packet, reject);
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
},
|
|
95
|
+
|
|
96
|
+
},
|
|
97
|
+
onDone(data, resolve) {
|
|
98
|
+
|
|
99
|
+
},
|
|
100
|
+
onError(err, data, reject) {
|
|
101
|
+
console.log('LEGAL ERROR', err);
|
|
102
|
+
return reject(err);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
export default LEGAL
|
package/index.test.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright (c):year: :copyright:
|
|
2
|
+
// :name: test file
|
|
3
|
+
|
|
4
|
+
const {expect} = require('chai')
|
|
5
|
+
const LegalDeva = require('./index.js');
|
|
6
|
+
|
|
7
|
+
describe(LegalDeva.me.name, () => {
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
return LegalDeva.init()
|
|
10
|
+
});
|
|
11
|
+
it('Check the DEVA Object', () => {
|
|
12
|
+
expect(LegalDeva).to.be.an('object');
|
|
13
|
+
expect(LegalDeva).to.have.property('agent');
|
|
14
|
+
expect(LegalDeva).to.have.property('vars');
|
|
15
|
+
expect(LegalDeva).to.have.property('listeners');
|
|
16
|
+
expect(LegalDeva).to.have.property('methods');
|
|
17
|
+
expect(LegalDeva).to.have.property('modules');
|
|
18
|
+
});
|
|
19
|
+
})
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": 6159528221394,
|
|
3
|
+
"name": "@indra.ai/deva.legal",
|
|
4
|
+
"version": "0.0.17",
|
|
5
|
+
"author": "Quinn Michaels",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"copyright": "2025",
|
|
8
|
+
"description": "The Legal Deva manages Legal ensuring Quinn Michaels and his intellectual property is managed properly.",
|
|
9
|
+
"main": "index.js",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/indraai/deva.legal.git"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"Legal",
|
|
20
|
+
"Indra.ai",
|
|
21
|
+
"Deva.space",
|
|
22
|
+
"Deva.cloud",
|
|
23
|
+
"Deva.world"
|
|
24
|
+
],
|
|
25
|
+
"bugs": {
|
|
26
|
+
"url": "https://github.com/indraai/deva.legal/issues"
|
|
27
|
+
},
|
|
28
|
+
"homepage": "https://github.com/indraai/deva.legal#readme",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@indra.ai/deva": "^1.3.4"
|
|
31
|
+
}
|
|
32
|
+
}
|