@indra.ai/deva.support 0.0.7 → 0.0.9
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/data.json +7 -21
- package/feature/methods.js +43 -19
- package/index.js +8 -19
- package/package.json +2 -2
package/data.json
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "Support Deva Data File",
|
|
3
3
|
"describe": "The main Data file for Support Deva",
|
|
4
|
-
"copyright": "Copyright (c)
|
|
4
|
+
"copyright": "Copyright (c)2025 Quinn Michaels. All rights reserved.",
|
|
5
5
|
"DATA": {
|
|
6
6
|
"agent": {
|
|
7
7
|
"id": 4077391632050,
|
|
8
8
|
"key": "support",
|
|
9
|
-
"model": "ft:gpt-3.5-turbo-0613:indra-ai::8DlRY87Q",
|
|
10
9
|
"prompt": {
|
|
11
10
|
"emoji": "💼",
|
|
12
11
|
"text": "Support",
|
|
@@ -24,26 +23,14 @@
|
|
|
24
23
|
}
|
|
25
24
|
},
|
|
26
25
|
"profile": {
|
|
27
|
-
"identity": "You are #SupportDEVA in deva.world.",
|
|
28
|
-
"invoke": "#SupportDEVA of deva.world",
|
|
29
26
|
"name": "Support Deva",
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
27
|
+
"gender": "DEVA",
|
|
28
|
+
"pronouns": "He, Him",
|
|
29
|
+
"owner": "Quinn Michaels",
|
|
33
30
|
"creator": "Quinn Michaels",
|
|
34
31
|
"created": "Monday, May 22, 2023 at 9:49 AM",
|
|
35
|
-
"
|
|
36
|
-
"
|
|
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
|
-
"agency": "indra.agency",
|
|
46
|
-
"describe": "The Support Deva provides the essential tools and resources to support the deva.world multi-agent system. Wether it's helping users learn systems, or resolving issues that may require #SecurityDEVA or #ServicesDEVA. #SupportDEVA is there to ensure client and agent satisfaction sets the standard of excellence.",
|
|
32
|
+
"system": "Deva.world.support",
|
|
33
|
+
"describe": "The SupportDEVA provides the essential resources to support the Deva.world multi-agent system.",
|
|
47
34
|
"emoji": "/public/devas/support/emoji.png",
|
|
48
35
|
"avatar": "/public/devas/support/avatar.png",
|
|
49
36
|
"background": "/public/devas/support/background.png",
|
|
@@ -58,6 +45,7 @@
|
|
|
58
45
|
"init": "🟠 INIT",
|
|
59
46
|
"start": "🔵 START",
|
|
60
47
|
"enter": "🟢 ENTER",
|
|
48
|
+
"ready": "⭐️ Support Deva Ready!",
|
|
61
49
|
"stop": "🔴 STOP",
|
|
62
50
|
"exit": "🟡 EXIT",
|
|
63
51
|
"done": "🟣 DONE",
|
|
@@ -72,8 +60,6 @@
|
|
|
72
60
|
"page_token": ""
|
|
73
61
|
},
|
|
74
62
|
"ask": {
|
|
75
|
-
"max_tokens": 500,
|
|
76
|
-
"words": 200,
|
|
77
63
|
"history": []
|
|
78
64
|
},
|
|
79
65
|
"reply": {
|
package/feature/methods.js
CHANGED
|
@@ -6,25 +6,40 @@ export default {
|
|
|
6
6
|
***************/
|
|
7
7
|
support(packet) {
|
|
8
8
|
this.context('feature');
|
|
9
|
-
const support = this.support();
|
|
10
|
-
const data = {};
|
|
11
9
|
return new Promise((resolve, reject) => {
|
|
12
|
-
this.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
const support = this.support();
|
|
11
|
+
const agent = this.agent();
|
|
12
|
+
const global = [];
|
|
13
|
+
support.global.forEach((item,index) => {
|
|
14
|
+
global.push(`::begin:global:${item.key}:${item.id}`);
|
|
15
|
+
for (let x in item) {
|
|
16
|
+
global.push(`${x}: ${item[x]}`);
|
|
17
|
+
}
|
|
18
|
+
global.push(`::end:global:${item.key}:${this.lib.hash(item)}`);
|
|
19
|
+
});
|
|
20
|
+
const concerns = [];
|
|
21
|
+
support.concerns.forEach((item, index) => {
|
|
22
|
+
concerns.push(`${index + 1}. ${item}`);
|
|
23
|
+
})
|
|
24
|
+
|
|
25
|
+
const info = [
|
|
26
|
+
'::BEGIN:SUPPORT',
|
|
27
|
+
'### Client',
|
|
28
|
+
`::begin:client:${support.client_id}`,
|
|
29
|
+
`id: ${support.client_id}`,
|
|
30
|
+
`client: ${support.client_name}`,
|
|
31
|
+
'**concerns**',
|
|
32
|
+
concerns.join('\n'),
|
|
33
|
+
`::end:client:${this.lib.hash(support)}`,
|
|
34
|
+
'### Global',
|
|
35
|
+
global.join('\n'),
|
|
36
|
+
'::END:SUPPORT',
|
|
37
|
+
].join('\n');
|
|
38
|
+
this.question(`${this.askChr}feecting parse ${info}`).then(feecting => {
|
|
24
39
|
return resolve({
|
|
25
40
|
text: feecting.a.text,
|
|
26
41
|
html: feecting.a.html,
|
|
27
|
-
data: support
|
|
42
|
+
data: support.concerns,
|
|
28
43
|
});
|
|
29
44
|
}).catch(err => {
|
|
30
45
|
return this.error(err, packet, reject);
|
|
@@ -38,7 +53,11 @@ export default {
|
|
|
38
53
|
describe: Return the current status of the Log Buddy.
|
|
39
54
|
***************/
|
|
40
55
|
status(packet) {
|
|
41
|
-
|
|
56
|
+
this.zone('support');
|
|
57
|
+
this.feature('status');
|
|
58
|
+
this.action('status');
|
|
59
|
+
this.state('resolve', 'status');
|
|
60
|
+
this.context('status');
|
|
42
61
|
return Promise.resolve(this.status());
|
|
43
62
|
},
|
|
44
63
|
/**************
|
|
@@ -47,7 +66,12 @@ export default {
|
|
|
47
66
|
describe: Return the current info for the deva.
|
|
48
67
|
***************/
|
|
49
68
|
info(packet) {
|
|
50
|
-
|
|
69
|
+
this.zone('support');
|
|
70
|
+
this.feature('info');
|
|
71
|
+
this.action('info');
|
|
72
|
+
this.state('get', 'info');
|
|
73
|
+
this.context('info');
|
|
74
|
+
return Promise.resolve(this.info());
|
|
51
75
|
},
|
|
52
76
|
/**************
|
|
53
77
|
method: help
|
|
@@ -55,8 +79,8 @@ export default {
|
|
|
55
79
|
describe: The Help method returns the information on how to use the Log Buddy.
|
|
56
80
|
***************/
|
|
57
81
|
help(packet) {
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
82
|
+
this.zone('support');
|
|
83
|
+
this.feature('help');
|
|
60
84
|
this.action('help');
|
|
61
85
|
this.state('help');
|
|
62
86
|
this.context('help');
|
package/index.js
CHANGED
|
@@ -32,33 +32,22 @@ const SUPPORT = new Deva({
|
|
|
32
32
|
vars,
|
|
33
33
|
utils: {
|
|
34
34
|
translate(input) {return input.trim();},
|
|
35
|
-
parse(input, route=false) {
|
|
36
|
-
// with the parse method we are going to take the input with a
|
|
37
|
-
// values object to provide the personalization
|
|
38
|
-
let output = input;
|
|
39
|
-
if (route) for (let x in route) {
|
|
40
|
-
const key = `::${x}::`;
|
|
41
|
-
const value = route[x];
|
|
42
|
-
output = output.replace(key, value);
|
|
43
|
-
}
|
|
44
|
-
return output.trim();
|
|
45
|
-
},
|
|
35
|
+
parse(input, route=false) {return input.trim();},
|
|
46
36
|
process(input) {return input.trim();}
|
|
47
37
|
},
|
|
48
38
|
listeners: {},
|
|
49
39
|
modules: {},
|
|
50
40
|
deva: {},
|
|
51
|
-
func: {
|
|
52
|
-
sup_question(packet) {return;},
|
|
53
|
-
sup_answer(packet) {return;},
|
|
54
|
-
},
|
|
41
|
+
func: {},
|
|
55
42
|
methods: {},
|
|
56
43
|
onReady(data, resolve) {
|
|
57
|
-
this.prompt(
|
|
44
|
+
this.prompt(this.vars.messages.ready);
|
|
58
45
|
return resolve(data);
|
|
59
46
|
},
|
|
60
|
-
onError(err) {
|
|
61
|
-
|
|
62
|
-
|
|
47
|
+
onError(err, data, reject) {
|
|
48
|
+
this.prompt(this.vars.messages.error);
|
|
49
|
+
console.log(err);
|
|
50
|
+
return reject(err);
|
|
51
|
+
},
|
|
63
52
|
});
|
|
64
53
|
export default SUPPORT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": 4077391632050,
|
|
3
3
|
"name": "@indra.ai/deva.support",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.9",
|
|
5
5
|
"author": "Quinn Michaels",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"copyright": "(c) 2025 Quinn Michaels",
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"homepage": "https://deva.space/devas/support",
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@indra.ai/deva": "^1.
|
|
31
|
+
"@indra.ai/deva": "^1.4.10"
|
|
32
32
|
}
|
|
33
33
|
}
|