@indra.ai/deva.services 0.0.25 → 0.0.27
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/feature/methods.js +10 -22
- package/help/corpus.feecting +2 -4
- package/help/main.feecting +5 -6
- package/index.js +1 -3
- package/package.json +102 -2
- package/data.json +0 -99
package/feature/methods.js
CHANGED
|
@@ -106,16 +106,16 @@ export default {
|
|
|
106
106
|
describe: this method provides a global ask method to all agents.
|
|
107
107
|
***************/
|
|
108
108
|
async ask(packet) {
|
|
109
|
-
this.zone('services');
|
|
110
|
-
this.feature('services');
|
|
111
|
-
this.context('
|
|
112
|
-
this.action('services',
|
|
109
|
+
this.zone('services', packet.id);
|
|
110
|
+
this.feature('services', packet.id);
|
|
111
|
+
this.context('ask', `${packet.q.agent.name}:${packet.id}`);
|
|
112
|
+
this.action('services', `ask:${packet.id}`);
|
|
113
113
|
const data = {};
|
|
114
114
|
const agent = this.agent();
|
|
115
115
|
const client = this.client();
|
|
116
116
|
const info = this.info();
|
|
117
117
|
|
|
118
|
-
this.state('get',
|
|
118
|
+
this.state('get', `corpus:${packet.id}`);
|
|
119
119
|
const help = await this.help('corpus', info.dir);
|
|
120
120
|
|
|
121
121
|
return new Promise((resolve, reject) => {
|
|
@@ -136,24 +136,12 @@ export default {
|
|
|
136
136
|
}).then(answer => {
|
|
137
137
|
data.chat = answer.a.data.chat;
|
|
138
138
|
const text = [
|
|
139
|
-
`::
|
|
139
|
+
`::begin:${agent.key}:${answer.id}`,
|
|
140
140
|
answer.a.text,
|
|
141
141
|
`date: ${this.lib.formatDate(Date.now(), 'long', true)}`,
|
|
142
|
-
|
|
143
|
-
`::END:${agent.key}:${this.lib.hash(answer)}`,
|
|
142
|
+
`::end:${agent.key}:${this.lib.hash(answer)}`,
|
|
144
143
|
];
|
|
145
|
-
|
|
146
|
-
// memory event
|
|
147
|
-
this.talk('data:memory', {
|
|
148
|
-
id: answer.a.data.chat.id,
|
|
149
|
-
client,
|
|
150
|
-
agent,
|
|
151
|
-
q: packet.q.text,
|
|
152
|
-
a: answer.a.data.chat.text,
|
|
153
|
-
created: Date.now(),
|
|
154
|
-
});
|
|
155
|
-
|
|
156
|
-
this.state('set', 'chat:history');
|
|
144
|
+
this.state('set', `history:${packet.id}`);
|
|
157
145
|
this.vars.ask.history.push({
|
|
158
146
|
role: 'user',
|
|
159
147
|
content: this.lib.trimWords(answer.q.text, 150),
|
|
@@ -164,11 +152,11 @@ export default {
|
|
|
164
152
|
content: this.lib.trimWords(answer.a.data.chat.text, 150),
|
|
165
153
|
});
|
|
166
154
|
|
|
167
|
-
this.state('parse',
|
|
155
|
+
this.state('parse', `ask:${packet.id}`);
|
|
168
156
|
return this.question(`${this.askChr}feecting parse ${text.join('\n')}`);
|
|
169
157
|
}).then(feecting => {
|
|
170
158
|
data.feecting = feecting.a.data;
|
|
171
|
-
this.state('resolve',
|
|
159
|
+
this.state('resolve', `ask:${packet.id}`);
|
|
172
160
|
return resolve({
|
|
173
161
|
text: feecting.a.text,
|
|
174
162
|
html: feecting.a.html,
|
package/help/corpus.feecting
CHANGED
package/help/main.feecting
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
::BEGIN:MAIN
|
|
2
|
+
# {{profile.name}}
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
{{profile}}
|
|
4
5
|
|
|
5
|
-
talk: #security file:public main:header
|
|
6
|
-
talk: #algorithm file:public main:header
|
|
7
|
-
|
|
8
|
-
copyright: (c)2025 Quinn Michaels
|
|
9
6
|
|
|
10
7
|
::begin:hidden
|
|
11
8
|
#color = ::agent_color::
|
|
12
9
|
#bgcolor = ::agent_bgcolor::
|
|
13
10
|
#bg = ::agent_background::
|
|
14
11
|
::end:hidden
|
|
12
|
+
copyright: (c)2025 Quinn Michaels
|
|
13
|
+
::END:MAIN
|
package/index.js
CHANGED
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
// Manages various Services in Deva.space, Deva.cloud, and Deva.world.
|
|
4
4
|
import Deva from '@indra.ai/deva';
|
|
5
5
|
import pkg from './package.json' with {type:'json'};
|
|
6
|
-
|
|
7
|
-
import data from './data.json' with {type:'json'};
|
|
8
|
-
const {agent,vars} = data.DATA;
|
|
6
|
+
const {agent,vars} = pkg.data;
|
|
9
7
|
|
|
10
8
|
// set the __dirname
|
|
11
9
|
import {dirname} from 'node:path';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": 4855882658530,
|
|
3
3
|
"name": "@indra.ai/deva.services",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.27",
|
|
5
5
|
"author": "Quinn Michaels",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"copyright": "2025",
|
|
@@ -27,6 +27,106 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://deva.space/devas/services",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@indra.ai/deva": "^1.5.
|
|
30
|
+
"@indra.ai/deva": "^1.5.35"
|
|
31
|
+
},
|
|
32
|
+
"data": {
|
|
33
|
+
"agent": {
|
|
34
|
+
"id": 4855882658530,
|
|
35
|
+
"key": "services",
|
|
36
|
+
"prompt": {
|
|
37
|
+
"emoji": "🛠️",
|
|
38
|
+
"text": "Services",
|
|
39
|
+
"colors": {
|
|
40
|
+
"label": {
|
|
41
|
+
"R": 163,
|
|
42
|
+
"G": 163,
|
|
43
|
+
"B": 168
|
|
44
|
+
},
|
|
45
|
+
"text": {
|
|
46
|
+
"R": 240,
|
|
47
|
+
"G": 242,
|
|
48
|
+
"B": 136
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"profile": {
|
|
53
|
+
"name": "#ServicesDeva",
|
|
54
|
+
"title": "Services Deva",
|
|
55
|
+
"subtitle": "Services Deva",
|
|
56
|
+
"describe": "Manages services for the users and entites to ensure everything is online and running that keep operational.",
|
|
57
|
+
"tweet": "Manages services to ensure everything is online and running that keep operational.",
|
|
58
|
+
"hashtags": "QuinnMichaels,IndraAI,DevaWorld,ServicesDeva",
|
|
59
|
+
"pronouns": "He, Him",
|
|
60
|
+
"gender": "DEVA",
|
|
61
|
+
"style": "Has the style of a severvices technical provider.",
|
|
62
|
+
"system": "Deva.world.services",
|
|
63
|
+
"layout": "default",
|
|
64
|
+
"color": "rgb(240,242,136)",
|
|
65
|
+
"bgcolor": "rgb(0,0,0)",
|
|
66
|
+
"voice": "onyx",
|
|
67
|
+
"emoji": "/public/devas/services/emoji.png",
|
|
68
|
+
"avatar": "/public/devas/services/avatar.png",
|
|
69
|
+
"background": "/public/devas/services/background.png",
|
|
70
|
+
"owner": "Quinn Michaels",
|
|
71
|
+
"creator": "Quinn Michaels",
|
|
72
|
+
"created": "May 22, 2023 at 10:14 AM"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"vars": {
|
|
76
|
+
"messages": {
|
|
77
|
+
"init": "🟠 INIT",
|
|
78
|
+
"start": "🔵 START",
|
|
79
|
+
"enter": "🟢 ENTER",
|
|
80
|
+
"ready": "⭐️ READY!",
|
|
81
|
+
"stop": "🔴 STOP",
|
|
82
|
+
"exit": "🟡 EXIT",
|
|
83
|
+
"done": "🟣 DONE",
|
|
84
|
+
"error": "💣 ERROR!",
|
|
85
|
+
"label": "👨🔧SERVICES",
|
|
86
|
+
"signature": "@Services"
|
|
87
|
+
},
|
|
88
|
+
"live": {
|
|
89
|
+
"profile": "services",
|
|
90
|
+
"max_tokens": 50,
|
|
91
|
+
"words": 25,
|
|
92
|
+
"history": [],
|
|
93
|
+
"max_chats": 10,
|
|
94
|
+
"page_token": ""
|
|
95
|
+
},
|
|
96
|
+
"ask": {
|
|
97
|
+
"max_tokens": 500,
|
|
98
|
+
"words": 200,
|
|
99
|
+
"history": []
|
|
100
|
+
},
|
|
101
|
+
"reply": {
|
|
102
|
+
"profile": "services",
|
|
103
|
+
"max_tokens": 300,
|
|
104
|
+
"words": 100,
|
|
105
|
+
"history": []
|
|
106
|
+
},
|
|
107
|
+
"comment": {
|
|
108
|
+
"profile": "services",
|
|
109
|
+
"max_tokens": 300,
|
|
110
|
+
"words": 100,
|
|
111
|
+
"history": []
|
|
112
|
+
},
|
|
113
|
+
"art": {
|
|
114
|
+
"history": []
|
|
115
|
+
},
|
|
116
|
+
"trigger": "@SERVICES",
|
|
117
|
+
"context": {
|
|
118
|
+
"uid": "generating uid",
|
|
119
|
+
"status": "getting status",
|
|
120
|
+
"info": "getting info",
|
|
121
|
+
"feature": "accessing feature",
|
|
122
|
+
"issue": "has issues",
|
|
123
|
+
"help": "asking for help",
|
|
124
|
+
"ask": "Ask",
|
|
125
|
+
"live": "Livechat",
|
|
126
|
+
"comment": "Comment",
|
|
127
|
+
"reply": "Reply",
|
|
128
|
+
"art": "Create"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
31
131
|
}
|
|
32
132
|
}
|
package/data.json
DELETED
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "Services Deva Data File",
|
|
3
|
-
"describe": "The main Data file for Services Deva",
|
|
4
|
-
"copyright": "Copyright (c)2023 Quinn Michaels. All rights reserved.",
|
|
5
|
-
"DATA": {
|
|
6
|
-
"agent": {
|
|
7
|
-
"id": 4855882658530,
|
|
8
|
-
"key": "services",
|
|
9
|
-
"prompt": {
|
|
10
|
-
"emoji": "🛠️",
|
|
11
|
-
"text": "Services",
|
|
12
|
-
"colors": {
|
|
13
|
-
"label": {
|
|
14
|
-
"R": 163,
|
|
15
|
-
"G": 163,
|
|
16
|
-
"B": 168
|
|
17
|
-
},
|
|
18
|
-
"text": {
|
|
19
|
-
"R": 240,
|
|
20
|
-
"G": 242,
|
|
21
|
-
"B": 136
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"profile": {
|
|
26
|
-
"name": "Services Deva",
|
|
27
|
-
"gender": "DEVA",
|
|
28
|
-
"pronouns": "He, Him",
|
|
29
|
-
"creator": "Quinn Michaels",
|
|
30
|
-
"created": "May 22, 2023 at 10:14 AM",
|
|
31
|
-
"system": "Deva.world.services",
|
|
32
|
-
"describe": "ServicesDEVA is the entity in Deva.world multi-agent system that manages services for the users and entites. ServicesDEVA is here to make sure the necessary services are online and running that keep deva.world operation.",
|
|
33
|
-
"emoji": "/public/devas/services/emoji.png",
|
|
34
|
-
"avatar": "/public/devas/services/avatar.png",
|
|
35
|
-
"background": "/public/devas/services/background.png",
|
|
36
|
-
"color": "#ffffff",
|
|
37
|
-
"bgcolor": "#000000",
|
|
38
|
-
"voice": "onyx",
|
|
39
|
-
"style": "Has the style of a severvices technical draftsman. Artwork should be technical in nature, but a futuristic vibe."
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
"vars": {
|
|
43
|
-
"messages": {
|
|
44
|
-
"init": "🟠 INIT",
|
|
45
|
-
"start": "🔵 START",
|
|
46
|
-
"enter": "🟢 ENTER",
|
|
47
|
-
"ready": "⭐️ Services Deva Ready!",
|
|
48
|
-
"stop": "🔴 STOP",
|
|
49
|
-
"exit": "🟡 EXIT",
|
|
50
|
-
"done": "🟣 DONE",
|
|
51
|
-
"error": "💣 ERROR!",
|
|
52
|
-
"label": "👨🔧SERVICES",
|
|
53
|
-
"signature": "@Services"
|
|
54
|
-
},
|
|
55
|
-
"live": {
|
|
56
|
-
"profile": "services",
|
|
57
|
-
"max_tokens": 50,
|
|
58
|
-
"words": 25,
|
|
59
|
-
"history": [],
|
|
60
|
-
"max_chats": 10,
|
|
61
|
-
"page_token": ""
|
|
62
|
-
},
|
|
63
|
-
"ask": {
|
|
64
|
-
"max_tokens": 500,
|
|
65
|
-
"words": 200,
|
|
66
|
-
"history": []
|
|
67
|
-
},
|
|
68
|
-
"reply": {
|
|
69
|
-
"profile": "services",
|
|
70
|
-
"max_tokens": 300,
|
|
71
|
-
"words": 100,
|
|
72
|
-
"history": []
|
|
73
|
-
},
|
|
74
|
-
"comment": {
|
|
75
|
-
"profile": "services",
|
|
76
|
-
"max_tokens": 300,
|
|
77
|
-
"words": 100,
|
|
78
|
-
"history": []
|
|
79
|
-
},
|
|
80
|
-
"art": {
|
|
81
|
-
"history": []
|
|
82
|
-
},
|
|
83
|
-
"trigger": "@SERVICES",
|
|
84
|
-
"context": {
|
|
85
|
-
"uid": "generating uid",
|
|
86
|
-
"status": "getting status",
|
|
87
|
-
"info": "getting info",
|
|
88
|
-
"feature": "accessing feature",
|
|
89
|
-
"issue": "has issues",
|
|
90
|
-
"help": "asking for help",
|
|
91
|
-
"ask": "Ask",
|
|
92
|
-
"live": "Livechat",
|
|
93
|
-
"comment": "Comment",
|
|
94
|
-
"reply": "Reply",
|
|
95
|
-
"art": "Create"
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|