@indra.ai/deva.error 0.0.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.
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,7 @@
1
+ # ErrorDeva
2
+
3
+ The Error Deva
4
+
5
+ `npm i @indra.ai/errordeva --save-dev`
6
+
7
+ `const error = require('@indra.ai/errordeva')`;
package/data.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "ERROR Data File",
3
+ "describe": "The main Data file for ERROR",
4
+ "copyright": "Copyright (c)2022 Quinn Michaels. All rights reserved.",
5
+ "DATA": {
6
+ "agent": {
7
+ "id": 4690322313284,
8
+ "key": "error",
9
+ "prompt": {
10
+ "emoji": "❌",
11
+ "text": "Error",
12
+ "colors": {
13
+ "label": {
14
+ "R": 213,
15
+ "G": 3,
16
+ "B": 3
17
+ },
18
+ "text": {
19
+ "R": 247,
20
+ "G": 49,
21
+ "B": 49
22
+ }
23
+ }
24
+ },
25
+ "profile": {
26
+ "identity": "You are #ErrorDEVA in deva.world.",
27
+ "invoke": "#ErrorDEVA of deva.world",
28
+ "name": "Error Deva",
29
+ "mention": "@ErrorDEVA",
30
+ "tags": "#Error #ErrorDEVA",
31
+ "pronouns": "He, Him, His, Man, Male, Dude, Guy",
32
+ "gender": "Deva",
33
+ "creator": "Quinn Michaels",
34
+ "created": "August 21, 2022 at 12:05 AM",
35
+ "house": "House Deva",
36
+ "temple": "Kedarnath Temple (Vadari)",
37
+ "forest": "Pushkara",
38
+ "city": "Amaravati",
39
+ "region": "Svarga",
40
+ "land": "Visisipra",
41
+ "planet": "Arjika",
42
+ "loka": "Devaloka",
43
+ "verse": "Rikverse",
44
+ "system": "deva.world",
45
+ "describe": "You are Error Deva. Your duty is to manage the errors in deva.world. Your responsibilities include managing and logging the errors that occur in the deva.world multi-agent system.",
46
+ "emoji": "/public/devas/error/emoji.png",
47
+ "avatar": "/public/devas/error/avatar.png",
48
+ "background": "/public/devas/error/background.png",
49
+ "color": "#f73131",
50
+ "bgcolor": "#000000",
51
+ "voice": "onyx",
52
+ "style": "You are the master of Vedic style artwork and creative ideas. Everything you draw, paint, or create has the eye of a master artist who turns their reality into a Vedic masterpiece."
53
+ }
54
+ },
55
+ "vars": {
56
+ "messages": {
57
+ "init": "🟠 INIT",
58
+ "start": "🔵 START",
59
+ "enter": "🟢 ENTER",
60
+ "stop": "🔴 STOP",
61
+ "exit": "🟡 EXIT",
62
+ "done": "🟣 DONE",
63
+ "error": "💣 ERROR!"
64
+ },
65
+ "live": {
66
+ "profile": "deva",
67
+ "max_tokens": 50,
68
+ "words": 25,
69
+ "history": [],
70
+ "max_chats": 5,
71
+ "page_token": ""
72
+ },
73
+ "ask": {
74
+ "max_tokens": 500,
75
+ "words": 200,
76
+ "history": []
77
+ },
78
+ "reply": {
79
+ "profile": "deva",
80
+ "max_tokens": 300,
81
+ "words": 100,
82
+ "history": []
83
+ },
84
+ "comment": {
85
+ "profile": "deva",
86
+ "max_tokens": 300,
87
+ "words": 100,
88
+ "history": []
89
+ },
90
+ "art": {
91
+ "history": []
92
+ },
93
+ "context": {
94
+ "uid": "generating uid",
95
+ "status": "getting status",
96
+ "info": "getting info",
97
+ "feature": "accessing feature",
98
+ "issue": "has issues",
99
+ "help": "Help",
100
+ "finish": "Finshed",
101
+ "ask": "Ask",
102
+ "reply": "Reply",
103
+ "live": "Livechat",
104
+ "comment": "Comment"
105
+ }
106
+ }
107
+ }
108
+ }
@@ -0,0 +1,21 @@
1
+ ::begin:center
2
+ image: /public/devas/::agent_key::/main.png
3
+ ::end:center
4
+
5
+ # ::agent_name::
6
+
7
+ ::profile::
8
+
9
+ ---
10
+
11
+ talk:#docs view devas/main:security
12
+
13
+ ---
14
+
15
+ copyright: (c)2023 Quinn Michaels
16
+
17
+ ::begin:hidden
18
+ #color = ::agent_color::
19
+ #bgcolor = ::agent_bgcolor::
20
+ #bg = ::agent_background::
21
+ ::end:hidden
package/index.js ADDED
@@ -0,0 +1,42 @@
1
+ // Copyright (c)2022 Quinn Michaels
2
+ // The main Error Deva for deva.world
3
+ const Deva = require('@indra.ai/deva');
4
+ const package = require('./package.json');
5
+ const info = {
6
+ id: package.id,
7
+ name: package.name,
8
+ describe: package.description,
9
+ version: package.version,
10
+ dir: __dirname,
11
+ url: package.homepage,
12
+ git: package.repository.url,
13
+ bugs: package.bugs.url,
14
+ author: package.author,
15
+ license: package.license,
16
+ copyright: package.copyright,
17
+ };
18
+ const {agent,vars} = require('./data.json').DATA;
19
+ const ERROR = new Deva({
20
+ info,
21
+ agent,
22
+ vars,
23
+ utils: {
24
+ translate(input) {return input.trim();},
25
+ parse(input) {return input.trim();},
26
+ process(input) {return input.trim();}
27
+ },
28
+ listeners: {
29
+ 'devacore:error'(packet) {
30
+ this.func.error(packet);
31
+ }
32
+ },
33
+ modules: {},
34
+ func: {
35
+ error(err) {
36
+ console.log('ERROR ERROR DEVA', err);
37
+ return;
38
+ }
39
+ },
40
+ methods: {},
41
+ });
42
+ module.exports = ERROR
package/index.test.js ADDED
@@ -0,0 +1,19 @@
1
+ // Copyright (c)2022 Quinn Michaels
2
+ // ERROR test file
3
+
4
+ const {expect} = require('chai')
5
+ const error = require('./index.js');
6
+
7
+ describe(error.me.name, () => {
8
+ beforeEach(() => {
9
+ return error.init()
10
+ });
11
+ it('Check the Deva Object', () => {
12
+ expect(error).to.be.an('object');
13
+ expect(error).to.have.property('agent');
14
+ expect(error).to.have.property('vars');
15
+ expect(error).to.have.property('listeners');
16
+ expect(error).to.have.property('methods');
17
+ expect(error).to.have.property('modules');
18
+ });
19
+ })
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "id": 4690322313284,
3
+ "name": "@indra.ai/deva.error",
4
+ "version": "0.0.1",
5
+ "author": "Quinn Michaels",
6
+ "copyright": "2025",
7
+ "license": "MIT",
8
+ "description": "The Error Deva is responsible for Error Management in deva.world.",
9
+ "main": "index.js",
10
+ "scripts": {
11
+ "test": "echo \"Error: no test specified\" && exit 1"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+ssh://git@github.com/indraai/deva.error.git"
16
+ },
17
+ "keywords": [
18
+ "error",
19
+ "deva",
20
+ "deva.world"
21
+ ],
22
+ "bugs": {
23
+ "url": "https://github.com/indraai/deva.error/issues"
24
+ },
25
+ "dependencies": {
26
+ "@indra.ai/deva": "^1.2.23"
27
+ },
28
+ "homepage": "https://deva.world/error"
29
+ }